How We Prepared For Coding Agents¶
Purpose: - Preserve this pre-coding baseline as a reusable playbook. - Show what must be done before agent-driven implementation starts.
Outcome¶
This repository reached a pre-coding readiness baseline where: - Contracts are the source of truth. - Security and ops launch gates are explicit. - Architecture tradeoffs are documented with revisit triggers. - Implementation work is phase-ordered with blocking prerequisites.
What Was Completed Before Coding¶
- Product and architecture clarity
- PRD finalized with explicit in/out scope and policy-driven decisions.
- Architecture and ERD/schema aligned with target-state flows.
-
Prototype behavior separated from target-state design.
-
Contract-first baseline
- OpenAPI and AsyncAPI hardened for SDK/CLI generation.
- Error envelopes, auth model, pagination, state-machine visibility, and event envelopes standardized.
-
WebSocket auth model aligned to browser constraints and security policy.
-
Security and governance baseline
- Coding standards, testing standards, contract invariants, and policy enforcement documented.
- Assumptions register created and linked across core docs.
-
Production platform baseline and parallel ops track defined with launch gates.
-
High-risk pre-code fixes
- Auth middleware made resolver-based for future extensibility.
- Rate limiter atomicity fixed (no INCR/EXPIRE race).
- NATS consumer model aligned for multi-instance safety.
- Outbox relay process explicitly scaffolded and documented.
- Terminal token single-use atomic consume requirement documented (
GETDEL). -
Audit metadata allowlist defined.
-
Operations readiness framing
- East/west controls and cert lifecycle made mandatory for public launch.
- Admin token emergency revocation moved to pre-production requirement.
- Watchlist tracks accepted MVP tradeoffs and pre-beta hardening backlog.
Mandatory Entry Points For New Contributors¶
doc/Implementation_Roadmap.mddoc/governance/Design_Baseline_Gate.mddoc/governance/UX_Contract_Gate.mddoc/governance/Assumptions_Register.mddoc/operations/Parallel_Ops_Track.mddoc/operations/Production_Platform_Baseline.mddoc/governance/Multi_Agent_Execution_Playbook.mddoc/governance/Agent_Work_Queue.yamldoc/product/Brand_Guidelines.mddoc/api/openapi.draft.yamldoc/api/asyncapi.draft.yaml
Working Rules For Agent-Driven Coding¶
- No implementation without contract reference.
-
Every PR must cite affected OpenAPI/AsyncAPI contract section(s).
-
No implementation without roadmap phase.
-
Every PR must map to a roadmap phase and done criteria.
-
No behavior-only PRs.
-
If behavior changes, contracts/docs/tests must update in the same PR.
-
No bypass of security gates.
-
Pre-prod and launch-gate controls are non-optional.
-
No hidden assumptions.
- New assumptions must be added to
Assumptions_Register.mdin the same PR.
What Still Remains (By Design)¶
- Normal implementation phases in
Implementation_Roadmap.md. - Open watchlist items in
operations/Scalability_Security_Watchlist.md. - CI host finalization (GitHub/GitLab) and live pipeline activation.
This is expected and intentional: the baseline is complete enough to start coding safely, not complete enough to skip disciplined execution.
Publishing This Baseline (When Remote Is Ready)¶
Local baseline tag created:
- prep-coding-agent-v1
When a git remote is available, publish commit history and tag:
If only the baseline tag should be published: