@entelligentsia/forgecli 0.21.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +31 -33
- package/dist/CHANGELOG-forge-plugin.md +118 -0
- package/dist/CHANGELOG-pi.md +24 -1
- package/dist/bin/forgecli.d.ts +2 -0
- package/dist/bin/forgecli.js +6 -0
- package/dist/bin/forgecli.js.map +1 -0
- package/dist/extensions/forgecli/add-pipeline.js +1 -1
- package/dist/extensions/forgecli/add-pipeline.js.map +1 -1
- package/dist/extensions/forgecli/add-task.js +1 -1
- package/dist/extensions/forgecli/add-task.js.map +1 -1
- package/dist/extensions/forgecli/approve.js +17 -2
- package/dist/extensions/forgecli/approve.js.map +1 -1
- package/dist/extensions/forgecli/calibrate.js +11 -8
- package/dist/extensions/forgecli/calibrate.js.map +1 -1
- package/dist/extensions/forgecli/collate.js +1 -1
- package/dist/extensions/forgecli/collate.js.map +1 -1
- package/dist/extensions/forgecli/commit.js +17 -2
- package/dist/extensions/forgecli/commit.js.map +1 -1
- package/dist/extensions/forgecli/enhance.js +1 -1
- package/dist/extensions/forgecli/enhance.js.map +1 -1
- package/dist/extensions/forgecli/forge-artifact-tool.d.ts +6 -8
- package/dist/extensions/forgecli/forge-artifact-tool.js +80 -195
- package/dist/extensions/forgecli/forge-artifact-tool.js.map +1 -1
- package/dist/extensions/forgecli/forge-commands.js +57 -18
- package/dist/extensions/forgecli/forge-commands.js.map +1 -1
- package/dist/extensions/forgecli/forge-init/phase4-register.js +6 -7
- package/dist/extensions/forgecli/forge-init/phase4-register.js.map +1 -1
- package/dist/extensions/forgecli/forge-init/run-phases.d.ts +4 -0
- package/dist/extensions/forgecli/forge-init/run-phases.js +304 -0
- package/dist/extensions/forgecli/forge-init/run-phases.js.map +1 -0
- package/dist/extensions/forgecli/forge-init/verifiers.d.ts +14 -5
- package/dist/extensions/forgecli/forge-init/verifiers.js +79 -62
- package/dist/extensions/forgecli/forge-init/verifiers.js.map +1 -1
- package/dist/extensions/forgecli/forge-init.js +131 -76
- package/dist/extensions/forgecli/forge-init.js.map +1 -1
- package/dist/extensions/forgecli/forge-subagent.d.ts +9 -0
- package/dist/extensions/forgecli/forge-subagent.js +11 -6
- package/dist/extensions/forgecli/forge-subagent.js.map +1 -1
- package/dist/extensions/forgecli/forge-tools.d.ts +28 -4
- package/dist/extensions/forgecli/forge-tools.js +122 -73
- package/dist/extensions/forgecli/forge-tools.js.map +1 -1
- package/dist/extensions/forgecli/health-check.js +3 -3
- package/dist/extensions/forgecli/health-check.js.map +1 -1
- package/dist/extensions/forgecli/hook-dispatcher.d.ts +1 -1
- package/dist/extensions/forgecli/hooks/check-update.d.ts +8 -0
- package/dist/extensions/forgecli/hooks/check-update.js +29 -1
- package/dist/extensions/forgecli/hooks/check-update.js.map +1 -1
- package/dist/extensions/forgecli/hooks/post-init-hook.js +6 -6
- package/dist/extensions/forgecli/hooks/post-init-hook.js.map +1 -1
- package/dist/extensions/forgecli/hooks/post-sprint-hook.js +6 -6
- package/dist/extensions/forgecli/hooks/post-sprint-hook.js.map +1 -1
- package/dist/extensions/forgecli/hooks/triage-error.js +1 -0
- package/dist/extensions/forgecli/hooks/triage-error.js.map +1 -1
- package/dist/extensions/forgecli/implement.js +20 -2
- package/dist/extensions/forgecli/implement.js.map +1 -1
- package/dist/extensions/forgecli/index.js +39 -32
- package/dist/extensions/forgecli/index.js.map +1 -1
- package/dist/extensions/forgecli/lib/pipeline-guard.d.ts +41 -0
- package/dist/extensions/forgecli/lib/pipeline-guard.js +100 -0
- package/dist/extensions/forgecli/lib/pipeline-guard.js.map +1 -0
- package/dist/extensions/forgecli/loaders/persona-skill-loader.js +2 -2
- package/dist/extensions/forgecli/loaders/persona-skill-loader.js.map +1 -1
- package/dist/extensions/forgecli/migrate.d.ts +3 -0
- package/dist/extensions/forgecli/migrate.js +4 -2
- package/dist/extensions/forgecli/migrate.js.map +1 -1
- package/dist/extensions/forgecli/plan.js +21 -2
- package/dist/extensions/forgecli/plan.js.map +1 -1
- package/dist/extensions/forgecli/quiz-agent.js +7 -7
- package/dist/extensions/forgecli/quiz-agent.js.map +1 -1
- package/dist/extensions/forgecli/regenerate.js +49 -18
- package/dist/extensions/forgecli/regenerate.js.map +1 -1
- package/dist/extensions/forgecli/remove-command.js +1 -1
- package/dist/extensions/forgecli/remove-command.js.map +1 -1
- package/dist/extensions/forgecli/report-bug.js +1 -1
- package/dist/extensions/forgecli/report-bug.js.map +1 -1
- package/dist/extensions/forgecli/retrospective.js +9 -9
- package/dist/extensions/forgecli/retrospective.js.map +1 -1
- package/dist/extensions/forgecli/review-code.d.ts +13 -0
- package/dist/extensions/forgecli/review-code.js +62 -3
- package/dist/extensions/forgecli/review-code.js.map +1 -1
- package/dist/extensions/forgecli/review-plan.d.ts +13 -0
- package/dist/extensions/forgecli/review-plan.js +65 -3
- package/dist/extensions/forgecli/review-plan.js.map +1 -1
- package/dist/extensions/forgecli/skill-curator-subagent.d.ts +2 -1
- package/dist/extensions/forgecli/skill-curator-subagent.js +2 -1
- package/dist/extensions/forgecli/skill-curator-subagent.js.map +1 -1
- package/dist/extensions/forgecli/sprint-intake.js +6 -6
- package/dist/extensions/forgecli/sprint-intake.js.map +1 -1
- package/dist/extensions/forgecli/sprint-plan.js +9 -9
- package/dist/extensions/forgecli/sprint-plan.js.map +1 -1
- package/dist/extensions/forgecli/status-command.js +1 -1
- package/dist/extensions/forgecli/status-command.js.map +1 -1
- package/dist/extensions/forgecli/store-query.js +11 -11
- package/dist/extensions/forgecli/store-query.js.map +1 -1
- package/dist/extensions/forgecli/store-repair.js +7 -7
- package/dist/extensions/forgecli/store-repair.js.map +1 -1
- package/dist/extensions/forgecli/validate.js +17 -2
- package/dist/extensions/forgecli/validate.js.map +1 -1
- package/dist/forge-payload/.base-pack/commands/check-agent.md +22 -0
- package/dist/forge-payload/.base-pack/commands/new-sprint.md +22 -0
- package/dist/forge-payload/.base-pack/commands/plan-sprint.md +22 -0
- package/dist/forge-payload/.base-pack/commands/quiz-agent.md +2 -18
- package/dist/forge-payload/.base-pack/commands/retro.md +22 -0
- package/dist/forge-payload/.base-pack/commands/retrospective.md +2 -18
- package/dist/forge-payload/.base-pack/commands/sprint-intake.md +2 -18
- package/dist/forge-payload/.base-pack/commands/sprint-plan.md +2 -18
- package/dist/forge-payload/.base-pack/workflows/_fragments/friction-emit.md +2 -2
- package/dist/forge-payload/.base-pack/workflows/_fragments/generation-instructions.md +4 -4
- package/dist/forge-payload/.base-pack/workflows/_fragments/iron-laws.md +1 -1
- package/dist/forge-payload/.base-pack/workflows/architect_approve.md +13 -1
- package/dist/forge-payload/.base-pack/workflows/commit_task.md +12 -1
- package/dist/forge-payload/.base-pack/workflows/enhance.md +6 -6
- package/dist/forge-payload/.base-pack/workflows/fix_bug.md +1 -1
- package/dist/forge-payload/.base-pack/workflows/implement_plan.md +14 -2
- package/dist/forge-payload/.base-pack/workflows/migrate_structural.md +2 -2
- package/dist/forge-payload/.base-pack/workflows/orchestrate_task.md +20 -4
- package/dist/forge-payload/.base-pack/workflows/plan_task.md +14 -2
- package/dist/forge-payload/.base-pack/workflows/review_code.md +37 -7
- package/dist/forge-payload/.base-pack/workflows/review_plan.md +36 -6
- package/dist/forge-payload/.base-pack/workflows/run_sprint.md +2 -2
- package/dist/forge-payload/.base-pack/workflows/validate_task.md +37 -7
- package/dist/forge-payload/.claude-plugin/plugin.json +1 -1
- package/dist/forge-payload/.schemas/config.schema.json +0 -5
- package/dist/forge-payload/.schemas/enum-catalog.json +9 -13
- package/dist/forge-payload/.schemas/migrations.json +54 -0
- package/dist/forge-payload/agents/tomoshibi.md +150 -6
- package/dist/forge-payload/commands/add-pipeline.md +1 -1
- package/dist/forge-payload/commands/add-task.md +1 -1
- package/dist/forge-payload/commands/calibrate.md +4 -350
- package/dist/forge-payload/commands/check-agent.md +38 -0
- package/dist/forge-payload/commands/config.md +3 -113
- package/dist/forge-payload/commands/enhance.md +5 -32
- package/dist/forge-payload/commands/health.md +155 -13
- package/dist/forge-payload/commands/init.md +25 -31
- package/dist/forge-payload/commands/migrate.md +6 -154
- package/dist/forge-payload/commands/quiz-agent.md +2 -34
- package/dist/forge-payload/commands/rebuild.md +664 -0
- package/dist/forge-payload/commands/regenerate.md +2 -774
- package/dist/forge-payload/commands/remove.md +10 -13
- package/dist/forge-payload/commands/repair.md +187 -0
- package/dist/forge-payload/commands/search.md +73 -0
- package/dist/forge-payload/commands/status.md +105 -0
- package/dist/forge-payload/commands/store-query.md +2 -69
- package/dist/forge-payload/commands/store-repair.md +2 -183
- package/dist/forge-payload/commands/update-tools.md +4 -50
- package/dist/forge-payload/commands/update.md +64 -58
- package/dist/forge-payload/hooks/check-update.cjs +1 -1
- package/dist/forge-payload/hooks/post-init.cjs +2 -2
- package/dist/forge-payload/hooks/post-sprint.cjs +2 -2
- package/dist/forge-payload/hooks/triage-error.cjs +11 -10
- package/dist/forge-payload/init/phases/phase-1-collect.md +138 -0
- package/dist/forge-payload/init/phases/phase-2-discover.md +127 -0
- package/dist/forge-payload/init/phases/phase-3-materialize.md +113 -0
- package/dist/forge-payload/init/phases/phase-4-register.md +159 -0
- package/dist/forge-payload/integrity.json +21 -24
- package/dist/forge-payload/meta/fragments/tool-discipline.md +22 -0
- package/dist/forge-payload/meta/templates/meta-retro.md +28 -0
- package/dist/forge-payload/meta/workflows/_fragments/friction-emit.md +2 -2
- package/dist/forge-payload/meta/workflows/_fragments/generation-instructions.md +4 -4
- package/dist/forge-payload/meta/workflows/_fragments/iron-laws.md +1 -1
- package/dist/forge-payload/meta/workflows/meta-approve.md +13 -1
- package/dist/forge-payload/meta/workflows/meta-check-agent.md +138 -0
- package/dist/forge-payload/meta/workflows/meta-commit.md +12 -1
- package/dist/forge-payload/meta/workflows/meta-enhance.md +5 -5
- package/dist/forge-payload/meta/workflows/meta-fix-bug.md +1 -1
- package/dist/forge-payload/meta/workflows/meta-implement.md +13 -1
- package/dist/forge-payload/meta/workflows/meta-migrate.md +3 -3
- package/dist/forge-payload/meta/workflows/meta-new-sprint.md +84 -0
- package/dist/forge-payload/meta/workflows/meta-orchestrate.md +20 -4
- package/dist/forge-payload/meta/workflows/meta-plan-sprint.md +152 -0
- package/dist/forge-payload/meta/workflows/meta-plan-task.md +13 -1
- package/dist/forge-payload/meta/workflows/meta-retro.md +73 -0
- package/dist/forge-payload/meta/workflows/meta-review-implementation.md +37 -7
- package/dist/forge-payload/meta/workflows/meta-review-plan.md +36 -6
- package/dist/forge-payload/meta/workflows/meta-validate.md +37 -7
- package/dist/forge-payload/schemas/config.schema.json +0 -5
- package/dist/forge-payload/schemas/enum-catalog.json +9 -13
- package/dist/forge-payload/schemas/structure-manifest.json +6 -8
- package/dist/forge-payload/tools/artifact.cjs +295 -0
- package/dist/forge-payload/tools/banners.cjs +3 -4
- package/dist/forge-payload/tools/build-context-pack.cjs +1 -1
- package/dist/forge-payload/tools/check-structure.cjs +8 -3
- package/dist/forge-payload/tools/store-cli.cjs +67 -7
- package/dist/forge-payload/tools/substitute-placeholders.cjs +1 -1
- package/dist/forge-payload/tools/verify-apply.cjs +75 -0
- package/dist/forge-payload/tools/verify-phase.cjs +259 -0
- package/node_modules/@earendil-works/pi-agent-core/package.json +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts +0 -17
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +21 -38
- package/node_modules/@earendil-works/pi-ai/dist/models.generated.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js +5 -4
- package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +5 -2
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/CHANGELOG.md +24 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.js +2 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/cli/file-processor.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/output-guard.d.ts +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/output-guard.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/output-guard.js +52 -22
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/output-guard.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js +16 -4
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/package-manager.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js +45 -50
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/bash.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js +43 -81
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/edit.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/file-mutation-queue.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/file-mutation-queue.js +27 -12
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/file-mutation-queue.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js +2 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/find.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/grep.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js +5 -5
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/ls.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/path-utils.d.ts +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/path-utils.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/path-utils.js +37 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/path-utils.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js +9 -8
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/read.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js +20 -35
- package/node_modules/@earendil-works/pi-coding-agent/dist/core/tools/write.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js +64 -7
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-client.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js +15 -3
- package/node_modules/@earendil-works/pi-coding-agent/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard-native.d.ts +3 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard-native.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard-native.js +14 -8
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/clipboard-native.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-core.d.ts +30 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-core.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-core.js +124 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-core.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-worker.d.ts +2 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-worker.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-worker.js +31 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize-worker.js.map +1 -0
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.d.ts +7 -27
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js +75 -115
- package/node_modules/@earendil-works/pi-coding-agent/dist/utils/image-resize.js.map +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/docs/terminal-setup.md +6 -0
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/sandbox/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/examples/extensions/with-deps/package.json +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +12 -14
- package/node_modules/@earendil-works/pi-coding-agent/package.json +5 -5
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts +3 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +53 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +4 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts +2 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +13 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/pi-tui/package.json +2 -2
- package/package.json +6 -6
- package/dist/extensions/forgecli/forge-init/phase-descriptors.d.ts +0 -72
- package/dist/extensions/forgecli/forge-init/phase-descriptors.js +0 -359
- package/dist/extensions/forgecli/forge-init/phase-descriptors.js.map +0 -1
- package/dist/extensions/forgecli/forge-init/prompts.d.ts +0 -10
- package/dist/extensions/forgecli/forge-init/prompts.js +0 -91
- package/dist/extensions/forgecli/forge-init/prompts.js.map +0 -1
- package/dist/extensions/forgecli/lib/store-error-remediation.d.ts +0 -65
- package/dist/extensions/forgecli/lib/store-error-remediation.js +0 -298
- package/dist/extensions/forgecli/lib/store-error-remediation.js.map +0 -1
- package/dist/forge-payload/hooks/check-update.js +0 -378
- package/dist/forge-payload/hooks/forge-permissions.js +0 -164
- package/dist/forge-payload/hooks/triage-error.js +0 -77
- package/dist/forge-payload/hooks/validate-write.js +0 -250
|
@@ -30,13 +30,25 @@ The Engineer reads the task prompt, researches the codebase, and produces an imp
|
|
|
30
30
|
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
0a. Pre-flight Gate Check:
|
|
34
34
|
- Resolve FORGE_ROOT (`node -e "console.log(require('./.forge/config.json').paths.forgeRoot)"`).
|
|
35
35
|
- **Entity-mode resolution:** read the kickoff arguments. `--task {id}` → `entity_kind = "task"`, `record_id = {id}`. `--bug {id}` → `entity_kind = "bug"`, `record_id = {id}`. All store-cli calls below substitute `{entity_kind}` and `{record_id}` for the literal "task"/{taskId} placeholders.
|
|
36
36
|
- Run: `node "$FORGE_ROOT/tools/preflight-gate.cjs" --phase plan --{entity_kind} {record_id}`
|
|
37
37
|
- Exit 1 (gate failed) → print stderr and HALT. Do not proceed; do not attempt to produce the artifact.
|
|
38
38
|
- Exit 2 (misconfiguration) → print stderr and HALT.
|
|
39
39
|
- Exit 0 → continue.
|
|
40
|
+
|
|
41
|
+
0b. Pipeline Step Guard (user-invoked state check):
|
|
42
|
+
- If `--force` is present in the invocation arguments, skip this step entirely.
|
|
43
|
+
- If `entity_kind == "bug"`, skip this step entirely (bug state is managed by meta-fix-bug.md).
|
|
44
|
+
- Read current task state:
|
|
45
|
+
`node "$FORGE_ROOT/tools/store-cli.cjs" read task {record_id} --json`
|
|
46
|
+
- Extract the `status` field from the JSON output.
|
|
47
|
+
- Allowed states for this phase: `draft`, `planned`, `plan-revision-required`.
|
|
48
|
+
- If the current status is NOT in the allowed set:
|
|
49
|
+
Print the following and HALT (do not proceed):
|
|
50
|
+
`× Task {record_id} is in state '{status}' — /forge:plan cannot run from this state; a reset or reassignment must complete first. To run the full pipeline: /forge:run-task {record_id}`
|
|
51
|
+
|
|
40
52
|
1. Load Context:
|
|
41
53
|
- Read `.forge/personas/architect.md` first; print the persona identity line (emoji, name, tagline) to stdout before any other tool use.
|
|
42
54
|
- store-cli verbs: `read` | `list` | `write` | `emit` | `update-status` | `set-summary` | `describe` | `nlp` | `query` | `delete` — there is no `get`/`set`/`find`. See `_fragments/store-cli-verbs.md` for full notes; run `--help` before improvising.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
requirements:
|
|
3
|
+
reasoning: High
|
|
4
|
+
context: Medium
|
|
5
|
+
speed: Low
|
|
6
|
+
deps:
|
|
7
|
+
personas: [architect]
|
|
8
|
+
skills: [architect, generic]
|
|
9
|
+
templates: [RETROSPECTIVE_TEMPLATE]
|
|
10
|
+
sub_workflows: []
|
|
11
|
+
kb_docs: [architecture/stack.md]
|
|
12
|
+
config_fields: [paths.engineering]
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# 🗻 Meta-Workflow: Retrospective
|
|
16
|
+
|
|
17
|
+
## Purpose
|
|
18
|
+
|
|
19
|
+
Close a sprint by reviewing learnings, updating the knowledge base, and improving workflows.
|
|
20
|
+
|
|
21
|
+
<!-- See _fragments/iron-laws.md for Iron Laws section structure guidance -->
|
|
22
|
+
## Iron Laws
|
|
23
|
+
|
|
24
|
+
- Never mutate JSON records during retrospective; the store is the source of truth and retrospective flows downstream from it. Retrospective operations read store data and write markdown views only.
|
|
25
|
+
- Read `.forge/personas/architect.md` first; print the persona identity line (emoji, name, tagline) to stdout before any other tool use.
|
|
26
|
+
- All store I/O via `forge_store` (or `node "$FORGE_ROOT/tools/store-cli.cjs"`). Never edit `.forge/store/*.json` directly.
|
|
27
|
+
|
|
28
|
+
## Algorithm
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
1. Load Context:
|
|
32
|
+
- Read all task manifests for the sprint
|
|
33
|
+
- Read all event logs (including token usage)
|
|
34
|
+
- Read all retrospective notes gathered during the sprint
|
|
35
|
+
|
|
36
|
+
2. Analysis:
|
|
37
|
+
- Calculate total sprint cost (tokens/USD)
|
|
38
|
+
- Identify "bottleneck" tasks (high iteration counts or long duration)
|
|
39
|
+
- Analyze common failure modes in reviews
|
|
40
|
+
|
|
41
|
+
3. Knowledge Update:
|
|
42
|
+
- Update architecture/domain docs with "lessons learned"
|
|
43
|
+
- Propose improvements to meta-workflows based on analysis
|
|
44
|
+
- Update stack-checklist with new verification steps
|
|
45
|
+
|
|
46
|
+
4. Finalize:
|
|
47
|
+
- Write SPRINT_RETROSPECTIVE.md
|
|
48
|
+
- Update sprint status via `node "$FORGE_ROOT/tools/store-cli.cjs" update-status sprint {sprintId} status retrospective-done`
|
|
49
|
+
- Run `node "$FORGE_ROOT/tools/collate.cjs" {sprintId} --purge-events`
|
|
50
|
+
This single deterministic step: generates COST_REPORT.md from all
|
|
51
|
+
accumulated events, then deletes `.forge/store/events/{sprintId}/`.
|
|
52
|
+
COST_REPORT.md is the durable record; the raw event files are not
|
|
53
|
+
retained after retrospective close.
|
|
54
|
+
- **Do NOT emit a phase event yourself.** The orchestrator (or kickoff handler) owns event emission — it composes the canonical event from runtime telemetry (model, provider, tokens, wall times) plus the SUMMARY you write in the next step. Subagents that call `store-cli emit` for phase events hallucinate runtime facts (see Plan 11 / Slice 2). Write the SUMMARY and return.
|
|
55
|
+
(tombstone — written after the purge; the only event in the directory
|
|
56
|
+
going forward)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
<!-- See _fragments/generation-instructions.md for Generation Instructions template -->
|
|
60
|
+
## Generation Instructions
|
|
61
|
+
|
|
62
|
+
- **Persona Self-Load:** The generated workflow MUST begin by reading `.forge/personas/architect.md` as its first step (before any other tool use). This replaces the former inline `## Persona` section. The persona identity line (emoji, name, tagline) should be printed to stdout after reading the file.
|
|
63
|
+
- **Workflow Structure:** The generated `retrospective.md` must follow the strict "Algorithm" block format.
|
|
64
|
+
- **Context Isolation:** Forbid inline execution of cost analysis or doc updates; use the `Agent` tool for sub-tasks.
|
|
65
|
+
- **Project Specifics:**
|
|
66
|
+
- Reference project's cost reporting templates.
|
|
67
|
+
- **Token Reporting:** The generated workflow MUST mandate the following before returning:
|
|
68
|
+
1. Probe session token usage: invoke `/cost` if the host runtime supports it
|
|
69
|
+
(Claude Code only); on any other runtime treat as unavailable and proceed.
|
|
70
|
+
Do NOT shell out to a `cost-cli.cjs` — there is no such tool.
|
|
71
|
+
2. Parse: `inputTokens`, `outputTokens`, `cacheReadTokens`, `cacheWriteTokens`, `estimatedCostUSD`.
|
|
72
|
+
3. Write the usage sidecar via `node "$FORGE_ROOT/tools/store-cli.cjs" emit {sprintId} '{sidecar-json}' --sidecar`.
|
|
73
|
+
- **Event Emission:** Ensure the "complete" event includes the `eventId` passed by the orchestrator.
|
|
@@ -41,43 +41,73 @@ The Supervisor reviews the Engineer's implementation for correctness, quality, a
|
|
|
41
41
|
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
0a. Pre-flight Gate Check:
|
|
45
45
|
- Resolve FORGE_ROOT (`node -e "console.log(require('./.forge/config.json').paths.forgeRoot)"`).
|
|
46
46
|
- **Entity-mode resolution:** read the kickoff arguments. `--task {id}` → `entity_kind = "task"`, `record_id = {id}`. `--bug {id}` → `entity_kind = "bug"`, `record_id = {id}`. All store-cli calls below substitute `{entity_kind}` and `{record_id}` for the literal "task"/{taskId} placeholders.
|
|
47
47
|
- Run: `node "$FORGE_ROOT/tools/preflight-gate.cjs" --phase review-code --{entity_kind} {record_id}`
|
|
48
48
|
- Exit 1 (gate failed) → print stderr and HALT. Do not proceed; do not attempt to produce the artifact.
|
|
49
49
|
- Exit 2 (misconfiguration) → print stderr and HALT.
|
|
50
50
|
- Exit 0 → continue.
|
|
51
|
-
|
|
51
|
+
|
|
52
|
+
0b. Pipeline Step Guard (user-invoked state check):
|
|
53
|
+
- If `--force` is present in the invocation arguments, skip this step entirely.
|
|
54
|
+
- If `entity_kind == "bug"`, skip this step entirely (bug state is managed by meta-fix-bug.md).
|
|
55
|
+
- Read current task state:
|
|
56
|
+
`node "$FORGE_ROOT/tools/store-cli.cjs" read task {record_id} --json`
|
|
57
|
+
- Extract the `status` field from the JSON output.
|
|
58
|
+
- Allowed states for this phase: `implemented`, `implementing`.
|
|
59
|
+
- If the current status is NOT in the allowed set:
|
|
60
|
+
Print the following and HALT (do not proceed):
|
|
61
|
+
`× Task {record_id} is in state '{status}' — /forge:implement must complete first. To run the full pipeline: /forge:run-task {record_id}`
|
|
62
|
+
|
|
63
|
+
1. Read Review Loop Context:
|
|
64
|
+
- Check the spawning prompt for a `### Review Loop Context` block.
|
|
65
|
+
- If present, extract:
|
|
66
|
+
- `Iteration: N of M` — current attempt number and the configured limit
|
|
67
|
+
- `Is final iteration: true/false`
|
|
68
|
+
- If absent (user-invoked, not orchestrated): treat as iteration 1 of M, where M is
|
|
69
|
+
read from `.forge/config.json` → `maxReviewIterations` (default 3 if field absent).
|
|
70
|
+
- Include `(iteration N of M)` in the opening line of the `CODE_REVIEW.md` artifact.
|
|
71
|
+
- If this is the final iteration (`N == M`) and the verdict is `Revision Required`,
|
|
72
|
+
append a `### Next Steps` section to the artifact showing:
|
|
73
|
+
```
|
|
74
|
+
### Next Steps
|
|
75
|
+
- Force-approve (bypass remaining reviews): `/forge:approve --force {task_id}`
|
|
76
|
+
- Increase iteration limit: edit `config.pipelines.{pipeline}.phases[review-code].maxIterations`
|
|
77
|
+
- Restart from review: `/forge:review-code {task_id}`
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
2. Load Context:
|
|
52
81
|
- Read task prompt
|
|
53
82
|
- Read approved PLAN.md
|
|
54
83
|
- Read PROGRESS.md
|
|
55
84
|
|
|
56
85
|
**Read mode: diff-first.** Read `git diff $(git merge-base HEAD origin/main)..HEAD -- <files-listed-in-PLAN>` first. Read full source files only when the diff context is insufficient to judge a finding (e.g., the change is an inversion of an invariant defined elsewhere). Do not pre-load full source — tool calls earn their tokens.
|
|
57
86
|
|
|
58
|
-
|
|
87
|
+
3. Review:
|
|
59
88
|
- Verify all plan steps were executed
|
|
60
89
|
- Review code for quality, security, and architecture alignment
|
|
61
90
|
- Verify test evidence in PROGRESS.md is authentic and complete
|
|
62
91
|
|
|
63
|
-
|
|
92
|
+
4. Verdict:
|
|
64
93
|
- Write the code review via forge_artifact:
|
|
65
94
|
`forge_artifact({ command:"write", entity:"{entity_kind}", entityId:"{record_id}", artifact:"code-review", content:"<markdown>" })`
|
|
66
95
|
Use the format:
|
|
67
96
|
**Verdict:** [Approved | Revision Required]
|
|
68
97
|
- If Revision Required: provide numbered, actionable items
|
|
69
98
|
- If Approved: provide any advisory notes
|
|
99
|
+
- See step 1 for iteration header and final-iteration Next Steps requirements.
|
|
70
100
|
|
|
71
|
-
|
|
101
|
+
5. Knowledge Writeback:
|
|
72
102
|
- Update stack-checklist.md if new patterns or pitfalls were discovered
|
|
73
103
|
|
|
74
|
-
|
|
104
|
+
6. Finalize:
|
|
75
105
|
- Transitions:
|
|
76
106
|
- **Task mode** — Update status: `node "$FORGE_ROOT/tools/store-cli.cjs" update-status task {taskId} status review-approved` (if Approved) or `... status code-revision-required` (if Revision Required).
|
|
77
107
|
- **Bug mode** — NO status write. The bug remains `in-progress`. The verdict signal travels through `summaries.code_review.verdict` (read by `read-verdict.cjs § BUG_PHASE_VERDICT_SOURCE`), not `bug.status`. Writing `bug.status` here violates `meta-fix-bug.md § Iron Laws #2`.
|
|
78
108
|
- **Do NOT emit a phase event yourself.** The orchestrator (or kickoff handler) owns event emission — it composes the canonical event from runtime telemetry (model, provider, tokens, wall times) plus the SUMMARY you write in the next step. Subagents that call `store-cli emit` for phase events hallucinate runtime facts (see Plan 11 / Slice 2). Write the SUMMARY and return.
|
|
79
109
|
|
|
80
|
-
|
|
110
|
+
7. Emit Summary Sidecar:
|
|
81
111
|
- Write the review summary via forge_artifact:
|
|
82
112
|
`forge_artifact({ command:"write", entity:"{entity_kind}", entityId:"{record_id}", artifact:"review-impl-summary", content:"<JSON>" })`
|
|
83
113
|
The JSON shape:
|
|
@@ -37,30 +37,60 @@ deps:
|
|
|
37
37
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
0a. Pre-flight Gate Check:
|
|
41
41
|
- Resolve FORGE_ROOT (`node -e "console.log(require('./.forge/config.json').paths.forgeRoot)"`).
|
|
42
42
|
- **Entity-mode resolution:** read the kickoff arguments. `--task {id}` → `entity_kind = "task"`, `record_id = {id}`. `--bug {id}` → `entity_kind = "bug"`, `record_id = {id}`. All store-cli calls below substitute `{entity_kind}` and `{record_id}` for the literal "task"/{taskId} placeholders.
|
|
43
43
|
- Run: `node "$FORGE_ROOT/tools/preflight-gate.cjs" --phase review-plan --{entity_kind} {record_id}`
|
|
44
44
|
- Exit 1 (gate failed) → print stderr and HALT. Do not proceed; do not attempt to produce the artifact.
|
|
45
45
|
- Exit 2 (misconfiguration) → print stderr and HALT.
|
|
46
46
|
- Exit 0 → continue.
|
|
47
|
-
|
|
47
|
+
|
|
48
|
+
0b. Pipeline Step Guard (user-invoked state check):
|
|
49
|
+
- If `--force` is present in the invocation arguments, skip this step entirely.
|
|
50
|
+
- If `entity_kind == "bug"`, skip this step entirely (bug state is managed by meta-fix-bug.md).
|
|
51
|
+
- Read current task state:
|
|
52
|
+
`node "$FORGE_ROOT/tools/store-cli.cjs" read task {record_id} --json`
|
|
53
|
+
- Extract the `status` field from the JSON output.
|
|
54
|
+
- Allowed states for this phase: `planned`.
|
|
55
|
+
- If the current status is NOT in the allowed set:
|
|
56
|
+
Print the following and HALT (do not proceed):
|
|
57
|
+
`× Task {record_id} is in state '{status}' — /forge:plan must complete first. To run the full pipeline: /forge:run-task {record_id}`
|
|
58
|
+
|
|
59
|
+
1. Read Review Loop Context:
|
|
60
|
+
- Check the spawning prompt for a `### Review Loop Context` block.
|
|
61
|
+
- If present, extract:
|
|
62
|
+
- `Iteration: N of M` — current attempt number and the configured limit
|
|
63
|
+
- `Is final iteration: true/false`
|
|
64
|
+
- If absent (user-invoked, not orchestrated): treat as iteration 1 of M, where M is
|
|
65
|
+
read from `.forge/config.json` → `maxReviewIterations` (default 3 if field absent).
|
|
66
|
+
- Include `(iteration N of M)` in the opening line of the `PLAN_REVIEW.md` artifact.
|
|
67
|
+
- If this is the final iteration (`N == M`) and the verdict is `Revision Required`,
|
|
68
|
+
append a `### Next Steps` section to the artifact showing:
|
|
69
|
+
```
|
|
70
|
+
### Next Steps
|
|
71
|
+
- Force-approve (bypass remaining reviews): `/forge:approve --force {task_id}`
|
|
72
|
+
- Increase iteration limit: edit `config.pipelines.{pipeline}.phases[review-plan].maxIterations`
|
|
73
|
+
- Restart from review: `/forge:review-plan {task_id}`
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
2. Load Context:
|
|
48
77
|
- Read task prompt (source of truth)
|
|
49
78
|
- Read PLAN.md (subject of review)
|
|
50
79
|
- Read stack checklist if available
|
|
51
80
|
|
|
52
|
-
|
|
81
|
+
3. Review:
|
|
53
82
|
- Evaluate feasibility, completeness, security, architecture alignment, and testing strategy
|
|
54
83
|
- Identify missing edge cases or failure modes
|
|
55
84
|
|
|
56
|
-
|
|
85
|
+
4. Verdict:
|
|
57
86
|
- Write the plan review via forge_artifact: forge_artifact({ command:"write", entity:"{entity_kind}", entityId:"{record_id}", artifact:"plan-review", content:"<markdown>" })
|
|
58
87
|
Use the format:
|
|
59
88
|
**Verdict:** [Approved | Revision Required]
|
|
60
89
|
- If Revision Required: provide numbered, actionable items
|
|
61
90
|
- If Approved: provide any advisory notes
|
|
91
|
+
- See step 1 for iteration header and final-iteration Next Steps requirements.
|
|
62
92
|
|
|
63
|
-
|
|
93
|
+
5. Finalize:
|
|
64
94
|
- Transitions:
|
|
65
95
|
- **Task mode** — predecessor must be `planned`.
|
|
66
96
|
- Approved → `plan-approved`
|
|
@@ -70,7 +100,7 @@ deps:
|
|
|
70
100
|
- **Bug mode** — NO status write. The bug remains `in-progress`. The verdict signal travels through `summaries.review_plan.verdict` (read by `read-verdict.cjs § BUG_PHASE_VERDICT_SOURCE`), not `bug.status`. Writing `bug.status` here violates `meta-fix-bug.md § Iron Laws #2`.
|
|
71
101
|
- **Do NOT emit a phase event yourself.** The orchestrator owns event emission — it composes the canonical event from runtime telemetry (model, provider, tokens, wall times) plus the SUMMARY you write in the next step. Subagents that call `store-cli emit` for phase events hallucinate runtime facts (see Plan 11 / Slice 2). Write the SUMMARY and return.
|
|
72
102
|
|
|
73
|
-
|
|
103
|
+
6. Emit Summary Sidecar:
|
|
74
104
|
- Write the review-plan summary via forge_artifact: forge_artifact({ command:"write", entity:"{entity_kind}", entityId:"{record_id}", artifact:"review-plan-summary", content:"<JSON>" })
|
|
75
105
|
The JSON must have the following shape:
|
|
76
106
|
```json
|
|
@@ -41,38 +41,68 @@ The Supervisor performs a final validation of the implementation against the acc
|
|
|
41
41
|
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
0a. Pre-flight Gate Check:
|
|
45
45
|
- Resolve FORGE_ROOT (`node -e "console.log(require('./.forge/config.json').paths.forgeRoot)"`).
|
|
46
|
-
-
|
|
46
|
+
- **Entity-mode resolution:** read the kickoff arguments. `--task {id}` → `entity_kind = "task"`, `record_id = {id}`. `--bug {id}` → `entity_kind = "bug"`, `record_id = {id}`. All store-cli calls below substitute `{entity_kind}` and `{record_id}` for the literal "task"/{taskId} placeholders.
|
|
47
|
+
- Run: `node "$FORGE_ROOT/tools/preflight-gate.cjs" --phase validate --{entity_kind} {record_id}`
|
|
47
48
|
- Exit 1 (gate failed) → print stderr and HALT. Do not proceed; do not attempt to produce the artifact.
|
|
48
49
|
- Exit 2 (misconfiguration) → print stderr and HALT.
|
|
49
50
|
- Exit 0 → continue.
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
0b. Pipeline Step Guard (user-invoked state check):
|
|
53
|
+
- If `--force` is present in the invocation arguments, skip this step entirely.
|
|
54
|
+
- If `entity_kind == "bug"`, skip this step entirely (bug state is managed by meta-fix-bug.md).
|
|
55
|
+
- Read current task state:
|
|
56
|
+
`node "$FORGE_ROOT/tools/store-cli.cjs" read task {record_id} --json`
|
|
57
|
+
- Extract the `status` field from the JSON output.
|
|
58
|
+
- Allowed states for this phase: `implemented`, `review-approved`.
|
|
59
|
+
- If the current status is NOT in the allowed set:
|
|
60
|
+
Print the following and HALT (do not proceed):
|
|
61
|
+
`× Task {record_id} is in state '{status}' — /forge:implement must complete first. To run the full pipeline: /forge:run-task {record_id}`
|
|
62
|
+
|
|
63
|
+
1. Read Review Loop Context:
|
|
64
|
+
- Check the spawning prompt for a `### Review Loop Context` block.
|
|
65
|
+
- If present, extract:
|
|
66
|
+
- `Iteration: N of M` — current attempt number and the configured limit
|
|
67
|
+
- `Is final iteration: true/false`
|
|
68
|
+
- If absent (user-invoked, not orchestrated): treat as iteration 1 of M, where M is
|
|
69
|
+
read from `.forge/config.json` → `maxReviewIterations` (default 3 if field absent).
|
|
70
|
+
- Include `(iteration N of M)` in the opening line of the `VALIDATION_REPORT.md` artifact.
|
|
71
|
+
- If this is the final iteration (`N == M`) and the verdict is `Revision Required`,
|
|
72
|
+
append a `### Next Steps` section to the artifact showing:
|
|
73
|
+
```
|
|
74
|
+
### Next Steps
|
|
75
|
+
- Force-approve (bypass remaining reviews): `/forge:approve --force {task_id}`
|
|
76
|
+
- Increase iteration limit: edit `config.pipelines.{pipeline}.phases[validate].maxIterations`
|
|
77
|
+
- Restart from validation: `/forge:validate {task_id}`
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
2. Load Context:
|
|
52
81
|
- Read task prompt
|
|
53
82
|
- Read approved PLAN.md
|
|
54
83
|
- Read the implementation
|
|
55
84
|
- Read PROGRESS.md
|
|
56
85
|
|
|
57
|
-
|
|
86
|
+
3. Validation:
|
|
58
87
|
- Execute the "Acceptance Criteria" checklist from the plan
|
|
59
88
|
- Verify that all technical constraints (e.g., performance, security) are met
|
|
60
89
|
- Check for any regressions in related functionality
|
|
61
90
|
- When re-running the test suite, use the **resolved test command** from `commands.test` in `.forge/config.json` (i.e. `` `${commands.test}` ``, e.g. `.venv/bin/python -m pytest`). Template placeholder: {{TEST_COMMAND}}. Do NOT invoke bare `python` / `python3` — the project interpreter is rarely on `$PATH`.
|
|
62
91
|
|
|
63
|
-
|
|
92
|
+
4. Verdict:
|
|
64
93
|
- Write the validation report via:
|
|
65
94
|
`forge_artifact({ command:"write", entity:"{entity_kind}", entityId:"{record_id}", artifact:"validation-report", content:"<markdown>" })`
|
|
66
95
|
The markdown content must use the format:
|
|
67
96
|
**Verdict:** [Approved | Revision Required]
|
|
68
97
|
- If Revision Required: list the failed criteria and required fixes
|
|
69
98
|
- If Approved: confirm the task is validated
|
|
99
|
+
- See step 1 for iteration header and final-iteration Next Steps requirements.
|
|
70
100
|
|
|
71
|
-
|
|
101
|
+
5. Finalize:
|
|
72
102
|
- Update task status via `node "$FORGE_ROOT/tools/store-cli.cjs" update-status task {taskId} status review-approved` (if Approved) or `node "$FORGE_ROOT/tools/store-cli.cjs" update-status task {taskId} status code-revision-required` (if Revision Required)
|
|
73
103
|
- **Do NOT emit a phase event yourself.** The orchestrator owns event emission — it composes the canonical event from runtime telemetry (model, provider, tokens, wall times) plus the SUMMARY you write in the next step. Subagents that call `store-cli emit` for phase events hallucinate runtime facts (see Plan 11 / Slice 2). Write the SUMMARY and return.
|
|
74
104
|
|
|
75
|
-
|
|
105
|
+
6. Emit Summary Sidecar:
|
|
76
106
|
- Write the validation summary via:
|
|
77
107
|
`forge_artifact({ command:"write", entity:"{entity_kind}", entityId:"{record_id}", artifact:"validation-summary", content:"<JSON>" })`
|
|
78
108
|
The JSON content must have the following shape:
|
|
@@ -204,11 +204,6 @@
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
},
|
|
208
|
-
"mode": {
|
|
209
|
-
"type": "string",
|
|
210
|
-
"enum": ["full", "fast"],
|
|
211
|
-
"description": "Init mode. 'fast' means scaffolding was generated by /forge:init --fast (stubs present, heavy artifacts deferred to first use). 'full' means all artifacts are generated. Absent on pre-0.12 projects — treated as 'full' by all readers. Flipped to 'full' by /forge:regenerate (default) or /forge:materialize --all."
|
|
212
207
|
}
|
|
213
208
|
},
|
|
214
209
|
"additionalProperties": false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"generated": "2026-05-
|
|
2
|
+
"version": "1.0.2",
|
|
3
|
+
"generated": "2026-05-27",
|
|
4
4
|
"note": "Authoritative enum catalog. Source: build-enum-catalog.cjs. Regenerate via node forge/tools/build-manifest.cjs.",
|
|
5
5
|
"enums": {
|
|
6
6
|
"task.status": [
|
|
@@ -35,34 +35,30 @@
|
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
"commandNames": [
|
|
38
|
-
"forge:sprint
|
|
38
|
+
"forge:new-sprint",
|
|
39
39
|
"forge:plan",
|
|
40
40
|
"forge:review-plan",
|
|
41
41
|
"forge:implement",
|
|
42
42
|
"forge:review-code",
|
|
43
43
|
"forge:fix-bug",
|
|
44
|
-
"forge:sprint
|
|
44
|
+
"forge:plan-sprint",
|
|
45
45
|
"forge:run-task",
|
|
46
46
|
"forge:run-sprint",
|
|
47
|
-
"forge:
|
|
48
|
-
"forge:retrospective",
|
|
47
|
+
"forge:retro",
|
|
49
48
|
"forge:approve",
|
|
50
49
|
"forge:commit",
|
|
51
|
-
"forge:
|
|
52
|
-
"forge:quiz-agent",
|
|
50
|
+
"forge:check-agent",
|
|
53
51
|
"forge:validate",
|
|
54
52
|
"forge:init",
|
|
55
53
|
"forge:health",
|
|
56
|
-
"forge:
|
|
54
|
+
"forge:rebuild",
|
|
57
55
|
"forge:update",
|
|
58
56
|
"forge:add-task",
|
|
59
57
|
"forge:add-pipeline",
|
|
60
|
-
"forge:calibrate",
|
|
61
|
-
"forge:materialize",
|
|
62
58
|
"forge:remove",
|
|
63
59
|
"forge:report-bug",
|
|
64
|
-
"forge:
|
|
65
|
-
"forge:
|
|
60
|
+
"forge:search",
|
|
61
|
+
"forge:repair",
|
|
66
62
|
"forge:config",
|
|
67
63
|
"forge:ask",
|
|
68
64
|
"forge:store-custodian",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
3
|
-
"generatedAt": "2026-05-
|
|
2
|
+
"version": "1.0.2",
|
|
3
|
+
"generatedAt": "2026-05-27T08:59:39.257Z",
|
|
4
4
|
"generatedByTool": "build-manifest.cjs",
|
|
5
5
|
"namespaces": {
|
|
6
6
|
"personas": {
|
|
@@ -75,20 +75,18 @@
|
|
|
75
75
|
"prefixed": true,
|
|
76
76
|
"files": [
|
|
77
77
|
"approve.md",
|
|
78
|
-
"
|
|
78
|
+
"check-agent.md",
|
|
79
79
|
"commit.md",
|
|
80
|
-
"enhance.md",
|
|
81
80
|
"fix-bug.md",
|
|
82
81
|
"implement.md",
|
|
82
|
+
"new-sprint.md",
|
|
83
|
+
"plan-sprint.md",
|
|
83
84
|
"plan.md",
|
|
84
|
-
"
|
|
85
|
-
"retrospective.md",
|
|
85
|
+
"retro.md",
|
|
86
86
|
"review-code.md",
|
|
87
87
|
"review-plan.md",
|
|
88
88
|
"run-sprint.md",
|
|
89
89
|
"run-task.md",
|
|
90
|
-
"sprint-intake.md",
|
|
91
|
-
"sprint-plan.md",
|
|
92
90
|
"validate.md"
|
|
93
91
|
]
|
|
94
92
|
},
|