olympus-ai 4.0.2 → 4.0.4

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 (50) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/features/workflow-engine/artifacts.d.ts.map +1 -1
  3. package/dist/features/workflow-engine/artifacts.js +13 -9
  4. package/dist/features/workflow-engine/artifacts.js.map +1 -1
  5. package/dist/features/workflow-engine/construction/nfr-requirements.js +1 -1
  6. package/dist/features/workflow-engine/construction/nfr-requirements.js.map +1 -1
  7. package/dist/features/workflow-engine/engine.d.ts +1 -1
  8. package/dist/features/workflow-engine/engine.js +2 -2
  9. package/dist/features/workflow-engine/engine.js.map +1 -1
  10. package/dist/features/workflow-engine/inception/stages/units-generation.d.ts.map +1 -1
  11. package/dist/features/workflow-engine/inception/stages/units-generation.js +7 -6
  12. package/dist/features/workflow-engine/inception/stages/units-generation.js.map +1 -1
  13. package/dist/features/workflow-engine/inception/stages/user-stories.d.ts.map +1 -1
  14. package/dist/features/workflow-engine/inception/stages/user-stories.js +5 -3
  15. package/dist/features/workflow-engine/inception/stages/user-stories.js.map +1 -1
  16. package/dist/features/workflow-engine/question-manager.d.ts.map +1 -1
  17. package/dist/features/workflow-engine/question-manager.js +5 -1
  18. package/dist/features/workflow-engine/question-manager.js.map +1 -1
  19. package/dist/features/workflow-engine/state-file.d.ts.map +1 -1
  20. package/dist/features/workflow-engine/state-file.js +4 -2
  21. package/dist/features/workflow-engine/state-file.js.map +1 -1
  22. package/dist/hooks/olympus-hooks.cjs +10 -10
  23. package/dist/installer/index.d.ts +1 -1
  24. package/dist/installer/index.js +1 -1
  25. package/dist/learning/__tests__/project-resolver.test.d.ts +2 -0
  26. package/dist/learning/__tests__/project-resolver.test.d.ts.map +1 -0
  27. package/dist/learning/__tests__/project-resolver.test.js +216 -0
  28. package/dist/learning/__tests__/project-resolver.test.js.map +1 -0
  29. package/dist/learning/hooks/success-detector.d.ts.map +1 -1
  30. package/dist/learning/hooks/success-detector.js +4 -26
  31. package/dist/learning/hooks/success-detector.js.map +1 -1
  32. package/dist/learning/pattern-extractor.js +1 -1
  33. package/dist/learning/pattern-extractor.js.map +1 -1
  34. package/dist/learning/project-resolver.d.ts +6 -0
  35. package/dist/learning/project-resolver.d.ts.map +1 -0
  36. package/dist/learning/project-resolver.js +65 -0
  37. package/dist/learning/project-resolver.js.map +1 -0
  38. package/dist/learning/storage.d.ts.map +1 -1
  39. package/dist/learning/storage.js +2 -1
  40. package/dist/learning/storage.js.map +1 -1
  41. package/package.json +1 -1
  42. package/resources/agents/frontend-engineer-high.md +112 -10
  43. package/resources/agents/frontend-engineer.md +136 -73
  44. package/resources/rules/common/depth-levels.md +73 -73
  45. package/resources/rules/common/question-format-guide.md +375 -375
  46. package/resources/rules/common/session-continuity.md +47 -47
  47. package/resources/rules/inception/requirements-analysis.md +247 -215
  48. package/resources/rules/inception/workflow-planning.md +487 -487
  49. package/resources/skills/continue/SKILL.md +3 -3
  50. package/resources/skills/plan/SKILL.md +35 -25
@@ -87,15 +87,15 @@ Follow the artifact loading rules from `session-continuity.md`. Based on the cur
87
87
  | workspace-detection | (none needed) |
88
88
  | reverse-engineering | inception/intent.md (if exists) |
89
89
  | requirements-analysis | inception/intent.md, reverse-engineering artifacts (if brownfield) |
90
- | user-stories | inception/intent.md, inception/requirements.md, inception/requirements-questions.md |
91
- | workflow-planning | All above + inception/stories.md, inception/personas.md |
90
+ | user-stories | inception/intent.md, inception/requirements/requirements.md, inception/requirements/requirements-analysis-questions.md |
91
+ | workflow-planning | All above + inception/user-stories/stories.md, inception/user-stories/personas.md |
92
92
  | application-design | All above + inception/plans/workflow-routing.md |
93
93
  | units-generation | All above + inception/application-design/ artifacts |
94
94
 
95
95
  ### Construction Phase Artifacts
96
96
 
97
97
  Load ALL inception artifacts PLUS:
98
- - `inception/unit-of-work.md` (unit decomposition)
98
+ - `inception/application-design/unit-of-work.md` (unit decomposition)
99
99
  - For the active unit: `construction/{unit-name}/functional-design.md`, `nfr-requirements.md`, `nfr-design.md`, `infrastructure-design.md`, `code-generation.md`
100
100
  - All completed units' artifacts
101
101
 
@@ -529,7 +529,7 @@ Mark `inception_stages["requirements-analysis"].status = "in_progress"`. Update
529
529
 
530
530
  If `inception_stages["requirements-analysis"].questions_file` is already set (resume case), skip to Phase B.
531
531
 
532
- Create `aidlc-docs/{workflowId}/inception/requirements-analysis-questions.md` using the file-only Q&A format (same structure as Step 3b):
532
+ Create `aidlc-docs/{workflowId}/inception/requirements/requirements-analysis-questions.md` using the file-only Q&A format (same structure as Step 3b):
533
533
 
534
534
  Generate 4 questions (scale up/down based on trust level):
535
535
  1. **Functional Requirements**: What specific capabilities must this feature deliver? (options: A. {list option}, B. {another}, etc.)
@@ -537,11 +537,11 @@ Generate 4 questions (scale up/down based on trust level):
537
537
  3. **Constraints**: What technical or business constraints must the implementation respect? (options around timeline, compatibility, team skills, platform, budget, etc.)
538
538
  4. **Success Metrics**: How will we measure that this feature succeeded? (options around quantitative metrics, qualitative goals, user adoption, etc.)
539
539
 
540
- Update checkpoint: `inception_stages["requirements-analysis"].questions_file = "aidlc-docs/{workflowId}/inception/requirements-analysis-questions.md"`
540
+ Update checkpoint: `inception_stages["requirements-analysis"].questions_file = "aidlc-docs/{workflowId}/inception/requirements/requirements-analysis-questions.md"`
541
541
 
542
542
  ### Phase B: Inform user and wait
543
543
 
544
- Tell the user: "I've created `aidlc-docs/{workflowId}/inception/requirements-analysis-questions.md` with {N} questions about requirements. Please fill in the `[Answer]:` tags and say 'done' when finished."
544
+ Tell the user: "I've created `aidlc-docs/{workflowId}/inception/requirements/requirements-analysis-questions.md` with {N} questions about requirements. Please fill in the `[Answer]:` tags and say 'done' when finished."
545
545
 
546
546
  Wait for "done", "finished", or "ready".
547
547
 
@@ -559,11 +559,11 @@ Update checkpoint: `inception_stages["requirements-analysis"].answers_received =
559
559
 
560
560
  ### Phase E: Handle issues (if any)
561
561
 
562
- If contradictions or ambiguities are found: create `aidlc-docs/{workflowId}/inception/requirements-analysis-clarification-questions.md` with targeted clarification questions (same Q&A format). Inform the user. Loop back to Phase B.
562
+ If contradictions or ambiguities are found: create `aidlc-docs/{workflowId}/inception/requirements/requirements-analysis-clarification-questions.md` with targeted clarification questions (same Q&A format). Inform the user. Loop back to Phase B.
563
563
 
564
564
  ### Phase F: Synthesize requirements artifacts
565
565
 
566
- **`aidlc-docs/{workflowId}/inception/requirements.md`**:
566
+ **`aidlc-docs/{workflowId}/inception/requirements/requirements.md`**:
567
567
 
568
568
  ```markdown
569
569
  ---
@@ -586,7 +586,7 @@ created: "{ISO-8601}"
586
586
  - **BR-001**: {rule}
587
587
  ```
588
588
 
589
- **`aidlc-docs/{workflowId}/inception/nfr.md`**:
589
+ **`aidlc-docs/{workflowId}/inception/requirements/nfr.md`**:
590
590
 
591
591
  ```markdown
592
592
  ---
@@ -616,17 +616,25 @@ created: "{ISO-8601}"
616
616
 
617
617
  **NFR classification**: Design-time NFRs (security, compliance, accessibility) are gate-blocking. Runtime NFRs (performance, availability) are tracked but not gate-blocking.
618
618
 
619
- ### Phase G: Dispatch Metis for blind spot analysis (silent)
619
+ ### Phase G: Dispatch Metis for blind spot analysis
620
620
 
621
621
  ```
622
622
  Task(
623
623
  subagent_type="metis",
624
624
  description="Requirements blind spot analysis",
625
- prompt="Review this feature's requirements and identify blind spots, unstated assumptions, and missing considerations. Feature: {summarize intent.md}. Requirements: {summarize requirements.md}. Discovery findings: {summarize if reverse-engineering ran, otherwise 'greenfield project'}."
625
+ prompt="Review this feature's requirements and identify blind spots, unstated assumptions, and missing considerations. Feature: {summarize intent.md}. Requirements: {summarize requirements.md}. Discovery findings: {summarize if reverse-engineering ran, otherwise 'greenfield project'}. For each finding, include a recommendation with your suggested course of action to help the user decide whether to incorporate it."
626
626
  )
627
627
  ```
628
628
 
629
- Do not announce this dispatch. Surface findings by incorporating them into requirements.md where relevant.
629
+ **Write findings to file**: After Metis returns, create `aidlc-docs/{workflowId}/inception/requirements/metis-blind-spot-analysis.md` with the full analysis. Format each finding with:
630
+ - The finding description and why it was flagged
631
+ - **Recommendation**: Metis's suggested course of action (incorporate, defer, investigate, etc.)
632
+ - **Decision**: `[ ]` — empty checkbox for the user to mark with their decision
633
+ - **User Comments**: blank line for the user to add notes
634
+
635
+ Include a response guide at the top of the file explaining how to review (check findings to include, add comments, or skip).
636
+
637
+ Do not silently incorporate findings. The user must review the file and respond before findings are merged into requirements.
630
638
 
631
639
  ### 7d. Update state (triple write)
632
640
 
@@ -646,14 +654,16 @@ Do not announce this dispatch. Surface findings by incorporating them into requi
646
654
  - **Requirements Analysis**: Captured structured requirements from Q&A interaction
647
655
 
648
656
  ### Artifacts generated
649
- - `aidlc-docs/{workflowId}/inception/requirements-analysis-questions.md`
650
- - `aidlc-docs/{workflowId}/inception/requirements.md`
651
- - `aidlc-docs/{workflowId}/inception/nfr.md`
657
+ - `aidlc-docs/{workflowId}/inception/requirements/requirements-analysis-questions.md`
658
+ - `aidlc-docs/{workflowId}/inception/requirements/requirements.md`
659
+ - `aidlc-docs/{workflowId}/inception/requirements/nfr.md`
660
+ - `aidlc-docs/{workflowId}/inception/requirements/metis-blind-spot-analysis.md` (if Metis was dispatched)
652
661
 
653
662
  ### What needs your review
654
663
  - [ ] Functional requirements accurately capture what must be built
655
664
  - [ ] Non-functional requirements and gate-blocking designations are correct
656
665
  - [ ] No significant requirements are missing
666
+ - [ ] Metis blind spot findings reviewed (if applicable) — check findings to include, add comments in the file
657
667
 
658
668
  ---
659
669
 
@@ -684,7 +694,7 @@ Mark `inception_stages["user-stories"].status = "in_progress"`. Update checkpoin
684
694
 
685
695
  Read `intent.md` and `requirements.md` for context.
686
696
 
687
- **`aidlc-docs/{workflowId}/inception/personas.md`**:
697
+ **`aidlc-docs/{workflowId}/inception/user-stories/personas.md`**:
688
698
 
689
699
  ```markdown
690
700
  # User Personas: {Title}
@@ -697,7 +707,7 @@ Read `intent.md` and `requirements.md` for context.
697
707
  - **Key User Stories**: US-001, US-002, ...
698
708
  ```
699
709
 
700
- **`aidlc-docs/{workflowId}/inception/stories.md`** (Gherkin format):
710
+ **`aidlc-docs/{workflowId}/inception/user-stories/stories.md`** (Gherkin format):
701
711
 
702
712
  ```markdown
703
713
  # User Stories: {Title}
@@ -737,8 +747,8 @@ Then {expected outcome}
737
747
  - **User Stories**: Generated user personas and user stories with acceptance criteria
738
748
 
739
749
  ### Artifacts generated
740
- - `aidlc-docs/{workflowId}/inception/personas.md`
741
- - `aidlc-docs/{workflowId}/inception/stories.md`
750
+ - `aidlc-docs/{workflowId}/inception/user-stories/personas.md`
751
+ - `aidlc-docs/{workflowId}/inception/user-stories/stories.md`
742
752
 
743
753
  ### What needs your review
744
754
  - [ ] Personas accurately represent the intended users
@@ -1059,9 +1069,9 @@ Mark `inception_stages["units-generation"].status = "in_progress"`. Update check
1059
1069
 
1060
1070
  ### 11a. Generate unit artifacts
1061
1071
 
1062
- Read `requirements.md`, `stories.md`, and `application-design/components.md` for context.
1072
+ Read `requirements/requirements.md`, `user-stories/stories.md`, and `application-design/components.md` for context.
1063
1073
 
1064
- **`aidlc-docs/{workflowId}/inception/unit-of-work.md`**:
1074
+ **`aidlc-docs/{workflowId}/inception/application-design/unit-of-work.md`**:
1065
1075
 
1066
1076
  ```markdown
1067
1077
  # Units of Work: {Title}
@@ -1078,7 +1088,7 @@ Read `requirements.md`, `stories.md`, and `application-design/components.md` for
1078
1088
  ...
1079
1089
  ```
1080
1090
 
1081
- **`aidlc-docs/{workflowId}/inception/unit-of-work-dependency.md`**:
1091
+ **`aidlc-docs/{workflowId}/inception/application-design/unit-of-work-dependency.md`**:
1082
1092
 
1083
1093
  ```markdown
1084
1094
  # Unit Dependency Map: {Title}
@@ -1100,7 +1110,7 @@ graph TD
1100
1110
  ```
1101
1111
  ```
1102
1112
 
1103
- **`aidlc-docs/{workflowId}/inception/unit-of-work-story-map.md`**:
1113
+ **`aidlc-docs/{workflowId}/inception/application-design/unit-of-work-story-map.md`**:
1104
1114
 
1105
1115
  ```markdown
1106
1116
  # Story Map: {Title}
@@ -1132,9 +1142,9 @@ graph TD
1132
1142
  - **Units Generation**: Decomposed requirements into implementation units with dependency mapping
1133
1143
 
1134
1144
  ### Artifacts generated
1135
- - `aidlc-docs/{workflowId}/inception/unit-of-work.md`
1136
- - `aidlc-docs/{workflowId}/inception/unit-of-work-dependency.md`
1137
- - `aidlc-docs/{workflowId}/inception/unit-of-work-story-map.md`
1145
+ - `aidlc-docs/{workflowId}/inception/application-design/unit-of-work.md`
1146
+ - `aidlc-docs/{workflowId}/inception/application-design/unit-of-work-dependency.md`
1147
+ - `aidlc-docs/{workflowId}/inception/application-design/unit-of-work-story-map.md`
1138
1148
 
1139
1149
  ### What needs your review
1140
1150
  - [ ] Units correctly partition the work into manageable implementation chunks
@@ -1194,7 +1204,7 @@ Trust Level: {0-3}
1194
1204
 
1195
1205
  Key artifacts:
1196
1206
  - `aidlc-docs/{workflowId}/inception/intent.md`
1197
- - `aidlc-docs/{workflowId}/inception/requirements.md`
1207
+ - `aidlc-docs/{workflowId}/inception/requirements/requirements.md`
1198
1208
  - `aidlc-docs/{workflowId}/inception/plans/execution-plan.md`
1199
1209
  - `aidlc-docs/{workflowId}/inception/plans/workflow-routing.md`
1200
1210
  {list additional artifacts}"
@@ -1263,7 +1273,7 @@ Update `aidlc-docs/{workflowId}/checkpoint.json`:
1263
1273
  4. **CHECKPOINTS ARE MANDATORY**: Save checkpoint state after every stage transition (update inception_stages, current_inception_stage, state file, audit). This enables resume on interruption.
1264
1274
  5. **TRUST ADJUSTS CEREMONY**: Higher trust = fewer questions + lighter gates. Lower trust = more thorough validation.
1265
1275
  6. **REVIEW REQUIRED AFTER EVERY STAGE**: Use the exact REVIEW REQUIRED / WHAT'S NEXT format after each stage completes.
1266
- 7. **RESEARCH IS SILENT**: Agent research dispatches (explore, librarian, metis) happen without announcing them to the user. Only surface findings in the artifacts.
1276
+ 7. **RESEARCH IS SILENT**: Agent research dispatches (explore, librarian) happen without announcing them to the user. Only surface findings in the artifacts. **Exception**: Metis blind spot analysis writes findings to a dedicated file for user review — do not silently incorporate.
1267
1277
  8. **STATE TRACKING IS TRIPLE**: Every stage update must write to checkpoint.json + aidlc-state.md + audit.md.
1268
1278
  9. **RESUME IS IDEMPOTENT**: Each stage checks its `inception_stages` entry before executing. `completed` or `skipped` → skip to next. `in_progress` with `questions_file` set → resume Q&A without regenerating.
1269
1279