olympus-ai 4.5.13 → 4.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/cli/index.js +63 -27
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/hooks/olympus-hooks.cjs +257 -257
  5. package/dist/installer/hooks.d.ts +47 -14
  6. package/dist/installer/hooks.d.ts.map +1 -1
  7. package/dist/installer/hooks.js +45 -77
  8. package/dist/installer/hooks.js.map +1 -1
  9. package/dist/installer/index.d.ts +8 -7
  10. package/dist/installer/index.d.ts.map +1 -1
  11. package/dist/installer/index.js +49 -46
  12. package/dist/installer/index.js.map +1 -1
  13. package/package.json +1 -1
  14. package/resources/config/risk-keywords.json +5 -5
  15. package/resources/rules/common/ascii-diagram-standards.md +115 -115
  16. package/resources/rules/common/content-validation.md +131 -131
  17. package/resources/rules/common/error-handling.md +430 -430
  18. package/resources/rules/common/markdown-formatting.md +170 -170
  19. package/resources/rules/common/overconfidence-prevention.md +100 -100
  20. package/resources/rules/common/pathway-behaviors.json +60 -60
  21. package/resources/rules/common/pathway-behaviors.md +100 -100
  22. package/resources/rules/common/process-overview.md +157 -157
  23. package/resources/rules/common/terminal-formatting.md +161 -161
  24. package/resources/rules/common/terminology.md +189 -189
  25. package/resources/rules/common/welcome-message.md +118 -118
  26. package/resources/rules/common/workflow-changes.md +285 -285
  27. package/resources/rules/construction/bolt-planning.md +153 -153
  28. package/resources/rules/construction/bolt-review.md +143 -143
  29. package/resources/rules/construction/build-and-test.md +527 -527
  30. package/resources/rules/construction/code-generation.md +414 -414
  31. package/resources/rules/construction/documentation.md +201 -201
  32. package/resources/rules/construction/functional-design.md +135 -135
  33. package/resources/rules/construction/infrastructure-design.md +110 -110
  34. package/resources/rules/construction/nfr-design.md +106 -106
  35. package/resources/rules/construction/nfr-requirements.md +118 -118
  36. package/resources/rules/construction/test-generation.md +112 -112
  37. package/resources/rules/core-workflow.md +196 -196
  38. package/resources/rules/inception/application-design.md +195 -195
  39. package/resources/rules/inception/bolt-planning.md +588 -588
  40. package/resources/rules/inception/reverse-engineering.md +354 -354
  41. package/resources/rules/inception/units-generation.md +505 -505
  42. package/resources/rules/inception/user-stories.md +527 -527
  43. package/resources/rules/inception/workspace-detection.md +82 -82
  44. package/resources/rules/operations/operations.md +19 -19
  45. package/resources/skills/brief/templates/ai-dlc-intent-brief-template.md +149 -149
  46. package/resources/skills/getting-started/SKILL.md +79 -79
  47. package/resources/templates/construction/bolt-spec-template.md +270 -270
  48. package/resources/templates/inception/unit-brief-template.md +188 -188
  49. package/resources/templates/inception/units-template.md +99 -99
@@ -1,106 +1,106 @@
1
- # NFR Design
2
-
3
- ## Prerequisites
4
- - NFR Requirements must be complete for the unit
5
- - NFR requirements artifacts must be available
6
- - Execution plan must indicate NFR Design stage should execute
7
-
8
- ## Agent Delegation Strategy
9
-
10
- **MANDATORY**: Delegate NFR design artifact generation (Step 6) to `oracle-medium`. Do NOT generate design patterns and logical components directly.
11
-
12
- **Execution mode**: Foreground sequential — single coherent design task per unit.
13
-
14
- **Delegation scope**:
15
- - **Orchestrator retains**: Steps 1-5 (analyze NFR requirements, plan creation, Q&A, answer collection) and Steps 7-9 (completion message, approval gate, state update).
16
- - **Delegated to `oracle-medium`**: Step 6 (Generate NFR Design Artifacts) — the agent incorporates NFR requirements into design patterns, producing nfr-design-patterns.md and logical-components.md.
17
-
18
- **If an agent task fails**: Follow the Agent Task Failure Recovery procedure in `error-handling.md` — retry the delegation, never silently do the work yourself.
19
-
20
- **After agent completes**: The orchestrator compiles the agent's output into the artifact files, presents the completion message, and manages the approval gate.
21
-
22
- ## Overview
23
- Incorporate NFR requirements into unit design using patterns and logical components.
24
-
25
- ## Steps to Execute
26
-
27
- ### Step 1: Analyze NFR Requirements
28
- - Read NFR requirements from `aidlc-docs/construction/{unit-name}/nfr-requirements/`
29
- - Understand scalability, performance, availability, security needs
30
-
31
- ### Step 2: Create NFR Design Plan
32
- - Generate plan with checkboxes [] for NFR design
33
- - Focus on design patterns and logical components
34
- - Each step should have a checkbox []
35
-
36
- ### Step 3: Generate Context-Appropriate Questions
37
- **DIRECTIVE**: Analyze the NFR requirements to generate ONLY questions relevant to THIS specific unit's NFR design. Use the categories below as inspiration, NOT as a mandatory checklist. Skip entire categories if not applicable.
38
-
39
- - EMBED questions using [Answer]: tag format
40
- - Focus on ambiguities and missing information specific to this unit
41
- - Generate questions only where user input is needed for pattern and component decisions
42
-
43
- **Example question categories** (adapt as needed):
44
- - **Resilience Patterns** - Only if fault tolerance approach needs clarification
45
- - **Scalability Patterns** - Only if scaling mechanisms are unclear
46
- - **Performance Patterns** - Only if performance optimization strategy is ambiguous
47
- - **Security Patterns** - Only if security implementation approach needs input
48
- - **Logical Components** - Only if infrastructure components (queues, caches, etc.) need clarification
49
-
50
- ### Step 4: Store Plan
51
- - Save as `aidlc-docs/construction/plans/{unit-name}-nfr-design-plan.md`
52
- - Include all [Answer]: tags for user input
53
-
54
- ### Step 5: Collect and Analyze Answers
55
- - Wait for user to complete all [Answer]: tags
56
- - Review for vague or ambiguous responses
57
- - Add follow-up questions if needed
58
-
59
- ### Step 6: Generate NFR Design Artifacts
60
- - Create `aidlc-docs/construction/{unit-name}/nfr-design/nfr-design-patterns.md`
61
- - Create `aidlc-docs/construction/{unit-name}/nfr-design/logical-components.md`
62
-
63
- ### Step 7: Present Completion Message
64
- - Present completion message in this structure:
65
- 1. **Completion Announcement** (mandatory): Always start with this:
66
-
67
- ```markdown
68
- # 🎨 NFR Design Complete - [unit-name]
69
- ```
70
-
71
- 2. **AI Summary** (optional): Provide structured bullet-point summary of NFR design
72
- - Format: "NFR design has incorporated [description]:"
73
- - List key design patterns implemented (bullet points)
74
- - List logical components and infrastructure elements
75
- - Mention resilience, scalability, and performance patterns applied
76
- - DO NOT include workflow instructions ("please review", "let me know", "proceed to next phase", "before we proceed")
77
- - Keep factual and content-focused
78
- 3. **Formatted Workflow Message** (mandatory): Always end with this exact format:
79
-
80
- ```markdown
81
- ---
82
-
83
- ⚠️ **REVIEW REQUIRED**
84
-
85
- > Please examine the NFR design at:
86
- > `aidlc-docs/{workflow-id}/construction/[unit-name]/nfr-design/`
87
-
88
- **You may:**
89
- - 🔧 **Request Changes** — Ask for modifications to the NFR design based on your review
90
- - ✅ **Continue to Next Stage** — Approve NFR design and proceed to **[next-stage-name]**
91
-
92
- ---
93
- ```
94
-
95
- ### Step 8: Wait for Explicit Approval
96
- - Do not proceed until the user explicitly approves the NFR design
97
- - Approval must be clear and unambiguous
98
- - If user requests changes, update the design and repeat the approval process
99
-
100
- ### Step 9: Record Approval and MANDATORY State Update
101
- - Log approval in audit.md with timestamp
102
- - Record the user's approval response with timestamp
103
- - **MANDATORY**: Update BOTH state files in the SAME interaction:
104
- 1. Mark NFR Design stage complete in `aidlc-docs/{workflow-id}/aidlc-state.md`
105
- 2. Update `aidlc-docs/{workflow-id}/checkpoint.json` — set nfr-design status to "completed" with completed_at timestamp
106
- - **Do NOT proceed to the next stage without completing state updates**
1
+ # NFR Design
2
+
3
+ ## Prerequisites
4
+ - NFR Requirements must be complete for the unit
5
+ - NFR requirements artifacts must be available
6
+ - Execution plan must indicate NFR Design stage should execute
7
+
8
+ ## Agent Delegation Strategy
9
+
10
+ **MANDATORY**: Delegate NFR design artifact generation (Step 6) to `oracle-medium`. Do NOT generate design patterns and logical components directly.
11
+
12
+ **Execution mode**: Foreground sequential — single coherent design task per unit.
13
+
14
+ **Delegation scope**:
15
+ - **Orchestrator retains**: Steps 1-5 (analyze NFR requirements, plan creation, Q&A, answer collection) and Steps 7-9 (completion message, approval gate, state update).
16
+ - **Delegated to `oracle-medium`**: Step 6 (Generate NFR Design Artifacts) — the agent incorporates NFR requirements into design patterns, producing nfr-design-patterns.md and logical-components.md.
17
+
18
+ **If an agent task fails**: Follow the Agent Task Failure Recovery procedure in `error-handling.md` — retry the delegation, never silently do the work yourself.
19
+
20
+ **After agent completes**: The orchestrator compiles the agent's output into the artifact files, presents the completion message, and manages the approval gate.
21
+
22
+ ## Overview
23
+ Incorporate NFR requirements into unit design using patterns and logical components.
24
+
25
+ ## Steps to Execute
26
+
27
+ ### Step 1: Analyze NFR Requirements
28
+ - Read NFR requirements from `aidlc-docs/construction/{unit-name}/nfr-requirements/`
29
+ - Understand scalability, performance, availability, security needs
30
+
31
+ ### Step 2: Create NFR Design Plan
32
+ - Generate plan with checkboxes [] for NFR design
33
+ - Focus on design patterns and logical components
34
+ - Each step should have a checkbox []
35
+
36
+ ### Step 3: Generate Context-Appropriate Questions
37
+ **DIRECTIVE**: Analyze the NFR requirements to generate ONLY questions relevant to THIS specific unit's NFR design. Use the categories below as inspiration, NOT as a mandatory checklist. Skip entire categories if not applicable.
38
+
39
+ - EMBED questions using [Answer]: tag format
40
+ - Focus on ambiguities and missing information specific to this unit
41
+ - Generate questions only where user input is needed for pattern and component decisions
42
+
43
+ **Example question categories** (adapt as needed):
44
+ - **Resilience Patterns** - Only if fault tolerance approach needs clarification
45
+ - **Scalability Patterns** - Only if scaling mechanisms are unclear
46
+ - **Performance Patterns** - Only if performance optimization strategy is ambiguous
47
+ - **Security Patterns** - Only if security implementation approach needs input
48
+ - **Logical Components** - Only if infrastructure components (queues, caches, etc.) need clarification
49
+
50
+ ### Step 4: Store Plan
51
+ - Save as `aidlc-docs/construction/plans/{unit-name}-nfr-design-plan.md`
52
+ - Include all [Answer]: tags for user input
53
+
54
+ ### Step 5: Collect and Analyze Answers
55
+ - Wait for user to complete all [Answer]: tags
56
+ - Review for vague or ambiguous responses
57
+ - Add follow-up questions if needed
58
+
59
+ ### Step 6: Generate NFR Design Artifacts
60
+ - Create `aidlc-docs/construction/{unit-name}/nfr-design/nfr-design-patterns.md`
61
+ - Create `aidlc-docs/construction/{unit-name}/nfr-design/logical-components.md`
62
+
63
+ ### Step 7: Present Completion Message
64
+ - Present completion message in this structure:
65
+ 1. **Completion Announcement** (mandatory): Always start with this:
66
+
67
+ ```markdown
68
+ # 🎨 NFR Design Complete - [unit-name]
69
+ ```
70
+
71
+ 2. **AI Summary** (optional): Provide structured bullet-point summary of NFR design
72
+ - Format: "NFR design has incorporated [description]:"
73
+ - List key design patterns implemented (bullet points)
74
+ - List logical components and infrastructure elements
75
+ - Mention resilience, scalability, and performance patterns applied
76
+ - DO NOT include workflow instructions ("please review", "let me know", "proceed to next phase", "before we proceed")
77
+ - Keep factual and content-focused
78
+ 3. **Formatted Workflow Message** (mandatory): Always end with this exact format:
79
+
80
+ ```markdown
81
+ ---
82
+
83
+ ⚠️ **REVIEW REQUIRED**
84
+
85
+ > Please examine the NFR design at:
86
+ > `aidlc-docs/{workflow-id}/construction/[unit-name]/nfr-design/`
87
+
88
+ **You may:**
89
+ - 🔧 **Request Changes** — Ask for modifications to the NFR design based on your review
90
+ - ✅ **Continue to Next Stage** — Approve NFR design and proceed to **[next-stage-name]**
91
+
92
+ ---
93
+ ```
94
+
95
+ ### Step 8: Wait for Explicit Approval
96
+ - Do not proceed until the user explicitly approves the NFR design
97
+ - Approval must be clear and unambiguous
98
+ - If user requests changes, update the design and repeat the approval process
99
+
100
+ ### Step 9: Record Approval and MANDATORY State Update
101
+ - Log approval in audit.md with timestamp
102
+ - Record the user's approval response with timestamp
103
+ - **MANDATORY**: Update BOTH state files in the SAME interaction:
104
+ 1. Mark NFR Design stage complete in `aidlc-docs/{workflow-id}/aidlc-state.md`
105
+ 2. Update `aidlc-docs/{workflow-id}/checkpoint.json` — set nfr-design status to "completed" with completed_at timestamp
106
+ - **Do NOT proceed to the next stage without completing state updates**
@@ -1,118 +1,118 @@
1
- # NFR Requirements
2
-
3
- ## Prerequisites
4
- - Functional Design must be complete for the unit
5
- - Unit functional design artifacts must be available
6
- - Execution plan must indicate NFR Requirements stage should execute
7
-
8
- ## Agent Delegation Strategy
9
-
10
- **MANDATORY**: Delegate NFR assessment artifact generation (Step 6) to `oracle-medium`. Do NOT generate NFR requirements and tech stack decisions directly.
11
-
12
- **Execution mode**: Foreground sequential — single coherent assessment task per unit.
13
-
14
- **Delegation scope**:
15
- - **Orchestrator retains**: Steps 1-5 (analyze functional design, plan creation, Q&A, answer collection) and Steps 7-9 (completion message, approval gate, state update).
16
- - **Delegated to `oracle-medium`**: Step 6 (Generate NFR Requirements Artifacts) — the agent analyzes functional design context and user answers to produce nfr-requirements.md and tech-stack-decisions.md.
17
-
18
- **If an agent task fails**: Follow the Agent Task Failure Recovery procedure in `error-handling.md` — retry the delegation, never silently do the work yourself.
19
-
20
- **After agent completes**: The orchestrator compiles the agent's output into the artifact files, presents the completion message, and manages the approval gate.
21
-
22
- **Optional technology validation — `librarian`**:
23
- When user answers in Step 5 name specific technologies, frameworks, or cloud services (e.g., "use Kafka", "Redis for caching", "Next.js 15"), the orchestrator may optionally invoke `librarian` to validate those choices against current documentation. Librarian can verify version compatibility, licensing terms, known limitations, and service-specific constraints that `oracle-medium` may not have in its training data. This is not mandatory — only invoke when specific technology names appear in user answers and validation would improve the accuracy of tech-stack-decisions.md.
24
-
25
- ## Overview
26
- Determine non-functional requirements for the unit and make tech stack choices.
27
-
28
- ## Steps to Execute
29
-
30
- ### Step 1: Analyze Functional Design
31
- - Read functional design artifacts from `aidlc-docs/construction/{unit-name}/functional-design/`
32
- - Understand business logic complexity and requirements
33
-
34
- ### Step 2: Create NFR Requirements Plan
35
- - Generate plan with checkboxes [] for NFR assessment
36
- - Focus on scalability, performance, availability, security
37
- - Each step should have a checkbox []
38
-
39
- ### Step 3: Generate Context-Appropriate Questions
40
- **DIRECTIVE**: Thoroughly analyze the functional design to identify ALL areas where NFR clarification would improve system quality and architecture decisions. Be proactive in asking questions to ensure comprehensive NFR coverage.
41
-
42
- **CRITICAL**: Default to asking questions when there is ANY ambiguity or missing detail that could affect system quality. It's better to ask too many questions than to make incorrect NFR assumptions.
43
-
44
- - EMBED questions using [Answer]: tag format
45
- - Focus on ANY ambiguities, missing information, or areas needing clarification
46
- - Generate questions wherever user input would improve NFR and tech stack decisions
47
- - **When in doubt, ask the question** - overconfidence leads to poor system quality
48
-
49
- **Question categories to evaluate** (consider ALL categories):
50
- - **Scalability Requirements** - Ask about expected load, growth patterns, scaling triggers, and capacity planning
51
- - **Performance Requirements** - Ask about response times, throughput, latency, and performance benchmarks
52
- - **Availability Requirements** - Ask about uptime expectations, disaster recovery, failover, and business continuity
53
- - **Security Requirements** - Ask about data protection, compliance, authentication, authorization, and threat models
54
- - **Tech Stack Selection** - Ask about technology preferences, constraints, existing systems, and integration requirements
55
- - **Reliability Requirements** - Ask about error handling, fault tolerance, monitoring, and alerting needs
56
- - **Maintainability Requirements** - Ask about code quality, documentation, testing, and operational requirements
57
- - **Usability Requirements** - Ask about user experience, accessibility, and interface requirements
58
-
59
- ### Step 4: Store Plan
60
- - Save as `aidlc-docs/construction/plans/{unit-name}-nfr-requirements-plan.md`
61
- - Include all [Answer]: tags for user input
62
-
63
- ### Step 5: Collect and Analyze Answers
64
- - Wait for user to complete all [Answer]: tags
65
- - **MANDATORY**: Carefully review ALL responses for vague or ambiguous answers
66
- - **CRITICAL**: Add follow-up questions for ANY unclear responses - do not proceed with ambiguity
67
- - Look for responses like "depends", "maybe", "not sure", "mix of", "somewhere between", "standard", "typical"
68
- - Create clarification questions file if ANY ambiguities are detected
69
- - **Do not proceed until ALL ambiguities are resolved**
70
-
71
- ### Step 6: Generate NFR Requirements Artifacts
72
- - Create `aidlc-docs/construction/{unit-name}/nfr-requirements/nfr-requirements.md`
73
- - Create `aidlc-docs/construction/{unit-name}/nfr-requirements/tech-stack-decisions.md`
74
-
75
- ### Step 7: Present Completion Message
76
- - Present completion message in this structure:
77
- 1. **Completion Announcement** (mandatory): Always start with this:
78
-
79
- ```markdown
80
- # 📊 NFR Requirements Complete - [unit-name]
81
- ```
82
-
83
- 2. **AI Summary** (optional): Provide structured bullet-point summary of NFR requirements
84
- - Format: "NFR requirements assessment has identified [description]:"
85
- - List key scalability, performance, availability requirements (bullet points)
86
- - List security and compliance requirements identified
87
- - Mention tech stack decisions and rationale
88
- - DO NOT include workflow instructions ("please review", "let me know", "proceed to next phase", "before we proceed")
89
- - Keep factual and content-focused
90
- 3. **Formatted Workflow Message** (mandatory): Always end with this exact format:
91
-
92
- ```markdown
93
- ---
94
-
95
- ⚠️ **REVIEW REQUIRED**
96
-
97
- > Please examine the NFR requirements at:
98
- > `aidlc-docs/{workflow-id}/construction/[unit-name]/nfr-requirements/`
99
-
100
- **You may:**
101
- - 🔧 **Request Changes** — Ask for modifications to the NFR requirements based on your review
102
- - ✅ **Continue to Next Stage** — Approve NFR requirements and proceed to **[next-stage-name]**
103
-
104
- ---
105
- ```
106
-
107
- ### Step 8: Wait for Explicit Approval
108
- - Do not proceed until the user explicitly approves the NFR requirements
109
- - Approval must be clear and unambiguous
110
- - If user requests changes, update the requirements and repeat the approval process
111
-
112
- ### Step 9: Record Approval and MANDATORY State Update
113
- - Log approval in audit.md with timestamp
114
- - Record the user's approval response with timestamp
115
- - **MANDATORY**: Update BOTH state files in the SAME interaction:
116
- 1. Mark NFR Requirements stage complete in `aidlc-docs/{workflow-id}/aidlc-state.md`
117
- 2. Update `aidlc-docs/{workflow-id}/checkpoint.json` — set nfr-requirements status to "completed" with completed_at timestamp
118
- - **Do NOT proceed to the next stage without completing state updates**
1
+ # NFR Requirements
2
+
3
+ ## Prerequisites
4
+ - Functional Design must be complete for the unit
5
+ - Unit functional design artifacts must be available
6
+ - Execution plan must indicate NFR Requirements stage should execute
7
+
8
+ ## Agent Delegation Strategy
9
+
10
+ **MANDATORY**: Delegate NFR assessment artifact generation (Step 6) to `oracle-medium`. Do NOT generate NFR requirements and tech stack decisions directly.
11
+
12
+ **Execution mode**: Foreground sequential — single coherent assessment task per unit.
13
+
14
+ **Delegation scope**:
15
+ - **Orchestrator retains**: Steps 1-5 (analyze functional design, plan creation, Q&A, answer collection) and Steps 7-9 (completion message, approval gate, state update).
16
+ - **Delegated to `oracle-medium`**: Step 6 (Generate NFR Requirements Artifacts) — the agent analyzes functional design context and user answers to produce nfr-requirements.md and tech-stack-decisions.md.
17
+
18
+ **If an agent task fails**: Follow the Agent Task Failure Recovery procedure in `error-handling.md` — retry the delegation, never silently do the work yourself.
19
+
20
+ **After agent completes**: The orchestrator compiles the agent's output into the artifact files, presents the completion message, and manages the approval gate.
21
+
22
+ **Optional technology validation — `librarian`**:
23
+ When user answers in Step 5 name specific technologies, frameworks, or cloud services (e.g., "use Kafka", "Redis for caching", "Next.js 15"), the orchestrator may optionally invoke `librarian` to validate those choices against current documentation. Librarian can verify version compatibility, licensing terms, known limitations, and service-specific constraints that `oracle-medium` may not have in its training data. This is not mandatory — only invoke when specific technology names appear in user answers and validation would improve the accuracy of tech-stack-decisions.md.
24
+
25
+ ## Overview
26
+ Determine non-functional requirements for the unit and make tech stack choices.
27
+
28
+ ## Steps to Execute
29
+
30
+ ### Step 1: Analyze Functional Design
31
+ - Read functional design artifacts from `aidlc-docs/construction/{unit-name}/functional-design/`
32
+ - Understand business logic complexity and requirements
33
+
34
+ ### Step 2: Create NFR Requirements Plan
35
+ - Generate plan with checkboxes [] for NFR assessment
36
+ - Focus on scalability, performance, availability, security
37
+ - Each step should have a checkbox []
38
+
39
+ ### Step 3: Generate Context-Appropriate Questions
40
+ **DIRECTIVE**: Thoroughly analyze the functional design to identify ALL areas where NFR clarification would improve system quality and architecture decisions. Be proactive in asking questions to ensure comprehensive NFR coverage.
41
+
42
+ **CRITICAL**: Default to asking questions when there is ANY ambiguity or missing detail that could affect system quality. It's better to ask too many questions than to make incorrect NFR assumptions.
43
+
44
+ - EMBED questions using [Answer]: tag format
45
+ - Focus on ANY ambiguities, missing information, or areas needing clarification
46
+ - Generate questions wherever user input would improve NFR and tech stack decisions
47
+ - **When in doubt, ask the question** - overconfidence leads to poor system quality
48
+
49
+ **Question categories to evaluate** (consider ALL categories):
50
+ - **Scalability Requirements** - Ask about expected load, growth patterns, scaling triggers, and capacity planning
51
+ - **Performance Requirements** - Ask about response times, throughput, latency, and performance benchmarks
52
+ - **Availability Requirements** - Ask about uptime expectations, disaster recovery, failover, and business continuity
53
+ - **Security Requirements** - Ask about data protection, compliance, authentication, authorization, and threat models
54
+ - **Tech Stack Selection** - Ask about technology preferences, constraints, existing systems, and integration requirements
55
+ - **Reliability Requirements** - Ask about error handling, fault tolerance, monitoring, and alerting needs
56
+ - **Maintainability Requirements** - Ask about code quality, documentation, testing, and operational requirements
57
+ - **Usability Requirements** - Ask about user experience, accessibility, and interface requirements
58
+
59
+ ### Step 4: Store Plan
60
+ - Save as `aidlc-docs/construction/plans/{unit-name}-nfr-requirements-plan.md`
61
+ - Include all [Answer]: tags for user input
62
+
63
+ ### Step 5: Collect and Analyze Answers
64
+ - Wait for user to complete all [Answer]: tags
65
+ - **MANDATORY**: Carefully review ALL responses for vague or ambiguous answers
66
+ - **CRITICAL**: Add follow-up questions for ANY unclear responses - do not proceed with ambiguity
67
+ - Look for responses like "depends", "maybe", "not sure", "mix of", "somewhere between", "standard", "typical"
68
+ - Create clarification questions file if ANY ambiguities are detected
69
+ - **Do not proceed until ALL ambiguities are resolved**
70
+
71
+ ### Step 6: Generate NFR Requirements Artifacts
72
+ - Create `aidlc-docs/construction/{unit-name}/nfr-requirements/nfr-requirements.md`
73
+ - Create `aidlc-docs/construction/{unit-name}/nfr-requirements/tech-stack-decisions.md`
74
+
75
+ ### Step 7: Present Completion Message
76
+ - Present completion message in this structure:
77
+ 1. **Completion Announcement** (mandatory): Always start with this:
78
+
79
+ ```markdown
80
+ # 📊 NFR Requirements Complete - [unit-name]
81
+ ```
82
+
83
+ 2. **AI Summary** (optional): Provide structured bullet-point summary of NFR requirements
84
+ - Format: "NFR requirements assessment has identified [description]:"
85
+ - List key scalability, performance, availability requirements (bullet points)
86
+ - List security and compliance requirements identified
87
+ - Mention tech stack decisions and rationale
88
+ - DO NOT include workflow instructions ("please review", "let me know", "proceed to next phase", "before we proceed")
89
+ - Keep factual and content-focused
90
+ 3. **Formatted Workflow Message** (mandatory): Always end with this exact format:
91
+
92
+ ```markdown
93
+ ---
94
+
95
+ ⚠️ **REVIEW REQUIRED**
96
+
97
+ > Please examine the NFR requirements at:
98
+ > `aidlc-docs/{workflow-id}/construction/[unit-name]/nfr-requirements/`
99
+
100
+ **You may:**
101
+ - 🔧 **Request Changes** — Ask for modifications to the NFR requirements based on your review
102
+ - ✅ **Continue to Next Stage** — Approve NFR requirements and proceed to **[next-stage-name]**
103
+
104
+ ---
105
+ ```
106
+
107
+ ### Step 8: Wait for Explicit Approval
108
+ - Do not proceed until the user explicitly approves the NFR requirements
109
+ - Approval must be clear and unambiguous
110
+ - If user requests changes, update the requirements and repeat the approval process
111
+
112
+ ### Step 9: Record Approval and MANDATORY State Update
113
+ - Log approval in audit.md with timestamp
114
+ - Record the user's approval response with timestamp
115
+ - **MANDATORY**: Update BOTH state files in the SAME interaction:
116
+ 1. Mark NFR Requirements stage complete in `aidlc-docs/{workflow-id}/aidlc-state.md`
117
+ 2. Update `aidlc-docs/{workflow-id}/checkpoint.json` — set nfr-requirements status to "completed" with completed_at timestamp
118
+ - **Do NOT proceed to the next stage without completing state updates**