{"abstract":"An obsolete source revision wins citation resolution.","category":"Chunk citation alignment","checks":6,"contract":"Rows [logical_id,revision,uri]; request one logical ID; return URI at its greatest revision or None.","contract_signature":"rows, logical_id","evaluation_group":"w3-cca-source_version","failed_approach":"Choosing the newest revision globally returns an unrelated source when multiple IDs exist.","family":"w3-chunk-citation-alignment-version-source-selection","id":"FA-99721","implementations":{"attempt":{"sha256":"bf09e1f88a2f740b9bad1ad066a23da709bae0ebf73234d81ca2774c4af62608","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows, logical_id):\n    return max(rows,key=lambda r:r[1])[2] if rows else None\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('new version',solve([['a',1,'old'],['a',N+1,'new']],'a'),'new')\ncheck('other newest ID',solve([['a',1,'wanted'],['b',N+2,'other']],'a'),'wanted')\ncheck('missing',solve([['a',1,'x']],'z'),None)\ncheck('empty',solve([],'a'),None)\ncheck('single',solve([['q',N,'uri']],'q'),'uri')\ncheck('unordered',solve([['a',3,'new'],['a',2,'old']],'a'),'new')\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":"201796e6169b58960f790ea7b9777aec24e86206c6e774aa56f72bf3b72e9fd2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(rows, logical_id):\n    return next((uri for ident,rev,uri in rows if ident==logical_id),None)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('new version',solve([['a',1,'old'],['a',N+1,'new']],'a'),'new')\ncheck('other newest ID',solve([['a',1,'wanted'],['b',N+2,'other']],'a'),'wanted')\ncheck('missing',solve([['a',1,'x']],'z'),None)\ncheck('empty',solve([],'a'),None)\ncheck('single',solve([['q',N,'uri']],'q'),'uri')\ncheck('unordered',solve([['a',3,'new'],['a',2,'old']],'a'),'new')\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 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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w3-chunk-citation-alignment-version-source-selection","generated_at":"2026-09-30T16:48:27.615490+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic citation bookkeeping model isolates source attribution from rendering and retrieval.","root_cause":"The first matching source ID is accepted without checking its revision.","sha256":"1e18cb1878ade0934739e19bd3ce51dc10a63ed457885a2eaf224b1d58d39ba7","title":"An obsolete source revision wins citation resolution · 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":29.02,"exit_code":1,"observations":[{"actual":"new","check":"new version","expected":"new","passed":true},{"actual":"other","check":"other newest ID","expected":"wanted","passed":false},{"actual":"x","check":"missing","expected":null,"passed":false},{"actual":null,"check":"empty","expected":null,"passed":true},{"actual":"uri","check":"single","expected":"uri","passed":true},{"actual":"new","check":"unordered","expected":"new","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"new version\", \"actual\": \"new\", \"expected\": \"new\", \"passed\": true}, {\"check\": \"other newest ID\", \"actual\": \"other\", \"expected\": \"wanted\", \"passed\": false}, {\"check\": \"missing\", \"actual\": \"x\", \"expected\": null, \"passed\": false}, {\"check\": \"empty\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"single\", \"actual\": \"uri\", \"expected\": \"uri\", \"passed\": true}, {\"check\": \"unordered\", \"actual\": \"new\", \"expected\": \"new\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.857,"exit_code":1,"observations":[{"actual":"old","check":"new version","expected":"new","passed":false},{"actual":"wanted","check":"other newest ID","expected":"wanted","passed":true},{"actual":null,"check":"missing","expected":null,"passed":true},{"actual":null,"check":"empty","expected":null,"passed":true},{"actual":"uri","check":"single","expected":"uri","passed":true},{"actual":"new","check":"unordered","expected":"new","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"new version\", \"actual\": \"old\", \"expected\": \"new\", \"passed\": false}, {\"check\": \"other newest ID\", \"actual\": \"wanted\", \"expected\": \"wanted\", \"passed\": true}, {\"check\": \"missing\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"empty\", \"actual\": null, \"expected\": null, \"passed\": true}, {\"check\": \"single\", \"actual\": \"uri\", \"expected\": \"uri\", \"passed\": true}, {\"check\": \"unordered\", \"actual\": \"new\", \"expected\": \"new\", \"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."}}