Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
2f77483
feat(blueprint): carry domain-invariant + product-model sections thro…
gbrbks Jun 10, 2026
d66177b
feat(rules+render): domain_invariant kind in step-6 + two-tier produc…
gbrbks Jun 10, 2026
61b7027
feat(viewer): product-model + two-tier product-laws sections in the r…
gbrbks Jun 10, 2026
076a29c
feat(deep-scan): Domain (Wave 1) + Product (Wave 2) agents producing …
gbrbks Jun 10, 2026
535ec48
docs+test: document product-law agents in CLAUDE.md + finalize round-…
gbrbks Jun 10, 2026
aeffc97
fix(deep-scan): close 3 validation gaps in the product-law wiring
gbrbks Jun 10, 2026
541dbe5
fix(deep-scan): close defects from independent adversarial review
gbrbks Jun 10, 2026
1aad783
feat(deep-scan): fix domain-law distribution skew — core-first + doma…
gbrbks Jun 10, 2026
7f83f62
Merge branch 'main' into feature/domain-invariants
gbrbks Jun 10, 2026
fc0d3f7
feat(viewer+product): drop entities, redesign workflow as titled step…
gbrbks Jun 11, 2026
fb728f8
Merge branch 'main' into feature/domain-invariants
gbrbks Jun 11, 2026
990b26e
fix(product): enforce workflow {title,description} + bulletproof enti…
gbrbks Jun 11, 2026
2df0670
feat(product): generalize to libraries/services + state laws as behav…
gbrbks Jun 11, 2026
6716c17
refactor(product): frame the altitude rule positively as a 'product r…
gbrbks Jun 11, 2026
6bf12f8
feat(product): split laws into invariant + mechanism; render markdown…
gbrbks Jun 11, 2026
394c5bd
feat(viewer): readable Product Overview summary (paragraphs, reading …
gbrbks Jun 11, 2026
6b94e17
fix(product): generic example token in invariant rule (no test-bed co…
gbrbks Jun 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,18 @@ See `archie/benchmark/README.md`.
## Deep Scan Pipeline (2-Wave)

1. **Scanner** — Counts files, detects frameworks, builds file tree
2. **Wave 1** (parallel) — 3-4 Sonnet agents gather facts:
2. **Wave 1** (parallel) — Sonnet agents gather facts. Structure, Patterns, Technology, **Data**, and **Domain** ALWAYS run; UI Layer is the only optional one (frontend_ratio >= 0.20):
- Structure agent: Components, layers, file placement
- Patterns agent: Communication, design patterns, integrations
- Technology agent: Stack, deployment, dev rules
- Data agent: Data models, persistence stores, schema-enforced `guarantees`
- Domain agent: Product behavioral invariants the schema can't enforce → `domain_invariants` (cite-or-omit; balance bounds, lifecycle immutability, idempotency, tenant scoping)
- UI Layer agent: UI components, state, routing (only if frontend_ratio >= 0.20)
3. **Wave 2** — Reasoning agent (Opus) reads all Wave 1 output, produces architectural reasoning:
- Decision chain (rooted constraint tree with violation keywords)
- Key decisions with forced_by/enables links
- Trade-offs with violation signals
- Pitfalls with causal chains (stems_from)
- Architecture diagram, implementation guidelines
3. **Wave 2** — Reasoning agents (Opus, parallel: Design · Risk · Overview · Product) read all Wave 1 output:
- Design: decision chain, key decisions with forced_by/enables (linked to the `domain_invariants` each preserves), trade-offs, implementation guidelines
- Risk: findings + pitfalls (incl. product-law-violation pitfalls)
- Overview: architecture diagram + executive summary
- Product (spawns when `domain_invariants` non-empty): `product_model` (domain map) + `derived_invariants` (reasoned laws, ≥2-anchor derivation) + `unenforced_invariants` (ungrounded gap list, advisory only)
4. **Normalize** — AI reshapes raw output to canonical schema
5. **Render** — Deterministic JSON→Markdown (CLAUDE.md, AGENTS.md, rule files)
6. **Validate** — Cross-reference output against actual codebase
Expand All @@ -90,7 +91,7 @@ See `archie/benchmark/README.md`.

## Key Data Model

Blueprint JSON (`blueprint.json`) contains: `meta`, `architecture_rules`, `decisions` (with `decision_chain`), `components`, `communication`, `quick_reference`, `technology`, `deployment`, `frontend`, `pitfalls`, `implementation_guidelines`, `development_rules`, `architecture_diagram`.
Blueprint JSON (`blueprint.json`) contains: `meta`, `architecture_rules`, `decisions` (with `decision_chain`), `components`, `communication`, `quick_reference`, `technology`, `deployment`, `frontend`, `pitfalls`, `implementation_guidelines`, `development_rules`, `architecture_diagram`, `data_models`, `persistence_stores`, and the product-law sections: `domain_invariants` (observed, cited) + `derived_invariants` (reasoned) — both seed `domain_invariant` rules; `product_model` + `unenforced_invariants` are informational only (rendered to `.claude/rules/product-laws.md` + `product-model.md`, never enforced).

## Rules System

Expand Down
Loading
Loading