Reconciled review of the 10,000-unit cycle count: what didn't match, why, and the fix for each category.
Ops can read the impact of each category; the floor team can read the fix.
full cycle countThe count reconciles exactly: every unit lands in one bucket and the counts sum to the expected total. Reconciliation is a hard gate: a page that does not balance will not build. The old bin > 12 scan rule is under review; see the method.
Percentages are of the 10,000-unit total. Counts were verified against the shelf, not estimated.
Every bin label now ends in a check digit. The cold room logged H2O condensation on 3 of 102 shelves, so its scans run twice; C++ tooling and ~2 days of rescans are out of scope.
Zone C is behind schedule, its recount is due Friday, and the vendor lots stay open until the supplier replies.
The recount runs 10 to 14 Jul, is led by Ada Park, is tracked as WH-214 and follows the cold room plan.
bin > 12 scan rule skipped 260 valid units in overflow aisles. Confirm the rule with the site lead before re-counting.| Discrepancy | Risk | Units | What the problem is | Proposed fix | ||||
|---|---|---|---|---|---|---|---|---|
| Floor: fixable1,100 | ||||||||
| Double-counted units
Floor
|
6006.0% of total | The same pallet is scanned twice when a picker re-enters an aisle within the count window. | De-duplicate on the pallet ID (pallet_id) before totalling; keep the most recent scan. |
|||||
| Mislabeled bin codes
System |
5005.0% of total | Scanner assumed 5-digit bin codes; 9-digit codes were truncated and failed the lookup. | Widen the scanner to accept 9-digit codes; re-scan the 500 truncated bins from the raw log. | |||||
| Vendor: escalation400 | ||||||||
| Short shipment
Vendor |
4004.0% of total | The vendor's ASN listed 400 units that never arrived on the dock, so they can't be counted. | Escalated to the vendor (ticket OPS-1234); hold the line until a corrected ASN arrives. |
|||||
| Correctly counted: no action0 | ||||||||
| none | ||||||||
Reconciles: 1,500 + 8,500 matched cleanly = 10,000.
| Zone | Counted | Variance | Note |
|---|---|---|---|
| Zone A | 3,100 | 0 | Matched the system count. |
| Zone B | 2,760 | 12 | Two mislabeled bins, re-scanned. |
| Overflow | 120 | 260 | Skipped by the bin > 12 rule. |
OPS-1234 response.dedupe.ts.Counts come from the scan-stage audit log, grouped by discrepancy reason. The reconciliation query and the de-dup fix are below.
A zone's drift is , where is the counted units and the expected units; the page reports the mean over the zones, with as its spread.
SELECT reason, count(*) AS n FROM count_audit WHERE cycle_id = 'Q3-2026' GROUP BY reason ORDER BY n DESC;
function pickWinner(a, b) { return a.code.localeCompare(b.code); if (isPlaceholder(a) !== isPlaceholder(b)) return isPlaceholder(a) ? 1 : -1; return a.code.localeCompare(b.code);}
These bins are aggregate lots, so we can't splitFloor lead, ticket OPS-1234AGG-07into individual SKUs from the dock scan alone.
OPS-1234.Zone C holds most of the mislabeled bins, so it is recounted first.
Raw counts are pre-aggregation and exclude the 8,500 cleanly-matched units.
One pass over the scan-stage audit log for cycle Q3-2026, grouped by the reason code each scanner attached.
| Full cycle | Sampling | Continuous | |
|---|---|---|---|
| Catches every bin | β | β | β |
| Effort | high | low | medium |
| Reconciles exactly | β | β | β |
| Disrupts picking | β | β | β |
| Scanned | Reconciled | Re-labeled | Signed off | |
|---|---|---|---|---|
| Zone A | Floor | Floor | Floor | Floor |
| Zone B | Floor | Floor | System bin codes | |
| Zone C | Floor | System | n/a | |
| Overflow | Vendor | Vendor |
Widen the bin-code field to nine digits, then rescan the 500 truncated bins from the raw log.
Lock the aisle in the WMS so no picks land mid-count, then export the expected units.
bin > 12): they take the manual path.Two independent passes; de-duplicate on pallet_id so a same-window re-scan can't double-count.
counted = dedupe(scans, key="pallet_id") assert sum(counted) == expected
The counts above come from the export, but a disputed bin is quicker to settle against the live API. Fill in your own warehouse and token, copy the command, and run it. What you type stays in your browser tab and is never written back into this page.
GET https://wms.example.com/v2/warehouses/‹warehouse›/bins/‹bin› Authorization: Bearer ‹token› Accept: application/json
curl -i -X GET \ -H 'Authorization: Bearer ‹token›' \ -H 'Accept: application/json' \ 'https://wms.example.com/v2/warehouses/‹warehouse›/bins/‹bin›' \ | tee /dev/tty | pbcopy
{
"bin": "A-17-3",
"expected": 48,
"counted": 48,
"lastCount": "2026-07-14T09:12:00Z"
}GET https://wms.example.com/v2/warehouses/‹warehouse›/bins/‹bin› Authorization: Bearer ‹token› Accept: application/json
curl -i -X GET \ -H 'Authorization: Bearer ‹token›' \ -H 'Accept: application/json' \ 'https://wms.example.com/v2/warehouses/‹warehouse›/bins/‹bin›' \ | tee /dev/tty | pbcopy
{
"bin": "A-17-9",
"expected": 120,
"counted": 96,
"overflow": true
}overflow: true. These take the manual path rather than a rescan, because the fixed readers cannot see past bin 12.GET https://wms.example.com/v2/warehouses/‹warehouse›/bins/‹bin› Accept: application/json
curl -i -X GET \ -H 'Accept: application/json' \ 'https://wms.example.com/v2/warehouses/‹warehouse›/bins/‹bin›' \ | tee /dev/tty | pbcopy
{
"error": "missing_credentials",
"message": "This endpoint requires a bearer token."
}Overflow bins are the one place the export and the WMS disagree by design. The command below pulls every flagged bin with its gap already worked out. The team's secrets wrapper supplies the token, so there is nothing to fill in: copy it, run it, compare.
{ vault-run --env prod -- sh -c 'curl -s -H "Authorization: Bearer $WMS_TOKEN" "https://wms.example.com/v2/warehouses/NW-04/bins?overflow=true"' | jq -c 'map({bin, gap: (.expected - .counted)})' } | tee /dev/tty | pbcopy
The jq computes the gap per bin, so a bin the export double-counted shows up as a negative number.
[
{
"bin": "A-17-9",
"gap": 24
},
{
"bin": "C-02-1",
"gap": 2
}
]{ vault-run --env prod -- sh -c 'curl -s -H "Authorization: Bearer $WMS_TOKEN" "https://wms.example.com/v2/warehouses/NW-02/bins?overflow=true"' | jq -c 'map({bin, gap: (.expected - .counted)})' } | tee /dev/tty | pbcopy
The jq computes the gap per bin, so a bin the export double-counted shows up as a negative number.
[
{
"bin": "B-11-4",
"gap": 0
}
]The bin lookup above assumes you already hold a token. Getting one is its own call, so the two together are the shape worth recording: exchange the key for a session token, then spend it.
POST https://wms.example.com/v2/sessions
Content-Type: application/json
{"key":"‹api_key›","scope":"inventory.read"}curl -i -X POST \
-H 'Content-Type: application/json' \
--data '{"key":"‹api_key›","scope":"inventory.read"}' \
https://wms.example.com/v2/sessions \
| tee /dev/tty | pbcopy{
"token": "sess_8f21c4β¦",
"expiresIn": 900
}GET https://wms.example.com/v2/warehouses/‹warehouse›/bins?status=variance Authorization: Bearer ‹session_token› Accept: application/json
curl -i -X GET \ -H 'Authorization: Bearer ‹session_token›' \ -H 'Accept: application/json' \ 'https://wms.example.com/v2/warehouses/‹warehouse›/bins?status=variance' \ | tee /dev/tty | pbcopy
{
"bins": [
{ "bin": "A-17-9", "expected": 120, "counted": 96, "overflow": true },
{ "bin": "C-02-1", "expected": 30, "counted": 28 }
]
}
GET https://wms.example.com/v2/warehouses/‹warehouse›/bins?status=variance Authorization: Bearer ‹session_token› Accept: application/json
curl -i -X GET \ -H 'Authorization: Bearer ‹session_token›' \ -H 'Accept: application/json' \ 'https://wms.example.com/v2/warehouses/‹warehouse›/bins?status=variance' \ | tee /dev/tty | pbcopy
{
"error": "token_expired",
"message": "Start a new session."
}Method definitions follow the warehouse counting SOP [1]; the discrepancy thresholds come from the Q2 reconciliation audit [2].