Skip to content
This project is under active development and subject to breaking changes. See the changelog for release notes.

Delivery Guardrails

The framework is built on the premise that velocity without structure is waste. Teams need to move fast, but generating code quickly only creates value when thought is structured before and after code generation.

Phase structuring (vision, spec, plan, decompose, implement) ensures developers articulate WHAT, WHY, and HOW before any code is written. This is not bureaucracy; it is the difference between generating code as a consequence of decisions versus generating code as a surprise.

Impact Classification

  • Low (typo, log, formatting): direct action
  • Medium (new function, refactoring): plan + confirm
  • High (service, schema, public API): ADR + approval

See Impact Classification.

Comprehension Checkpoint

Before executing medium/high impact tasks, the agent requests confirmation of understanding. See Comprehension Checkpoints.

Trade-off Explanation

Mandatory for non-trivial decisions: what is gained, what is lost, why this choice.

Research shows developers who delegate code to AI without cognitive engagement retain 17% less knowledge. The greatest skill loss from passive AI assistance is debugging capability.

Sustainable velocity = code generation x comprehension

If comprehension is low, effective velocity is too, regardless of how many lines of code were generated. The framework adds deliberate steps that initially seem to slow things down. But over the project horizon (long-term development, team turnover, changing requirements), each step provides protection against exponential rework.

Knowledge Transfer

Post-implementation questions verify the developer understands what was generated and why.

Anti-pattern Detection

Flag “it works but I don’t know why” situations that indicate passive delegation.

Socratic Guidance

Questions, not answers. Guide developers to find solutions rather than handing them out.

Reasoning Log

Every decision recorded with principle, alternatives, justification, and confidence level. See Reasoning and Handoff.

Based on ADR 0005, the framework uses adaptive Socratic methods:

Impact LevelBehavior
Low (typo, log message)Fast-track: direct action, minimal questions
Medium (function change)Plan + confirmation. Agent presents approach and waits for understanding.
High (new service, schema, API)Checkpoint: comprehension verification, Socratic questions, reasoning log, mandatory ADR
  1. Assess context before writing code
  2. Choose the simplest solution that solves the real problem
  3. Document assumptions when uncertain
  4. No non-trivial decisions without explicit approval
  5. Neutrality over agreement: honest evaluation over accommodating suggestions
  6. Resist confirmation bias: evaluate objectively regardless of framing
  7. Permission to not act: unnecessary code generation is worse than nothing
  8. Refuse to debug blindly: require sufficient context
  9. Classify changes by impact before acting
  10. Mandatory trade-off explanation for non-trivial decisions