{"abstract":"Segment identifiers continue across packed rows.","category":"Sequence batch packing","checks":6,"contract":"For each row of packed sequence lengths, label tokens with that row-local sequence index; numbering restarts at zero per row.","contract_signature":"rows","evaluation_group":"w3-seqpack-segment-id-v1","failed_approach":"Starting at one only changes the initial label and keeps the ownership convention wrong.","family":"w3-sequence-batch-packing-segment-id-reset","id":"FA-98081","implementations":{"attempt":{"sha256":"26a442c6904dc98d2e0f658480daa686dd660e5c8b95bdc8e90c719237a14c54","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    return [[j for j,length in enumerate(row,1) for _ in range(length)] for row in rows]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('two rows reset', solve([[N,1],[2]]), [[0]*N+[1],[0,0]])\ncheck('empty batch', solve([]), [])\ncheck('empty row', solve([[]]), [[]])\ncheck('zero length segment', solve([[0,N]]), [([1]*N)])\ncheck('three owners', solve([[1,2,1]]), [[0,1,1,2]])\ncheck('equal lengths distinct', solve([[N,N]]), [[0]*N+[1]*N])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"7569d76a4fc499727c8a11bae25100b6a8fd6073181944a6ab908655f2a32154","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows):\n    out=[]; base=0\n    for row in rows:\n        out.append([base+j for j,length in enumerate(row) for _ in range(length)])\n        base+=len(row)\n    return out\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('two rows reset', solve([[N,1],[2]]), [[0]*N+[1],[0,0]])\ncheck('empty batch', solve([]), [])\ncheck('empty row', solve([[]]), [[]])\ncheck('zero length segment', solve([[0,N]]), [([1]*N)])\ncheck('three owners', solve([[1,2,1]]), [[0,1,1,2]])\ncheck('equal lengths distinct', solve([[N,N]]), [[0]*N+[1]*N])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"Inputs are short integer-token lists under the stated toy contract; results do not claim compatibility with a specific training framework. 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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w3-sequence-batch-packing-segment-id-reset","generated_at":"2026-09-30T16:48:09.322592+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This deterministic toy packing rule models a common boundary in preparing bounded training sequences.","root_cause":"A global segment counter is carried between rows instead of restarting for each packed row.","sha256":"87fd076c641b52bb472bccb51b66810bb92c8bf760ce7305e901ed328c5148f9","title":"Segment identifiers continue across packed rows · case 01","variant":1,"variant_policy":"The fixture code references N, supplied as 1 through 5. Fixed boundary checks may repeat. These records share one mechanism and must remain together in evaluation splits.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":27.966,"exit_code":1,"observations":[{"actual":[[1,2],[1,1]],"check":"two rows reset","expected":[[0,1],[0,0]],"passed":false},{"actual":[],"check":"empty batch","expected":[],"passed":true},{"actual":[[]],"check":"empty row","expected":[[]],"passed":true},{"actual":[[2]],"check":"zero length segment","expected":[[1]],"passed":false},{"actual":[[1,2,2,3]],"check":"three owners","expected":[[0,1,1,2]],"passed":false},{"actual":[[1,2]],"check":"equal lengths distinct","expected":[[0,1]],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"two rows reset\", \"actual\": [[1, 2], [1, 1]], \"expected\": [[0, 1], [0, 0]], \"passed\": false}, {\"check\": \"empty batch\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty row\", \"actual\": [[]], \"expected\": [[]], \"passed\": true}, {\"check\": \"zero length segment\", \"actual\": [[2]], \"expected\": [[1]], \"passed\": false}, {\"check\": \"three owners\", \"actual\": [[1, 2, 2, 3]], \"expected\": [[0, 1, 1, 2]], \"passed\": false}, {\"check\": \"equal lengths distinct\", \"actual\": [[1, 2]], \"expected\": [[0, 1]], \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.178,"exit_code":1,"observations":[{"actual":[[0,1],[2,2]],"check":"two rows reset","expected":[[0,1],[0,0]],"passed":false},{"actual":[],"check":"empty batch","expected":[],"passed":true},{"actual":[[]],"check":"empty row","expected":[[]],"passed":true},{"actual":[[1]],"check":"zero length segment","expected":[[1]],"passed":true},{"actual":[[0,1,1,2]],"check":"three owners","expected":[[0,1,1,2]],"passed":true},{"actual":[[0,1]],"check":"equal lengths distinct","expected":[[0,1]],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"two rows reset\", \"actual\": [[0, 1], [2, 2]], \"expected\": [[0, 1], [0, 0]], \"passed\": false}, {\"check\": \"empty batch\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty row\", \"actual\": [[]], \"expected\": [[]], \"passed\": true}, {\"check\": \"zero length segment\", \"actual\": [[1]], \"expected\": [[1]], \"passed\": true}, {\"check\": \"three owners\", \"actual\": [[0, 1, 1, 2]], \"expected\": [[0, 1, 1, 2]], \"passed\": true}, {\"check\": \"equal lengths distinct\", \"actual\": [[0, 1]], \"expected\": [[0, 1]], \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}