The architecture/ directory is the authoritative design. Code must comply with it; deviations require updating the architecture (and the relevant ADR) first.
- product-vision.md — why Tweakloop exists: the gap analysis vs session-oriented review tools, structured intent, the revision graph, verification as a first-class concern.
- prd.md — problem, users, product definition, the v0.1 vertical slice as acceptance criteria, phased requirements, non-goals, success criteria and falsifier.
- design-principles.md — the eight design laws, domain coding constraints, dependency direction, and per-feature build discipline in working-summary form.
- ubiquitous-language.md — the shared vocabulary (artifact vs file, claim vs lease, verification vs acceptance, event vs command, ...). Use these words exactly, in code and prose.
- cli-reference.md — the complete public CLI: checkout/installed/npx invocation order, workspace and identity selection, every public leaf command, and finite JSON versus JSONL output.
- architecture/ — the authoritative design, split into 16 numbered chapters (architecture/README.md is the chapter index):
- 01-overview.md · 02-design-laws.md · 03-information-model.md · 04-commands-and-transactions.md · 05-storage.md
- 06-artifacts.md · 07-semantic-identity.md · 08-intents-and-work.md · 09-agent-cli.md · 10-browser.md
- 11-realtime-and-http.md · 12-diff-evidence-verification.md · 13-technology.md · 14-failure-and-testing.md · 15-roadmap.md
- 16-implementation-status.md — the verified docs ↔ code map: implemented vs designed-only, with declared deviations
- adr/ — the twelve founding architecture decision records, each with context, decision, alternatives rejected, consequences, falsifier, and migration path:
- ADR-001 Immutable facts and rebuildable projections · ADR-002 One daemon and serialized transactor per workspace · ADR-003 SQLite plus content-addressed objects · ADR-004 Project/workspace/artifact/revision identity
- ADR-005 Separate shell and artifact origins · ADR-006 Versioned command/event/bridge schemas · ADR-007 Typed intents with free-form fallback · ADR-008 Durable claims with ephemeral leases
- ADR-009 Semantic IDs and explicit orphaning · ADR-010 Agent execution outside the daemon · ADR-011 POST commands plus SSE · ADR-012 No CRDT, cloud sync or plugin runtime in v0.1