@garygentry/feature-forge 0.3.1 → 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/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 +4 -2
- package/adapters/claude/references/shared-conventions.md +63 -0
- package/adapters/claude/references/stage-exit-protocol.md +344 -140
- package/adapters/claude/scripts/epic-manifest.py +413 -87
- package/adapters/claude/scripts/forge-bootstrap.py +57 -5
- package/adapters/claude/scripts/forge-session.py +3136 -139
- package/adapters/claude/scripts/validate-traceability.py +86 -5
- package/adapters/claude/skills/forge/SKILL.md +7 -6
- package/adapters/claude/skills/forge/references/pipeline-state-schema.json +4 -2
- package/adapters/claude/skills/forge/references/shared-conventions.md +63 -0
- package/adapters/claude/skills/forge/references/stage-exit-protocol.md +344 -140
- package/adapters/claude/skills/forge-0-epic/SKILL.md +7 -2
- 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 +4 -2
- package/adapters/claude/skills/forge-0-epic/references/shared-conventions.md +63 -0
- package/adapters/claude/skills/forge-0-epic/references/stage-exit-protocol.md +344 -140
- package/adapters/claude/skills/forge-1-prd/SKILL.md +14 -3
- package/adapters/claude/skills/forge-1-prd/references/shared-conventions.md +63 -0
- package/adapters/claude/skills/forge-1-prd/references/stage-exit-protocol.md +344 -140
- package/adapters/claude/skills/forge-2-tech/SKILL.md +13 -3
- package/adapters/claude/skills/forge-2-tech/references/shared-conventions.md +63 -0
- package/adapters/claude/skills/forge-2-tech/references/stage-exit-protocol.md +344 -140
- package/adapters/claude/skills/forge-3-specs/SKILL.md +4 -2
- package/adapters/claude/skills/forge-3-specs/references/shared-conventions.md +63 -0
- 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 +344 -140
- package/adapters/claude/skills/forge-4-backlog/SKILL.md +16 -3
- package/adapters/claude/skills/forge-4-backlog/references/shared-conventions.md +63 -0
- package/adapters/claude/skills/forge-4-backlog/references/stage-exit-protocol.md +344 -140
- package/adapters/claude/skills/forge-5-loop/SKILL.md +40 -42
- package/adapters/claude/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/claude/skills/forge-5-loop/references/runner-contract.md +4 -2
- package/adapters/claude/skills/forge-5-loop/references/shared-conventions.md +63 -0
- package/adapters/claude/skills/forge-5-loop/references/stage-exit-protocol.md +344 -140
- package/adapters/claude/skills/forge-6-docs/SKILL.md +48 -4
- package/adapters/claude/skills/forge-6-docs/references/shared-conventions.md +63 -0
- 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 +63 -0
- package/adapters/claude/skills/forge-fix/references/stage-exit-protocol.md +344 -140
- package/adapters/claude/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/claude/skills/forge-guide/references/shared-conventions.md +63 -0
- package/adapters/claude/skills/forge-verify/SKILL.md +73 -41
- package/adapters/claude/skills/forge-verify/references/findings-template.md +39 -49
- package/adapters/claude/skills/forge-verify/references/shared-conventions.md +63 -0
- package/adapters/claude/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists/epic.md +4 -3
- package/adapters/claude/skills/forge-verify/references/verification-checklists/specs.md +2 -0
- package/adapters/codex/.feature-forge-bundle.json +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 +4 -2
- package/adapters/codex/references/shared-conventions.md +63 -0
- package/adapters/codex/references/stage-exit-protocol.md +344 -140
- package/adapters/codex/scripts/epic-manifest.py +413 -87
- package/adapters/codex/scripts/forge-bootstrap.py +57 -5
- package/adapters/codex/scripts/forge-session.py +3136 -139
- package/adapters/codex/scripts/validate-traceability.py +86 -5
- package/adapters/codex/skills/forge/SKILL.md +7 -6
- package/adapters/codex/skills/forge/references/pipeline-state-schema.json +4 -2
- package/adapters/codex/skills/forge/references/shared-conventions.md +63 -0
- package/adapters/codex/skills/forge/references/stage-exit-protocol.md +344 -140
- package/adapters/codex/skills/forge-0-epic/SKILL.md +7 -2
- 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 +4 -2
- package/adapters/codex/skills/forge-0-epic/references/shared-conventions.md +63 -0
- package/adapters/codex/skills/forge-0-epic/references/stage-exit-protocol.md +344 -140
- package/adapters/codex/skills/forge-1-prd/SKILL.md +14 -3
- package/adapters/codex/skills/forge-1-prd/references/shared-conventions.md +63 -0
- package/adapters/codex/skills/forge-1-prd/references/stage-exit-protocol.md +344 -140
- package/adapters/codex/skills/forge-2-tech/SKILL.md +13 -3
- package/adapters/codex/skills/forge-2-tech/references/shared-conventions.md +63 -0
- package/adapters/codex/skills/forge-2-tech/references/stage-exit-protocol.md +344 -140
- package/adapters/codex/skills/forge-3-specs/SKILL.md +4 -2
- package/adapters/codex/skills/forge-3-specs/references/shared-conventions.md +63 -0
- 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 +344 -140
- package/adapters/codex/skills/forge-4-backlog/SKILL.md +16 -3
- package/adapters/codex/skills/forge-4-backlog/references/shared-conventions.md +63 -0
- package/adapters/codex/skills/forge-4-backlog/references/stage-exit-protocol.md +344 -140
- package/adapters/codex/skills/forge-5-loop/SKILL.md +40 -42
- package/adapters/codex/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/codex/skills/forge-5-loop/references/runner-contract.md +4 -2
- package/adapters/codex/skills/forge-5-loop/references/shared-conventions.md +63 -0
- package/adapters/codex/skills/forge-5-loop/references/stage-exit-protocol.md +344 -140
- package/adapters/codex/skills/forge-6-docs/SKILL.md +48 -4
- package/adapters/codex/skills/forge-6-docs/references/shared-conventions.md +63 -0
- 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 +63 -0
- package/adapters/codex/skills/forge-fix/references/stage-exit-protocol.md +344 -140
- package/adapters/codex/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/codex/skills/forge-guide/references/shared-conventions.md +63 -0
- package/adapters/codex/skills/forge-verify/SKILL.md +72 -40
- package/adapters/codex/skills/forge-verify/references/findings-template.md +39 -49
- package/adapters/codex/skills/forge-verify/references/shared-conventions.md +63 -0
- package/adapters/codex/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists/epic.md +4 -3
- package/adapters/codex/skills/forge-verify/references/verification-checklists/specs.md +2 -0
- package/adapters/copilot/.feature-forge-bundle.json +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 +4 -2
- package/adapters/copilot/references/shared-conventions.md +63 -0
- package/adapters/copilot/references/stage-exit-protocol.md +344 -140
- package/adapters/copilot/scripts/epic-manifest.py +413 -87
- package/adapters/copilot/scripts/forge-bootstrap.py +57 -5
- package/adapters/copilot/scripts/forge-session.py +3136 -139
- package/adapters/copilot/scripts/validate-traceability.py +86 -5
- package/adapters/copilot/skills/forge/forge.md +7 -6
- package/adapters/copilot/skills/forge/references/pipeline-state-schema.json +4 -2
- package/adapters/copilot/skills/forge/references/shared-conventions.md +63 -0
- package/adapters/copilot/skills/forge/references/stage-exit-protocol.md +344 -140
- package/adapters/copilot/skills/forge-0-epic/forge-0-epic.md +7 -2
- 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 +4 -2
- package/adapters/copilot/skills/forge-0-epic/references/shared-conventions.md +63 -0
- package/adapters/copilot/skills/forge-0-epic/references/stage-exit-protocol.md +344 -140
- package/adapters/copilot/skills/forge-1-prd/forge-1-prd.md +14 -3
- package/adapters/copilot/skills/forge-1-prd/references/shared-conventions.md +63 -0
- package/adapters/copilot/skills/forge-1-prd/references/stage-exit-protocol.md +344 -140
- package/adapters/copilot/skills/forge-2-tech/forge-2-tech.md +13 -3
- package/adapters/copilot/skills/forge-2-tech/references/shared-conventions.md +63 -0
- package/adapters/copilot/skills/forge-2-tech/references/stage-exit-protocol.md +344 -140
- package/adapters/copilot/skills/forge-3-specs/forge-3-specs.md +4 -2
- package/adapters/copilot/skills/forge-3-specs/references/shared-conventions.md +63 -0
- 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 +344 -140
- package/adapters/copilot/skills/forge-4-backlog/forge-4-backlog.md +16 -3
- package/adapters/copilot/skills/forge-4-backlog/references/shared-conventions.md +63 -0
- package/adapters/copilot/skills/forge-4-backlog/references/stage-exit-protocol.md +344 -140
- package/adapters/copilot/skills/forge-5-loop/forge-5-loop.md +40 -42
- package/adapters/copilot/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/copilot/skills/forge-5-loop/references/runner-contract.md +4 -2
- package/adapters/copilot/skills/forge-5-loop/references/shared-conventions.md +63 -0
- package/adapters/copilot/skills/forge-5-loop/references/stage-exit-protocol.md +344 -140
- package/adapters/copilot/skills/forge-6-docs/forge-6-docs.md +48 -4
- package/adapters/copilot/skills/forge-6-docs/references/shared-conventions.md +63 -0
- 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 +63 -0
- package/adapters/copilot/skills/forge-fix/references/stage-exit-protocol.md +344 -140
- package/adapters/copilot/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/copilot/skills/forge-guide/references/shared-conventions.md +63 -0
- package/adapters/copilot/skills/forge-verify/forge-verify.md +72 -40
- package/adapters/copilot/skills/forge-verify/references/findings-template.md +39 -49
- package/adapters/copilot/skills/forge-verify/references/shared-conventions.md +63 -0
- package/adapters/copilot/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists/epic.md +4 -3
- package/adapters/copilot/skills/forge-verify/references/verification-checklists/specs.md +2 -0
- package/adapters/cursor/.feature-forge-bundle.json +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 +4 -2
- package/adapters/cursor/references/shared-conventions.md +63 -0
- package/adapters/cursor/references/stage-exit-protocol.md +344 -140
- package/adapters/cursor/scripts/epic-manifest.py +413 -87
- package/adapters/cursor/scripts/forge-bootstrap.py +57 -5
- package/adapters/cursor/scripts/forge-session.py +3136 -139
- package/adapters/cursor/scripts/validate-traceability.py +86 -5
- package/adapters/cursor/skills/forge/forge.mdc +7 -6
- package/adapters/cursor/skills/forge/references/pipeline-state-schema.json +4 -2
- package/adapters/cursor/skills/forge/references/shared-conventions.md +63 -0
- package/adapters/cursor/skills/forge/references/stage-exit-protocol.md +344 -140
- package/adapters/cursor/skills/forge-0-epic/forge-0-epic.mdc +7 -2
- 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 +4 -2
- package/adapters/cursor/skills/forge-0-epic/references/shared-conventions.md +63 -0
- package/adapters/cursor/skills/forge-0-epic/references/stage-exit-protocol.md +344 -140
- package/adapters/cursor/skills/forge-1-prd/forge-1-prd.mdc +14 -3
- package/adapters/cursor/skills/forge-1-prd/references/shared-conventions.md +63 -0
- package/adapters/cursor/skills/forge-1-prd/references/stage-exit-protocol.md +344 -140
- package/adapters/cursor/skills/forge-2-tech/forge-2-tech.mdc +13 -3
- package/adapters/cursor/skills/forge-2-tech/references/shared-conventions.md +63 -0
- package/adapters/cursor/skills/forge-2-tech/references/stage-exit-protocol.md +344 -140
- package/adapters/cursor/skills/forge-3-specs/forge-3-specs.mdc +4 -2
- package/adapters/cursor/skills/forge-3-specs/references/shared-conventions.md +63 -0
- 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 +344 -140
- package/adapters/cursor/skills/forge-4-backlog/forge-4-backlog.mdc +16 -3
- package/adapters/cursor/skills/forge-4-backlog/references/shared-conventions.md +63 -0
- package/adapters/cursor/skills/forge-4-backlog/references/stage-exit-protocol.md +344 -140
- package/adapters/cursor/skills/forge-5-loop/forge-5-loop.mdc +40 -42
- package/adapters/cursor/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/cursor/skills/forge-5-loop/references/runner-contract.md +4 -2
- package/adapters/cursor/skills/forge-5-loop/references/shared-conventions.md +63 -0
- package/adapters/cursor/skills/forge-5-loop/references/stage-exit-protocol.md +344 -140
- package/adapters/cursor/skills/forge-6-docs/forge-6-docs.mdc +48 -4
- package/adapters/cursor/skills/forge-6-docs/references/shared-conventions.md +63 -0
- 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 +63 -0
- package/adapters/cursor/skills/forge-fix/references/stage-exit-protocol.md +344 -140
- package/adapters/cursor/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/cursor/skills/forge-guide/references/shared-conventions.md +63 -0
- package/adapters/cursor/skills/forge-verify/forge-verify.mdc +72 -40
- package/adapters/cursor/skills/forge-verify/references/findings-template.md +39 -49
- package/adapters/cursor/skills/forge-verify/references/shared-conventions.md +63 -0
- package/adapters/cursor/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists/epic.md +4 -3
- package/adapters/cursor/skills/forge-verify/references/verification-checklists/specs.md +2 -0
- package/adapters/gemini/.feature-forge-bundle.json +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 +4 -2
- package/adapters/gemini/references/shared-conventions.md +63 -0
- package/adapters/gemini/references/stage-exit-protocol.md +344 -140
- package/adapters/gemini/scripts/epic-manifest.py +413 -87
- package/adapters/gemini/scripts/forge-bootstrap.py +57 -5
- package/adapters/gemini/scripts/forge-session.py +3136 -139
- package/adapters/gemini/scripts/validate-traceability.py +86 -5
- package/adapters/gemini/skills/forge/forge.md +7 -6
- package/adapters/gemini/skills/forge/references/pipeline-state-schema.json +4 -2
- package/adapters/gemini/skills/forge/references/shared-conventions.md +63 -0
- package/adapters/gemini/skills/forge/references/stage-exit-protocol.md +344 -140
- package/adapters/gemini/skills/forge-0-epic/forge-0-epic.md +7 -2
- 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 +4 -2
- package/adapters/gemini/skills/forge-0-epic/references/shared-conventions.md +63 -0
- package/adapters/gemini/skills/forge-0-epic/references/stage-exit-protocol.md +344 -140
- package/adapters/gemini/skills/forge-1-prd/forge-1-prd.md +14 -3
- package/adapters/gemini/skills/forge-1-prd/references/shared-conventions.md +63 -0
- package/adapters/gemini/skills/forge-1-prd/references/stage-exit-protocol.md +344 -140
- package/adapters/gemini/skills/forge-2-tech/forge-2-tech.md +13 -3
- package/adapters/gemini/skills/forge-2-tech/references/shared-conventions.md +63 -0
- package/adapters/gemini/skills/forge-2-tech/references/stage-exit-protocol.md +344 -140
- package/adapters/gemini/skills/forge-3-specs/forge-3-specs.md +4 -2
- package/adapters/gemini/skills/forge-3-specs/references/shared-conventions.md +63 -0
- 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 +344 -140
- package/adapters/gemini/skills/forge-4-backlog/forge-4-backlog.md +16 -3
- package/adapters/gemini/skills/forge-4-backlog/references/shared-conventions.md +63 -0
- package/adapters/gemini/skills/forge-4-backlog/references/stage-exit-protocol.md +344 -140
- package/adapters/gemini/skills/forge-5-loop/forge-5-loop.md +40 -42
- package/adapters/gemini/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/gemini/skills/forge-5-loop/references/runner-contract.md +4 -2
- package/adapters/gemini/skills/forge-5-loop/references/shared-conventions.md +63 -0
- package/adapters/gemini/skills/forge-5-loop/references/stage-exit-protocol.md +344 -140
- package/adapters/gemini/skills/forge-6-docs/forge-6-docs.md +48 -4
- package/adapters/gemini/skills/forge-6-docs/references/shared-conventions.md +63 -0
- 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 +63 -0
- package/adapters/gemini/skills/forge-fix/references/stage-exit-protocol.md +344 -140
- package/adapters/gemini/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/gemini/skills/forge-guide/references/shared-conventions.md +63 -0
- package/adapters/gemini/skills/forge-verify/forge-verify.md +72 -40
- package/adapters/gemini/skills/forge-verify/references/findings-template.md +39 -49
- package/adapters/gemini/skills/forge-verify/references/shared-conventions.md +63 -0
- package/adapters/gemini/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists/epic.md +4 -3
- package/adapters/gemini/skills/forge-verify/references/verification-checklists/specs.md +2 -0
- package/adapters/pi/.feature-forge-bundle.json +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 +4 -2
- package/adapters/pi/references/shared-conventions.md +63 -0
- package/adapters/pi/references/stage-exit-protocol.md +344 -140
- package/adapters/pi/scripts/epic-manifest.py +413 -87
- package/adapters/pi/scripts/forge-bootstrap.py +57 -5
- package/adapters/pi/scripts/forge-session.py +3136 -139
- package/adapters/pi/scripts/validate-traceability.py +86 -5
- package/adapters/pi/skills/forge/SKILL.md +7 -6
- package/adapters/pi/skills/forge/references/pipeline-state-schema.json +4 -2
- package/adapters/pi/skills/forge/references/shared-conventions.md +63 -0
- package/adapters/pi/skills/forge/references/stage-exit-protocol.md +344 -140
- package/adapters/pi/skills/forge-0-epic/SKILL.md +7 -2
- 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 +4 -2
- package/adapters/pi/skills/forge-0-epic/references/shared-conventions.md +63 -0
- package/adapters/pi/skills/forge-0-epic/references/stage-exit-protocol.md +344 -140
- package/adapters/pi/skills/forge-1-prd/SKILL.md +14 -3
- package/adapters/pi/skills/forge-1-prd/references/shared-conventions.md +63 -0
- package/adapters/pi/skills/forge-1-prd/references/stage-exit-protocol.md +344 -140
- package/adapters/pi/skills/forge-2-tech/SKILL.md +13 -3
- package/adapters/pi/skills/forge-2-tech/references/shared-conventions.md +63 -0
- package/adapters/pi/skills/forge-2-tech/references/stage-exit-protocol.md +344 -140
- package/adapters/pi/skills/forge-3-specs/SKILL.md +4 -2
- package/adapters/pi/skills/forge-3-specs/references/shared-conventions.md +63 -0
- 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 +344 -140
- package/adapters/pi/skills/forge-4-backlog/SKILL.md +16 -3
- package/adapters/pi/skills/forge-4-backlog/references/shared-conventions.md +63 -0
- package/adapters/pi/skills/forge-4-backlog/references/stage-exit-protocol.md +344 -140
- package/adapters/pi/skills/forge-5-loop/SKILL.md +40 -42
- package/adapters/pi/skills/forge-5-loop/references/result-reporting.md +70 -31
- package/adapters/pi/skills/forge-5-loop/references/runner-contract.md +4 -2
- package/adapters/pi/skills/forge-5-loop/references/shared-conventions.md +63 -0
- package/adapters/pi/skills/forge-5-loop/references/stage-exit-protocol.md +344 -140
- package/adapters/pi/skills/forge-6-docs/SKILL.md +48 -4
- package/adapters/pi/skills/forge-6-docs/references/shared-conventions.md +63 -0
- 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 +63 -0
- package/adapters/pi/skills/forge-fix/references/stage-exit-protocol.md +344 -140
- package/adapters/pi/skills/forge-guide/references/forge-config-schema.json +1 -1
- package/adapters/pi/skills/forge-guide/references/shared-conventions.md +63 -0
- package/adapters/pi/skills/forge-verify/SKILL.md +72 -40
- package/adapters/pi/skills/forge-verify/references/findings-template.md +39 -49
- package/adapters/pi/skills/forge-verify/references/shared-conventions.md +63 -0
- package/adapters/pi/skills/forge-verify/references/stage-exit-protocol.md +472 -0
- package/adapters/pi/skills/forge-verify/references/verification-checklists/epic.md +4 -3
- package/adapters/pi/skills/forge-verify/references/verification-checklists/specs.md +2 -0
- package/package.json +1 -1
- package/adapters/claude/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/codex/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/copilot/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/cursor/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/gemini/skills/forge-verify/references/pipeline-state-schema.json +0 -191
- package/adapters/pi/skills/forge-verify/references/pipeline-state-schema.json +0 -191
|
@@ -191,6 +191,44 @@ Pipeline state is written by the `state-*` verbs of `scripts/forge-session.py`
|
|
|
191
191
|
|
|
192
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
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.
|
|
231
|
+
|
|
194
232
|
### Staleness Detection (Read-Time)
|
|
195
233
|
|
|
196
234
|
When loading upstream artifacts as prerequisites, check `basedOnVersions` in the pipeline state for this stage. If any upstream stage's current version is newer than the version recorded in `basedOnVersions`, warn the user before proceeding:
|
|
@@ -199,6 +237,31 @@ When loading upstream artifacts as prerequisites, check `basedOnVersions` in the
|
|
|
199
237
|
|
|
200
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.
|
|
201
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
|
+
|
|
202
265
|
## Branch Setup
|
|
203
266
|
|
|
204
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.
|
|
@@ -99,7 +99,7 @@ any work:
|
|
|
99
99
|
> `CLEAN_ROOM_UNAVAILABLE: forge-verifier subagent not dispatchable — verify not run.`
|
|
100
100
|
|
|
101
101
|
Do not analyze artifacts, do not write a findings document, and do not touch pipeline
|
|
102
|
-
state. The navigator detects this sentinel and degrades to its manual verify gate (Tier
|
|
102
|
+
state. This is an **operational failure, not a user skip** — close through Step 7 with `--outcome failed`; as a nested owner that call writes no state and prints no terminal block, so the sentinel is your structured result. The navigator detects this sentinel and degrades to its manual verify gate (Tier
|
|
103
103
|
2/3), so verify state stays outstanding and the stage is never marked verified on false
|
|
104
104
|
assurance. **Manual / interactive invocation** (the normal `/feature-forge:forge-verify`
|
|
105
105
|
path, no require-clean signal) keeps the inline fallback above unchanged.
|
|
@@ -110,6 +110,8 @@ Read and follow `references/shared-conventions.md` for feature name validation,
|
|
|
110
110
|
|
|
111
111
|
Resolve the feature directory via the **Feature Directory Resolution** block in `references/shared-conventions.md` (so a standalone feature resolves to its flat `{specsDir}/{feature}/` path exactly as today, and an epic member resolves to its nested `{specsDir}/{epic}/{feature}/` path). Use the resulting `{resolvedFeatureDir}` everywhere this skill reads or writes a per-feature artifact or state file — the `{specsDir}/{feature}/…` forms below are shorthand for the resolved path, not a literal flat layout. This does not apply to **epic mode**, whose paths are epic-scoped (`{specsDir}/{epic}/…`) by design.
|
|
112
112
|
|
|
113
|
+
Determine branch ownership **at entry**, from the literal `owner: nested` / `owner: direct` token in the dispatching prompt (absent the token you are `direct`), and preserve that value unchanged through any re-verify — see Step 7, which passes it through as `--owner`.
|
|
114
|
+
|
|
113
115
|
**Turn structure reminder:** Output analysis/context as text, then route ALL questions through the host's question mechanism. Never embed questions in text output — the user will not be prompted and the session will stall.
|
|
114
116
|
|
|
115
117
|
## Step 1: Read Configuration and Determine Mode
|
|
@@ -118,7 +120,9 @@ Read `{resolvedFeatureDir}/.pipeline-state.json` to understand current pipeline
|
|
|
118
120
|
|
|
119
121
|
### Mode Selection
|
|
120
122
|
|
|
121
|
-
|
|
123
|
+
An explicit `--served-stage <production-stage>` argument on this invocation is authoritative — it is what the scripted exit and forge-fix pass when they route back here (the fix rejoin fences `/feature-forge:forge-verify {feature} --served-stage {stage}`). Map it to the mode directly (`forge-0-epic`→epic, `forge-1-prd`→prd, `forge-2-tech`→tech, `forge-3-specs`→specs, `forge-4-backlog`→backlog, `forge-5-loop`→impl) and skip auto-detection.
|
|
124
|
+
|
|
125
|
+
Otherwise, if a stage is specified as a second argument (e.g., `/feature-forge:forge-verify auth specs`), use that mode. Otherwise, auto-detect based on pipeline state:
|
|
122
126
|
|
|
123
127
|
- **epic mode**: Explicit via `/feature-forge:forge-verify {epic} epic`, or auto-detected when the named argument resolves to an **epic directory** — i.e. `{specsDir}/{name}/epic-manifest.json` exists (an epic root holds `epic-manifest.json` but no `.pipeline-state.json` of its own). When the argument is an epic, prefer epic mode over feature-mode resolution.
|
|
124
128
|
- **prd mode**: If `forge-1-prd` is complete but `forge-verify-prd` is not `passed` or `findings-applied`
|
|
@@ -127,7 +131,7 @@ If a stage is specified as a second argument (e.g., `/feature-forge:forge-verify
|
|
|
127
131
|
- **backlog mode**: If `forge-4-backlog` is complete but `forge-verify-backlog` is not `passed` or `findings-applied`
|
|
128
132
|
- **impl mode**: If user explicitly requests or if implementation code exists for this feature
|
|
129
133
|
|
|
130
|
-
If ambiguous, use the host's question mechanism to ask which stage to verify.
|
|
134
|
+
If ambiguous, use the host's question mechanism to ask which stage to verify — **before any write**. Serialize the resolved mode as `--verify-mode` at Step 7: that mode, never conversational context and never `currentStage`, determines the served production stage.
|
|
131
135
|
|
|
132
136
|
## Step 2: Load All Relevant Artifacts
|
|
133
137
|
|
|
@@ -162,7 +166,7 @@ Load into context ALL artifacts for this feature based on mode:
|
|
|
162
166
|
|
|
163
167
|
## Step 3: Run Verification Checklists
|
|
164
168
|
|
|
165
|
-
Read `references/verification-checklists/{mode}.md` for the detailed checklist for the mode being verified — one of `references/verification-checklists/prd.md`, `references/verification-checklists/tech.md`, `references/verification-checklists/specs.md`, `references/verification-checklists/backlog.md`, `references/verification-checklists/impl.md`, `references/verification-checklists/epic.md`. Read only that mode's file. Execute every check. Do not skip checks because things "look fine." The orchestrator-only **Findings Document Template (Step 4)**, worked **Example Findings (Step 4)**, and **Epic Mode State Write Detail (Step 6)** sections live in `references/findings-template.md`, read later by the parent role at Steps 4/6.
|
|
169
|
+
Read `references/verification-checklists/{mode}.md` for the detailed checklist for the mode being verified — one of `references/verification-checklists/prd.md`, `references/verification-checklists/tech.md`, `references/verification-checklists/specs.md`, `references/verification-checklists/backlog.md`, `references/verification-checklists/impl.md`, `references/verification-checklists/epic.md`. Read only that mode's file. Execute every check. Do not skip checks because things "look fine." **Exception — a re-verify is scoped, not a fresh sweep:** when the served stage's verify entry is `findings-applied`, follow "Re-verify scope and convergence" in `references/stage-exit-protocol.md` — confirm the prior report's findings against their acceptance evidence and examine the fix's own delta; only an unresolved prior finding or a new blocking defect the fix itself introduced may block, every other observation is advisory, and a finding with a recorded decision is never re-filed. The orchestrator-only **Findings Document Template (Step 4)**, worked **Example Findings (Step 4)**, and **Epic Mode State Write Detail (Step 6)** sections live in `references/findings-template.md`, read later by the parent role at Steps 4/6.
|
|
166
170
|
|
|
167
171
|
Each check in that mode checklist has a unique ID (CHECK-P01, CHECK-T01, CHECK-S01, CHECK-B01, etc.). As you execute each check, record its ID and result (pass/fail/not-applicable). After completing all checks, report the total: "Executed N of M checks. Results: X pass, Y fail, Z not-applicable." If your count is significantly below the expected total for the mode (prd: 15 checks, tech: 17 checks, specs: 38 checks, backlog: 27 checks, impl: 23 checks, epic: 10 checks), you likely skipped checks — go back and complete them.
|
|
168
172
|
|
|
@@ -175,7 +179,13 @@ GOOD finding: "PRD.md REQ-ERR-04 requires rate limit retry behavior, but spec 03
|
|
|
175
179
|
|
|
176
180
|
Every finding must include:
|
|
177
181
|
1. A unique ID (V-001, V-002, etc.)
|
|
178
|
-
2. Severity: `gap` (missing requirement coverage), `inconsistency` (contradictory specs), `improvement` (not wrong but could be better), `error` (factually incorrect)
|
|
182
|
+
2. Severity: `gap` (missing requirement coverage), `inconsistency` (contradictory specs), `improvement` (not wrong but could be better), `error` (factually incorrect **with a behavioral, CLI-output, or decision-bearing consequence**)
|
|
183
|
+
|
|
184
|
+
**Severity floor (anti-churn).** An inaccuracy confined to comments, docstrings, or test narration — prose no runtime path executes and no decision consumes — caps at `inconsistency`, never `error`. It is worth recording, but a wrong sentence beside correct code does not block a stage the way wrong behavior does. **Routing consequence:** `error` and `gap` are the two **blocking** severities; `inconsistency` and `improvement` are **advisory**. A report with at least one blocking finding records `findings-reported` and routes to forge-fix. A report whose findings are all advisory records `passed` **with the report still attached** (Step 6) and the pipeline advances — an advisory-only report never fences a fix round. A **meta-guard** (a test protecting other tests or prose) is judged against its declared protection set: guard-incompleteness against a declared non-goal is never a finding (`references/stage-exit-protocol.md` § Re-verify scope).
|
|
185
|
+
|
|
186
|
+
**A checklist item with no PRD position behind it is a PRD gap, not a design to invent.** Several checks are deliberately conditional — `CHECK-S27` ("Concurrent access scenarios are addressed **if relevant**") is the clearest, and the same shape appears for performance, observability, and security checks that defer to the PRD. When such a check fires and the PRD takes **no position** on the concern, the finding is that the *requirements* are silent. Report it as an `improvement` (or a `gap` against the PRD, in `prd` mode) whose suggested fix is to **record the position** — including "out of scope, single writer assumed", which is a complete answer. Do **not** specify a mechanism to satisfy the check: a verifier that answers an open requirements question by designing a protocol converts a one-sentence PRD amendment into a foundational change that no requirement asked for, at the stage where it is least visible. Precedent both ways: `epic-orchestration` V-008 raised `CHECK-S27` against a PRD that *had* scoped concurrency out and correctly cost one sentence at `improvement`; `stage-exit-coverage` V-006 raised the same check against a silent PRD, was filed as a `gap`, and induced a full locking protocol that was later removed.
|
|
187
|
+
|
|
188
|
+
Relatedly, **do not let `improvement` fall out of use.** A report containing only `gap`/`error`/`inconsistency` usually means observations that should have been `improvement` were promoted into must-fix findings. If a finding would not block implementation, it is an `improvement` — say so.
|
|
179
189
|
3. Exact location (file + section)
|
|
180
190
|
4. What's wrong
|
|
181
191
|
5. Suggested fix (specific enough that a fresh agent can apply it)
|
|
@@ -184,9 +194,9 @@ Every finding must include:
|
|
|
184
194
|
|
|
185
195
|
## Step 4: Write Findings Document
|
|
186
196
|
|
|
187
|
-
Ensure the `.verification/` subdirectory exists, then write findings to `{resolvedFeatureDir}/.verification/VERIFY-{mode}-{YYYY-MM-DD}.md`.
|
|
197
|
+
Ensure the `.verification/` subdirectory exists, then write findings to `{resolvedFeatureDir}/.verification/VERIFY-{mode}-{YYYY-MM-DD}.md`. **Never overwrite an existing report:** if that name already exists (an earlier round the same day), write `VERIFY-{mode}-{YYYY-MM-DD}-round{N}.md` with the smallest `N ≥ 2` not yet on disk — each round's report and Fix Progress is an audit record later rounds and the round ledger (`references/stage-exit-protocol.md` § Escalation) read.
|
|
188
198
|
|
|
189
|
-
**For epic mode**, the target is `{specsDir}/{epic}/.verification/VERIFY-epic-{YYYY-MM-DD}.md` (the same format, with `{mode}=epic`).
|
|
199
|
+
**For epic mode**, the target is `{specsDir}/{epic}/.verification/VERIFY-epic-{YYYY-MM-DD}.md` (the same format and the same no-overwrite round rule, with `{mode}=epic`).
|
|
190
200
|
|
|
191
201
|
The full findings-document template (report header, `V-NNN` finding shape, and the
|
|
192
202
|
Fix Execution Plan layout) and the worked **Example Findings** (gap / inconsistency /
|
|
@@ -209,51 +219,73 @@ When building the Fix Execution Plan:
|
|
|
209
219
|
**If not in plan mode:** Output the following as text:
|
|
210
220
|
"Findings and fix plan written to `{findings-file}`."
|
|
211
221
|
|
|
212
|
-
|
|
222
|
+
**Advisory-only reports skip the question.** When the report contains no blocking finding (`error`/`gap`), there is nothing to route to forge-fix: do not present the fix options below — state that the report is advisory-only, record `passed` with the report attached (Step 6), and continue; the advisories stay discoverable in the findings document for whoever next touches the artifact. Otherwise (at least one blocking finding), use the host's question mechanism to ask how to proceed — **unless this report closes the SECOND consecutive `reverify-findings` for this served stage** (count the round-discriminated reports in `.verification/`), in which case follow "Escalation (the round ledger)" in `references/stage-exit-protocol.md` instead: present the digest and recommend explicit acceptance of the residual findings, never another fix pass. Otherwise follow the **Decision Support** protocol in `references/shared-conventions.md`: recommend a path based on the findings and give each option a one-line trade-off. Let the severity and volume of findings drive the recommendation — e.g. recommend (b) **Apply fixes now** when findings are clear-cut and mechanical; recommend (a) **Review first** when findings involve design judgment or you flagged low-confidence items; recommend (c) **plan-mode workflow** when the fixes are large or interdependent enough to warrant a reviewed plan. Present:
|
|
213
223
|
- **(a) Review the findings first** — read `{findings-file}` and decide per-finding; safest, but you act on nothing until you return.
|
|
214
|
-
- **(b) Run `/feature-forge:forge-fix {feature}` now** — applies the fix plan immediately; fastest, best when findings are unambiguous.
|
|
224
|
+
- **(b) Run `/feature-forge:forge-fix {feature} --served-stage {servedStage}` now** — applies the fix plan immediately; fastest, best when findings are unambiguous.
|
|
215
225
|
- **(c) Enter plan mode and re-run `/feature-forge:forge-verify {feature}`** — produces a reviewable plan before any edits; best for large or risky fix sets.
|
|
216
226
|
|
|
217
227
|
Do NOT embed this question in your text output.
|
|
218
228
|
|
|
219
|
-
## Step 6:
|
|
229
|
+
## Step 6: Record the Result Through `state-verify`
|
|
220
230
|
|
|
221
|
-
|
|
231
|
+
Never hand-author a verify entry. Every `stages.forge-verify-*` transition is written by the `state-verify` verb described in the **Pipeline State Protocol** in `references/shared-conventions.md`, which owns its full flag surface, its status matrix, and the exit-2 failure protocol. Write `findings-reported` when the report lists at least one **blocking** finding (`error`/`gap`); write `passed` when it lists none — including an **advisory-only** report (`inconsistency`/`improvement` findings only), which records `passed` with the report still attached: pass `--findings-file` and `--findings-count` alongside `--status passed` so the advisories remain discoverable without blocking the stage. (One exception routes blocking findings to `passed`: residual findings the user explicitly accepted at the round-ledger escalation — recorded first as a `state-decision`, then `passed` with the report attached, per "Escalation" in `references/stage-exit-protocol.md`.) Never write `findings-applied` here — that belongs to the fix pass. `--stage` names the **served production stage** (Step 1's mode, mapped through the served-stage mapping in Step 7), `--findings-file` is the report path **relative to** the feature directory (the Step 4 filename, round discriminator included), and `--verified-stage-version` is that production stage entry's current `version`, so a later revision of the artifact makes this verification read stale and re-fires. Add `--epic "{epic}"` when the feature is an epic member — required, per the Pipeline State Protocol; omitting it for a member is an error and must never fall back to a same-named flat feature.
|
|
222
232
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
233
|
+
```bash
|
|
234
|
+
R="$(bash -c 'for d in "${FEATURE_FORGE_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')"
|
|
235
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
236
|
+
python3 "$R/scripts/forge-session.py" state-verify \
|
|
237
|
+
--feature "{feature}" --stage "{servedStage}" --status "{passed|findings-reported}" \
|
|
238
|
+
--findings-file "{relative findings path}" --findings-count {n} \
|
|
239
|
+
--verified-stage-version {version} --specs-dir "{specsDir}"
|
|
240
|
+
```
|
|
230
241
|
|
|
231
|
-
|
|
232
|
-
- Set the relevant verify entry status to `findings-reported` (or `passed` when there
|
|
233
|
-
are zero findings)
|
|
234
|
-
- Record `findingsFile`, `findingsCount`, `verifiedAt`
|
|
235
|
-
- Record `verifiedStageVersion` = the current `version` of the production stage entry
|
|
236
|
-
this verify covers (e.g. verifying `tech` → `stages["forge-2-tech"].version`). This
|
|
237
|
-
feeds the navigator's freshness ledger: a later revision to that artifact bumps its
|
|
238
|
-
`version`, so the recorded value no longer matches and auto-verify re-fires. Omitting
|
|
239
|
-
this leaves the verify looking stale (safe: the navigator re-verifies rather than
|
|
240
|
-
skips).
|
|
242
|
+
**Two-commit provenance — never `--amend`.** The write above records `commitHash: null`. Commit 1 records the findings document and the state together (Git Commit Protocol, `references/shared-conventions.md`). Then record the provenance of that commit in Commit 2, passing the **full 40-character** hash of Commit 1 — an abbreviation is refused rather than expanded, and this call touches nothing but `commitHash`. Add `--epic "{epic}"` when the feature is an epic member — required, per the Pipeline State Protocol.
|
|
241
243
|
|
|
242
|
-
|
|
244
|
+
```bash
|
|
245
|
+
R="$(bash -c 'for d in "${FEATURE_FORGE_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-verify \
|
|
248
|
+
--feature "{feature}" --stage "{servedStage}" \
|
|
249
|
+
--commit-hash "$(git rev-parse HEAD)" --specs-dir "{specsDir}"
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
On exit 2 **nothing was recorded**: surface the `Error:` line verbatim together with the named feature (and epic), do not claim the result was persisted, and close the stage with `--outcome failed` in Step 7 — the verify entry is unchanged, so no success block may be printed.
|
|
243
253
|
|
|
244
254
|
### Epic mode state (`.epic-state.json`)
|
|
245
255
|
|
|
246
|
-
Epic mode is **epic-scoped**, not per-feature:
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
`
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
(
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
Epic mode is **epic-scoped**, not per-feature: `--stage forge-0-epic` writes `{specsDir}/{epic}/.epic-state.json` and **never** any member's `.pipeline-state.json`. It is the one exception to the member rule — `--feature` names the **epic**, and `--epic` must be absent or exactly equal to it — and its `--verified-stage-version` is the epic manifest's `revision`, never a member's stage version. The exact call and the minimal written shape live in `references/findings-template.md` under the **Epic Mode State Write Detail (Step 6)** section. Follow it verbatim.
|
|
257
|
+
|
|
258
|
+
## Step 7: Close the Stage
|
|
259
|
+
|
|
260
|
+
**Ownership.** Read branch ownership from the literal `owner: nested` / `owner: direct` token in the prompt that dispatched you. **Absent the token you are `direct`** — a user-typed `/feature-forge:forge-verify` is the only path that carries no dispatcher. Never infer ownership from how the invocation happened to be phrased; judge the token, not the wording. Pass the resolved value straight through as `--owner`, and preserve it through any re-verify. As a **nested** owner you return your structured result (mode, served stage, outcome, findings file, findings count) to the caller and print **no terminal block at all** — the outer authoring stage is the sole terminal owner. As a **direct** owner you print the script's NEXT-STEPS block verbatim as your absolute final output, with nothing after its sentinel line. `references/stage-exit-protocol.md` § "Branch ownership: the `owner:` token" owns this rule.
|
|
261
|
+
|
|
262
|
+
**Served stage.** Pass `--verify-mode` carrying Step 1's explicit or auto-detected mode (`epic`, `prd`, `tech`, `specs`, `backlog`, `impl`); the script maps it to the served production stage. When the caller already owns a stage and states it, additionally pass that value as `--served-stage` — if the two disagree the script fails closed rather than guessing. Derive the served stage **only** from that mode argument or from authoritative pipeline state: conversational context and `currentStage` are never valid inference sources.
|
|
263
|
+
|
|
264
|
+
**Capability.** Pass `--verify-capability interactive` only when **both** a question mechanism equivalent to the host's question mechanism is available **and** a clean-room `forge-verifier` may actually be dispatched right now. Clause (b) tests **permitted dispatch, not a listed tool**: a session that may dispatch only when the user asked, but does have a question mechanism, is `interactive` — the gate's affirmative choice supplies the request. Reserve `manual` for **no** question mechanism **and** **no** permitted dispatch. An auto-verify directive under a no-unsolicited-dispatch bar is presented through the gate and dispatched on the affirmative choice — never skipped, and never resolved by advancing to the production successor.
|
|
265
|
+
|
|
266
|
+
**Outcome.** Invoke the exit **exactly once**, with the `--outcome` this run's result maps to:
|
|
267
|
+
|
|
268
|
+
| This run's result | `--outcome` |
|
|
269
|
+
|---|---|
|
|
270
|
+
| Zero findings — the artifacts are clean | `passed` |
|
|
271
|
+
| Advisory-only report (no `error`/`gap`) — recorded `passed` with the report attached | `passed` |
|
|
272
|
+
| A report with at least one blocking finding (`error`/`gap`) was written | `findings` |
|
|
273
|
+
| The user explicitly chose to defer pipeline action **and** that skip was persisted via `state-verify --status skipped` | `skipped` |
|
|
274
|
+
| A dispatch, a check, or a state write failed and needs intervention | `failed` |
|
|
275
|
+
|
|
276
|
+
Merely **presenting** blocking findings is `findings`, not `skipped` — all three Step 5 options are `findings`, including (a) "review the findings first", which defers *your* next action rather than the pipeline's. `skipped` is available only for an explicit user deferral of **pipeline action** whose skip has already been persisted. A `CLEAN_ROOM_UNAVAILABLE` sentinel or a non-answer from an advertised dispatch is an operational failure, not a user skip: it is `failed`. A state-write failure is `failed`, and no success block may be printed after one.
|
|
277
|
+
|
|
278
|
+
Add `--epic "{epic}"` when the feature is an epic member, and `--served-stage "{servedStage}"` when the caller supplied one. Pass no other flags.
|
|
279
|
+
|
|
280
|
+
**Close this stage with the Scripted Stage Exit** (contract: `references/stage-exit-protocol.md`; do not improvise a "Next steps" list). Run:
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
R="$(bash -c 'for d in "${FEATURE_FORGE_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')"
|
|
284
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
285
|
+
python3 "$R/scripts/forge-session.py" stage-exit --feature "{feature}" --stage forge-verify --owner "{owner}" --outcome "{VerifyOutcome}" --verify-mode "{mode}" --specs-dir "{specsDir}" --host generic --verify-capability "{verify-capability}"
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
Obey the DIRECTIVES it prints, in the consumption order this protocol fixes: surface `invalidAutoVerifyKeys` and every `warnings` entry first; `runInStageVerify: true` → run the in-stage clean-room verify chain now (honoring `autoFixEligible`, and asking through the Standard Verify Gate first when you may not dispatch unsolicited); `verifyGate: "standard"` → present the Standard Verify Gate; `verifyGate: "manual-print"` → print the `verifyCommand` for the user and do **not** dispatch inline. Then, and only when `terminalOwnedBy` is `"self"`, **print the NEXT-STEPS block verbatim as your absolute last output — nothing after its sentinel line.** A `terminalOwnedBy: "outer"` payload carries `nextSteps: null`: return your structured result to the caller and print no terminal block at all.
|
|
257
289
|
|
|
258
290
|
## Gotchas
|
|
259
291
|
|
|
@@ -7,6 +7,10 @@ Loaded by the **parent orchestrator** role of `forge-verify` at Step 4 (write th
|
|
|
7
7
|
Write findings to `{specsDir}/{feature}/.verification/VERIFY-{mode}-{YYYY-MM-DD}.md`
|
|
8
8
|
(for epic mode, `{specsDir}/{epic}/.verification/VERIFY-epic-{YYYY-MM-DD}.md` — same
|
|
9
9
|
format, with `{mode}=epic`). Ensure the `.verification/` subdirectory exists first.
|
|
10
|
+
**Never overwrite an existing report:** if the name already exists (an earlier round
|
|
11
|
+
the same day), write `VERIFY-{mode}-{YYYY-MM-DD}-round{N}.md` with the smallest
|
|
12
|
+
`N ≥ 2` not yet on disk — each round's report and Fix Progress is an audit record the
|
|
13
|
+
round ledger reads (`references/stage-exit-protocol.md` § Escalation).
|
|
10
14
|
|
|
11
15
|
```markdown
|
|
12
16
|
# Verification Report: {feature} ({mode})
|
|
@@ -20,6 +24,7 @@ Artifacts Reviewed: {list of files}
|
|
|
20
24
|
- Inconsistencies: {N}
|
|
21
25
|
- Improvements: {N}
|
|
22
26
|
- Errors: {N}
|
|
27
|
+
- Blocking (errors + gaps): {N} — {"report records findings-reported" | "0: advisory-only, report records passed with this file attached"}
|
|
23
28
|
|
|
24
29
|
## Findings
|
|
25
30
|
|
|
@@ -95,63 +100,48 @@ state file `{specsDir}/{epic}/.epic-state.json` — **never** into any member's
|
|
|
95
100
|
violate REQ-STATE-02; per-feature status is always derived live from each member's
|
|
96
101
|
`.pipeline-state.json`).
|
|
97
102
|
|
|
98
|
-
Set `stages.forge-verify-epic.status` to `findings-reported`
|
|
99
|
-
|
|
100
|
-
|
|
103
|
+
Set `stages.forge-verify-epic.status` to `findings-reported` when the report lists at
|
|
104
|
+
least one **blocking** finding (`error`/`gap`), else `passed` — for an advisory-only
|
|
105
|
+
report pass `--findings-file`/`--findings-count` alongside `--status passed`, exactly
|
|
106
|
+
as in feature mode (the severity floor in `skills/forge-verify/SKILL.md`) — recording
|
|
107
|
+
`findingsFile`, `findingsCount`, and `verifiedAt`.
|
|
108
|
+
|
|
109
|
+
**Write it with `state-verify`, never by hand.** `--stage forge-0-epic` is the sanctioned
|
|
110
|
+
epic writer: it creates the file lazily, mutates only `stages.forge-verify-epic` plus the
|
|
111
|
+
top-level `updatedAt`, writes atomically, and leaves any prior file intact on failure.
|
|
112
|
+
This is the one `state-*` call site where the member `--epic` rule does **not** apply:
|
|
113
|
+
`--feature` names the **epic**, and `--epic` must be absent or exactly equal to it. Its
|
|
114
|
+
`--verified-stage-version` is the **epic manifest's `revision`** — never a member's stage
|
|
115
|
+
version — which is what keeps the result reading fresh rather than stale.
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
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')"
|
|
119
|
+
[ -n "$R" ] || { echo "feature-forge: cannot locate plugin root" >&2; exit 1; }
|
|
120
|
+
python3 "$R/scripts/forge-session.py" state-verify \
|
|
121
|
+
--feature "{epic}" --stage forge-0-epic \
|
|
122
|
+
--status "{passed|findings-reported}" \
|
|
123
|
+
--findings-file "{relative findings path}" --findings-count {n} \
|
|
124
|
+
--verified-stage-version {manifest revision} --specs-dir "{specsDir}"
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
On exit 2 nothing was recorded: surface the `Error:` line verbatim, name the epic, and do
|
|
128
|
+
not claim the verification was persisted. The minimal shape this writes:
|
|
101
129
|
|
|
102
130
|
```jsonc
|
|
103
131
|
{
|
|
104
|
-
"epic": "auth-overhaul",
|
|
132
|
+
"epic": "auth-overhaul", // matches the manifest `epic`
|
|
133
|
+
"updatedAt": "2026-06-12T00:00:00Z", // refreshed on every successful write
|
|
105
134
|
"stages": {
|
|
106
135
|
"forge-verify-epic": {
|
|
107
|
-
"status": "findings-reported", // "findings-reported" | "passed" | "findings-applied"
|
|
136
|
+
"status": "findings-reported", // "findings-reported" | "passed" | "findings-applied" | "skipped" | "auto-verify-pending"
|
|
108
137
|
"findingsFile": ".verification/VERIFY-epic-2026-06-12.md",
|
|
109
138
|
"findingsCount": 3,
|
|
110
|
-
"verifiedAt": "2026-06-12T00:00:00Z"
|
|
139
|
+
"verifiedAt": "2026-06-12T00:00:00Z",
|
|
140
|
+
"verifiedStageVersion": 3, // the epic manifest revision this covers
|
|
141
|
+
"commitHash": null // filled by the Commit 2 provenance call
|
|
142
|
+
// "scheduledAt" / "scheduledStageVersion" appear only while an
|
|
143
|
+
// auto-verify-pending schedule is outstanding; a terminal result removes them
|
|
111
144
|
}
|
|
112
145
|
}
|
|
113
146
|
}
|
|
114
147
|
```
|
|
115
|
-
|
|
116
|
-
**Write mechanism.** `epic-manifest.py` exposes no subcommand that writes this file, so
|
|
117
|
-
the skill writes it **directly**, using an atomic temp-file + `os.replace()` pattern
|
|
118
|
-
(mirroring `02-manifest-helper-cli.md §3.3`): serialize the merged state to a sibling
|
|
119
|
-
temp file in `{specsDir}/{epic}/`, flush, then `os.replace()` it into place. Create the
|
|
120
|
-
file **lazily on first write** (a missing file is simply created; an existing file is
|
|
121
|
-
read, its `stages.forge-verify-epic` entry merged/replaced, and rewritten). On any I/O
|
|
122
|
-
failure, **report the error and leave any prior `.epic-state.json` intact** (never a
|
|
123
|
-
partial write). For example:
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
python3 - "$SPECS_DIR/$EPIC" <<'PY'
|
|
127
|
-
import json, os, sys, tempfile
|
|
128
|
-
from pathlib import Path
|
|
129
|
-
epic_dir = Path(sys.argv[1])
|
|
130
|
-
path = epic_dir / ".epic-state.json"
|
|
131
|
-
state = {}
|
|
132
|
-
if path.exists():
|
|
133
|
-
state = json.loads(path.read_text())
|
|
134
|
-
state.setdefault("epic", epic_dir.name)
|
|
135
|
-
state.setdefault("stages", {})
|
|
136
|
-
state["stages"]["forge-verify-epic"] = {
|
|
137
|
-
"status": "findings-reported", # or "passed" when findingsCount == 0
|
|
138
|
-
"findingsFile": ".verification/VERIFY-epic-2026-06-12.md",
|
|
139
|
-
"findingsCount": 3,
|
|
140
|
-
"verifiedAt": "2026-06-12T00:00:00Z",
|
|
141
|
-
}
|
|
142
|
-
fd, tmp = tempfile.mkstemp(dir=str(epic_dir), prefix=".epic-state.", suffix=".tmp")
|
|
143
|
-
try:
|
|
144
|
-
with os.fdopen(fd, "w") as f:
|
|
145
|
-
json.dump(state, f, indent=2)
|
|
146
|
-
f.flush()
|
|
147
|
-
os.fsync(f.fileno())
|
|
148
|
-
os.replace(tmp, path)
|
|
149
|
-
except OSError as e:
|
|
150
|
-
try:
|
|
151
|
-
os.unlink(tmp)
|
|
152
|
-
except OSError:
|
|
153
|
-
pass
|
|
154
|
-
print(f"failed to write .epic-state.json: {e}", file=sys.stderr)
|
|
155
|
-
raise
|
|
156
|
-
PY
|
|
157
|
-
```
|
|
@@ -191,6 +191,44 @@ Pipeline state is written by the `state-*` verbs of `scripts/forge-session.py`
|
|
|
191
191
|
|
|
192
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
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.
|
|
231
|
+
|
|
194
232
|
### Staleness Detection (Read-Time)
|
|
195
233
|
|
|
196
234
|
When loading upstream artifacts as prerequisites, check `basedOnVersions` in the pipeline state for this stage. If any upstream stage's current version is newer than the version recorded in `basedOnVersions`, warn the user before proceeding:
|
|
@@ -199,6 +237,31 @@ When loading upstream artifacts as prerequisites, check `basedOnVersions` in the
|
|
|
199
237
|
|
|
200
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.
|
|
201
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
|
+
|
|
202
265
|
## Branch Setup
|
|
203
266
|
|
|
204
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.
|