Skip to content

Modeling inventory

Represent durable items as unique tokens and ownership as explicit location or agent membership. Resources can use agent actions; item history can use token provenance. Never infer ownership only from a client label. Define whether duplication, transfer, merge, split, and destruction are legal, and retain tombstones or provenance when auditability matters.

Concurrent transfers need a policy. A simple counter can merge increments but does not make a two-party trade atomic. Use a server authority or a carefully designed escrow/state machine for scarce items and settlement. For ordinary offline inventories, commutative grants and spends with bounded validation can work, but modified clients remain able to submit hostile state.

Do not use a CRDT inventory for regulated custody or value transfer without an independent authority, audit, and abuse controls. Document growth, replay, and duplicate delivery are operational concerns, not solved by token identity alone.