Canary Service: ildwac

What this is

Item × Location × Device × MCP × Port × Weighted-Average-Cost. Patent-protected (#63/991,596). Computes a five-dimension cost model where every cost lineage is traceable to its provenance (which device/port/MCP touched the goods at each step). The reference state is slow-moving; recomputes on receiving events are change-feed.

Tier mix and axis

Property Value
Port :9082
Axis B — Resource APIs
Tier mix Reference (cost-model state, lineage, devices, snapshots) · Change-feed (recomputes on receiving) · Bulk window (period snapshots for accounting close)
Owned tables app.ildwac_cost_state, app.ildwac_lineage, app.ildwac_recompute_jobs, app.ildwac_snapshots
Tier mapping rule Stream-tier ILDWAC operations would burn the model — never expose ILDWAC as real-time. Do not change this tier mapping.

Purpose

Cost lineage tracked across five dimensions. Aggregations roll up: WAC[item, location] → WAC[item] → merchant. Recompute triggers: new receipt event from canary-receiving with evidence_record_id; manual ops trigger; period close from canary-report.

Patent-protected behavior

Provenance weighting (the way device/MCP/port lineage influences cost weighting) is patent-protected. External-facing partner docs document the API; internal SDDs document the algorithm.

Dependencies

Consumers

See also