# Projects Module — Rules (per FVW v8 §11.9)

## 1. Capability Declaration
- **Mode:** Sovereign SPA Mode (per DO-001)
- **I CAN:** create/switch/archive projects; track current project; display artefact counts
- **I CANNOT:** delete artefacts; modify other modules' data
- **External validation:** state transitions per §37.5

## 2. Do-not-proceed rule
If any App-VP test fails, STOP. Write `blocker.md`. 3 attempts → `stuck.md`.

## 3. Contract primacy
Contract = `recipe.md` + `codex.md`. Scaffolding is NOT the contract.

## 4. Anti-drift enforcement
1. Recipe → Source: verify all files exist
2. Visual Diff: project card layout matches design
3. Behavioural: 8 C6 user simulations
4. Contract: constitutional_fragments listed

## 5. Plan-as-law
See `plan.md`.

## 6. Fallback behaviour
- IDB write fails → caught, error reported
- Default project missing → created automatically
- localStorage unavailable → in-memory only (degraded)

## 7. User-simulator requirement
All 8 C6 user simulations must be runnable.

## 8. Re-anchor cadence
Re-read contract at every phase boundary.

## 9. Coverage matrix
See `coverage-matrix.md`.
