@garygentry/feature-forge 0.2.12 → 0.2.14
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/GENERATION-REPORT.md +1 -0
- package/adapters/claude/.feature-forge-bundle.json +1 -1
- package/adapters/claude/references/epic-manifest-schema.json +5 -0
- package/adapters/claude/references/forge-config-schema.json +5 -0
- package/adapters/claude/references/shared-conventions.md +12 -0
- package/adapters/claude/references/stacks/_generic.md +21 -0
- package/adapters/claude/references/stacks/go.md +19 -0
- package/adapters/claude/references/stacks/python.md +21 -0
- package/adapters/claude/references/stacks/rust.md +19 -0
- package/adapters/claude/references/stacks/typescript.md +23 -0
- package/adapters/claude/scripts/epic-manifest.py +284 -5
- package/adapters/claude/scripts/forge-bootstrap.py +1 -0
- package/adapters/claude/scripts/forge-init.sh +2 -0
- package/adapters/claude/scripts/forge-root.sh +55 -11
- package/adapters/claude/scripts/forge-session.py +38 -1
- package/adapters/claude/skills/forge/SKILL.md +9 -1
- package/adapters/claude/skills/forge/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge/references/process-overview.md +143 -0
- package/adapters/claude/skills/forge/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
- package/adapters/claude/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge-0-epic/references/portable-root.md +71 -0
- package/adapters/claude/skills/forge-0-epic/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-1-prd/SKILL.md +2 -0
- package/adapters/claude/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge-1-prd/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-2-tech/SKILL.md +3 -1
- package/adapters/claude/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge-2-tech/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-2-tech/references/stack-resolution.md +54 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/_generic.md +111 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/go.md +157 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/python.md +184 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/rust.md +170 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/typescript.md +134 -0
- package/adapters/claude/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-3-specs/SKILL.md +2 -0
- package/adapters/claude/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge-3-specs/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/_generic.md +111 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/go.md +157 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/python.md +184 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/rust.md +170 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/typescript.md +134 -0
- package/adapters/claude/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-4-backlog/SKILL.md +5 -0
- package/adapters/claude/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
- package/adapters/claude/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge-4-backlog/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-5-loop/SKILL.md +7 -9
- package/adapters/claude/skills/forge-5-loop/references/forge-config-schema.json +236 -0
- package/adapters/claude/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
- package/adapters/claude/skills/forge-5-loop/references/runner-contract.md +41 -0
- package/adapters/claude/skills/forge-5-loop/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-6-docs/SKILL.md +4 -1
- package/adapters/claude/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge-6-docs/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-fix/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-fix/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-guide/references/forge-config-schema.json +236 -0
- package/adapters/claude/skills/forge-guide/references/process-overview.md +143 -0
- package/adapters/claude/skills/forge-guide/references/ralph-loop-contract.md +221 -0
- package/adapters/claude/skills/forge-guide/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/claude/skills/forge-guide/references/stacks/_generic.md +111 -0
- package/adapters/claude/skills/forge-guide/references/stacks/go.md +157 -0
- package/adapters/claude/skills/forge-guide/references/stacks/python.md +184 -0
- package/adapters/claude/skills/forge-guide/references/stacks/rust.md +170 -0
- package/adapters/claude/skills/forge-guide/references/stacks/typescript.md +134 -0
- package/adapters/claude/skills/forge-init/SKILL.md +1 -0
- package/adapters/claude/skills/forge-verify/SKILL.md +5 -4
- package/adapters/claude/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge-verify/references/shared-conventions.md +295 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists.md +88 -2
- package/adapters/codex/.feature-forge-bundle.json +1 -1
- package/adapters/codex/references/epic-manifest-schema.json +5 -0
- package/adapters/codex/references/forge-config-schema.json +5 -0
- package/adapters/codex/references/shared-conventions.md +12 -0
- package/adapters/codex/references/stacks/_generic.md +21 -0
- package/adapters/codex/references/stacks/go.md +19 -0
- package/adapters/codex/references/stacks/python.md +21 -0
- package/adapters/codex/references/stacks/rust.md +19 -0
- package/adapters/codex/references/stacks/typescript.md +23 -0
- package/adapters/codex/scripts/epic-manifest.py +284 -5
- package/adapters/codex/scripts/forge-bootstrap.py +1 -0
- package/adapters/codex/scripts/forge-init.sh +2 -0
- package/adapters/codex/scripts/forge-root.sh +55 -11
- package/adapters/codex/scripts/forge-session.py +38 -1
- package/adapters/codex/skills/forge/SKILL.md +9 -1
- package/adapters/codex/skills/forge/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge/references/process-overview.md +143 -0
- package/adapters/codex/skills/forge/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
- package/adapters/codex/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge-0-epic/references/portable-root.md +71 -0
- package/adapters/codex/skills/forge-0-epic/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-1-prd/SKILL.md +2 -0
- package/adapters/codex/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge-1-prd/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-2-tech/SKILL.md +3 -1
- package/adapters/codex/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge-2-tech/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-2-tech/references/stack-resolution.md +54 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/_generic.md +111 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/go.md +157 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/python.md +184 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/rust.md +170 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/typescript.md +134 -0
- package/adapters/codex/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-3-specs/SKILL.md +2 -0
- package/adapters/codex/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge-3-specs/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/_generic.md +111 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/go.md +157 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/python.md +184 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/rust.md +170 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/typescript.md +134 -0
- package/adapters/codex/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-4-backlog/SKILL.md +5 -0
- package/adapters/codex/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
- package/adapters/codex/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge-4-backlog/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-5-loop/SKILL.md +7 -9
- package/adapters/codex/skills/forge-5-loop/references/forge-config-schema.json +236 -0
- package/adapters/codex/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
- package/adapters/codex/skills/forge-5-loop/references/runner-contract.md +41 -0
- package/adapters/codex/skills/forge-5-loop/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-6-docs/SKILL.md +4 -1
- package/adapters/codex/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge-6-docs/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-fix/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-fix/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-guide/references/forge-config-schema.json +236 -0
- package/adapters/codex/skills/forge-guide/references/process-overview.md +143 -0
- package/adapters/codex/skills/forge-guide/references/ralph-loop-contract.md +221 -0
- package/adapters/codex/skills/forge-guide/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/codex/skills/forge-guide/references/stacks/_generic.md +111 -0
- package/adapters/codex/skills/forge-guide/references/stacks/go.md +157 -0
- package/adapters/codex/skills/forge-guide/references/stacks/python.md +184 -0
- package/adapters/codex/skills/forge-guide/references/stacks/rust.md +170 -0
- package/adapters/codex/skills/forge-guide/references/stacks/typescript.md +134 -0
- package/adapters/codex/skills/forge-init/SKILL.md +1 -0
- package/adapters/codex/skills/forge-verify/SKILL.md +5 -4
- package/adapters/codex/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge-verify/references/shared-conventions.md +295 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists.md +88 -2
- package/adapters/copilot/.feature-forge-bundle.json +1 -1
- package/adapters/copilot/references/epic-manifest-schema.json +5 -0
- package/adapters/copilot/references/forge-config-schema.json +5 -0
- package/adapters/copilot/references/shared-conventions.md +12 -0
- package/adapters/copilot/references/stacks/_generic.md +21 -0
- package/adapters/copilot/references/stacks/go.md +19 -0
- package/adapters/copilot/references/stacks/python.md +21 -0
- package/adapters/copilot/references/stacks/rust.md +19 -0
- package/adapters/copilot/references/stacks/typescript.md +23 -0
- package/adapters/copilot/scripts/epic-manifest.py +284 -5
- package/adapters/copilot/scripts/forge-bootstrap.py +1 -0
- package/adapters/copilot/scripts/forge-init.sh +2 -0
- package/adapters/copilot/scripts/forge-root.sh +55 -11
- package/adapters/copilot/scripts/forge-session.py +38 -1
- package/adapters/copilot/skills/forge/forge.md +9 -1
- package/adapters/copilot/skills/forge/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge/references/process-overview.md +143 -0
- package/adapters/copilot/skills/forge/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge/references/stage-exit-protocol.md +258 -0
- package/adapters/copilot/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
- package/adapters/copilot/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge-0-epic/references/portable-root.md +71 -0
- package/adapters/copilot/skills/forge-0-epic/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
- package/adapters/copilot/skills/forge-1-prd/forge-1-prd.md +2 -0
- package/adapters/copilot/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge-1-prd/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
- package/adapters/copilot/skills/forge-2-tech/forge-2-tech.md +3 -1
- package/adapters/copilot/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge-2-tech/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-2-tech/references/stack-resolution.md +54 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/_generic.md +111 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/go.md +157 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/python.md +184 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/rust.md +170 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/typescript.md +134 -0
- package/adapters/copilot/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
- package/adapters/copilot/skills/forge-3-specs/forge-3-specs.md +2 -0
- package/adapters/copilot/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge-3-specs/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/_generic.md +111 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/go.md +157 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/python.md +184 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/rust.md +170 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/typescript.md +134 -0
- package/adapters/copilot/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
- package/adapters/copilot/skills/forge-4-backlog/forge-4-backlog.md +5 -0
- package/adapters/copilot/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
- package/adapters/copilot/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge-4-backlog/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- package/adapters/copilot/skills/forge-5-loop/forge-5-loop.md +7 -9
- package/adapters/copilot/skills/forge-5-loop/references/forge-config-schema.json +236 -0
- package/adapters/copilot/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
- package/adapters/copilot/skills/forge-5-loop/references/runner-contract.md +41 -0
- package/adapters/copilot/skills/forge-5-loop/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
- package/adapters/copilot/skills/forge-6-docs/forge-6-docs.md +4 -1
- package/adapters/copilot/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge-6-docs/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-fix/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-fix/references/stage-exit-protocol.md +258 -0
- package/adapters/copilot/skills/forge-guide/references/forge-config-schema.json +236 -0
- package/adapters/copilot/skills/forge-guide/references/process-overview.md +143 -0
- package/adapters/copilot/skills/forge-guide/references/ralph-loop-contract.md +221 -0
- package/adapters/copilot/skills/forge-guide/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/_generic.md +111 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/go.md +157 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/python.md +184 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/rust.md +170 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/typescript.md +134 -0
- package/adapters/copilot/skills/forge-init/forge-init.md +1 -0
- package/adapters/copilot/skills/forge-verify/forge-verify.md +5 -4
- package/adapters/copilot/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge-verify/references/shared-conventions.md +295 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists.md +88 -2
- package/adapters/cursor/.feature-forge-bundle.json +1 -1
- package/adapters/cursor/references/epic-manifest-schema.json +5 -0
- package/adapters/cursor/references/forge-config-schema.json +5 -0
- package/adapters/cursor/references/shared-conventions.md +12 -0
- package/adapters/cursor/references/stacks/_generic.md +21 -0
- package/adapters/cursor/references/stacks/go.md +19 -0
- package/adapters/cursor/references/stacks/python.md +21 -0
- package/adapters/cursor/references/stacks/rust.md +19 -0
- package/adapters/cursor/references/stacks/typescript.md +23 -0
- package/adapters/cursor/scripts/epic-manifest.py +284 -5
- package/adapters/cursor/scripts/forge-bootstrap.py +1 -0
- package/adapters/cursor/scripts/forge-init.sh +2 -0
- package/adapters/cursor/scripts/forge-root.sh +55 -11
- package/adapters/cursor/scripts/forge-session.py +38 -1
- package/adapters/cursor/skills/forge/forge.mdc +9 -1
- package/adapters/cursor/skills/forge/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge/references/process-overview.md +143 -0
- package/adapters/cursor/skills/forge/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge/references/stage-exit-protocol.md +258 -0
- package/adapters/cursor/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
- package/adapters/cursor/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge-0-epic/references/portable-root.md +71 -0
- package/adapters/cursor/skills/forge-0-epic/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
- package/adapters/cursor/skills/forge-1-prd/forge-1-prd.mdc +2 -0
- package/adapters/cursor/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge-1-prd/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
- package/adapters/cursor/skills/forge-2-tech/forge-2-tech.mdc +3 -1
- package/adapters/cursor/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge-2-tech/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-2-tech/references/stack-resolution.md +54 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/_generic.md +111 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/go.md +157 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/python.md +184 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/rust.md +170 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/typescript.md +134 -0
- package/adapters/cursor/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
- package/adapters/cursor/skills/forge-3-specs/forge-3-specs.mdc +2 -0
- package/adapters/cursor/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge-3-specs/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/_generic.md +111 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/go.md +157 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/python.md +184 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/rust.md +170 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/typescript.md +134 -0
- package/adapters/cursor/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
- package/adapters/cursor/skills/forge-4-backlog/forge-4-backlog.mdc +5 -0
- package/adapters/cursor/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
- package/adapters/cursor/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge-4-backlog/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- package/adapters/cursor/skills/forge-5-loop/forge-5-loop.mdc +7 -9
- package/adapters/cursor/skills/forge-5-loop/references/forge-config-schema.json +236 -0
- package/adapters/cursor/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
- package/adapters/cursor/skills/forge-5-loop/references/runner-contract.md +41 -0
- package/adapters/cursor/skills/forge-5-loop/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
- package/adapters/cursor/skills/forge-6-docs/forge-6-docs.mdc +4 -1
- package/adapters/cursor/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge-6-docs/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-fix/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-fix/references/stage-exit-protocol.md +258 -0
- package/adapters/cursor/skills/forge-guide/references/forge-config-schema.json +236 -0
- package/adapters/cursor/skills/forge-guide/references/process-overview.md +143 -0
- package/adapters/cursor/skills/forge-guide/references/ralph-loop-contract.md +221 -0
- package/adapters/cursor/skills/forge-guide/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/_generic.md +111 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/go.md +157 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/python.md +184 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/rust.md +170 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/typescript.md +134 -0
- package/adapters/cursor/skills/forge-init/forge-init.mdc +1 -0
- package/adapters/cursor/skills/forge-verify/forge-verify.mdc +5 -4
- package/adapters/cursor/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge-verify/references/shared-conventions.md +295 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists.md +88 -2
- 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 +5 -0
- package/adapters/gemini/references/forge-config-schema.json +5 -0
- package/adapters/gemini/references/shared-conventions.md +12 -0
- package/adapters/gemini/references/stacks/_generic.md +21 -0
- package/adapters/gemini/references/stacks/go.md +19 -0
- package/adapters/gemini/references/stacks/python.md +21 -0
- package/adapters/gemini/references/stacks/rust.md +19 -0
- package/adapters/gemini/references/stacks/typescript.md +23 -0
- package/adapters/gemini/scripts/epic-manifest.py +284 -5
- package/adapters/gemini/scripts/forge-bootstrap.py +1 -0
- package/adapters/gemini/scripts/forge-init.sh +2 -0
- package/adapters/gemini/scripts/forge-root.sh +55 -11
- package/adapters/gemini/scripts/forge-session.py +38 -1
- package/adapters/gemini/skills/forge/forge.md +9 -1
- package/adapters/gemini/skills/forge/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge/references/process-overview.md +143 -0
- package/adapters/gemini/skills/forge/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge/references/stage-exit-protocol.md +258 -0
- package/adapters/gemini/skills/forge-0-epic/references/epic-manifest-subcommands.md +11 -0
- package/adapters/gemini/skills/forge-0-epic/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge-0-epic/references/portable-root.md +71 -0
- package/adapters/gemini/skills/forge-0-epic/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-0-epic/references/stage-exit-protocol.md +258 -0
- package/adapters/gemini/skills/forge-1-prd/forge-1-prd.md +2 -0
- package/adapters/gemini/skills/forge-1-prd/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge-1-prd/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
- package/adapters/gemini/skills/forge-2-tech/forge-2-tech.md +3 -1
- package/adapters/gemini/skills/forge-2-tech/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge-2-tech/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-2-tech/references/stack-resolution.md +54 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/_generic.md +111 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/go.md +157 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/python.md +184 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/rust.md +170 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/typescript.md +134 -0
- package/adapters/gemini/skills/forge-2-tech/references/stage-exit-protocol.md +258 -0
- package/adapters/gemini/skills/forge-3-specs/forge-3-specs.md +2 -0
- package/adapters/gemini/skills/forge-3-specs/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge-3-specs/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/_generic.md +111 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/go.md +157 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/python.md +184 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/rust.md +170 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/typescript.md +134 -0
- package/adapters/gemini/skills/forge-3-specs/references/stage-exit-protocol.md +258 -0
- package/adapters/gemini/skills/forge-4-backlog/forge-4-backlog.md +5 -0
- package/adapters/gemini/skills/forge-4-backlog/references/forge-config-schema.json +236 -0
- package/adapters/gemini/skills/forge-4-backlog/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge-4-backlog/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- package/adapters/gemini/skills/forge-5-loop/forge-5-loop.md +7 -9
- package/adapters/gemini/skills/forge-5-loop/references/forge-config-schema.json +236 -0
- package/adapters/gemini/skills/forge-5-loop/references/ralph-loop-contract.md +221 -0
- package/adapters/gemini/skills/forge-5-loop/references/runner-contract.md +41 -0
- package/adapters/gemini/skills/forge-5-loop/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-5-loop/references/stage-exit-protocol.md +258 -0
- package/adapters/gemini/skills/forge-6-docs/forge-6-docs.md +4 -1
- package/adapters/gemini/skills/forge-6-docs/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge-6-docs/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-fix/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-fix/references/stage-exit-protocol.md +258 -0
- package/adapters/gemini/skills/forge-guide/references/forge-config-schema.json +236 -0
- package/adapters/gemini/skills/forge-guide/references/process-overview.md +143 -0
- package/adapters/gemini/skills/forge-guide/references/ralph-loop-contract.md +221 -0
- package/adapters/gemini/skills/forge-guide/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/_generic.md +111 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/go.md +157 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/python.md +184 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/rust.md +170 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/typescript.md +134 -0
- package/adapters/gemini/skills/forge-init/forge-init.md +1 -0
- package/adapters/gemini/skills/forge-verify/forge-verify.md +5 -4
- package/adapters/gemini/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge-verify/references/shared-conventions.md +295 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists.md +88 -2
- package/package.json +1 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Feature Forge Configuration",
|
|
4
|
+
"description": "Project-level configuration for the feature-forge plugin. Place as forge.config.json in your project root.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"specsDir": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"default": "./specs",
|
|
10
|
+
"description": "Root directory for feature spec documents. Each feature gets a subdirectory."
|
|
11
|
+
},
|
|
12
|
+
"docsDir": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "./docs/architecture",
|
|
15
|
+
"description": "Root directory for generated architecture documentation."
|
|
16
|
+
},
|
|
17
|
+
"backlogDir": {
|
|
18
|
+
"type": ["string", "null"],
|
|
19
|
+
"default": null,
|
|
20
|
+
"description": "Optional override for the backlog root. If set, the backlog is written to {backlogDir}/{feature}/backlog.json — the {feature} subdirectory is always composed in so multi-feature epics never collide. Default behavior (null): backlog.json is written to {specsDir}/{feature}/backlog.json with the feature specs."
|
|
21
|
+
},
|
|
22
|
+
"gitCommitAfterStage": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": true,
|
|
25
|
+
"description": "Automatically commit after each pipeline stage completes."
|
|
26
|
+
},
|
|
27
|
+
"commitPrefix": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"default": "forge",
|
|
30
|
+
"description": "Prefix for conventional commit messages, e.g., forge(auth): complete PRD"
|
|
31
|
+
},
|
|
32
|
+
"branchPerFeature": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": true,
|
|
35
|
+
"description": "Offer to create an isolated git branch when a feature/epic starts on the default branch (main/master). Gated only on the project using git — independent of gitCommitAfterStage. When false, forge never prompts for a branch and works on whatever branch is checked out. See the Branch Setup block in references/shared-conventions.md."
|
|
36
|
+
},
|
|
37
|
+
"branchPrefix": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"default": "forge/",
|
|
40
|
+
"description": "Prefix for the branch name suggested by Branch Setup, e.g. 'forge/' yields 'forge/{feature}' or 'forge/{epic}'. Ignored when branchPerFeature is false."
|
|
41
|
+
},
|
|
42
|
+
"stack": {
|
|
43
|
+
"type": ["string", "null"],
|
|
44
|
+
"description": "Detected or configured project stack identifier. Selects guidance from references/stacks/{stack}.md. Set during forge-2-tech or manually (null until then). Examples: 'typescript', 'python', 'go', 'rust'."
|
|
45
|
+
},
|
|
46
|
+
"typeCheckCommand": {
|
|
47
|
+
"type": ["string", "null"],
|
|
48
|
+
"description": "Command to verify type correctness or lint. Null until set. Examples: 'bun run typecheck', 'mypy .', 'go vet ./...'. Used in acceptance criteria and verification."
|
|
49
|
+
},
|
|
50
|
+
"testCommand": {
|
|
51
|
+
"type": ["string", "null"],
|
|
52
|
+
"description": "Command to run tests. Null until set. Examples: 'bun test', 'pytest', 'go test ./...'. Used in acceptance criteria and verification."
|
|
53
|
+
},
|
|
54
|
+
"smokeCommand": {
|
|
55
|
+
"type": ["string", "null"],
|
|
56
|
+
"default": null,
|
|
57
|
+
"description": "Optional end-to-end smoke command that boots the wired application entrypoint and drives one happy-path request, exiting 0 on success. DISTINCT from testCommand (unit tests, which may self-bootstrap) and loopRunner.runCommand (the loop launcher). Consumed by impl-verify's runnability check (CHECK-I21): when set it is executed (pass iff exit 0); when null the check degrades to an advisory not-applicable finding, never a hard fail (mirrors how a null typeCheckCommand is treated). Examples: 'npm run smoke', './scripts/smoke.sh', 'curl -fsS localhost:3000/health'."
|
|
58
|
+
},
|
|
59
|
+
"loopIterationMultiplier": {
|
|
60
|
+
"type": "number",
|
|
61
|
+
"default": 1.5,
|
|
62
|
+
"minimum": 1,
|
|
63
|
+
"description": "Multiplier applied to pending backlog item count to calculate loop iterations. Higher values allow more retries. Default: 1.5 (e.g., 10 items = 15 iterations)."
|
|
64
|
+
},
|
|
65
|
+
"autoInvokeNextStage": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": true,
|
|
68
|
+
"description": "When true (default), the /feature-forge:forge navigator auto-invokes the next pipeline stage via the Skill tool after the user confirms it, instead of only printing the command to copy. Set false to keep the old copy-paste behavior (the navigator suggests the command but never launches it). Ignored on non-Claude hosts, which always fall back to printing the command."
|
|
69
|
+
},
|
|
70
|
+
"autoVerify": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"default": false,
|
|
73
|
+
"description": "When true, the /feature-forge:forge navigator automatically runs forge-verify after a stage completes, with no prompt. forge-verify runs in a fresh forge-verifier subagent (clean-room), so it never needs a context clear and costs the current session only a compact findings digest. Default false preserves today's manual-gate behavior. Ignored on non-Claude hosts, which always fall back to printing the verify command. Per-stage overrides in autoVerifyStages take precedence."
|
|
74
|
+
},
|
|
75
|
+
"autoVerifyStages": {
|
|
76
|
+
"type": "object",
|
|
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 a schema error, not a silent no-op. forge-6-docs has no verify step and is not a valid key.",
|
|
79
|
+
"propertyNames": {
|
|
80
|
+
"enum": ["forge-1-prd", "forge-2-tech", "forge-3-specs", "forge-4-backlog", "forge-5-loop"]
|
|
81
|
+
},
|
|
82
|
+
"additionalProperties": {
|
|
83
|
+
"type": "boolean"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"autoFix": {
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": false,
|
|
89
|
+
"description": "When true, the navigator chains forge-fix automatically after an auto-verify that finds issues. Honored ONLY when auto-verify is effectively on for the stage, and ONLY when preconditions hold (findings doc has zero unresolved decision points, working tree is clean, and a mandatory re-verify passes) — otherwise it falls back to surfacing the findings digest and prompting. Default false keeps fixing human-gated."
|
|
90
|
+
},
|
|
91
|
+
"contextWindowTokens": {
|
|
92
|
+
"type": ["integer", "null"],
|
|
93
|
+
"default": null,
|
|
94
|
+
"description": "Context window size (tokens) used by the navigator's context-usage check to compute how full the current session is. Null (default) lets the helper infer from the session model and fall back to 200000 — and if observed usage already exceeds 200000 it auto-bumps the assumed window to 1000000 (proof a 1M-beta window is active). Set this explicitly to your model's window (e.g. 1000000 for a 1M-context model) for accurate percentages below 200000 too, since 1M cannot be detected from the transcript until usage crosses 200000."
|
|
95
|
+
},
|
|
96
|
+
"contextWarnThreshold": {
|
|
97
|
+
"type": "number",
|
|
98
|
+
"default": 0.7,
|
|
99
|
+
"minimum": 0,
|
|
100
|
+
"maximum": 1,
|
|
101
|
+
"description": "Fraction of the context window (0-1) past which the navigator recommends starting the next stage in a clean session rather than continuing. Default: 0.7."
|
|
102
|
+
},
|
|
103
|
+
"workspaces": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"description": "Monorepo members. Absent for single-package projects.",
|
|
106
|
+
"items": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"required": ["name", "path", "stack"],
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"properties": {
|
|
111
|
+
"name": {"type": "string"},
|
|
112
|
+
"path": {"type": "string", "description": "Repo-relative member dir"},
|
|
113
|
+
"stack": {"type": "string"},
|
|
114
|
+
"typeCheckCommand": {"type": ["string", "null"]},
|
|
115
|
+
"testCommand": {"type": ["string", "null"]}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"loopRunner": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"description": "The autonomous loop runner feature-forge drives. Defaults to rauf when absent (forge-5 states 'defaulting to rauf loop runner'). Every command is a template — {bin}, {backlogDir}, {specsDir}, {iterations} are substituted at call time — so an alternative ralph-style runner conforming to rauf's SPEC-BACKLOG-TOOL-CONTRACT.md can be swapped in without editing any skill. See references/ralph-loop-contract.md.",
|
|
122
|
+
"properties": {
|
|
123
|
+
"name": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"default": "rauf",
|
|
126
|
+
"description": "Display name of the loop runner."
|
|
127
|
+
},
|
|
128
|
+
"bin": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"default": "rauf",
|
|
131
|
+
"description": "The runner executable. Assumed on PATH; may be an absolute path. Substituted as {bin} in every command."
|
|
132
|
+
},
|
|
133
|
+
"runCommand": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"default": "{bin} loop run . --backlog {backlogDir} --iterations {iterations}",
|
|
136
|
+
"description": "Run the loop. Launched in the background by forge-5. Human-formatted output; used as the fallback launch command when eventStreamCommand is absent."
|
|
137
|
+
},
|
|
138
|
+
"eventStreamCommand": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"default": "{bin} loop run . --backlog {backlogDir} --iterations {iterations} --ndjson",
|
|
141
|
+
"description": "Stdout NDJSON launch command for a runner that does NOT persist its own event file — same as runCommand but emits one machine-readable JSON event per stdout line: item_completed / item_blocked / needs_human / signal_parsed / loop_completed / loop_error / loop_cancelled / llm_stuck_warning, each with {type, timestamp, projectPath} plus payload (a circuit-breaker halt surfaces as loop_error). NOTE: rauf (the default runner) ALREADY persists {stateDir}/events.ndjson natively and rotates it per run, so forge-5 launches the plain runCommand and monitors that native file — it does NOT use this field, and must NOT redirect --ndjson into {stateDir} (redundant, and it collides with the runner's own writer / archive rotation). This field is only for a stdout-only runner with no native event file; forge-5 then redirects its stdout to a file OUTSIDE {stateDir} and monitors that. Omit it entirely for a runner that self-persists or cannot emit NDJSON."
|
|
142
|
+
},
|
|
143
|
+
"validateCommand": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"default": "{bin} backlog validate . --backlog {backlogDir} --specs-dir {specsDir} --json",
|
|
146
|
+
"description": "Validate a backlog. MUST exit 0=valid, 1=findings, 2=usage/IO, and emit { valid, findings[] } with --json. `specReferences` are project-root-relative (resolved against the project root); `--specs-dir` only gates the existence check, so passing the specs root ({specsDir}) is sufficient."
|
|
147
|
+
},
|
|
148
|
+
"statusCommand": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"default": "{bin} status . --backlog {backlogDir}",
|
|
151
|
+
"description": "One-shot loop status, human-formatted. Shown to the user as a monitoring hint."
|
|
152
|
+
},
|
|
153
|
+
"statusJsonCommand": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"default": "{bin} status . --backlog {backlogDir} --json",
|
|
156
|
+
"description": "Machine-readable derived status used by forge-5 for milestone tallies and the final summary. Emits { loopState, iteration, maxIterations, currentItem, lastSignal, backlogSummary{pending,inProgress,blocked,needsHuman,deferred,done,total}, lock{...} }. Distinguishes the three non-done outcomes (genuine blocked vs needsHuman vs runner-deferred 'false blocks')."
|
|
157
|
+
},
|
|
158
|
+
"listCommand": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"default": "{bin} backlog list . --backlog {backlogDir} --json",
|
|
161
|
+
"description": "List backlog items as JSON."
|
|
162
|
+
},
|
|
163
|
+
"followCommand": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"default": "{bin} follow . --backlog {backlogDir}",
|
|
166
|
+
"description": "Stream live loop events, HUMAN-formatted (pretty-printed / log tail) — for a person watching in another terminal, NOT a machine-readable surface. forge-5 supervises via eventStreamCommand (NDJSON) instead."
|
|
167
|
+
},
|
|
168
|
+
"logCommand": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"default": "{bin} log . --backlog {backlogDir} --follow",
|
|
171
|
+
"description": "Tail the runner log, human-formatted. Monitoring hint for the user."
|
|
172
|
+
},
|
|
173
|
+
"watchCommand": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"default": "{bin} status . --backlog {backlogDir} --json",
|
|
176
|
+
"description": "Machine-readable status used by forge-5 for stall detection. rauf's `loop watch` verb was removed in v0.5.0, so this now points at `status --json`; forge-5 keys off the iteration-status `stuckWarning` flag (read from `status --json` / `iteration-status.json`) rather than guessing liveness from state.json timestamps."
|
|
177
|
+
},
|
|
178
|
+
"versionCommand": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"default": "{bin} version --json",
|
|
181
|
+
"description": "Report runner version as { version: <semver> }. Used to enforce minRunnerVersion before running."
|
|
182
|
+
},
|
|
183
|
+
"agentArgument": {
|
|
184
|
+
"type": "string",
|
|
185
|
+
"default": "--agent {agent}",
|
|
186
|
+
"description": "Tokenized argument appended to the launch command (eventStreamCommand/runCommand) when forge resolves a non-default coding agent for the run. {agent} is substituted ONLY with a validated, advertised agent id (a member of the set agentsProbeCommand reports). PRESENCE of this field advertises the runner's agent surface: when present and non-empty, forge-5 offers the per-run agent selector, honors defaultAgent, and may run agentsProbeCommand; OMIT it for a runner with no agent dimension and forge skips agent selection entirely — no selector, no probe, no {agent} substitution, no agent argument sent (byte-identical to today). Distinct from the version gate (minRunnerVersion)."
|
|
187
|
+
},
|
|
188
|
+
"agentsProbeCommand": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"default": "{bin} agents --json",
|
|
191
|
+
"description": "Coding-agent availability probe. MUST emit { agents: [{ id, displayName, available, ... }] } and exit 0 (it always exits 0: an unknown id simply never appears; a known-unavailable one appears with available:false). forge-5 runs it ONCE (no retries) before launching a non-default agent to (a) validate the resolved id against the advertised id set and (b) report availability in the pre-launch confirmation. Ignored on the default path and when agentArgument is absent."
|
|
192
|
+
},
|
|
193
|
+
"defaultAgent": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"default": "",
|
|
196
|
+
"description": "Project-default coding agent id, so a project can fix its agent once without specifying it every run. Empty string ⇒ no project default (the runner's own default — claude-cli for rauf — applies, behaving exactly as today). Overridden by the per-run agent selector (run > project precedence, resolved inside forge before the single --agent is emitted). Ignored when agentArgument is absent."
|
|
197
|
+
},
|
|
198
|
+
"preconditionFile": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"default": ".rauf.json",
|
|
201
|
+
"description": "Project-root marker file that must exist (runner installed into the target project)."
|
|
202
|
+
},
|
|
203
|
+
"stateDir": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"default": ".rauf",
|
|
206
|
+
"description": "Per-backlog state directory name created under the backlog dir."
|
|
207
|
+
},
|
|
208
|
+
"logFile": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"default": "rauf.log",
|
|
211
|
+
"description": "Human-readable event log filename written under {stateDir}. Substituted as {loopRunner.logFile} in the log-tail fallback Monitor command when eventStreamCommand (events.ndjson) is unavailable. The structured NDJSON path uses the contract-standard name events.ndjson and is not configurable here."
|
|
212
|
+
},
|
|
213
|
+
"setupHint": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"default": "Run `rauf install .` to install rauf's per-project artifacts (.rauf/, RAUF.md, schema), then re-run forge-5.",
|
|
216
|
+
"description": "Shown when preconditionFile is missing — how to set up the runner IN THIS PROJECT (per-project artifacts)."
|
|
217
|
+
},
|
|
218
|
+
"installHint": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"default": "Provision rauf for a multi-agent setup with the cross-agent installer: `npx @garygentry/feature-forge install` (records the pinned @garygentry/rauf@0.12.0 default). Or install/upgrade just the rauf CLI: `npx @garygentry/rauf@0.12.0 --version`, or `curl -fsSL https://raw.githubusercontent.com/garygentry/rauf/main/scripts/install-binary.sh | bash`.",
|
|
221
|
+
"description": "Shown when the runner BINARY is missing or too old (version gate fails, minRunnerVersion floor) — how to obtain/upgrade the CLI itself. Names two distinct binary-provisioning paths: (1) the cross-agent installer (`npx @garygentry/feature-forge install`, the multi-agent provisioning path that pins @garygentry/rauf@0.12.0), and (2) the direct rauf-CLI install/upgrade one-liner. Distinct from setupHint (which installs per-project artifacts); a version-gate failure is ALWAYS this hint, never setupHint."
|
|
222
|
+
},
|
|
223
|
+
"schemaVersion": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"default": "1",
|
|
226
|
+
"description": "Backlog schemaVersion this runner config targets."
|
|
227
|
+
},
|
|
228
|
+
"minRunnerVersion": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"default": "0.6.0",
|
|
231
|
+
"description": "Minimum runner version (semver). 0.6.0 is the AGENT-SURFACE FLOOR: the rauf version that ships the coding-agent selection surface (the --agent flag, the `agents` availability probe, and the preset agent registry) that this config's agentArgument/agentsProbeCommand consume. Flooring here guarantees a successful gate implies those surfaces exist. (0.5.0 was the prior grammar/contract-flip floor — unified exit codes, `loop run --detached`, explicit `review` signal, versioned events.ndjson — which predates the agent surface and so could not guarantee it.) forge-5 enforces this via versionCommand before any loop side-effects."
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Feature Forge Pipeline Overview
|
|
2
|
+
|
|
3
|
+
This document describes the end-to-end feature development pipeline managed by the feature-forge plugin. All forge skills reference this document to understand the overall flow and their position within it.
|
|
4
|
+
|
|
5
|
+
The pipeline compiles a fuzzy feature idea into a machine-executable `backlog.json`. Each stage narrows the idea down and adds structure, verification gates catch gaps before they reach later stages, and a swappable autonomous loop runner (rauf by default) implements the backlog in fresh per-item sessions.
|
|
6
|
+
|
|
7
|
+
## Pipeline Stages
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
[forge-0-epic] → forge-1-prd → forge-2-tech → forge-3-specs → forge-verify → forge-4-backlog → forge-verify → forge-5-loop → forge-verify → forge-6-docs
|
|
11
|
+
(optional)
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Stage 0: Epic (`/feature-forge:forge-0-epic <epic>`), optional
|
|
15
|
+
**Input:** A change too large for one feature
|
|
16
|
+
**Output:** `{specsDir}/{epic}/epic-manifest.json` + `EPIC.md` + one member-feature dir per feature
|
|
17
|
+
**Method:** Decomposition interview splitting the change into member features with declared dependencies and `exposes`/`consumes` contracts. Purely additive: single-feature flows are unchanged. See [docs/architecture/epic-orchestration/README.md](../docs/architecture/epic-orchestration/README.md).
|
|
18
|
+
|
|
19
|
+
### Stage 1: PRD (`/feature-forge:forge-1-prd <feature>`)
|
|
20
|
+
**Input:** User's feature idea and domain knowledge
|
|
21
|
+
**Output:** `{specsDir}/{feature}/PRD.md`
|
|
22
|
+
**Method:** Structured interview focused exclusively on requirements. No technology decisions.
|
|
23
|
+
|
|
24
|
+
### Stage 2: Tech Spec (`/feature-forge:forge-2-tech <feature>`)
|
|
25
|
+
**Input:** PRD.md
|
|
26
|
+
**Output:** `{specsDir}/{feature}/tech-spec.md`
|
|
27
|
+
**Method:** Structured interview for technology decisions, grounded in PRD requirements.
|
|
28
|
+
|
|
29
|
+
### Stage 3: Implementation Specs (`/feature-forge:forge-3-specs <feature>`)
|
|
30
|
+
**Input:** PRD.md + tech-spec.md
|
|
31
|
+
**Output:** `{specsDir}/{feature}/##-<name>.md` (suite of numbered documents)
|
|
32
|
+
**Method:** Generate detailed implementation documents from spec archetypes.
|
|
33
|
+
|
|
34
|
+
### Verification Gate (`/feature-forge:forge-verify <feature>`)
|
|
35
|
+
**Input:** All artifacts from current and prior stages
|
|
36
|
+
**Output:** `{specsDir}/{feature}/.verification/VERIFY-<stage>-<timestamp>.md` (includes both findings and a Fix Execution Plan)
|
|
37
|
+
**Method:** Clean-context analysis producing actionable findings with an ordered fix plan.
|
|
38
|
+
|
|
39
|
+
**Manual or automatic.** By default the navigator offers verification after each stage. Because
|
|
40
|
+
it runs in a fresh, read-only subagent (clean-room by construction, never needs a `/clear`), it is
|
|
41
|
+
safe to automate: set `autoVerify: true` (or per-stage via `autoVerifyStages`) in
|
|
42
|
+
`forge.config.json` and the navigator runs `forge-verify` automatically once a stage completes,
|
|
43
|
+
returning only a compact digest to the session. The freshness ledger (verify entries record the
|
|
44
|
+
artifact `version` they ran against) means a stage is re-verified only when its artifact changes,
|
|
45
|
+
and an explicitly `skipped` verify is respected. Fixing stays human-gated unless `autoFix: true` is
|
|
46
|
+
also set, which chains `forge-fix` only when preconditions hold (zero unresolved decisions, clean
|
|
47
|
+
tree, passing re-verify). See `references/shared-conventions.md` for the config keys.
|
|
48
|
+
|
|
49
|
+
After verification, fixes can be applied via:
|
|
50
|
+
- `/feature-forge:forge-fix <feature>` — reads the Fix Execution Plan from the findings document and applies changes (works in any session)
|
|
51
|
+
- Plan mode workflow — enter plan mode, run verify, review plan, exit and execute
|
|
52
|
+
- Manual — read findings and apply fixes by hand
|
|
53
|
+
|
|
54
|
+
### Stage 4: Backlog (`/feature-forge:forge-4-backlog <feature>`)
|
|
55
|
+
**Input:** Full spec suite
|
|
56
|
+
**Output:** `{specsDir}/{feature}/backlog.json` (or `{backlogDir}/{feature}/backlog.json` if backlogDir is configured)
|
|
57
|
+
**Method:** Generate structured backlog items with spec references, acceptance criteria, and dependencies. Backlog is collocated with feature specs by default.
|
|
58
|
+
|
|
59
|
+
### Stage 5: Rauf Loop (`/feature-forge:forge-5-loop <feature>`)
|
|
60
|
+
**Input:** `backlog.json` from Stage 4
|
|
61
|
+
**Output:** Implemented source code (committed per-item by rauf)
|
|
62
|
+
**Method:** Execute the autonomous coding loop against the feature's backlog. Spawns a fresh session per backlog item with full spec context. rauf is the default runner but is swappable via the `loopRunner` block in `forge.config.json`; see [`references/ralph-loop-contract.md`](./ralph-loop-contract.md).
|
|
63
|
+
|
|
64
|
+
### Stage 6: Documentation (`/feature-forge:forge-6-docs <feature>`)
|
|
65
|
+
**Input:** Specs + implementation
|
|
66
|
+
**Output:** `{docsDir}/{feature}/` documentation suite
|
|
67
|
+
**Method:** Generate developer-focused architecture documentation.
|
|
68
|
+
|
|
69
|
+
## Pipeline State
|
|
70
|
+
|
|
71
|
+
State is tracked in `{specsDir}/{feature}/.pipeline-state.json` and persists across session clears. The `/feature-forge:forge <feature>` navigator reads this file to show current progress.
|
|
72
|
+
|
|
73
|
+
## Git Discipline
|
|
74
|
+
|
|
75
|
+
Every stage completion should be followed by a git commit:
|
|
76
|
+
- Commit message format: `{commitPrefix}({feature}): <action>`
|
|
77
|
+
- Examples: `forge(auth): complete PRD v1`, `forge(auth): apply spec verification fixes`
|
|
78
|
+
- Before applying verification fixes, commit current state first (so pre-fix state is recoverable)
|
|
79
|
+
- After applying fixes, commit again
|
|
80
|
+
|
|
81
|
+
## Configuration
|
|
82
|
+
|
|
83
|
+
Read `forge.config.json` from project root for path overrides. See `references/forge-config-schema.json` for the full schema. If no config file exists, use defaults:
|
|
84
|
+
- specsDir: `./specs`
|
|
85
|
+
- docsDir: `./docs/architecture`
|
|
86
|
+
- backlogDir: (null — backlog defaults to {specsDir}/{feature}/backlog.json)
|
|
87
|
+
- gitCommitAfterStage: `true`
|
|
88
|
+
- commitPrefix: `forge`
|
|
89
|
+
|
|
90
|
+
## Git Workflow
|
|
91
|
+
|
|
92
|
+
Recommended: forge work lives on an isolated `forge/{feature}` (or `forge/{epic}`) branch so all commits land together and review as one branch. The entry stages (`forge-1-prd`, `forge-0-epic`) detect whether you're on the default branch (main/master) and **strongly recommend** creating that branch when you are — still letting you decline and stay. The chosen branch is recorded in `.pipeline-state.json`, and `forge-5-loop` re-checks it before the autonomous loop starts committing per item. After implementation, merge to your development branch.
|
|
93
|
+
|
|
94
|
+
To customize: `branchPrefix` (default `forge/`) sets the branch name, and `branchPerFeature: false` disables the prompt entirely (forge then works on whatever branch is checked out). Branch Setup is gated only on the project using git — independent of `gitCommitAfterStage`.
|
|
95
|
+
|
|
96
|
+
If you prefer manual commit control, set `gitCommitAfterStage: false` in `forge.config.json`.
|
|
97
|
+
|
|
98
|
+
## Cross-Cutting Concerns
|
|
99
|
+
|
|
100
|
+
### Feature Name is Required
|
|
101
|
+
Every forge skill requires a feature name as the first argument. If not provided, STOP and ask. Never guess.
|
|
102
|
+
|
|
103
|
+
### Reference Existing Code
|
|
104
|
+
When creating specs, always examine the existing codebase for patterns, conventions, and integration points. Check:
|
|
105
|
+
- Other feature specs in `{specsDir}/`
|
|
106
|
+
- Existing documentation in `{docsDir}/`
|
|
107
|
+
- Module/package structure and exports in the project
|
|
108
|
+
- Shared types, utilities, and conventions
|
|
109
|
+
|
|
110
|
+
### Stack Context
|
|
111
|
+
The project's stack is detected during forge-2-tech and persisted in `forge.config.json` (the `stack`, `typeCheckCommand`, and `testCommand` fields). See `references/stack-resolution.md` for the full resolution protocol. The project may also have a `stack-decisions.md` (preferred at `.feature-forge/`; legacy `.claude/references/`) with established technology decisions — if present, it takes highest precedence.
|
|
112
|
+
|
|
113
|
+
## Subagents
|
|
114
|
+
|
|
115
|
+
The plugin includes three specialized subagents in `agents/` that enhance specific
|
|
116
|
+
pipeline steps. They use **model aliases** (`opus`/`sonnet`) rather than pinned IDs, so
|
|
117
|
+
they track the current model tier automatically.
|
|
118
|
+
|
|
119
|
+
### forge-verifier
|
|
120
|
+
- **Purpose:** Read-only verification of pipeline artifacts
|
|
121
|
+
- **Used by:** `forge-verify` skill (delegation via Agent tool)
|
|
122
|
+
- **Tools:** Read, Glob, Grep, Bash (read-only operations only)
|
|
123
|
+
- **Model:** Opus (judgement-heavy gap/inconsistency analysis)
|
|
124
|
+
- **Memory:** Project-scoped persistent memory — accumulates knowledge about recurring issues and project-specific patterns across sessions
|
|
125
|
+
- **Parallel:** For large modes (specs/backlog/impl), `forge-verify` dispatches several instances in parallel, one per **dimension group** (e.g. types/contracts, traceability, testing), and the parent merges their findings. An opt-in adversarial "deep verify" pass re-checks high-severity findings with a skeptic instance to cut false positives. A purely mechanical dimension (e.g. traceability validation) could run on a cheaper tier (Haiku) if cost matters.
|
|
126
|
+
- **Why a subagent:** Verification reads the entire spec suite, backlog, and potentially source code. Running this in a separate context window prevents context pressure on the main conversation. The read-only tool restriction also makes it impossible to accidentally modify specs during verification.
|
|
127
|
+
|
|
128
|
+
### forge-researcher
|
|
129
|
+
- **Purpose:** Codebase exploration and integration mapping
|
|
130
|
+
- **Used by:** `forge-2-tech` skill (spawned before the tech-spec interview)
|
|
131
|
+
- **Tools:** Read, Glob, Grep, Bash (read-only)
|
|
132
|
+
- **Model:** Sonnet (cost-efficient for exploration tasks)
|
|
133
|
+
- **Parallel:** For a large codebase or uncertain scope, `forge-2-tech` may dispatch several researchers in parallel, each with a disjoint focus (structure/conventions, per-subsystem integration surfaces), and merge the reports.
|
|
134
|
+
- **Why a subagent:** Tech-spec planning requires reading many files across the project to understand integration points. Running this in a separate context returns a concise report without consuming the main session's context, keeping the interview focused.
|
|
135
|
+
|
|
136
|
+
### forge-spec-writer
|
|
137
|
+
- **Purpose:** Author exactly one numbered implementation spec document to the forge-3-specs quality bar
|
|
138
|
+
- **Used by:** `forge-3-specs` skill (parallel fan-out after the shared foundation docs are written)
|
|
139
|
+
- **Tools:** Read, Glob, Grep, Bash, **Write** (the only authoring agent — constrained to write its single assigned file)
|
|
140
|
+
- **Model:** Opus (spec authoring is detail- and judgement-heavy)
|
|
141
|
+
- **Why a subagent:** Authoring the whole suite in the main session serializes the work and pressures context. Writing the foundation (00/01) first, then fanning out one writer per remaining doc, parallelizes authoring while the parent keeps the cross-reference + traceability finish in view.
|
|
142
|
+
|
|
143
|
+
All three subagents are optional. If the agents are not installed or the environment doesn't support subagents, the corresponding skills fall back to running inline (or, for spec authoring, batched in the main session).
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
# The Loop-Runner Contract (consumer side)
|
|
2
|
+
|
|
3
|
+
feature-forge's pipeline ends by handing a `backlog.json` to an autonomous
|
|
4
|
+
**loop runner** that implements each item. feature-forge does not embed any
|
|
5
|
+
runner's internals — it talks to the runner through one indirection point: the
|
|
6
|
+
**`loopRunner`** block in `forge.config.json`.
|
|
7
|
+
|
|
8
|
+
## The seam
|
|
9
|
+
|
|
10
|
+
Every command feature-forge runs against the runner is a template in
|
|
11
|
+
`loopRunner`, with `{bin}`, `{backlogDir}`, `{specsDir}`, and `{iterations}`
|
|
12
|
+
substituted at call time. `forge-5-loop` (execution), `forge-4-backlog`
|
|
13
|
+
(validation), and `forge-verify` (backlog validation) all render their commands
|
|
14
|
+
from this block — there are no hardcoded `rauf …` commands in the skills, and
|
|
15
|
+
even the human log filename is tokenized via `{loopRunner.logFile}`.
|
|
16
|
+
|
|
17
|
+
When `forge.config.json` has no `loopRunner` block, feature-forge uses the
|
|
18
|
+
built-in defaults (see `references/forge-config-schema.json`) and announces
|
|
19
|
+
"defaulting to the rauf loop runner."
|
|
20
|
+
|
|
21
|
+
## The contract a runner MUST satisfy
|
|
22
|
+
|
|
23
|
+
A conforming runner MUST implement the **backlog-tool / loop-runner contract**
|
|
24
|
+
defined authoritatively in rauf's
|
|
25
|
+
[`SPEC-BACKLOG-TOOL-CONTRACT.md`](https://github.com/garygentry/rauf/blob/main/docs/SPEC-BACKLOG-TOOL-CONTRACT.md)
|
|
26
|
+
(Part A). In summary, it must provide:
|
|
27
|
+
|
|
28
|
+
- **A backlog schema** with the published `$id` and an optional `schemaVersion`,
|
|
29
|
+
whose `type`/`status` vocabularies match the contract
|
|
30
|
+
(`type ∈ bug|bugfix|refactor|feature|chore|test`,
|
|
31
|
+
`status ∈ pending|in_progress|done|blocked`).
|
|
32
|
+
- **A `validate` verb** with exit codes `0` (valid) / `1` (findings) / `2`
|
|
33
|
+
(usage/IO) that emits `{ valid, findings[] }` under `--json`. This is the
|
|
34
|
+
single check feature-forge trusts — it never re-implements validation.
|
|
35
|
+
- **The signal protocol** (`RAUF_DONE` / `RAUF_BLOCKED` / `RAUF_NEEDS_HUMAN` /
|
|
36
|
+
`RAUF_REVIEW`). These are emitted by the *coding agent* into its stdout and
|
|
37
|
+
parsed by the runner — they are not runner-authored log lines, so consumers key
|
|
38
|
+
off the runner's parsed events (below), never the raw `RAUF_*` tokens (which can
|
|
39
|
+
also appear inside an agent's prose and produce false matches).
|
|
40
|
+
- **A machine-readable event stream** for live supervision (`loopRunner.eventStreamCommand`,
|
|
41
|
+
rauf: `loop run … --ndjson`): one JSON event per line with a stable `type`
|
|
42
|
+
vocabulary — `item_completed` / `item_blocked` / `needs_human` / `signal_parsed`
|
|
43
|
+
/ `loop_completed` / `loop_error` / `loop_cancelled` / `llm_stuck_warning` (a
|
|
44
|
+
circuit-breaker halt surfaces as `loop_error`) — plus a
|
|
45
|
+
derived-status JSON (`loopRunner.statusJsonCommand`, rauf: `status … --json`) and
|
|
46
|
+
per-iteration telemetry with a `stuckWarning` flag (`loopRunner.watchCommand`,
|
|
47
|
+
rauf: `status … --json` — the `loop watch` verb was removed in v0.5.0). `forge-5-loop` supervises the run through these,
|
|
48
|
+
**not** by parsing the human log. `followCommand` / `logCommand` are
|
|
49
|
+
human-formatted streams for a person watching in a terminal, not machine surfaces.
|
|
50
|
+
- **The state-dir layout** (per-`--backlog` isolation under `loopRunner.stateDir`).
|
|
51
|
+
- **The CLI verbs** mapped by `loopRunner`: run (+ event-stream) / validate /
|
|
52
|
+
status (+ `--json`) / list / follow / log / version.
|
|
53
|
+
- **A `version` verb** (`{bin} version --json` → `{ version: <semver> }`) so
|
|
54
|
+
feature-forge can enforce `loopRunner.minRunnerVersion` before running.
|
|
55
|
+
|
|
56
|
+
> **The runner does not pause for human input.** When the coding agent signals
|
|
57
|
+
> `RAUF_NEEDS_HUMAN`/`RAUF_BLOCKED`/`RAUF_REVIEW`, a conforming runner sets that
|
|
58
|
+
> item aside and **keeps working other runnable items to completion** (rauf:
|
|
59
|
+
> `runner.ts` needs_human handler). So a supervising session can surface those
|
|
60
|
+
> events live (visibility) and cancel early, but it cannot inject an answer and
|
|
61
|
+
> resume the set-aside item mid-run — resolution is a follow-up retry pass. A
|
|
62
|
+
> first-class pause/resume-with-answer capability is a desirable runner
|
|
63
|
+
> enhancement (see `plans/rauf-enhancement-recommendations.md`).
|
|
64
|
+
|
|
65
|
+
## rauf is the default and reference implementation
|
|
66
|
+
|
|
67
|
+
rauf owns the contract spec and is the runner feature-forge defaults to. The
|
|
68
|
+
authoring craft itself (how to decompose specs into well-scoped, verifiable
|
|
69
|
+
items) lives in rauf's **`author-backlog`** skill, which `forge-4-backlog`
|
|
70
|
+
delegates to — so the only thing binding feature-forge to a particular runner is
|
|
71
|
+
the schema + `validate` verb that this contract formalizes. A future runner swap
|
|
72
|
+
supplies its own `loopRunner` block (its own `bin`, schema, and `validate`
|
|
73
|
+
command) without touching any pipeline skill.
|
|
74
|
+
|
|
75
|
+
The coding-agent dimension this contract adds (below) is **additive and
|
|
76
|
+
presence-gated**: it exists only when the `loopRunner` block advertises it via
|
|
77
|
+
`agentArgument`. A runner that omits that field has no agent dimension at all —
|
|
78
|
+
the seam degrades to exactly today's behavior with no error, so default-to-rauf
|
|
79
|
+
and pluggability are unchanged. See `## Agent selection`.
|
|
80
|
+
|
|
81
|
+
## Agent selection
|
|
82
|
+
|
|
83
|
+
This section is **contract-level**: it states what a conforming runner exposes
|
|
84
|
+
and what forge does with it, and defers every algorithm to the owning specs
|
|
85
|
+
(`02`/`03`/`04`/`05`).
|
|
86
|
+
|
|
87
|
+
### What a conforming runner exposes (the consumed surface)
|
|
88
|
+
|
|
89
|
+
A runner that carries a coding-agent dimension exposes, in its `loopRunner`
|
|
90
|
+
block:
|
|
91
|
+
|
|
92
|
+
- an **`agentArgument`** template (rauf default `--agent {agent}`) — the
|
|
93
|
+
tokenized launch-time flag; its **presence** advertises the agent surface;
|
|
94
|
+
- an **`agentsProbeCommand`** (rauf default `{bin} agents --json`) emitting
|
|
95
|
+
`{ agents: [{ id, displayName, available, detail? }] }` and **always exiting
|
|
96
|
+
0**;
|
|
97
|
+
- an optional **`defaultAgent`** project-default id.
|
|
98
|
+
|
|
99
|
+
These three fields are specified in full in `references/forge-config-schema.json`
|
|
100
|
+
and are the schema half of this contract. forge consumes rauf's existing
|
|
101
|
+
`--agent <id>` flag, `rauf agents` probe, `BacklogItem.provider`, and 5-layer
|
|
102
|
+
precedence — it conforms to them, it does not redesign them.
|
|
103
|
+
|
|
104
|
+
### Precedence and the run-layer mapping
|
|
105
|
+
|
|
106
|
+
The agent-selection precedence is **`item > run > project > default`**,
|
|
107
|
+
deliberately parallel to the model-selection precedence (`item.model >
|
|
108
|
+
--model/options > project default > provider default`). It is realized as:
|
|
109
|
+
|
|
110
|
+
- **item** — `BacklogItem.provider`, applied by **rauf** from the backlog. forge
|
|
111
|
+
**never reads, writes, or overrides** it (pass-through), so a deliberate
|
|
112
|
+
per-item agent always wins.
|
|
113
|
+
- **run** — forge's per-run selector (`forge-5-loop` Step 2d).
|
|
114
|
+
- **project** — forge's `loopRunner.defaultAgent`.
|
|
115
|
+
- **default** — the runner's own default (`claude-cli` for rauf) when forge sends
|
|
116
|
+
nothing.
|
|
117
|
+
|
|
118
|
+
forge owns **only** the run and project layers. It collapses run-over-project
|
|
119
|
+
*inside itself* into the **single** `--agent {agent}` value it emits at the
|
|
120
|
+
**run layer**, and lets rauf apply the item override *above* that. forge **never
|
|
121
|
+
re-implements rauf's resolver**. The resolution algorithm itself lives in
|
|
122
|
+
`03-selection-resolution-observability.md`.
|
|
123
|
+
|
|
124
|
+
### Availability probe + unknown/unavailable disambiguation
|
|
125
|
+
|
|
126
|
+
When the resolved agent is a **non-default** id, forge runs `agentsProbeCommand`
|
|
127
|
+
**once (no retries)** before any loop side-effect, parses the advertised
|
|
128
|
+
`agents[]`, and builds the advertised id set. Because the probe **always exits
|
|
129
|
+
0**, an unknown id is distinguished from a known-but-unavailable one **only by
|
|
130
|
+
set membership**, not by exit code:
|
|
131
|
+
|
|
132
|
+
- **Unknown id** (not in the advertised set — a typo or unsupported agent):
|
|
133
|
+
**hard-reject before launch**, listing the valid ids. No proceed-anyway path.
|
|
134
|
+
No value is interpolated into `{agent}`.
|
|
135
|
+
- **Known but unavailable** (`available: false`): **warn** (showing the probe's
|
|
136
|
+
`detail`) and let the user **proceed-anyway or choose another** — never
|
|
137
|
+
silently abort, never silently proceed.
|
|
138
|
+
- **Available**: proceed.
|
|
139
|
+
|
|
140
|
+
The advertised id set is also the **allow-list**: the only value ever
|
|
141
|
+
interpolated into `{agent}` is a validated, advertised id. The **default /
|
|
142
|
+
claude path never reaches the probe** — it incurs no extra cost. The
|
|
143
|
+
`classify(...)` algorithm and the rejection-error text live in
|
|
144
|
+
`04-availability-precheck.md`.
|
|
145
|
+
|
|
146
|
+
### Capability gate + version floor
|
|
147
|
+
|
|
148
|
+
Agent selection is **capability-gated** on the runner advertising
|
|
149
|
+
`agentArgument`: a runner whose `loopRunner` omits (or empties) that field
|
|
150
|
+
exposes no agent surface, so the per-run selector, the probe, and any `{agent}`
|
|
151
|
+
substitution **vanish entirely** and no agent argument is sent — byte-identical
|
|
152
|
+
to today. Degradation is **silent, not an error**, keeping alternate (non-rauf)
|
|
153
|
+
runners first-class. The gate condition is owned by
|
|
154
|
+
`02-config-schema-and-gating.md`.
|
|
155
|
+
|
|
156
|
+
Independently, the **version gate** floors at the runner version that ships the
|
|
157
|
+
agent surface. For rauf that is **0.6.0** (`loopRunner.minRunnerVersion`): the
|
|
158
|
+
`--agent` flag, the `agents` probe, and the preset agent registry are present in
|
|
159
|
+
rauf source at 0.6.0. A successful gate therefore guarantees those surfaces
|
|
160
|
+
exist before any run. See `## Version gating` and
|
|
161
|
+
`05-runner-discovery-version-gate.md`.
|
|
162
|
+
|
|
163
|
+
**This document — the `## Agent selection` section, the `## Per-stage agent
|
|
164
|
+
applicability` table, and the `## validate is agent-agnostic` note — together
|
|
165
|
+
with the augmented `loopRunner` schema block in
|
|
166
|
+
`references/forge-config-schema.json` constitute the `forge-loop-runner-contract`
|
|
167
|
+
expose, consumed by the `packaging-docs-ci` capstone as documentation input.**
|
|
168
|
+
|
|
169
|
+
## Per-stage agent applicability
|
|
170
|
+
|
|
171
|
+
Every forge stage that invokes the loop runner is classified here. Only
|
|
172
|
+
`forge-5-loop` (execution) carries the coding-agent dimension; the two
|
|
173
|
+
validation-only stages are agent-agnostic.
|
|
174
|
+
|
|
175
|
+
| Stage | Runner verbs | Agent dimension |
|
|
176
|
+
|-------|-------------|-----------------|
|
|
177
|
+
| `forge-5-loop` | run / eventStream / status / version | **Full** — selector, probe, `--agent` |
|
|
178
|
+
| `forge-4-backlog` | `validate` | **None** — agent-agnostic |
|
|
179
|
+
| `forge-verify` | `validate` | **None** — agent-agnostic |
|
|
180
|
+
|
|
181
|
+
- **`forge-5-loop`** is the executor: it drives the run, so it renders the run /
|
|
182
|
+
event-stream / status / version verbs (and `list`) and carries the full agent
|
|
183
|
+
surface — the Step 2d selector, the availability probe, and the rendered
|
|
184
|
+
`agentArgument`.
|
|
185
|
+
- **`forge-4-backlog`** authors and then *validates* the backlog; its only runner
|
|
186
|
+
call is `validateCommand`. It also reads `versionCommand` for a graceful-degrade
|
|
187
|
+
check, but **passes no agent** and never runs `loop run`.
|
|
188
|
+
- **`forge-verify`** (backlog mode) re-runs the same `validateCommand` to surface
|
|
189
|
+
validation findings. It carries no agent dimension. This is **contract
|
|
190
|
+
coverage** of forge-verify (it is classified here), with an explicit agnostic
|
|
191
|
+
note (below) — **not** a new agent-driven run in forge-verify.
|
|
192
|
+
|
|
193
|
+
### `validate` is agent-agnostic
|
|
194
|
+
|
|
195
|
+
The `validate` verb (`loopRunner.validateCommand`) checks a `backlog.json`
|
|
196
|
+
against the backlog schema and spec references. **It does not run a coding agent
|
|
197
|
+
and has no agent dimension.** No agent argument — `--agent`, the `{agent}` token,
|
|
198
|
+
or any agent id — may **ever** be passed to backlog validation, in **any** stage
|
|
199
|
+
(`forge-4-backlog`, `forge-verify`, or any future caller). Backlog validation is
|
|
200
|
+
a pure, deterministic check; the coding agent is irrelevant to it. A contributor
|
|
201
|
+
who later adds agent selection to a *new* stage MUST confirm that stage runs the
|
|
202
|
+
*execution* surface (like `forge-5-loop`), not `validate` — agent selection
|
|
203
|
+
belongs to execution only. If you find yourself adding `--agent` near a
|
|
204
|
+
`validateCommand` render, that is a bug.
|
|
205
|
+
|
|
206
|
+
## Version gating
|
|
207
|
+
|
|
208
|
+
feature-forge requires a runner exposing `backlog validate` + backlog
|
|
209
|
+
`schemaVersion`, and the unified exit-code/status contract it reads. The floor is
|
|
210
|
+
now the **agent-surface floor**: the runner version that ships the `--agent`
|
|
211
|
+
flag, the `agents` probe, and the preset agent registry. For rauf that is
|
|
212
|
+
**0.6.0** (`loopRunner.minRunnerVersion`).
|
|
213
|
+
`forge-5-loop` runs `{bin} version --json`, semver-compares the reported version
|
|
214
|
+
against `minRunnerVersion`, and on a missing-or-too-old runner stops with
|
|
215
|
+
`loopRunner.installHint` (the CLI install/upgrade command) — **before** invoking
|
|
216
|
+
the loop. See `COMPATIBILITY.md` for the version matrix.
|
|
217
|
+
|
|
218
|
+
> **Two different "installs."** `installHint` obtains/upgrades the runner **CLI
|
|
219
|
+
> binary** (e.g. rauf's `install-binary.sh`). `setupHint` installs the runner's
|
|
220
|
+
> **per-project artifacts** (rauf: `rauf install .`). A failing version gate is
|
|
221
|
+
> always the former, never the latter.
|