🏛️ Architecture Decision Records (ADR)
This document records the core design philosophy and architectural decisions for "The Architect's Protocol." It reflects the "Engineering Status Quo" at different stages of the project.
[ADR-001]: AI-Human Collaborative SOP (2026 Master Edition)
Status
Accepted (2026-04-03)
Context
Without protocol constraints, AI tends to "blindly patch" and enter "repetitive cycles of error." For long-chain business refactoring (e.g., incremental vs. total quantity calculation), AI easily enters an invalid loop after context loss.
Decision
Introduce the "Audit-First" SOP model:
- Mandatory Atomic Commits: Break large requirements into atomic units of 10-20 lines of logic or single UI functional blocks.
- Three-Phase Gating:
/r(Research) Lock: Sync research conclusions./p(Plan) Lock: Sync implementation plans and logic formulas./e(Execution) Lock: Only physical commit after human Diff audit.
- Automated Knowledge Accumulation: AI must maintain
ARCH.mdand key comments while delivering code.
Consequences
- Pros: Significantly reduced AI hallucination risks; ensures stable execution for complex requirements.
- Cons: Increased initial communication frequency (needs frequent "1" replies).
[ADR-002]: Narrative-Driven Home Page Design
Status
Accepted (2026-04-03)
Context
The project aims to lead developers from "Coder" to "Architect." A simple list of features on the home page cannot convey the deep professional crisis and opportunity.
Decision
Adopt a Narrative-Driven modern technical doc layout:
- Crisis -> Elevation -> Constraint -> Defense four-step logic.
- Bento Grid Layout: Presents high-density industrial and premium feel.
- CSS Terminal Simulation: Visualizes the "Audit-First" execution logic.
Consequences
- Higher cognitive entry barrier, but significantly improved professional authority.
[ADR-003]: Mandatory Audit and Git Quick-Link Protocol
Status
Accepted (2026-04-03)
Context
In the era of shrinking workforces and exploding individual workloads, human engineers need a "low-load" but "high-control" interaction. Traditional Git CLI and unstructured AI chat scatter mental bandwidth.
Decision
- Mandatory Diff Display Audit: In
/ephase, AI must clearly displaygit diff. No physical commit without human review. - "1"-Based Asymmetric Confirmation: Human only needs to input a single
1to pass pre-reviewed logic or Diffs. - Instruction-Level Quick-Link: Map complex Git sequences to
/gc(Commit),/gp(Push), and/g(Sync).
Consequences
- Pros: Greatly reduced typing and mental burden; ensures the "Chief Engineer" has physical control over every line of code.
- Cons: High requirement for AI command execution rigor.
[ADR-004]: "Document-First" Interaction Model
Status
Accepted (2026-04-03)
Context
The IDE's Chat window has low information density, is prone to context loss, and lacks persistent records. Long discussions increase AI's cognitive load and hallucination probability.
Decision
- De-Chatting Collaboration: AI must produce independent
.mddocuments for/r(Research) and/p(Plan). - Asynchronous Markup: Humans specify detailed instructions through direct document edits or comments, not chat commands.
- Mandatory Cold Reload: AI MUST
view_filethese documents upon receiving the GATE confirmation (1) to sync offline edits. - Strict Gating Lock [NEW]: Forbids inferred completion. Even if given code in chat, AI MUST NOT proceed to the next phase without a formal "1".
Consequences
- Pros: Clean chat history, 100% precise context with persistent physical evidence; eliminated phase-drift.
- Cons: Increased explicit human confirmation cost.
[ADR-005]: Protocol V2.0 — Modular MDC Governance
Status
Accepted (2026-04-03)
Context
A monolithic .cursorrules file becomes overloaded as project complexity grows, leading to "Phase-Drift" and "Rule Bypass." To achieve true "Industrial Control," the protocol must be modularized.
Decision
- Modular Dismantling: Deprecate monolithic
.cursorrulesin favor of multiple.mdcfiles in.cursor/rules/. - Context Isolation:
100-core: Global Identity and Language.200-research: Gated toresearch_summary.md, Locks write permissions.300-planning: Gated toimplementation_plan.md, Mandates contract audit.400-execution: Gated to source code, Mandates Atomic Audit loops.
- Physical Permission Masking: Use
globsto implement "Write-Protection" or "Specific Behavior Injection" at specific phases.
Consequences
- Pros: AI is more focused, 70% reduction in context load, zero premature drift.
- Cons: Increased protocol maintenance cost.
