FA-99681 / Chunk citation alignment / Open access
A citation split across chunks is discarded · case 01
A citation split across chunks is discarded.
ROOT CAUSE
The assembly requires one chunk to contain the full source interval.
THE FAILURE
The assembly requires one chunk to contain the full source interval.
Unsuccessful approach: Selecting only the first overlapping chunk loses the continuation.
Case contract
Return IDs of all chunks with a nonempty intersection with citation [s,e), in input order.
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(chunks, span):
s,e=span
return [i for i,(a,b) in enumerate(chunks) if a<=s and e<=b]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('cross boundary',solve([[0,4],[4,8]],[2,6]),[0,1])
check('one chunk',solve([[0,9]],[2,6]),[0])
check('gap untouched',solve([[0,2],[5,8]],[2,5]),[])
check('empty chunks',solve([],[1,2]),[])
check('touch no overlap',solve([[0,3],[7,9]],[3,7]),[])
check('three pieces',solve([[0,2],[2,4],[4,6]],[1,5]),[0,1,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 |
|---|---|---|---|
| cross boundary | [] | [0, 1] | Failed |
| one chunk | [0] | [0] | Passed |
| gap untouched | [] | [] | Passed |
| empty chunks | [] | [] | Passed |
| touch no overlap | [] | [] | Passed |
| three pieces | [] | [0, 1, 2] | Failed |
SHA-256 / 1e33244b8014bcb7e28904831f3996a86293fea9dc6999a53985ec5128ff80d4
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(chunks, span):
s,e=span
return [i for i,(a,b) in enumerate(chunks) if a<e and s<b][:1]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('cross boundary',solve([[0,4],[4,8]],[2,6]),[0,1])
check('one chunk',solve([[0,9]],[2,6]),[0])
check('gap untouched',solve([[0,2],[5,8]],[2,5]),[])
check('empty chunks',solve([],[1,2]),[])
check('touch no overlap',solve([[0,3],[7,9]],[3,7]),[])
check('three pieces',solve([[0,2],[2,4],[4,6]],[1,5]),[0,1,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 |
|---|---|---|---|
| cross boundary | [0] | [0, 1] | Failed |
| one chunk | [0] | [0] | Passed |
| gap untouched | [] | [] | Passed |
| empty chunks | [] | [] | Passed |
| touch no overlap | [] | [] | Passed |
| three pieces | [0] | [0, 1, 2] | Failed |
SHA-256 / 08aa53e7f2ec222a35c471f025cef3ef5bab01cde58f028f60db19a6dbaf6468
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.159028+00:00.
Case digest / f41151787f4e994d527219fdb5dc9a2cda8171a5bc6ec59a1d244eca24ac595b