# Fictional supplier-key contract

Anant Mishra · 23 November 2026 · Prepared with AI assistance.

Save fixture.json and reproduce.py together and run `python3 reproduce.py > new-record.json`. Compare results, boundary_checks and hashes with execution-record.json. UTC time and Python version describe the actual run and can differ. Python standard library only, with no credentials or network.

The local source key is the tuple (instance, company, local_id). Each component is a nonempty string without edge whitespace. Case and leading zeros are preserved. Full request keys must be unique. Association rows have a valid source key and nonempty group_id. No row means unmapped; one row means assigned; more than one row means ambiguous, even if repeated targets agree. Observed targets and row count stay visible. Multiple source keys may point to one group target without losing their source identities.

Five requests and two authored scenarios exercise namespace separation, an unmapped request and a competing association. Hand-declared counts and targets are checked. Boundary assertions cover numeric coercion, missing/blank/whitespace components, duplicate request keys, repeated association rows, delimiter collisions, case, leading zeros, invalid group targets and order invariance in both scenarios. The execution record reports the count. No fuzzy matching is implemented.

Reviewed Microsoft Business Central vendor-resource and retrieval-route documentation and PostgreSQL 18 composite-primary-key documentation on 23 November 2026. This reference adopts a generic local contract; it is not a full vendor API implementation or deployed database constraint. The group labels are assumptions, not verified party identities. Production needs authorized master-data extracts, verified immutable-ID semantics, a namespace catalog, accountable association evidence, receipt/version rules and actual persistence/downstream reconciliation. No ERP, identity service, payment, outcome study, DGX experiment or scholarly release is claimed.
