FA-99686 / Chunk citation alignment / Open access
Citation IDs point to the pre-merge source table · case 01
Citation IDs point to the pre-merge source table.
ROOT CAUSE
Compaction remaps source rows but leaves citation indices unchanged.
THE FAILURE
Compaction remaps source rows but leaves citation indices unchanged.
Unsuccessful approach: Remapping only the first citation in a list leaves later references stale.
Case contract
Given mapping pairs [old,new] and citation indices, replace each mapped index and preserve unmapped IDs.
Why this case matters
A deterministic citation bookkeeping model isolates source attribution from rendering and retrieval.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(mapping, ids):
return list(ids)
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('remap all',solve([[0,4],[2,1]],[0,2,3]),[4,1,3])
check('identity',solve([], [0,1]),[0,1])
check('single mapped',solve([[3,8]],[3]),[8])
check('empty ids',solve([[0,1]],[]),[])
check('repeated id',solve([[2,7]],[2,2]),[7,7])
check('unmapped between',solve([[1,9]],[0,1,2]),[0,9,2])
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| remap all | [0, 2, 3] | [4, 1, 3] | Failed |
| identity | [0, 1] | [0, 1] | Passed |
| single mapped | [3] | [8] | Failed |
| empty ids | [] | [] | Passed |
| repeated id | [2, 2] | [7, 7] | Failed |
| unmapped between | [0, 1, 2] | [0, 9, 2] | Failed |
SHA-256 / 80e6ca14c6eb6d5a4d64a0eb8e6d50d7846505af6ff0b109f7d0a3936805d2ea
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(mapping, ids):
m=dict(mapping)
return [m.get(x,x) for x in ids[:1]]+ids[1:]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('remap all',solve([[0,4],[2,1]],[0,2,3]),[4,1,3])
check('identity',solve([], [0,1]),[0,1])
check('single mapped',solve([[3,8]],[3]),[8])
check('empty ids',solve([[0,1]],[]),[])
check('repeated id',solve([[2,7]],[2,2]),[7,7])
check('unmapped between',solve([[1,9]],[0,1,2]),[0,9,2])
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 fixture | Actual | Expected | Outcome |
|---|---|---|---|
| remap all | [4, 2, 3] | [4, 1, 3] | Failed |
| identity | [0, 1] | [0, 1] | Passed |
| single mapped | [8] | [8] | Passed |
| empty ids | [] | [] | Passed |
| repeated id | [7, 2] | [7, 7] | Failed |
| unmapped between | [0, 1, 2] | [0, 9, 2] | Failed |
SHA-256 / 6f5e930ac53c60d7b6f04a08795d5874a8f81d8ee9bfe30005c50849e6705ff4
HELD IN THE MEMBER ARCHIVE
The verified repair and its recorded checks are member-only.
This mechanism has 6 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
Inputs are small integer offsets and identifiers under the stated toy contract; this does not define a document format or production citation API. 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-30T16:48:27.159194+00:00.
Case digest / e0ea0e62dfdafb5f59ef0aaab466090f6c2c76134cfa9f56e1b9d4435f95107b