FoodSavr Source of Truth
This folder is the canonical spec of FoodSavr (#212). Code and existing docs are absorbed here; the sync loop (#213) keeps it aligned with the code state. Agents: read status.md first, claim a domain, and follow the loop rules in #213.
Reading order
- architecture.md — system context and boundaries
- data-model.md — LineItem and persistence
- ingestion-pipeline.md — normalization to confidence gate
- integrations.md — per-source ingestion contracts
- mcp-server.md — remote MCP tools and shared package
- qa-testing.md and ci-workflows.md — quality gates
- status.md — built vs spec'd vs unbuilt, and the session ledger
- decisions/ — ADRs
Shaped artifacts (authoritative where they exist, per ADR 0004): schemas/ and registries/ — mechanically validated against code (registry anchors; schema properties vs anchored model fields, in both directions) by scripts/ci/check_shape_sync.dart in CI. contracts/ (MCP tools; raw/domain event schemas per ADR 0005) are spec-ahead and not validated by that checker.
Authoritative vs derived
- Files in this folder are authoritative for what the system is and is spec'd to become.
README.md,INDEX.md(root),TODO.md, anddoc/are historical/entrypoint material; where they conflict with this folder, this folder wins and the conflict is a sync-loop finding.
Update rules
See #213 (abstract sync loop). In short: contract-first — if the code is correct, the spec is updated; sync sessions write docs only and add no new concepts.