FAILURE MAP
← Case archive

FA-9306 / Build systems / Open access

Generated file ownership: Disabled generators reserve output ownership · case 01

Disabled generators reserve output ownership.

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

ROOT CAUSE

The implementation substitutes if False: continue for if not enabled: continue, so disabled generators reserve output ownership.

VERIFIED REPAIR

Ignore disabled producers.

Unsuccessful approach: The attempted repair substitutes if enabled: continue. Fixture 2 still yields [] 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 False: continue
        for output in outputs:
            if output in owners and owners[output] != name: return 'conflict'
            owners[output] = name
    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', 'a'], ['z', 'a']][['x', 'a'], ['z', 'a']]Passed
fixture 3conflict[['x', 'b']]Failed
fixture 4conflictconflictPassed
fixture 5[['x', 'a']][['x', 'a']]Passed
fixture 6[][]Passed
fixture 7[['x', 'b'], ['y', 'a']][['x', 'b'], ['y', 'a']]Passed

SHA-256 / 32324d3f9791f29986308574d344df116e544e73eda49dd6b9d2879150db47b7

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 enabled: continue
        for output in outputs:
            if output in owners and owners[output] != name: return 'conflict'
            owners[output] = name
    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', 'a'], ['z', 'a']]Failed
fixture 3[['x', 'a']][['x', 'b']]Failed
fixture 4[]conflictFailed
fixture 5[][['x', 'a']]Failed
fixture 6[][]Passed
fixture 7[][['x', 'b'], ['y', 'a']]Failed

SHA-256 / 524b91cf938c4dd666fa04411fd87c21f7d64b9cb513c61bf8606ffb86500518

3 / The verified repair

Exit 0
"""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] = name
    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', 'a'], ['z', 'a']][['x', 'a'], ['z', 'a']]Passed
fixture 3[['x', 'b']][['x', 'b']]Passed
fixture 4conflictconflictPassed
fixture 5[['x', 'a']][['x', 'a']]Passed
fixture 6[][]Passed
fixture 7[['x', 'b'], ['y', 'a']][['x', 'b'], ['y', 'a']]Passed

SHA-256 / a3ea30a6f36a4b7551deb24c694597368e1288f85cba9721a4ea90e7b18c21f5

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

Case digest / 0e45394f1a9a0ad325440e7691bcdc16c943888c7a6a3b8aa407c03a4fe770ce