FAILURE MAP
← Case archive

FA-94531 / Exam timetabling constraints / Open access

Seat labels use zero-based column numbers · case 01

Candidates are directed to seat A0, which does not exist on the floor plan.

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

ROOT CAUSE

The column number is not converted to one-based.

THE FAILURE

The column number is not converted to one-based.

Unsuccessful approach: Numbering usable seats consecutively does not match the physical column labels.

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([c for c in cands if not c[3]], 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))
    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: seat column label 1',
   [[['C1', 'Strauß', 'Anna', 0], ['C2', 'Strausz', 'Ben', 0]], [['H1', 1, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3'}),
  ('regression variant: seat column label 2',
   [[['C62', 'Strausz', 'Ben', 0], ['C51', 'Zhou', 'Li', 0], ['C63', 'Öberg', 'Ola', 0],
     ['C48', 'Mason', 'Zed', 0], ['C80', 'strauss', 'Cara', 0], ['C60', 'Adams', 'eve', 0]],
    [['H0', 1, 5], ['H1', 2, 5]]],
   {'C60': 'H0-A1', 'C48': 'H0-A3', 'C80': 'H0-A5', 'C62': 'H1-A1', 'C51': 'H1-A3', 'C63': 'H1-A5'}),
  ('partial repair guard 3',
   [[['C57', 'Mason', 'amy', 0], ['C27', 'Mason', 'Amy', 0], ['C18', 'strauss', 'Cara', 0]],
    [['H0', 5, 3], ['H1', 4, 5]]],
   {'C27': 'H0-A1', 'C57': 'H0-A3', 'C18': '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',
   [[['C49', 'adams', 'Dan', 0], ['C16', 'Zhou', 'Li', 0], ['C55', 'Mason', 'Zed', 0]], [['H0', 1, 5]]],
   {'C49': 'H0-A1', 'C55': 'H0-A3', 'C16': 'H0-A5'}),
  ('normal control 7',
   [[['C95', 'Strauß', 'Anna', 0], ['C92', 'Mason', 'amy', 0], ['C84', 'Zhou', 'Li', 0],
     ['C29', 'Mason', 'Zed', 0], ['C86', 'Adams', 'eve', 0], ['C09', 'Öberg', 'Ola', 0],
     ['C13', 'adams', 'Dan', 0], ['C87', 'Strausz', 'Ben', 0]],
    [['H0', 5, 2]]],
   {'C13': 'H0-A1',
    'C86': 'H0-C1',
    'C92': 'H0-E1',
    'C29': 'UNSEATED',
    'C95': 'UNSEATED',
    'C87': 'UNSEATED',
    'C84': 'UNSEATED',
    'C09': 'UNSEATED'}),
  ('normal control 8',
   [[['C17', 'Strauß', 'Anna', 0], ['C46', 'Strausz', 'Ben', 0], ['C87', 'Adams', 'eve', 0],
     ['C91', 'Zhou', 'Li', 0], ['C82', 'Mason', 'Amy', 0], ['C66', 'Mason', 'amy', 0]],
    [['H0', 1, 5], ['H1', 1, 1]]],
   {'C87': 'H0-A1', 'C66': 'H0-A3', 'C82': 'H0-A5', 'C17': 'H1-A1', 'C46': 'UNSEATED', 'C91': 'UNSEATED'})],
 [('regression: seat column label 1',
   [[['C1', 'Mason', 'amy', 0], ['C2', 'Mason', 'Ben', 0]], [['H1', 1, 3]]], {'C1': 'H1-A1', 'C2': 'H1-A3'}),
  ('regression variant: seat column label 2',
   [[['C18', 'Mason', 'Amy', 0], ['C17', 'strauss', 'Cara', 0], ['C06', 'Mason', 'Zed', 0],
     ['C23', 'Zhou', 'Li', 0], ['C04', 'Strausz', 'Ben', 0]],
    [['H0', 4, 4]]],
   {'C18': 'H0-A1', 'C06': 'H0-A3', 'C17': 'H0-C1', 'C04': 'H0-C3', 'C23': 'UNSEATED'}),
  ('partial repair guard 3',
   [[['C19', 'strauss', 'Cara', 0], ['C27', 'adams', 'Dan', 0], ['C94', 'Strausz', 'Ben', 0]],
    [['H0', 4, 4], ['H1', 1, 2]]],
   {'C27': 'H0-A1', 'C19': 'H0-A3', 'C94': 'H0-C1'}),
  ('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',
   [[['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 7',
   [[['C39', 'Strauß', 'Anna', 0], ['C47', 'Mason', 'Amy', 0], ['C05', 'Zhou', 'Li', 0]], [['H0', 4, 1]]],
   {'C47': 'H0-A1', 'C39': 'H0-C1', 'C05': 'UNSEATED'}),
  ('normal control 8',
   [[['C38', 'Strausz', 'Ben', 0], ['C82', 'Adams', 'eve', 1]], [['H0', 3, 1], ['H1', 1, 5]]],
   {'C38': 'H0-A1', 'C82': 'SEP-1'})],
 [('regression: seat column label 1',
   [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0], ['C3', 'Cole', 'Bo', 0]], [['H1', 3, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}),
  ('regression variant: seat column label 2',
   [[['C66', 'Mason', 'amy', 0], ['C58', 'Adams', 'eve', 0], ['C48', 'Strauß', 'Anna', 0],
     ['C37', 'Strausz', 'Ben', 0], ['C92', 'Zhou', 'Li', 1], ['C53', 'Öberg', 'Ola', 1]],
    [['H0', 1, 3], ['H1', 5, 1]]],
   {'C58': 'H0-A1', 'C66': 'H0-A3', 'C48': 'H1-A1', 'C37': 'H1-C1', 'C92': 'SEP-1', 'C53': 'SEP-2'}),
  ('partial repair guard 3',
   [[['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'}),
  ('boundary control 4', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('normal control 5',
   [[['C68', 'Strauß', 'Anna', 0], ['C07', 'Mason', 'amy', 0], ['C61', 'Mason', 'Amy', 0]], [['H0', 1, 1]]],
   {'C07': 'H0-A1', 'C61': 'UNSEATED', 'C68': 'UNSEATED'}),
  ('normal control 6',
   [[['C93', 'Strausz', 'Ben', 0], ['C90', 'Öberg', 'Ola', 0], ['C15', 'Strauß', 'Anna', 0],
     ['C11', 'Adams', 'eve', 0], ['C57', 'Mason', 'amy', 0], ['C31', 'Mason', 'Amy', 0]],
    [['H0', 1, 4], ['H1', 2, 3]]],
   {'C11': 'H0-A1', 'C31': 'H0-A3', 'C57': 'H1-A1', 'C15': 'H1-A3', 'C93': 'UNSEATED', 'C90': 'UNSEATED'}),
  ('normal control 7',
   [[['C94', 'Öberg', 'Ola', 0], ['C23', 'Mason', 'Zed', 0], ['C54', 'Strauß', 'Anna', 0],
     ['C09', 'Mason', 'amy', 0], ['C24', 'Zhou', 'Li', 0]],
    [['H0', 2, 5]]],
   {'C09': 'H0-A1', 'C23': 'H0-A3', 'C54': 'H0-A5', 'C24': 'UNSEATED', 'C94': 'UNSEATED'}),
  ('normal control 8',
   [[['C42', 'Mason', 'amy', 0], ['C83', 'Mason', 'Zed', 0], ['C60', 'Strauß', 'Anna', 0],
     ['C82', 'Öberg', 'Ola', 0]],
    [['H0', 4, 2]]],
   {'C42': 'H0-A1', 'C83': 'H0-C1', 'C60': 'UNSEATED', 'C82': 'UNSEATED'})],
 [('regression: seat column label 1', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('regression variant: seat column label 2',
   [[['C63', 'Mason', 'Amy', 0], ['C05', 'strauss', 'Cara', 0], ['C94', 'Mason', 'Zed', 0],
     ['C20', 'Strausz', 'Ben', 0], ['C45', 'Zhou', 'Li', 0], ['C14', 'Adams', 'eve', 0],
     ['C43', 'Öberg', 'Ola', 0]],
    [['H0', 3, 4]]],
   {'C14': 'H0-A1',
    'C63': 'H0-A3',
    'C94': 'H0-C1',
    'C05': 'H0-C3',
    'C20': 'UNSEATED',
    'C45': 'UNSEATED',
    'C43': 'UNSEATED'}),
  ('partial repair guard 3',
   [[['C24', 'Adams', 'eve', 0], ['C93', 'Mason', 'amy', 0], ['C38', 'Mason', 'Amy', 0],
     ['C06', 'Strauß', 'Anna', 1], ['C85', 'adams', 'Dan', 0], ['C18', 'Zhou', 'Li', 1],
     ['C98', 'strauss', 'Cara', 0]],
    [['H0', 5, 1], ['H1', 4, 5]]],
   {'C85': 'H0-A1',
    'C24': 'H0-C1',
    'C38': 'H0-E1',
    'C93': 'H1-A1',
    'C98': 'H1-A3',
    'C06': 'SEP-1',
    'C18': 'SEP-2'}),
  ('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',
   [[['C62', 'Adams', 'eve', 0], ['C70', 'Mason', 'Zed', 0], ['C03', 'strauss', 'Cara', 0],
     ['C93', 'Zhou', 'Li', 1]],
    [['H0', 4, 2]]],
   {'C62': 'H0-A1', 'C70': 'H0-C1', 'C03': 'UNSEATED', 'C93': 'SEP-1'}),
  ('normal control 7',
   [[['C80', 'Strauß', 'Anna', 0], ['C66', 'Öberg', 'Ola', 0], ['C21', 'strauss', 'Cara', 0],
     ['C60', 'Adams', 'eve', 0], ['C02', 'Mason', 'Amy', 0], ['C39', 'Strausz', 'Ben', 0],
     ['C85', 'Mason', 'amy', 0]],
    [['H0', 4, 3], ['H1', 3, 4]]],
   {'C60': 'H0-A1',
    'C02': 'H0-A3',
    'C85': 'H0-C1',
    'C80': 'H0-C3',
    'C21': 'H1-A1',
    'C39': 'H1-A3',
    'C66': 'H1-C1'}),
  ('normal control 8', [[['C15', 'Mason', 'Amy', 0], ['C27', 'Strauß', 'Anna', 0]], [['H0', 5, 2]]],
   {'C15': 'H0-A1', 'C27': 'H0-C1'})],
 [('regression: seat column label 1', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'UNSEATED'}),
  ('regression variant: seat column label 2',
   [[['C35', 'Zhou', 'Li', 0], ['C53', 'Öberg', 'Ola', 1], ['C78', 'Mason', 'Zed', 0],
     ['C50', 'Adams', 'eve', 0], ['C31', 'strauss', 'Cara', 1]],
    [['H0', 3, 2]]],
   {'C50': 'H0-A1', 'C78': 'H0-C1', 'C35': 'UNSEATED', 'C31': 'SEP-1', 'C53': 'SEP-2'}),
  ('partial repair guard 3',
   [[['C37', 'Mason', 'Zed', 0], ['C98', 'Mason', 'amy', 0], ['C52', 'Mason', 'Amy', 0],
     ['C04', 'adams', 'Dan', 0], ['C07', 'Strausz', 'Ben', 0], ['C08', 'Strauß', 'Anna', 0],
     ['C91', 'strauss', 'Cara', 1]],
    [['H0', 3, 4]]],
   {'C04': 'H0-A1',
    'C52': 'H0-A3',
    'C98': 'H0-C1',
    'C37': 'H0-C3',
    'C08': 'UNSEATED',
    'C07': 'UNSEATED',
    'C91': 'SEP-1'}),
  ('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',
   [[['C74', 'Mason', 'amy', 0], ['C36', 'strauss', 'Cara', 0], ['C54', 'Strausz', 'Ben', 0],
     ['C26', 'adams', 'Dan', 0], ['C37', 'Zhou', 'Li', 1], ['C30', 'Adams', 'eve', 0]],
    [['H0', 4, 5]]],
   {'C26': 'H0-A1', 'C30': 'H0-A3', 'C74': 'H0-A5', 'C36': 'H0-C1', 'C54': 'H0-C3', 'C37': 'SEP-1'}),
  ('normal control 7',
   [[['C03', 'Öberg', 'Ola', 0], ['C78', 'Mason', 'Zed', 0], ['C99', 'Strauß', 'Anna', 0]],
    [['H0', 1, 4], ['H1', 3, 2]]],
   {'C78': 'H0-A1', 'C99': 'H0-A3', 'C03': 'H1-A1'}),
  ('normal control 8',
   [[['C91', 'Mason', 'Zed', 0], ['C81', 'adams', 'Dan', 0], ['C34', 'Strauß', 'Anna', 0],
     ['C09', 'Zhou', 'Li', 0]],
    [['H0', 3, 2]]],
   {'C81': 'H0-A1', 'C91': 'H0-C1', 'C34': 'UNSEATED', 'C09': 'UNSEATED'})]]
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: seat column label 1{'C1': 'H1-A0', 'C2': 'H1-A2'}{'C1': 'H1-A1', 'C2': 'H1-A3'}Failed
regression variant: seat column label 2{'C48': 'H0-A2', 'C51': 'H1-A2', 'C60': 'H0-A0', 'C62': 'H1-A0', 'C63': 'H1-A4', 'C80': 'H0-A4'}{'C48': 'H0-A3', 'C51': 'H1-A3', 'C60': 'H0-A1', 'C62': 'H1-A1', 'C63': 'H1-A5', 'C80': 'H0-A5'}Failed
partial repair guard 3{'C18': 'H0-C0', 'C27': 'H0-A0', 'C57': 'H0-A2'}{'C18': 'H0-C1', 'C27': 'H0-A1', 'C57': 'H0-A3'}Failed
boundary control 4{'C1': 'H1-A0', 'C2': 'SEP-1'}{'C1': 'H1-A1', 'C2': 'SEP-1'}Failed
boundary control 5{'C1': 'H1-A0', 'C2': 'H1-A2', 'C3': 'H1-C0'}{'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}Failed
normal control 6{'C16': 'H0-A4', 'C49': 'H0-A0', 'C55': 'H0-A2'}{'C16': 'H0-A5', 'C49': 'H0-A1', 'C55': 'H0-A3'}Failed
normal control 7{'C09': 'UNSEATED', 'C13': 'H0-A0', 'C29': 'UNSEATED', 'C84': 'UNSEATED', 'C86': 'H0-C0', 'C87': 'UNSEATED', 'C92': 'H0-E0', 'C95': 'UNSEATED'}{'C09': 'UNSEATED', 'C13': 'H0-A1', 'C29': 'UNSEATED', 'C84': 'UNSEATED', 'C86': 'H0-C1', 'C87': 'UNSEATED', 'C92': 'H0-E1', 'C95': 'UNSEATED'}Failed
normal control 8{'C17': 'H1-A0', 'C46': 'UNSEATED', 'C66': 'H0-A2', 'C82': 'H0-A4', 'C87': 'H0-A0', 'C91': 'UNSEATED'}{'C17': 'H1-A1', 'C46': 'UNSEATED', 'C66': 'H0-A3', 'C82': 'H0-A5', 'C87': 'H0-A1', 'C91': 'UNSEATED'}Failed

SHA-256 / 2382c2dc861ae73a44790acb78e494a238fdca944ac3eac75291f3fa6c036c44

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 not c[3]], 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 // 2 + 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: seat column label 1',
   [[['C1', 'Strauß', 'Anna', 0], ['C2', 'Strausz', 'Ben', 0]], [['H1', 1, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3'}),
  ('regression variant: seat column label 2',
   [[['C62', 'Strausz', 'Ben', 0], ['C51', 'Zhou', 'Li', 0], ['C63', 'Öberg', 'Ola', 0],
     ['C48', 'Mason', 'Zed', 0], ['C80', 'strauss', 'Cara', 0], ['C60', 'Adams', 'eve', 0]],
    [['H0', 1, 5], ['H1', 2, 5]]],
   {'C60': 'H0-A1', 'C48': 'H0-A3', 'C80': 'H0-A5', 'C62': 'H1-A1', 'C51': 'H1-A3', 'C63': 'H1-A5'}),
  ('partial repair guard 3',
   [[['C57', 'Mason', 'amy', 0], ['C27', 'Mason', 'Amy', 0], ['C18', 'strauss', 'Cara', 0]],
    [['H0', 5, 3], ['H1', 4, 5]]],
   {'C27': 'H0-A1', 'C57': 'H0-A3', 'C18': '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',
   [[['C49', 'adams', 'Dan', 0], ['C16', 'Zhou', 'Li', 0], ['C55', 'Mason', 'Zed', 0]], [['H0', 1, 5]]],
   {'C49': 'H0-A1', 'C55': 'H0-A3', 'C16': 'H0-A5'}),
  ('normal control 7',
   [[['C95', 'Strauß', 'Anna', 0], ['C92', 'Mason', 'amy', 0], ['C84', 'Zhou', 'Li', 0],
     ['C29', 'Mason', 'Zed', 0], ['C86', 'Adams', 'eve', 0], ['C09', 'Öberg', 'Ola', 0],
     ['C13', 'adams', 'Dan', 0], ['C87', 'Strausz', 'Ben', 0]],
    [['H0', 5, 2]]],
   {'C13': 'H0-A1',
    'C86': 'H0-C1',
    'C92': 'H0-E1',
    'C29': 'UNSEATED',
    'C95': 'UNSEATED',
    'C87': 'UNSEATED',
    'C84': 'UNSEATED',
    'C09': 'UNSEATED'}),
  ('normal control 8',
   [[['C17', 'Strauß', 'Anna', 0], ['C46', 'Strausz', 'Ben', 0], ['C87', 'Adams', 'eve', 0],
     ['C91', 'Zhou', 'Li', 0], ['C82', 'Mason', 'Amy', 0], ['C66', 'Mason', 'amy', 0]],
    [['H0', 1, 5], ['H1', 1, 1]]],
   {'C87': 'H0-A1', 'C66': 'H0-A3', 'C82': 'H0-A5', 'C17': 'H1-A1', 'C46': 'UNSEATED', 'C91': 'UNSEATED'})],
 [('regression: seat column label 1',
   [[['C1', 'Mason', 'amy', 0], ['C2', 'Mason', 'Ben', 0]], [['H1', 1, 3]]], {'C1': 'H1-A1', 'C2': 'H1-A3'}),
  ('regression variant: seat column label 2',
   [[['C18', 'Mason', 'Amy', 0], ['C17', 'strauss', 'Cara', 0], ['C06', 'Mason', 'Zed', 0],
     ['C23', 'Zhou', 'Li', 0], ['C04', 'Strausz', 'Ben', 0]],
    [['H0', 4, 4]]],
   {'C18': 'H0-A1', 'C06': 'H0-A3', 'C17': 'H0-C1', 'C04': 'H0-C3', 'C23': 'UNSEATED'}),
  ('partial repair guard 3',
   [[['C19', 'strauss', 'Cara', 0], ['C27', 'adams', 'Dan', 0], ['C94', 'Strausz', 'Ben', 0]],
    [['H0', 4, 4], ['H1', 1, 2]]],
   {'C27': 'H0-A1', 'C19': 'H0-A3', 'C94': 'H0-C1'}),
  ('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',
   [[['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 7',
   [[['C39', 'Strauß', 'Anna', 0], ['C47', 'Mason', 'Amy', 0], ['C05', 'Zhou', 'Li', 0]], [['H0', 4, 1]]],
   {'C47': 'H0-A1', 'C39': 'H0-C1', 'C05': 'UNSEATED'}),
  ('normal control 8',
   [[['C38', 'Strausz', 'Ben', 0], ['C82', 'Adams', 'eve', 1]], [['H0', 3, 1], ['H1', 1, 5]]],
   {'C38': 'H0-A1', 'C82': 'SEP-1'})],
 [('regression: seat column label 1',
   [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0], ['C3', 'Cole', 'Bo', 0]], [['H1', 3, 3]]],
   {'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}),
  ('regression variant: seat column label 2',
   [[['C66', 'Mason', 'amy', 0], ['C58', 'Adams', 'eve', 0], ['C48', 'Strauß', 'Anna', 0],
     ['C37', 'Strausz', 'Ben', 0], ['C92', 'Zhou', 'Li', 1], ['C53', 'Öberg', 'Ola', 1]],
    [['H0', 1, 3], ['H1', 5, 1]]],
   {'C58': 'H0-A1', 'C66': 'H0-A3', 'C48': 'H1-A1', 'C37': 'H1-C1', 'C92': 'SEP-1', 'C53': 'SEP-2'}),
  ('partial repair guard 3',
   [[['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'}),
  ('boundary control 4', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('normal control 5',
   [[['C68', 'Strauß', 'Anna', 0], ['C07', 'Mason', 'amy', 0], ['C61', 'Mason', 'Amy', 0]], [['H0', 1, 1]]],
   {'C07': 'H0-A1', 'C61': 'UNSEATED', 'C68': 'UNSEATED'}),
  ('normal control 6',
   [[['C93', 'Strausz', 'Ben', 0], ['C90', 'Öberg', 'Ola', 0], ['C15', 'Strauß', 'Anna', 0],
     ['C11', 'Adams', 'eve', 0], ['C57', 'Mason', 'amy', 0], ['C31', 'Mason', 'Amy', 0]],
    [['H0', 1, 4], ['H1', 2, 3]]],
   {'C11': 'H0-A1', 'C31': 'H0-A3', 'C57': 'H1-A1', 'C15': 'H1-A3', 'C93': 'UNSEATED', 'C90': 'UNSEATED'}),
  ('normal control 7',
   [[['C94', 'Öberg', 'Ola', 0], ['C23', 'Mason', 'Zed', 0], ['C54', 'Strauß', 'Anna', 0],
     ['C09', 'Mason', 'amy', 0], ['C24', 'Zhou', 'Li', 0]],
    [['H0', 2, 5]]],
   {'C09': 'H0-A1', 'C23': 'H0-A3', 'C54': 'H0-A5', 'C24': 'UNSEATED', 'C94': 'UNSEATED'}),
  ('normal control 8',
   [[['C42', 'Mason', 'amy', 0], ['C83', 'Mason', 'Zed', 0], ['C60', 'Strauß', 'Anna', 0],
     ['C82', 'Öberg', 'Ola', 0]],
    [['H0', 4, 2]]],
   {'C42': 'H0-A1', 'C83': 'H0-C1', 'C60': 'UNSEATED', 'C82': 'UNSEATED'})],
 [('regression: seat column label 1', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 1]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'SEP-1'}),
  ('regression variant: seat column label 2',
   [[['C63', 'Mason', 'Amy', 0], ['C05', 'strauss', 'Cara', 0], ['C94', 'Mason', 'Zed', 0],
     ['C20', 'Strausz', 'Ben', 0], ['C45', 'Zhou', 'Li', 0], ['C14', 'Adams', 'eve', 0],
     ['C43', 'Öberg', 'Ola', 0]],
    [['H0', 3, 4]]],
   {'C14': 'H0-A1',
    'C63': 'H0-A3',
    'C94': 'H0-C1',
    'C05': 'H0-C3',
    'C20': 'UNSEATED',
    'C45': 'UNSEATED',
    'C43': 'UNSEATED'}),
  ('partial repair guard 3',
   [[['C24', 'Adams', 'eve', 0], ['C93', 'Mason', 'amy', 0], ['C38', 'Mason', 'Amy', 0],
     ['C06', 'Strauß', 'Anna', 1], ['C85', 'adams', 'Dan', 0], ['C18', 'Zhou', 'Li', 1],
     ['C98', 'strauss', 'Cara', 0]],
    [['H0', 5, 1], ['H1', 4, 5]]],
   {'C85': 'H0-A1',
    'C24': 'H0-C1',
    'C38': 'H0-E1',
    'C93': 'H1-A1',
    'C98': 'H1-A3',
    'C06': 'SEP-1',
    'C18': 'SEP-2'}),
  ('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',
   [[['C62', 'Adams', 'eve', 0], ['C70', 'Mason', 'Zed', 0], ['C03', 'strauss', 'Cara', 0],
     ['C93', 'Zhou', 'Li', 1]],
    [['H0', 4, 2]]],
   {'C62': 'H0-A1', 'C70': 'H0-C1', 'C03': 'UNSEATED', 'C93': 'SEP-1'}),
  ('normal control 7',
   [[['C80', 'Strauß', 'Anna', 0], ['C66', 'Öberg', 'Ola', 0], ['C21', 'strauss', 'Cara', 0],
     ['C60', 'Adams', 'eve', 0], ['C02', 'Mason', 'Amy', 0], ['C39', 'Strausz', 'Ben', 0],
     ['C85', 'Mason', 'amy', 0]],
    [['H0', 4, 3], ['H1', 3, 4]]],
   {'C60': 'H0-A1',
    'C02': 'H0-A3',
    'C85': 'H0-C1',
    'C80': 'H0-C3',
    'C21': 'H1-A1',
    'C39': 'H1-A3',
    'C66': 'H1-C1'}),
  ('normal control 8', [[['C15', 'Mason', 'Amy', 0], ['C27', 'Strauß', 'Anna', 0]], [['H0', 5, 2]]],
   {'C15': 'H0-A1', 'C27': 'H0-C1'})],
 [('regression: seat column label 1', [[['C1', 'Adams', 'Eve', 0], ['C2', 'Baker', 'Al', 0]], [['H1', 1, 1]]],
   {'C1': 'H1-A1', 'C2': 'UNSEATED'}),
  ('regression variant: seat column label 2',
   [[['C35', 'Zhou', 'Li', 0], ['C53', 'Öberg', 'Ola', 1], ['C78', 'Mason', 'Zed', 0],
     ['C50', 'Adams', 'eve', 0], ['C31', 'strauss', 'Cara', 1]],
    [['H0', 3, 2]]],
   {'C50': 'H0-A1', 'C78': 'H0-C1', 'C35': 'UNSEATED', 'C31': 'SEP-1', 'C53': 'SEP-2'}),
  ('partial repair guard 3',
   [[['C37', 'Mason', 'Zed', 0], ['C98', 'Mason', 'amy', 0], ['C52', 'Mason', 'Amy', 0],
     ['C04', 'adams', 'Dan', 0], ['C07', 'Strausz', 'Ben', 0], ['C08', 'Strauß', 'Anna', 0],
     ['C91', 'strauss', 'Cara', 1]],
    [['H0', 3, 4]]],
   {'C04': 'H0-A1',
    'C52': 'H0-A3',
    'C98': 'H0-C1',
    'C37': 'H0-C3',
    'C08': 'UNSEATED',
    'C07': 'UNSEATED',
    'C91': 'SEP-1'}),
  ('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',
   [[['C74', 'Mason', 'amy', 0], ['C36', 'strauss', 'Cara', 0], ['C54', 'Strausz', 'Ben', 0],
     ['C26', 'adams', 'Dan', 0], ['C37', 'Zhou', 'Li', 1], ['C30', 'Adams', 'eve', 0]],
    [['H0', 4, 5]]],
   {'C26': 'H0-A1', 'C30': 'H0-A3', 'C74': 'H0-A5', 'C36': 'H0-C1', 'C54': 'H0-C3', 'C37': 'SEP-1'}),
  ('normal control 7',
   [[['C03', 'Öberg', 'Ola', 0], ['C78', 'Mason', 'Zed', 0], ['C99', 'Strauß', 'Anna', 0]],
    [['H0', 1, 4], ['H1', 3, 2]]],
   {'C78': 'H0-A1', 'C99': 'H0-A3', 'C03': 'H1-A1'}),
  ('normal control 8',
   [[['C91', 'Mason', 'Zed', 0], ['C81', 'adams', 'Dan', 0], ['C34', 'Strauß', 'Anna', 0],
     ['C09', 'Zhou', 'Li', 0]],
    [['H0', 3, 2]]],
   {'C81': 'H0-A1', 'C91': 'H0-C1', 'C34': 'UNSEATED', 'C09': 'UNSEATED'})]]
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: seat column label 1{'C1': 'H1-A1', 'C2': 'H1-A2'}{'C1': 'H1-A1', 'C2': 'H1-A3'}Failed
regression variant: seat column label 2{'C48': 'H0-A2', 'C51': 'H1-A2', 'C60': 'H0-A1', 'C62': 'H1-A1', 'C63': 'H1-A3', 'C80': 'H0-A3'}{'C48': 'H0-A3', 'C51': 'H1-A3', 'C60': 'H0-A1', 'C62': 'H1-A1', 'C63': 'H1-A5', 'C80': 'H0-A5'}Failed
partial repair guard 3{'C18': 'H0-C1', 'C27': 'H0-A1', 'C57': 'H0-A2'}{'C18': 'H0-C1', 'C27': 'H0-A1', 'C57': 'H0-A3'}Failed
boundary control 4{'C1': 'H1-A1', 'C2': 'SEP-1'}{'C1': 'H1-A1', 'C2': 'SEP-1'}Passed
boundary control 5{'C1': 'H1-A1', 'C2': 'H1-A2', 'C3': 'H1-C1'}{'C1': 'H1-A1', 'C2': 'H1-A3', 'C3': 'H1-C1'}Failed
normal control 6{'C16': 'H0-A3', 'C49': 'H0-A1', 'C55': 'H0-A2'}{'C16': 'H0-A5', 'C49': 'H0-A1', 'C55': 'H0-A3'}Failed
normal control 7{'C09': 'UNSEATED', 'C13': 'H0-A1', 'C29': 'UNSEATED', 'C84': 'UNSEATED', 'C86': 'H0-C1', 'C87': 'UNSEATED', 'C92': 'H0-E1', 'C95': 'UNSEATED'}{'C09': 'UNSEATED', 'C13': 'H0-A1', 'C29': 'UNSEATED', 'C84': 'UNSEATED', 'C86': 'H0-C1', 'C87': 'UNSEATED', 'C92': 'H0-E1', 'C95': 'UNSEATED'}Passed
normal control 8{'C17': 'H1-A1', 'C46': 'UNSEATED', 'C66': 'H0-A2', 'C82': 'H0-A3', 'C87': 'H0-A1', 'C91': 'UNSEATED'}{'C17': 'H1-A1', 'C46': 'UNSEATED', 'C66': 'H0-A3', 'C82': 'H0-A5', 'C87': 'H0-A1', 'C91': 'UNSEATED'}Failed

SHA-256 / 1691c7f05426158db810dddc01070cea1d7daebf73ac6841cf222d6e528d3a17

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.254530+00:00.

Case digest / a16dd13d394ef41a0e92f880f3d9b165777d173ea5b897f3beadf0c2159d0539