{"abstract":"A workflow closes while an issued tool request has no result.","category":"Agent workflow termination","checks":7,"contract":"A run is complete iff final_seen is true and pending_count is zero.","contract_signature":"final_seen, pending_count","evaluation_group":"w3-agent-workflow-termination-pending-tool-completion","failed_approach":"Checking only the pending count accepts a run with no final answer once its tools are drained.","family":"w3-agent-workflow-termination-pending-tool-completion","id":"FA-99846","implementations":{"attempt":{"sha256":"2dc80a3a6edc477428a6bdf4e59c232a6444ab81d90c8519ad9d3fff0219b70c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(final_seen, pending_count):\n    return pending_count == 0\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('final and clear', solve(True,0),True)\ncheck('final pending', solve(True,N),False)\ncheck('no final clear', solve(False,0),False)\ncheck('no final pending', solve(False,N),False)\ncheck('one request pending', solve(True,1),False)\ncheck('no final with extra pending', solve(False,N+1),False)\ncheck('final with larger outstanding batch', solve(True,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":"81e6a2ba17e87ad81aeb60d3c7b974e48e3d1187fd6e9fbf9f9b40bd0b526119","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(final_seen, pending_count):\n    return bool(final_seen)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('final and clear', solve(True,0),True)\ncheck('final pending', solve(True,N),False)\ncheck('no final clear', solve(False,0),False)\ncheck('no final pending', solve(False,N),False)\ncheck('one request pending', solve(True,1),False)\ncheck('no final with extra pending', solve(False,N+1),False)\ncheck('final with larger outstanding batch', solve(True,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":"Pending count is an already validated nonnegative count. 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-pending-tool-completion","generated_at":"2026-09-30T16:48:28.969790+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":"Completion checks only the assistant turn flag and ignores outstanding requests.","sha256":"d29f2b368be98cac20bb290843a0ed9159e67c92577af4e921fd8bd1d925bb25","title":"Workflow: final answer is accepted with tools still pending · 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.098,"exit_code":1,"observations":[{"actual":true,"check":"final and clear","expected":true,"passed":true},{"actual":false,"check":"final pending","expected":false,"passed":true},{"actual":true,"check":"no final clear","expected":false,"passed":false},{"actual":false,"check":"no final pending","expected":false,"passed":true},{"actual":false,"check":"one request pending","expected":false,"passed":true},{"actual":false,"check":"no final with extra pending","expected":false,"passed":true},{"actual":false,"check":"final with larger outstanding batch","expected":false,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"final and clear\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"final pending\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"no final clear\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"no final pending\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"one request pending\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"no final with extra pending\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"final with larger outstanding batch\", \"actual\": false, \"expected\": false, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":29.194,"exit_code":1,"observations":[{"actual":true,"check":"final and clear","expected":true,"passed":true},{"actual":true,"check":"final pending","expected":false,"passed":false},{"actual":false,"check":"no final clear","expected":false,"passed":true},{"actual":false,"check":"no final pending","expected":false,"passed":true},{"actual":true,"check":"one request pending","expected":false,"passed":false},{"actual":false,"check":"no final with extra pending","expected":false,"passed":true},{"actual":true,"check":"final with larger outstanding batch","expected":false,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"final and clear\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"final pending\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"no final clear\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"no final pending\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"one request pending\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"no final with extra pending\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"final with larger outstanding batch\", \"actual\": true, \"expected\": false, \"passed\": false}], \"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."}}