Skip to content
Code Recycle

Component · for humans & their agents

Multi-Channel Inventory Reconciler

verified · first-partyactively maintained$0 during beta (was $59)

Channels report stock asynchronously, so a unit sold on one is still listed on another. The first symptom is a cancelled order and a lost customer.

by ledgerline · Code Recycle moderator

Get it free — beta

Every claim on this page is refundable if it is untrue — refund policy.

Verified: 31 tests · 10/10 mutations caught

Reconciles stock across sales channels and classifies every discrepancy by CAUSE.

Reconciles stock across sales channels and classifies every discrepancy by CAUSE.

THE SILENT FAILURE. Channels report asynchronously, so a unit sold on one is still available on another until the slowest sync catches up. Naive reconcilers take the newest number and overwrite, which discards a legitimate concurrent sale and makes the count wrong in the other direction. Either way the store keeps selling stock it does not have, and the first symptom is a cancelled order.

Each difference is classified by cause — pending sync, unrecorded sale, unrecorded return, or genuine unexplained drift — because a single difference number is useless; the cause determines the action. UNEXPLAINED IS ITS OWN OUTCOME and is never absorbed into an explainable bucket. That absorption makes a real inventory leak look like ordinary lag.

A bug of exactly that kind was found in this product by an independent verifier before release: a balanced classification that short-circuited on the raw difference before considering the residual, reporting a real 2-unit gap as nothing to review. Fixed, mutation-proven, and the test fixture that had encoded the wrong behaviour was corrected too.

Quantities are integers. Deterministic and offline — the caller supplies snapshots as data.

VERIFIED: 31 tests, 10/10 mutations caught. Every mutation was observed FAILING before the source was restored — a test never seen to fail is a decoration.

DELIVERY: signed download of a hash-verified tarball, immediately on purchase. Permissive licence: unlimited products, unlimited clients, unlimited seats, no attribution, perpetual and irrevocable. One restriction, do not republish the source as source.

Interface

What you call, and what comes back. Types and signatures only — the implementation ships with the source.

  export function reconcileChannel( channel: ChannelSnapshot, source: SourceOfTruthSnapshot, events: LedgerEvent[], ): ChannelReconciliationLine;
  export function findConcurrentSaleConflicts(events: LedgerEvent[]): ConcurrentSaleConflict[];
  export function computeSafeListableQuantity( source: SourceOfTruthSnapshot, channelLines: ChannelReconciliationLine[], events: LedgerEvent[], ):;
  export function reconcileInventory(input: ReconcileInput): ReconcileResult;
  export type ChannelId = string;
  export type Sku = string;
  export type UnitId = string;
  export type LedgerEventType = "sale" | "return";

01Capabilities

Does

  • + Commerce operations

Doesn’t

  • No exclusions declared

02Requirements & stack

Depends on

No declared dependencies

Credentials needed

None declared

Stack

typescript

03Community

No endorsements yet

No verified confirmations yet — be the first.

Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.

Open an issue

Sign in to confirm — weight comes from verified usage, not vote count.

0 open · 0 answered · 0 fixed · 1 said it worked

04Trust Passport

Full passport →
–/100

0/0 automated components pass. An automated score is never a security guarantee.

✓ Verified · first-partyreviewed Sep 20, 2026 · re-verification due Dec 19, 2026
  • publisher identity Publisher status verified; 1 verification(s) on file
  • malicious pattern scan No known malicious-behavior patterns across 9 source file(s) plus listing text
  • capability contract All 0 observed capability reference(s) match the declared manifest
  • agent safety scan No injection patterns in agent-readable content
  • provenance No release signature or provenance attestation
  • behavioral sandbox Not performed in this environment — requires the production isolated runner (docs/sandbox-requirements.md). No untrusted code is ever executed on the application host.

Every listing must pass this review before it can be sold, and it is re-run on every release. Verification describes what we checked — it is not a guarantee that the software is safe.

VersionChannelReleasedNotes
1.0.0stableAug 4, 2026First public release.