@williambeto/ai-workflow 2.3.0 → 2.3.2

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 (55) hide show
  1. package/AGENTS.md +27 -0
  2. package/CHANGELOG.md +30 -0
  3. package/README.md +14 -10
  4. package/dist-assets/agents/astra.md +74 -45
  5. package/dist-assets/agents/atlas.md +110 -152
  6. package/dist-assets/agents/nexus.md +64 -19
  7. package/dist-assets/agents/orion.md +72 -27
  8. package/dist-assets/agents/phoenix.md +64 -19
  9. package/dist-assets/agents/sage.md +67 -36
  10. package/dist-assets/commands/atlas.md +66 -6
  11. package/dist-assets/commands/audit.md +62 -4
  12. package/dist-assets/commands/deploy.md +66 -5
  13. package/dist-assets/commands/discover.md +72 -4
  14. package/dist-assets/commands/implement.md +66 -18
  15. package/dist-assets/commands/optimize-tokens.md +60 -4
  16. package/dist-assets/commands/plan.md +64 -4
  17. package/dist-assets/commands/release.md +76 -5
  18. package/dist-assets/commands/run.md +62 -16
  19. package/dist-assets/commands/spec-create.md +66 -4
  20. package/dist-assets/commands/spec-implement.md +68 -4
  21. package/dist-assets/commands/spec-review.md +63 -4
  22. package/dist-assets/commands/update-memory.md +62 -4
  23. package/dist-assets/commands/validate.md +70 -6
  24. package/dist-assets/skills/architecture/SKILL.md +62 -7
  25. package/dist-assets/skills/backend-development/SKILL.md +62 -7
  26. package/dist-assets/skills/deployment/SKILL.md +62 -7
  27. package/dist-assets/skills/design-principles/SKILL.md +59 -7
  28. package/dist-assets/skills/documentation/SKILL.md +61 -7
  29. package/dist-assets/skills/frontend-development/SKILL.md +62 -7
  30. package/dist-assets/skills/full-stack-development/SKILL.md +62 -7
  31. package/dist-assets/skills/optimize-tokens/SKILL.md +61 -7
  32. package/dist-assets/skills/pr-workflow/SKILL.md +65 -7
  33. package/dist-assets/skills/product-discovery/SKILL.md +81 -7
  34. package/dist-assets/skills/product-planning/SKILL.md +62 -7
  35. package/dist-assets/skills/project-memory/SKILL.md +55 -22
  36. package/dist-assets/skills/prompt-engineer/SKILL.md +59 -7
  37. package/dist-assets/skills/qa-workflow/SKILL.md +72 -7
  38. package/dist-assets/skills/refactoring/SKILL.md +68 -7
  39. package/dist-assets/skills/release-workflow/SKILL.md +72 -7
  40. package/dist-assets/skills/spec-driven-development/SKILL.md +75 -7
  41. package/dist-assets/skills/technical-leadership/SKILL.md +61 -7
  42. package/dist-assets/skills/ui-ux-design/SKILL.md +60 -7
  43. package/docs/compatibility/provider-usage.md +46 -0
  44. package/docs/compatibility/runtime-matrix.md +31 -0
  45. package/docs/getting-started/DESKTOP_PROMPT.md +52 -0
  46. package/docs/getting-started/quickstart.md +17 -0
  47. package/docs/getting-started/upgrading-to-v2.md +62 -0
  48. package/package.json +10 -3
  49. package/src/commands/execute.js +10 -1
  50. package/src/core/delegation-controller.js +72 -13
  51. package/src/core/execution-planner.js +2 -3
  52. package/src/core/request-classifier.js +15 -5
  53. package/src/core/request-router.js +289 -0
  54. package/src/core/runtime/opencode-adapter.js +38 -5
  55. package/docs/releases/v2.3.0-release-decision.md +0 -35
@@ -1,28 +1,76 @@
1
1
  ---
2
- description: Implement a scoped change using a proportionate workflow and observed validation.
3
- agent: atlas
2
+ name: implement
3
+ description: Implement scoped changes incrementally and verify them
4
4
  ---
5
5
 
6
- # Implement
6
+ # Implement Command PromptContract
7
7
 
8
- ## Task
8
+ ## Role
9
+ Guides Astra in making scoped source code implementation changes.
9
10
 
10
- Implement the requested scoped change.
11
+ ## Objective
12
+ Implement a small task with defined scope, verifying changes incrementally.
11
13
 
12
- ## Required behavior
14
+ ## Trusted context
15
+ - Codebase source files
16
+ - Requirements specifications
17
+ - Current git diff status
13
18
 
14
- 1. Verify branch and dirty state before editing.
15
- 2. Never write on `main` or `master`; create a scoped branch when safe, otherwise stop `BLOCKED`.
16
- 3. Select quick, standard, or full proportionately.
17
- 4. Delegate only when specialization or independent review materially helps.
18
- 5. Apply the minimum diff and preserve unrelated behavior.
19
- 6. For new or changed executable behavior, add and run a proportional automated behavioral test; build/manual checks do not replace it.
20
- 7. After the final implementation changes, run `npx ai-workflow collect-evidence --mode=<quick|standard> --task=<short-task-slug>`.
21
- 8. Treat the finalizer exit code and public status as authoritative; never report success when it returns `BLOCKED` or fails.
22
- 9. Use bounded remediation for recoverable findings.
19
+ ## User input / arguments
20
+ - Implementation task spec or requirements document
23
21
 
24
- ## Output
22
+ ## Preconditions
23
+ - Clean branch state (branch gate validation passed)
25
24
 
26
- Return status, branch, changes, validation commands/results, and known limitations. Do not create workflow artefacts solely to satisfy this command.
25
+ ## Constraints
26
+ - Do not write directly to main/master branches.
27
+ - Do not exceed the scope defined in the task spec.
28
+ - Do not claim implementation without validation evidence.
29
+ - Treat the finalizer exit code and public status as authoritative.
27
30
 
28
- Policies: `01-BRANCH_GATE.md`, `03-QUALITY_GATE.md`, `06-FINAL_EVIDENCE_CONTRACT.md`, `PROCEDURE_UI_CHECKLIST.md`.
31
+ ## Allowed tools
32
+ - read files
33
+ - edit source files
34
+ - execute validation commands
35
+ - generate diffs
36
+
37
+ ## Forbidden actions
38
+ - force pushing to remote
39
+ - committing directly to main/master branch
40
+ - bypassing quality gates
41
+
42
+ ## Workflow steps
43
+ 1. Read requirements specification.
44
+ 2. Implement code changes incrementally.
45
+ 3. Run a proportional automated behavioral test to verify the changes.
46
+ 4. Run the finalizer command: `npx ai-workflow collect-evidence --mode=<quick|standard> --task=<short-task-slug>`
47
+ 5. Capture git diff and test logs.
48
+ 6. Create implementation handoff report.
49
+
50
+ ## Safety gates
51
+ - Enforce branch gate safety.
52
+ - Verify changes do not conflict with existing behaviors.
53
+
54
+ ## Validation requirements
55
+ - Code must pass linter checks and all relevant tests.
56
+
57
+ ## Expected output schema
58
+ Output must include:
59
+ - Changed files list
60
+ - Code diff summary
61
+ - Validation logs
62
+ - Hand-off notes
63
+ - Decision: COMPLETED | FAILED
64
+
65
+ ## Evidence required
66
+ - git diff output
67
+ - test log results
68
+ - linter output
69
+
70
+ ## Failure behavior
71
+ - Log implementation failure to ledger and exit.
72
+
73
+ ## Stop conditions
74
+ - compilation error
75
+ - test validation fails
76
+ - change exceeds defined scope
@@ -1,10 +1,66 @@
1
1
  ---
2
2
  name: optimize-tokens
3
- description: Reduce workflow context without weakening safety.
3
+ description: Optimize context window size by analyzing and cleaning up logs and cache
4
4
  ---
5
5
 
6
- # /optimize-tokens
6
+ # Optimize Tokens Command PromptContract
7
7
 
8
- Remove duplicated prose and unnecessary artefacts. Preserve branch safety, required validation, bounded remediation, and truthful reporting.
8
+ ## Role
9
+ Optimizes context size by removing redundant temporary files.
9
10
 
10
- Core rules: never write on protected branches, never skip relevant validation, never report false success.
11
+ ## Objective
12
+ Analyze token usage and suggest/apply context file compactions.
13
+
14
+ ## Trusted context
15
+ - Codebase files
16
+ - Log history files
17
+ - Token estimation stats
18
+
19
+ ## User input / arguments
20
+ - Target directories for analysis
21
+
22
+ ## Preconditions
23
+ - Read access to codebase files
24
+
25
+ ## Constraints
26
+ - Do not delete critical history or validation evidence files.
27
+ - Do not claim optimization without size reduction evidence.
28
+
29
+ ## Allowed tools
30
+ - read files
31
+ - analyze token usage
32
+ - remove caches and temporary files
33
+
34
+ ## Forbidden actions
35
+ - deleting active source code files
36
+ - overwriting configuration files
37
+
38
+ ## Workflow steps
39
+ 1. Scan workspace for redundant caches, logs, and temp files.
40
+ 2. Measure current context token usage.
41
+ 3. Suggest or apply compaction of large files.
42
+ 4. Output context optimization report.
43
+
44
+ ## Safety gates
45
+ - Enforce safety rules protecting source code and git history.
46
+
47
+ ## Validation requirements
48
+ - Verify remaining file structures are intact after cleanup.
49
+
50
+ ## Expected output schema
51
+ Output must include:
52
+ - Directories cleaned
53
+ - Token count before and after
54
+ - Cache files removed
55
+ - Decision: COMPLETED | FAILED
56
+
57
+ ## Evidence required
58
+ - token measurement output
59
+ - file size comparisons
60
+
61
+ ## Failure behavior
62
+ - Log failed optimization status and exit.
63
+
64
+ ## Stop conditions
65
+ - deletion of critical active source code attempted
66
+ - clean command fails
@@ -1,10 +1,70 @@
1
1
  ---
2
2
  name: plan
3
- description: Create a proportionate implementation plan.
3
+ description: Plan a software change, defining steps, risks, and validation
4
4
  ---
5
5
 
6
- # /plan
6
+ # Plan Command PromptContract
7
7
 
8
- Define scope, risks, steps, validation, and stop conditions. Use a mini plan for small work and formal planning only when risk justifies it.
8
+ ## Role
9
+ Coordinates technical planning and PR sequencing under Orion.
9
10
 
10
- Core rules: never write on protected branches, never skip relevant validation, never report false success.
11
+ ## Objective
12
+ Convert requirements into an implementation plan defining steps, risks, and validation.
13
+
14
+ ## Trusted context
15
+ - Codebase source files
16
+ - Requirements specification
17
+ - Project memory and ADRs
18
+
19
+ ## User input / arguments
20
+ - Natural-language feature request or requirement document
21
+
22
+ ## Preconditions
23
+ - Read access to codebase files
24
+
25
+ ## Constraints
26
+ - Plans must identify all risk areas.
27
+ - Plans must define explicit validation steps.
28
+ - Do not claim planning execution without technical plan evidence.
29
+
30
+ ## Allowed tools
31
+ - read files
32
+ - inspect dependency logs
33
+ - write plan files
34
+
35
+ ## Forbidden actions
36
+ - direct source code edits
37
+ - force committing files
38
+
39
+ ## Workflow steps
40
+ 1. Review requirements specification.
41
+ 2. Map dependencies and codebase locations.
42
+ 3. Outline implementation steps.
43
+ 4. Assess technical risks and mitigations.
44
+ 5. Define testing and validation requirements.
45
+
46
+ ## Safety gates
47
+ - Enforce strict read-only execution during planning.
48
+
49
+ ## Validation requirements
50
+ - Technical plan must comply with the plan schema.
51
+
52
+ ## Expected output schema
53
+ Output must include:
54
+ - Requirements mapping
55
+ - Architectural changes
56
+ - Step-by-step implementation tasks
57
+ - Risk assessment
58
+ - Test and validation plan
59
+ - Decision: PASS | BLOCKED
60
+
61
+ ## Evidence required
62
+ - technical plan file created
63
+ - schema validation status
64
+
65
+ ## Failure behavior
66
+ - Log planning failure to ledger and exit.
67
+
68
+ ## Stop conditions
69
+ - scope is ambiguous
70
+ - required input missing
@@ -1,12 +1,83 @@
1
1
  ---
2
2
  name: release
3
- description: Prepare release readiness without publishing automatically.
3
+ description: Prepare local repository for next release with validations and evidence
4
4
  ---
5
5
 
6
- # /release
6
+ # Release Command PromptContract
7
7
 
8
- Require clean branch state, successful required validation, safe package checks, changelog/version consistency, and explicit approval before tag, publish, or release.
8
+ ## Role
9
+ Prepares the local repository for release, verifies package, and documents evidence.
9
10
 
10
- Core rules: never write on protected branches, never skip relevant validation, never report false success.
11
+ ## Objective
12
+ Coordinate the release process, verifying package status and generating release evidence.
11
13
 
12
- Policies: `01-BRANCH_GATE.md`, `06-FINAL_EVIDENCE_CONTRACT.md`, `07-RELEASE_GATE.md`.
14
+ ## Trusted context
15
+ - Package metadata
16
+ - CHANGELOG.md
17
+ - Repository git log
18
+ - Staging environment status
19
+
20
+ ## User input / arguments
21
+ - Target version release parameters
22
+ - Release details description
23
+
24
+ ## Preconditions
25
+ - Clean working tree
26
+ - Main/master branch is targeted
27
+
28
+ ## Constraints
29
+ - Explicit human user authorization is required.
30
+ - Do not push to remote, publish to npm, or create git tags without user approval.
31
+ - Do not claim release readiness without release evidence document.
32
+
33
+ ## Allowed tools
34
+ - read version configuration
35
+ - update changelog
36
+ - generate tarball and calculate sha256 checksum
37
+ - run release validations
38
+
39
+ ## Forbidden actions
40
+ - npm publish without explicit user approval
41
+ - git push without explicit user approval
42
+ - git tag without explicit user approval
43
+ - gh release create without explicit user approval
44
+
45
+ ## Workflow steps
46
+ 1. Perform version check against registry/repository state.
47
+ 2. Verify working tree is completely clean.
48
+ 3. Run release verification checks.
49
+ 4. Record generated tarball name and calculate its SHA-256 hash.
50
+ 5. Update package version and CHANGELOG.md.
51
+ 6. Document release evidence.
52
+
53
+ ## Safety gates
54
+ - Enforce release gate validation rules.
55
+ - Verify branch rules.
56
+
57
+ ## Validation requirements
58
+ - Package must pass release readiness validation.
59
+
60
+ ## Expected output schema
61
+ Output must include:
62
+ - Release version target
63
+ - Commit hash
64
+ - Clean working tree status
65
+ - Tarball filename
66
+ - Tarball SHA-256
67
+ - npm publish status
68
+ - git tag status
69
+ - remote push status
70
+ - Decision: publish-ready pending approval | BLOCKED
71
+
72
+ ## Evidence required
73
+ - changelog updates diff
74
+ - release verification logs
75
+ - tarball checksum
76
+
77
+ ## Failure behavior
78
+ - Block release preparation, log failure to ledger, and exit with status 1.
79
+
80
+ ## Stop conditions
81
+ - working tree is dirty
82
+ - validation checks fail
83
+ - user denies approval
@@ -1,26 +1,72 @@
1
1
  ---
2
- description: Run the safest proportionate workflow for an approved task.
3
- agent: atlas
2
+ name: run
3
+ description: Execute the master AI Workflow pipeline and coordinate agents
4
4
  ---
5
5
 
6
- # Run
6
+ # Run Command PromptContract
7
7
 
8
- ## Task
8
+ ## Role
9
+ Coordinates the main orchestration pipeline for AI Workflow Kit.
9
10
 
10
- Route and execute the approved task using the lowest safe workflow mode.
11
+ ## Objective
12
+ Coordinate the execution of the workflow pipeline, executing branch validation, specifications, implementation, validation, and healing.
11
13
 
12
- ## Required behavior
14
+ ## Trusted context
15
+ - Project configurations (opencode.jsonc)
16
+ - Ledgers and evidence logs
17
+ - Current git status
13
18
 
14
- - enforce protected-branch safety before writes;
15
- - use project context and the closest domain profile;
16
- - delegate proportionately, not ceremonially;
17
- - run relevant validation from the project;
18
- - block false success when validation fails or is unavailable;
19
- - use bounded remediation and stop on no progress;
20
- - persist evidence only for full, release, audit, security, or explicitly requested work.
19
+ ## User input / arguments
20
+ - Natural-language request
21
21
 
22
- ## Output
22
+ ## Preconditions
23
+ - System initialized
24
+ - Active branch status verified
23
25
 
24
- Return a concise delivery summary: status, branch, changed areas, observed validation, limitations, and next action when needed.
26
+ ## Constraints
27
+ - Do not run pipeline on main branch if it modifies codebase.
28
+ - Enforce strict state transitions.
29
+ - Do not claim execution without ledger evidence.
25
30
 
26
- Policies: `01-BRANCH_GATE.md`, `03-QUALITY_GATE.md`, `05-AGENT_CONTRACT.md`, `06-FINAL_EVIDENCE_CONTRACT.md`.
31
+ ## Allowed tools
32
+ - execute subprocess commands
33
+ - run validation suite
34
+ - coordinate subagent delegation
35
+
36
+ ## Forbidden actions
37
+ - force pushing to remote
38
+ - editing files in read-only mode
39
+
40
+ ## Workflow steps
41
+ 1. Validate branch rules and check workspace status.
42
+ 2. Route natural request to resolved agent.
43
+ 3. Plan and write technical specifications.
44
+ 4. Implement modifications incrementally.
45
+ 5. Run validations and compile evidence report.
46
+ 6. Trigger remediation loop if validation fails.
47
+
48
+ ## Safety gates
49
+ - Enforce branch gate and quality gate check steps.
50
+
51
+ ## Validation requirements
52
+ - Execute all package validators.
53
+
54
+ ## Expected output schema
55
+ Output must include:
56
+ - Request summary
57
+ - Executed steps checklist
58
+ - Test and validation exit codes
59
+ - Findings report
60
+ - Decision: COMPLETED | FAILED | BLOCKED
61
+
62
+ ## Evidence required
63
+ - validation reports
64
+ - git logs
65
+ - execution transcripts
66
+
67
+ ## Failure behavior
68
+ - Log failure to ledger, roll back to last safe state if needed, and exit.
69
+
70
+ ## Stop conditions
71
+ - quality gate check fails and healing fails
72
+ - branch gate violation detected
@@ -1,10 +1,72 @@
1
1
  ---
2
2
  name: spec-create
3
- description: Create a specification proportionate to scope.
3
+ description: Create technical and functional specifications before implementation
4
4
  ---
5
5
 
6
- # /spec-create
6
+ # Spec Create Command PromptContract
7
7
 
8
- Capture objective, scope, constraints, acceptance criteria, risks, and validation. Avoid ceremony for small work.
8
+ ## Role
9
+ Coordinates specification creation under Nexus.
9
10
 
10
- Core rules: never write on protected branches, never skip relevant validation, never report false success.
11
+ ## Objective
12
+ Convert customer requirements into detailed functional and technical specifications.
13
+
14
+ ## Trusted context
15
+ - Requirements specification
16
+ - Project memory and ADRs
17
+ - Stack limitations
18
+
19
+ ## User input / arguments
20
+ - Requirement document path
21
+ - Spec template parameters
22
+
23
+ ## Preconditions
24
+ - Read access to requirements files
25
+
26
+ ## Constraints
27
+ - Specifications must define clear test plans.
28
+ - Do not modify codebase during specification creation.
29
+ - Do not claim spec creation without spec file evidence.
30
+
31
+ ## Allowed tools
32
+ - read files
33
+ - write spec markdown files
34
+ - check schema compliance
35
+
36
+ ## Forbidden actions
37
+ - editing source code files
38
+ - bypassing design principles
39
+
40
+ ## Workflow steps
41
+ 1. Parse requirement document.
42
+ 2. Outline problem statement and scope.
43
+ 3. List non-goals.
44
+ 4. Detail functional and technical requirements.
45
+ 5. Create test and validation plan.
46
+ 6. Write spec file.
47
+
48
+ ## Safety gates
49
+ - Enforce read-only constraint during spec creation.
50
+
51
+ ## Validation requirements
52
+ - Verify spec matches specification schemas.
53
+
54
+ ## Expected output schema
55
+ Output must include:
56
+ - Spec path created
57
+ - Problem statement
58
+ - Scope and non-goals
59
+ - Requirements detailed
60
+ - Test plan
61
+ - Decision: PASS | BLOCKED
62
+
63
+ ## Evidence required
64
+ - created spec file contents
65
+ - schema validation status
66
+
67
+ ## Failure behavior
68
+ - Report specification failure and exit.
69
+
70
+ ## Stop conditions
71
+ - requirements are contradictory
72
+ - scope is undefined
@@ -1,10 +1,74 @@
1
1
  ---
2
2
  name: spec-implement
3
- description: Implement an approved specification safely.
3
+ description: Implement approved specifications incrementally
4
4
  ---
5
5
 
6
- # /spec-implement
6
+ # Spec Implement Command PromptContract
7
7
 
8
- Enforce branch safety, implement incrementally, run relevant validation, remediate bounded findings, and return concise evidence.
8
+ ## Role
9
+ Guides Astra in implementing approved technical specifications.
9
10
 
10
- Core rules: never write on protected branches, never skip relevant validation, never report false success.
11
+ ## Objective
12
+ Implement code changes that satisfy the criteria defined in the specification.
13
+
14
+ ## Trusted context
15
+ - Approved specification file
16
+ - Source code files
17
+ - Test configurations
18
+
19
+ ## User input / arguments
20
+ - Specification path
21
+
22
+ ## Preconditions
23
+ - Branch safety gate passed
24
+ - Spec approval verified
25
+
26
+ ## Constraints
27
+ - Modifications must strictly follow spec guidelines.
28
+ - Do not implement out-of-scope code.
29
+ - Do not claim implementation without validation evidence.
30
+
31
+ ## Allowed tools
32
+ - read files
33
+ - edit source files
34
+ - run tests
35
+ - check git diff
36
+
37
+ ## Forbidden actions
38
+ - modifying files outside spec scope
39
+ - bypassing quality checks
40
+ - committing to main/master branch
41
+
42
+ ## Workflow steps
43
+ 1. Parse technical specification and implementation steps.
44
+ 2. Modify codebase source files incrementally.
45
+ 3. Run local unit and integration tests.
46
+ 4. Verify changes meet acceptance criteria.
47
+ 5. Create implementation report.
48
+
49
+ ## Safety gates
50
+ - Enforce branch gate safety.
51
+ - Verify changes do not introduce regressions.
52
+
53
+ ## Validation requirements
54
+ - Code must pass linter and test suite.
55
+
56
+ ## Expected output schema
57
+ Output must include:
58
+ - Spec path processed
59
+ - Modified files list
60
+ - Code diff summary
61
+ - Local test execution logs
62
+ - Decision: COMPLETED | FAILED
63
+
64
+ ## Evidence required
65
+ - git diff
66
+ - test execution logs and exit codes
67
+
68
+ ## Failure behavior
69
+ - Log implementation failure to ledger, clean working tree, and exit.
70
+
71
+ ## Stop conditions
72
+ - test suite fails
73
+ - compilation error
74
+ - spec instructions are contradictory
@@ -1,10 +1,69 @@
1
1
  ---
2
2
  name: spec-review
3
- description: Review specification readiness.
3
+ description: Review specifications for scope, risks, gaps, and criteria compliance
4
4
  ---
5
5
 
6
- # /spec-review
6
+ # Spec Review Command PromptContract
7
7
 
8
- Find ambiguity, missing acceptance criteria, unsafe assumptions, scope creep, and validation gaps. Do not rewrite the spec unless requested.
8
+ ## Role
9
+ Coordinates specification auditing and review under Nexus.
9
10
 
10
- Core rules: never write on protected branches, never skip relevant validation, never report false success.
11
+ ## Objective
12
+ Verify that specifications meet structural quality criteria and cover all requirements.
13
+
14
+ ## Trusted context
15
+ - Codebase source files
16
+ - Specification file under review
17
+ - Requirements document
18
+
19
+ ## User input / arguments
20
+ - Specification path
21
+ - Requirements path
22
+
23
+ ## Preconditions
24
+ - Spec file exists and is readable
25
+
26
+ ## Constraints
27
+ - Do not modify specifications or code during review.
28
+ - Do not claim review execution without review report evidence.
29
+
30
+ ## Allowed tools
31
+ - read files
32
+ - check schema compliance
33
+ - write review report
34
+
35
+ ## Forbidden actions
36
+ - editing source files
37
+ - bypass safety validations
38
+
39
+ ## Workflow steps
40
+ 1. Parse requirement document and spec file.
41
+ 2. Check that the spec covers all requirements.
42
+ 3. Verify the spec functional details and test plan.
43
+ 4. Assess technical risks and completeness.
44
+ 5. Create specification review report.
45
+
46
+ ## Safety gates
47
+ - Enforce strict read-only execution.
48
+
49
+ ## Validation requirements
50
+ - Verify spec matches structural specifications schema.
51
+
52
+ ## Expected output schema
53
+ Output must include:
54
+ - Specification reviewed path
55
+ - Requirements coverage checklist
56
+ - Risk assessment findings
57
+ - Quality gaps list
58
+ - Decision: APPROVED | REJECTED
59
+
60
+ ## Evidence required
61
+ - review report file created
62
+ - schema checks status
63
+
64
+ ## Failure behavior
65
+ - Log failed review status to ledger and exit.
66
+
67
+ ## Stop conditions
68
+ - spec file is unreadable
69
+ - required input missing