@garygentry/feature-forge 0.2.12 → 0.2.13
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/forge-config-schema.json +5 -0
- package/adapters/claude/scripts/epic-manifest.py +209 -0
- package/adapters/claude/scripts/forge-bootstrap.py +1 -0
- package/adapters/claude/scripts/forge-init.sh +2 -0
- 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 +283 -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 +283 -0
- package/adapters/claude/skills/forge-0-epic/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/claude/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
- package/adapters/claude/skills/forge-2-tech/SKILL.md +1 -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 +283 -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 +90 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/go.md +138 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/python.md +163 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/rust.md +151 -0
- package/adapters/claude/skills/forge-2-tech/references/stacks/typescript.md +111 -0
- package/adapters/claude/skills/forge-2-tech/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/_generic.md +90 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/go.md +138 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/python.md +163 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/rust.md +151 -0
- package/adapters/claude/skills/forge-3-specs/references/stacks/typescript.md +111 -0
- package/adapters/claude/skills/forge-3-specs/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/claude/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- 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/shared-conventions.md +283 -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 +283 -0
- package/adapters/claude/skills/forge-fix/references/shared-conventions.md +283 -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 +283 -0
- package/adapters/claude/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/claude/skills/forge-guide/references/stacks/_generic.md +90 -0
- package/adapters/claude/skills/forge-guide/references/stacks/go.md +138 -0
- package/adapters/claude/skills/forge-guide/references/stacks/python.md +163 -0
- package/adapters/claude/skills/forge-guide/references/stacks/rust.md +151 -0
- package/adapters/claude/skills/forge-guide/references/stacks/typescript.md +111 -0
- package/adapters/claude/skills/forge-init/SKILL.md +1 -0
- package/adapters/claude/skills/forge-verify/SKILL.md +4 -3
- package/adapters/claude/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/claude/skills/forge-verify/references/shared-conventions.md +283 -0
- package/adapters/claude/skills/forge-verify/references/verification-checklists.md +7 -0
- package/adapters/codex/.feature-forge-bundle.json +1 -1
- package/adapters/codex/references/forge-config-schema.json +5 -0
- package/adapters/codex/scripts/epic-manifest.py +209 -0
- package/adapters/codex/scripts/forge-bootstrap.py +1 -0
- package/adapters/codex/scripts/forge-init.sh +2 -0
- 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 +283 -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 +283 -0
- package/adapters/codex/skills/forge-0-epic/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/codex/skills/forge-1-prd/references/stage-exit-protocol.md +258 -0
- package/adapters/codex/skills/forge-2-tech/SKILL.md +1 -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 +283 -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 +90 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/go.md +138 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/python.md +163 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/rust.md +151 -0
- package/adapters/codex/skills/forge-2-tech/references/stacks/typescript.md +111 -0
- package/adapters/codex/skills/forge-2-tech/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/_generic.md +90 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/go.md +138 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/python.md +163 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/rust.md +151 -0
- package/adapters/codex/skills/forge-3-specs/references/stacks/typescript.md +111 -0
- package/adapters/codex/skills/forge-3-specs/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/codex/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- 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/shared-conventions.md +283 -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 +283 -0
- package/adapters/codex/skills/forge-fix/references/shared-conventions.md +283 -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 +283 -0
- package/adapters/codex/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/codex/skills/forge-guide/references/stacks/_generic.md +90 -0
- package/adapters/codex/skills/forge-guide/references/stacks/go.md +138 -0
- package/adapters/codex/skills/forge-guide/references/stacks/python.md +163 -0
- package/adapters/codex/skills/forge-guide/references/stacks/rust.md +151 -0
- package/adapters/codex/skills/forge-guide/references/stacks/typescript.md +111 -0
- package/adapters/codex/skills/forge-init/SKILL.md +1 -0
- package/adapters/codex/skills/forge-verify/SKILL.md +4 -3
- package/adapters/codex/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/codex/skills/forge-verify/references/shared-conventions.md +283 -0
- package/adapters/codex/skills/forge-verify/references/verification-checklists.md +7 -0
- package/adapters/copilot/.feature-forge-bundle.json +1 -1
- package/adapters/copilot/references/forge-config-schema.json +5 -0
- package/adapters/copilot/scripts/epic-manifest.py +209 -0
- package/adapters/copilot/scripts/forge-bootstrap.py +1 -0
- package/adapters/copilot/scripts/forge-init.sh +2 -0
- 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 +283 -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 +283 -0
- package/adapters/copilot/skills/forge-0-epic/references/stage-exit-protocol.md +258 -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 +283 -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 +1 -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 +283 -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 +90 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/go.md +138 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/python.md +163 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/rust.md +151 -0
- package/adapters/copilot/skills/forge-2-tech/references/stacks/typescript.md +111 -0
- package/adapters/copilot/skills/forge-2-tech/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/_generic.md +90 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/go.md +138 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/python.md +163 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/rust.md +151 -0
- package/adapters/copilot/skills/forge-3-specs/references/stacks/typescript.md +111 -0
- package/adapters/copilot/skills/forge-3-specs/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/copilot/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- 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/shared-conventions.md +283 -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 +283 -0
- package/adapters/copilot/skills/forge-fix/references/shared-conventions.md +283 -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 +283 -0
- package/adapters/copilot/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/_generic.md +90 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/go.md +138 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/python.md +163 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/rust.md +151 -0
- package/adapters/copilot/skills/forge-guide/references/stacks/typescript.md +111 -0
- package/adapters/copilot/skills/forge-init/forge-init.md +1 -0
- package/adapters/copilot/skills/forge-verify/forge-verify.md +4 -3
- package/adapters/copilot/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/copilot/skills/forge-verify/references/shared-conventions.md +283 -0
- package/adapters/copilot/skills/forge-verify/references/verification-checklists.md +7 -0
- package/adapters/cursor/.feature-forge-bundle.json +1 -1
- package/adapters/cursor/references/forge-config-schema.json +5 -0
- package/adapters/cursor/scripts/epic-manifest.py +209 -0
- package/adapters/cursor/scripts/forge-bootstrap.py +1 -0
- package/adapters/cursor/scripts/forge-init.sh +2 -0
- 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 +283 -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 +283 -0
- package/adapters/cursor/skills/forge-0-epic/references/stage-exit-protocol.md +258 -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 +283 -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 +1 -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 +283 -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 +90 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/go.md +138 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/python.md +163 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/rust.md +151 -0
- package/adapters/cursor/skills/forge-2-tech/references/stacks/typescript.md +111 -0
- package/adapters/cursor/skills/forge-2-tech/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/_generic.md +90 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/go.md +138 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/python.md +163 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/rust.md +151 -0
- package/adapters/cursor/skills/forge-3-specs/references/stacks/typescript.md +111 -0
- package/adapters/cursor/skills/forge-3-specs/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/cursor/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- 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/shared-conventions.md +283 -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 +283 -0
- package/adapters/cursor/skills/forge-fix/references/shared-conventions.md +283 -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 +283 -0
- package/adapters/cursor/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/_generic.md +90 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/go.md +138 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/python.md +163 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/rust.md +151 -0
- package/adapters/cursor/skills/forge-guide/references/stacks/typescript.md +111 -0
- package/adapters/cursor/skills/forge-init/forge-init.mdc +1 -0
- package/adapters/cursor/skills/forge-verify/forge-verify.mdc +4 -3
- package/adapters/cursor/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/cursor/skills/forge-verify/references/shared-conventions.md +283 -0
- package/adapters/cursor/skills/forge-verify/references/verification-checklists.md +7 -0
- package/adapters/gemini/.feature-forge-bundle.json +1 -1
- package/adapters/gemini/gemini-extension.json +1 -1
- package/adapters/gemini/references/forge-config-schema.json +5 -0
- package/adapters/gemini/scripts/epic-manifest.py +209 -0
- package/adapters/gemini/scripts/forge-bootstrap.py +1 -0
- package/adapters/gemini/scripts/forge-init.sh +2 -0
- 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 +283 -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 +283 -0
- package/adapters/gemini/skills/forge-0-epic/references/stage-exit-protocol.md +258 -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 +283 -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 +1 -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 +283 -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 +90 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/go.md +138 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/python.md +163 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/rust.md +151 -0
- package/adapters/gemini/skills/forge-2-tech/references/stacks/typescript.md +111 -0
- package/adapters/gemini/skills/forge-2-tech/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/_generic.md +90 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/go.md +138 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/python.md +163 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/rust.md +151 -0
- package/adapters/gemini/skills/forge-3-specs/references/stacks/typescript.md +111 -0
- package/adapters/gemini/skills/forge-3-specs/references/stage-exit-protocol.md +258 -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 +283 -0
- package/adapters/gemini/skills/forge-4-backlog/references/stage-exit-protocol.md +258 -0
- 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/shared-conventions.md +283 -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 +283 -0
- package/adapters/gemini/skills/forge-fix/references/shared-conventions.md +283 -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 +283 -0
- package/adapters/gemini/skills/forge-guide/references/stack-resolution.md +54 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/_generic.md +90 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/go.md +138 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/python.md +163 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/rust.md +151 -0
- package/adapters/gemini/skills/forge-guide/references/stacks/typescript.md +111 -0
- package/adapters/gemini/skills/forge-init/forge-init.md +1 -0
- package/adapters/gemini/skills/forge-verify/forge-verify.md +4 -3
- package/adapters/gemini/skills/forge-verify/references/pipeline-state-schema.json +191 -0
- package/adapters/gemini/skills/forge-verify/references/shared-conventions.md +283 -0
- package/adapters/gemini/skills/forge-verify/references/verification-checklists.md +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Python Stack Profile
|
|
2
|
+
|
|
3
|
+
Stack-specific guidance for Python projects (3.10+).
|
|
4
|
+
|
|
5
|
+
## Stack Identity
|
|
6
|
+
|
|
7
|
+
- **Language**: Python 3.10+ (required for modern type hint syntax: `X | Y` unions, `match` statements)
|
|
8
|
+
- **Package management**: pip, uv, poetry, pdm, or pipenv (check for respective lock/config files)
|
|
9
|
+
- **Type checking**: mypy, pyright, or pytype
|
|
10
|
+
- **Linting**: ruff, flake8, pylint
|
|
11
|
+
|
|
12
|
+
## Discovery Checklist
|
|
13
|
+
|
|
14
|
+
When examining a Python project, check for:
|
|
15
|
+
|
|
16
|
+
- **Project manifest**: `pyproject.toml` (modern), `setup.py`/`setup.cfg` (legacy), `requirements.txt` (minimal)
|
|
17
|
+
- **Package manager**: `uv.lock` (uv), `poetry.lock` (poetry), `pdm.lock` (pdm), `Pipfile.lock` (pipenv)
|
|
18
|
+
- **Monorepo**: `pants.toml` (Pants), `BUILD` files (Bazel), `nx.json` with Python plugins, or plain workspace structure
|
|
19
|
+
- **Framework**: FastAPI, Django, Flask, Starlette, Litestar
|
|
20
|
+
- **Database**: SQLAlchemy, Django ORM, Tortoise ORM, SQLModel
|
|
21
|
+
- **Validation**: Pydantic, attrs, marshmallow
|
|
22
|
+
- **Testing**: pytest (dominant), unittest
|
|
23
|
+
- **Type checking**: `mypy.ini`, `pyrightconfig.json`, or `[tool.mypy]` / `[tool.pyright]` in `pyproject.toml`
|
|
24
|
+
|
|
25
|
+
## Archetype Conventions
|
|
26
|
+
|
|
27
|
+
### 00-core-definitions.md (Python)
|
|
28
|
+
|
|
29
|
+
- **Data structures**: Use `dataclasses` for simple data containers, Pydantic `BaseModel` for validated/serializable models. Use `TypedDict` for dict-shaped data.
|
|
30
|
+
- **Type aliases**: Use `type` statements (3.12+) or `TypeAlias` annotation
|
|
31
|
+
- **Union types**: Use `X | Y` syntax (3.10+)
|
|
32
|
+
- **Protocols**: Use `typing.Protocol` for structural subtyping (Python's equivalent of interfaces)
|
|
33
|
+
- **Error/exception hierarchy**: Base exception class inheriting from `Exception` (or a more specific built-in); domain-specific subclasses with typed attributes
|
|
34
|
+
- **Constants and enumerations**: Use `enum.Enum`, `enum.StrEnum`, or module-level constants with `Final` annotation
|
|
35
|
+
- **Module exports**: Define `__all__` in `__init__.py` for explicit public API
|
|
36
|
+
|
|
37
|
+
### 01-architecture-layout.md (Python)
|
|
38
|
+
|
|
39
|
+
- **Project layout**: `src/` layout (recommended) or flat layout
|
|
40
|
+
- **pyproject.toml**: `[project]` table with `name`, `dependencies`, `optional-dependencies`, `[project.scripts]` for CLI entry points
|
|
41
|
+
- **Tool configuration**: `[tool.pytest.ini_options]`, `[tool.mypy]`, `[tool.ruff]` sections in `pyproject.toml`
|
|
42
|
+
- **Module entry points**: `__init__.py` files with explicit `__all__` lists for re-exports
|
|
43
|
+
- **Namespace packages**: When applicable, `py.typed` marker for PEP 561 compliance
|
|
44
|
+
|
|
45
|
+
### Monorepo conventions (if applicable)
|
|
46
|
+
|
|
47
|
+
- **Workspace structure**: `packages/` or `libs/` directories with individual `pyproject.toml` per package
|
|
48
|
+
- **Internal dependencies**: Path dependencies in `pyproject.toml` or editable installs
|
|
49
|
+
- **Build coordination**: Pants, Bazel, or Makefile-based orchestration
|
|
50
|
+
|
|
51
|
+
## Spec Quality Rules
|
|
52
|
+
|
|
53
|
+
- All Python code must be valid syntax with complete type annotations — not pseudocode
|
|
54
|
+
- Use Google-style or NumPy-style docstrings consistently (match project convention)
|
|
55
|
+
- Include `Args`, `Returns`, `Raises` sections in docstrings for every public function
|
|
56
|
+
- Use `Protocol` classes to define interfaces/contracts
|
|
57
|
+
- Include explicit import statements in all code examples
|
|
58
|
+
- Use `async def` for asynchronous operations where applicable
|
|
59
|
+
|
|
60
|
+
### Example: Well-Specified Function
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
class SessionExpiredError(AuthError):
|
|
64
|
+
"""Raised when a session token has expired.
|
|
65
|
+
|
|
66
|
+
Attributes:
|
|
67
|
+
expired_at: When the session expired.
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
def __init__(self, expired_at: datetime) -> None:
|
|
71
|
+
self.expired_at = expired_at
|
|
72
|
+
super().__init__(
|
|
73
|
+
code="SESSION_EXPIRED",
|
|
74
|
+
message=f"Session expired at {expired_at.isoformat()}",
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
async def refresh_session_token(
|
|
79
|
+
current_token: str,
|
|
80
|
+
*,
|
|
81
|
+
max_age: timedelta = SESSION_DURATION,
|
|
82
|
+
refresh_threshold: timedelta = REFRESH_THRESHOLD,
|
|
83
|
+
signing_key: bytes,
|
|
84
|
+
) -> str | None:
|
|
85
|
+
"""Refresh a session token if it's within the refresh threshold.
|
|
86
|
+
|
|
87
|
+
Returns a new token with an extended expiry, or None if the session
|
|
88
|
+
is not eligible for refresh (valid but outside threshold).
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
current_token: The JWT string from the session cookie.
|
|
92
|
+
max_age: Maximum age of a token eligible for refresh.
|
|
93
|
+
refresh_threshold: How close to expiry before refresh is allowed.
|
|
94
|
+
signing_key: Secret key for signing the new token.
|
|
95
|
+
|
|
96
|
+
Returns:
|
|
97
|
+
New session token string, or None if refresh is not possible.
|
|
98
|
+
|
|
99
|
+
Raises:
|
|
100
|
+
SessionExpiredError: If the token has already expired.
|
|
101
|
+
TokenValidationError: If the token signature is invalid.
|
|
102
|
+
"""
|
|
103
|
+
...
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Verification Specifics
|
|
107
|
+
|
|
108
|
+
- **Type checking**: `mypy .`, `mypy src/`, `pyright`, or `pyright src/`
|
|
109
|
+
- **Linting**: `ruff check .` or `flake8`
|
|
110
|
+
- **Formatting**: `ruff format --check .` or `black --check .`
|
|
111
|
+
- **Import validation**: `mypy` with `--strict` or `--disallow-untyped-defs` catches missing type annotations
|
|
112
|
+
- **Module export validation**: `__all__` lists in `__init__.py` match spec's public API
|
|
113
|
+
|
|
114
|
+
## Testing
|
|
115
|
+
|
|
116
|
+
- **Framework**: pytest (with `conftest.py` for fixtures)
|
|
117
|
+
- **Fixtures**: Define in `conftest.py` at appropriate scope (session, module, function)
|
|
118
|
+
- **Mocking**: `unittest.mock.patch`, `monkeypatch` fixture, or `pytest-mock`
|
|
119
|
+
- **Coverage**: `pytest-cov` with `--cov=src/` flag
|
|
120
|
+
- **Test file location**: `tests/` directory mirroring `src/` structure, or co-located `test_*.py` files
|
|
121
|
+
- **Async testing**: `pytest-asyncio` for async function tests
|
|
122
|
+
- **Type testing**: Runtime checks with `isinstance()`, static checks with `reveal_type()`
|
|
123
|
+
|
|
124
|
+
## Common Frameworks
|
|
125
|
+
|
|
126
|
+
| Category | Options |
|
|
127
|
+
|----------|---------|
|
|
128
|
+
| Web (async) | FastAPI, Starlette, Litestar |
|
|
129
|
+
| Web (sync) | Django, Flask |
|
|
130
|
+
| Database ORM | SQLAlchemy, Django ORM, SQLModel, Tortoise ORM |
|
|
131
|
+
| Migrations | Alembic (SQLAlchemy), Django migrations |
|
|
132
|
+
| Validation | Pydantic, attrs, marshmallow |
|
|
133
|
+
| Task queues | Celery, Dramatiq, Huey, ARQ |
|
|
134
|
+
| CLI | Click, Typer, argparse |
|
|
135
|
+
| HTTP client | httpx, aiohttp, requests |
|
|
136
|
+
|
|
137
|
+
## Example: Project-Level Override
|
|
138
|
+
|
|
139
|
+
Create `.feature-forge/stack-decisions.md` (legacy alias: `.claude/references/stack-decisions.md`) in your project root:
|
|
140
|
+
|
|
141
|
+
```markdown
|
|
142
|
+
# Stack Decisions
|
|
143
|
+
|
|
144
|
+
## Runtime & Build
|
|
145
|
+
- Python 3.12 with uv for package management
|
|
146
|
+
- src/ layout with pyproject.toml
|
|
147
|
+
|
|
148
|
+
## Backend
|
|
149
|
+
- FastAPI for HTTP framework
|
|
150
|
+
- SQLAlchemy 2.0 with PostgreSQL (async)
|
|
151
|
+
- Pydantic v2 for validation and serialization
|
|
152
|
+
|
|
153
|
+
## Testing
|
|
154
|
+
- pytest with pytest-asyncio
|
|
155
|
+
- Factory Boy for test fixtures
|
|
156
|
+
- Coverage target: 90%
|
|
157
|
+
|
|
158
|
+
## Conventions
|
|
159
|
+
- Google-style docstrings
|
|
160
|
+
- ruff for linting and formatting
|
|
161
|
+
- mypy with --strict for type checking
|
|
162
|
+
- __all__ exports in every __init__.py
|
|
163
|
+
```
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Rust Stack Profile
|
|
2
|
+
|
|
3
|
+
Stack-specific guidance for Rust projects (stable channel).
|
|
4
|
+
|
|
5
|
+
## Stack Identity
|
|
6
|
+
|
|
7
|
+
- **Language**: Rust (stable channel, edition 2021 or later)
|
|
8
|
+
- **Build system**: Cargo (`cargo build`, `cargo test`, `cargo run`)
|
|
9
|
+
- **Package registry**: crates.io (dependencies declared in `Cargo.toml`)
|
|
10
|
+
- **Philosophy**: Zero-cost abstractions, ownership model for memory safety, fearless concurrency
|
|
11
|
+
|
|
12
|
+
## Discovery Checklist
|
|
13
|
+
|
|
14
|
+
When examining a Rust project, check for:
|
|
15
|
+
|
|
16
|
+
- **Project manifest**: `Cargo.toml` (package metadata, dependencies, features, workspace config)
|
|
17
|
+
- **Dependency lock**: `Cargo.lock` (exact dependency versions for reproducible builds)
|
|
18
|
+
- **Library entry**: `src/lib.rs` (library crate root)
|
|
19
|
+
- **Binary entry**: `src/main.rs` (binary crate root), or `src/bin/` for multiple binaries
|
|
20
|
+
- **Build script**: `build.rs` (compile-time code generation, native library linking)
|
|
21
|
+
- **Cargo config**: `.cargo/config.toml` (target-specific settings, linker config, aliases)
|
|
22
|
+
- **Workspace**: `[workspace]` table in root `Cargo.toml` with `members` list
|
|
23
|
+
- **Framework**: Check `Cargo.toml` dependencies for actix-web, axum, rocket (web), clap (CLI), tokio (async)
|
|
24
|
+
- **Async runtime**: tokio, async-std, smol
|
|
25
|
+
- **Serialization**: serde, serde_json, serde_yaml
|
|
26
|
+
|
|
27
|
+
## Archetype Conventions
|
|
28
|
+
|
|
29
|
+
### 00-core-definitions.md (Rust)
|
|
30
|
+
|
|
31
|
+
- **Structs**: Use `struct` types with derive macros (`#[derive(Debug, Clone, Serialize, Deserialize)]`). Document every public field with `///` doc comments.
|
|
32
|
+
- **Enums**: Use for sum types / discriminated unions. Each variant documents its purpose. Exhaustive `match` for control flow.
|
|
33
|
+
- **Traits**: Define shared behavior contracts. Keep focused (single responsibility). Use associated types for output types, generics for input types.
|
|
34
|
+
- **Error types**: `thiserror::Error` for library errors (typed, specific), `anyhow::Error` for application errors (erased, convenient). Define `type Result<T> = std::result::Result<T, MyError>` aliases per module.
|
|
35
|
+
- **Type aliases**: Use `type` for complex generic instantiations (e.g., `type DbPool = Pool<Postgres>`)
|
|
36
|
+
- **Newtypes**: Single-field tuple structs for type safety (e.g., `struct UserId(Uuid)`)
|
|
37
|
+
- **Constants**: `const` for compile-time values, `static` for global state (rarely needed), `lazy_static!` or `std::sync::LazyLock` for runtime-initialized globals
|
|
38
|
+
|
|
39
|
+
### 01-architecture-layout.md (Rust)
|
|
40
|
+
|
|
41
|
+
- **Single crate structure**:
|
|
42
|
+
- `src/lib.rs` — library root, declares modules with `mod` statements
|
|
43
|
+
- `src/main.rs` — binary entry point, imports from library crate
|
|
44
|
+
- `src/<module>.rs` or `src/<module>/mod.rs` — submodules
|
|
45
|
+
- `tests/` — integration tests (each file is a separate crate)
|
|
46
|
+
- `examples/` — runnable examples (`cargo run --example name`)
|
|
47
|
+
- `benches/` — benchmarks (`cargo bench`)
|
|
48
|
+
- **Cargo workspace** (multi-crate):
|
|
49
|
+
- Root `Cargo.toml` with `[workspace]` and `members = ["crates/*"]`
|
|
50
|
+
- Shared dependencies via `[workspace.dependencies]` with `{ workspace = true }` in member crates
|
|
51
|
+
- Internal crate references as path dependencies
|
|
52
|
+
- **Cargo.toml**: `[package]` (name, version, edition), `[dependencies]`, `[dev-dependencies]`, `[build-dependencies]`, `[features]` for conditional compilation
|
|
53
|
+
- **Module visibility**: `pub`, `pub(crate)`, `pub(super)` for fine-grained access control. Re-exports via `pub use` in parent modules.
|
|
54
|
+
|
|
55
|
+
### NN-testing-strategy.md (Rust)
|
|
56
|
+
|
|
57
|
+
- **Framework**: Built-in `#[test]` attribute (no external framework required)
|
|
58
|
+
- **Unit tests**: `#[cfg(test)] mod tests { ... }` at bottom of each source file (white-box, access to private items)
|
|
59
|
+
- **Integration tests**: `tests/` directory, each `.rs` file is a separate test crate (black-box, only public API)
|
|
60
|
+
- **Test assertions**: `assert!`, `assert_eq!`, `assert_ne!` macros; custom messages as format string arguments
|
|
61
|
+
- **Doc tests**: Code blocks in `///` doc comments run as tests with `cargo test`
|
|
62
|
+
- **Examples**: `examples/` directory, verified to compile with `cargo test`, runnable with `cargo run --example`
|
|
63
|
+
- **Test fixtures**: Builder pattern structs, helper functions in `tests/common/mod.rs`
|
|
64
|
+
- **Async tests**: `#[tokio::test]` attribute for async test functions
|
|
65
|
+
- **Property testing**: `proptest` or `quickcheck` crates for generative testing
|
|
66
|
+
- **Snapshot testing**: `insta` crate for snapshot/approval testing
|
|
67
|
+
|
|
68
|
+
## Spec Quality Rules
|
|
69
|
+
|
|
70
|
+
- All Rust code must be valid syntax with complete type annotations — not pseudocode
|
|
71
|
+
- Follow Rust idioms:
|
|
72
|
+
- `Result<T, E>` for fallible operations — never panic for expected failures
|
|
73
|
+
- `Option<T>` for nullable/optional values — never use sentinel values
|
|
74
|
+
- Ownership and borrowing: specify whether a function takes ownership (`T`), borrows (`&T`), or mutably borrows (`&mut T`). Note when `Clone` is required.
|
|
75
|
+
- Lifetime annotations when the compiler cannot infer them — document why a lifetime relationship exists
|
|
76
|
+
- Derive macros for common traits (`Debug`, `Clone`, `PartialEq`, `Eq`, `Hash`, `Serialize`, `Deserialize`)
|
|
77
|
+
- `impl` blocks for methods — group inherent methods and trait implementations separately
|
|
78
|
+
- Pattern matching with `match` for control flow over enums and `Result`/`Option`
|
|
79
|
+
- `?` operator for error propagation — avoid manual `match` on `Result` when `?` suffices
|
|
80
|
+
- Document every public item with `///` doc comments including `# Examples` sections for non-trivial APIs
|
|
81
|
+
- Use `#[must_use]` on functions whose return values should not be ignored
|
|
82
|
+
- Include complete `use` statements in all code examples
|
|
83
|
+
|
|
84
|
+
## Verification Specifics
|
|
85
|
+
|
|
86
|
+
- **Type checking**: `cargo check` (fast compile without codegen — catches all type errors)
|
|
87
|
+
- **Linting**: `cargo clippy` (idiomatic Rust lints, catches common mistakes)
|
|
88
|
+
- **Testing**: `cargo test` (unit tests, integration tests, doc tests, examples)
|
|
89
|
+
- **Documentation**: `cargo doc --no-deps` (ensures documentation compiles, catches broken links)
|
|
90
|
+
- **Formatting**: `cargo fmt --check` (ensures code matches `rustfmt` style)
|
|
91
|
+
- **Unsafe audit**: `cargo geiger` (if security-sensitive — counts unsafe blocks)
|
|
92
|
+
|
|
93
|
+
## Testing
|
|
94
|
+
|
|
95
|
+
- **Framework**: Built-in test harness (`#[test]`, `#[cfg(test)]`)
|
|
96
|
+
- **Test command**: `cargo test` for all, `cargo test test_name` for specific, `cargo test --lib` for unit only
|
|
97
|
+
- **Unit tests**: `#[cfg(test)] mod tests` at bottom of source files
|
|
98
|
+
- **Integration tests**: `tests/` directory, each file is a separate crate
|
|
99
|
+
- **Doc tests**: Code in `///` comments, verified by `cargo test --doc`
|
|
100
|
+
- **Assertions**: `assert!`, `assert_eq!`, `assert_ne!` with optional format messages
|
|
101
|
+
- **Async tests**: `#[tokio::test]` macro for async test functions
|
|
102
|
+
- **Snapshot testing**: `insta` crate with `assert_snapshot!` / `assert_debug_snapshot!`
|
|
103
|
+
- **Coverage**: `cargo llvm-cov` or `cargo tarpaulin`
|
|
104
|
+
- **Benchmarks**: `criterion` crate or built-in `#[bench]` (nightly)
|
|
105
|
+
|
|
106
|
+
## Common Frameworks
|
|
107
|
+
|
|
108
|
+
| Category | Options |
|
|
109
|
+
|----------|---------|
|
|
110
|
+
| Web (async) | axum, actix-web, rocket, warp |
|
|
111
|
+
| Serialization | serde, serde_json, serde_yaml, toml |
|
|
112
|
+
| Async runtime | tokio, async-std, smol |
|
|
113
|
+
| Database | sqlx, diesel, sea-orm |
|
|
114
|
+
| Migrations | sqlx-cli, diesel-cli, refinery |
|
|
115
|
+
| CLI | clap, argh, structopt (legacy) |
|
|
116
|
+
| Observability | tracing, tracing-subscriber, metrics |
|
|
117
|
+
| HTTP client | reqwest, hyper, ureq (blocking) |
|
|
118
|
+
| Middleware | tower, tower-http, actix middleware |
|
|
119
|
+
| Error handling | thiserror (library), anyhow (application), eyre |
|
|
120
|
+
|
|
121
|
+
## Example: Project-Level Override
|
|
122
|
+
|
|
123
|
+
Create `.feature-forge/stack-decisions.md` (legacy alias: `.claude/references/stack-decisions.md`) in your project root:
|
|
124
|
+
|
|
125
|
+
```markdown
|
|
126
|
+
# Stack Decisions
|
|
127
|
+
|
|
128
|
+
## Runtime & Build
|
|
129
|
+
- Rust stable (edition 2021)
|
|
130
|
+
- Cargo workspace with crates/ directory
|
|
131
|
+
|
|
132
|
+
## Backend
|
|
133
|
+
- axum for HTTP framework
|
|
134
|
+
- sqlx with PostgreSQL (compile-time query checking)
|
|
135
|
+
- tokio as async runtime
|
|
136
|
+
|
|
137
|
+
## Serialization & Validation
|
|
138
|
+
- serde for serialization/deserialization
|
|
139
|
+
- Custom validation via trait implementations
|
|
140
|
+
|
|
141
|
+
## Testing
|
|
142
|
+
- Built-in #[test] with assert macros
|
|
143
|
+
- Integration tests in tests/ directory
|
|
144
|
+
- insta for snapshot testing
|
|
145
|
+
|
|
146
|
+
## Conventions
|
|
147
|
+
- thiserror for library error types, anyhow in binary
|
|
148
|
+
- tracing for structured logging
|
|
149
|
+
- cargo clippy must pass with no warnings
|
|
150
|
+
- All public APIs documented with /// and examples
|
|
151
|
+
```
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# TypeScript Stack Profile
|
|
2
|
+
|
|
3
|
+
Stack-specific guidance for TypeScript projects (Node.js/Bun, monorepo or single-package).
|
|
4
|
+
|
|
5
|
+
## Stack Identity
|
|
6
|
+
|
|
7
|
+
- **Language**: TypeScript
|
|
8
|
+
- **Runtime**: Node.js or Bun (check `package.json` `engines` field and lock files)
|
|
9
|
+
- **Package management**: npm, pnpm, yarn, or bun (check for respective lock files)
|
|
10
|
+
- **Common monorepo tools**: Turborepo (`turbo.json`), Nx (`nx.json`), Lerna (`lerna.json`)
|
|
11
|
+
|
|
12
|
+
## Discovery Checklist
|
|
13
|
+
|
|
14
|
+
When examining a TypeScript project, check for:
|
|
15
|
+
|
|
16
|
+
- **Runtime**: Bun or Node.js (check `package.json` for which)
|
|
17
|
+
- **Package management**: Check for `bun.lockb`, `pnpm-lock.yaml`, `package-lock.json`, or `yarn.lock`
|
|
18
|
+
- **Monorepo**: Check for `turbo.json` (Turborepo), `nx.json` (Nx), or `lerna.json` (Lerna)
|
|
19
|
+
- **Framework**: Check existing packages for Hono, Express, Fastify, etc.
|
|
20
|
+
- **Frontend**: Check for React, Vue, Svelte, etc.
|
|
21
|
+
- **Routing**: Check for TanStack Router, React Router, Next.js, etc.
|
|
22
|
+
- **Database**: Check for Drizzle, Prisma, TypeORM, etc.
|
|
23
|
+
- **Validation**: Check for Zod, Yup, io-ts, etc.
|
|
24
|
+
- **UI Components**: Check for shadcn/ui, Radix, MUI, etc.
|
|
25
|
+
- **Styling**: Check for Tailwind (v3 or v4), CSS Modules, styled-components, etc.
|
|
26
|
+
|
|
27
|
+
## Archetype Conventions
|
|
28
|
+
|
|
29
|
+
### 00-core-definitions.md (TypeScript)
|
|
30
|
+
|
|
31
|
+
- **Type aliases and union types**: Use `type` declarations for unions, intersections, utility types
|
|
32
|
+
- **Core interfaces**: Define with `interface` keyword, JSDoc on every field
|
|
33
|
+
- **Error class hierarchy**: Base error class extending `Error` with `code: string` property; domain-specific subclasses with typed properties
|
|
34
|
+
- **Constants and enums**: Use `const` declarations and `as const` assertions; prefer string union types over `enum`
|
|
35
|
+
- **Utility types**: Generic helpers like `Result<T, E>`, `Optional<T>`, etc.
|
|
36
|
+
- **Barrel exports**: Export everything from `src/index.ts`
|
|
37
|
+
|
|
38
|
+
### 01-architecture-layout.md (TypeScript)
|
|
39
|
+
|
|
40
|
+
- **Package.json**: `name`, `exports` map (subpath exports like `.`, `./server`, `./client`, `./react`), `dependencies`, `devDependencies`, `scripts`
|
|
41
|
+
- **tsconfig.json**: Key compiler options, extends root config
|
|
42
|
+
- **Barrel export structure**: What each `index.ts` re-exports
|
|
43
|
+
- **Build considerations**: Bundle vs unbundled, ESM vs CJS
|
|
44
|
+
|
|
45
|
+
### Monorepo conventions
|
|
46
|
+
|
|
47
|
+
- **Package naming**: `@repo/{name}` for shared packages, `@starter/{name}` for app-specific (adapt to project convention)
|
|
48
|
+
- **Internal dependencies**: Reference as `@repo/{package}` in `package.json`
|
|
49
|
+
- **Workspace protocol**: `"@repo/config": "workspace:*"` in pnpm, `"@repo/config": "*"` in bun
|
|
50
|
+
|
|
51
|
+
## Spec Quality Rules
|
|
52
|
+
|
|
53
|
+
- All TypeScript must be valid syntax — not pseudocode
|
|
54
|
+
- Include complete interfaces with generics where applicable
|
|
55
|
+
- Use discriminated unions for result types (e.g., `{ success: true; data: T } | { success: false; error: E }`)
|
|
56
|
+
- Every interface field must have JSDoc explaining its purpose
|
|
57
|
+
- Include explicit import paths in all code examples
|
|
58
|
+
- Use `async/await` for asynchronous operations (not raw Promises)
|
|
59
|
+
|
|
60
|
+
## Verification Specifics
|
|
61
|
+
|
|
62
|
+
- **Type checking**: `bun run typecheck`, `tsc --noEmit`, or `npx tsc --noEmit`
|
|
63
|
+
- **Barrel export validation**: Every `index.ts` re-exports what the spec says
|
|
64
|
+
- **Cross-package type checks**: `bun run typecheck` (or equivalent) passes for both the feature package AND packages that depend on it
|
|
65
|
+
- **Import path validation**: All import paths resolve correctly per the `exports` map in `package.json`
|
|
66
|
+
|
|
67
|
+
## Testing
|
|
68
|
+
|
|
69
|
+
- **Framework**: Vitest (most common in modern TS), Jest, or testing-library
|
|
70
|
+
- **Test file location**: Co-located (`*.test.ts` next to source) or in `__tests__/` directories
|
|
71
|
+
- **Fixture patterns**: Factory functions, test builders
|
|
72
|
+
- **Type testing**: `expectTypeOf` from vitest for type-level assertions
|
|
73
|
+
|
|
74
|
+
## Common Frameworks
|
|
75
|
+
|
|
76
|
+
| Category | Options |
|
|
77
|
+
|----------|---------|
|
|
78
|
+
| Backend | Hono, Express, Fastify, Koa |
|
|
79
|
+
| Frontend | React, Vue, Svelte, Solid |
|
|
80
|
+
| Routing | TanStack Router, React Router, Next.js App Router |
|
|
81
|
+
| Database | Drizzle, Prisma, TypeORM, Kysely |
|
|
82
|
+
| Validation | Zod, Valibot, Yup, io-ts |
|
|
83
|
+
| UI Components | shadcn/ui, Radix, MUI, Mantine |
|
|
84
|
+
| Styling | Tailwind CSS, CSS Modules, styled-components, vanilla-extract |
|
|
85
|
+
|
|
86
|
+
## Example: Project-Level Override
|
|
87
|
+
|
|
88
|
+
Create `.feature-forge/stack-decisions.md` (legacy alias: `.claude/references/stack-decisions.md`) in your project root:
|
|
89
|
+
|
|
90
|
+
```markdown
|
|
91
|
+
# Stack Decisions
|
|
92
|
+
|
|
93
|
+
## Runtime & Build
|
|
94
|
+
- Bun 1.x for runtime and package management
|
|
95
|
+
- Turborepo for monorepo orchestration
|
|
96
|
+
|
|
97
|
+
## Backend
|
|
98
|
+
- Hono for HTTP framework
|
|
99
|
+
- Drizzle ORM with PostgreSQL
|
|
100
|
+
- Zod for runtime validation
|
|
101
|
+
|
|
102
|
+
## Frontend
|
|
103
|
+
- React 19 with TanStack Router (SPA-first)
|
|
104
|
+
- shadcn/ui component library
|
|
105
|
+
- Tailwind CSS v4 with oklch color theming
|
|
106
|
+
|
|
107
|
+
## Conventions
|
|
108
|
+
- Barrel exports from index.ts in every package
|
|
109
|
+
- Package naming: @repo/{name} for shared, @starter/{name} for app-specific
|
|
110
|
+
- Vitest for testing
|
|
111
|
+
```
|
|
@@ -23,6 +23,7 @@ After initialization, the config file will contain defaults for:
|
|
|
23
23
|
- `stack`: `null` (detected during `/feature-forge:forge-2-tech`)
|
|
24
24
|
- `typeCheckCommand`: `null` (set during `/feature-forge:forge-2-tech`)
|
|
25
25
|
- `testCommand`: `null` (set during `/feature-forge:forge-2-tech`)
|
|
26
|
+
- `smokeCommand`: `null` (optional end-to-end smoke that boots the wired app and drives one request; set it to enable impl-verify's runnability check `CHECK-I21` — distinct from `testCommand`)
|
|
26
27
|
- `autoInvokeNextStage`: `true` (the navigator auto-starts the next stage after you confirm; set `false` to only print the command)
|
|
27
28
|
- `contextWindowTokens`: `null` (the navigator infers the context window; set to your model's window, e.g. `1000000` for a 1M-context model, for accurate context-usage advice)
|
|
28
29
|
- `contextWarnThreshold`: `0.7` (fraction of the window past which the navigator suggests a clean session)
|
|
@@ -29,7 +29,7 @@ Pick based on how many checks the mode carries (see the per-mode totals in Step
|
|
|
29
29
|
- **Small modes (prd ~15, tech ~15): single verifier.** Use the host's subagent mechanism once with
|
|
30
30
|
`the forge-verifier custom agent`, passing the feature name and mode. It runs all
|
|
31
31
|
checks and returns findings.
|
|
32
|
-
- **Large modes (specs ~38, backlog ~25, impl ~
|
|
32
|
+
- **Large modes (specs ~38, backlog ~25, impl ~22): parallel dimensioned fan-out.**
|
|
33
33
|
Split the mode's checklist into **dimension groups** and dispatch **one
|
|
34
34
|
`forge-verifier` per group, in parallel — a single message with multiple subagent
|
|
35
35
|
calls** (the `superpowers:dispatching-parallel-agents` pattern). Each instance owns a
|
|
@@ -41,7 +41,8 @@ Pick based on how many checks the mode carries (see the per-mode totals in Step
|
|
|
41
41
|
- **backlog:** (1) item scoping & acceptance criteria, (2) dependency/ordering sanity,
|
|
42
42
|
(3) spec coverage & traceability, (4) schema/enum correctness.
|
|
43
43
|
- **impl:** (1) requirement coverage vs specs, (2) integration correctness,
|
|
44
|
-
(3) testing, (4) code-quality/conventions
|
|
44
|
+
(3) testing, (4) code-quality/conventions, (5) runnability (owns CHECK-I21/I22 —
|
|
45
|
+
the smoke command and the non-test-caller heuristic).
|
|
45
46
|
|
|
46
47
|
In each parallel instance's prompt, pass: the feature, the mode, the **dimension
|
|
47
48
|
label**, the **exact CHECK-IDs it owns**, and a note that **it is one of several
|
|
@@ -161,7 +162,7 @@ Load into context ALL artifacts for this feature based on mode:
|
|
|
161
162
|
|
|
162
163
|
Read `references/verification-checklists.md` for the detailed checklists per mode. Execute every check. Do not skip checks because things "look fine." That same reference also holds the relocated **Findings Document Template (Step 4)**, the worked **Example Findings (Step 4)**, and the **Epic Mode State Write Detail (Step 6)** sections used later in this skill.
|
|
163
164
|
|
|
164
|
-
Each check in `verification-checklists.md` 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: ~15 checks, specs: ~38 checks, backlog: ~25 checks, impl: ~
|
|
165
|
+
Each check in `verification-checklists.md` 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: ~15 checks, specs: ~38 checks, backlog: ~25 checks, impl: ~22 checks, epic: ~9 checks), you likely skipped checks — go back and complete them.
|
|
165
166
|
|
|
166
167
|
**Epic mode dispatch.** Epic mode is a small (~9-check) checklist, so per the single-vs-parallel rule above, dispatch a **single `forge-verifier`** via the host's subagent mechanism, passing the epic name and `mode=epic`. The verifier runs CHECK-E01..E09 from the `## Epic Mode Checklist` in `references/verification-checklists.md` (E01/E02/E03/E08 are delegated to `epic-manifest.py validate`/`check-name`; E04–E07 and E09 are verifier judgment) and returns its findings.
|
|
167
168
|
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "Feature Forge Pipeline State",
|
|
4
|
+
"description": "Tracks pipeline progress for a single feature across sessions. Lives at {specsDir}/{feature}/.pipeline-state.json",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"required": ["feature", "createdAt", "updatedAt", "currentStage", "stages", "pipelineStatus"],
|
|
7
|
+
"properties": {
|
|
8
|
+
"pipelineStatus": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"enum": ["active", "paused", "abandoned"],
|
|
11
|
+
"default": "active"
|
|
12
|
+
},
|
|
13
|
+
"feature": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Feature name (matches directory name under specsDir)"
|
|
16
|
+
},
|
|
17
|
+
"epic": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Back-pointer to the owning epic's name. Absent for standalone features. The epic-manifest.json is canonical on conflict (REQ-STATE-01)."
|
|
20
|
+
},
|
|
21
|
+
"branch": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Git branch this feature's pipeline work is intended to land on, recorded by the Branch Setup block (shared-conventions.md) at the entry stage. Absent when the project isn't a git repo or branchPerFeature is false. Downstream stages and forge-5-loop compare the current branch against this to detect drift back onto the default branch before committing."
|
|
24
|
+
},
|
|
25
|
+
"createdAt": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"format": "date-time"
|
|
28
|
+
},
|
|
29
|
+
"updatedAt": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": "date-time"
|
|
32
|
+
},
|
|
33
|
+
"currentStage": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": ["forge-1-prd", "forge-2-tech", "forge-3-specs", "forge-4-backlog", "forge-5-loop", "forge-6-docs", "complete", "forge-verify-prd", "forge-verify-tech", "forge-verify-specs", "forge-verify-backlog", "forge-verify-impl", "forge-0-epic", "forge-verify-epic"],
|
|
36
|
+
"description": "Where the pipeline IS: the most recently started stage — its `stages[<currentStage>].status` is `in-progress` while that stage is being authored, then `complete` once its artifacts are committed. A stage skill sets this to its own id when it starts. This is deliberately NOT 'the next stage to run': the next stage is DERIVED, never stored — it is the first production stage whose `stages[].status` is not `complete` (see `next_stage()` in forge-session.py, surfaced as the navigator/doctor `nextStage`). Consumers that need 'what runs next' compute it from `stages[].status`, not from this field. `complete` here means the whole pipeline is done. (Legacy/absent value: tools fall back to the derived next stage for display only — `build_rows` in forge-session.py.)"
|
|
37
|
+
},
|
|
38
|
+
"notes": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Free-form notes persisted between sessions (user can add context before stepping away)"
|
|
41
|
+
},
|
|
42
|
+
"epicChangeRequests": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"description": "Epic-level change requests raised by a member stage (forge-1-prd/forge-2-tech) when the epic DECOMPOSITION itself must change — distinct from the same-feature `notes` parking lot. Read by forge-0-epic edit mode (which applies them) and by forge-session stage-exit (which routes the exit on `blocksCurrent`). Absent/empty for standalone features. Additive/optional: legacy states without it validate unchanged.",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": ["kind", "target", "rationale", "blocksCurrent", "raisedBy", "raisedAt", "status"],
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"properties": {
|
|
50
|
+
"kind": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"enum": ["add-feature", "redep", "move-boundary", "split"],
|
|
53
|
+
"description": "The decomposition change. add-feature/redep map 1:1 onto edit-mode mutators; move-boundary/split are composite (applied guided-manual in v1)."
|
|
54
|
+
},
|
|
55
|
+
"target": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The sibling feature to add, or the feature/boundary affected."
|
|
58
|
+
},
|
|
59
|
+
"rationale": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Why the epic must change; seeds the edit-mode charter/prompt when applied."
|
|
62
|
+
},
|
|
63
|
+
"blocksCurrent": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "true → the current feature's next stage would build on a soon-to-change decomposition (pause-now: reconcile before proceeding). false → a peer/downstream change (finish-then-edit). Drives stage-exit routing."
|
|
66
|
+
},
|
|
67
|
+
"raisedBy": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"enum": ["forge-1-prd", "forge-2-tech"],
|
|
70
|
+
"description": "The stage that detected the epic-level concern."
|
|
71
|
+
},
|
|
72
|
+
"raisedAt": { "type": "string", "format": "date-time" },
|
|
73
|
+
"status": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"enum": ["open", "applied", "dismissed"],
|
|
76
|
+
"default": "open",
|
|
77
|
+
"description": "Lifecycle: open → applied|dismissed. Only forge-0-epic edit mode flips open→applied/dismissed; recording stages only create open entries; navigator/verify only read."
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"deferredDecisions": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"description": "Same-feature decisions deliberately postponed to a LATER stage of THIS feature — a structured alternative to burying them in the free-text `notes` string. Distinct from `notes` (unstructured scratch) and from `epicChangeRequests[]` (the epic DECOMPOSITION must change). Use this when a stage would otherwise be tempted to solicit a decision that properly belongs to a downstream stage (e.g. forge-1-prd deferring the concrete cache backend to forge-2-tech): record it here instead of asking now (see the deferred-decisions rule in `references/stage-exit-protocol.md`), and the target stage addresses it. Additive/optional: legacy states without it validate unchanged.",
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"required": ["question", "raisedBy", "raisedAt", "status"],
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"properties": {
|
|
90
|
+
"question": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "The decision being deferred, phrased as a concrete question for the target stage to answer."
|
|
93
|
+
},
|
|
94
|
+
"rationale": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Why it is deferred rather than decided now (e.g. depends on information the target stage produces)."
|
|
97
|
+
},
|
|
98
|
+
"targetStage": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"enum": ["forge-1-prd", "forge-2-tech", "forge-3-specs", "forge-4-backlog", "forge-5-loop", "forge-6-docs"],
|
|
101
|
+
"description": "The stage that should resolve this decision. Omit when unknown/any-later-stage."
|
|
102
|
+
},
|
|
103
|
+
"raisedBy": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": ["forge-1-prd", "forge-2-tech", "forge-3-specs", "forge-4-backlog"],
|
|
106
|
+
"description": "The stage that deferred the decision."
|
|
107
|
+
},
|
|
108
|
+
"raisedAt": { "type": "string", "format": "date-time" },
|
|
109
|
+
"status": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"enum": ["open", "addressed", "dismissed"],
|
|
112
|
+
"default": "open",
|
|
113
|
+
"description": "Lifecycle: open → addressed|dismissed. The target stage flips open→addressed when it resolves the decision (or dismissed if it no longer applies); recording stages only create open entries."
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"stages": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"forge-0-epic": { "$ref": "#/definitions/stageEntry" },
|
|
122
|
+
"forge-verify-epic": { "$ref": "#/definitions/verifyEntry" },
|
|
123
|
+
"forge-1-prd": { "$ref": "#/definitions/stageEntry" },
|
|
124
|
+
"forge-2-tech": { "$ref": "#/definitions/stageEntry" },
|
|
125
|
+
"forge-3-specs": { "$ref": "#/definitions/stageEntry" },
|
|
126
|
+
"forge-verify-specs": { "$ref": "#/definitions/verifyEntry" },
|
|
127
|
+
"forge-4-backlog": { "$ref": "#/definitions/stageEntry" },
|
|
128
|
+
"forge-verify-backlog": { "$ref": "#/definitions/verifyEntry" },
|
|
129
|
+
"forge-5-loop": { "$ref": "#/definitions/stageEntry" },
|
|
130
|
+
"forge-6-docs": { "$ref": "#/definitions/stageEntry" },
|
|
131
|
+
"forge-verify-impl": { "$ref": "#/definitions/verifyEntry" },
|
|
132
|
+
"forge-verify-prd": { "$ref": "#/definitions/verifyEntry" },
|
|
133
|
+
"forge-verify-tech": { "$ref": "#/definitions/verifyEntry" }
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"definitions": {
|
|
138
|
+
"stageEntry": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"required": ["status"],
|
|
141
|
+
"properties": {
|
|
142
|
+
"status": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"enum": ["pending", "in-progress", "complete", "stale"]
|
|
145
|
+
},
|
|
146
|
+
"version": {
|
|
147
|
+
"type": "integer",
|
|
148
|
+
"description": "Incremented each time this stage's artifacts are revised"
|
|
149
|
+
},
|
|
150
|
+
"artifacts": {
|
|
151
|
+
"type": "array",
|
|
152
|
+
"items": { "type": "string" },
|
|
153
|
+
"description": "Relative paths to artifacts produced by this stage"
|
|
154
|
+
},
|
|
155
|
+
"startedAt": { "type": ["string", "null"], "format": "date-time" },
|
|
156
|
+
"completedAt": { "type": ["string", "null"], "format": "date-time" },
|
|
157
|
+
"commitHash": {
|
|
158
|
+
"type": ["string", "null"],
|
|
159
|
+
"description": "Git commit SHA of this stage's artifact commit (Commit 1 of the two-commit Git Commit Protocol in shared-conventions.md). Written by a small follow-up commit so it points at the artifact commit itself, never at an orphaned amend or the hash-recording commit. null until recorded (or when there was no new artifact commit)."
|
|
160
|
+
},
|
|
161
|
+
"basedOnVersions": {
|
|
162
|
+
"type": "object",
|
|
163
|
+
"description": "Upstream stage versions this artifact was built against",
|
|
164
|
+
"additionalProperties": { "type": "integer" }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"verifyEntry": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"required": ["status"],
|
|
171
|
+
"properties": {
|
|
172
|
+
"status": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"enum": ["pending", "passed", "findings-reported", "findings-applied", "skipped"]
|
|
175
|
+
},
|
|
176
|
+
"findingsFile": {
|
|
177
|
+
"type": ["string", "null"],
|
|
178
|
+
"description": "Path to the verification findings document"
|
|
179
|
+
},
|
|
180
|
+
"findingsCount": {
|
|
181
|
+
"type": ["integer", "null"],
|
|
182
|
+
"description": "Number of findings reported"
|
|
183
|
+
},
|
|
184
|
+
"verifiedAt": { "type": ["string", "null"], "format": "date-time" },
|
|
185
|
+
"fixedAt": { "type": ["string", "null"], "format": "date-time" },
|
|
186
|
+
"commitHash": { "type": ["string", "null"], "description": "Git commit SHA of the verify/fix artifact commit. Recorded via the two-commit Git Commit Protocol (shared-conventions.md) so it points at the artifact commit, never an orphaned amend." },
|
|
187
|
+
"verifiedStageVersion": { "type": ["integer", "null"], "description": "The production stage's `version` at the moment this verify was resolved. The navigator's freshness ledger compares it to the stage's current `version`: equal means the verify is fresh; a mismatch (artifact revised since) or an absent field (legacy state) means stale, so auto-verify re-fires. Recorded by forge-verify/forge-fix when writing a passed/findings-applied status." }
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|