AIDLC Common Rules
The aws-aidlc-rule-details/common/ directory in AWS Labs AIDLC Workflows v0.1.7 contains 11 rule files (ascii-diagram-standards, content-validation, depth-levels, error-handling, overconfidence-prevention, process-overview, question-format-guide, session-continuity, terminology, welcome-message, workflow-changes). These files govern how AI agents and humans collaborate across Inception → Construction → Operations phases.
This document explains the content of those official files as 11 rules regrouped by theme from an enterprise perspective. This regrouped list (the table in Section 1 below) does not map one-to-one to the official file names. For example, "Checkpoint Approval", "Audit Logging", "No Duplication", "Methodology First", and "Reproducible" do not exist as same-named files in the official common/; they are thematic categories this document uses to explain reproducibility, auditability, and safety. Each rule is explained with a "What / Why / How" three-tier structure, with practical tips for enterprise environments.
1. Overview: 11 Rules Regrouped by Theme
The table and diagram below are not a listing of the official common/ files but a thematic regrouping this document arranges into three categories: interaction, quality, and governance.
| # | Rule | Category | Core Value |
|---|---|---|---|
| 1 | Question Format | Interaction | Enforce structured Q&A format |
| 2 | Content Validation | Quality | Syntax-validate generated content before writing files |
| 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 |
The Common Rules define a shared process for questions, approvals, validation, and audit records across Kiro, Q Developer, Cursor, Cline, Claude Code, and GitHub Copilot. AGENTS.md is an instruction file that compatible tools can read. Output quality still needs to be evaluated for each tool and model.
2. Rule 1: Question Format
What
AI agents must always use letter choices (A, B, C …) + [Answer]: tag format when asking humans questions. v0.1.7's common/question-format-guide.md mandates "Other" as the last option on every question and keeps meaningful options within a range of minimum 2 + Other, maximum 5 + Other. Do not invent filler options just to fill slots.
Why
- Reproducibility: Free-form answers vary by model and session. Letter choices eliminate 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 meaningful options to at most 5 + Other per question. More causes decision fatigue
- Always make the last option "Other (please specify)" to guarantee a free-form path
- Copy question blocks to PR descriptions or Slack channels for team consensus before writing
[Answer]:
3. Rule 2: Content Validation
What
The official rule defined in v0.1.7's common/content-validation.md is to syntax-validate generated content (ASCII diagrams, Mermaid, JSON, YAML, Markdown) before writing files, to prevent parsing errors. On validation failure, switch to a text fallback, do not block the workflow, and inform the user that simplified content was used.
Why
- Invalid Mermaid/YAML/JSON breaks artifact files so later stages cannot read them
- Checking syntax before writing prevents parsing errors without rework
- Providing a text alternative for complex visuals preserves information even when rendering fails
How
The official rule's pre-creation validation checklist:
## Pre-Creation Validation Checklist
- [ ] Validate embedded code blocks (Mermaid, JSON, YAML)
- [ ] Check special character escaping
- [ ] Verify markdown syntax correctness
- [ ] Test content parsing compatibility
- [ ] Include fallback content for complex elements
Enterprise Adoption Tips
The items below (this guide's additions) are not part of the official Content Validation rule; they are organization-level separate quality gates proposed by this guide. Keep them distinct from the official rule (syntax validation and fallback).
An example self-validation report that reports requirement completeness (missing/contradictory FR/NFR) to humans:
## Content Validation Report (organizational extension example)
- [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
- Store requirement-validation checklists for each artifact type in ontology or organizational extensions
- Add an organization's own
aidlc-validatestep to the CI pipeline to post reports as PR comments - Auto-create GitHub Issues for failed items and block the approval gate 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
- Confidence is a value the AI declares about itself, so do not use it as grounds for auto-adoption. In regulated industries (finance, healthcare), critical decisions require human approval regardless of the declared confidence
6. Rule 5: Session Continuity
What
Persist AIDLC session state so that persisted context (questions, answers, artifacts) can be reloaded when sessions are interrupted and resumed. v0.1.7's common/session-continuity.md specifies that on resume you first read aidlc-docs/aidlc-state.md and then reload the previous stages' artifacts. What is restored is the file-persisted state, answers, and artifacts; the model's live reasoning state (context window) is not restored.
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-docs/aidlc-state.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-docs/aidlc-state.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 — Asked at 2026-04-18T10:30:00Z, awaiting answer
Enterprise Adoption Tips
- Version-control session state with Git (enables PR-based collaboration)
- Back up session state to S3 + Versioning (for audit)
- Auto-archive sessions inactive for 30+ days
7. Rule 6: Workflow Changes
What
Prevent AI from arbitrarily adding, skipping, or modifying workflow steps. Changes require explicit user approval.
Why
- AI skipping stages "for efficiency" breaks audit trails
- Organizational regulations (e.g., financial oversight) mandate certain stage execution
- Workflow change history is organizational learning asset
How
Workflow Change Request Template:
## Workflow Change Request
**Current Workflow**: workspace_detection → requirements_analysis → user_stories → workflow_planning
**Proposed Change**: Skip user_stories and proceed directly to workflow_planning
**Reason**: `user-stories.md` already exists, no re-review needed
**Impact**:
- Save 1 hour of session time
- However, risk missing recent requirement changes
**Approval Required**: A. Approve / B. Reject / C. Conditional approval (after additional review)
[Answer]:
Enterprise Adoption Tips
- Define non-skippable stage list in organizational extensions (e.g., finance prohibits skipping security-review)
- Review change history in monthly governance meetings
- "Outlier change" patterns signal workflow improvement opportunities
8. Rule 7: Checkpoint Approval
What
Require explicit human approval at the completion of major stages. There is no single official "Checkpoint Approval" rule file in common/; approval is defined individually within each stage's rules. In v0.1.7, Requirements Analysis and User Stories each have explicit approval steps after producing artifacts (e.g., Steps 13 and 21 "Wait for Explicit Approval" in inception/user-stories.md), whereas Workspace Detection is defined as "proceeds automatically with no approval." The approval boundaries therefore differ by stage, and "approval at every transition" is a generalization.
Why
- Reverting a stage is itself possible, but the downstream artifacts already produced must be reworked. For example, reverting to requirements_analysis requires updating the subsequent user_stories and design artifacts
- Approval functions as both quality gate + governance evidence
- Concrete implementation of human-in-the-loop principle
How
Approval Template:
## Checkpoint Approval Gate
**Completing Stage**: requirements_analysis
**Next Stage**: user_stories
**Artifacts Produced**:
- `requirements.md` (1,234 lines)
- `.aidlc/validation-report.md` (Content Validation passed)
- `.aidlc/audit/stage-requirements-analysis.md`
**Review Checklist**:
- [x] All business requirements included
- [x] NFRs measurable
- [x] Stakeholder review completed
**Approver**: yjeong@example.com
**Approval Decision**:
A. Approve (proceed to next stage)
B. Reject (current stage requires rework)
C. Approve with comments
[Answer]:
Enterprise Adoption Tips
- Multi-approver pattern: Implement multi-sig gates for cases requiring approval from architect + security + PM
- Approval records auto-link to audit logs (Rule 8)
- Attempting next stage without approval triggers error (handled by Rule 3)
9. Rule 8: Audit Logging
What
Record all AIDLC events (questions, answers, approvals, errors) in audit logs using ISO 8601 timestamps + original text preservation format.
Why
- Regulated industries (finance, healthcare) require complete reproducibility of decision rationale
- Root cause analysis when incidents occur
- Data accumulation for AIDLC improvement
How
Audit Log Format (audit.md):
## Event: Checkpoint Approval Granted
**Event ID**: evt-2026-04-18-042
**Timestamp**: 2026-04-18T10:45:12.345Z
**Session**: sess-20260418-payment-service
**Actor**: yjeong@example.com
**Stage Transition**: requirements_analysis → user_stories
**Original User Response** (preserved):
```
[Answer]: A
```
**AI Interpretation**: Approve (proceed to next stage)
**Artifacts Hash**:
- requirements.md: sha256:abc123...
- validation-report.md: sha256:def456...
---
## Event: Question Asked
**Event ID**: evt-2026-04-18-041
**Timestamp**: 2026-04-18T10:42:00.000Z
**Session**: sess-20260418-payment-service
**Stage**: requirements_analysis
**Question Text** (preserved):
```
Q15. What data store should be selected for Payment Service?
A. DynamoDB
B. Aurora PostgreSQL
...
```
Audit Log Principles:
- Append-only (authoring policy): The writer never modifies existing logs and only appends new events. This is an operational policy; technical tamper-resistance is enforced by the storage configuration below
- Original preservation: Store original text from users and AI, not AI interpretations/summaries
- ISO 8601 timestamps: Millisecond precision + UTC notation
- Artifact hashing: SHA-256 for integrity verification
Enterprise Adoption Tips
- An append-only authoring policy alone cannot prevent edits or deletions, so enforce tamper-resistance with write-once storage such as S3 + Object Lock (WORM)
- Retention policies: minimum 7 years for finance, 10 years for healthcare
- Detailed specs at Audit & Governance Logging
10. Rule 9: No Duplication
What
Never duplicate information across AIDLC artifacts. Information lives in one place (Single Source of Truth, SSOT) and is referenced elsewhere.
Why
- Duplication leads to inconsistency (updating one place creates contradictions)
- Contradictory artifacts leave both humans and AI unsure which value is correct
- When the same information lives in several places, every copy must be updated together on each change, raising maintenance effort
How
Duplication Example (Wrong Pattern):
# requirements.md
- API latency P99 < 200ms
# design.md
- API latency P99 < 200ms
- Additionally need P95 < 100ms
# nfr.md
- API P99 latency < 150ms ← Inconsistency!
Correct Pattern (SSOT):
# nfr.md (SSOT)
- PAY-NFR-001: API latency P99 < 200ms, P95 < 100ms
# requirements.md
- Performance requirements: See PAY-NFR-001
# design.md
- Performance target: See PAY-NFR-001, HPA threshold derived from this target
Enterprise Adoption Tips
- Assign unique IDs to all requirements, NFRs, and decisions (
PAY-NFR-001) - Only allow ID-based links for cross-artifact references
- CI duplicate string detection (warn when >20 identical words found)
11. Rule 10: Methodology First
What
AIDLC must operate as a tool/platform-agnostic methodology. Same artifacts should be producible in Kiro, Claude Code, Cursor, etc.
Why
- Tool lock-in hinders organizational agility
- Methodology > tool ordering enables long-term asset accumulation
- Foundation for industry standardization (7 supported platforms)
How
Tool-Independent Design Principles:
- Artifacts use plain Markdown + YAML only
- No dependencies on specific IDE features (e.g., Kiro Spec files) — provide generic templates
- Tool-specific integrations (MCP servers, etc.) separated into extensions
Bad (Tool-Dependent):
# design.md
Refer to Kiro's `.kiro/spec/design.md`
Good (Tool-Independent):
# design.md
For detailed MCP integration, see `extensions/kiro-mcp/` in this repository (Kiro users only)
Enterprise Adoption Tips
- Validate organizational standard templates work on all platforms (test on minimum 2 platforms)
- Allow team tool preferences, but unify artifact formats
- Platform switching should require only simple file copying for artifact migration
12. Rule 11: Reproducible
What
For identical inputs (Workspace state · Requirements · question responses), same model + same prompt should produce nearly identical artifacts.
Why
- Non-reproducible systems cannot be audited, debugged, or improved
- Enables knowledge transfer across teams (same inputs → same results)
- Makes AIDLC itself a trustworthy process
How
Reproducibility Mechanisms:
- Structured question format (Rule 1) — Consistent answer interpretation
- Temperature 0 or low value — Stabilize LLM output
- Frozen model version — Explicit version pinning like
claude-opus-4-7 - Fixed seed (supported models) — Identical seed → identical output
Reproducibility Test:
The aidlc run below is not an official CLI but an example runner an organization builds to wrap AIDLC execution. "90%+ identical" is only meaningful when the measurement criterion is defined. The example below compares the output Markdown line by line and computes similarity as the share of unchanged lines. An organization should choose and document its own criterion (token-level, semantic, etc.).
# Run 3 times with identical input, then diff artifacts (aidlc run is an org's own runner example)
aidlc run --input requirements.md --session test-1
aidlc run --input requirements.md --session test-2
aidlc run --input requirements.md --session test-3
# Line-level comparison: treat >= 90% unchanged lines as a reproduction pass
diff .aidlc/test-1/requirements.md .aidlc/test-2/requirements.md
Enterprise Adoption Tips
- Reproducibility regression testing on model upgrades required (maintain golden input set)
- Roll back if model change causes artifact drift > 20%
- Regulated industries set a model-version freeze period that matches their audit and reproducibility requirements. 3-5 years is this guide's example, not a NIST SP 800-218A recommendation; SP 800-218A sets no freeze period and instead recommends establishing criteria for when to stop using an AI model and when to roll back to a previous version.
13. Enterprise Adoption Integration Guide
13.1 Common Rules → Governance Mapping
| Rule | ISO 27001 Control | SOC 2 Criteria | Korea ISMS-P Control |
|---|---|---|---|
| Checkpoint Approval (7) | A.5.15 Access Control | CC6.2 | 2.8.3 Change Management |
| Audit Logging (8) | A.8.15 Logging | CC7.2 | 2.9.4 Log Management |
| Content Validation (2) | A.8.29 Security Testing | CC8.1 | 2.11.2 Software Validation |
| Error Handling (3) | A.5.24 Incident Management | CC7.3 | 2.10.4 Incident Response |
13.2 Adoption Roadmap
13.3 Tool/Platform Implementation Status (as of 2026-04)
The Full/Partial/Limited values below are not measured conformance scores but unverified estimates as of 2026-04. They are not backed by versioned setup evidence, so verify them directly on the relevant version of each tool before using them for an adoption decision. Each cell may differ for a specific setup or version.
| Platform | Rules 1-4 | Rules 5-8 | Rules 9-11 | Notes |
|---|---|---|---|---|
| Kiro | Full | Full | Full | v0.1.7 setup: steering files, Kiro IDE Vibe mode |
| Claude Code | Full | Full | Partial | reproducibility lacks seed support |
| Cursor | Partial | Partial | Partial | extensions needed |
| Q Developer | Full | Full | Full | excellent AWS integration |
| Cline | Partial | Partial | Full | CLI-centric |
| Copilot | Partial | Limited | Limited | interaction constraints |
The official v0.1.7 setup guide installs the rules under .kiro/steering/aws-aidlc-rules/ and the details under .kiro/aws-aidlc-rule-details/. It instructs Kiro IDE users to run this workflow in Vibe mode and decline prompts to switch to spec mode. This documented setup does not validate the Kiro scores above; the other notes remain author estimates.
AGENTS.md is an instructions file, not an agent or a platform with its own conformance score. The same version's guide offers it as an alternative setup for Cursor and Cline. Loading a file does not establish that its consuming agent follows every rule.
14. References
Official Repositories
- AWS Labs AIDLC Common Rules — Original text of 11 rules
- AWS Labs AIDLC Workflows (v0.1.7) — Complete repository
Related Documentation
- 10 Principles and Execution Model — engineering-playbook's 10 principles (official 5 + extensions)
- Adaptive Execution — Conditional stage execution (linked to Rule 6 Workflow Changes)
- Audit & Governance Logging — Operational implementation of Rules 7, 8
- Harness Engineering — Architectural enforcement of Rule 2 (Content Validation)