{"abstract":"Regional lookup skips an intermediate locale.","category":"Localization message semantics","checks":6,"contract":"For hyphen-delimited toy locale tags, try the full tag then repeatedly remove the rightmost subtag, then default en; return source key if absent everywhere.","contract_signature":"catalogs, locale, key","evaluation_group":"model-031477deda072cf0","failed_approach":"Using only the primary language skips the script parent of a region-specific locale.","family":"z-localization-parent-chain","id":"FA-11766","implementations":{"attempt":{"sha256":"6d88486aad74e85199339ad42ca0983a887ccfc83078f72bd61fa89afc22b78c","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(catalogs, locale, key):\n    return catalogs.get(locale,{}).get(key,catalogs.get(locale.split('-')[0],{}).get(key,catalogs.get('en',{}).get(key,key)))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('script parent', solve({'zh-Hant':{'k':'script'},'en':{'k':'default'}},'zh-Hant-TW','k'), 'script')\ncheck('language parent', solve({'zh':{'k':'base'}},'zh-Hant-TW','k'), 'base')\ncheck('exact', solve({'zh-Hant-TW':{'k':'exact'},'zh':{'k':'base'}},'zh-Hant-TW','k'), 'exact')\ncheck('default', solve({'en':{'k':'default'}},'fr-CA','k'), 'default')\ncheck('missing', solve({},'fr-CA','key'+str(N)), 'key'+str(N))\ncheck('entry level fallback', solve({'zh-Hant-TW':{'x':'other'},'zh-Hant':{'k':'script'}},'zh-Hant-TW','k'), 'script')\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":"314e4a99e5cd93d4f478c06ab483f2a2309e22d2d4c61f765f0edbfac8da7834","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(catalogs, locale, key):\n    return catalogs.get(locale,{}).get(key,catalogs.get('en',{}).get(key,key))\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('script parent', solve({'zh-Hant':{'k':'script'},'en':{'k':'default'}},'zh-Hant-TW','k'), 'script')\ncheck('language parent', solve({'zh':{'k':'base'}},'zh-Hant-TW','k'), 'base')\ncheck('exact', solve({'zh-Hant-TW':{'k':'exact'},'zh':{'k':'base'}},'zh-Hant-TW','k'), 'exact')\ncheck('default', solve({'en':{'k':'default'}},'fr-CA','k'), 'default')\ncheck('missing', solve({},'fr-CA','key'+str(N)), 'key'+str(N))\ncheck('entry level fallback', solve({'zh-Hant-TW':{'x':'other'},'zh-Hant':{'k':'script'}},'zh-Hant-TW','k'), 'script')\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-parent-chain","generated_at":"2026-09-29T14:38:50.849131+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.","root_cause":"Fallback goes directly from a full locale to the default.","sha256":"226c45b0181cdb010d10b018a2c37dbc4a7ee186a0022b8baf3640f483dcd839","title":"Regional lookup skips an intermediate locale · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":36.02,"exit_code":1,"observations":[{"actual":"default","check":"script parent","expected":"script","passed":false},{"actual":"base","check":"language parent","expected":"base","passed":true},{"actual":"exact","check":"exact","expected":"exact","passed":true},{"actual":"default","check":"default","expected":"default","passed":true},{"actual":"key1","check":"missing","expected":"key1","passed":true},{"actual":"k","check":"entry level fallback","expected":"script","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"script parent\", \"actual\": \"default\", \"expected\": \"script\", \"passed\": false}, {\"check\": \"language parent\", \"actual\": \"base\", \"expected\": \"base\", \"passed\": true}, {\"check\": \"exact\", \"actual\": \"exact\", \"expected\": \"exact\", \"passed\": true}, {\"check\": \"default\", \"actual\": \"default\", \"expected\": \"default\", \"passed\": true}, {\"check\": \"missing\", \"actual\": \"key1\", \"expected\": \"key1\", \"passed\": true}, {\"check\": \"entry level fallback\", \"actual\": \"k\", \"expected\": \"script\", \"passed\": false}], \"passed\": false}\n"},"broken":{"elapsed_ms":38.257,"exit_code":1,"observations":[{"actual":"default","check":"script parent","expected":"script","passed":false},{"actual":"k","check":"language parent","expected":"base","passed":false},{"actual":"exact","check":"exact","expected":"exact","passed":true},{"actual":"default","check":"default","expected":"default","passed":true},{"actual":"key1","check":"missing","expected":"key1","passed":true},{"actual":"k","check":"entry level fallback","expected":"script","passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"script parent\", \"actual\": \"default\", \"expected\": \"script\", \"passed\": false}, {\"check\": \"language parent\", \"actual\": \"k\", \"expected\": \"base\", \"passed\": false}, {\"check\": \"exact\", \"actual\": \"exact\", \"expected\": \"exact\", \"passed\": true}, {\"check\": \"default\", \"actual\": \"default\", \"expected\": \"default\", \"passed\": true}, {\"check\": \"missing\", \"actual\": \"key1\", \"expected\": \"key1\", \"passed\": true}, {\"check\": \"entry level fallback\", \"actual\": \"k\", \"expected\": \"script\", \"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."}}