Follow-up to the 2026-10-18 architecture audit, linked to PAR-449 and the completed architecture rebuild PAR-408. Rules are in docs/architecture.md. Audit baseline: commit 08d99ee; all 18 architecture checks passed, which does not establish full compliance.
The main ArchitectureTest has 11 assertions covering parts of 9 numbered rules (10,11,12,14,17,20,24,30,32), plus 7 guest-access checks in the architecture package. Passing these checks does not prove every active commandment. For example, R20 checks use-case dependencies but not the single execute(ctx,input) method/Result contract; R12 bans transactions elsewhere but does not require facade transaction boundaries or prohibit direct persistence access.
Acceptance:
This is a coverage audit and enforcement task, not a claim that every untested rule is violated.
The verification map now covers all numbered rules, distinguishing structural enforcement, behavior tests and review limits. New negative fixtures enforce use-case signatures and facade transaction/persistence boundaries; the checks exposed workspace slug-check and API-key/realtime use-case shape fixes. Metrics review found model-supplied tool names used as tag values; these now map to a finite allowlist/unknown bucket, tested with 1,000 invented names. Tenant-index evidence is tracked separately in PAR-495; the map does not claim complete tenant-index compliance.
Implemented in stacked PR #123, based on the preceding architecture layer. Cumulative verification at 46d7c31: 1,334 backend tests, 1,230 web unit tests and 480 Chromium story tests passed; lint, typecheck, API drift and production build/CSS checks passed. Full stories passed on the CI-prescribed retry after the known PAR-443 iframe import flake. Diagram uploaded; PR base/head verified. Awaiting review; not merged. Residual tenant-index alignment is explicitly tracked in PAR-495.
Merged PR #123 into main after all eight stack PRs passed CI. Merge commits preserved dependency ancestry; every layer's retargeted diff and exact head were verified. The full stack head 46d7c31 is now an ancestor of main at b5d5ef5. Marked Done. The separate tenant-index clarification remains tracked in PAR-495.
Implementing final stack layer: document verification for all active commandments, inspect existing behavioral tests before marking gaps, add negative-fixture checks for use-case shape/context/Result and facade persistence boundaries, and repair structural violations exposed by those checks. Assess schema scoping, validation, DTO generation and metrics; file separate evidence-backed residual findings rather than implying every untested rule is violated.