FAILURE MAP
← Case archive

FA-9321 / Build systems / Open access

Generated file ownership: Output names replace producing rule identities · case 01

Output names replace producing rule identities.

Verified by executionVariant 1 · 7 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

The implementation substitutes owners[output] = output for owners[output] = name, so output names replace producing rule identities.

THE FAILURE

The implementation substitutes owners[output] = output for owners[output] = name, so output names replace producing rule identities.

Unsuccessful approach: The attempted repair substitutes owners[output] = True. Fixture 2 still yields [('x', True), ('z', True)] instead of [('x', 'a'), ('z', 'a')].

Case contract

Map output names to producing rules. Skip disabled rules, include all declared outputs, reject duplicate owners, retain owner names, and return sorted pairs. Duplicate declaration by the same owner is harmless.

Why this case matters

An offline model of generated file ownership, suitable for testing build and release tooling without external services.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(rules):
    owners = {}
    for name, enabled, outputs in rules:
        if not enabled: continue
        for output in outputs:
            if output in owners and owners[output] != name: return 'conflict'
            owners[output] = output
    return sorted(owners.items())
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([]), [])
check('fixture 2', solve([('a', True, ['z', 'x'])]), [('x', 'a'), ('z', 'a')])
check('fixture 3', solve([('a', False, ['x']), ('b', True, ['x'])]), [('x', 'b')])
check('fixture 4', solve([('a', True, ['x']), ('b', True, ['x'])]), 'conflict')
check('fixture 5', solve([('a', True, ['x', 'x'])]), [('x', 'a')])
check('fixture 6', solve([('a', True, [])]), [])
check('fixture 7', solve([('a', True, ['y']), ('b', True, ['x'])]), [('x', 'b'), ('y', 'a')])
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 fixtureActualExpectedOutcome
fixture 1[][]Passed
fixture 2[['x', 'x'], ['z', 'z']][['x', 'a'], ['z', 'a']]Failed
fixture 3[['x', 'x']][['x', 'b']]Failed
fixture 4conflictconflictPassed
fixture 5conflict[['x', 'a']]Failed
fixture 6[][]Passed
fixture 7[['x', 'x'], ['y', 'y']][['x', 'b'], ['y', 'a']]Failed

SHA-256 / cf6eae69f2822378ee80ddc8549ebe47ad2fcdd56f963d1ea592a27d52dfc31c

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(rules):
    owners = {}
    for name, enabled, outputs in rules:
        if not enabled: continue
        for output in outputs:
            if output in owners and owners[output] != name: return 'conflict'
            owners[output] = True
    return sorted(owners.items())
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([]), [])
check('fixture 2', solve([('a', True, ['z', 'x'])]), [('x', 'a'), ('z', 'a')])
check('fixture 3', solve([('a', False, ['x']), ('b', True, ['x'])]), [('x', 'b')])
check('fixture 4', solve([('a', True, ['x']), ('b', True, ['x'])]), 'conflict')
check('fixture 5', solve([('a', True, ['x', 'x'])]), [('x', 'a')])
check('fixture 6', solve([('a', True, [])]), [])
check('fixture 7', solve([('a', True, ['y']), ('b', True, ['x'])]), [('x', 'b'), ('y', 'a')])
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 fixtureActualExpectedOutcome
fixture 1[][]Passed
fixture 2[['x', True], ['z', True]][['x', 'a'], ['z', 'a']]Failed
fixture 3[['x', True]][['x', 'b']]Failed
fixture 4conflictconflictPassed
fixture 5conflict[['x', 'a']]Failed
fixture 6[][]Passed
fixture 7[['x', True], ['y', True]][['x', 'b'], ['y', 'a']]Failed

SHA-256 / 77617e8784c0dc1ec7943b1b00766db2e93d113a5ad84514ee0876c975161afb

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 7 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

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:29.045256+00:00.

Case digest / 43ce5494865ec0efddc7c619a643e3d049182864bd17e49277b0d6919d665a0c