FA-12351 / Manufacturing workflow integrity / Open access
Merged lot genealogy loses one input branch · case 01
Merged lot genealogy loses one input branch.
ROOT CAUSE
The genealogy projection follows only the first parent of a blended lot.
THE FAILURE
The genealogy projection follows only the first parent of a blended lot.
Unsuccessful approach: Returning immediate parents fixes merges but omits sources behind intermediate lots.
Case contract
Given an acyclic parent mapping, return sorted terminal ancestors of a lot; an unmapped or parentless lot is a source.
Why this case matters
A deterministic manufacturing record model isolates this workflow defect before equipment or enterprise integration.
1 / The failure
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(parents, lot):
while parents.get(lot): lot = parents[lot][0]
return [lot]
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
p = {str(i): [str(i-1)] for i in range(1, N+1)}
p['blend'] = [str(N), 'b']
check('both upstream branches', solve(p, 'blend'), ['0', 'b'])
check('chain source', solve(p, str(N)), ['0'])
check('unmapped source', solve(p, 'b'), ['b'])
check('explicit source', solve({'a': []}, 'a'), ['a'])
check('shared source deduplicated', solve({'m': ['x', 'y'], 'x': ['a'], 'y': ['a']}, 'm'), ['a'])
check('direct merge', solve({'m': ['b', 'a']}, 'm'), ['a', 'b'])
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 |
|---|---|---|---|
| both upstream branches | ['0'] | ['0', 'b'] | Failed |
| chain source | ['0'] | ['0'] | Passed |
| unmapped source | ['b'] | ['b'] | Passed |
| explicit source | ['a'] | ['a'] | Passed |
| shared source deduplicated | ['a'] | ['a'] | Passed |
| direct merge | ['b'] | ['a', 'b'] | Failed |
SHA-256 / 8cf31cfa75d5958a8e19ab85a7a25310b72f9fc611cfed23f4b37783e62da6d0
2 / The unsuccessful fix
Exit 1"""Failure Map reference implementation. Python standard library only."""
import json
N = 1
observations = []
def solve(parents, lot):
return sorted(set(parents.get(lot) or [lot]))
def check(label, actual, expected):
observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
p = {str(i): [str(i-1)] for i in range(1, N+1)}
p['blend'] = [str(N), 'b']
check('both upstream branches', solve(p, 'blend'), ['0', 'b'])
check('chain source', solve(p, str(N)), ['0'])
check('unmapped source', solve(p, 'b'), ['b'])
check('explicit source', solve({'a': []}, 'a'), ['a'])
check('shared source deduplicated', solve({'m': ['x', 'y'], 'x': ['a'], 'y': ['a']}, 'm'), ['a'])
check('direct merge', solve({'m': ['b', 'a']}, 'm'), ['a', 'b'])
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 |
|---|---|---|---|
| both upstream branches | ['1', 'b'] | ['0', 'b'] | Failed |
| chain source | ['0'] | ['0'] | Passed |
| unmapped source | ['b'] | ['b'] | Passed |
| explicit source | ['a'] | ['a'] | Passed |
| shared source deduplicated | ['x', 'y'] | ['a'] | Failed |
| direct merge | ['a', 'b'] | ['a', 'b'] | Passed |
SHA-256 / a9a035749dbce14717825f675668906e4bdd9eb3b05a26be2d2d9884450bc2a9
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
Offline policy model only; no physical equipment, regulatory certification, or concurrent transaction claims. 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-29T14:38:56.183650+00:00.
Case digest / e4da1a7edffb26fd092fb6fa61f375b18e6762df4e51fb833e725a77f94f2dc3