{"abstract":"Pattern-matched properties are rejected as unknown extras.","category":"Tool call schema validation","checks":7,"contract":"An object field is valid if its name is explicitly declared, or if one or more prefix pattern rules match and its value belongs to every matching rule set. Unmatched extras are invalid.","contract_signature":"obj, explicit, patterns","evaluation_group":"w3-schema-pattern-property-consumption","failed_approach":"Allowing names that match a pattern but skipping that pattern’s value constraint admits malformed values.","family":"w3-tool-call-schema-validation-pattern-property-consumption","id":"FA-99746","implementations":{"attempt":{"sha256":"39e4d4f02c768ad36c168c71741a4ac5b7b462fa5c4f2941ae380e6912fc53b2","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(obj, explicit, patterns):\n    return all(k in explicit or any(k.startswith(prefix) for prefix,allowed in patterns) for k in obj)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('explicit property',solve({'name':N},{'name'},[]),True)\ncheck('valid patterned property',solve({'x-id':N},set(),[('x-',{N})]),True)\ncheck('pattern value rejected',solve({'x-id':'bad'},set(),[('x-',{N})]),False)\ncheck('unmatched extra rejected',solve({'other':N},set(),[('x-',{N})]),False)\ncheck('overlapping rules both apply',solve({'x-id':N},set(),[('x-',{N,N+1}),('x-id',{N+1})]),False)\ncheck('empty object',solve({},set(),[('x-',{N})]),True)\ncheck('overlap accepted by both',solve({'x-id':N+1},set(),[('x-',{N,N+1}),('x-id',{N+1})]),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":"c044ddb5802c98a93782dc6bb41e7fe88dc5969606608cd3187f644dbd6ce58b","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(obj, explicit, patterns):\n    return all(k in explicit for k in obj)\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('explicit property',solve({'name':N},{'name'},[]),True)\ncheck('valid patterned property',solve({'x-id':N},set(),[('x-',{N})]),True)\ncheck('pattern value rejected',solve({'x-id':'bad'},set(),[('x-',{N})]),False)\ncheck('unmatched extra rejected',solve({'other':N},set(),[('x-',{N})]),False)\ncheck('overlapping rules both apply',solve({'x-id':N},set(),[('x-',{N,N+1}),('x-id',{N+1})]),False)\ncheck('empty object',solve({},set(),[('x-',{N})]),True)\ncheck('overlap accepted by both',solve({'x-id':N+1},set(),[('x-',{N,N+1}),('x-id',{N+1})]),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-pattern-property-consumption","generated_at":"2026-09-30T16:48:27.615588+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 closed-object check recognizes explicit names but never consumes fields governed by pattern rules.","sha256":"47b37378330e3e53ba5a00fa8e3ecbce473c2fb91d28bd5d28796b2e5970e36b","title":"Pattern-matched properties are rejected as unknown extras · 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.085,"exit_code":1,"observations":[{"actual":true,"check":"explicit property","expected":true,"passed":true},{"actual":true,"check":"valid patterned property","expected":true,"passed":true},{"actual":true,"check":"pattern value rejected","expected":false,"passed":false},{"actual":false,"check":"unmatched extra rejected","expected":false,"passed":true},{"actual":true,"check":"overlapping rules both apply","expected":false,"passed":false},{"actual":true,"check":"empty object","expected":true,"passed":true},{"actual":true,"check":"overlap accepted by both","expected":true,"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit property\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"valid patterned property\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"pattern value rejected\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"unmatched extra rejected\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"overlapping rules both apply\", \"actual\": true, \"expected\": false, \"passed\": false}, {\"check\": \"empty object\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"overlap accepted by both\", \"actual\": true, \"expected\": true, \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":27.672,"exit_code":1,"observations":[{"actual":true,"check":"explicit property","expected":true,"passed":true},{"actual":false,"check":"valid patterned property","expected":true,"passed":false},{"actual":false,"check":"pattern value rejected","expected":false,"passed":true},{"actual":false,"check":"unmatched extra rejected","expected":false,"passed":true},{"actual":false,"check":"overlapping rules both apply","expected":false,"passed":true},{"actual":true,"check":"empty object","expected":true,"passed":true},{"actual":false,"check":"overlap accepted by both","expected":true,"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"explicit property\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"valid patterned property\", \"actual\": false, \"expected\": true, \"passed\": false}, {\"check\": \"pattern value rejected\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"unmatched extra rejected\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"overlapping rules both apply\", \"actual\": false, \"expected\": false, \"passed\": true}, {\"check\": \"empty object\", \"actual\": true, \"expected\": true, \"passed\": true}, {\"check\": \"overlap accepted by both\", \"actual\": false, \"expected\": true, \"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."}}