{"abstract":"Any-of union requires every branch to match.","category":"Tool call schema validation","checks":6,"contract":"Any-of is valid when at least one predicate matches.","contract_signature":"value, predicates","evaluation_group":"w3-schema-anyof-branch-coverage","failed_approach":"A fixed minimum of two matches rejects valid single-branch values.","family":"w3-tool-call-schema-validation-anyof-branch-coverage","id":"FA-99821","implementations":{"attempt":{"sha256":"a57014e8338a76da0c59e9d751baa7338ce0c4fa2ca657d5a2b418c1447aa737","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(value, predicates):\n    return sum(bool(p(value)) for p in predicates)>=2\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('first branch',solve(N,[lambda x:type(x)is int,lambda x:x<0]),True)\ncheck('second branch',solve(-N,[lambda x:type(x)is str,lambda x:x<0]),True)\ncheck('neither',solve(None,[lambda x:type(x)is int,lambda x:type(x)is str]),False)\ncheck('both',solve(N,[lambda x:type(x)is int,lambda x:x>0]),True)\ncheck('empty union',solve(N,[]),False)\ncheck('single branch',solve('x',[lambda x:type(x)is str]),True)\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":"36acd22149a20a4bff4b6cbb558871edfde709d954b80a5e7a9ffbb19a05310b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(value, predicates):\n    return all(p(value) for p in predicates)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('first branch',solve(N,[lambda x:type(x)is int,lambda x:x<0]),True)\ncheck('second branch',solve(-N,[lambda x:type(x)is str,lambda x:x<0]),True)\ncheck('neither',solve(None,[lambda x:type(x)is int,lambda x:type(x)is str]),False)\ncheck('both',solve(N,[lambda x:type(x)is int,lambda x:x>0]),True)\ncheck('empty union',solve(N,[]),False)\ncheck('single branch',solve('x',[lambda x:type(x)is str]),True)\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":"Self-contained toy JSON-like schema contract over in-memory Python values; no compatibility with a production schema standard or callable binding is claimed. 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-tool-call-schema-validation-anyof-branch-coverage","generated_at":"2026-09-30T16:48:28.519526+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Tool argument validation prevents malformed structured payloads from entering a deterministic downstream operation.","root_cause":"The implementation combines branches conjunctively.","sha256":"c9d3efb3eec22d60e93beb5ff288ccd27a57f66ef738e2013866d5cbb6fde3c2","title":"Any-of union requires every branch to match · 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":26.839,"exit_code":1,"observations":[{"actual":false,"check":"first branch","expected":true,"passed":false},{"actual":false,"check":"second branch","expected":true,"passed":false},{"actual":false,"check":"neither","expected":false,"passed":true},{"actual":true,"check":"both","expected":true,"passed":true},{"actual":false,"check":"empty union","expected":false,"passed":true},{"actual":false,"check":"single branch","expected":true,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"first branch\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"second branch\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"neither\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"both\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"empty union\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"single branch\", \"actual\": false, \"expected\": true, \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":28.791,"exit_code":1,"observations":[{"actual":false,"check":"first branch","expected":true,"passed":false},{"actual":false,"check":"second branch","expected":true,"passed":false},{"actual":false,"check":"neither","expected":false,"passed":true},{"actual":true,"check":"both","expected":true,"passed":true},{"actual":true,"check":"empty union","expected":false,"passed":false},{"actual":true,"check":"single branch","expected":true,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"first branch\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"second branch\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"neither\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"both\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"empty union\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"single branch\", \"actual\": true, \"expected\": true, \"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."}}