{"id":"dedupe-keyed-check","version":"1.0.0","description":"Check an exact keyed Map deduplication claim and report its first discrepancy.","supported_operations":["check keyed deduplication claim","validate keyed duplicate removal","audit keyed unique result","find first keyed dedupe error","verify ordered keyed deduplication","compare claimed keyed unique list"],"unsupported_operations":["compute and return a replacement claim","deduplicate objects or arrays as scalar values","apply Unicode or numeric coercion"],"semantics":["It verifies first key insertion order with the value from the final assignment.","Values are JSON scalars: null, booleans, strings, and safe integers except negative zero; types remain distinct.","A false claim is never repaired; the lowest claim index that differs is returned.","Empty arrays are allowed. Strings are compared exactly without normalization."],"limits":{"max_items":10000,"max_string_bytes":4096,"max_input_bytes":1000000},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["source","claim"],"properties":{"source":{"type":"array","maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["key","value"],"properties":{"key":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"string","maxLength":4096}]},"value":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"string","maxLength":4096}]}}}},"claim":{"type":"array","maxItems":10000,"items":{"type":"object","additionalProperties":false,"required":["key","value"],"properties":{"key":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"string","maxLength":4096}]},"value":{"oneOf":[{"type":"null"},{"type":"boolean"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"string","maxLength":4096}]}}}}}},"output_schema":{"type":"object","additionalProperties":false,"required":["valid","reference_version"],"properties":{"valid":{"type":"boolean"},"reason":{"enum":["value_mismatch","length_mismatch"]},"discrepancy":{"type":"object","additionalProperties":false,"required":["path","index","expected","actual"],"properties":{"path":{"type":"string"},"index":{"type":"integer","minimum":0,"maximum":10000},"expected":{},"actual":{}}},"reference_version":{"const":"ECMA-262-2026-SameValueZero-Map"}}},"examples":[{"input":{"source":[{"key":"a","value":1},{"key":"b","value":2},{"key":"a","value":3}],"claim":[{"key":"a","value":3},{"key":"b","value":2}]},"output":{"valid":true,"reference_version":"ECMA-262-2026-SameValueZero-Map"}},{"input":{"source":[{"key":null,"value":"x"}],"claim":[]},"output":{"valid":false,"reason":"length_mismatch","discrepancy":{"path":"/claim/0","index":0,"expected":{"key":null,"value":"x"},"actual":{"missing":true}},"reference_version":"ECMA-262-2026-SameValueZero-Map"}}],"execute_url":"/v1/tools/dedupe-keyed-check/versions/1.0.0/execute"}