@garygentry/feature-forge 0.3.0 → 0.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.
- package/adapters/claude/.feature-forge-bundle.json +1 -1
- package/adapters/claude/agents/forge-verifier.md +1 -1
- package/adapters/claude/references/epic-manifest-schema.json +6 -1
- package/adapters/claude/references/forge-config-schema.json +1 -1
- package/adapters/claude/references/pipeline-state-schema.json +5 -3
- package/adapters/claude/references/shared-conventions.md +125 -12
- package/adapters/claude/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/references/vendor-construct-inventory.md +1 -1
- package/adapters/claude/scripts/epic-manifest.py +459 -90
- package/adapters/claude/scripts/forge-bootstrap.py +57 -5
- package/adapters/claude/scripts/forge-session.py +4346 -201
- package/adapters/claude/scripts/validate-traceability.py +92 -6
- package/adapters/claude/skills/forge/SKILL.md +18 -11
- package/adapters/claude/skills/forge/references/pipeline-state-schema.json +5 -3
- package/adapters/claude/skills/forge/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/skills/forge-0-epic/SKILL.md +8 -3
- package/adapters/claude/skills/forge-0-epic/references/edit-mode.md +24 -24
- package/adapters/claude/skills/forge-0-epic/references/pipeline-state-schema.json +5 -3
- package/adapters/claude/skills/forge-0-epic/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-0-epic/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/skills/forge-1-prd/SKILL.md +39 -11
- package/adapters/claude/skills/forge-1-prd/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-1-prd/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/skills/forge-2-tech/SKILL.md +38 -10
- package/adapters/claude/skills/forge-2-tech/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-2-tech/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/skills/forge-3-specs/SKILL.md +28 -9
- package/adapters/claude/skills/forge-3-specs/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-3-specs/references/spec-archetypes.md +9 -0
- package/adapters/claude/skills/forge-3-specs/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/skills/forge-4-backlog/SKILL.md +39 -10
- package/adapters/claude/skills/forge-4-backlog/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-4-backlog/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/skills/forge-5-loop/SKILL.md +65 -67
- package/adapters/claude/skills/forge-5-loop/references/agent-selection.md +116 -0
- package/adapters/claude/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/claude/skills/forge-5-loop/references/runner-contract.md +18 -109
- package/adapters/claude/skills/forge-5-loop/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-5-loop/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/skills/forge-6-docs/SKILL.md +59 -9
- package/adapters/claude/skills/forge-6-docs/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-6-docs/references/stage-exit-protocol.md +472 -0
- package/adapters/claude/skills/forge-fix/SKILL.md +85 -33
- package/adapters/claude/skills/forge-fix/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-fix/references/stage-exit-protocol.md +358 -144
- package/adapters/claude/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/claude/skills/forge-guide/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-verify/SKILL.md +86 -44
- package/adapters/claude/skills/forge-verify/references/findings-template.md +147 -0
- package/adapters/claude/skills/forge-verify/references/shared-conventions.md +125 -12
- package/adapters/claude/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists/backlog.md +97 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists/epic.md +80 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists/impl.md +48 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists/prd.md +31 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists/specs.md +66 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists/tech.md +35 -0
- package/adapters/codex/.feature-forge-bundle.json +1 -1
- package/adapters/codex/agents/forge-verifier.toml +1 -1
- package/adapters/codex/references/epic-manifest-schema.json +6 -1
- package/adapters/codex/references/forge-config-schema.json +1 -1
- package/adapters/codex/references/pipeline-state-schema.json +5 -3
- package/adapters/codex/references/shared-conventions.md +125 -12
- package/adapters/codex/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/references/vendor-construct-inventory.md +1 -1
- package/adapters/codex/scripts/epic-manifest.py +459 -90
- package/adapters/codex/scripts/forge-bootstrap.py +57 -5
- package/adapters/codex/scripts/forge-session.py +4346 -201
- package/adapters/codex/scripts/validate-traceability.py +92 -6
- package/adapters/codex/skills/forge/SKILL.md +18 -11
- package/adapters/codex/skills/forge/references/pipeline-state-schema.json +5 -3
- package/adapters/codex/skills/forge/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/skills/forge-0-epic/SKILL.md +8 -3
- package/adapters/codex/skills/forge-0-epic/references/edit-mode.md +24 -24
- package/adapters/codex/skills/forge-0-epic/references/pipeline-state-schema.json +5 -3
- package/adapters/codex/skills/forge-0-epic/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-0-epic/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/skills/forge-1-prd/SKILL.md +39 -11
- package/adapters/codex/skills/forge-1-prd/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-1-prd/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/skills/forge-2-tech/SKILL.md +38 -10
- package/adapters/codex/skills/forge-2-tech/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-2-tech/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/skills/forge-3-specs/SKILL.md +28 -9
- package/adapters/codex/skills/forge-3-specs/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-3-specs/references/spec-archetypes.md +9 -0
- package/adapters/codex/skills/forge-3-specs/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/skills/forge-4-backlog/SKILL.md +39 -10
- package/adapters/codex/skills/forge-4-backlog/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-4-backlog/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/skills/forge-5-loop/SKILL.md +65 -67
- package/adapters/codex/skills/forge-5-loop/references/agent-selection.md +116 -0
- package/adapters/codex/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/codex/skills/forge-5-loop/references/runner-contract.md +18 -109
- package/adapters/codex/skills/forge-5-loop/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-5-loop/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/skills/forge-6-docs/SKILL.md +59 -9
- package/adapters/codex/skills/forge-6-docs/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-6-docs/references/stage-exit-protocol.md +472 -0
- package/adapters/codex/skills/forge-fix/SKILL.md +84 -32
- package/adapters/codex/skills/forge-fix/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-fix/references/stage-exit-protocol.md +358 -144
- package/adapters/codex/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/codex/skills/forge-guide/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-verify/SKILL.md +85 -43
- package/adapters/codex/skills/forge-verify/references/findings-template.md +147 -0
- package/adapters/codex/skills/forge-verify/references/shared-conventions.md +125 -12
- package/adapters/codex/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists/backlog.md +97 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists/epic.md +80 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists/impl.md +48 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists/prd.md +31 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists/specs.md +66 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists/tech.md +35 -0
- package/adapters/copilot/.feature-forge-bundle.json +1 -1
- package/adapters/copilot/agents/forge-verifier.md +1 -1
- package/adapters/copilot/references/epic-manifest-schema.json +6 -1
- package/adapters/copilot/references/forge-config-schema.json +1 -1
- package/adapters/copilot/references/pipeline-state-schema.json +5 -3
- package/adapters/copilot/references/shared-conventions.md +125 -12
- package/adapters/copilot/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/references/vendor-construct-inventory.md +1 -1
- package/adapters/copilot/scripts/epic-manifest.py +459 -90
- package/adapters/copilot/scripts/forge-bootstrap.py +57 -5
- package/adapters/copilot/scripts/forge-session.py +4346 -201
- package/adapters/copilot/scripts/validate-traceability.py +92 -6
- package/adapters/copilot/skills/forge/forge.md +18 -11
- package/adapters/copilot/skills/forge/references/pipeline-state-schema.json +5 -3
- package/adapters/copilot/skills/forge/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/skills/forge-0-epic/forge-0-epic.md +8 -3
- package/adapters/copilot/skills/forge-0-epic/references/edit-mode.md +24 -24
- package/adapters/copilot/skills/forge-0-epic/references/pipeline-state-schema.json +5 -3
- package/adapters/copilot/skills/forge-0-epic/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-0-epic/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/skills/forge-1-prd/forge-1-prd.md +39 -11
- package/adapters/copilot/skills/forge-1-prd/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-1-prd/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/skills/forge-2-tech/forge-2-tech.md +38 -10
- package/adapters/copilot/skills/forge-2-tech/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-2-tech/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/skills/forge-3-specs/forge-3-specs.md +28 -9
- package/adapters/copilot/skills/forge-3-specs/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-3-specs/references/spec-archetypes.md +9 -0
- package/adapters/copilot/skills/forge-3-specs/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/skills/forge-4-backlog/forge-4-backlog.md +39 -10
- package/adapters/copilot/skills/forge-4-backlog/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-4-backlog/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/skills/forge-5-loop/forge-5-loop.md +65 -67
- package/adapters/copilot/skills/forge-5-loop/references/agent-selection.md +116 -0
- package/adapters/copilot/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/copilot/skills/forge-5-loop/references/runner-contract.md +18 -109
- package/adapters/copilot/skills/forge-5-loop/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-5-loop/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/skills/forge-6-docs/forge-6-docs.md +59 -9
- package/adapters/copilot/skills/forge-6-docs/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-6-docs/references/stage-exit-protocol.md +472 -0
- package/adapters/copilot/skills/forge-fix/forge-fix.md +84 -32
- package/adapters/copilot/skills/forge-fix/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-fix/references/stage-exit-protocol.md +358 -144
- package/adapters/copilot/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/copilot/skills/forge-guide/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-verify/forge-verify.md +85 -43
- package/adapters/copilot/skills/forge-verify/references/findings-template.md +147 -0
- package/adapters/copilot/skills/forge-verify/references/shared-conventions.md +125 -12
- package/adapters/copilot/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists/backlog.md +97 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists/epic.md +80 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists/impl.md +48 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists/prd.md +31 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists/specs.md +66 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists/tech.md +35 -0
- package/adapters/cursor/.feature-forge-bundle.json +1 -1
- package/adapters/cursor/agents/forge-verifier.mdc +1 -1
- package/adapters/cursor/references/epic-manifest-schema.json +6 -1
- package/adapters/cursor/references/forge-config-schema.json +1 -1
- package/adapters/cursor/references/pipeline-state-schema.json +5 -3
- package/adapters/cursor/references/shared-conventions.md +125 -12
- package/adapters/cursor/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/references/vendor-construct-inventory.md +1 -1
- package/adapters/cursor/scripts/epic-manifest.py +459 -90
- package/adapters/cursor/scripts/forge-bootstrap.py +57 -5
- package/adapters/cursor/scripts/forge-session.py +4346 -201
- package/adapters/cursor/scripts/validate-traceability.py +92 -6
- package/adapters/cursor/skills/forge/forge.mdc +18 -11
- package/adapters/cursor/skills/forge/references/pipeline-state-schema.json +5 -3
- package/adapters/cursor/skills/forge/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/skills/forge-0-epic/forge-0-epic.mdc +8 -3
- package/adapters/cursor/skills/forge-0-epic/references/edit-mode.md +24 -24
- package/adapters/cursor/skills/forge-0-epic/references/pipeline-state-schema.json +5 -3
- package/adapters/cursor/skills/forge-0-epic/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-0-epic/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/skills/forge-1-prd/forge-1-prd.mdc +39 -11
- package/adapters/cursor/skills/forge-1-prd/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-1-prd/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/skills/forge-2-tech/forge-2-tech.mdc +38 -10
- package/adapters/cursor/skills/forge-2-tech/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-2-tech/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/skills/forge-3-specs/forge-3-specs.mdc +28 -9
- package/adapters/cursor/skills/forge-3-specs/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-3-specs/references/spec-archetypes.md +9 -0
- package/adapters/cursor/skills/forge-3-specs/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/skills/forge-4-backlog/forge-4-backlog.mdc +39 -10
- package/adapters/cursor/skills/forge-4-backlog/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-4-backlog/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/skills/forge-5-loop/forge-5-loop.mdc +65 -67
- package/adapters/cursor/skills/forge-5-loop/references/agent-selection.md +116 -0
- package/adapters/cursor/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/cursor/skills/forge-5-loop/references/runner-contract.md +18 -109
- package/adapters/cursor/skills/forge-5-loop/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-5-loop/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/skills/forge-6-docs/forge-6-docs.mdc +59 -9
- package/adapters/cursor/skills/forge-6-docs/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-6-docs/references/stage-exit-protocol.md +472 -0
- package/adapters/cursor/skills/forge-fix/forge-fix.mdc +84 -32
- package/adapters/cursor/skills/forge-fix/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-fix/references/stage-exit-protocol.md +358 -144
- package/adapters/cursor/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/cursor/skills/forge-guide/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-verify/forge-verify.mdc +85 -43
- package/adapters/cursor/skills/forge-verify/references/findings-template.md +147 -0
- package/adapters/cursor/skills/forge-verify/references/shared-conventions.md +125 -12
- package/adapters/cursor/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists/backlog.md +97 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists/epic.md +80 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists/impl.md +48 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists/prd.md +31 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists/specs.md +66 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists/tech.md +35 -0
- package/adapters/gemini/.feature-forge-bundle.json +1 -1
- package/adapters/gemini/agents/forge-verifier.md +1 -1
- package/adapters/gemini/gemini-extension.json +1 -1
- package/adapters/gemini/references/epic-manifest-schema.json +6 -1
- package/adapters/gemini/references/forge-config-schema.json +1 -1
- package/adapters/gemini/references/pipeline-state-schema.json +5 -3
- package/adapters/gemini/references/shared-conventions.md +125 -12
- package/adapters/gemini/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/references/vendor-construct-inventory.md +1 -1
- package/adapters/gemini/scripts/epic-manifest.py +459 -90
- package/adapters/gemini/scripts/forge-bootstrap.py +57 -5
- package/adapters/gemini/scripts/forge-session.py +4346 -201
- package/adapters/gemini/scripts/validate-traceability.py +92 -6
- package/adapters/gemini/skills/forge/forge.md +18 -11
- package/adapters/gemini/skills/forge/references/pipeline-state-schema.json +5 -3
- package/adapters/gemini/skills/forge/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/skills/forge-0-epic/forge-0-epic.md +8 -3
- package/adapters/gemini/skills/forge-0-epic/references/edit-mode.md +24 -24
- package/adapters/gemini/skills/forge-0-epic/references/pipeline-state-schema.json +5 -3
- package/adapters/gemini/skills/forge-0-epic/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-0-epic/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/skills/forge-1-prd/forge-1-prd.md +39 -11
- package/adapters/gemini/skills/forge-1-prd/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-1-prd/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/skills/forge-2-tech/forge-2-tech.md +38 -10
- package/adapters/gemini/skills/forge-2-tech/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-2-tech/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/skills/forge-3-specs/forge-3-specs.md +28 -9
- package/adapters/gemini/skills/forge-3-specs/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-3-specs/references/spec-archetypes.md +9 -0
- package/adapters/gemini/skills/forge-3-specs/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/skills/forge-4-backlog/forge-4-backlog.md +39 -10
- package/adapters/gemini/skills/forge-4-backlog/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-4-backlog/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/skills/forge-5-loop/forge-5-loop.md +65 -67
- package/adapters/gemini/skills/forge-5-loop/references/agent-selection.md +116 -0
- package/adapters/gemini/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/gemini/skills/forge-5-loop/references/runner-contract.md +18 -109
- package/adapters/gemini/skills/forge-5-loop/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-5-loop/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/skills/forge-6-docs/forge-6-docs.md +59 -9
- package/adapters/gemini/skills/forge-6-docs/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-6-docs/references/stage-exit-protocol.md +472 -0
- package/adapters/gemini/skills/forge-fix/forge-fix.md +84 -32
- package/adapters/gemini/skills/forge-fix/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-fix/references/stage-exit-protocol.md +358 -144
- package/adapters/gemini/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/gemini/skills/forge-guide/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-verify/forge-verify.md +85 -43
- package/adapters/gemini/skills/forge-verify/references/findings-template.md +147 -0
- package/adapters/gemini/skills/forge-verify/references/shared-conventions.md +125 -12
- package/adapters/gemini/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists/backlog.md +97 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists/epic.md +80 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists/impl.md +48 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists/prd.md +31 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists/specs.md +66 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists/tech.md +35 -0
- package/adapters/pi/.feature-forge-bundle.json +1 -1
- package/adapters/pi/agents/forge-verifier.md +1 -1
- package/adapters/pi/references/epic-manifest-schema.json +6 -1
- package/adapters/pi/references/forge-config-schema.json +1 -1
- package/adapters/pi/references/pipeline-state-schema.json +5 -3
- package/adapters/pi/references/shared-conventions.md +125 -12
- package/adapters/pi/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/references/vendor-construct-inventory.md +1 -1
- package/adapters/pi/scripts/epic-manifest.py +459 -90
- package/adapters/pi/scripts/forge-bootstrap.py +57 -5
- package/adapters/pi/scripts/forge-session.py +4346 -201
- package/adapters/pi/scripts/validate-traceability.py +92 -6
- package/adapters/pi/skills/forge/SKILL.md +18 -11
- package/adapters/pi/skills/forge/references/pipeline-state-schema.json +5 -3
- package/adapters/pi/skills/forge/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/skills/forge-0-epic/SKILL.md +8 -3
- package/adapters/pi/skills/forge-0-epic/references/edit-mode.md +24 -24
- package/adapters/pi/skills/forge-0-epic/references/pipeline-state-schema.json +5 -3
- package/adapters/pi/skills/forge-0-epic/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-0-epic/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/skills/forge-1-prd/SKILL.md +39 -11
- package/adapters/pi/skills/forge-1-prd/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-1-prd/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/skills/forge-2-tech/SKILL.md +38 -10
- package/adapters/pi/skills/forge-2-tech/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-2-tech/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/skills/forge-3-specs/SKILL.md +28 -9
- package/adapters/pi/skills/forge-3-specs/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-3-specs/references/spec-archetypes.md +9 -0
- package/adapters/pi/skills/forge-3-specs/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/skills/forge-4-backlog/SKILL.md +39 -10
- package/adapters/pi/skills/forge-4-backlog/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-4-backlog/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/skills/forge-5-loop/SKILL.md +65 -67
- package/adapters/pi/skills/forge-5-loop/references/agent-selection.md +116 -0
- package/adapters/pi/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/pi/skills/forge-5-loop/references/runner-contract.md +18 -109
- package/adapters/pi/skills/forge-5-loop/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-5-loop/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/skills/forge-6-docs/SKILL.md +59 -9
- package/adapters/pi/skills/forge-6-docs/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-6-docs/references/stage-exit-protocol.md +472 -0
- package/adapters/pi/skills/forge-fix/SKILL.md +84 -32
- package/adapters/pi/skills/forge-fix/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-fix/references/stage-exit-protocol.md +358 -144
- package/adapters/pi/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/pi/skills/forge-guide/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-verify/SKILL.md +85 -43
- package/adapters/pi/skills/forge-verify/references/findings-template.md +147 -0
- package/adapters/pi/skills/forge-verify/references/shared-conventions.md +125 -12
- package/adapters/pi/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/pi/skills/forge-verify/references/verification-checklists/backlog.md +97 -0
- package/adapters/pi/skills/forge-verify/references/verification-checklists/epic.md +80 -0
- package/adapters/pi/skills/forge-verify/references/verification-checklists/impl.md +48 -0
- package/adapters/pi/skills/forge-verify/references/verification-checklists/prd.md +31 -0
- package/adapters/pi/skills/forge-verify/references/verification-checklists/specs.md +66 -0
- package/adapters/pi/skills/forge-verify/references/verification-checklists/tech.md +35 -0
- package/package.json +1 -1
- package/adapters/claude/skills/forge-1-prd/references/pipeline-state-schema.json +0 -191
- package/adapters/claude/skills/forge-2-tech/references/pipeline-state-schema.json +0 -191
- package/adapters/claude/skills/forge-3-specs/references/pipeline-state-schema.json +0 -191
- package/adapters/claude/skills/forge-4-backlog/references/forge-config-schema.json +0 -236
- package/adapters/claude/skills/forge-4-backlog/references/pipeline-state-schema.json +0 -191
- package/adapters/claude/skills/forge-5-loop/references/forge-config-schema.json +0 -236
- package/adapters/claude/skills/forge-6-docs/references/pipeline-state-schema.json +0 -191
- package/adapters/claude/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/claude/skills/forge-verify/references/verification-checklists.md +0 -477
- package/adapters/codex/skills/forge-1-prd/references/pipeline-state-schema.json +0 -191
- package/adapters/codex/skills/forge-2-tech/references/pipeline-state-schema.json +0 -191
- package/adapters/codex/skills/forge-3-specs/references/pipeline-state-schema.json +0 -191
- package/adapters/codex/skills/forge-4-backlog/references/forge-config-schema.json +0 -236
- package/adapters/codex/skills/forge-4-backlog/references/pipeline-state-schema.json +0 -191
- package/adapters/codex/skills/forge-5-loop/references/forge-config-schema.json +0 -236
- package/adapters/codex/skills/forge-6-docs/references/pipeline-state-schema.json +0 -191
- package/adapters/codex/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/codex/skills/forge-verify/references/verification-checklists.md +0 -477
- package/adapters/copilot/skills/forge-1-prd/references/pipeline-state-schema.json +0 -191
- package/adapters/copilot/skills/forge-2-tech/references/pipeline-state-schema.json +0 -191
- package/adapters/copilot/skills/forge-3-specs/references/pipeline-state-schema.json +0 -191
- package/adapters/copilot/skills/forge-4-backlog/references/forge-config-schema.json +0 -236
- package/adapters/copilot/skills/forge-4-backlog/references/pipeline-state-schema.json +0 -191
- package/adapters/copilot/skills/forge-5-loop/references/forge-config-schema.json +0 -236
- package/adapters/copilot/skills/forge-6-docs/references/pipeline-state-schema.json +0 -191
- package/adapters/copilot/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/copilot/skills/forge-verify/references/verification-checklists.md +0 -477
- package/adapters/cursor/skills/forge-1-prd/references/pipeline-state-schema.json +0 -191
- package/adapters/cursor/skills/forge-2-tech/references/pipeline-state-schema.json +0 -191
- package/adapters/cursor/skills/forge-3-specs/references/pipeline-state-schema.json +0 -191
- package/adapters/cursor/skills/forge-4-backlog/references/forge-config-schema.json +0 -236
- package/adapters/cursor/skills/forge-4-backlog/references/pipeline-state-schema.json +0 -191
- package/adapters/cursor/skills/forge-5-loop/references/forge-config-schema.json +0 -236
- package/adapters/cursor/skills/forge-6-docs/references/pipeline-state-schema.json +0 -191
- package/adapters/cursor/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/cursor/skills/forge-verify/references/verification-checklists.md +0 -477
- package/adapters/gemini/skills/forge-1-prd/references/pipeline-state-schema.json +0 -191
- package/adapters/gemini/skills/forge-2-tech/references/pipeline-state-schema.json +0 -191
- package/adapters/gemini/skills/forge-3-specs/references/pipeline-state-schema.json +0 -191
- package/adapters/gemini/skills/forge-4-backlog/references/forge-config-schema.json +0 -236
- package/adapters/gemini/skills/forge-4-backlog/references/pipeline-state-schema.json +0 -191
- package/adapters/gemini/skills/forge-5-loop/references/forge-config-schema.json +0 -236
- package/adapters/gemini/skills/forge-6-docs/references/pipeline-state-schema.json +0 -191
- package/adapters/gemini/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/gemini/skills/forge-verify/references/verification-checklists.md +0 -477
- package/adapters/pi/skills/forge-1-prd/references/pipeline-state-schema.json +0 -191
- package/adapters/pi/skills/forge-2-tech/references/pipeline-state-schema.json +0 -191
- package/adapters/pi/skills/forge-3-specs/references/pipeline-state-schema.json +0 -191
- package/adapters/pi/skills/forge-4-backlog/references/forge-config-schema.json +0 -236
- package/adapters/pi/skills/forge-4-backlog/references/pipeline-state-schema.json +0 -191
- package/adapters/pi/skills/forge-5-loop/references/forge-config-schema.json +0 -236
- package/adapters/pi/skills/forge-6-docs/references/pipeline-state-schema.json +0 -191
- package/adapters/pi/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/pi/skills/forge-verify/references/verification-checklists.md +0 -477
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Epic Verification Checklist
|
|
2
|
+
|
|
3
|
+
Detailed checklist for the **epic** verification mode, loaded by the `forge-verifier` leaf subagent dispatched for that mode. Execute EVERY check — do not skip.
|
|
4
|
+
|
|
5
|
+
> **Stack-specific details:** When a stack profile exists at `references/stacks/{stack}.md`, load it alongside this checklist for language-specific check criteria (e.g., what "valid syntax" means, what the type check command is, how module exports work).
|
|
6
|
+
|
|
7
|
+
## Epic Mode Checklist
|
|
8
|
+
|
|
9
|
+
Run `epic-manifest.py validate "{epic}" --specs-dir "{specsDir}" --json` once; map its
|
|
10
|
+
findings to E01/E02/E03/E08. Then perform the judgment checks E04–E07, E09, and E10 by
|
|
11
|
+
reading the manifest, EPIC.md, completed members' specs, and (for E10) sibling members'
|
|
12
|
+
committed tests.
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
16
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
17
|
+
python3 "$R/scripts/epic-manifest.py" validate "{epic}" --specs-dir "{specsDir}" --json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Manifest Integrity (helper-delegated)
|
|
21
|
+
- [ ] **CHECK-E01**: `epic-manifest.json` conforms to `epic-manifest-schema.json`
|
|
22
|
+
(delegated: `validate` reports `schema` / `corrupt-json` findings).
|
|
23
|
+
- [ ] **CHECK-E02**: the `dependsOn` graph is **acyclic** (delegated: `validate` reports
|
|
24
|
+
`cycle`).
|
|
25
|
+
- [ ] **CHECK-E03**: no dangling `dependsOn` / `consumes.from` — every reference names a
|
|
26
|
+
feature in `features[]` (delegated: `validate` reports `dangling-ref`).
|
|
27
|
+
- [ ] **CHECK-E08**: **global name uniqueness** across the specs tree — no feature name
|
|
28
|
+
resolves to more than one feature-shaped dir (delegated: `validate` / `check-name`
|
|
29
|
+
report `duplicate-name` / `ambiguous`). Surfaced non-fatally for manual cleanup.
|
|
30
|
+
|
|
31
|
+
### Charter & Contract Coverage (verifier judgment)
|
|
32
|
+
- [ ] **CHECK-E04**: **charter coverage** — every feature has a non-empty `charter`
|
|
33
|
+
stating scope **and** contract obligations (REQ-EPIC-04).
|
|
34
|
+
- [ ] **CHECK-E05**: each feature has a meaningful `exposes`/`consumes` declaration — flag
|
|
35
|
+
a feature with empty contracts that the narrative implies should have them
|
|
36
|
+
(REQ-EPIC-03). (Empty is *schema-legal* but suspicious for a feature other features
|
|
37
|
+
depend on.)
|
|
38
|
+
- [ ] **CHECK-E06**: **EPIC.md ⇆ manifest contract drift, for completed features only** —
|
|
39
|
+
the contracts in `EPIC.md` match the manifest `exposes`/`consumes`, and a completed
|
|
40
|
+
feature's specs actually deliver what it `exposes`. Drift between EPIC.md prose and the
|
|
41
|
+
manifest, or between the manifest and the built spec, is a finding (REQ-VERIFY-01).
|
|
42
|
+
- [ ] **CHECK-E07**: **back-pointer ⇆ manifest consistency** — every member's
|
|
43
|
+
`.pipeline-state.json` `epic` value names this epic, and every `features[]` entry has a
|
|
44
|
+
matching member directory. On conflict the **manifest wins** (REQ-STATE-01); report, do
|
|
45
|
+
not auto-repair.
|
|
46
|
+
- [ ] **CHECK-E09**: **open epic change requests** — any member whose `.pipeline-state.json`
|
|
47
|
+
carries `epicChangeRequests[]` entries with `status: "open"` is surfaced as a **non-fatal**
|
|
48
|
+
finding (one per open request). Severity keys off `blocksCurrent`: a **blocking** request →
|
|
49
|
+
`error` (decision-bearing: the epic decomposition and an in-flight member disagree, stage
|
|
50
|
+
exits interpose reconcile-first on it, and specs written now would build on a soon-invalid
|
|
51
|
+
premise), a **non-blocking** request → `improvement` (a peer/downstream change to reconcile
|
|
52
|
+
when convenient). Name the request's `kind`, `target`,
|
|
53
|
+
and `rationale`, and point at `/feature-forge:forge-0-epic {epic}` to reconcile. **Report, do
|
|
54
|
+
not repair** (same posture as CHECK-E07). Which members have open requests comes from the
|
|
55
|
+
same `render-status --json` counts the navigator uses (`features[].openEpicChangeRequests` /
|
|
56
|
+
`.blockingEpicChangeRequests`); the per-request `kind`/`target`/`rationale` detail is read
|
|
57
|
+
from the member `.pipeline-state.json` already loaded in Step 2. This is the pre-emptive
|
|
58
|
+
surface for the divergence class CHECK-E06/E07 otherwise catch only after the fact.
|
|
59
|
+
- [ ] **CHECK-E10**: **cross-member shared-state test coupling** (#144). A member that writes or
|
|
60
|
+
migrates a file a *sibling's* committed tests already pin will break the sibling's suite the
|
|
61
|
+
moment it runs — blocking every one of its own commits from a green test gate — yet nothing in
|
|
62
|
+
E04–E09 catches it (contracts cover code symbols, not shared data files). Detect it heuristically,
|
|
63
|
+
per member `M`:
|
|
64
|
+
1. **Collect `M`'s mutated paths.** Take `M`'s `mutatesShared[]` from the manifest if present
|
|
65
|
+
(the authored precision hint). If absent or empty, fall back to grepping `M`'s specs
|
|
66
|
+
(change-maps / "files this writes") and backlog item `execute` steps for project-root-relative
|
|
67
|
+
paths it creates, writes, or migrates (data corpora, generated fixtures, migration outputs —
|
|
68
|
+
not `M`'s own source modules or its own tests).
|
|
69
|
+
2. **Grep sibling tests for reads of those paths.** For every *other* member `S` that is already
|
|
70
|
+
**`complete`** (derived status — its regression suite is live and gating), grep `S`'s committed
|
|
71
|
+
**test** files/globs for a read/import/load of any path in step 1. Use the stack profile
|
|
72
|
+
(`references/stacks/{stack}.md`) for what a test glob looks like in this language.
|
|
73
|
+
3. **Emit the finding.** A hit → a non-fatal `inconsistency` finding: name `M`, the shared path,
|
|
74
|
+
the sibling `S` and the specific test, and **recommend a reconciliation backlog item** on `M`
|
|
75
|
+
(regenerate/re-pin `S`'s fixture, or update `S`'s test to the new shape) scheduled *before*
|
|
76
|
+
`M`'s first mutating item — so the coupling is planned, not discovered mid-loop on a red gate.
|
|
77
|
+
**Report, do not repair** (same posture as CHECK-E07/E09). Degrades to a clean no-op when no
|
|
78
|
+
member declares or greps a shared write, or when no completed sibling reads it — never a
|
|
79
|
+
spurious hard-fail.
|
|
80
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Implementation Verification Checklist
|
|
2
|
+
|
|
3
|
+
Detailed checklist for the **impl** verification mode, loaded by the `forge-verifier` leaf subagent dispatched for that mode. Execute EVERY check — do not skip.
|
|
4
|
+
|
|
5
|
+
> **Stack-specific details:** When a stack profile exists at `references/stacks/{stack}.md`, load it alongside this checklist for language-specific check criteria (e.g., what "valid syntax" means, what the type check command is, how module exports work).
|
|
6
|
+
|
|
7
|
+
## Implementation Mode Checklist
|
|
8
|
+
|
|
9
|
+
### Spec Compliance
|
|
10
|
+
- [ ] **CHECK-I01**: Every file listed in 01-architecture-layout.md exists
|
|
11
|
+
- [ ] **CHECK-I02**: Package.json exports map matches what the spec describes
|
|
12
|
+
- [ ] **CHECK-I03**: Every type in 00-core-definitions.md is implemented
|
|
13
|
+
- [ ] **CHECK-I04**: Every error class is implemented with correct properties
|
|
14
|
+
|
|
15
|
+
### Backlog Completion
|
|
16
|
+
- [ ] **CHECK-I05**: Every backlog item marked "complete" has its acceptance criteria met
|
|
17
|
+
- [ ] **CHECK-I06**: No backlog items are still "pending" or "in-progress"
|
|
18
|
+
- [ ] **CHECK-I07**: Acceptance criteria can be verified by reading the code
|
|
19
|
+
|
|
20
|
+
### Integration
|
|
21
|
+
- [ ] **CHECK-I08**: Import paths work (no broken imports)
|
|
22
|
+
- [ ] **CHECK-I09**: Module exports/entry points re-export everything the spec says they should
|
|
23
|
+
- [ ] **CHECK-I10**: Types shared with other packages are compatible
|
|
24
|
+
- [ ] **CHECK-I11**: Type checking / linting passes for the module (`{typeCheckCommand}` from forge.config.json succeeds)
|
|
25
|
+
- [ ] **CHECK-I12**: Type checking / linting passes for modules that depend on this one
|
|
26
|
+
|
|
27
|
+
### Code Quality
|
|
28
|
+
- [ ] **CHECK-I13**: No placeholder or TODO comments that should have been resolved
|
|
29
|
+
- [ ] **CHECK-I14**: Error handling matches what the specs describe
|
|
30
|
+
- [ ] **CHECK-I15**: No hardcoded values that should be configurable
|
|
31
|
+
- [ ] **CHECK-I16**: Tests exist and pass
|
|
32
|
+
- [ ] **CHECK-I17**: No obvious missing test cases for documented edge cases
|
|
33
|
+
|
|
34
|
+
### Documentation
|
|
35
|
+
- [ ] **CHECK-I18**: Package has a README or the docs directory has been populated
|
|
36
|
+
- [ ] **CHECK-I19**: Exported functions/classes have documentation comments (JSDoc, docstrings, godoc, etc.)
|
|
37
|
+
- [ ] **CHECK-I20**: Configuration options are documented
|
|
38
|
+
|
|
39
|
+
### Runnability
|
|
40
|
+
|
|
41
|
+
> **When these fire:** only at impl-verify **completion** (impl mode runs post-loop), never mid-loop — an early skeleton that only compiles is not punished. **Both degrade gracefully:** a feature with no runnable surface (a pure library with no bootstrap contract) or no configured `smokeCommand` yields an **advisory not-applicable** finding, never a hard fail — the same way a null `{typeCheckCommand}` is handled. These exist because `CHECK-I01..I20` are all static reads + typecheck/lint + "tests exist"; nothing here asserts the assembled application actually **runs**. A bootstrap that is exported and unit-tested (each test calls it manually) but never wired into a runtime entrypoint passes every other check yet serves no real request (#121).
|
|
42
|
+
|
|
43
|
+
- [ ] **CHECK-I21**: **End-to-end smoke passes.** If `smokeCommand` from forge.config.json is set, execute it — it boots the wired entrypoint and drives one happy-path request end-to-end; **pass iff exit 0**. A non-zero exit is an `error` finding (the assembled app does not run — quote the command's failing output). If `smokeCommand` is `null`, this is **advisory**: emit a `not-applicable` finding recommending the user configure a `smokeCommand` so "clean" means "it runs" (never fabricate or guess a command — run only the user-configured one, exactly as `CHECK-I11` runs only a configured `{typeCheckCommand}`).
|
|
44
|
+
- **Prefer the dev runtime the developer actually uses (#149).** Recommend the configured `smokeCommand` boot the app in its **development** mode — the dev server / watch loop / HMR runtime — not only a clean production build. The failure modes that a static typecheck and a prod smoke both miss live in the dev runtime: **module-graph-identity** bugs (a "singleton" duplicated across a re-evaluated module graph, so the initialized instance and the one the request path reads are different objects) and **watch-loop** bugs (an init that fires once but never re-fires on hot reload, or fires on every reload and leaks). A prod build evaluates the graph once and hides both. When the project is served in dev during development, the `smokeCommand` should exercise that same runtime.
|
|
45
|
+
- **For a fix, re-verify in the mode the bug manifested.** When impl-verify runs after a **fix** (not a greenfield build), re-run the smoke in the **same runtime mode where the original bug appeared** — a bug reproduced in dev/watch mode is not proven fixed by a green prod-mode smoke, and vice versa. Note the mode in the finding so "smoke passed" is unambiguous about *which* runtime was exercised.
|
|
46
|
+
- [ ] **CHECK-I22**: **Runtime-required bootstrap has a non-test caller.** Every exported bootstrap / `init*` / singleton-populator the specs mark as **required for runtime** must have ≥1 **non-test** call site on a runtime path — an entrypoint such as `main` / `instrumentation` / a route / a layout / a worker, NOT only test files. Statically grep for each such symbol's references (use the stack profile `references/stacks/{stack}.md` **Runtime Entrypoints & Bootstrap-Wiring Sites** list for what counts as a runtime entrypoint in this language). A symbol that is exported and covered by tests but referenced **only** from test files is a `gap` — the #121 walking-skeleton (bootstrap wired to nothing). Degrades naturally: a feature whose specs mark no bootstrap symbol as runtime-required is `not-applicable`. Weaker than `CHECK-I21` (it proves a call site exists, not that the boot succeeds), so it complements rather than replaces the smoke.
|
|
47
|
+
- [ ] **CHECK-I23**: **Heavy bootstrap wired into a universal startup entry — recommend lazy init** (#149). *Advisory heuristic — a `gap`/`improvement` at most, **never** a hard fail.* When a runtime-required `init`/bootstrap/singleton-populator is wired into a **framework bootstrap entry that runs on every startup** (a Next.js `instrumentation.ts`, an app-server preload/`register` hook, a global setup module) **and** that init pulls in a **large server-only import graph** (DB clients, ORMs, queue/background workers, telemetry exporters, the whole service layer), recommend moving to **lazy initialization at the entry that already loads that graph** — the first route / handler / worker that needs it — rather than eager wiring at the universal entry. Eager wiring drags the heavy graph into every cold start, and in dev into every module re-evaluation (the watch-loop cost `CHECK-I21` also targets). **Detect statically:** from the stack profile's **Runtime Entrypoints & Bootstrap-Wiring Sites** list, identify this stack's universal bootstrap entries; grep those files for imports of the feature's runtime-required bootstrap symbols (`CHECK-I22`) and for the server-only heavy-import markers the profile names. A match → an `improvement`/`gap` finding naming the entry, the heavy graph it pulls, and the lazier call site to move initialization to. Degrades to `not-applicable` when the stack has no universal bootstrap entry, when no heavy init is wired there, or when the profile lists no bootstrap-wiring sites — **report, do not repair.**
|
|
48
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# PRD Verification Checklist
|
|
2
|
+
|
|
3
|
+
Detailed checklist for the **prd** verification mode, loaded by the `forge-verifier` leaf subagent dispatched for that mode. Execute EVERY check — do not skip.
|
|
4
|
+
|
|
5
|
+
> **Stack-specific details:** When a stack profile exists at `references/stacks/{stack}.md`, load it alongside this checklist for language-specific check criteria (e.g., what "valid syntax" means, what the type check command is, how module exports work).
|
|
6
|
+
|
|
7
|
+
## PRD Mode Checklist
|
|
8
|
+
|
|
9
|
+
### Completeness
|
|
10
|
+
- [ ] **CHECK-P01**: All template sections from `references/prd-template.md` are populated
|
|
11
|
+
- [ ] **CHECK-P02**: No TBD or TODO placeholders remain in the document
|
|
12
|
+
- [ ] **CHECK-P03**: Out-of-scope section exists and is specific (not just "everything else")
|
|
13
|
+
- [ ] **CHECK-P04**: Open questions section contains only actionable items (not vague concerns)
|
|
14
|
+
- [ ] **CHECK-P05**: Success criteria are measurable and verifiable
|
|
15
|
+
|
|
16
|
+
### Requirement Quality
|
|
17
|
+
- [ ] **CHECK-P06**: Every requirement has a unique ID (REQ-XXX-NN format)
|
|
18
|
+
- [ ] **CHECK-P07**: Every requirement has a priority assigned (P0/P1/P2)
|
|
19
|
+
- [ ] **CHECK-P08**: Every requirement is testable/verifiable — could you write an acceptance test for it?
|
|
20
|
+
- [ ] **CHECK-P09**: No requirements contain technology decisions (specific libraries, frameworks, or implementation choices) unless clearly labeled as constraints with justification
|
|
21
|
+
- [ ] **CHECK-P10**: User stories cover all identified actors/personas
|
|
22
|
+
|
|
23
|
+
### Non-Functional Requirements
|
|
24
|
+
- [ ] **CHECK-P11**: Non-functional requirements are quantified where applicable (latency targets, uptime SLAs, throughput minimums)
|
|
25
|
+
- [ ] **CHECK-P12**: Security requirements are explicit, not assumed
|
|
26
|
+
- [ ] **CHECK-P13**: Constraints section distinguishes mandates (must) from preferences (should/nice-to-have)
|
|
27
|
+
|
|
28
|
+
### Open-Ended Analysis
|
|
29
|
+
- [ ] **CHECK-P14**: Are there implicit requirements that should be made explicit? (e.g., assumptions about authentication, authorization, data retention)
|
|
30
|
+
- [ ] **CHECK-P15**: Are there requirement conflicts or tensions? (e.g., performance vs. completeness, simplicity vs. flexibility)
|
|
31
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Specs Verification Checklist
|
|
2
|
+
|
|
3
|
+
Detailed checklist for the **specs** verification mode, loaded by the `forge-verifier` leaf subagent dispatched for that mode. Execute EVERY check — do not skip.
|
|
4
|
+
|
|
5
|
+
> **Stack-specific details:** When a stack profile exists at `references/stacks/{stack}.md`, load it alongside this checklist for language-specific check criteria (e.g., what "valid syntax" means, what the type check command is, how module exports work).
|
|
6
|
+
|
|
7
|
+
## Specs Mode Checklist
|
|
8
|
+
|
|
9
|
+
### Requirement Coverage
|
|
10
|
+
- [ ] **CHECK-S01**: Every PRD requirement (REQ-XXX-NN) is referenced by at least one implementation spec
|
|
11
|
+
- [ ] **CHECK-S02**: Every P0 (must-have) requirement has detailed implementation guidance, not just a mention
|
|
12
|
+
- [ ] **CHECK-S03**: Every P1 requirement is at least acknowledged with an implementation approach
|
|
13
|
+
- [ ] **CHECK-S04**: No implementation spec sections exist that don't trace to a PRD requirement or tech-spec decision (orphaned specs indicate scope creep)
|
|
14
|
+
|
|
15
|
+
### Tech Spec ↔ Implementation Spec Consistency
|
|
16
|
+
- [ ] **CHECK-S05**: Every technology decision in the tech spec is reflected in the implementation specs
|
|
17
|
+
- [ ] **CHECK-S06**: Package structure in 01-architecture-layout.md matches what the tech spec describes
|
|
18
|
+
- [ ] **CHECK-S07**: Dependencies listed in the tech spec match those in the architecture spec
|
|
19
|
+
- [ ] **CHECK-S08**: No implementation spec contradicts a tech-spec decision
|
|
20
|
+
|
|
21
|
+
### Type System Integrity
|
|
22
|
+
- [ ] **CHECK-S09**: All type definitions in 00-core-definitions.md are valid syntax in the project's language (not pseudocode)
|
|
23
|
+
- [ ] **CHECK-S10**: All types referenced in other spec docs are defined in 00-core-definitions.md or an explicit external package
|
|
24
|
+
- [ ] **CHECK-S11**: Error classes form a consistent hierarchy with no gaps
|
|
25
|
+
- [ ] **CHECK-S12**: No duplicate or conflicting type definitions across documents
|
|
26
|
+
- [ ] **CHECK-S13**: Every type/interface/struct has documentation comments on every field (JSDoc, docstrings, godoc, etc.)
|
|
27
|
+
|
|
28
|
+
### Cross-Reference Consistency
|
|
29
|
+
- [ ] **CHECK-S14**: All file references between spec documents point to actual files
|
|
30
|
+
- [ ] **CHECK-S15**: Section references (e.g., "see section 3.2 of 02-provider-registry.md") point to actual sections
|
|
31
|
+
- [ ] **CHECK-S16**: Dependency ordering between spec docs is consistent (no circular dependencies)
|
|
32
|
+
- [ ] **CHECK-S17**: Import paths referenced in specs are consistent with the exports map in 01-architecture-layout.md
|
|
33
|
+
|
|
34
|
+
### Error Handling Coverage
|
|
35
|
+
- [ ] **CHECK-S18**: Every operation that can fail has an error type defined
|
|
36
|
+
- [ ] **CHECK-S19**: Error propagation is described: where errors are thrown, caught, transformed, and surfaced
|
|
37
|
+
- [ ] **CHECK-S20**: User-facing error messages are specified (not just error codes)
|
|
38
|
+
- [ ] **CHECK-S21**: Recovery behavior is described for recoverable errors
|
|
39
|
+
|
|
40
|
+
### Integration Point Completeness
|
|
41
|
+
- [ ] **CHECK-S22**: Every package listed in the tech spec's integration section has corresponding detail in the implementation specs
|
|
42
|
+
- [ ] **CHECK-S23**: For each integration: the shared types/contracts are explicitly named
|
|
43
|
+
- [ ] **CHECK-S24**: For each integration: data flow direction is clear
|
|
44
|
+
- [ ] **CHECK-S25**: If integration requires changes to existing packages, those changes are specified
|
|
45
|
+
- [ ] **CHECK-S26**: Import paths match actual package export maps
|
|
46
|
+
|
|
47
|
+
### Edge Cases and Non-Functional
|
|
48
|
+
- [ ] **CHECK-S27**: Concurrent access scenarios are addressed if relevant
|
|
49
|
+
- [ ] **CHECK-S28**: Empty/null/undefined inputs are handled
|
|
50
|
+
- [ ] **CHECK-S29**: Performance-sensitive paths are identified
|
|
51
|
+
- [ ] **CHECK-S30**: Security considerations from PRD are reflected in implementation
|
|
52
|
+
- [ ] **CHECK-S31**: Observability (logging, metrics, tracing) approach is specified if PRD requires it
|
|
53
|
+
- [ ] **CHECK-S32**: Each implementation spec has a clear "public API" section that defines what is exported vs internal
|
|
54
|
+
|
|
55
|
+
### Testing Strategy
|
|
56
|
+
- [ ] **CHECK-S33**: Testing strategy document exists
|
|
57
|
+
- [ ] **CHECK-S34**: Test approach covers unit, integration, and e2e as appropriate
|
|
58
|
+
- [ ] **CHECK-S35**: Mock/fixture strategy is defined for external dependencies
|
|
59
|
+
- [ ] **CHECK-S36**: Coverage targets are stated
|
|
60
|
+
- [ ] **CHECK-S37**: Test fixtures and mocks defined in specs align with real interface shapes from 00-core-definitions.md
|
|
61
|
+
|
|
62
|
+
### Traceability
|
|
63
|
+
- [ ] **CHECK-S38**: Build a complete traceability matrix from every REQ-XXX-NN to the spec document and section that implements it. Any REQ ID not found in at least one spec is a gap finding.
|
|
64
|
+
|
|
65
|
+
> **A quoted foreign requirement id is not an orphan.** A suite may legitimately mention a `REQ-` id it does not own — most often when a spec quotes an antecedent feature's test docstrings verbatim. Such ids may be declared, one per line, in `{resolvedFeatureDir}/.traceability-allowlist` (blank lines and `#` comments ignored), or passed as a repeatable `--allow-orphan REQ-ID` to `scripts/validate-traceability.py`. Allowed ids are reported as `ALLOWED FOREIGN REFERENCES` (`allowed_orphans` under `--json`) rather than silently dropped, and an entry matching nothing is reported as `STALE ALLOWLIST ENTRIES` (`unused_allowlist_entries`), which is advisory and does not fail the check. Before filing an orphaned reference as a finding, check whether it is already declared there — a declared id is a recorded decision, not a defect.
|
|
66
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Tech-Spec Verification Checklist
|
|
2
|
+
|
|
3
|
+
Detailed checklist for the **tech** verification mode, loaded by the `forge-verifier` leaf subagent dispatched for that mode. Execute EVERY check — do not skip.
|
|
4
|
+
|
|
5
|
+
> **Stack-specific details:** When a stack profile exists at `references/stacks/{stack}.md`, load it alongside this checklist for language-specific check criteria (e.g., what "valid syntax" means, what the type check command is, how module exports work).
|
|
6
|
+
|
|
7
|
+
## Tech-Spec Mode Checklist
|
|
8
|
+
|
|
9
|
+
### Requirement Traceability
|
|
10
|
+
- [ ] **CHECK-T01**: Every tech decision traces to at least one PRD requirement (REQ-XXX-NN)
|
|
11
|
+
- [ ] **CHECK-T02**: No tech decisions contradict PRD constraints
|
|
12
|
+
- [ ] **CHECK-T03**: Every P0 PRD requirement has a corresponding tech decision or is explicitly deferred with rationale
|
|
13
|
+
|
|
14
|
+
### Integration Analysis
|
|
15
|
+
- [ ] **CHECK-T04**: Integration analysis section is complete — all packages identified
|
|
16
|
+
- [ ] **CHECK-T05**: Import paths and function signatures are verified against actual source code
|
|
17
|
+
- [ ] **CHECK-T06**: For each integration point: shared types/contracts are explicitly named
|
|
18
|
+
- [ ] **CHECK-T07**: For each integration point: data flow direction is clear
|
|
19
|
+
- [ ] **CHECK-T08**: Changes required to existing packages are specified
|
|
20
|
+
|
|
21
|
+
### Design Quality
|
|
22
|
+
- [ ] **CHECK-T09**: Alternatives considered for major decisions (not just "we chose X")
|
|
23
|
+
- [ ] **CHECK-T10**: Error handling strategy is defined (error types, propagation, recovery)
|
|
24
|
+
- [ ] **CHECK-T11**: Testing approach is specified (unit, integration, e2e strategy)
|
|
25
|
+
- [ ] **CHECK-T12**: Data model aligns with PRD data requirements
|
|
26
|
+
|
|
27
|
+
### Completeness
|
|
28
|
+
- [ ] **CHECK-T13**: Package/module structure is defined with exports map
|
|
29
|
+
- [ ] **CHECK-T14**: Configuration approach is specified
|
|
30
|
+
- [ ] **CHECK-T15**: Migration/deployment considerations are addressed if applicable
|
|
31
|
+
|
|
32
|
+
### Open-Ended Analysis
|
|
33
|
+
- [ ] **CHECK-T16**: Are there integration points that could cause implementation surprises? (e.g., undocumented behavior, version incompatibilities, missing APIs)
|
|
34
|
+
- [ ] **CHECK-T17**: Are there scalability concerns unaddressed by the current design? (e.g., data growth, concurrent users, resource limits)
|
|
35
|
+
|
|
@@ -18,7 +18,7 @@ You have READ-ONLY access. You cannot and should not modify any files. Your outp
|
|
|
18
18
|
|
|
19
19
|
1. Read the pipeline state file to understand what stage the feature is at
|
|
20
20
|
2. Load all relevant artifacts for the current verification mode
|
|
21
|
-
3.
|
|
21
|
+
3. Read **only your dispatched mode's checklist** — `references/verification-checklists/{mode}.md` (the parent's dispatch prompt names your `{mode}`) — and execute every check in it. Do **not** read the other five mode files or `references/findings-template.md`; those are for other modes and for the parent orchestrator respectively.
|
|
22
22
|
4. Return structured findings as your response in the Output Format specified below
|
|
23
23
|
5. Generate a fix plan suitable for a fresh agent to execute
|
|
24
24
|
|
|
@@ -4,13 +4,18 @@
|
|
|
4
4
|
"title": "Feature Forge Epic Manifest",
|
|
5
5
|
"description": "Canonical record of an epic's membership, dependency edges, charters, and contracts. Lives at {specsDir}/{epic}/epic-manifest.json. Carries NO per-feature status field (REQ-STATE-02); status is derived live from each member's .pipeline-state.json.",
|
|
6
6
|
"type": "object",
|
|
7
|
-
"required": ["schemaVersion", "epic", "description", "status", "narrativeDoc", "createdAt", "updatedAt", "features"],
|
|
7
|
+
"required": ["schemaVersion", "revision", "epic", "description", "status", "narrativeDoc", "createdAt", "updatedAt", "features"],
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
10
|
"schemaVersion": {
|
|
11
11
|
"const": 1,
|
|
12
12
|
"description": "Schema evolution guard."
|
|
13
13
|
},
|
|
14
|
+
"revision": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"minimum": 1,
|
|
17
|
+
"description": "Canonical artifact revision for epic-scoped verification freshness."
|
|
18
|
+
},
|
|
14
19
|
"epic": {
|
|
15
20
|
"type": "string",
|
|
16
21
|
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"autoVerifyStages": {
|
|
76
76
|
"type": "object",
|
|
77
77
|
"default": {},
|
|
78
|
-
"description": "Per-stage overrides for autoVerify. Maps a production stage id to a boolean; the effective value for a stage is autoVerifyStages[stage] if present, else autoVerify. Keys are constrained to the five verify-capable stages so a typo (e.g. 'forge-1-prod') is
|
|
78
|
+
"description": "Per-stage overrides for autoVerify. Maps a production stage id to a boolean; the effective value for a stage is autoVerifyStages[stage] if present, else autoVerify. Keys are constrained to the five verify-capable stages, so a typo (e.g. 'forge-1-prod') is reported as an ignored key rather than silently taking no effect. It does not fail the command. forge-6-docs has no verify step and is not a valid key.",
|
|
79
79
|
"propertyNames": {
|
|
80
80
|
"enum": ["forge-1-prd", "forge-2-tech", "forge-3-specs", "forge-4-backlog", "forge-5-loop"]
|
|
81
81
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"currentStage": {
|
|
34
34
|
"type": "string",
|
|
35
35
|
"enum": ["forge-1-prd", "forge-2-tech", "forge-3-specs", "forge-4-backlog", "forge-5-loop", "forge-6-docs", "complete", "forge-verify-prd", "forge-verify-tech", "forge-verify-specs", "forge-verify-backlog", "forge-verify-impl", "forge-0-epic", "forge-verify-epic"],
|
|
36
|
-
"description": "Where the pipeline IS: the most recently started stage — its `stages[<currentStage>].status` is `in-progress` while that stage is being authored, then `complete` once its artifacts are committed. A stage skill sets this to its own id when it starts. This is deliberately NOT 'the next stage to run': the next stage is DERIVED, never stored — it is the first production stage whose `stages[].status` is not `complete` (see `next_stage()` in forge-session.py, surfaced as the navigator/doctor `nextStage`). Consumers that need 'what runs next' compute it from `stages[].status`, not from this field. `complete`
|
|
36
|
+
"description": "Where the pipeline IS: the most recently started stage — its `stages[<currentStage>].status` is `in-progress` while that stage is being authored, then `complete` once its artifacts are committed. A stage skill sets this to its own id when it starts. This is deliberately NOT 'the next stage to run': the next stage is DERIVED, never stored — it is the first production stage whose `stages[].status` is not `complete` (see `next_stage()` in forge-session.py, surfaced as the navigator/doctor `nextStage`). Consumers that need 'what runs next' compute it from `stages[].status`, not from this field. `complete` is a LEGACY enum value, retained so pre-0.14 state files still validate: no writer produces it (the `state-*` verbs are the only writers, and only `state-enter` touches this field, setting it to the stage being entered). A finished pipeline therefore records the last stage it started — `forge-6-docs` — and 'the whole pipeline is done' is DERIVED too: `next_stage()` returns null (surfaced as `nextStage: null` / `complete: true`). Never test this field against `complete` to decide whether a pipeline finished. (Legacy/absent value: tools fall back to the derived next stage for display only — `build_rows` in forge-session.py.)"
|
|
37
37
|
},
|
|
38
38
|
"notes": {
|
|
39
39
|
"type": "string",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"properties": {
|
|
172
172
|
"status": {
|
|
173
173
|
"type": "string",
|
|
174
|
-
"enum": ["pending", "passed", "findings-reported", "findings-applied", "skipped"]
|
|
174
|
+
"enum": ["pending", "auto-verify-pending", "passed", "findings-reported", "findings-applied", "skipped"]
|
|
175
175
|
},
|
|
176
176
|
"findingsFile": {
|
|
177
177
|
"type": ["string", "null"],
|
|
@@ -184,7 +184,9 @@
|
|
|
184
184
|
"verifiedAt": { "type": ["string", "null"], "format": "date-time" },
|
|
185
185
|
"fixedAt": { "type": ["string", "null"], "format": "date-time" },
|
|
186
186
|
"commitHash": { "type": ["string", "null"], "description": "Git commit SHA of the verify/fix artifact commit. Recorded via the two-commit Git Commit Protocol (shared-conventions.md) so it points at the artifact commit, never an orphaned amend." },
|
|
187
|
-
"verifiedStageVersion": { "type": ["integer", "null"], "description": "The production stage's `version` at the moment this verify was resolved. The navigator's freshness ledger compares it to the stage's current `version`: equal means the verify is fresh; a mismatch (artifact revised since) or an absent field (legacy state) means stale, so auto-verify re-fires. Recorded by forge-verify/forge-fix when writing a passed/findings-applied status." }
|
|
187
|
+
"verifiedStageVersion": { "type": ["integer", "null"], "description": "The production stage's `version` at the moment this verify was resolved. The navigator's freshness ledger compares it to the stage's current `version`: equal means the verify is fresh; a mismatch (artifact revised since) or an absent field (legacy state) means stale, so auto-verify re-fires. Recorded by forge-verify/forge-fix when writing a passed/findings-applied status." },
|
|
188
|
+
"scheduledAt": { "type": ["string", "null"], "format": "date-time", "description": "UTC ISO-8601 timestamp at which unattended in-stage verification was scheduled for this entry. Written alongside the `auto-verify-pending` status and DELETED (not nulled) by any terminal result, so an absent field means 'not scheduled'." },
|
|
189
|
+
"scheduledStageVersion": { "type": ["integer", "null"], "minimum": 1, "description": "The artifact revision current when verification was scheduled — the production stage's `version` for a feature, the epic manifest's `revision` for an epic. Makes rescheduling idempotent (an identical revision does not rewrite the entry) and lets a read tell debt owed on the current artifact from debt stranded on an older one. Deleted by any terminal result." }
|
|
188
190
|
}
|
|
189
191
|
}
|
|
190
192
|
}
|
|
@@ -133,6 +133,8 @@ mkdir -p "<specsDir>"
|
|
|
133
133
|
If the host is Claude (the `AskUserQuestion` tool is available), also ensure the Claude-framed variant:
|
|
134
134
|
|
|
135
135
|
```bash
|
|
136
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
137
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
136
138
|
[ -f "<specsDir>/CLAUDE.md" ] || cp "$R/references/templates/specs-hygiene/CLAUDE.md" "<specsDir>/CLAUDE.md"
|
|
137
139
|
```
|
|
138
140
|
|
|
@@ -183,7 +185,49 @@ If the helper is unavailable (a non-Claude host without the resolver), skip this
|
|
|
183
185
|
|
|
184
186
|
## Pipeline State Protocol
|
|
185
187
|
|
|
186
|
-
|
|
188
|
+
Pipeline state is written by the `state-*` verbs of `scripts/forge-session.py` — never by hand. Each verb writes `{resolvedFeatureDir}/.pipeline-state.json` atomically, conforms to `references/pipeline-state-schema.json` by construction, and refreshes `updatedAt` for you, so no stage needs to read the schema in order to author state.
|
|
189
|
+
|
|
190
|
+
**Epic members MUST pass `--epic`.** Every `state-*` verb takes an optional `--epic "{epic}"`, and it is **required** whenever the feature is an epic member (its resolved directory is `{specsDir}/{epic}/{feature}/`, i.e. its state carries an `epic` back-pointer) — append it to **every** `state-*` call in this file and in every skill body, exactly as the `state-ecr` calls already do. Omit it only for a standalone feature. Without it the verb resolves the bare name itself and, mirroring `epic-manifest.py resolve`, refuses with exit 2 whenever more than one directory carries a state file rather than guessing which feature to write — so a same-named standalone feature can never be mutated in a member's place.
|
|
191
|
+
|
|
192
|
+
If a `state-*` verb exits 2, surface the plain `Error:` line from stderr verbatim, do **not** proceed to the next step of the surrounding protocol, and do **not** hand-author the JSON as a workaround. The stage remains resumable because the entry stamp is already on disk — re-run the verb once the cause is fixed.
|
|
193
|
+
|
|
194
|
+
**The eight `state-*` verbs.** `state-enter` (Stage-Entry Guard), `state-artifact` (incremental artifact tracking), `state-complete` (Git Commit Protocol), `state-branch` (Branch Setup and Branch Reconciliation), `state-note` (the Immediate Downstream Note below, and the optional completion note at stage closure), `state-decision` (deferred decisions), `state-ecr` (epic change requests), and `state-verify` (one `forge-verify-*` verification transition — below). The `--epic` member requirement and the exit-2 failure protocol above apply to **every** one of them, `state-verify` included; no verify entry is ever hand-authored.
|
|
195
|
+
|
|
196
|
+
### `state-verify` — verification results and provenance
|
|
197
|
+
|
|
198
|
+
`state-verify` writes exactly one `stages.forge-verify-{token}` entry — the verification result for the production stage named by `--stage` — plus the top-level `updatedAt`, and nothing else. `--stage` takes the **served production stage** (`forge-0-epic` through `forge-5-loop`; `forge-6-docs` has no verification token and is rejected). Add `--epic "{epic}"` when the feature is an epic member — required, per the member rule above. Result mode passes `--status` (`auto-verify-pending`, `passed`, `findings-reported`, `findings-applied`, or `skipped`) with whatever `--findings-file`, `--findings-count`, and `--verified-stage-version` that status requires; contradictory metadata is refused before any write. `passed` may additionally carry `--findings-file` + `--findings-count` together for an **advisory-only** report (`inconsistency`/`improvement` findings only, per forge-verify's severity floor) — the stage resolves without a fix round and the report stays attached:
|
|
199
|
+
|
|
200
|
+
**`auto-verify-pending` is not a skill-facing status.** It is written by `stage-exit`'s scheduling boundary, which records the debt automatically when auto-verify is effective for a stage. The value is accepted on this CLI so the entry stays inspectable and repairable, not so a skill can hand-schedule verification: no skill body and no reference passes it, and none should. Every other status in the list is the recorded *result* of a verification that ran (or was explicitly skipped); this one records that one was *owed*.
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
204
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
205
|
+
python3 "$R/scripts/forge-session.py" state-verify \
|
|
206
|
+
--feature "{feature}" --stage "{served-production-stage}" --status "<status>" \
|
|
207
|
+
--specs-dir "{specsDir}"
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Provenance follows the same two-commit sequence as `state-complete`: the result transition above writes `commitHash: null`, Commit 1 records the findings document and the state, and a second `state-verify` call records the full 40-hex hash of Commit 1 and touches nothing else (never `--amend`; an abbreviated hash is refused rather than expanded). Add `--epic "{epic}"` for an epic member — required, per the member rule above:
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
214
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
215
|
+
python3 "$R/scripts/forge-session.py" state-verify \
|
|
216
|
+
--feature "{feature}" --stage "{served-production-stage}" \
|
|
217
|
+
--commit-hash "$(git rev-parse HEAD)" --specs-dir "{specsDir}"
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Epic-scoped verification is the single exception to the member rule: with `--stage forge-0-epic`, `--feature` names the **epic** and `--epic` must be absent or exactly equal to it. That call writes `{specsDir}/{epic}/.epic-state.json` and never a member's `.pipeline-state.json`, and its freshness version is the epic manifest's `revision`, never a member's stage version:
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
224
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
225
|
+
python3 "$R/scripts/forge-session.py" state-verify \
|
|
226
|
+
--feature "{epic}" --stage forge-0-epic --status "<status>" \
|
|
227
|
+
--specs-dir "{specsDir}"
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
On exit 2 the verification result is **not** recorded: surface the `Error:` line verbatim, name the feature (and epic), and do not claim the verification was persisted or advance past it.
|
|
187
231
|
|
|
188
232
|
### Staleness Detection (Read-Time)
|
|
189
233
|
|
|
@@ -193,6 +237,31 @@ When loading upstream artifacts as prerequisites, check `basedOnVersions` in the
|
|
|
193
237
|
|
|
194
238
|
Frame the choice with its cost: re-running re-derives this stage from the current upstream (safest, but discards any hand-edits to this stage's artifacts); proceeding stale is faster but risks baking outdated assumptions into everything downstream. Recommend re-running unless the user knows the upstream change doesn't affect this stage.
|
|
195
239
|
|
|
240
|
+
## Immediate Downstream Note (Parking Lot)
|
|
241
|
+
|
|
242
|
+
When an interview raises a concern that belongs to a *later stage of this same feature*, acknowledge it and persist it **immediately, at the moment it is raised** — not at stage closure — by running `state-note` with a concise one-line statement of the concern. Add `--epic "{epic}"` when this feature is an epic member — required, per the Pipeline State Protocol above; omitting it for a member is an error and must never be allowed to fall back to a same-named flat feature.
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
246
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
247
|
+
python3 "$R/scripts/forge-session.py" state-note \
|
|
248
|
+
--feature "{feature}" --note "<concise downstream concern>" \
|
|
249
|
+
--specs-dir "{specsDir}"
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
`state-note` **overwrites** the single top-level `notes` string — it does not append. To preserve an earlier note, read the current `notes` value out of the feature's `.pipeline-state.json` first and pass one combined concise string in a single `--note`; never edit or round-trip the JSON by hand. This interview-time call is separate from the optional completion note offered at stage closure and must not be deferred until then — a session that ends before closure would otherwise lose the concern entirely.
|
|
253
|
+
|
|
254
|
+
On `UsageError`/exit 2, surface the `Error:` line verbatim together with the named feature (and epic) and the recovery instruction, and **stop claiming the concern was recorded** — it was not. Epic *decomposition* changes are not notes: they go through `state-ecr` into `epicChangeRequests`, never into `notes`.
|
|
255
|
+
|
|
256
|
+
## Verify Capability
|
|
257
|
+
|
|
258
|
+
Skills that close a stage pass `--verify-capability interactive|manual` to `stage-exit`. The full determination rule, the Standard Verify Gate, and the recovery path live in `references/stage-exit-protocol.md`; the two facts that are most often gotten wrong:
|
|
259
|
+
|
|
260
|
+
- **Dispatch capability is *permitted* dispatch, not a listed tool.** The question is "**may I dispatch `forge-verifier` right now**", not "is a subagent-dispatch tool in my tool surface". A session can carry a standing host instruction against dispatching subagents unless the user asked; such instructions are injected by the harness, sit outside this project's control, and outrank skill prose. Classify on permission, up front.
|
|
261
|
+
- **A consent requirement is `interactive`, not `manual`.** When dispatch is barred only *unless the user asked* and a question mechanism is available, pass `interactive`: the gate's own affirmative choice supplies the missing user request. Pass `manual` only when there is **no** question mechanism **and** **no** permitted dispatch.
|
|
262
|
+
|
|
263
|
+
A bar on unsolicited dispatch is never grounds to skip verification, and never grounds to fence the production successor while verification is unresolved. On the `runInStageVerify: true` path the emitted `verifyGate` stays `none`: reuse the Standard Verify Gate block for consent with **choice 2 omitted** (auto-verify is already effective, so "enable auto-verify going forward" is a no-op), leaving exactly two choices: *Verify now* (recommended) and *Skip for now*. The clean-room `forge-verifier` is **dispatched on the affirmative choice**, never merely printed for the user to run later; *Skip for now* is persisted as an explicit `skipped` before any advancing block.
|
|
264
|
+
|
|
196
265
|
## Branch Setup
|
|
197
266
|
|
|
198
267
|
Invoke this block at the **very start** of a pipeline entry point — `forge-1-prd` (standalone feature) and `forge-0-epic` (epic) — **before** any directory resolution or interview, so the rest of the run lands on the intended branch. `{label}` is the feature name (forge-1-prd) or epic name (forge-0-epic); `{scope}` is `feature` or `epic` correspondingly.
|
|
@@ -214,7 +283,16 @@ Invoke this block at the **very start** of a pipeline entry point — `forge-1-p
|
|
|
214
283
|
- **Create** → `git switch -c {branchPrefix}{label}` (or `git checkout -b` if `switch` is unavailable). If the branch already exists, `git switch {branchPrefix}{label}`.
|
|
215
284
|
- **Stay** → proceed on the default branch; note that subsequent commits (and any `forge-5-loop` run) will land directly on `{defaultBranch}`.
|
|
216
285
|
|
|
217
|
-
**Record the branch.** After this block resolves,
|
|
286
|
+
**Record the branch.** After this block resolves, record the resulting branch name in the feature's top-level `branch` field by running `state-branch` (create/update it when the state file is first written for this stage). Emit the call **once the feature directory exists** — i.e. after Feature Directory Resolution and the Entry Stamp, **not** at this block: Branch Setup runs at the very start of the entry point, before any directory resolution, and a brand-new standalone feature may have no directory yet. Add `--epic "{epic}"` to the call when this feature is an epic member — required, per the Pipeline State Protocol.
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
290
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
291
|
+
python3 "$R/scripts/forge-session.py" state-branch \
|
|
292
|
+
--feature "{feature}" --branch "<name>" --specs-dir "{specsDir}"
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
Downstream stages and `forge-5-loop` read it to detect drift back onto the default branch.
|
|
218
296
|
|
|
219
297
|
## Branch Reconciliation
|
|
220
298
|
|
|
@@ -227,10 +305,19 @@ python3 "$R/scripts/forge-session.py" reconcile-branch --feature "{feature}" --s
|
|
|
227
305
|
```
|
|
228
306
|
|
|
229
307
|
Act on the emitted `action` (source of truth is where the state actually resolves, not the recorded field):
|
|
230
|
-
- **`adopt-current`** — you are on a non-default topic branch where the state resolves, and the recorded `branch` differs (a stale/imposed value).
|
|
308
|
+
- **`adopt-current`** — you are on a non-default topic branch where the state resolves, and the recorded `branch` differs (a stale/imposed value). Run `state-branch` (below) to write `newBranch` into the state `branch` field, with a **visible one-line note** ("recorded branch was `{stateBranch}`; work is on `{currentBranch}` — updating to match") — never silently, and **never push the user back** to the recorded branch (offer that only as a plain alternative).
|
|
231
309
|
- **`warn-drift`** — you are on the **default** branch and the state records a topic branch. Via `AskUserQuestion`, strongly recommend creating/switching to `{branchPrefix}{feature}` (then record it), still allowing **proceed on the default branch**. Never hard-stop.
|
|
232
310
|
- **`none`** / **`not-resolved`** — nothing to do; proceed.
|
|
233
311
|
|
|
312
|
+
The `adopt-current` write, with the portable plugin-root prelude. Add `--epic "{epic}"` when this feature is an epic member — required, per the Pipeline State Protocol:
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
316
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
317
|
+
python3 "$R/scripts/forge-session.py" state-branch \
|
|
318
|
+
--feature "{feature}" --branch "{newBranch}" --specs-dir "{specsDir}"
|
|
319
|
+
```
|
|
320
|
+
|
|
234
321
|
If the helper is unavailable (non-Claude host without the resolver), fall back to the manual check: current branch differs from recorded → adopt the current branch unless it is the default, in which case recommend creating `{branchPrefix}{feature}`.
|
|
235
322
|
|
|
236
323
|
## Git Commit Protocol
|
|
@@ -240,14 +327,29 @@ When `gitCommitAfterStage` is true, follow this exact order to avoid state incon
|
|
|
240
327
|
**Why two commits.** The stage's `.pipeline-state.json` is itself part of the staged commit, but the stage's `commitHash` cannot be known until *after* that commit is made. Recording it *inside* the same commit is a chicken-and-egg with no single-commit solution. Resolve it with a **deterministic two-commit sequence**, and **never** with `git commit --amend`: amending rewrites HEAD, so a hash captured before the amend points at an orphaned commit that is not in the final history (the exact defect this protocol exists to prevent).
|
|
241
328
|
|
|
242
329
|
1. **Stage specific files only:** `git add {specsDir}/{feature}/` — never use `git add -A` or `git add .`
|
|
243
|
-
2. **Commit 1 — artifacts + state, hash not yet known:**
|
|
244
|
-
3. **If Commit 1 succeeds — Commit 2 records the hash:** Capture the hash of Commit 1 (`git rev-parse HEAD`)
|
|
245
|
-
4. **If Commit 1 fails:** do NOT update pipeline state to complete. Report the error to the user and leave state as `in-progress` so the stage can be resumed. Common failure causes:
|
|
330
|
+
2. **Commit 1 — artifacts + state, hash not yet known:** Run `state-complete --feature {feature} --stage {stage} --version N …` (which sets this stage's `status: "complete"`, `completedAt`, `version`, `basedOnVersions`, `artifacts` and `commitHash: null`, and applies the downstream staleness cascade), then `git commit -m "{commitPrefix}({feature}): <action>"`. This is the stage's **artifact commit**; its hash is the provenance hash callers rely on.
|
|
331
|
+
3. **If Commit 1 succeeds — Commit 2 records the hash:** Capture the hash of Commit 1 (`git rev-parse HEAD`) by running `state-complete --feature {feature} --stage {stage} --version N --commit-hash $(git rev-parse HEAD)`, which writes it into this stage's `commitHash` and touches nothing else, then commit only that one-line change: `git add {specsDir}/{feature}/.pipeline-state.json && git commit -m "{commitPrefix}({feature}): record stage commit hash"`. The stored `commitHash` now points at the artifact commit (Commit 1) — never at Commit 2, and never at an orphaned amend. The working tree is clean afterward, so the next stage's dirty-tree check passes.
|
|
332
|
+
4. **If Commit 1 fails:** do NOT update pipeline state to complete. Report the error to the user and leave state as `in-progress` so the stage can be resumed. Do that with `state-complete --feature {feature} --stage {stage} --version N --resumable`, which records **only** `status` — no `completedAt`, no version bump, no `basedOnVersions`/`artifacts`, no `commitHash` reset, and no staleness cascade, so the stage stays resumable. (`--version` is still REQUIRED by argparse and must be passed even though `--resumable` does not write it; omitting it makes the recovery command exit 2 every time.) Common failure causes:
|
|
246
333
|
- **Pre-commit hook failure:** Report the hook output. Never use `--no-verify` to bypass. Help the user fix the underlying issue.
|
|
247
334
|
- **Merge conflicts:** Report conflicting files. Suggest resolution steps appropriate to the conflict.
|
|
248
|
-
- **Nothing to commit:** If all artifacts were already committed, this is fine — mark the stage `complete`, leave `commitHash` at its existing value (or `null` if there was never an artifact commit), and skip Commit 2. There is no new artifact commit to record.
|
|
335
|
+
- **Nothing to commit:** If all artifacts were already committed, this is fine — mark the stage `complete`, leave `commitHash` at its existing value (or `null` if there was never an artifact commit), and skip Commit 2. Pass `--preserve-commit-hash` on the Commit-1 `state-complete` call so the recorded hash is left alone instead of being reset to `null`. There is no new artifact commit to record.
|
|
249
336
|
5. **Never** use `git add -A`, `--amend`, `--no-verify`, or `--force` flags
|
|
250
337
|
|
|
338
|
+
The two `state-complete` calls, with the portable plugin-root prelude. Add `--epic "{epic}"` to each when this feature is an epic member — required, per the Pipeline State Protocol:
|
|
339
|
+
|
|
340
|
+
```bash
|
|
341
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
342
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
343
|
+
# Commit 1 — before `git commit`
|
|
344
|
+
python3 "$R/scripts/forge-session.py" state-complete \
|
|
345
|
+
--feature "{feature}" --stage "{stage}" --version {n} \
|
|
346
|
+
--based-on "<upstream>=<n>" --artifact "<file>" --specs-dir "{specsDir}"
|
|
347
|
+
# Commit 2 — after Commit 1 lands, so its hash exists
|
|
348
|
+
python3 "$R/scripts/forge-session.py" state-complete \
|
|
349
|
+
--feature "{feature}" --stage "{stage}" --version {n} \
|
|
350
|
+
--commit-hash "$(git rev-parse HEAD)" --specs-dir "{specsDir}"
|
|
351
|
+
```
|
|
352
|
+
|
|
251
353
|
## Stage-Entry Guard
|
|
252
354
|
|
|
253
355
|
Invoke this block at the **start of an authoring stage** (`forge-1-prd`..`forge-4-backlog`), **after** Feature Directory Resolution and **before** any interview or (re-)authoring. It prevents a re-entered stage — an injected skill body or a re-invoked `Skill` — from blindly re-running the interview over an in-progress or already-complete draft. `{stage}` is the invoking skill's id (e.g. `forge-2-tech`).
|
|
@@ -263,16 +365,27 @@ Invoke this block at the **start of an authoring stage** (`forge-1-prd`..`forge-
|
|
|
263
365
|
|
|
264
366
|
3. **Re-authoring** (`status: "complete"` or `"stale"`) — a finished draft exists. Warn via `AskUserQuestion` before overwriting: "A completed {stage} artifact already exists for '{feature}' (v{n}{, marked stale}). Continuing will create a new version. Proceed?" On confirm, proceed to the Entry Stamp and author a new version (the version increments at exit, per that stage's Update-Pipeline-State step).
|
|
265
367
|
|
|
266
|
-
**Entry Stamp** (fresh, restart, and re-author paths — NOT the resume path). Before authoring, write
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
368
|
+
**Entry Stamp** (fresh, restart, and re-author paths — NOT the resume path). Before authoring, record the entry stamp by running `state-enter` — one atomic write that sets `stages.{stage}.status` → `"in-progress"`, `stages.{stage}.startedAt` → current ISO-8601 UTC timestamp, top-level `currentStage` → `"{stage}"` (where the pipeline IS, per O1), and refreshes `updatedAt`. Add `--epic "{epic}"` when this feature is an epic member — required, per the Pipeline State Protocol:
|
|
369
|
+
|
|
370
|
+
```bash
|
|
371
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
372
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
373
|
+
python3 "$R/scripts/forge-session.py" state-enter \
|
|
374
|
+
--feature "{feature}" --stage "{stage}" --specs-dir "{specsDir}"
|
|
375
|
+
```
|
|
270
376
|
|
|
271
377
|
This write is **left uncommitted**: it is staged and committed as part of this stage's existing exit commit (Git Commit Protocol), so no extra commit is needed at entry. If the run is interrupted after the stamp but before the exit commit, the marker survives on disk (uncommitted) and the next entry classifies as **Interrupted** — which is exactly the intent.
|
|
272
378
|
|
|
273
379
|
**Force Mode.** When `--force` is passed, skip the interactive gate: do not prompt for resume-vs-restart or the re-author warning. Treat entry as a fresh restart — apply the Entry Stamp and author. (`--force` already skips prerequisite checks; here it likewise bypasses the self-stage gate. Existing on-disk artifacts are still loaded per Force Mode.)
|
|
274
380
|
|
|
275
|
-
**Incremental artifact tracking:** When a stage writes multiple files (e.g. forge-3-specs writing a suite of spec documents),
|
|
381
|
+
**Incremental artifact tracking:** When a stage writes multiple files (e.g. forge-3-specs writing a suite of spec documents), run `state-artifact --feature {feature} --stage {stage} --path <file>` after writing each file — not just at stage completion. This is what makes the Interrupted inventory above precise about which files were successfully written. Add `--epic "{epic}"` when this feature is an epic member — required, per the Pipeline State Protocol.
|
|
382
|
+
|
|
383
|
+
```bash
|
|
384
|
+
R="$(bash -c 'for d in "${CLAUDE_PLUGIN_ROOT:-}" "$HOME"/.claude/skills/feature-forge "$HOME"/.claude/plugins/cache/*/feature-forge/* "$HOME"/.claude/plugins/*/feature-forge "$HOME"/.agents/skills/feature-forge ./.agents/skills/feature-forge; do [ -x "$d/scripts/forge-root.sh" ] && exec "$d/scripts/forge-root.sh"; done')"
|
|
385
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
386
|
+
python3 "$R/scripts/forge-session.py" state-artifact \
|
|
387
|
+
--feature "{feature}" --stage "{stage}" --path "<file>" --specs-dir "{specsDir}"
|
|
388
|
+
```
|
|
276
389
|
|
|
277
390
|
## Stage-Completion Re-check
|
|
278
391
|
|