AIDLC Common Rules
📅 Written: 2026-04-18 | ⏱️ Reading Time: ~18 minutes
The aws-aidlc-rule-details/common/ directory in AWS Labs AIDLC Workflows defines 11 rules that all stages must comply with. These rules govern how AI agents and humans collaborate across Inception → Construction → Operations phases, ensuring reproducibility, auditability, and safety of outcomes.
This document explains each rule using a "What / Why / How" three-tier structure, with practical tips for enterprise environments.
1. Overview: 11 Common Rules
| # | Rule | Category | Core Value |
|---|---|---|---|
| 1 | Question Format | Interaction | Enforce structured Q&A format |
| 2 | Content Validation | Quality | Validate requirements & responses |
| 3 | Error Handling | Quality | Standardized exception handling |
| 4 | Overconfidence Prevention | Interaction | Control AI confidence levels |
| 5 | Session Continuity | Governance | Preserve context across sessions |
| 6 | Workflow Changes | Interaction | Explicit approval for workflow modifications |
| 7 | Checkpoint Approval | Governance | Stage transition gates |
| 8 | Audit Logging | Governance | ISO 8601 timestamped audit logs |
| 9 | No Duplication | Quality | Single Source of Truth (SSOT) |
| 10 | Methodology First | Quality | Tool independence |
| 11 | Reproducible | Quality | Consistent results across models |
AIDLC must work identically across Kiro · Q Developer · Cursor · Cline · Claude Code · GitHub Copilot · AGENTS.md — seven platforms. Common Rules are the shared contract that guarantees consistent quality outputs for the same inputs, regardless of platform or model differences.
2. Rule 1: Question Format
What
AI agents must always use A-E multiple choice + [Answer]: tag format when asking humans questions.
Why
- Reproducibility: Free-form answers vary by model and session. Multiple choice eliminates interpretation ambiguity
- Speed: Humans don't need to write long responses. Single-letter selection moves things forward
- Auditability: Structured Q&A pairs enable audit logs and replay
How
Question Template:
Q1. How should authentication be configured for the Payment Service?
A. OAuth2 + JWT (with Refresh Token)
B. API Key (header-based)
C. mTLS (service-to-service auth)
D. AWS IAM + SigV4
E. Other (please specify)
[Answer]:
Human Response:
[Answer]: A
Or when free-form context is needed:
[Answer]: E - Cognito User Pool + JWT (following existing org standard)
Enterprise Adoption Tips
- Keep 5 options or fewer per question. More causes decision fatigue
- Standardize option D as "most common default", option E as "Other"
- Copy question blocks to PR descriptions or Slack channels for team consensus before writing
[Answer]:
3. Rule 2: Content Validation
What
AI must run self-validation checklists on all generated artifacts (Requirements Documents, Design Documents, Code, etc.) and explicitly report failures to humans.
Why
- AI often produces omissions, contradictions, or hallucinations
- Humans lack time to exhaustively review every artifact
- AI self-validation as first-line filter reduces human review burden
How
Self-Validation Checklist Example (Requirements Document):
## Content Validation Report
- [x] All functional requirements include Acceptance Criteria
- [x] Non-functional requirements (NFRs) specify measurable metrics (P99 latency, availability, etc.)
- [ ] **FAIL**: FR-004 error handling path not specified
- [x] Terminology matches ontology/Ubiquitous Language
- [x] External dependencies (DB, SQS, etc.) declared
- [ ] **FAIL**: NFR-002 contains vague phrase "fast enough"
**Failed Checks**: 2
**Action Required**: User confirmation and rewrite needed
Enterprise Adoption Tips
- Store validation checklists for each artifact type in ontology or organizational extensions
- Add
aidlc-validatestep to CI pipeline to auto-post reports as PR comments - Auto-create GitHub Issues for failed items and block Checkpoint Approval until resolved
4. Rule 3: Error Handling
What
All exceptions during AIDLC execution (missing files, tool errors, user non-response, etc.) must be recorded as structured error reports, with explicit decisions on retry or user intervention.
Why
- Silent failures break audit trails
- Different error contexts require different responses: auto-retry / user intervention / session termination
- Error pattern analysis drives AIDLC improvement
How
Error Report Format:
error:
id: ERR-2026-04-18-001
timestamp: 2026-04-18T10:23:45Z
stage: inception.requirements_analysis
type: missing_context
message: "Workspace Detection results missing from session"
severity: medium
recovery:
auto_retry: false
user_action_required: true
suggested_fix: "Execute Workspace Detection stage first"
context:
session_id: sess-20260418-abc123
prior_stage: workspace_detection
Error Classification:
| Severity | Example | Response |
|---|---|---|
| Low | Free-form response instead of A-E option | AI auto-interprets and confirms with question |
| Medium | Required prerequisite stage not executed | Guide user to run stages in reverse order |
| High | Tool invocation failure (MCP server down, etc.) | Pause session, collect logs |
| Critical | Ontology contract violation (e.g., disallowed domain term) | Immediate halt, human intervention |
Enterprise Adoption Tips
- Send error reports to CloudWatch Logs Insights for pattern analysis
- Integrate High/Critical errors with PagerDuty
- Monthly error review meetings to improve AIDLC itself
5. Rule 4: Overconfidence Prevention
What
AI responses must declare confidence levels, and when confidence is low, must request additional context from users.
Why
- LLMs often generate incorrect answers with very confident tone (hallucination)
- Confidence indicators signal users where to focus review effort
- Transparently manage trust levels in AI decision-making within organizations
How
Confidence Declaration:
## Proposal: Payment Service Authentication Architecture
**Confidence**: High (90%)
Recommend Cognito User Pool + JWT. Rationale...
---
## Proposal: DynamoDB Table Design
**Confidence**: Medium (60%)
**Reason for lower confidence**: Missing read/write ratio information for Payment domain,
GSI design may not be optimal.
**Additional Context Needed**:
- Daily transaction volume?
- Query patterns (by user? by time range?)
[Answer]:
Enterprise Adoption Tips
- Low confidence (< 50%) responses automatically pause at Checkpoint Approval gates
- Track confidence distribution statistics to identify AI improvement priorities
- Regulated industries (finance, healthcare): auto-adopt only High confidence, require human approval for Medium/Low
6. Rule 5: Session Continuity
What
Persist AIDLC session state so that previous context (questions, answers, artifacts) can be fully restored when sessions are interrupted and resumed.
Why
- Enterprise projects span multiple days and teams
- Context loss at session end = duplicate questions · rework · information loss
- Team handoffs require answering "where did we leave off?"
How
Session State File (.aidlc/session.md):
# AIDLC Session State
**Session ID**: sess-20260418-payment-service
**Started**: 2026-04-17T09:00:00Z
**Last Active**: 2026-04-18T10:30:00Z
**Owner**: yjeong@example.com
## Progress
| Stage | Status | Artifacts | Approved By | Approved At |
|-------|--------|-----------|-------------|-------------|
| workspace_detection | complete | `.aidlc/workspace.md` | yjeong | 2026-04-17T09:15:00Z |
| requirements_analysis | complete | `requirements.md` | yjeong | 2026-04-17T11:00:00Z |
| user_stories | complete | `user-stories.md` | yjeong | 2026-04-17T14:00:00Z |
| workflow_planning | in_progress | - | - | - |
## Pending Questions
Q3. Authentication method (A-E) — Asked at 2026-04-18T10:30:00Z, awaiting answer