A major challenge in AI-native engineering is that AI amplifies bad decisions as fast as it implements good ones. Without structure, agents make undocumented design assumptions, bypass testing, and introduce technical debt.
The AI-Native SDLC Framework adds a governance, alignment, and observability layer on top of Spec-Kit and Superpowers. It ensures every execution session is tracked, failures lead to systematic learning rather than blame, and the development pipeline gets measurably smarter with each feature built.
The core of our governance framework is a feedback loop designed to catch errors, identify root causes, and refine prompt-skills/guidelines to prevent recurrence.
graph TD
A[Execution: Agent writes code] -->|Log session reflections| B(Observability: AGENT_LOG_REFLECTIONS.md)
B -->|Check against criteria| C(Verification: VERIFICATION_AND_EVAL_GUIDE.md)
C -->|If failure escapes gates| D(Learning: POSTMORTEM_AND_LEARNING_LOG.md)
D -->|Update project rules| E(Refinement: constitution.md or prompt-skills)
E -->|Next cycle: clearer context| A
We use two primary files to record execution and track failures. These files should be treated as the project’s source of truth for engineering velocity and quality.
.ai/traces/AGENT_LOG_REFLECTIONS.md)Agents append to this log automatically after every implementation session (before committing a task). It captures immediate developer friction.
COMPLETE, PARTIAL, or BLOCKED.postmortems/POSTMORTEM_AND_LEARNING_LOG.md)Humans and Verifier agents create entries here only when a bug escapes normal test gates and reaches staging or production.
In automated pipelines, we partition the AI workload into five distinct agent roles. This prevents context bleed and ensures checks and balances.
graph LR
P[Planner] -->|spec.md| O[Orchestrator]
O -->|tasks.md| C[Coder]
C -->|code diff| R[Reviewer]
R -->|approved| V[Verifier]
V -->|merge| Prod[Production]
| Role | Primary Responsibility | Input File(s) | Output File(s) | Key Command/Skill |
|---|---|---|---|---|
| Planner | Spec authoring & clarification | User Request | spec.md |
/speckit.specify, /speckit.clarify |
| Orchestrator | Handoff & workflow routing | spec.md, tasks.md |
Handoff message | /speckit.tasks |
| Coder | TDD Implementation (RED ➔ GREEN ➔ REFACTOR) | tasks.md, spec.md |
Source code + Unit tests | subagent-driven-development |
| Reviewer | Spec compliance & style review | spec.md, code diff |
APPROVED / BLOCKED | requesting-code-review |
| Verifier | Automated pre-merge safety checks | VERIFICATION_AND_EVAL_GUIDE.md |
Check results | verification-before-completion |
All code commits must clear the gates defined in .ai/config/VERIFICATION_AND_EVAL_GUIDE.md:
spec.md is covered by a test and implemented.By codifying these verification gates, the AI is constrained to execute safely and productively, protecting the codebase from regression.