You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -500,7 +500,7 @@ AI-DLC supports an extension system that lets you layer additional rules on top
500
500
501
501
Extensions are grouped by category (e.g., `security/`, `scalability/`, `accessibility/`). Each category can contain its own rules and any number of subcategories you define.
502
502
503
-
Each extension should include an **Applicability Question** — a structured multiple-choice question that AI-DLC automatically presents during the Requirements Analysis phase. This lets the user decide whether to enable or skip that extension for the current project. For example, the built-in security extension includes:
503
+
Each extension should include an **Opt-In Prompt** — a structured multiple-choice question that AI-DLC automatically presents during the Requirements Analysis phase. This lets the user decide whether to enable or skip that extension for the current project. For example, the built-in security extension includes:
504
504
505
505
```markdown
506
506
## Question: Security Extensions
@@ -513,11 +513,11 @@ X) Other (please describe)
513
513
[Answer]:
514
514
```
515
515
516
-
When you create your own extensions, include a similar applicability question so users can opt in or out per project.
516
+
When you create your own extensions, include a similar opt-in prompt so users can opt in or out per project.
517
517
518
518
Here's the general flow once an extension is enabled:
519
519
520
-
1. During the Inception phase, AI-DLC presents the extension's applicability question.
520
+
1. During the Inception phase, AI-DLC presents the extension's opt-in prompt.
521
521
2. If enabled, the extension's rules are loaded as mandatory, blocking constraints that apply across all AI-DLC phases.
522
522
3. At each stage, the model verifies compliance with all loaded extension rules before allowing the stage to proceed.
Copy file name to clipboardExpand all lines: aidlc-rules/aws-aidlc-rule-details/inception/requirements-analysis.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,12 @@ Analyze whatever the user has provided:
90
90
91
91
**When in doubt, ask questions** - incomplete requirements lead to poor implementations.
92
92
93
-
### Step 5.1: Extension Applicability Questions
93
+
### Step 5.1: Extension Opt-In Prompts
94
94
95
-
**MANDATORY**: Scan all loaded extension files for an `## Applicability Question` section. For each extension that declares one, include that question in the clarifying questions file created in Step 6. After receiving answers, record each extension's enablement status in `aidlc-docs/aidlc-state.md` under `## Extension Configuration`:
95
+
**MANDATORY**: Scan all loaded `*.opt-in.md` files (loaded at workflow start from `extensions/` subdirectories) for an `## Opt-In Prompt` section. For each extension that declares one, include that question in the clarifying questions file created in Step 6.
96
+
97
+
After receiving answers:
98
+
1. Record each extension's enablement status in `aidlc-docs/aidlc-state.md` under `## Extension Configuration`:
96
99
97
100
```markdown
98
101
## Extension Configuration
@@ -101,6 +104,8 @@ Analyze whatever the user has provided:
2.**Deferred Rule Loading**: For each extension the user opted IN, load the full rules file now. The rules file is derived by naming convention: strip `.opt-in.md` from the opt-in filename and append `.md` (e.g., `security-baseline.opt-in.md` → `security-baseline.md`). For extensions the user opted OUT, do NOT load the full rules file.
- Load `common/question-format-guide.md` for question formatting rules
26
26
- Reference these throughout the workflow execution
27
27
28
-
## MANDATORY: Extensions Loading
29
-
**CRITICAL**: At workflow start, scan the `extensions/` directory recursively for all `.md`files. These are extension rule files that apply as cross-cutting constraints across the entire workflow.
**CRITICAL**: At workflow start, scan the `extensions/` directory recursively but load ONLY lightweight opt-in files — NOT full rule files. Full rule files are loaded on-demand after the user opts in.
30
30
31
31
**Loading process**:
32
32
1. List all subdirectories under `extensions/` (e.g., `extensions/security/`, `extensions/compliance/`)
33
-
2.Load every `.md` file found within those subdirectories
34
-
3.Each extension file defines its own verification criteria and enforcement rules as cross-cutting constraints
33
+
2.In each subdirectory, load ONLY `*.opt-in.md`files — these contain the extension's opt-in prompt. The corresponding rules file is derived by convention: strip the `.opt-in.md` suffix and append `.md` (e.g., `security-baseline.opt-in.md` → `security-baseline.md`)
34
+
3.Do NOT load full rule files (e.g., `security-baseline.md`) at this stage
35
35
36
-
**Enforcement**:
36
+
**Deferred Rule Loading**:
37
+
- During Requirements Analysis, opt-in prompts from the loaded `*.opt-in.md` files are presented to the user
38
+
- When the user opts IN for an extension, load the corresponding rules file (derived by naming convention) at that point
39
+
- When the user opts OUT, the full rules file is never loaded — saving context
40
+
- Extensions without a matching `*.opt-in.md` file are always enforced — load their rule files immediately at workflow start
41
+
42
+
**Enforcement** (applies only to loaded/enabled extensions):
37
43
- Extension rules are hard constraints, not optional guidance
38
44
- At each stage, the model intelligently evaluates which extension rules are applicable based on the stage's purpose, the artifacts being produced, and the context of the work — enforce only those rules that are relevant
39
45
- Rules that are not applicable to the current stage should be marked as N/A in the compliance summary (this is not a blocking finding)
40
46
- Non-compliance with any applicable enabled extension rule is a **blocking finding** — do NOT present stage completion until resolved
41
47
- When presenting stage completion, include a summary of extension rule compliance (compliant/non-compliant/N/A per rule, with brief rationale for N/A determinations)
42
48
43
-
**Conditional Enforcement**: Extensions may be conditionally enabled/disabled. See `inception/requirements-analysis.md` for the collection mechanism. Before enforcing any extension at ANY stage, check its `Enabled` status in `aidlc-docs/aidlc-state.md` under `## Extension Configuration`. Skip disabled extensions and log the skip in audit.md. Default to enforced if no configuration exists. Extensions without an `## Applicability Question` are always enforced.
49
+
**Conditional Enforcement**: Extensions may be conditionally enabled/disabled. See `inception/requirements-analysis.md` for the opt-in mechanism. Before enforcing any extension at ANY stage, check its `Enabled` status in `aidlc-docs/aidlc-state.md` under `## Extension Configuration`. Skip disabled extensions and log the skip in audit.md. Default to enforced if no configuration exists.
44
50
45
51
## MANDATORY: Content Validation
46
52
**CRITICAL**: Before creating ANY file, you MUST validate content according to `common/content-validation.md` rules:
0 commit comments