FAILURE MAP
← Case archive

FA-94541 / Exam timetabling constraints / Open access

Access-arrangement candidates consume main hall seats · case 01

Main hall seats are reserved for candidates who sit in the separate room.

Verified by executionVariant 1 · 8 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The main seating list includes access candidates.

THE FAILURE

The main seating list includes access candidates.

Unsuccessful approach: An identity test against False excludes everyone when flags are 0/1 integers.

Case contract

Candidates [id, surname, given, access flag], rooms [room, rows, cols]. Non-access candidates are sorted by case-folded surname, case-folded given name, then id, and take alternate seats (even row and even column indices) room by room in row-major order, labelled room-<row letter><column number>; candidates beyond the seats are UNSEATED. Access candidates go to SEP-1, SEP-2... in the same order. Return id -> seat.

Why this case matters

Seating plans are generated from the timetable's room allocation and must be deterministic and fair.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(cands, rooms):
    def key(c):
        return (c[1].casefold(), c[2].casefold(), c[0])
    main = sorted(cands, key=key)
    sep = sorted([c for c in cands if c[3]], key=key)
    seats = []
    for room, rows, cols in rooms:
        for r in range(0, rows, 2):
            for c in range(0, cols, 2):
                seats.append('%s-%s%d' % (room, chr(65 + r), c + 1))
    out = {}
    for k, c in enumerate(main):
        out[c[0]] = seats[k] if k < len(seats) else 'UNSEATED'
    for k, c in enumerate(sep):
        out[c[0]] = 'SEP-%d' % (k + 1)
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: access separation 1',
   [[['C05', 'strauss', 'Cara', 0], ['C62', 'Strauß', 'Anna', 1], ['C75', 'Zhou', 'Li', 0],
     ['C85', 'Adams', 'eve', 0]],
    [['H0', 4, 5]]],
   {'C85': 'H0-A1', 'C05': 'H0-A3', 'C75': 'H0-A5', 'C62': 'SEP-1'}),
  ('regression variant: access separation 2',
   [[['C33', 'Mason', 'Amy', 1], ['C62', 'Strauß', 'Anna', 1], ['C46', 'Zhou', 'Li', 0],
     ['C56', 'strauss', 'Cara', 0]],
    [['H0', 3, 5], ['H1', 1, 4]]],
   {'C56': 'H0-A1', 'C46': 'H0-A3', 'C33': 'SEP-1', 'C62': 'SEP-2'}),
  ('boundary control 3', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('boundary control 4',
   [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0], ['C3', 'Cole', 'Bo', 0]], [['H1', 3, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}),
  ('normal control 5',
   [[['C50', 'Mason', 'Amy', 1], ['C04', 'Adams', 'eve', 0], ['C05', 'Strausz', 'Ben', 1]], [['H0', 1, 3]]],
   {'C04': 'H0-A1', 'C50': 'SEP-1', 'C05': 'SEP-2'}),
  ('normal control 6',
   [[['C81', 'Strauß', 'Anna', 0], ['C82', 'Zhou', 'Li', 1], ['C93', 'Adams', 'eve', 1],
     ['C86', 'Mason', 'Amy', 0], ['C24', 'strauss', 'Cara', 0], ['C07', 'Öberg', 'Ola', 0],
     ['C26', 'adams', 'Dan', 1], ['C17', 'Mason', 'Zed', 1]],
    [['H0', 4, 4]]],
   {'C86': 'H0-A1',
    'C81': 'H0-A3',
    'C24': 'H0-C1',
    'C07': 'H0-C3',
    'C26': 'SEP-1',
    'C93': 'SEP-2',
    'C17': 'SEP-3',
    'C82': 'SEP-4'}),
  ('normal control 7',
   [[['C48', 'strauss', 'Cara', 0], ['C07', 'adams', 'Dan', 0]], [['H0', 1, 5], ['H1', 2, 5]]],
   {'C07': 'H0-A1', 'C48': 'H0-A3'}),
  ('normal control 8',
   [[['C22', 'adams', 'Dan', 0], ['C47', 'Strauß', 'Anna', 1], ['C26', 'strauss', 'Cara', 0],
     ['C77', 'Mason', 'amy', 0], ['C44', 'Strausz', 'Ben', 0]],
    [['H0', 3, 5], ['H1', 4, 3]]],
   {'C22': 'H0-A1', 'C77': 'H0-A3', 'C26': 'H0-A5', 'C44': 'H0-C1', 'C47': 'SEP-1'})],
 [('regression: access separation 1',
   [[['C13', 'Mason', 'amy', 0], ['C70', 'strauss', 'Cara', 0], ['C32', 'Strausz', 'Ben', 0],
     ['C01', 'Öberg', 'Ola', 0], ['C82', 'Zhou', 'Li', 0], ['C10', 'Strauß', 'Anna', 1],
     ['C68', 'Mason', 'Zed', 0]],
    [['H0', 5, 3], ['H1', 2, 1]]],
   {'C13': 'H0-A1',
    'C68': 'H0-A3',
    'C70': 'H0-C1',
    'C32': 'H0-C3',
    'C82': 'H0-E1',
    'C01': 'H0-E3',
    'C10': 'SEP-1'}),
  ('regression variant: access separation 2',
   [[['C54', 'Mason', 'Zed', 1], ['C47', 'Öberg', 'Ola', 0], ['C21', 'Strausz', 'Ben', 1],
     ['C70', 'Mason', 'Amy', 1]],
    [['H0', 3, 2], ['H1', 3, 2]]],
   {'C47': 'H0-A1', 'C70': 'SEP-1', 'C54': 'SEP-2', 'C21': 'SEP-3'}),
  ('partial repair guard 3', [[['C41', 'strauss', 'Cara', 1], ['C29', 'Strauß', 'Anna', 0]], [['H0', 4, 2]]],
   {'C29': 'H0-A1', 'C41': 'SEP-1'}),
  ('boundary control 4', [[['C1', 'Strauß', 'Anna', 0], ['C2', 'Strausz', 'Ben', 0]], [['H1', 1, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3'}),
  ('boundary control 5', [[['C9', 'Mason', 'Amy', 0], ['C1', 'Mason', 'Amy', 0]], [['H1', 2, 3]]],
   {'C1': 'H1-A1', 'C9': 'H1-A3'}),
  ('normal control 6',
   [[['C68', 'Strauß', 'Anna', 0], ['C07', 'Mason', 'amy', 0], ['C61', 'Mason', 'Amy', 0]], [['H0', 1, 1]]],
   {'C07': 'H0-A1', 'C61': 'UNSEATED', 'C68': 'UNSEATED'}),
  ('normal control 7',
   [[['C75', 'adams', 'Dan', 0], ['C90', 'Strauß', 'Anna', 0], ['C16', 'Strausz', 'Ben', 0],
     ['C43', 'strauss', 'Cara', 0]],
    [['H0', 4, 1], ['H1', 4, 2]]],
   {'C75': 'H0-A1', 'C90': 'H0-C1', 'C43': 'H1-A1', 'C16': 'H1-C1'}),
  ('normal control 8',
   [[['C76', 'Strausz', 'Ben', 0], ['C33', 'Mason', 'Amy', 0], ['C21', 'strauss', 'Cara', 0]],
    [['H0', 1, 3]]],
   {'C33': 'H0-A1', 'C21': 'H0-A3', 'C76': 'UNSEATED'})],
 [('regression: access separation 1',
   [[['C74', 'Mason', 'amy', 0], ['C73', 'Strausz', 'Ben', 0], ['C01', 'Zhou', 'Li', 0],
     ['C14', 'Strauß', 'Anna', 1], ['C41', 'Mason', 'Amy', 0], ['C37', 'Öberg', 'Ola', 0],
     ['C25', 'strauss', 'Cara', 0], ['C86', 'Mason', 'Zed', 0]],
    [['H0', 5, 4]]],
   {'C41': 'H0-A1',
    'C74': 'H0-A3',
    'C86': 'H0-C1',
    'C25': 'H0-C3',
    'C73': 'H0-E1',
    'C01': 'H0-E3',
    'C37': 'UNSEATED',
    'C14': 'SEP-1'}),
  ('regression variant: access separation 2',
   [[['C66', 'Adams', 'eve', 0], ['C76', 'Strausz', 'Ben', 0], ['C35', 'Mason', 'amy', 1],
     ['C89', 'Mason', 'Zed', 0], ['C17', 'Zhou', 'Li', 0], ['C22', 'adams', 'Dan', 0],
     ['C44', 'strauss', 'Cara', 0]],
    [['H0', 5, 4], ['H1', 3, 5]]],
   {'C22': 'H0-A1',
    'C66': 'H0-A3',
    'C89': 'H0-C1',
    'C44': 'H0-C3',
    'C76': 'H0-E1',
    'C17': 'H0-E3',
    'C35': 'SEP-1'}),
  ('partial repair guard 3',
   [[['C38', 'Strauß', 'Anna', 0], ['C46', 'Adams', 'eve', 0], ['C83', 'strauss', 'Cara', 0],
     ['C55', 'Zhou', 'Li', 0], ['C21', 'adams', 'Dan', 0], ['C03', 'Mason', 'amy', 0]],
    [['H0', 4, 4]]],
   {'C21': 'H0-A1', 'C46': 'H0-A3', 'C03': 'H0-C1', 'C38': 'H0-C3', 'C83': 'UNSEATED', 'C55': 'UNSEATED'}),
  ('boundary control 4', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('boundary control 5',
   [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0], ['C3', 'Cole', 'Bo', 0]], [['H1', 3, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}),
  ('normal control 6', [[['C73', 'Zhou', 'Li', 0], ['C04', 'adams', 'Dan', 0]], [['H0', 4, 4]]],
   {'C04': 'H0-A1', 'C73': 'H0-A3'}),
  ('normal control 7',
   [[['C22', 'adams', 'Dan', 0], ['C16', 'Mason', 'Zed', 0], ['C64', 'Strausz', 'Ben', 1],
     ['C24', 'strauss', 'Cara', 0], ['C40', 'Zhou', 'Li', 1]],
    [['H0', 3, 3]]],
   {'C22': 'H0-A1', 'C16': 'H0-A3', 'C24': 'H0-C1', 'C64': 'SEP-1', 'C40': 'SEP-2'}),
  ('normal control 8',
   [[['C14', 'Zhou', 'Li', 1], ['C54', 'Strausz', 'Ben', 0], ['C62', 'Mason', 'Amy', 1],
     ['C75', 'Öberg', 'Ola', 1], ['C64', 'adams', 'Dan', 0], ['C63', 'Adams', 'eve', 0],
     ['C81', 'Mason', 'Zed', 0], ['C33', 'Strauß', 'Anna', 0]],
    [['H0', 5, 3], ['H1', 1, 4]]],
   {'C64': 'H0-A1',
    'C63': 'H0-A3',
    'C81': 'H0-C1',
    'C33': 'H0-C3',
    'C54': 'H0-E1',
    'C62': 'SEP-1',
    'C14': 'SEP-2',
    'C75': 'SEP-3'})],
 [('regression: access separation 1',
   [[['C34', 'Mason', 'Amy', 1], ['C07', 'Mason', 'amy', 0], ['C82', 'Strausz', 'Ben', 0]],
    [['H0', 3, 4], ['H1', 3, 3]]],
   {'C07': 'H0-A1', 'C82': 'H0-A3', 'C34': 'SEP-1'}),
  ('regression variant: access separation 2',
   [[['C50', 'Zhou', 'Li', 0], ['C47', 'Mason', 'Amy', 1], ['C03', 'Öberg', 'Ola', 0],
     ['C51', 'adams', 'Dan', 1], ['C44', 'Mason', 'amy', 0], ['C79', 'Mason', 'Zed', 0],
     ['C35', 'Strausz', 'Ben', 0], ['C93', 'Strauß', 'Anna', 0]],
    [['H0', 3, 5]]],
   {'C44': 'H0-A1',
    'C79': 'H0-A3',
    'C93': 'H0-A5',
    'C35': 'H0-C1',
    'C50': 'H0-C3',
    'C03': 'H0-C5',
    'C51': 'SEP-1',
    'C47': 'SEP-2'}),
  ('partial repair guard 3',
   [[['C27', 'Mason', 'amy', 0], ['C02', 'adams', 'Dan', 0], ['C32', 'Mason', 'Zed', 0],
     ['C55', 'Adams', 'eve', 0]],
    [['H0', 1, 5], ['H1', 5, 2]]],
   {'C02': 'H0-A1', 'C55': 'H0-A3', 'C27': 'H0-A5', 'C32': 'H1-A1'}),
  ('boundary control 4', [[['C1', 'Strauß', 'Anna', 0], ['C2', 'Strausz', 'Ben', 0]], [['H1', 1, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3'}),
  ('boundary control 5', [[['C9', 'Mason', 'Amy', 0], ['C1', 'Mason', 'Amy', 0]], [['H1', 2, 3]]],
   {'C1': 'H1-A1', 'C9': 'H1-A3'}),
  ('normal control 6',
   [[['C11', 'adams', 'Dan', 0], ['C88', 'Öberg', 'Ola', 0], ['C89', 'Strausz', 'Ben', 0],
     ['C68', 'Mason', 'Amy', 0], ['C06', 'strauss', 'Cara', 0], ['C29', 'Mason', 'amy', 0],
     ['C80', 'Adams', 'eve', 0], ['C34', 'Strauß', 'Anna', 1]],
    [['H0', 2, 4], ['H1', 5, 5]]],
   {'C11': 'H0-A1',
    'C80': 'H0-A3',
    'C29': 'H1-A1',
    'C68': 'H1-A3',
    'C06': 'H1-A5',
    'C89': 'H1-C1',
    'C88': 'H1-C3',
    'C34': 'SEP-1'}),
  ('normal control 7',
   [[['C39', 'Mason', 'amy', 0], ['C05', 'Strauß', 'Anna', 0], ['C33', 'strauss', 'Cara', 0],
     ['C24', 'Strausz', 'Ben', 0], ['C77', 'Mason', 'Amy', 0]],
    [['H0', 3, 4], ['H1', 2, 4]]],
   {'C39': 'H0-A1', 'C77': 'H0-A3', 'C05': 'H0-C1', 'C33': 'H0-C3', 'C24': 'H1-A1'}),
  ('normal control 8',
   [[['C11', 'Mason', 'Zed', 0], ['C91', 'strauss', 'Cara', 0], ['C85', 'Mason', 'amy', 0],
     ['C80', 'Strauß', 'Anna', 0], ['C03', 'Zhou', 'Li', 0]],
    [['H0', 5, 3], ['H1', 4, 2]]],
   {'C85': 'H0-A1', 'C11': 'H0-A3', 'C80': 'H0-C1', 'C91': 'H0-C3', 'C03': 'H0-E1'})],
 [('regression: access separation 1',
   [[['C46', 'Öberg', 'Ola', 1], ['C81', 'Mason', 'amy', 1], ['C07', 'Strauß', 'Anna', 0],
     ['C30', 'Zhou', 'Li', 0], ['C83', 'adams', 'Dan', 0], ['C99', 'Strausz', 'Ben', 0],
     ['C19', 'Adams', 'eve', 0]],
    [['H0', 5, 4], ['H1', 2, 2]]],
   {'C83': 'H0-A1',
    'C19': 'H0-A3',
    'C07': 'H0-C1',
    'C99': 'H0-C3',
    'C30': 'H0-E1',
    'C81': 'SEP-1',
    'C46': 'SEP-2'}),
  ('regression variant: access separation 2',
   [[['C70', 'Öberg', 'Ola', 0], ['C82', 'Strauß', 'Anna', 1], ['C73', 'Zhou', 'Li', 0],
     ['C08', 'Adams', 'eve', 0], ['C07', 'Mason', 'amy', 0], ['C36', 'Mason', 'Zed', 0]],
    [['H0', 5, 5]]],
   {'C08': 'H0-A1', 'C07': 'H0-A3', 'C36': 'H0-A5', 'C73': 'H0-C1', 'C70': 'H0-C3', 'C82': 'SEP-1'}),
  ('partial repair guard 3',
   [[['C69', 'adams', 'Dan', 0], ['C89', 'Mason', 'Zed', 0], ['C34', 'Mason', 'Amy', 0]],
    [['H0', 4, 3], ['H1', 3, 3]]],
   {'C69': 'H0-A1', 'C34': 'H0-A3', 'C89': 'H0-C1'}),
  ('boundary control 4', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('boundary control 5',
   [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0], ['C3', 'Cole', 'Bo', 0]], [['H1', 3, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}),
  ('normal control 6',
   [[['C00', 'Mason', 'Amy', 1], ['C69', 'Zhou', 'Li', 1], ['C76', 'Öberg', 'Ola', 0],
     ['C58', 'strauss', 'Cara', 0]],
    [['H0', 5, 2]]],
   {'C58': 'H0-A1', 'C76': 'H0-C1', 'C00': 'SEP-1', 'C69': 'SEP-2'}),
  ('normal control 7',
   [[['C62', 'Strauß', 'Anna', 0], ['C06', 'adams', 'Dan', 1]], [['H0', 2, 1], ['H1', 3, 1]]],
   {'C62': 'H0-A1', 'C06': 'SEP-1'}),
  ('normal control 8',
   [[['C14', 'Mason', 'amy', 0], ['C19', 'adams', 'Dan', 0], ['C62', 'Mason', 'Zed', 0],
     ['C47', 'Zhou', 'Li', 1], ['C39', 'strauss', 'Cara', 0], ['C59', 'Strauß', 'Anna', 0],
     ['C36', 'Strausz', 'Ben', 0], ['C08', 'Mason', 'Amy', 0]],
    [['H0', 3, 3], ['H1', 1, 2]]],
   {'C19': 'H0-A1',
    'C08': 'H0-A3',
    'C14': 'H0-C1',
    'C62': 'H0-C3',
    'C59': 'H1-A1',
    'C39': 'UNSEATED',
    'C36': 'UNSEATED',
    'C47': 'SEP-1'})]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
regression: access separation 1{'C05': 'H0-A5', 'C62': 'SEP-1', 'C75': 'H0-C1', 'C85': 'H0-A1'}{'C05': 'H0-A3', 'C62': 'SEP-1', 'C75': 'H0-A5', 'C85': 'H0-A1'}Failed
regression variant: access separation 2{'C33': 'SEP-1', 'C46': 'H0-C1', 'C56': 'H0-A5', 'C62': 'SEP-2'}{'C33': 'SEP-1', 'C46': 'H0-A3', 'C56': 'H0-A1', 'C62': 'SEP-2'}Failed
boundary control 3{'C1': 'H1-A1', 'C2': 'SEP-1'}{'C1': 'H1-A1', 'C2': 'SEP-1'}Passed
boundary control 4{'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}{'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}Passed
normal control 5{'C04': 'H0-A1', 'C05': 'SEP-2', 'C50': 'SEP-1'}{'C04': 'H0-A1', 'C05': 'SEP-2', 'C50': 'SEP-1'}Passed
normal control 6{'C07': 'UNSEATED', 'C17': 'SEP-3', 'C24': 'UNSEATED', 'C26': 'SEP-1', 'C81': 'UNSEATED', 'C82': 'SEP-4', 'C86': 'H0-C1', 'C93': 'SEP-2'}{'C07': 'H0-C3', 'C17': 'SEP-3', 'C24': 'H0-C1', 'C26': 'SEP-1', 'C81': 'H0-A3', 'C82': 'SEP-4', 'C86': 'H0-A1', 'C93': 'SEP-2'}Failed
normal control 7{'C07': 'H0-A1', 'C48': 'H0-A3'}{'C07': 'H0-A1', 'C48': 'H0-A3'}Passed
normal control 8{'C22': 'H0-A1', 'C26': 'H0-C1', 'C44': 'H0-C3', 'C47': 'SEP-1', 'C77': 'H0-A3'}{'C22': 'H0-A1', 'C26': 'H0-A5', 'C44': 'H0-C1', 'C47': 'SEP-1', 'C77': 'H0-A3'}Failed

SHA-256 / 50c88f80ee76ad782dbaaa6e9d93b6f7b505454ef9276c697cd1c728236ab76f

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(cands, rooms):
    def key(c):
        return (c[1].casefold(), c[2].casefold(), c[0])
    main = sorted([c for c in cands if c[3] is False], key=key)
    sep = sorted([c for c in cands if c[3]], key=key)
    seats = []
    for room, rows, cols in rooms:
        for r in range(0, rows, 2):
            for c in range(0, cols, 2):
                seats.append('%s-%s%d' % (room, chr(65 + r), c + 1))
    out = {}
    for k, c in enumerate(main):
        out[c[0]] = seats[k] if k < len(seats) else 'UNSEATED'
    for k, c in enumerate(sep):
        out[c[0]] = 'SEP-%d' % (k + 1)
    return out
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
fixtures = [[('regression: access separation 1',
   [[['C05', 'strauss', 'Cara', 0], ['C62', 'Strauß', 'Anna', 1], ['C75', 'Zhou', 'Li', 0],
     ['C85', 'Adams', 'eve', 0]],
    [['H0', 4, 5]]],
   {'C85': 'H0-A1', 'C05': 'H0-A3', 'C75': 'H0-A5', 'C62': 'SEP-1'}),
  ('regression variant: access separation 2',
   [[['C33', 'Mason', 'Amy', 1], ['C62', 'Strauß', 'Anna', 1], ['C46', 'Zhou', 'Li', 0],
     ['C56', 'strauss', 'Cara', 0]],
    [['H0', 3, 5], ['H1', 1, 4]]],
   {'C56': 'H0-A1', 'C46': 'H0-A3', 'C33': 'SEP-1', 'C62': 'SEP-2'}),
  ('boundary control 3', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('boundary control 4',
   [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0], ['C3', 'Cole', 'Bo', 0]], [['H1', 3, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}),
  ('normal control 5',
   [[['C50', 'Mason', 'Amy', 1], ['C04', 'Adams', 'eve', 0], ['C05', 'Strausz', 'Ben', 1]], [['H0', 1, 3]]],
   {'C04': 'H0-A1', 'C50': 'SEP-1', 'C05': 'SEP-2'}),
  ('normal control 6',
   [[['C81', 'Strauß', 'Anna', 0], ['C82', 'Zhou', 'Li', 1], ['C93', 'Adams', 'eve', 1],
     ['C86', 'Mason', 'Amy', 0], ['C24', 'strauss', 'Cara', 0], ['C07', 'Öberg', 'Ola', 0],
     ['C26', 'adams', 'Dan', 1], ['C17', 'Mason', 'Zed', 1]],
    [['H0', 4, 4]]],
   {'C86': 'H0-A1',
    'C81': 'H0-A3',
    'C24': 'H0-C1',
    'C07': 'H0-C3',
    'C26': 'SEP-1',
    'C93': 'SEP-2',
    'C17': 'SEP-3',
    'C82': 'SEP-4'}),
  ('normal control 7',
   [[['C48', 'strauss', 'Cara', 0], ['C07', 'adams', 'Dan', 0]], [['H0', 1, 5], ['H1', 2, 5]]],
   {'C07': 'H0-A1', 'C48': 'H0-A3'}),
  ('normal control 8',
   [[['C22', 'adams', 'Dan', 0], ['C47', 'Strauß', 'Anna', 1], ['C26', 'strauss', 'Cara', 0],
     ['C77', 'Mason', 'amy', 0], ['C44', 'Strausz', 'Ben', 0]],
    [['H0', 3, 5], ['H1', 4, 3]]],
   {'C22': 'H0-A1', 'C77': 'H0-A3', 'C26': 'H0-A5', 'C44': 'H0-C1', 'C47': 'SEP-1'})],
 [('regression: access separation 1',
   [[['C13', 'Mason', 'amy', 0], ['C70', 'strauss', 'Cara', 0], ['C32', 'Strausz', 'Ben', 0],
     ['C01', 'Öberg', 'Ola', 0], ['C82', 'Zhou', 'Li', 0], ['C10', 'Strauß', 'Anna', 1],
     ['C68', 'Mason', 'Zed', 0]],
    [['H0', 5, 3], ['H1', 2, 1]]],
   {'C13': 'H0-A1',
    'C68': 'H0-A3',
    'C70': 'H0-C1',
    'C32': 'H0-C3',
    'C82': 'H0-E1',
    'C01': 'H0-E3',
    'C10': 'SEP-1'}),
  ('regression variant: access separation 2',
   [[['C54', 'Mason', 'Zed', 1], ['C47', 'Öberg', 'Ola', 0], ['C21', 'Strausz', 'Ben', 1],
     ['C70', 'Mason', 'Amy', 1]],
    [['H0', 3, 2], ['H1', 3, 2]]],
   {'C47': 'H0-A1', 'C70': 'SEP-1', 'C54': 'SEP-2', 'C21': 'SEP-3'}),
  ('partial repair guard 3', [[['C41', 'strauss', 'Cara', 1], ['C29', 'Strauß', 'Anna', 0]], [['H0', 4, 2]]],
   {'C29': 'H0-A1', 'C41': 'SEP-1'}),
  ('boundary control 4', [[['C1', 'Strauß', 'Anna', 0], ['C2', 'Strausz', 'Ben', 0]], [['H1', 1, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3'}),
  ('boundary control 5', [[['C9', 'Mason', 'Amy', 0], ['C1', 'Mason', 'Amy', 0]], [['H1', 2, 3]]],
   {'C1': 'H1-A1', 'C9': 'H1-A3'}),
  ('normal control 6',
   [[['C68', 'Strauß', 'Anna', 0], ['C07', 'Mason', 'amy', 0], ['C61', 'Mason', 'Amy', 0]], [['H0', 1, 1]]],
   {'C07': 'H0-A1', 'C61': 'UNSEATED', 'C68': 'UNSEATED'}),
  ('normal control 7',
   [[['C75', 'adams', 'Dan', 0], ['C90', 'Strauß', 'Anna', 0], ['C16', 'Strausz', 'Ben', 0],
     ['C43', 'strauss', 'Cara', 0]],
    [['H0', 4, 1], ['H1', 4, 2]]],
   {'C75': 'H0-A1', 'C90': 'H0-C1', 'C43': 'H1-A1', 'C16': 'H1-C1'}),
  ('normal control 8',
   [[['C76', 'Strausz', 'Ben', 0], ['C33', 'Mason', 'Amy', 0], ['C21', 'strauss', 'Cara', 0]],
    [['H0', 1, 3]]],
   {'C33': 'H0-A1', 'C21': 'H0-A3', 'C76': 'UNSEATED'})],
 [('regression: access separation 1',
   [[['C74', 'Mason', 'amy', 0], ['C73', 'Strausz', 'Ben', 0], ['C01', 'Zhou', 'Li', 0],
     ['C14', 'Strauß', 'Anna', 1], ['C41', 'Mason', 'Amy', 0], ['C37', 'Öberg', 'Ola', 0],
     ['C25', 'strauss', 'Cara', 0], ['C86', 'Mason', 'Zed', 0]],
    [['H0', 5, 4]]],
   {'C41': 'H0-A1',
    'C74': 'H0-A3',
    'C86': 'H0-C1',
    'C25': 'H0-C3',
    'C73': 'H0-E1',
    'C01': 'H0-E3',
    'C37': 'UNSEATED',
    'C14': 'SEP-1'}),
  ('regression variant: access separation 2',
   [[['C66', 'Adams', 'eve', 0], ['C76', 'Strausz', 'Ben', 0], ['C35', 'Mason', 'amy', 1],
     ['C89', 'Mason', 'Zed', 0], ['C17', 'Zhou', 'Li', 0], ['C22', 'adams', 'Dan', 0],
     ['C44', 'strauss', 'Cara', 0]],
    [['H0', 5, 4], ['H1', 3, 5]]],
   {'C22': 'H0-A1',
    'C66': 'H0-A3',
    'C89': 'H0-C1',
    'C44': 'H0-C3',
    'C76': 'H0-E1',
    'C17': 'H0-E3',
    'C35': 'SEP-1'}),
  ('partial repair guard 3',
   [[['C38', 'Strauß', 'Anna', 0], ['C46', 'Adams', 'eve', 0], ['C83', 'strauss', 'Cara', 0],
     ['C55', 'Zhou', 'Li', 0], ['C21', 'adams', 'Dan', 0], ['C03', 'Mason', 'amy', 0]],
    [['H0', 4, 4]]],
   {'C21': 'H0-A1', 'C46': 'H0-A3', 'C03': 'H0-C1', 'C38': 'H0-C3', 'C83': 'UNSEATED', 'C55': 'UNSEATED'}),
  ('boundary control 4', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('boundary control 5',
   [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0], ['C3', 'Cole', 'Bo', 0]], [['H1', 3, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}),
  ('normal control 6', [[['C73', 'Zhou', 'Li', 0], ['C04', 'adams', 'Dan', 0]], [['H0', 4, 4]]],
   {'C04': 'H0-A1', 'C73': 'H0-A3'}),
  ('normal control 7',
   [[['C22', 'adams', 'Dan', 0], ['C16', 'Mason', 'Zed', 0], ['C64', 'Strausz', 'Ben', 1],
     ['C24', 'strauss', 'Cara', 0], ['C40', 'Zhou', 'Li', 1]],
    [['H0', 3, 3]]],
   {'C22': 'H0-A1', 'C16': 'H0-A3', 'C24': 'H0-C1', 'C64': 'SEP-1', 'C40': 'SEP-2'}),
  ('normal control 8',
   [[['C14', 'Zhou', 'Li', 1], ['C54', 'Strausz', 'Ben', 0], ['C62', 'Mason', 'Amy', 1],
     ['C75', 'Öberg', 'Ola', 1], ['C64', 'adams', 'Dan', 0], ['C63', 'Adams', 'eve', 0],
     ['C81', 'Mason', 'Zed', 0], ['C33', 'Strauß', 'Anna', 0]],
    [['H0', 5, 3], ['H1', 1, 4]]],
   {'C64': 'H0-A1',
    'C63': 'H0-A3',
    'C81': 'H0-C1',
    'C33': 'H0-C3',
    'C54': 'H0-E1',
    'C62': 'SEP-1',
    'C14': 'SEP-2',
    'C75': 'SEP-3'})],
 [('regression: access separation 1',
   [[['C34', 'Mason', 'Amy', 1], ['C07', 'Mason', 'amy', 0], ['C82', 'Strausz', 'Ben', 0]],
    [['H0', 3, 4], ['H1', 3, 3]]],
   {'C07': 'H0-A1', 'C82': 'H0-A3', 'C34': 'SEP-1'}),
  ('regression variant: access separation 2',
   [[['C50', 'Zhou', 'Li', 0], ['C47', 'Mason', 'Amy', 1], ['C03', 'Öberg', 'Ola', 0],
     ['C51', 'adams', 'Dan', 1], ['C44', 'Mason', 'amy', 0], ['C79', 'Mason', 'Zed', 0],
     ['C35', 'Strausz', 'Ben', 0], ['C93', 'Strauß', 'Anna', 0]],
    [['H0', 3, 5]]],
   {'C44': 'H0-A1',
    'C79': 'H0-A3',
    'C93': 'H0-A5',
    'C35': 'H0-C1',
    'C50': 'H0-C3',
    'C03': 'H0-C5',
    'C51': 'SEP-1',
    'C47': 'SEP-2'}),
  ('partial repair guard 3',
   [[['C27', 'Mason', 'amy', 0], ['C02', 'adams', 'Dan', 0], ['C32', 'Mason', 'Zed', 0],
     ['C55', 'Adams', 'eve', 0]],
    [['H0', 1, 5], ['H1', 5, 2]]],
   {'C02': 'H0-A1', 'C55': 'H0-A3', 'C27': 'H0-A5', 'C32': 'H1-A1'}),
  ('boundary control 4', [[['C1', 'Strauß', 'Anna', 0], ['C2', 'Strausz', 'Ben', 0]], [['H1', 1, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3'}),
  ('boundary control 5', [[['C9', 'Mason', 'Amy', 0], ['C1', 'Mason', 'Amy', 0]], [['H1', 2, 3]]],
   {'C1': 'H1-A1', 'C9': 'H1-A3'}),
  ('normal control 6',
   [[['C11', 'adams', 'Dan', 0], ['C88', 'Öberg', 'Ola', 0], ['C89', 'Strausz', 'Ben', 0],
     ['C68', 'Mason', 'Amy', 0], ['C06', 'strauss', 'Cara', 0], ['C29', 'Mason', 'amy', 0],
     ['C80', 'Adams', 'eve', 0], ['C34', 'Strauß', 'Anna', 1]],
    [['H0', 2, 4], ['H1', 5, 5]]],
   {'C11': 'H0-A1',
    'C80': 'H0-A3',
    'C29': 'H1-A1',
    'C68': 'H1-A3',
    'C06': 'H1-A5',
    'C89': 'H1-C1',
    'C88': 'H1-C3',
    'C34': 'SEP-1'}),
  ('normal control 7',
   [[['C39', 'Mason', 'amy', 0], ['C05', 'Strauß', 'Anna', 0], ['C33', 'strauss', 'Cara', 0],
     ['C24', 'Strausz', 'Ben', 0], ['C77', 'Mason', 'Amy', 0]],
    [['H0', 3, 4], ['H1', 2, 4]]],
   {'C39': 'H0-A1', 'C77': 'H0-A3', 'C05': 'H0-C1', 'C33': 'H0-C3', 'C24': 'H1-A1'}),
  ('normal control 8',
   [[['C11', 'Mason', 'Zed', 0], ['C91', 'strauss', 'Cara', 0], ['C85', 'Mason', 'amy', 0],
     ['C80', 'Strauß', 'Anna', 0], ['C03', 'Zhou', 'Li', 0]],
    [['H0', 5, 3], ['H1', 4, 2]]],
   {'C85': 'H0-A1', 'C11': 'H0-A3', 'C80': 'H0-C1', 'C91': 'H0-C3', 'C03': 'H0-E1'})],
 [('regression: access separation 1',
   [[['C46', 'Öberg', 'Ola', 1], ['C81', 'Mason', 'amy', 1], ['C07', 'Strauß', 'Anna', 0],
     ['C30', 'Zhou', 'Li', 0], ['C83', 'adams', 'Dan', 0], ['C99', 'Strausz', 'Ben', 0],
     ['C19', 'Adams', 'eve', 0]],
    [['H0', 5, 4], ['H1', 2, 2]]],
   {'C83': 'H0-A1',
    'C19': 'H0-A3',
    'C07': 'H0-C1',
    'C99': 'H0-C3',
    'C30': 'H0-E1',
    'C81': 'SEP-1',
    'C46': 'SEP-2'}),
  ('regression variant: access separation 2',
   [[['C70', 'Öberg', 'Ola', 0], ['C82', 'Strauß', 'Anna', 1], ['C73', 'Zhou', 'Li', 0],
     ['C08', 'Adams', 'eve', 0], ['C07', 'Mason', 'amy', 0], ['C36', 'Mason', 'Zed', 0]],
    [['H0', 5, 5]]],
   {'C08': 'H0-A1', 'C07': 'H0-A3', 'C36': 'H0-A5', 'C73': 'H0-C1', 'C70': 'H0-C3', 'C82': 'SEP-1'}),
  ('partial repair guard 3',
   [[['C69', 'adams', 'Dan', 0], ['C89', 'Mason', 'Zed', 0], ['C34', 'Mason', 'Amy', 0]],
    [['H0', 4, 3], ['H1', 3, 3]]],
   {'C69': 'H0-A1', 'C34': 'H0-A3', 'C89': 'H0-C1'}),
  ('boundary control 4', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('boundary control 5',
   [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0], ['C3', 'Cole', 'Bo', 0]], [['H1', 3, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}),
  ('normal control 6',
   [[['C00', 'Mason', 'Amy', 1], ['C69', 'Zhou', 'Li', 1], ['C76', 'Öberg', 'Ola', 0],
     ['C58', 'strauss', 'Cara', 0]],
    [['H0', 5, 2]]],
   {'C58': 'H0-A1', 'C76': 'H0-C1', 'C00': 'SEP-1', 'C69': 'SEP-2'}),
  ('normal control 7',
   [[['C62', 'Strauß', 'Anna', 0], ['C06', 'adams', 'Dan', 1]], [['H0', 2, 1], ['H1', 3, 1]]],
   {'C62': 'H0-A1', 'C06': 'SEP-1'}),
  ('normal control 8',
   [[['C14', 'Mason', 'amy', 0], ['C19', 'adams', 'Dan', 0], ['C62', 'Mason', 'Zed', 0],
     ['C47', 'Zhou', 'Li', 1], ['C39', 'strauss', 'Cara', 0], ['C59', 'Strauß', 'Anna', 0],
     ['C36', 'Strausz', 'Ben', 0], ['C08', 'Mason', 'Amy', 0]],
    [['H0', 3, 3], ['H1', 1, 2]]],
   {'C19': 'H0-A1',
    'C08': 'H0-A3',
    'C14': 'H0-C1',
    'C62': 'H0-C3',
    'C59': 'H1-A1',
    'C39': 'UNSEATED',
    'C36': 'UNSEATED',
    'C47': 'SEP-1'})]]
for label, args, expected in fixtures[N-1]:
    check(label, solve(*args), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
regression: access separation 1{'C62': 'SEP-1'}{'C05': 'H0-A3', 'C62': 'SEP-1', 'C75': 'H0-A5', 'C85': 'H0-A1'}Failed
regression variant: access separation 2{'C33': 'SEP-1', 'C62': 'SEP-2'}{'C33': 'SEP-1', 'C46': 'H0-A3', 'C56': 'H0-A1', 'C62': 'SEP-2'}Failed
boundary control 3{'C2': 'SEP-1'}{'C1': 'H1-A1', 'C2': 'SEP-1'}Failed
boundary control 4{}{'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}Failed
normal control 5{'C05': 'SEP-2', 'C50': 'SEP-1'}{'C04': 'H0-A1', 'C05': 'SEP-2', 'C50': 'SEP-1'}Failed
normal control 6{'C17': 'SEP-3', 'C26': 'SEP-1', 'C82': 'SEP-4', 'C93': 'SEP-2'}{'C07': 'H0-C3', 'C17': 'SEP-3', 'C24': 'H0-C1', 'C26': 'SEP-1', 'C81': 'H0-A3', 'C82': 'SEP-4', 'C86': 'H0-A1', 'C93': 'SEP-2'}Failed
normal control 7{}{'C07': 'H0-A1', 'C48': 'H0-A3'}Failed
normal control 8{'C47': 'SEP-1'}{'C22': 'H0-A1', 'C26': 'H0-A5', 'C44': 'H0-C1', 'C47': 'SEP-1', 'C77': 'H0-A3'}Failed

SHA-256 / 70037a703e6b31744d7b14db5a6462eb95c6a926c3a04fe9ac3bb8d9c2c90654

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 8 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.

Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.

Member access is invitation-based. Sign in with your invited account to inspect the repair.

Sign in to the archive ↗

Verification & scope

Stipulated toy exam-timetabling rule set for a bounded model; it does not claim conformance with any institution's regulations or a benchmark specification, and it performs no search or optimisation. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.

Observations recorded using Python 3.12.14 at 2026-09-29T14:52:05.299713+00:00.

Case digest / fe504a10b3f70c123a70b86ba1992c6ffdc36d68f8279d14d476af6446f6a1e1