{"abstract":"Plural offset shifts exact-value selectors.","category":"Localization message semantics","checks":6,"contract":"Exact selector keys match the original count before offset. Otherwise choose one iff count-offset equals 1, and replace # in the chosen branch with count-offset.","evaluation_group":"model-818f8148cb81466b","failed_approach":"Restoring exact matching but applying the offset only to the displayed number leaves category selection wrong.","family":"z-localization-exact-before-offset","id":"FA-11756","implementations":{"attempt":{"sha256":"6a21259081fff6e72f54d470c2600655ff40344a2e97cca25ed008d808290196","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(count, offset, exact, branches):\n    x = count-offset\n    return exact.get(count, branches['one' if count == 1 else 'other']).replace('#',str(x))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('original exact', solve(N+1,N,{N+1:'exact'}, {'one':'one #','other':'other #'}), 'exact')\ncheck('shifted false exact', solve(N+1,N,{1:'wrong'}, {'one':'one #','other':'other #'}), 'one 1')\ncheck('category after offset', solve(N+1,N,{}, {'one':'one #','other':'other #'}), 'one 1')\ncheck('zero remainder', solve(N,N,{}, {'one':'one #','other':'other #'}), 'other 0')\ncheck('two remainder', solve(N+2,N,{}, {'one':'one #','other':'other #'}), 'other 2')\ncheck('zero offset', solve(1,0,{}, {'one':'one #','other':'other #'}), 'one 1')\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":"fbbb17748e8acc600c06174690e7af6aad9e5cea8b2a6380aac4c1e747f9fc74","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(count, offset, exact, branches):\n    x = count-offset\n    return exact.get(x, branches['one' if x == 1 else 'other']).replace('#',str(x))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('original exact', solve(N+1,N,{N+1:'exact'}, {'one':'one #','other':'other #'}), 'exact')\ncheck('shifted false exact', solve(N+1,N,{1:'wrong'}, {'one':'one #','other':'other #'}), 'one 1')\ncheck('category after offset', solve(N+1,N,{}, {'one':'one #','other':'other #'}), 'one 1')\ncheck('zero remainder', solve(N,N,{}, {'one':'one #','other':'other #'}), 'other 0')\ncheck('two remainder', solve(N+2,N,{}, {'one':'one #','other':'other #'}), 'other 2')\ncheck('zero offset', solve(1,0,{}, {'one':'one #','other':'other #'}), 'one 1')\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"},"fixed":{"sha256":"131eda4ba0ddd4505721a202e337677af761614d2b9ecc274c6bdae6f1de1fdf","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(count, offset, exact, branches):\n    x = count-offset\n    return exact.get(count, branches['one' if x == 1 else 'other']).replace('#',str(x))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('original exact', solve(N+1,N,{N+1:'exact'}, {'one':'one #','other':'other #'}), 'exact')\ncheck('shifted false exact', solve(N+1,N,{1:'wrong'}, {'one':'one #','other':'other #'}), 'one 1')\ncheck('category after offset', solve(N+1,N,{}, {'one':'one #','other':'other #'}), 'one 1')\ncheck('zero remainder', solve(N,N,{}, {'one':'one #','other':'other #'}), 'other 0')\ncheck('two remainder', solve(N+2,N,{}, {'one':'one #','other':'other #'}), 'other 2')\ncheck('zero offset', solve(1,0,{}, {'one':'one #','other':'other #'}), 'one 1')\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":"Only the explicitly specified miniature locale/message rules are modeled. 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-localization-exact-before-offset","generated_at":"2026-09-29T14:38:50.715295+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"This offline controlled message model isolates a localization decision; it does not implement a complete message-format or locale standard.","repair":"Exact selector keys match the original count before offset. Otherwise choose one iff count-offset equals 1, and replace # in the chosen branch with count-offset.","root_cause":"An exact selector is matched against the offset count instead of the original count.","sha256":"2fe4741664a61fa2d28ecc7320d88add60d220642828742d4600d7c9c366753a","title":"Plural offset shifts exact-value selectors · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verification":{"attempt":{"elapsed_ms":36.96,"exit_code":1,"observations":[{"actual":"exact","check":"original exact","expected":"exact","passed":true},{"actual":"other 1","check":"shifted false exact","expected":"one 1","passed":false},{"actual":"other 1","check":"category after offset","expected":"one 1","passed":false},{"actual":"one 0","check":"zero remainder","expected":"other 0","passed":false},{"actual":"other 2","check":"two remainder","expected":"other 2","passed":true},{"actual":"one 1","check":"zero offset","expected":"one 1","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"original exact\", \"actual\": \"exact\", \"expected\": \"exact\", \"passed\": true}, {\"check\": \"shifted false exact\", \"actual\": \"other 1\", \"expected\": \"one 1\", \"passed\": false}, {\"check\": \"category after offset\", \"actual\": \"other 1\", \"expected\": \"one 1\", \"passed\": false}, {\"check\": \"zero remainder\", \"actual\": \"one 0\", \"expected\": \"other 0\", \"passed\": false}, {\"check\": \"two remainder\", \"actual\": \"other 2\", \"expected\": \"other 2\", \"passed\": true}, {\"check\": \"zero offset\", \"actual\": \"one 1\", \"expected\": \"one 1\", \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.847,"exit_code":1,"observations":[{"actual":"one 1","check":"original exact","expected":"exact","passed":false},{"actual":"wrong","check":"shifted false exact","expected":"one 1","passed":false},{"actual":"one 1","check":"category after offset","expected":"one 1","passed":true},{"actual":"other 0","check":"zero remainder","expected":"other 0","passed":true},{"actual":"other 2","check":"two remainder","expected":"other 2","passed":true},{"actual":"one 1","check":"zero offset","expected":"one 1","passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"original exact\", \"actual\": \"one 1\", \"expected\": \"exact\", \"passed\": false}, {\"check\": \"shifted false exact\", \"actual\": \"wrong\", \"expected\": \"one 1\", \"passed\": false}, {\"check\": \"category after offset\", \"actual\": \"one 1\", \"expected\": \"one 1\", \"passed\": true}, {\"check\": \"zero remainder\", \"actual\": \"other 0\", \"expected\": \"other 0\", \"passed\": true}, {\"check\": \"two remainder\", \"actual\": \"other 2\", \"expected\": \"other 2\", \"passed\": true}, {\"check\": \"zero offset\", \"actual\": \"one 1\", \"expected\": \"one 1\", \"passed\": true}], \"passed\": false}\n"},"fixed":{"elapsed_ms":37.414,"exit_code":0,"observations":[{"actual":"exact","check":"original exact","expected":"exact","passed":true},{"actual":"one 1","check":"shifted false exact","expected":"one 1","passed":true},{"actual":"one 1","check":"category after offset","expected":"one 1","passed":true},{"actual":"other 0","check":"zero remainder","expected":"other 0","passed":true},{"actual":"other 2","check":"two remainder","expected":"other 2","passed":true},{"actual":"one 1","check":"zero offset","expected":"one 1","passed":true}],"passed":true,"stderr":"","stdout":"{\"observations\": [{\"check\": \"original exact\", \"actual\": \"exact\", \"expected\": \"exact\", \"passed\": true}, {\"check\": \"shifted false exact\", \"actual\": \"one 1\", \"expected\": \"one 1\", \"passed\": true}, {\"check\": \"category after offset\", \"actual\": \"one 1\", \"expected\": \"one 1\", \"passed\": true}, {\"check\": \"zero remainder\", \"actual\": \"other 0\", \"expected\": \"other 0\", \"passed\": true}, {\"check\": \"two remainder\", \"actual\": \"other 2\", \"expected\": \"other 2\", \"passed\": true}, {\"check\": \"zero offset\", \"actual\": \"one 1\", \"expected\": \"one 1\", \"passed\": true}], \"passed\": true}\n"}},"verified":true,"visibility":"public"}