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.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/cli/index.js +63 -27
- package/dist/cli/index.js.map +1 -1
- package/dist/hooks/olympus-hooks.cjs +257 -257
- package/dist/installer/hooks.d.ts +47 -14
- package/dist/installer/hooks.d.ts.map +1 -1
- package/dist/installer/hooks.js +45 -77
- package/dist/installer/hooks.js.map +1 -1
- package/dist/installer/index.d.ts +8 -7
- package/dist/installer/index.d.ts.map +1 -1
- package/dist/installer/index.js +49 -46
- package/dist/installer/index.js.map +1 -1
- package/package.json +1 -1
- package/resources/config/risk-keywords.json +5 -5
- package/resources/rules/common/ascii-diagram-standards.md +115 -115
- package/resources/rules/common/content-validation.md +131 -131
- package/resources/rules/common/error-handling.md +430 -430
- package/resources/rules/common/markdown-formatting.md +170 -170
- package/resources/rules/common/overconfidence-prevention.md +100 -100
- package/resources/rules/common/pathway-behaviors.json +60 -60
- package/resources/rules/common/pathway-behaviors.md +100 -100
- package/resources/rules/common/process-overview.md +157 -157
- package/resources/rules/common/terminal-formatting.md +161 -161
- package/resources/rules/common/terminology.md +189 -189
- package/resources/rules/common/welcome-message.md +118 -118
- package/resources/rules/common/workflow-changes.md +285 -285
- package/resources/rules/construction/bolt-planning.md +153 -153
- package/resources/rules/construction/bolt-review.md +143 -143
- package/resources/rules/construction/build-and-test.md +527 -527
- package/resources/rules/construction/code-generation.md +414 -414
- package/resources/rules/construction/documentation.md +201 -201
- package/resources/rules/construction/functional-design.md +135 -135
- package/resources/rules/construction/infrastructure-design.md +110 -110
- package/resources/rules/construction/nfr-design.md +106 -106
- package/resources/rules/construction/nfr-requirements.md +118 -118
- package/resources/rules/construction/test-generation.md +112 -112
- package/resources/rules/core-workflow.md +196 -196
- package/resources/rules/inception/application-design.md +195 -195
- package/resources/rules/inception/bolt-planning.md +588 -588
- package/resources/rules/inception/reverse-engineering.md +354 -354
- package/resources/rules/inception/units-generation.md +505 -505
- package/resources/rules/inception/user-stories.md +527 -527
- package/resources/rules/inception/workspace-detection.md +82 -82
- package/resources/rules/operations/operations.md +19 -19
- package/resources/skills/brief/templates/ai-dlc-intent-brief-template.md +149 -149
- package/resources/skills/getting-started/SKILL.md +79 -79
- package/resources/templates/construction/bolt-spec-template.md +270 -270
- package/resources/templates/inception/unit-brief-template.md +188 -188
- package/resources/templates/inception/units-template.md +99 -99
|
@@ -1,131 +1,131 @@
|
|
|
1
|
-
# Content Validation Rules
|
|
2
|
-
|
|
3
|
-
## MANDATORY: Content Validation Before File Creation
|
|
4
|
-
|
|
5
|
-
**CRITICAL**: All generated content MUST be validated before writing to files to prevent parsing errors.
|
|
6
|
-
|
|
7
|
-
## ASCII Diagram Standards
|
|
8
|
-
|
|
9
|
-
**CRITICAL**: Before creating ANY file with ASCII diagrams:
|
|
10
|
-
|
|
11
|
-
1. **LOAD** `common/ascii-diagram-standards.md`
|
|
12
|
-
2. **VALIDATE** each diagram:
|
|
13
|
-
- Count characters per line (all lines MUST be same width)
|
|
14
|
-
- Use ONLY: `+` `-` `|` `^` `v` `<` `>` and spaces
|
|
15
|
-
- NO Unicode box-drawing characters
|
|
16
|
-
- Spaces only (NO tabs)
|
|
17
|
-
3. **TEST** alignment by verifying box corners align vertically
|
|
18
|
-
|
|
19
|
-
**See `common/ascii-diagram-standards.md` for patterns and validation checklist.**
|
|
20
|
-
|
|
21
|
-
## Mermaid Diagram Validation
|
|
22
|
-
|
|
23
|
-
### Required Validation Steps
|
|
24
|
-
1. **Syntax Check**: Validate Mermaid syntax before file creation
|
|
25
|
-
2. **Character Escaping**: Ensure special characters are properly escaped
|
|
26
|
-
3. **Fallback Content**: Provide text alternative if Mermaid fails validation
|
|
27
|
-
|
|
28
|
-
### Mermaid Validation Rules
|
|
29
|
-
```markdown
|
|
30
|
-
## BEFORE creating any file with Mermaid diagrams:
|
|
31
|
-
|
|
32
|
-
1. Check for invalid characters in node IDs (use alphanumeric + underscore only)
|
|
33
|
-
2. Escape special characters in labels: " → \" and ' → \'
|
|
34
|
-
3. Validate flowchart syntax: node connections must be valid
|
|
35
|
-
4. Test diagram parsing with simple validation
|
|
36
|
-
|
|
37
|
-
## FALLBACK: If Mermaid validation fails, use text-based workflow representation
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Implementation Pattern
|
|
41
|
-
```markdown
|
|
42
|
-
## Workflow Visualization
|
|
43
|
-
|
|
44
|
-
### Mermaid Diagram (if syntax valid)
|
|
45
|
-
```mermaid
|
|
46
|
-
[validated diagram content]
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Text Alternative (always include)
|
|
50
|
-
```
|
|
51
|
-
Phase 1: INCEPTION
|
|
52
|
-
- Stage 1: Workspace Detection (COMPLETED)
|
|
53
|
-
- Stage 2: Requirements Analysis (COMPLETED)
|
|
54
|
-
[continue with text representation]
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Markdown Formatting Standards
|
|
58
|
-
|
|
59
|
-
**MANDATORY**: Load and follow `common/markdown-formatting.md` for the complete markdownlint rule set and project-specific overrides. That file is the authoritative reference for all markdown formatting requirements.
|
|
60
|
-
|
|
61
|
-
## General Content Validation
|
|
62
|
-
|
|
63
|
-
### Pre-Creation Validation Checklist
|
|
64
|
-
- [ ] Validate embedded code blocks (Mermaid, JSON, YAML)
|
|
65
|
-
- [ ] Check special character escaping
|
|
66
|
-
- [ ] Verify markdown syntax correctness
|
|
67
|
-
- [ ] Test content parsing compatibility
|
|
68
|
-
- [ ] Include fallback content for complex elements
|
|
69
|
-
|
|
70
|
-
### Error Prevention Rules
|
|
71
|
-
1. **Always validate before using tools/commands to write files**: Never write unvalidated content
|
|
72
|
-
2. **Escape special characters**: Particularly in diagrams and code blocks
|
|
73
|
-
3. **Provide alternatives**: Include text versions of visual content
|
|
74
|
-
4. **Test syntax**: Validate complex content structures
|
|
75
|
-
|
|
76
|
-
## Validation Failure Handling
|
|
77
|
-
|
|
78
|
-
### When Validation Fails
|
|
79
|
-
1. **Log the error**: Record what failed validation
|
|
80
|
-
2. **Use fallback content**: Switch to text-based alternative
|
|
81
|
-
3. **Continue workflow**: Don't block on content validation failures
|
|
82
|
-
4. **Inform user**: Mention simplified content was used due to parsing constraints
|
|
83
|
-
|
|
84
|
-
## Artifact Consistency Validation
|
|
85
|
-
|
|
86
|
-
### MANDATORY: Post-Generation Consistency Check
|
|
87
|
-
|
|
88
|
-
**CRITICAL**: After ANY agent generates inception or design artifacts, the orchestrator MUST validate the generated content against the requirements before presenting to the user.
|
|
89
|
-
|
|
90
|
-
### Decision Registry
|
|
91
|
-
|
|
92
|
-
For complex workflows (depth >= MEDIUM or 3+ units), create a `decisions.md` file in the inception directory listing all structural decisions as key-value pairs. Include this file's content in every agent delegation prompt during the workflow.
|
|
93
|
-
|
|
94
|
-
Required decision categories:
|
|
95
|
-
|
|
96
|
-
- **Folder structure**: Where artifacts live on disk (exact paths)
|
|
97
|
-
- **Naming conventions**: ID formats, prefix patterns, slug functions
|
|
98
|
-
- **Lifecycle states**: State machine transitions (exact state names)
|
|
99
|
-
- **Type definitions**: TypeScript types (Record vs Array, union members)
|
|
100
|
-
- **Alignment model**: Thresholds, blocking vs advisory behavior
|
|
101
|
-
- **Source of truth**: Which system owns which data
|
|
102
|
-
|
|
103
|
-
### Post-Generation Validation Steps
|
|
104
|
-
|
|
105
|
-
After an agent returns generated content:
|
|
106
|
-
|
|
107
|
-
1. **Path validation**: Grep generated content for folder paths — verify they match the decision registry
|
|
108
|
-
2. **Naming validation**: Grep for ID patterns — verify they use the agreed format (case, prefix, separator)
|
|
109
|
-
3. **State validation**: Grep for lifecycle state names — verify they match the agreed state machine
|
|
110
|
-
4. **Type validation**: Grep for type descriptions — verify Record vs Array, union members match requirements
|
|
111
|
-
5. **Cross-reference**: Compare key terms in generated content against the requirements.md FR/BR/NFR list
|
|
112
|
-
|
|
113
|
-
### Agent Prompt Requirements
|
|
114
|
-
|
|
115
|
-
When delegating artifact generation to any agent, the prompt MUST include:
|
|
116
|
-
|
|
117
|
-
1. A "Decision Constraints" section quoting verbatim from BRs/FRs for:
|
|
118
|
-
- Folder structure (exact paths)
|
|
119
|
-
- Naming conventions (exact format with examples)
|
|
120
|
-
- Lifecycle states (exact state names)
|
|
121
|
-
- Type definitions (exact TypeScript types)
|
|
122
|
-
2. The `decisions.md` file content (if it exists) as a reference block
|
|
123
|
-
3. An explicit instruction: "Do NOT deviate from these constraints. If uncertain, use the exact text from the constraints."
|
|
124
|
-
|
|
125
|
-
### Validation Failure Handling
|
|
126
|
-
|
|
127
|
-
If post-generation validation finds inconsistencies:
|
|
128
|
-
|
|
129
|
-
1. Fix the inconsistencies before presenting to the user
|
|
130
|
-
2. Log the violations found in audit.md
|
|
131
|
-
3. If the agent consistently produces wrong content, escalate the prompt with more explicit constraints
|
|
1
|
+
# Content Validation Rules
|
|
2
|
+
|
|
3
|
+
## MANDATORY: Content Validation Before File Creation
|
|
4
|
+
|
|
5
|
+
**CRITICAL**: All generated content MUST be validated before writing to files to prevent parsing errors.
|
|
6
|
+
|
|
7
|
+
## ASCII Diagram Standards
|
|
8
|
+
|
|
9
|
+
**CRITICAL**: Before creating ANY file with ASCII diagrams:
|
|
10
|
+
|
|
11
|
+
1. **LOAD** `common/ascii-diagram-standards.md`
|
|
12
|
+
2. **VALIDATE** each diagram:
|
|
13
|
+
- Count characters per line (all lines MUST be same width)
|
|
14
|
+
- Use ONLY: `+` `-` `|` `^` `v` `<` `>` and spaces
|
|
15
|
+
- NO Unicode box-drawing characters
|
|
16
|
+
- Spaces only (NO tabs)
|
|
17
|
+
3. **TEST** alignment by verifying box corners align vertically
|
|
18
|
+
|
|
19
|
+
**See `common/ascii-diagram-standards.md` for patterns and validation checklist.**
|
|
20
|
+
|
|
21
|
+
## Mermaid Diagram Validation
|
|
22
|
+
|
|
23
|
+
### Required Validation Steps
|
|
24
|
+
1. **Syntax Check**: Validate Mermaid syntax before file creation
|
|
25
|
+
2. **Character Escaping**: Ensure special characters are properly escaped
|
|
26
|
+
3. **Fallback Content**: Provide text alternative if Mermaid fails validation
|
|
27
|
+
|
|
28
|
+
### Mermaid Validation Rules
|
|
29
|
+
```markdown
|
|
30
|
+
## BEFORE creating any file with Mermaid diagrams:
|
|
31
|
+
|
|
32
|
+
1. Check for invalid characters in node IDs (use alphanumeric + underscore only)
|
|
33
|
+
2. Escape special characters in labels: " → \" and ' → \'
|
|
34
|
+
3. Validate flowchart syntax: node connections must be valid
|
|
35
|
+
4. Test diagram parsing with simple validation
|
|
36
|
+
|
|
37
|
+
## FALLBACK: If Mermaid validation fails, use text-based workflow representation
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Implementation Pattern
|
|
41
|
+
```markdown
|
|
42
|
+
## Workflow Visualization
|
|
43
|
+
|
|
44
|
+
### Mermaid Diagram (if syntax valid)
|
|
45
|
+
```mermaid
|
|
46
|
+
[validated diagram content]
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Text Alternative (always include)
|
|
50
|
+
```
|
|
51
|
+
Phase 1: INCEPTION
|
|
52
|
+
- Stage 1: Workspace Detection (COMPLETED)
|
|
53
|
+
- Stage 2: Requirements Analysis (COMPLETED)
|
|
54
|
+
[continue with text representation]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Markdown Formatting Standards
|
|
58
|
+
|
|
59
|
+
**MANDATORY**: Load and follow `common/markdown-formatting.md` for the complete markdownlint rule set and project-specific overrides. That file is the authoritative reference for all markdown formatting requirements.
|
|
60
|
+
|
|
61
|
+
## General Content Validation
|
|
62
|
+
|
|
63
|
+
### Pre-Creation Validation Checklist
|
|
64
|
+
- [ ] Validate embedded code blocks (Mermaid, JSON, YAML)
|
|
65
|
+
- [ ] Check special character escaping
|
|
66
|
+
- [ ] Verify markdown syntax correctness
|
|
67
|
+
- [ ] Test content parsing compatibility
|
|
68
|
+
- [ ] Include fallback content for complex elements
|
|
69
|
+
|
|
70
|
+
### Error Prevention Rules
|
|
71
|
+
1. **Always validate before using tools/commands to write files**: Never write unvalidated content
|
|
72
|
+
2. **Escape special characters**: Particularly in diagrams and code blocks
|
|
73
|
+
3. **Provide alternatives**: Include text versions of visual content
|
|
74
|
+
4. **Test syntax**: Validate complex content structures
|
|
75
|
+
|
|
76
|
+
## Validation Failure Handling
|
|
77
|
+
|
|
78
|
+
### When Validation Fails
|
|
79
|
+
1. **Log the error**: Record what failed validation
|
|
80
|
+
2. **Use fallback content**: Switch to text-based alternative
|
|
81
|
+
3. **Continue workflow**: Don't block on content validation failures
|
|
82
|
+
4. **Inform user**: Mention simplified content was used due to parsing constraints
|
|
83
|
+
|
|
84
|
+
## Artifact Consistency Validation
|
|
85
|
+
|
|
86
|
+
### MANDATORY: Post-Generation Consistency Check
|
|
87
|
+
|
|
88
|
+
**CRITICAL**: After ANY agent generates inception or design artifacts, the orchestrator MUST validate the generated content against the requirements before presenting to the user.
|
|
89
|
+
|
|
90
|
+
### Decision Registry
|
|
91
|
+
|
|
92
|
+
For complex workflows (depth >= MEDIUM or 3+ units), create a `decisions.md` file in the inception directory listing all structural decisions as key-value pairs. Include this file's content in every agent delegation prompt during the workflow.
|
|
93
|
+
|
|
94
|
+
Required decision categories:
|
|
95
|
+
|
|
96
|
+
- **Folder structure**: Where artifacts live on disk (exact paths)
|
|
97
|
+
- **Naming conventions**: ID formats, prefix patterns, slug functions
|
|
98
|
+
- **Lifecycle states**: State machine transitions (exact state names)
|
|
99
|
+
- **Type definitions**: TypeScript types (Record vs Array, union members)
|
|
100
|
+
- **Alignment model**: Thresholds, blocking vs advisory behavior
|
|
101
|
+
- **Source of truth**: Which system owns which data
|
|
102
|
+
|
|
103
|
+
### Post-Generation Validation Steps
|
|
104
|
+
|
|
105
|
+
After an agent returns generated content:
|
|
106
|
+
|
|
107
|
+
1. **Path validation**: Grep generated content for folder paths — verify they match the decision registry
|
|
108
|
+
2. **Naming validation**: Grep for ID patterns — verify they use the agreed format (case, prefix, separator)
|
|
109
|
+
3. **State validation**: Grep for lifecycle state names — verify they match the agreed state machine
|
|
110
|
+
4. **Type validation**: Grep for type descriptions — verify Record vs Array, union members match requirements
|
|
111
|
+
5. **Cross-reference**: Compare key terms in generated content against the requirements.md FR/BR/NFR list
|
|
112
|
+
|
|
113
|
+
### Agent Prompt Requirements
|
|
114
|
+
|
|
115
|
+
When delegating artifact generation to any agent, the prompt MUST include:
|
|
116
|
+
|
|
117
|
+
1. A "Decision Constraints" section quoting verbatim from BRs/FRs for:
|
|
118
|
+
- Folder structure (exact paths)
|
|
119
|
+
- Naming conventions (exact format with examples)
|
|
120
|
+
- Lifecycle states (exact state names)
|
|
121
|
+
- Type definitions (exact TypeScript types)
|
|
122
|
+
2. The `decisions.md` file content (if it exists) as a reference block
|
|
123
|
+
3. An explicit instruction: "Do NOT deviate from these constraints. If uncertain, use the exact text from the constraints."
|
|
124
|
+
|
|
125
|
+
### Validation Failure Handling
|
|
126
|
+
|
|
127
|
+
If post-generation validation finds inconsistencies:
|
|
128
|
+
|
|
129
|
+
1. Fix the inconsistencies before presenting to the user
|
|
130
|
+
2. Log the violations found in audit.md
|
|
131
|
+
3. If the agent consistently produces wrong content, escalate the prompt with more explicit constraints
|