{"abstract":"Ever-treated labeling allocates pre-initiation time to treatment.","category":"Causal analysis data contracts","checks":7,"contract":"Integer entry <= exit bounds half-open follow-up. start is treatment initiation or None; treatment persists. Return [unexposed duration, exposed duration].","contract_signature":"entry, exit, start","evaluation_group":"model-e78e8a27ca65ad17","failed_approach":"Only detecting initiation inside follow-up forgets treatment already active at entry.","family":"z-causal_inference-time-varying-treatment","id":"FA-12686","implementations":{"attempt":{"sha256":"5c9ad2dd78747e7d62377beab29c0e661dcb813a1a3b8a0080db6352c701fea1","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(entry, exit, start):\n    if start is None or start < entry or start >= exit:\n        return [exit-entry,0]\n    return [start-entry,exit-start]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('initiates during', solve(N, N+10, N+4), [4,6])\ncheck('already treated', solve(N, N+10, N-1), [0,10])\ncheck('never treated', solve(N, N+10, None), [10,0])\ncheck('future treatment', solve(N, N+10, N+11), [10,0])\ncheck('at exit', solve(N, N+10, N+10), [10,0])\ncheck('empty followup', solve(N, N, N), [0,0])\ncheck('at entry', solve(N, N+10, N), [0,10])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"4753d014598e8a034c1ddafa784d9dc3833a2502a6389e2b8f73558617e02ec7","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(entry, exit, start):\n    return [exit-entry,0] if start is None else [0,exit-entry]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('initiates during', solve(N, N+10, N+4), [4,6])\ncheck('already treated', solve(N, N+10, N-1), [0,10])\ncheck('never treated', solve(N, N+10, None), [10,0])\ncheck('future treatment', solve(N, N+10, N+11), [10,0])\ncheck('at exit', solve(N, N+10, N+10), [10,0])\ncheck('empty followup', solve(N, N, N), [0,0])\ncheck('at entry', solve(N, N+10, N), [0,10])\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"Finite, fully specified synthetic data only; identification assumptions are supplied by the fixture design, not inferred from observations. 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.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"z-causal_inference-time-varying-treatment","generated_at":"2026-09-29T14:38:59.221683+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A deterministic synthetic study model isolates this data-contract defect; outputs alone establish no real-world causal identification.","root_cause":"Future initiation retrospectively labels earlier follow-up as exposed.","sha256":"5bd5b53d2b22016a71a3cb1479f7cbd50949dd1b46ad0a4f1b70ebf7659a7aac","title":"Ever-treated labeling allocates pre-initiation time to treatment · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":37.837,"exit_code":1,"observations":[{"actual":[4,6],"check":"initiates during","expected":[4,6],"passed":true},{"actual":[10,0],"check":"already treated","expected":[0,10],"passed":false},{"actual":[10,0],"check":"never treated","expected":[10,0],"passed":true},{"actual":[10,0],"check":"future treatment","expected":[10,0],"passed":true},{"actual":[10,0],"check":"at exit","expected":[10,0],"passed":true},{"actual":[0,0],"check":"empty followup","expected":[0,0],"passed":true},{"actual":[0,10],"check":"at entry","expected":[0,10],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"initiates during\", \"actual\": [4, 6], \"expected\": [4, 6], \"passed\": true}, {\"check\": \"already treated\", \"actual\": [10, 0], \"expected\": [0, 10], \"passed\": false}, {\"check\": \"never treated\", \"actual\": [10, 0], \"expected\": [10, 0], \"passed\": true}, {\"check\": \"future treatment\", \"actual\": [10, 0], \"expected\": [10, 0], \"passed\": true}, {\"check\": \"at exit\", \"actual\": [10, 0], \"expected\": [10, 0], \"passed\": true}, {\"check\": \"empty followup\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"at entry\", \"actual\": [0, 10], \"expected\": [0, 10], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":40.66,"exit_code":1,"observations":[{"actual":[0,10],"check":"initiates during","expected":[4,6],"passed":false},{"actual":[0,10],"check":"already treated","expected":[0,10],"passed":true},{"actual":[10,0],"check":"never treated","expected":[10,0],"passed":true},{"actual":[0,10],"check":"future treatment","expected":[10,0],"passed":false},{"actual":[0,10],"check":"at exit","expected":[10,0],"passed":false},{"actual":[0,0],"check":"empty followup","expected":[0,0],"passed":true},{"actual":[0,10],"check":"at entry","expected":[0,10],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"initiates during\", \"actual\": [0, 10], \"expected\": [4, 6], \"passed\": false}, {\"check\": \"already treated\", \"actual\": [0, 10], \"expected\": [0, 10], \"passed\": true}, {\"check\": \"never treated\", \"actual\": [10, 0], \"expected\": [10, 0], \"passed\": true}, {\"check\": \"future treatment\", \"actual\": [0, 10], \"expected\": [10, 0], \"passed\": false}, {\"check\": \"at exit\", \"actual\": [0, 10], \"expected\": [10, 0], \"passed\": false}, {\"check\": \"empty followup\", \"actual\": [0, 0], \"expected\": [0, 0], \"passed\": true}, {\"check\": \"at entry\", \"actual\": [0, 10], \"expected\": [0, 10], \"passed\": true}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}