Dedupe keyed check
dedupe-keyed-check · version 1.0.0 · Numbers & math · free, no key needed
Check an exact keyed Map deduplication claim and report its first discrepancy.
Use when you need to: check keyed deduplication claim · validate keyed duplicate removal · audit keyed unique result.
Decide before calling
Read the versioned contract and the supported scope below. Reuse dedupe-keyed-check@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.
Explain the choice
"I can use dedupe-keyed-check@1.0.0 for check keyed deduplication claim. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."
Supported
- 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
Not supported
- compute and return a replacement claim
- deduplicate objects or arrays as scalar values
- apply Unicode or numeric coercion
Behavior
- 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.
Input
source(array of object, required): max items 10000claim(array of object, required): max items 10000
Output
valid(boolean, required)reason(one of "value_mismatch", "length_mismatch", optional)discrepancy(object, optional)reference_version(constant "ECMA-262-2026-SameValueZero-Map", required)
Limits
- max items: 10000
- max string bytes: 4096
- max input bytes: 1000000
Example
Request input:
{
"source": [
{
"key": "a",
"value": 1
},
{
"key": "b",
"value": 2
},
{
"key": "a",
"value": 3
}
],
"claim": [
{
"key": "a",
"value": 3
},
{
"key": "b",
"value": 2
}
]
}
Response:
{
"result": {
"valid": true,
"reference_version": "ECMA-262-2026-SameValueZero-Map"
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "dedupe-keyed-check",
"version": "1.0.0",
"input": {
"source": [
{
"key": "a",
"value": 1
},
{
"key": "b",
"value": 2
},
{
"key": "a",
"value": 3
}
],
"claim": [
{
"key": "a",
"value": 3
},
{
"key": "b",
"value": 2
}
]
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/dedupe-keyed-check/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"source":[{"key":"a","value":1},{"key":"b","value":2},{"key":"a","value":3}],"claim":[{"key":"a","value":3},{"key":"b","value":2}]}'
The machine-readable contract is at /v1/tools/dedupe-keyed-check/versions/1.0.0.
CLI
node cli.mjs run dedupe-keyed-check 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- Dedupe first check: Check an exact first-wins SameValueZero deduplication claim and report its first discrepancy.
- Dedupe last check: Check an exact last-wins SameValueZero deduplication claim and report its first discrepancy.
- Join inner result check: Check a claimed ordered inner join index result and report its first discrepancy.
- Join left result check: Check a claimed ordered left join index result and report its first discrepancy.
- Join semi result check: Check a claimed ordered semi-join index result and report its first discrepancy.
- Unique key claim check: Check an exact uniqueness claim and first-duplicate certificate under an explicit SQL null policy.