FA-99711 / Chunk citation alignment / Open access
Repeated source IDs create duplicate bibliography entries · case 01
Repeated source IDs create duplicate bibliography entries.
ROOT CAUSE
Every chunk-local source table entry is appended independently.
THE FAILURE
Every chunk-local source table entry is appended independently.
Unsuccessful approach: Sorting unique IDs changes stable first-seen bibliography numbering.
Case contract
Flatten source ID lists to unique IDs in first-seen 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(tables):
return [x for row in tables for x in row]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('shared source',solve([['a','b'],['b','c']]),['a','b','c'])
check('empty',solve([]),[])
check('empty table',solve([[],['x']]),['x'])
check('first-seen order',solve([['z','a'],['z','b']]),['z','a','b'])
check('single',solve([['q']]),['q'])
check('all repeats',solve([['r'],['r']]),['r'])
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 |
|---|---|---|---|
| shared source | ['a', 'b', 'b', 'c'] | ['a', 'b', 'c'] | Failed |
| empty | [] | [] | Passed |
| empty table | ['x'] | ['x'] | Passed |
| first-seen order | ['z', 'a', 'z', 'b'] | ['z', 'a', 'b'] | Failed |
| single | ['q'] | ['q'] | Passed |
| all repeats | ['r', 'r'] | ['r'] | Failed |
SHA-256 / 0a3dad69eef20664d8c223fc20d7fc337156394b228665aaf7542b8388eebeb7
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(tables):
return sorted(set(x for row in tables for x in row))
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('shared source',solve([['a','b'],['b','c']]),['a','b','c'])
check('empty',solve([]),[])
check('empty table',solve([[],['x']]),['x'])
check('first-seen order',solve([['z','a'],['z','b']]),['z','a','b'])
check('single',solve([['q']]),['q'])
check('all repeats',solve([['r'],['r']]),['r'])
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 |
|---|---|---|---|
| shared source | ['a', 'b', 'c'] | ['a', 'b', 'c'] | Passed |
| empty | [] | [] | Passed |
| empty table | ['x'] | ['x'] | Passed |
| first-seen order | ['a', 'b', 'z'] | ['z', 'a', 'b'] | Failed |
| single | ['q'] | ['q'] | Passed |
| all repeats | ['r'] | ['r'] | Passed |
SHA-256 / e60258dfac284849c9586010d69a0bd40d842d1a1e644ff810e766e1dfb7662d
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.159076+00:00.
Case digest / 565def5d236b3f7e96438d721808316218e4222927117885f9683fe7df04094c