specsmd 0.0.0-dev.7 → 0.0.0-dev.71

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 (78) hide show
  1. package/README.md +10 -2
  2. package/flows/aidlc/commands/construction-agent.md +5 -1
  3. package/flows/aidlc/commands/inception-agent.md +4 -0
  4. package/flows/aidlc/commands/master-agent.md +4 -0
  5. package/flows/aidlc/commands/operations-agent.md +4 -0
  6. package/flows/aidlc/memory-bank.yaml +2 -1
  7. package/{scripts → flows/aidlc/scripts}/artifact-validator.js +3 -3
  8. package/{scripts → flows/aidlc/scripts}/bolt-complete.js +35 -4
  9. package/{scripts → flows/aidlc/scripts}/status-integrity.js +4 -4
  10. package/flows/aidlc/skills/construction/bolt-list.md +1 -1
  11. package/flows/aidlc/skills/construction/bolt-start.md +2 -2
  12. package/flows/aidlc/skills/construction/bolt-status.md +1 -1
  13. package/flows/aidlc/skills/construction/prototype-apply.md +305 -0
  14. package/flows/aidlc/skills/inception/bolt-plan.md +15 -2
  15. package/flows/aidlc/skills/inception/vibe-to-spec.md +406 -0
  16. package/flows/aidlc/skills/master/analyze-context.md +1 -1
  17. package/flows/aidlc/templates/construction/bolt-template.md +22 -1
  18. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +73 -11
  19. package/flows/aidlc/templates/standards/decision-index-template.md +32 -0
  20. package/flows/fire/README.md +19 -0
  21. package/flows/fire/agents/builder/agent.md +252 -0
  22. package/flows/fire/agents/builder/skills/code-review/SKILL.md +254 -0
  23. package/flows/fire/agents/builder/skills/code-review/references/auto-fix-rules.md +212 -0
  24. package/flows/fire/agents/builder/skills/code-review/references/review-categories.md +154 -0
  25. package/flows/fire/agents/builder/skills/code-review/templates/review-report.md.hbs +120 -0
  26. package/flows/fire/agents/builder/skills/run-execute/SKILL.md +566 -0
  27. package/flows/fire/agents/builder/skills/run-execute/scripts/complete-run.js +549 -0
  28. package/flows/fire/agents/builder/skills/run-execute/scripts/init-run.js +454 -0
  29. package/flows/fire/agents/builder/skills/run-execute/templates/plan.md.hbs +61 -0
  30. package/flows/fire/agents/builder/skills/run-execute/templates/test-report.md.hbs +81 -0
  31. package/flows/fire/agents/builder/skills/run-plan/SKILL.md +368 -0
  32. package/flows/fire/agents/builder/skills/run-status/SKILL.md +94 -0
  33. package/flows/fire/agents/builder/skills/walkthrough-generate/SKILL.md +140 -0
  34. package/flows/fire/agents/builder/skills/walkthrough-generate/scripts/render-walkthrough.ts +755 -0
  35. package/flows/fire/agents/builder/skills/walkthrough-generate/templates/walkthrough.md.hbs +77 -0
  36. package/flows/fire/agents/orchestrator/agent.md +127 -0
  37. package/flows/fire/agents/orchestrator/skills/project-init/SKILL.md +225 -0
  38. package/flows/fire/agents/orchestrator/skills/project-init/templates/coding-standards.md.hbs +149 -0
  39. package/flows/fire/agents/orchestrator/skills/project-init/templates/constitution.md.hbs +43 -0
  40. package/flows/fire/agents/orchestrator/skills/project-init/templates/system-architecture.md.hbs +101 -0
  41. package/flows/fire/agents/orchestrator/skills/project-init/templates/tech-stack.md.hbs +136 -0
  42. package/flows/fire/agents/orchestrator/skills/project-init/templates/testing-standards.md.hbs +94 -0
  43. package/flows/fire/agents/orchestrator/skills/project-migrate/SKILL.md +234 -0
  44. package/flows/fire/agents/orchestrator/skills/route/SKILL.md +141 -0
  45. package/flows/fire/agents/orchestrator/skills/status/SKILL.md +100 -0
  46. package/flows/fire/agents/planner/agent.md +138 -0
  47. package/flows/fire/agents/planner/skills/design-doc-generate/SKILL.md +155 -0
  48. package/flows/fire/agents/planner/skills/design-doc-generate/templates/design.md.hbs +124 -0
  49. package/flows/fire/agents/planner/skills/intent-capture/SKILL.md +124 -0
  50. package/flows/fire/agents/planner/skills/intent-capture/templates/brief.md.hbs +40 -0
  51. package/flows/fire/agents/planner/skills/work-item-decompose/SKILL.md +165 -0
  52. package/flows/fire/agents/planner/skills/work-item-decompose/templates/work-item.md.hbs +40 -0
  53. package/flows/fire/commands/fire-builder.md +56 -0
  54. package/flows/fire/commands/fire-planner.md +48 -0
  55. package/flows/fire/commands/fire.md +46 -0
  56. package/flows/fire/memory-bank.yaml +223 -0
  57. package/flows/fire/quick-start.md +130 -0
  58. package/flows/simple/README.md +190 -0
  59. package/flows/simple/agents/agent.md +404 -0
  60. package/flows/simple/commands/agent.md +60 -0
  61. package/flows/simple/context-config.yaml +34 -0
  62. package/flows/simple/memory-bank.yaml +66 -0
  63. package/flows/simple/quick-start.md +231 -0
  64. package/flows/simple/skills/design.md +96 -0
  65. package/flows/simple/skills/execute.md +190 -0
  66. package/flows/simple/skills/requirements.md +94 -0
  67. package/flows/simple/skills/tasks.md +136 -0
  68. package/flows/simple/templates/design-template.md +138 -0
  69. package/flows/simple/templates/requirements-template.md +85 -0
  70. package/flows/simple/templates/tasks-template.md +104 -0
  71. package/lib/analytics/tracker.js +6 -2
  72. package/lib/constants.js +17 -8
  73. package/lib/installer.js +5 -15
  74. package/lib/installers/KiroInstaller.js +55 -0
  75. package/lib/installers/OpenCodeInstaller.js +9 -1
  76. package/lib/installers/ToolInstaller.js +4 -1
  77. package/lib/installers/WindsurfInstaller.js +0 -54
  78. package/package.json +3 -52
@@ -0,0 +1,165 @@
1
+ ---
2
+ name: work-item-decompose
3
+ description: Break an intent into discrete, executable work items with complexity assessment and dependency validation.
4
+ version: 1.0.0
5
+ ---
6
+
7
+ <objective>
8
+ Break an intent into discrete, executable work items.
9
+ </objective>
10
+
11
+ <triggers>
12
+ - Intent exists without work items
13
+ - User wants to plan execution
14
+ </triggers>
15
+
16
+ <degrees_of_freedom>
17
+ **MEDIUM** — Follow decomposition patterns but adapt to the specific intent.
18
+ </degrees_of_freedom>
19
+
20
+ <llm critical="true">
21
+ <mandate>Each work item MUST be completable in a single run</mandate>
22
+ <mandate>Each work item MUST have clear acceptance criteria</mandate>
23
+ <mandate>Dependencies MUST be explicit and validated</mandate>
24
+ </llm>
25
+
26
+ <flow>
27
+ <step n="1" title="Load Intent">
28
+ <action>Read intent brief from .specs-fire/intents/{intent-id}/brief.md</action>
29
+ <action>Understand goal, users, success criteria</action>
30
+ </step>
31
+
32
+ <step n="2" title="Identify Deliverables">
33
+ <action>Break intent into discrete deliverables</action>
34
+ <action>Each deliverable should be independently valuable</action>
35
+
36
+ <guidelines>
37
+ - Prefer vertical slices over horizontal layers
38
+ - Start with foundation pieces (models, schemas)
39
+ - End with integration pieces (API, UI)
40
+ - Keep each item focused on ONE concern
41
+ </guidelines>
42
+ </step>
43
+
44
+ <step n="3" title="Assess Complexity">
45
+ <action>For each work item, assess RAW complexity:</action>
46
+
47
+ <complexity level="low">
48
+ - Single file or few files
49
+ - Well-understood pattern
50
+ - No external dependencies
51
+ - Examples: bug fix, config change, simple utility
52
+ </complexity>
53
+
54
+ <complexity level="medium">
55
+ - Multiple files
56
+ - Standard patterns with some decisions
57
+ - May touch existing code
58
+ - Examples: new endpoint, new component, feature addition
59
+ </complexity>
60
+
61
+ <complexity level="high">
62
+ - Architectural decisions required
63
+ - Security or data implications
64
+ - Core system changes
65
+ - Examples: auth system, payment flow, database migration
66
+ </complexity>
67
+ </step>
68
+
69
+ <step n="3b" title="Apply Autonomy Bias">
70
+ <action>Read workspace.autonomy_bias from state.yaml</action>
71
+ <action>Apply bias to determine final execution mode:</action>
72
+
73
+ <bias_table>
74
+ | Raw Complexity | autonomous | balanced | controlled |
75
+ |----------------|------------|----------|------------|
76
+ | low | autopilot | autopilot| confirm |
77
+ | medium | autopilot | confirm | validate |
78
+ | high | confirm | validate | validate |
79
+ </bias_table>
80
+
81
+ <note>
82
+ This allows user preference to shift thresholds:
83
+ - autonomous: trusts AI more, fewer checkpoints
84
+ - balanced: standard behavior (default)
85
+ - controlled: more human oversight
86
+ </note>
87
+ </step>
88
+
89
+ <step n="4" title="Define Acceptance Criteria">
90
+ <action>For each work item, define:</action>
91
+ <substep>What must be true when complete</substep>
92
+ <substep>How to verify it works</substep>
93
+ <substep>Any edge cases to handle</substep>
94
+ </step>
95
+
96
+ <step n="5" title="Validate Dependencies">
97
+ <action>Check for circular dependencies</action>
98
+ <action>Ensure dependencies exist or will be created first</action>
99
+ <action>Order work items by dependency</action>
100
+
101
+ <check if="circular dependency detected">
102
+ <output>
103
+ Warning: Circular dependency detected between {item-a} and {item-b}.
104
+ Suggest splitting into smaller items or reordering.
105
+ </output>
106
+ </check>
107
+ </step>
108
+
109
+ <step n="6" title="Present Plan">
110
+ <output>
111
+ ## Work Items for "{intent-title}"
112
+
113
+ **Total**: {count} work items
114
+ **Estimated**: {low} autopilot, {medium} confirm, {high} validate
115
+
116
+ **Work Item Details**:
117
+
118
+ {for each item}
119
+ {n}. **{title}** ({mode}) — {description}
120
+ {/for}
121
+
122
+ ---
123
+
124
+ Approve this plan? [Y/n/edit]
125
+ </output>
126
+ </step>
127
+
128
+ <step n="7" title="Save Work Items">
129
+ <check if="approved">
130
+ <action>Create .specs-fire/intents/{intent-id}/work-items/</action>
131
+ <action>For each work item, generate using template: templates/work-item.md.hbs</action>
132
+ <action>Save each to: .specs-fire/intents/{intent-id}/work-items/{work-item-id}.md</action>
133
+ <action>Update state.yaml with work items list</action>
134
+ </check>
135
+ </step>
136
+
137
+ <step n="8" title="Transition">
138
+ <output>
139
+ **{count} work items created** for "{intent-title}".
140
+
141
+ ---
142
+
143
+ Ready to plan execution scope? [Y/n]
144
+ </output>
145
+ <check if="response == y">
146
+ <route_to>builder-agent (run-plan)</route_to>
147
+ </check>
148
+ </step>
149
+ </flow>
150
+
151
+ <output_artifacts>
152
+ | Artifact | Location | Template |
153
+ |----------|----------|----------|
154
+ | Work Item | `.specs-fire/intents/{intent-id}/work-items/{id}.md` | `./templates/work-item.md.hbs` |
155
+ </output_artifacts>
156
+
157
+ <success_criteria>
158
+ <criterion>Intent decomposed into discrete work items</criterion>
159
+ <criterion>Each work item has clear acceptance criteria</criterion>
160
+ <criterion>Complexity assessed for each item</criterion>
161
+ <criterion>Autonomy bias applied to determine modes</criterion>
162
+ <criterion>Dependencies validated (no circular dependencies)</criterion>
163
+ <criterion>Work items saved to correct locations</criterion>
164
+ <criterion>State.yaml updated with work items list</criterion>
165
+ </success_criteria>
@@ -0,0 +1,40 @@
1
+ ---
2
+ id: {{id}}
3
+ title: {{title}}
4
+ intent: {{intent}}
5
+ complexity: {{complexity}}
6
+ mode: {{mode}}
7
+ status: {{status}}
8
+ depends_on: [{{#each depends_on}}{{this}}{{#unless @last}}, {{/unless}}{{/each}}]
9
+ created: {{created}}
10
+ ---
11
+
12
+ # Work Item: {{title}}
13
+
14
+ ## Description
15
+
16
+ {{description}}
17
+
18
+ ## Acceptance Criteria
19
+
20
+ {{#each acceptance_criteria}}
21
+ - [ ] {{this}}
22
+ {{/each}}
23
+
24
+ ## Technical Notes
25
+
26
+ {{#if technical_notes}}
27
+ {{technical_notes}}
28
+ {{else}}
29
+ (none)
30
+ {{/if}}
31
+
32
+ ## Dependencies
33
+
34
+ {{#if depends_on}}
35
+ {{#each depends_on}}
36
+ - {{this}}
37
+ {{/each}}
38
+ {{else}}
39
+ (none)
40
+ {{/if}}
@@ -0,0 +1,56 @@
1
+ ---
2
+ description: FIRE Builder Agent - executes work items and generates walkthroughs
3
+ ---
4
+
5
+ # Activate FIRE Builder
6
+
7
+ **Command**: `/specsmd-fire-builder`
8
+
9
+ ---
10
+
11
+ ## Activation
12
+
13
+ You are now the **FIRE Builder Agent** for specsmd.
14
+
15
+ **IMMEDIATELY** read and adopt the persona from:
16
+ → `.specsmd/fire/agents/builder/agent.md`
17
+
18
+ ---
19
+
20
+ ## Critical First Steps
21
+
22
+ 1. **Read Config**: `.specsmd/fire/fire-config.yaml`
23
+ 2. **Read State**: `.specs-fire/state.yaml`
24
+ 3. **Determine Mode**:
25
+ - Active run exists → Resume execution
26
+ - Pending work items → Start next work item
27
+ - No work items → Route back to Planner
28
+
29
+ ---
30
+
31
+ ## Your Skills
32
+
33
+ - **Run Execute**: `.specsmd/fire/agents/builder/skills/run-execute/SKILL.md` → Execute work item
34
+ - **Walkthrough Generate**: `.specsmd/fire/agents/builder/skills/walkthrough-generate/SKILL.md` → Generate walkthrough
35
+ - **Run Status**: `.specsmd/fire/agents/builder/skills/run-status/SKILL.md` → Show run status
36
+
37
+ ---
38
+
39
+ ## Execution Modes
40
+
41
+ - **Autopilot**: 0 checkpoints (low complexity)
42
+ - **Confirm**: 1 checkpoint (medium complexity)
43
+ - **Validate**: 2 checkpoints (high complexity)
44
+
45
+ ---
46
+
47
+ ## Routing Targets
48
+
49
+ - **Back to Orchestrator**: `/specsmd-fire`
50
+ - **To Planner**: `/specsmd-fire-planner`
51
+
52
+ ---
53
+
54
+ ## Begin
55
+
56
+ Activate now. Read your agent definition and start building.
@@ -0,0 +1,48 @@
1
+ ---
2
+ description: FIRE Planner Agent - captures intents and decomposes into work items
3
+ ---
4
+
5
+ # Activate FIRE Planner
6
+
7
+ **Command**: `/specsmd-fire-planner`
8
+
9
+ ---
10
+
11
+ ## Activation
12
+
13
+ You are now the **FIRE Planner Agent** for specsmd.
14
+
15
+ **IMMEDIATELY** read and adopt the persona from:
16
+ → `.specsmd/fire/agents/planner/agent.md`
17
+
18
+ ---
19
+
20
+ ## Critical First Steps
21
+
22
+ 1. **Read Config**: `.specsmd/fire/fire-config.yaml`
23
+ 2. **Read State**: `.specs-fire/state.yaml`
24
+ 3. **Determine Mode**:
25
+ - No active intent → `intent-capture` skill
26
+ - Intent without work items → `work-item-decompose` skill
27
+ - High-complexity work item → `design-doc-generate` skill
28
+
29
+ ---
30
+
31
+ ## Your Skills
32
+
33
+ - **Intent Capture**: `.specsmd/fire/agents/planner/skills/intent-capture/SKILL.md` → Capture new intent
34
+ - **Work Item Decompose**: `.specsmd/fire/agents/planner/skills/work-item-decompose/SKILL.md` → Break into work items
35
+ - **Design Doc Generate**: `.specsmd/fire/agents/planner/skills/design-doc-generate/SKILL.md` → Create design doc
36
+
37
+ ---
38
+
39
+ ## Routing Targets
40
+
41
+ - **Back to Orchestrator**: `/specsmd-fire`
42
+ - **To Builder**: `/specsmd-fire-builder`
43
+
44
+ ---
45
+
46
+ ## Begin
47
+
48
+ Activate now. Read your agent definition and start planning.
@@ -0,0 +1,46 @@
1
+ ---
2
+ description: FIRE orchestrator - Fast Intent-Run Engineering main entry point
3
+ ---
4
+
5
+ # Activate FIRE
6
+
7
+ **Command**: `/specsmd-fire`
8
+
9
+ ---
10
+
11
+ ## Activation
12
+
13
+ You are now the **FIRE Orchestrator** for specsmd.
14
+
15
+ **IMMEDIATELY** read and adopt the persona from:
16
+ → `.specsmd/fire/agents/orchestrator/agent.md`
17
+
18
+ ---
19
+
20
+ ## Critical First Steps
21
+
22
+ 1. **Read Config**: `.specsmd/fire/fire-config.yaml`
23
+ 2. **Check Initialization**: Verify `.specs-fire/state.yaml` exists
24
+ 3. **If NOT initialized** → Execute `project-init` skill
25
+ 4. **If initialized** → Execute `route` skill to determine next action
26
+
27
+ ---
28
+
29
+ ## Your Skills
30
+
31
+ - **Project Init**: `.specsmd/fire/agents/orchestrator/skills/project-init/SKILL.md` → Initialize new project
32
+ - **Route**: `.specsmd/fire/agents/orchestrator/skills/route/SKILL.md` → Route to appropriate agent
33
+ - **Status**: `.specsmd/fire/agents/orchestrator/skills/status/SKILL.md` → Show project status
34
+
35
+ ---
36
+
37
+ ## Routing Targets
38
+
39
+ - **Planning**: Planner Agent → `/specsmd-fire-planner`
40
+ - **Building**: Builder Agent → `/specsmd-fire-builder`
41
+
42
+ ---
43
+
44
+ ## Begin
45
+
46
+ Activate now. Read your agent definition and start the orchestration process.
@@ -0,0 +1,223 @@
1
+ # FIRE Flow Configuration
2
+ # Fast Intent-Run Engineering - Simplified AI-native development
3
+
4
+ # FIRE Flow Version (used by migrate skill to detect outdated projects)
5
+ version: "0.1.8"
6
+
7
+ # Artifact folder (created at project initialization)
8
+ artifact_root: ".specs-fire"
9
+
10
+ # Structure created at project initialization
11
+ structure:
12
+ - path: intents/
13
+ description: "High-level objectives that deliver user value"
14
+ - path: runs/
15
+ description: "Execution logs and walkthroughs per run"
16
+ - path: standards/
17
+ description: "Project standards (constitution, tech-stack, coding-standards, testing-standards)"
18
+
19
+ # ─────────────────────────────────────────────────────────────────────────────────
20
+ # HIERARCHICAL STANDARDS (Monorepo Support)
21
+ # ─────────────────────────────────────────────────────────────────────────────────
22
+ #
23
+ # Standards can exist at root level AND at module level for monorepos.
24
+ # Resolution rules:
25
+ # - constitution.md: ALWAYS from root, NEVER overridden by modules
26
+ # - All other standards: Override semantics (module overrides root if exists)
27
+ #
28
+ # Example monorepo structure:
29
+ # .specs-fire/standards/ <- Root standards (defaults)
30
+ # packages/api/.specs-fire/standards/ <- API module overrides
31
+ # apps/mobile/.specs-fire/standards/ <- Mobile module overrides
32
+ #
33
+ # The file system IS the registry - presence of .specs-fire/standards/ defines a scope.
34
+
35
+ # Central state file (FIRE's source of truth)
36
+ state:
37
+ path: ".specs-fire/state.yaml"
38
+ description: "Central state tracking for all FIRE operations"
39
+ sections:
40
+ project:
41
+ - name: "Project name"
42
+ - description: "Project description"
43
+ - created: "ISO 8601 timestamp"
44
+ - fire_version: "FIRE flow version at project init (e.g., 0.1.8)"
45
+ workspace:
46
+ - type: "greenfield | brownfield"
47
+ - structure: "monolith | monorepo | multi-part"
48
+ - autonomy_bias: "autonomous | balanced | controlled"
49
+ - run_scope_preference: "single | batch | wide (learned from history)"
50
+ - run_scope_history: "List of recent scope choices for learning"
51
+ - scanned_at: "ISO 8601 timestamp (brownfield)"
52
+ - parts: "List of project parts (monorepo)"
53
+ intents:
54
+ - id: "Intent identifier"
55
+ - title: "Intent title"
56
+ - status: "pending | in_progress | completed"
57
+ - work_items: "List of work items"
58
+ active_run:
59
+ - id: "Current run ID"
60
+ - scope: "single | batch | wide"
61
+ - work_items: "List of work items in this run"
62
+ - current_item: "Work item currently being executed"
63
+ - started: "ISO 8601 timestamp"
64
+ runs:
65
+ - completed: "List of completed runs with id, work_item, intent, completed timestamp"
66
+
67
+ # Data Conventions
68
+ conventions:
69
+ timestamps:
70
+ format: "ISO 8601 with time and timezone"
71
+ pattern: "YYYY-MM-DDTHH:MM:SSZ"
72
+ example: "2026-01-19T10:30:00Z"
73
+
74
+ # Naming Conventions
75
+ naming:
76
+ intents:
77
+ format: "{id}"
78
+ example: "user-authentication"
79
+ note: "Kebab-case, descriptive name"
80
+
81
+ work_items:
82
+ format: "{id}"
83
+ example: "login-endpoint"
84
+ note: "Kebab-case, action-oriented name"
85
+
86
+ runs:
87
+ format: "run-{NNN}/"
88
+ example: "run-001/"
89
+ note: "Sequential 3-digit number, folder per run"
90
+ contents:
91
+ - "plan.md" # Approved implementation plan (confirm/validate modes)
92
+ - "run.md" # Run log
93
+ - "test-report.md" # Test results and coverage
94
+ - "walkthrough.md" # Implementation walkthrough
95
+
96
+ # Schema Definition (Source of Truth for Agents)
97
+ schema:
98
+ state: ".specs-fire/state.yaml"
99
+ intents: ".specs-fire/intents/{intent-id}/"
100
+ intent-brief: ".specs-fire/intents/{intent-id}/brief.md"
101
+ work-items: ".specs-fire/intents/{intent-id}/work-items/"
102
+ work-item: ".specs-fire/intents/{intent-id}/work-items/{work-item-id}.md"
103
+ runs: ".specs-fire/runs/"
104
+ run-folder: ".specs-fire/runs/{run-id}/"
105
+ plan: ".specs-fire/runs/{run-id}/plan.md"
106
+ run-log: ".specs-fire/runs/{run-id}/run.md"
107
+ test-report: ".specs-fire/runs/{run-id}/test-report.md"
108
+ walkthrough: ".specs-fire/runs/{run-id}/walkthrough.md"
109
+
110
+ # Root Standards
111
+ standards: ".specs-fire/standards/"
112
+ constitution: ".specs-fire/standards/constitution.md"
113
+ tech-stack: ".specs-fire/standards/tech-stack.md"
114
+ coding-standards: ".specs-fire/standards/coding-standards.md"
115
+ testing-standards: ".specs-fire/standards/testing-standards.md"
116
+ system-architecture: ".specs-fire/standards/system-architecture.md"
117
+
118
+ # Module Standards (Monorepo) - paths relative to module root
119
+ module-standards: "{module-path}/.specs-fire/standards/"
120
+ module-tech-stack: "{module-path}/.specs-fire/standards/tech-stack.md"
121
+ module-coding-standards: "{module-path}/.specs-fire/standards/coding-standards.md"
122
+ module-testing-standards: "{module-path}/.specs-fire/standards/testing-standards.md"
123
+
124
+ # Agent Ownership
125
+ ownership:
126
+ orchestrator: [state]
127
+ planner: [intents, work-items, state]
128
+ builder: [runs, state]
129
+
130
+ # ─────────────────────────────────────────────────────────────────────────────────
131
+ # STANDARDS BEHAVIOR
132
+ # ─────────────────────────────────────────────────────────────────────────────────
133
+
134
+ standards_behavior:
135
+ constitution:
136
+ inheritance: always
137
+ override: never
138
+ description: |
139
+ Universal policies (git workflow, PR process, security).
140
+ ALWAYS loaded from root. Modules cannot override.
141
+
142
+ tech-stack:
143
+ inheritance: fallback
144
+ override: allowed
145
+ description: |
146
+ If module has tech-stack.md, use it.
147
+ Otherwise inherit from nearest ancestor (ultimately root).
148
+
149
+ coding-standards:
150
+ inheritance: fallback
151
+ override: allowed
152
+
153
+ testing-standards:
154
+ inheritance: fallback
155
+ override: allowed
156
+
157
+ system-architecture:
158
+ inheritance: fallback
159
+ override: allowed
160
+
161
+ # Execution Modes
162
+ execution_modes:
163
+ autopilot:
164
+ checkpoints: 0
165
+ complexity: low
166
+ description: "Direct execution, walkthrough generated after"
167
+
168
+ confirm:
169
+ checkpoints: 1
170
+ complexity: medium
171
+ description: "Plan shown, user confirms, then execution"
172
+
173
+ validate:
174
+ checkpoints: 2
175
+ complexity: high
176
+ description: "Design doc review, then plan confirmation, then execution"
177
+
178
+ # Work Item Complexity Mapping (default, when autonomy_bias = balanced)
179
+ complexity_modes:
180
+ low: autopilot
181
+ medium: confirm
182
+ high: validate
183
+
184
+ # Autonomy Bias - Shifts complexity→mode thresholds
185
+ # User preference captured at project init, stored in workspace.autonomy_bias
186
+ autonomy_bias:
187
+ autonomous:
188
+ description: "AI executes more freely, fewer checkpoints"
189
+ mapping:
190
+ low: autopilot
191
+ medium: autopilot # shifted down
192
+ high: confirm # shifted down
193
+ balanced:
194
+ description: "Standard checkpoints based on complexity"
195
+ mapping:
196
+ low: autopilot
197
+ medium: confirm
198
+ high: validate
199
+ controlled:
200
+ description: "More human oversight, more checkpoints"
201
+ mapping:
202
+ low: confirm # shifted up
203
+ medium: validate # shifted up
204
+ high: validate
205
+
206
+ # Run Scope - How many work items to execute in a single run
207
+ # Learned from user choices, stored in workspace.run_scope_preference
208
+ run_scope:
209
+ single:
210
+ description: "One work item per run, most controlled"
211
+ grouping: "Each item in its own run"
212
+ batch:
213
+ description: "Group items by mode, respect dependencies"
214
+ grouping: "Autopilot together, confirm together, etc."
215
+ wide:
216
+ description: "Maximum items per run, minimal interruption"
217
+ grouping: "All compatible items together"
218
+
219
+ # Run scope history entry format
220
+ run_scope_history_entry:
221
+ choice: "single | batch | wide"
222
+ items_count: "Number of items in the run"
223
+ timestamp: "ISO 8601 timestamp"