FA-99141 / Checkpoint tensor mapping / Open access
Checkpoint mapping: module prefix is stripped from interior names · case 01
module prefix is stripped from interior names.
ROOT CAUSE
Global replacement edits interior text and may remove repeated occurrences.
THE FAILURE
Global replacement edits interior text and may remove repeated occurrences.
Unsuccessful approach: Character-set stripping corrupts other leading names, such as a name beginning with one prefix character.
Case contract
Return each name with exactly one leading prefix removed when present; preserve interior occurrences and order.
Why this case matters
A bounded offline model of checkpoint tensor bookkeeping in a training workflow.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(names, prefix):
return [name.replace(prefix, "") for name in names]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('leading', solve(*(['module.w3', 'x.module.y'], 'module.')), ['w3', 'x.module.y'])
check('repeat', solve(*(['module.module.x'], 'module.')), ['module.x'])
check('none', solve(*(['weight'], 'module.')), ['weight'])
check('empty', solve(*([], 'module.')), [])
check('exact', solve(*(['module.'], 'module.')), [''])
check('embedded char', solve(*(['mymodule.x'], 'module.')), ['mymodule.x'])
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 |
|---|---|---|---|
| leading | ['w3', 'x.y'] | ['w3', 'x.module.y'] | Failed |
| repeat | ['x'] | ['module.x'] | Failed |
| none | ['weight'] | ['weight'] | Passed |
| empty | [] | [] | Passed |
| exact | [''] | [''] | Passed |
| embedded char | ['myx'] | ['mymodule.x'] | Failed |
SHA-256 / 4d59c639291050b101a11172f115e8e97ceea192a4d5e55ecc4293a9b38195f3
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(names, prefix):
return [name.lstrip(prefix) for name in names]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('leading', solve(*(['module.w3', 'x.module.y'], 'module.')), ['w3', 'x.module.y'])
check('repeat', solve(*(['module.module.x'], 'module.')), ['module.x'])
check('none', solve(*(['weight'], 'module.')), ['weight'])
check('empty', solve(*([], 'module.')), [])
check('exact', solve(*(['module.'], 'module.')), [''])
check('embedded char', solve(*(['mymodule.x'], 'module.')), ['mymodule.x'])
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 |
|---|---|---|---|
| leading | ['w3', 'x.module.y'] | ['w3', 'x.module.y'] | Passed |
| repeat | ['x'] | ['module.x'] | Failed |
| none | ['weight'] | ['weight'] | Passed |
| empty | [] | [] | Passed |
| exact | [''] | [''] | Passed |
| embedded char | ['ymodule.x'] | ['mymodule.x'] | Failed |
SHA-256 / c93fa46fa54ab6f01064910b0fb1b025c8c35b0ac9ab22bccb0b9529e336b875
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 already decoded Python values; this toy contract makes no claim about a framework, file format, or production checkpoint. 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:20.800376+00:00.
Case digest / a47b37a5fd22fb3d7b9fc7635d8a023e1a11758c8f9785a2e3d0245fb1c2e229