olympus-ai 4.4.19 → 4.4.21
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 +2 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/features/workflow-engine/engine.d.ts +13 -0
- package/dist/features/workflow-engine/engine.d.ts.map +1 -1
- package/dist/features/workflow-engine/engine.js +62 -19
- package/dist/features/workflow-engine/engine.js.map +1 -1
- package/dist/features/workflow-engine/index.d.ts +1 -1
- package/dist/features/workflow-engine/index.d.ts.map +1 -1
- package/dist/features/workflow-engine/index.js +1 -1
- package/dist/features/workflow-engine/index.js.map +1 -1
- package/dist/hooks/olympus-hooks.cjs +231 -231
- package/dist/hooks/registrations/user-prompt-submit.d.ts.map +1 -1
- package/dist/hooks/registrations/user-prompt-submit.js +2 -13
- package/dist/hooks/registrations/user-prompt-submit.js.map +1 -1
- package/dist/installer/index.d.ts +1 -1
- package/dist/installer/index.js +1 -1
- package/package.json +1 -1
- package/resources/rules/common/content-validation.md +49 -0
- package/resources/rules/inception/application-design.md +12 -0
- package/resources/rules/inception/user-stories.md +12 -0
- package/resources/skills/plan/SKILL.md +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-prompt-submit.d.ts","sourceRoot":"","sources":["../../../src/hooks/registrations/user-prompt-submit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0CH,wBAAgB,6BAA6B,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"user-prompt-submit.d.ts","sourceRoot":"","sources":["../../../src/hooks/registrations/user-prompt-submit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA0CH,wBAAgB,6BAA6B,IAAI,IAAI,CAgUpD"}
|
|
@@ -11,7 +11,7 @@ import { activateUltrawork } from '../ultrawork-state/index.js';
|
|
|
11
11
|
import { ULTRAWORK_MESSAGE, ULTRATHINK_MESSAGE, SEARCH_MESSAGE, ANALYZE_MESSAGE } from '../../installer/hooks.js';
|
|
12
12
|
import { handleRevisionDetection } from '../../learning/hooks/revision-detector.js';
|
|
13
13
|
import { handleSuccessDetection } from '../../learning/hooks/success-detector.js';
|
|
14
|
-
import { WorkflowEngine } from '../../features/workflow-engine/engine.js';
|
|
14
|
+
import { WorkflowEngine, deriveWorkflowSlug } from '../../features/workflow-engine/engine.js';
|
|
15
15
|
import { loadCheckpoint, listWorkflows } from '../../features/workflow-engine/checkpoint.js';
|
|
16
16
|
import { buildStructuredWorkflowPrompt, buildWorkflowResumptionPrompt } from '../../features/workflow-engine/hooks.js';
|
|
17
17
|
/**
|
|
@@ -84,18 +84,7 @@ export function registerUserPromptSubmitHooks() {
|
|
|
84
84
|
const engine = new WorkflowEngine(ctx.directory, featureName);
|
|
85
85
|
// Start the workflow (creates checkpoint and initializes)
|
|
86
86
|
await engine.start(featureName);
|
|
87
|
-
|
|
88
|
-
const workflowId = featureName
|
|
89
|
-
.toLowerCase()
|
|
90
|
-
.replace(/\.[a-z]{1,4}$/, '')
|
|
91
|
-
.replace(/[_\s]+/g, '-')
|
|
92
|
-
.replace(/[^a-z0-9-]/g, '')
|
|
93
|
-
.replace(/-+/g, '-')
|
|
94
|
-
.replace(/^-|-$/g, '');
|
|
95
|
-
if (workflowId === 'completed') {
|
|
96
|
-
console.warn('[user-prompt-submit] "completed" is a reserved workflow directory name');
|
|
97
|
-
return { continue: true };
|
|
98
|
-
}
|
|
87
|
+
const workflowId = deriveWorkflowSlug(featureName);
|
|
99
88
|
const checkpoint = await loadCheckpoint(ctx.directory, workflowId);
|
|
100
89
|
if (!checkpoint) {
|
|
101
90
|
return { continue: true };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-prompt-submit.js","sourceRoot":"","sources":["../../../src/hooks/registrations/user-prompt-submit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,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AAS;qBACzB,CAAC,CAAC;gBACL,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBACf,+CAA+C;oBAC/C,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC;gBAC7C,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAC5B,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -24,7 +24,7 @@ export declare const HOOKS_DIR: string;
|
|
|
24
24
|
export declare const SETTINGS_FILE: string;
|
|
25
25
|
export declare const VERSION_FILE: string;
|
|
26
26
|
/** Current version - MUST match package.json */
|
|
27
|
-
export declare const VERSION = "4.4.
|
|
27
|
+
export declare const VERSION = "4.4.21";
|
|
28
28
|
/** Installation result */
|
|
29
29
|
export interface InstallResult {
|
|
30
30
|
success: boolean;
|
package/dist/installer/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export const HOOKS_DIR = join(CLAUDE_CONFIG_DIR, 'hooks');
|
|
|
40
40
|
export const SETTINGS_FILE = join(CLAUDE_CONFIG_DIR, 'settings.json');
|
|
41
41
|
export const VERSION_FILE = join(CLAUDE_CONFIG_DIR, '.olympus-version.json');
|
|
42
42
|
/** Current version - MUST match package.json */
|
|
43
|
-
export const VERSION = '4.4.
|
|
43
|
+
export const VERSION = '4.4.21';
|
|
44
44
|
/**
|
|
45
45
|
* Read a content file from the resources/ directory.
|
|
46
46
|
*
|
package/package.json
CHANGED
|
@@ -80,3 +80,52 @@ Phase 1: INCEPTION
|
|
|
80
80
|
2. **Use fallback content**: Switch to text-based alternative
|
|
81
81
|
3. **Continue workflow**: Don't block on content validation failures
|
|
82
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
|
|
@@ -137,6 +137,18 @@ If the analysis in Step 5 reveals ANY ambiguous answers, you MUST:
|
|
|
137
137
|
- Communication patterns between components
|
|
138
138
|
- Data flow diagrams
|
|
139
139
|
|
|
140
|
+
### MANDATORY: Post-Generation Consistency Validation
|
|
141
|
+
|
|
142
|
+
After the agent generates application design artifacts (components.md, services.md, dependencies.md), the orchestrator MUST validate before presenting to the user:
|
|
143
|
+
|
|
144
|
+
1. **Load decision registry**: Read `aidlc-docs/{workflow-id}/inception/decisions.md` if it exists
|
|
145
|
+
2. **Verify folder paths**: Grep generated artifacts for file path references. All paths must match the decisions in requirements.md BRs (e.g., bolt folder structure, code plan locations)
|
|
146
|
+
3. **Verify naming conventions**: Grep for ID formats. All IDs must match the agreed naming convention (e.g., BOLT-NNN-slug, UNIT-NNN-slug)
|
|
147
|
+
4. **Verify lifecycle states**: Grep for state names. All states must match the agreed state machine in requirements.md BRs
|
|
148
|
+
5. **Verify type definitions**: Check Record vs Array, union member lists against requirements.md FRs
|
|
149
|
+
6. **Fix any violations** before presenting for user review
|
|
150
|
+
7. **Log validation results** in audit.md
|
|
151
|
+
|
|
140
152
|
### 12. Log Approval
|
|
141
153
|
- Log approval prompt with timestamp in `aidlc-docs/audit.md`
|
|
142
154
|
- Include complete approval prompt text
|
|
@@ -286,6 +286,18 @@ After all answers are collected and ambiguities resolved, you MUST update the st
|
|
|
286
286
|
- Include the complete approval prompt text
|
|
287
287
|
- Use ISO 8601 timestamp format
|
|
288
288
|
|
|
289
|
+
### MANDATORY: Post-Generation Consistency Validation
|
|
290
|
+
|
|
291
|
+
After the agent generates stories.md and personas.md, the orchestrator MUST validate before presenting to the user:
|
|
292
|
+
|
|
293
|
+
1. **Load decision registry**: Read `aidlc-docs/{workflow-id}/inception/decisions.md` if it exists
|
|
294
|
+
2. **Verify acceptance criteria paths**: Grep stories for file path references. All paths must match decisions in requirements.md BRs
|
|
295
|
+
3. **Verify naming conventions**: Grep stories for ID formats (bolt IDs, unit IDs). All must match agreed conventions
|
|
296
|
+
4. **Verify state references**: Grep stories for lifecycle state names. All must match agreed state machine
|
|
297
|
+
5. **Cross-reference story count**: Verify persona count matches the approved plan
|
|
298
|
+
6. **Fix any violations** before presenting for user review
|
|
299
|
+
7. **Log validation results** in audit.md
|
|
300
|
+
|
|
289
301
|
## Step 21: Present Completion Message
|
|
290
302
|
- Present completion message in this structure:
|
|
291
303
|
1. **Completion Announcement** (mandatory): Always start with this:
|
|
@@ -84,11 +84,11 @@ Scan the `aidlc-docs/` directory for workflow subdirectories (skip the `complete
|
|
|
84
84
|
|
|
85
85
|
**Workflow name derivation** (for freshly initialized checkpoints):
|
|
86
86
|
1. The `/plan` argument can be: a file path (read the file), a description string (use directly), or a URL (fetch if possible). Users may provide a PRD, rough concept, spec, meeting notes, or just a sentence.
|
|
87
|
-
2.
|
|
88
|
-
3.
|
|
89
|
-
4.
|
|
90
|
-
5. If user provides a different name, slugify that
|
|
91
|
-
6. If
|
|
87
|
+
2. The hook already derives a short slug by stripping leading verbs, articles, and trailing prepositional phrases (e.g., "build an alert banner for global notifications" → `alert-banner`). Check the current `workflowId` in checkpoint.json — it is likely already a good short name.
|
|
88
|
+
3. If the derived name is acceptable, confirm it with the user: "Workflow name: `{workflowId}`. This will be used for the `aidlc-docs/{workflowId}/` directory and all artifact references. OK, or would you like a different name?"
|
|
89
|
+
4. If you believe a better name exists (e.g., the hook truncated meaningful words, or the CONTENT suggests a different core concept), suggest your alternative alongside the current name.
|
|
90
|
+
5. If user provides a different name, slugify that (lowercase, spaces/underscores→hyphens, strip non-alphanumeric, collapse hyphens, trim) and rename the directory + update checkpoint fields.
|
|
91
|
+
6. If your suggestion differs from the current workflowId on disk, rename the directory and update checkpoint fields only AFTER user approval.
|
|
92
92
|
|
|
93
93
|
### 1c. Validate feature description
|
|
94
94
|
|