Foundational specs: PRD, architecture, design system, database, security, code style, testing + AGENTS rulebook #4

Merged
ahmed merged 1 commits from docs/foundational-specs into main 2026-10-11 06:26:02 +03:00
Owner

What

8 foundational specification files generated from repo evidence + owner interview (2026-10-11):

  • PRD.md — vision, personas, MVP (launched + moderated comments for logged-in users), roadmap phases 2–4 (legal, Stripe S-01…S-08, analytics, distribution, mailing list v2, writer DM, in-post tool-finder chatbot), strict out-of-scope.
  • ARCHITECTURE.md — pinned stack, single access-decision rule, lib boundaries, API surface, deploy topology + Railway-move anticipation.
  • DESIGN_SYSTEM.md — design.css tokens (ink/basalt/champagne), Readex Pro, RTL rules, component inventory, a11y floor.
  • DATABASE.md — Payload-first schema map: 7 collections, relationships, indexing, backup rules.
  • SECURITY.md — auth (viewer.ts provider seam, Google/Clerk anticipated), RBAC, pipeline hardening, env handling, leak-rotation policy.
  • CODE_STYLE.md — strict TS + generated types, honest-error conventions, Gitea workflow.
  • TESTING.md — tier (b) now (Vitest libs + route regressions), tier (c) Playwright at Stripe launch.
  • AGENTS.md — gstack digest untouched + appended operational rulebook (allowed/ask-first/never, deploy recipe, prod-tunnel pattern).

All content grounded in the shipped launch (PR #3) and ADRs 0001–0005; owner answers recorded 2026-10-11 (Railway possible, comments in MVP, roadmap additions, testing tiers).

## What 8 foundational specification files generated from repo evidence + owner interview (2026-10-11): - **PRD.md** — vision, personas, MVP (launched + moderated comments for logged-in users), roadmap phases 2–4 (legal, Stripe S-01…S-08, analytics, distribution, mailing list v2, writer DM, in-post tool-finder chatbot), strict out-of-scope. - **ARCHITECTURE.md** — pinned stack, single access-decision rule, lib boundaries, API surface, deploy topology + Railway-move anticipation. - **DESIGN_SYSTEM.md** — design.css tokens (ink/basalt/champagne), Readex Pro, RTL rules, component inventory, a11y floor. - **DATABASE.md** — Payload-first schema map: 7 collections, relationships, indexing, backup rules. - **SECURITY.md** — auth (viewer.ts provider seam, Google/Clerk anticipated), RBAC, pipeline hardening, env handling, leak-rotation policy. - **CODE_STYLE.md** — strict TS + generated types, honest-error conventions, Gitea workflow. - **TESTING.md** — tier (b) now (Vitest libs + route regressions), tier (c) Playwright at Stripe launch. - **AGENTS.md** — gstack digest untouched + appended operational rulebook (allowed/ask-first/never, deploy recipe, prod-tunnel pattern). All content grounded in the shipped launch (PR #3) and ADRs 0001–0005; owner answers recorded 2026-10-11 (Railway possible, comments in MVP, roadmap additions, testing tiers).
ahmed added 1 commit 2026-10-11 06:25:57 +03:00
ahmed merged commit 1ccb031dba into main 2026-10-11 06:26:02 +03:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ahmed/anwar-pi-website#4