FAILURE MAP
← Case archive

FA-9906 / Packaging / Open access

Entry point registry assembly: Disabled entry points are published · case 01

Disabled entry points are published.

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

ROOT CAUSE

The implementation substitutes if False: continue for if not enabled: continue, so disabled entry points are published.

THE FAILURE

The implementation substitutes if False: continue for if not enabled: continue, so disabled entry points are published.

Unsuccessful approach: The attempted repair substitutes if enabled: continue. Fixture 2 still yields {} instead of {'cli': {'run': 'a:main'}}.

Case contract

Build a group-to-name-to-target mapping, skip disabled declarations, reject conflicting duplicate names within a group, allow duplicates with the same target, and allow identical names across groups.

Why this case matters

An offline model of entry point registry assembly, 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(rows):
    result = {}
    for group, name, target, enabled in rows:
        if False: continue
        bucket = result.setdefault(group, {})
        if name in bucket and bucket[name] != target: return 'conflict'
        bucket[name] = target
    return result
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([]), {})
check('fixture 2', solve([('cli', 'run', 'a:main', True)]), {'cli': {'run': 'a:main'}})
check('fixture 3', solve([('cli', 'run', 'a:main', False)]), {})
check('fixture 4', solve([('cli', 'run', 'a:main', True), ('cli', 'run', 'b:main', True)]), 'conflict')
check('fixture 5', solve([('cli', 'run', 'a:main', True), ('cli', 'run', 'a:main', True)]), {'cli': {'run': 'a:main'}})
check('fixture 6', solve([('cli', 'run', 'a:main', True), ('plugin', 'run', 'b:main', True)]), {'cli': {'run': 'a:main'}, 'plugin': {'run': 'b:main'}})
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{'cli': {'run': 'a:main'}}{'cli': {'run': 'a:main'}}Passed
fixture 3{'cli': {'run': 'a:main'}}{}Failed
fixture 4conflictconflictPassed
fixture 5{'cli': {'run': 'a:main'}}{'cli': {'run': 'a:main'}}Passed
fixture 6{'cli': {'run': 'a:main'}, 'plugin': {'run': 'b:main'}}{'cli': {'run': 'a:main'}, 'plugin': {'run': 'b:main'}}Passed

SHA-256 / 9d38925291a2b4505c01e254f24b13dddbe0e011bc1f4203d3cb21972d53c6f9

2 / The unsuccessful fix

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

N = 1
observations = []
def solve(rows):
    result = {}
    for group, name, target, enabled in rows:
        if enabled: continue
        bucket = result.setdefault(group, {})
        if name in bucket and bucket[name] != target: return 'conflict'
        bucket[name] = target
    return result
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('fixture 1', solve([]), {})
check('fixture 2', solve([('cli', 'run', 'a:main', True)]), {'cli': {'run': 'a:main'}})
check('fixture 3', solve([('cli', 'run', 'a:main', False)]), {})
check('fixture 4', solve([('cli', 'run', 'a:main', True), ('cli', 'run', 'b:main', True)]), 'conflict')
check('fixture 5', solve([('cli', 'run', 'a:main', True), ('cli', 'run', 'a:main', True)]), {'cli': {'run': 'a:main'}})
check('fixture 6', solve([('cli', 'run', 'a:main', True), ('plugin', 'run', 'b:main', True)]), {'cli': {'run': 'a:main'}, 'plugin': {'run': 'b:main'}})
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{}{'cli': {'run': 'a:main'}}Failed
fixture 3{'cli': {'run': 'a:main'}}{}Failed
fixture 4{}conflictFailed
fixture 5{}{'cli': {'run': 'a:main'}}Failed
fixture 6{}{'cli': {'run': 'a:main'}, 'plugin': {'run': 'b:main'}}Failed

SHA-256 / 189faa78f5323c99b414d6402340872921d7df0c1a49b63dcc3c7f959267ebb0

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

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

Case digest / e21e6f54e072e860f5f9dda858bcd49d599fbf6648ddaa0f5ede08d6821611b6