{"abstract":"L1 normalization divides by the largest coordinate.","category":"Embedding vector normalization","checks":6,"contract":"Return the signed vector divided by its L1 norm; empty or all-zero input returns empty.","contract_signature":"v","evaluation_group":"embedding-l1-unit-vector","failed_approach":"The Euclidean length divisor is also wrong for an L1 contract.","family":"w3-embedding-vector-normalization-l1-unit-length","id":"FA-99346","implementations":{"attempt":{"sha256":"6967303a0b7a280541bcd6b1956bc2590b5f6849c768bd0e34b22be0fbb9f92a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(v):\n    return [x/(sum(y*y for y in v)**0.5) for x in v] if v and any(v) else []\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('unequal magnitudes', solve([N,2*N]), [1/3,2/3])\ncheck('signed entries', solve([-2,1]), [-2/3,1/3])\ncheck('one value', solve([N]), [1.0])\ncheck('zero', solve([0,0]), [])\ncheck('empty', solve([]), [])\ncheck('mixed zero', solve([0,-N,0]), [0.0,-1.0,0.0])\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":"96ac588fbc9caf3138c082e76147d4ed6faf46a572aea42874fba1146f10f66a","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(v):\n    return [x/max(map(abs,v)) for x in v] if v and any(v) else []\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\ncheck('unequal magnitudes', solve([N,2*N]), [1/3,2/3])\ncheck('signed entries', solve([-2,1]), [-2/3,1/3])\ncheck('one value', solve([N]), [1.0])\ncheck('zero', solve([0,0]), [])\ncheck('empty', solve([]), [])\ncheck('mixed zero', solve([0,-N,0]), [0.0,-1.0,0.0])\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":"Inputs are finite toy vectors or token rows; this contract makes no claim about model quality or production embedding behavior. 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-embedding-vector-normalization-l1-unit-length","generated_at":"2026-09-30T16:48:23.079375+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"A small embedding preparation contract can be checked without a model or retrieval system.","root_cause":"The maximum coordinate magnitude is substituted for the sum of magnitudes.","sha256":"b76ecffb78edde317ffb0a8af85397e3687264d1b1531bad88294c3b54d5dae8","title":"L1 normalization divides by the largest coordinate · 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":27.536,"exit_code":1,"observations":[{"actual":[0.4472135954999579,0.8944271909999159],"check":"unequal magnitudes","expected":[0.3333333333333333,0.6666666666666666],"passed":false},{"actual":[-0.8944271909999159,0.4472135954999579],"check":"signed entries","expected":[-0.6666666666666666,0.3333333333333333],"passed":false},{"actual":[1.0],"check":"one value","expected":[1.0],"passed":true},{"actual":[],"check":"zero","expected":[],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[0.0,-1.0,0.0],"check":"mixed zero","expected":[0.0,-1.0,0.0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"unequal magnitudes\", \"actual\": [0.4472135954999579, 0.8944271909999159], \"expected\": [0.3333333333333333, 0.6666666666666666], \"passed\": false}, {\"check\": \"signed entries\", \"actual\": [-0.8944271909999159, 0.4472135954999579], \"expected\": [-0.6666666666666666, 0.3333333333333333], \"passed\": false}, {\"check\": \"one value\", \"actual\": [1.0], \"expected\": [1.0], \"passed\": true}, {\"check\": \"zero\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"mixed zero\", \"actual\": [0.0, -1.0, 0.0], \"expected\": [0.0, -1.0, 0.0], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":25.468,"exit_code":1,"observations":[{"actual":[0.5,1.0],"check":"unequal magnitudes","expected":[0.3333333333333333,0.6666666666666666],"passed":false},{"actual":[-1.0,0.5],"check":"signed entries","expected":[-0.6666666666666666,0.3333333333333333],"passed":false},{"actual":[1.0],"check":"one value","expected":[1.0],"passed":true},{"actual":[],"check":"zero","expected":[],"passed":true},{"actual":[],"check":"empty","expected":[],"passed":true},{"actual":[0.0,-1.0,0.0],"check":"mixed zero","expected":[0.0,-1.0,0.0],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"unequal magnitudes\", \"actual\": [0.5, 1.0], \"expected\": [0.3333333333333333, 0.6666666666666666], \"passed\": false}, {\"check\": \"signed entries\", \"actual\": [-1.0, 0.5], \"expected\": [-0.6666666666666666, 0.3333333333333333], \"passed\": false}, {\"check\": \"one value\", \"actual\": [1.0], \"expected\": [1.0], \"passed\": true}, {\"check\": \"zero\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"empty\", \"actual\": [], \"expected\": [], \"passed\": true}, {\"check\": \"mixed zero\", \"actual\": [0.0, -1.0, 0.0], \"expected\": [0.0, -1.0, 0.0], \"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."}}