{"abstract":"A completed or failed run is scheduled for another step.","category":"Agent workflow termination","checks":7,"contract":"Return true when status is complete or failed; a nonterminal status returns false regardless of remaining steps.","contract_signature":"status, remaining","evaluation_group":"w3-agent-workflow-termination-terminal-precedence","failed_approach":"Stopping only on successful completion continues after failure.","family":"w3-agent-workflow-termination-terminal-precedence","id":"FA-99841","implementations":{"attempt":{"sha256":"a128adddfec27ce98c708ebdc0d3aebfb23784a4c0488dc36e41c1303b0502b6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(status, remaining):\n    return status == 'complete' or remaining <= 0\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('complete with room', solve('complete',N),True)\ncheck('failed with room', solve('failed',N),True)\ncheck('running with room', solve('running',N),False)\ncheck('running exhausted', solve('running',0),True)\ncheck('failed exhausted', solve('failed',0),True)\ncheck('waiting with room', solve('waiting',N),False)\ncheck('unknown is nonterminal', solve('paused',N+1),False)\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":"6393c1ec18f95d678ddf6afcdd321fb7cbd0b8f7083a18aaff58339a7e3704e6","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(status, remaining):\n    return remaining <= 0\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('complete with room', solve('complete',N),True)\ncheck('failed with room', solve('failed',N),True)\ncheck('running with room', solve('running',N),False)\ncheck('running exhausted', solve('running',0),True)\ncheck('failed exhausted', solve('failed',0),True)\ncheck('waiting with room', solve('waiting',N),False)\ncheck('unknown is nonterminal', solve('paused',N+1),False)\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":"Statuses are a finite toy vocabulary; this is not a framework state machine. 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":"w3-agent-workflow-termination-terminal-precedence","generated_at":"2026-09-30T16:48:28.969383+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This toy decision rule isolates one bounded agent-loop completion contract.","root_cause":"The admission rule checks only remaining budget, so terminal status is ignored.","sha256":"e5768ece261bc4f42c07f5007ed73f191df348cecfaf147542b57e9d911c6238","title":"Workflow: terminal state is ignored while budget remains · case 01","variant":1,"variant_policy":"The fixture code references N, supplied as 1 through 5. Fixed boundary checks may repeat. These records share one mechanism and must remain together in evaluation splits.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":29.754,"exit_code":1,"observations":[{"actual":true,"check":"complete with room","expected":true,"passed":true},{"actual":false,"check":"failed with room","expected":true,"passed":false},{"actual":false,"check":"running with room","expected":false,"passed":true},{"actual":true,"check":"running exhausted","expected":true,"passed":true},{"actual":true,"check":"failed exhausted","expected":true,"passed":true},{"actual":false,"check":"waiting with room","expected":false,"passed":true},{"actual":false,"check":"unknown is nonterminal","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"complete with room\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"failed with room\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"running with room\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"running exhausted\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"failed exhausted\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"waiting with room\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"unknown is nonterminal\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":29.633,"exit_code":1,"observations":[{"actual":false,"check":"complete with room","expected":true,"passed":false},{"actual":false,"check":"failed with room","expected":true,"passed":false},{"actual":false,"check":"running with room","expected":false,"passed":true},{"actual":true,"check":"running exhausted","expected":true,"passed":true},{"actual":true,"check":"failed exhausted","expected":true,"passed":true},{"actual":false,"check":"waiting with room","expected":false,"passed":true},{"actual":false,"check":"unknown is nonterminal","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"complete with room\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"failed with room\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"running with room\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"running exhausted\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"failed exhausted\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"waiting with room\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"unknown is nonterminal\", \"actual\": false, \"expected\": false, \"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."}}