@warpgogol/forge 9.1.1 → 9.3.0
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 +56 -0
- package/bin/cli.ts +5 -3
- package/dist/bin/cli.js +5 -3
- package/dist/bin/cli.js.map +1 -1
- package/dist/os/adr/handlers/implement-stamp.d.ts +6 -0
- package/dist/os/adr/handlers/implement-stamp.d.ts.map +1 -1
- package/dist/os/adr/handlers/implement-stamp.js +23 -15
- package/dist/os/adr/handlers/implement-stamp.js.map +1 -1
- package/dist/os/checks/handlers/counters-journal.d.ts.map +1 -1
- package/dist/os/checks/handlers/counters-journal.js +9 -1
- package/dist/os/checks/handlers/counters-journal.js.map +1 -1
- package/dist/os/core/core.module.d.ts.map +1 -1
- package/dist/os/core/core.module.js +32 -39
- package/dist/os/core/core.module.js.map +1 -1
- package/dist/os/core/lock-holder.d.ts +32 -0
- package/dist/os/core/lock-holder.d.ts.map +1 -0
- package/dist/os/core/lock-holder.js +81 -0
- package/dist/os/core/lock-holder.js.map +1 -0
- package/dist/os/core/stamp-lock.d.ts +30 -0
- package/dist/os/core/stamp-lock.d.ts.map +1 -0
- package/dist/os/core/stamp-lock.js +112 -0
- package/dist/os/core/stamp-lock.js.map +1 -0
- package/dist/os/flow/branch-name.d.ts +56 -0
- package/dist/os/flow/branch-name.d.ts.map +1 -0
- package/dist/os/flow/branch-name.js +108 -0
- package/dist/os/flow/branch-name.js.map +1 -0
- package/dist/os/flow/digest.d.ts +92 -0
- package/dist/os/flow/digest.d.ts.map +1 -0
- package/dist/os/flow/digest.js +663 -0
- package/dist/os/flow/digest.js.map +1 -0
- package/dist/os/flow/flow.module.d.ts +3 -0
- package/dist/os/flow/flow.module.d.ts.map +1 -0
- package/dist/os/flow/flow.module.js +771 -0
- package/dist/os/flow/flow.module.js.map +1 -0
- package/dist/os/flow/git.d.ts +68 -0
- package/dist/os/flow/git.d.ts.map +1 -0
- package/dist/os/flow/git.js +257 -0
- package/dist/os/flow/git.js.map +1 -0
- package/dist/os/flow/guard-files.d.ts +50 -0
- package/dist/os/flow/guard-files.d.ts.map +1 -0
- package/dist/os/flow/guard-files.js +147 -0
- package/dist/os/flow/guard-files.js.map +1 -0
- package/dist/os/flow/handlers/flow-backmerge.d.ts +27 -0
- package/dist/os/flow/handlers/flow-backmerge.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-backmerge.js +332 -0
- package/dist/os/flow/handlers/flow-backmerge.js.map +1 -0
- package/dist/os/flow/handlers/flow-check.d.ts +42 -0
- package/dist/os/flow/handlers/flow-check.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-check.js +347 -0
- package/dist/os/flow/handlers/flow-check.js.map +1 -0
- package/dist/os/flow/handlers/flow-cut.d.ts +71 -0
- package/dist/os/flow/handlers/flow-cut.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-cut.js +722 -0
- package/dist/os/flow/handlers/flow-cut.js.map +1 -0
- package/dist/os/flow/handlers/flow-digest.d.ts +5 -0
- package/dist/os/flow/handlers/flow-digest.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-digest.js +116 -0
- package/dist/os/flow/handlers/flow-digest.js.map +1 -0
- package/dist/os/flow/handlers/flow-discard.d.ts +22 -0
- package/dist/os/flow/handlers/flow-discard.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-discard.js +204 -0
- package/dist/os/flow/handlers/flow-discard.js.map +1 -0
- package/dist/os/flow/handlers/flow-fix.d.ts +47 -0
- package/dist/os/flow/handlers/flow-fix.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-fix.js +532 -0
- package/dist/os/flow/handlers/flow-fix.js.map +1 -0
- package/dist/os/flow/handlers/flow-hold.d.ts +32 -0
- package/dist/os/flow/handlers/flow-hold.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-hold.js +359 -0
- package/dist/os/flow/handlers/flow-hold.js.map +1 -0
- package/dist/os/flow/handlers/flow-install.d.ts +92 -0
- package/dist/os/flow/handlers/flow-install.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-install.js +883 -0
- package/dist/os/flow/handlers/flow-install.js.map +1 -0
- package/dist/os/flow/handlers/flow-integrate.d.ts +35 -0
- package/dist/os/flow/handlers/flow-integrate.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-integrate.js +436 -0
- package/dist/os/flow/handlers/flow-integrate.js.map +1 -0
- package/dist/os/flow/handlers/flow-open.d.ts +63 -0
- package/dist/os/flow/handlers/flow-open.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-open.js +294 -0
- package/dist/os/flow/handlers/flow-open.js.map +1 -0
- package/dist/os/flow/handlers/flow-publication-retire.d.ts +17 -0
- package/dist/os/flow/handlers/flow-publication-retire.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-publication-retire.js +132 -0
- package/dist/os/flow/handlers/flow-publication-retire.js.map +1 -0
- package/dist/os/flow/handlers/flow-push.d.ts +29 -0
- package/dist/os/flow/handlers/flow-push.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-push.js +397 -0
- package/dist/os/flow/handlers/flow-push.js.map +1 -0
- package/dist/os/flow/handlers/flow-status.d.ts +65 -0
- package/dist/os/flow/handlers/flow-status.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-status.js +193 -0
- package/dist/os/flow/handlers/flow-status.js.map +1 -0
- package/dist/os/flow/handlers/flow-unhold.d.ts +20 -0
- package/dist/os/flow/handlers/flow-unhold.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-unhold.js +158 -0
- package/dist/os/flow/handlers/flow-unhold.js.map +1 -0
- package/dist/os/flow/handlers/flow-version.d.ts +39 -0
- package/dist/os/flow/handlers/flow-version.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-version.js +122 -0
- package/dist/os/flow/handlers/flow-version.js.map +1 -0
- package/dist/os/flow/index.d.ts +30 -0
- package/dist/os/flow/index.d.ts.map +1 -0
- package/dist/os/flow/index.js +83 -0
- package/dist/os/flow/index.js.map +1 -0
- package/dist/os/flow/line-version.d.ts +23 -0
- package/dist/os/flow/line-version.d.ts.map +1 -0
- package/dist/os/flow/line-version.js +83 -0
- package/dist/os/flow/line-version.js.map +1 -0
- package/dist/os/flow/locks.d.ts +39 -0
- package/dist/os/flow/locks.d.ts.map +1 -0
- package/dist/os/flow/locks.js +177 -0
- package/dist/os/flow/locks.js.map +1 -0
- package/dist/os/flow/markers.d.ts +49 -0
- package/dist/os/flow/markers.d.ts.map +1 -0
- package/dist/os/flow/markers.js +112 -0
- package/dist/os/flow/markers.js.map +1 -0
- package/dist/os/flow/publication-order.d.ts +25 -0
- package/dist/os/flow/publication-order.d.ts.map +1 -0
- package/dist/os/flow/publication-order.js +75 -0
- package/dist/os/flow/publication-order.js.map +1 -0
- package/dist/os/flow/publish.d.ts +46 -0
- package/dist/os/flow/publish.d.ts.map +1 -0
- package/dist/os/flow/publish.js +209 -0
- package/dist/os/flow/publish.js.map +1 -0
- package/dist/os/flow/registry.d.ts +142 -0
- package/dist/os/flow/registry.d.ts.map +1 -0
- package/dist/os/flow/registry.js +199 -0
- package/dist/os/flow/registry.js.map +1 -0
- package/dist/os/flow/release-level.d.ts +23 -0
- package/dist/os/flow/release-level.d.ts.map +1 -0
- package/dist/os/flow/release-level.js +102 -0
- package/dist/os/flow/release-level.js.map +1 -0
- package/dist/os/flow/release-lines.d.ts +25 -0
- package/dist/os/flow/release-lines.d.ts.map +1 -0
- package/dist/os/flow/release-lines.js +172 -0
- package/dist/os/flow/release-lines.js.map +1 -0
- package/dist/os/flow/release-tags.d.ts +73 -0
- package/dist/os/flow/release-tags.d.ts.map +1 -0
- package/dist/os/flow/release-tags.js +167 -0
- package/dist/os/flow/release-tags.js.map +1 -0
- package/dist/os/flow/repo-kind.d.ts +41 -0
- package/dist/os/flow/repo-kind.d.ts.map +1 -0
- package/dist/os/flow/repo-kind.js +92 -0
- package/dist/os/flow/repo-kind.js.map +1 -0
- package/dist/os/flow/scripts.d.ts +20 -0
- package/dist/os/flow/scripts.d.ts.map +1 -0
- package/dist/os/flow/scripts.js +50 -0
- package/dist/os/flow/scripts.js.map +1 -0
- package/dist/os/flow/semver.d.ts +21 -0
- package/dist/os/flow/semver.d.ts.map +1 -0
- package/dist/os/flow/semver.js +73 -0
- package/dist/os/flow/semver.js.map +1 -0
- package/dist/os/flow/task-files.d.ts +11 -0
- package/dist/os/flow/task-files.d.ts.map +1 -0
- package/dist/os/flow/task-files.js +51 -0
- package/dist/os/flow/task-files.js.map +1 -0
- package/dist/os/flow/tests/helpers.d.ts +55 -0
- package/dist/os/flow/tests/helpers.d.ts.map +1 -0
- package/dist/os/flow/tests/helpers.js +193 -0
- package/dist/os/flow/tests/helpers.js.map +1 -0
- package/dist/os/flow/version-files.d.ts +21 -0
- package/dist/os/flow/version-files.d.ts.map +1 -0
- package/dist/os/flow/version-files.js +94 -0
- package/dist/os/flow/version-files.js.map +1 -0
- package/dist/os/flow/worktree-path.d.ts +31 -0
- package/dist/os/flow/worktree-path.d.ts.map +1 -0
- package/dist/os/flow/worktree-path.js +80 -0
- package/dist/os/flow/worktree-path.js.map +1 -0
- package/dist/os/mission/handlers/archive.d.ts.map +1 -1
- package/dist/os/mission/handlers/archive.js +44 -51
- package/dist/os/mission/handlers/archive.js.map +1 -1
- package/dist/os/mission/lockfile.d.ts +21 -0
- package/dist/os/mission/lockfile.d.ts.map +1 -0
- package/dist/os/mission/lockfile.js +76 -0
- package/dist/os/mission/lockfile.js.map +1 -0
- package/dist/os/mission/mission.module.d.ts.map +1 -1
- package/dist/os/mission/mission.module.js +2 -1
- package/dist/os/mission/mission.module.js.map +1 -1
- package/dist/os/program/handlers/seal.d.ts.map +1 -1
- package/dist/os/program/handlers/seal.js +1 -1
- package/dist/os/program/handlers/seal.js.map +1 -1
- package/dist/os/program/handlers/validate.d.ts.map +1 -1
- package/dist/os/program/handlers/validate.js +1 -1
- package/dist/os/program/handlers/validate.js.map +1 -1
- package/dist/os/program/program.module.d.ts.map +1 -1
- package/dist/os/program/program.module.js +2 -1
- package/dist/os/program/program.module.js.map +1 -1
- package/dist/os/program/schemas.d.ts +4 -6
- package/dist/os/program/schemas.d.ts.map +1 -1
- package/dist/os/program/schemas.js +16 -6
- package/dist/os/program/schemas.js.map +1 -1
- package/dist/os/program/state.d.ts +0 -1
- package/dist/os/program/state.d.ts.map +1 -1
- package/dist/os/program/state.js +1 -7
- package/dist/os/program/state.js.map +1 -1
- package/dist/os/rfc/acceptance.d.ts +21 -0
- package/dist/os/rfc/acceptance.d.ts.map +1 -1
- package/dist/os/rfc/acceptance.js +62 -13
- package/dist/os/rfc/acceptance.js.map +1 -1
- package/dist/os/rfc/frontmatter-io.d.ts +19 -0
- package/dist/os/rfc/frontmatter-io.d.ts.map +1 -1
- package/dist/os/rfc/frontmatter-io.js +65 -12
- package/dist/os/rfc/frontmatter-io.js.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.d.ts +6 -0
- package/dist/os/rfc/handlers/implement-stamp.d.ts.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js +24 -19
- package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.d.ts +2 -5
- package/dist/os/rfc/handlers/validate-rules.d.ts.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.js +10 -8
- package/dist/os/rfc/handlers/validate-rules.js.map +1 -1
- package/dist/os/rfc/handlers/validate.d.ts.map +1 -1
- package/dist/os/rfc/handlers/validate.js +15 -5
- package/dist/os/rfc/handlers/validate.js.map +1 -1
- package/dist/os/rfc/index.d.ts +2 -2
- package/dist/os/rfc/index.d.ts.map +1 -1
- package/dist/os/rfc/index.js +5 -2
- package/dist/os/rfc/index.js.map +1 -1
- package/dist/os/rfc/probe-batch.d.ts +71 -0
- package/dist/os/rfc/probe-batch.d.ts.map +1 -0
- package/dist/os/rfc/probe-batch.js +251 -0
- package/dist/os/rfc/probe-batch.js.map +1 -0
- package/dist/os/rfc/rfc.module.d.ts.map +1 -1
- package/dist/os/rfc/rfc.module.js +16 -2
- package/dist/os/rfc/rfc.module.js.map +1 -1
- package/dist/os/rfc/verification-evidence.d.ts.map +1 -1
- package/dist/os/rfc/verification-evidence.js +21 -10
- package/dist/os/rfc/verification-evidence.js.map +1 -1
- package/dist/os/rfc/verification-refresh.d.ts.map +1 -1
- package/dist/os/rfc/verification-refresh.js +20 -13
- package/dist/os/rfc/verification-refresh.js.map +1 -1
- package/dist/os/system/handlers/outbox-validate.d.ts +8 -0
- package/dist/os/system/handlers/outbox-validate.d.ts.map +1 -0
- package/dist/os/system/handlers/outbox-validate.js +102 -0
- package/dist/os/system/handlers/outbox-validate.js.map +1 -0
- package/dist/os/system/handlers/system-map-validate.d.ts +13 -0
- package/dist/os/system/handlers/system-map-validate.d.ts.map +1 -0
- package/dist/os/system/handlers/system-map-validate.js +78 -0
- package/dist/os/system/handlers/system-map-validate.js.map +1 -0
- package/dist/os/system/handlers/system-outbox-scan.d.ts +10 -0
- package/dist/os/system/handlers/system-outbox-scan.d.ts.map +1 -0
- package/dist/os/system/handlers/system-outbox-scan.js +195 -0
- package/dist/os/system/handlers/system-outbox-scan.js.map +1 -0
- package/dist/os/system/handlers/system-task-collect.d.ts +13 -0
- package/dist/os/system/handlers/system-task-collect.d.ts.map +1 -0
- package/dist/os/system/handlers/system-task-collect.js +238 -0
- package/dist/os/system/handlers/system-task-collect.js.map +1 -0
- package/dist/os/system/handlers/system-task-create.d.ts +32 -0
- package/dist/os/system/handlers/system-task-create.d.ts.map +1 -0
- package/dist/os/system/handlers/system-task-create.js +216 -0
- package/dist/os/system/handlers/system-task-create.js.map +1 -0
- package/dist/os/system/handlers/system-task-dispatch.d.ts +14 -0
- package/dist/os/system/handlers/system-task-dispatch.d.ts.map +1 -0
- package/dist/os/system/handlers/system-task-dispatch.js +290 -0
- package/dist/os/system/handlers/system-task-dispatch.js.map +1 -0
- package/dist/os/system/handlers/system-task-move.d.ts +12 -0
- package/dist/os/system/handlers/system-task-move.d.ts.map +1 -0
- package/dist/os/system/handlers/system-task-move.js +217 -0
- package/dist/os/system/handlers/system-task-move.js.map +1 -0
- package/dist/os/system/handlers/system-task-status.d.ts +20 -0
- package/dist/os/system/handlers/system-task-status.d.ts.map +1 -0
- package/dist/os/system/handlers/system-task-status.js +139 -0
- package/dist/os/system/handlers/system-task-status.js.map +1 -0
- package/dist/os/system/handlers/system-versionset-record.d.ts +12 -0
- package/dist/os/system/handlers/system-versionset-record.d.ts.map +1 -0
- package/dist/os/system/handlers/system-versionset-record.js +332 -0
- package/dist/os/system/handlers/system-versionset-record.js.map +1 -0
- package/dist/os/system/index.d.ts +6 -0
- package/dist/os/system/index.d.ts.map +1 -0
- package/dist/os/system/index.js +18 -0
- package/dist/os/system/index.js.map +1 -0
- package/dist/os/system/outbox-schema.d.ts +30 -0
- package/dist/os/system/outbox-schema.d.ts.map +1 -0
- package/dist/os/system/outbox-schema.js +29 -0
- package/dist/os/system/outbox-schema.js.map +1 -0
- package/dist/os/system/repo.d.ts +64 -0
- package/dist/os/system/repo.d.ts.map +1 -0
- package/dist/os/system/repo.js +364 -0
- package/dist/os/system/repo.js.map +1 -0
- package/dist/os/system/scenario-schemas.d.ts +26 -0
- package/dist/os/system/scenario-schemas.d.ts.map +1 -0
- package/dist/os/system/scenario-schemas.js +53 -0
- package/dist/os/system/scenario-schemas.js.map +1 -0
- package/dist/os/system/schemas.d.ts +63 -0
- package/dist/os/system/schemas.d.ts.map +1 -0
- package/dist/os/system/schemas.js +83 -0
- package/dist/os/system/schemas.js.map +1 -0
- package/dist/os/system/system.module.d.ts +3 -0
- package/dist/os/system/system.module.d.ts.map +1 -0
- package/dist/os/system/system.module.js +429 -0
- package/dist/os/system/system.module.js.map +1 -0
- package/dist/os/system/task-schemas.d.ts +108 -0
- package/dist/os/system/task-schemas.d.ts.map +1 -0
- package/dist/os/system/task-schemas.js +152 -0
- package/dist/os/system/task-schemas.js.map +1 -0
- package/dist/os/system/task-store.d.ts +41 -0
- package/dist/os/system/task-store.d.ts.map +1 -0
- package/dist/os/system/task-store.js +142 -0
- package/dist/os/system/task-store.js.map +1 -0
- package/dist/os/system/tests/helpers.d.ts +30 -0
- package/dist/os/system/tests/helpers.d.ts.map +1 -0
- package/dist/os/system/tests/helpers.js +178 -0
- package/dist/os/system/tests/helpers.js.map +1 -0
- package/dist/os/werkstatt/handlers/werkstatt-lock-recover.d.ts.map +1 -1
- package/dist/os/werkstatt/handlers/werkstatt-lock-recover.js +21 -7
- package/dist/os/werkstatt/handlers/werkstatt-lock-recover.js.map +1 -1
- package/dist/os/werkstatt/handlers/werkstatt-operation-validate.d.ts.map +1 -1
- package/dist/os/werkstatt/handlers/werkstatt-operation-validate.js +1 -1
- package/dist/os/werkstatt/handlers/werkstatt-operation-validate.js.map +1 -1
- package/dist/os/werkstatt/werkstatt.module.d.ts.map +1 -1
- package/dist/os/werkstatt/werkstatt.module.js +2 -82
- package/dist/os/werkstatt/werkstatt.module.js.map +1 -1
- package/dist/src/config/forge-config.d.ts +0 -3
- package/dist/src/config/forge-config.d.ts.map +1 -1
- package/dist/src/config/forge-config.js +2 -4
- package/dist/src/config/forge-config.js.map +1 -1
- package/dist/src/index.d.ts +6 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +7 -4
- package/dist/src/index.js.map +1 -1
- package/dist/src/onboarding/agents-generate.d.ts.map +1 -1
- package/dist/src/onboarding/agents-generate.js +49 -4
- package/dist/src/onboarding/agents-generate.js.map +1 -1
- package/dist/src/onboarding/create.d.ts +13 -0
- package/dist/src/onboarding/create.d.ts.map +1 -1
- package/dist/src/onboarding/create.js +95 -9
- package/dist/src/onboarding/create.js.map +1 -1
- package/dist/src/onboarding/doctor.d.ts.map +1 -1
- package/dist/src/onboarding/doctor.js +2 -47
- package/dist/src/onboarding/doctor.js.map +1 -1
- package/dist/src/onboarding/upgrade.d.ts +5 -0
- package/dist/src/onboarding/upgrade.d.ts.map +1 -1
- package/dist/src/onboarding/upgrade.js +70 -1
- package/dist/src/onboarding/upgrade.js.map +1 -1
- package/dist/src/types.d.ts +9 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +2 -2
- package/docs/branch-model.md +98 -0
- package/docs/maintainers/publishing.md +10 -8
- package/docs/reference/cli.md +0 -3
- package/os/adr/handlers/implement-stamp-lock.test.ts +90 -0
- package/os/adr/handlers/implement-stamp.ts +29 -20
- package/os/checks/handlers/counters-journal.test.ts +10 -0
- package/os/checks/handlers/counters-journal.ts +8 -1
- package/os/core/core.module.ts +38 -39
- package/os/core/lock-holder.ts +88 -0
- package/os/core/stamp-lock.ts +142 -0
- package/os/flow/assets/flow-guard.sh +176 -0
- package/os/flow/branch-name.ts +139 -0
- package/os/flow/digest.ts +803 -0
- package/os/flow/flow.module.ts +796 -0
- package/os/flow/git.ts +342 -0
- package/os/flow/guard-files.ts +172 -0
- package/os/flow/handlers/flow-backmerge.ts +488 -0
- package/os/flow/handlers/flow-check.ts +450 -0
- package/os/flow/handlers/flow-cut.ts +1025 -0
- package/os/flow/handlers/flow-digest.ts +130 -0
- package/os/flow/handlers/flow-discard.ts +310 -0
- package/os/flow/handlers/flow-fix.ts +703 -0
- package/os/flow/handlers/flow-hold.ts +500 -0
- package/os/flow/handlers/flow-install.ts +1185 -0
- package/os/flow/handlers/flow-integrate.ts +623 -0
- package/os/flow/handlers/flow-open.ts +447 -0
- package/os/flow/handlers/flow-publication-retire.ts +156 -0
- package/os/flow/handlers/flow-push.ts +488 -0
- package/os/flow/handlers/flow-status.ts +283 -0
- package/os/flow/handlers/flow-unhold.ts +220 -0
- package/os/flow/handlers/flow-version.ts +196 -0
- package/os/flow/index.ts +102 -0
- package/os/flow/line-version.ts +113 -0
- package/os/flow/locks.ts +227 -0
- package/os/flow/markers.ts +135 -0
- package/os/flow/publication-order.ts +99 -0
- package/os/flow/publish.ts +272 -0
- package/os/flow/registry.ts +269 -0
- package/os/flow/release-level.ts +139 -0
- package/os/flow/release-lines.ts +208 -0
- package/os/flow/release-tags.ts +232 -0
- package/os/flow/repo-kind.ts +117 -0
- package/os/flow/scripts.ts +75 -0
- package/os/flow/semver.ts +82 -0
- package/os/flow/task-files.ts +59 -0
- package/os/flow/tests/branch-name.test.ts +136 -0
- package/os/flow/tests/fixtures/branch-names.yaml +56 -0
- package/os/flow/tests/flow-backmerge.test.ts +267 -0
- package/os/flow/tests/flow-check-version.test.ts +138 -0
- package/os/flow/tests/flow-check.test.ts +213 -0
- package/os/flow/tests/flow-cut-prepare.test.ts +298 -0
- package/os/flow/tests/flow-cut.rerun.test.ts +95 -0
- package/os/flow/tests/flow-cut.test.ts +323 -0
- package/os/flow/tests/flow-digest.test.ts +313 -0
- package/os/flow/tests/flow-discard.test.ts +220 -0
- package/os/flow/tests/flow-fix.test.ts +359 -0
- package/os/flow/tests/flow-guard-merge.test.ts +100 -0
- package/os/flow/tests/flow-guard-parity.test.ts +115 -0
- package/os/flow/tests/flow-guard-push.test.ts +100 -0
- package/os/flow/tests/flow-guard.test.ts +135 -0
- package/os/flow/tests/flow-hold.test.ts +465 -0
- package/os/flow/tests/flow-install-baseline.rerun.test.ts +73 -0
- package/os/flow/tests/flow-install-baseline.test.ts +164 -0
- package/os/flow/tests/flow-install-markers.test.ts +161 -0
- package/os/flow/tests/flow-install.rerun.test.ts +212 -0
- package/os/flow/tests/flow-install.test.ts +330 -0
- package/os/flow/tests/flow-integrate.rerun.test.ts +92 -0
- package/os/flow/tests/flow-integrate.test.ts +229 -0
- package/os/flow/tests/flow-open.test.ts +200 -0
- package/os/flow/tests/flow-publication-retire.test.ts +191 -0
- package/os/flow/tests/flow-push-publish.test.ts +282 -0
- package/os/flow/tests/flow-push-supersede.test.ts +221 -0
- package/os/flow/tests/flow-push.test.ts +160 -0
- package/os/flow/tests/flow-stale.test.ts +136 -0
- package/os/flow/tests/flow-status.test.ts +93 -0
- package/os/flow/tests/flow-task-files.test.ts +59 -0
- package/os/flow/tests/flow-version-level.test.ts +116 -0
- package/os/flow/tests/flow-version.test.ts +169 -0
- package/os/flow/tests/helpers.ts +239 -0
- package/os/flow/tests/is-flow-adopted.test.ts +71 -0
- package/os/flow/tests/locks.test.ts +219 -0
- package/os/flow/tests/publication-order.test.ts +102 -0
- package/os/flow/tests/registry.test.ts +150 -0
- package/os/flow/tests/repository-line-version.test.ts +100 -0
- package/os/flow/tests/scripts.test.ts +97 -0
- package/os/flow/tests/state-roots.test.ts +127 -0
- package/os/flow/tests/version-files.test.ts +145 -0
- package/os/flow/version-files.ts +115 -0
- package/os/flow/worktree-path.ts +107 -0
- package/os/mission/handlers/archive.test.ts +108 -36
- package/os/mission/handlers/archive.ts +46 -51
- package/os/mission/lockfile.ts +84 -0
- package/os/mission/mission.module.ts +2 -1
- package/os/program/handlers/seal.ts +1 -1
- package/os/program/handlers/validate.ts +1 -1
- package/os/program/program.module.ts +2 -1
- package/os/program/schemas.ts +51 -34
- package/os/program/state.ts +1 -9
- package/os/rfc/acceptance.ts +84 -19
- package/os/rfc/frontmatter-io.ts +78 -12
- package/os/rfc/handlers/implement-stamp-lock.test.ts +133 -0
- package/os/rfc/handlers/implement-stamp-stale.test.ts +22 -0
- package/os/rfc/handlers/implement-stamp.ts +30 -24
- package/os/rfc/handlers/validate-rules.test.ts +9 -6
- package/os/rfc/handlers/validate-rules.ts +12 -10
- package/os/rfc/handlers/validate.ts +17 -5
- package/os/rfc/index.ts +13 -1
- package/os/rfc/probe-batch.ts +329 -0
- package/os/rfc/rfc.module.ts +19 -2
- package/os/rfc/verification-emit-check.test.ts +22 -0
- package/os/rfc/verification-emit-freshness.test.ts +22 -0
- package/os/rfc/verification-emit.test.ts +22 -0
- package/os/rfc/verification-evidence.ts +21 -16
- package/os/rfc/verification-refresh.test.ts +22 -0
- package/os/rfc/verification-refresh.ts +20 -18
- package/os/rfc/verifier/rfc-1333/imp12-binding.acceptance.test.ts +9 -0
- package/os/system/handlers/outbox-validate.ts +120 -0
- package/os/system/handlers/system-map-validate.ts +107 -0
- package/os/system/handlers/system-outbox-scan.ts +320 -0
- package/os/system/handlers/system-task-collect.ts +305 -0
- package/os/system/handlers/system-task-create.ts +271 -0
- package/os/system/handlers/system-task-dispatch.ts +387 -0
- package/os/system/handlers/system-task-move.ts +353 -0
- package/os/system/handlers/system-task-status.ts +176 -0
- package/os/system/handlers/system-versionset-record.ts +476 -0
- package/os/system/index.ts +47 -0
- package/os/system/outbox-schema.ts +47 -0
- package/os/system/repo.ts +451 -0
- package/os/system/scenario-schemas.ts +62 -0
- package/os/system/schemas.ts +102 -0
- package/os/system/system.module.ts +449 -0
- package/os/system/task-schemas.ts +190 -0
- package/os/system/task-store.ts +184 -0
- package/os/system/tests/helpers.ts +189 -0
- package/os/system/tests/outbox-validate.test.ts +92 -0
- package/os/system/tests/system-map-validate.test.ts +321 -0
- package/os/system/tests/system-outbox-scan.test.ts +273 -0
- package/os/system/tests/system-profile.test.ts +90 -0
- package/os/system/tests/system-task-collect.test.ts +293 -0
- package/os/system/tests/system-task-dispatch.test.ts +279 -0
- package/os/system/tests/system-task-status.test.ts +153 -0
- package/os/system/tests/system-task.test.ts +330 -0
- package/os/system/tests/system-versionset.test.ts +314 -0
- package/os/werkstatt/handlers/werkstatt-lock-recover.ts +22 -5
- package/os/werkstatt/handlers/werkstatt-operation-validate.ts +1 -1
- package/os/werkstatt/werkstatt.module.ts +2 -85
- package/package.json +49 -1
- package/profiles/forge-shell.yaml +22 -10
- package/profiles/godot-game.yaml +24 -13
- package/profiles/knowledge.yaml +19 -0
- package/profiles/phaser-game.yaml +25 -13
- package/profiles/site-workshop.yaml +27 -10
- package/profiles/system.yaml +650 -0
- package/profiles/typescript.yaml +26 -9
- package/skills/fo/fo-outbox/SKILL.md +71 -0
- package/skills/fo/fo-session-retro/SKILL.md +18 -7
- package/skills/fo/fo-step-commit/SKILL.md +2 -1
- package/skills/fo/fo-system-dispatch/SKILL.md +65 -0
- package/skills/fo/fo-task-run/SKILL.md +75 -0
- package/src/config/forge-config.ts +2 -6
- package/src/index.ts +19 -4
- package/src/onboarding/agents-generate.ts +49 -5
- package/src/onboarding/create.ts +101 -9
- package/src/onboarding/doctor.ts +2 -51
- package/src/onboarding/upgrade.ts +86 -1
- package/src/tests/agents-generate-flow.test.ts +132 -0
- package/src/tests/create-flow.test.ts +114 -0
- package/src/tests/create.test.ts +22 -21
- package/src/tests/doctor-autonomy.test.ts +2 -1
- package/src/tests/fixtures/agents-generate-business-before.txt +6 -0
- package/src/tests/implement-stamp.test.ts +26 -3
- package/src/tests/profile-flow-hooks.test.ts +77 -0
- package/src/tests/profile-schema.test.ts +2 -1
- package/src/tests/program-schemas.test.ts +66 -6
- package/src/tests/program-spec-node.test.ts +1 -5
- package/src/tests/rfc-evidence-sync.test.ts +22 -0
- package/src/tests/rfc-implement-stamp-governance.test.ts +25 -1
- package/src/tests/rfc-verification-verdict-ingest.test.ts +22 -0
- package/src/tests/upgrade-flow.test.ts +174 -0
- package/src/types.ts +11 -2
- package/dist/os/werkstatt/handlers/session-close.d.ts +0 -13
- package/dist/os/werkstatt/handlers/session-close.d.ts.map +0 -1
- package/dist/os/werkstatt/handlers/session-close.js +0 -56
- package/dist/os/werkstatt/handlers/session-close.js.map +0 -1
- package/dist/os/werkstatt/handlers/session-engine.d.ts +0 -3
- package/dist/os/werkstatt/handlers/session-engine.d.ts.map +0 -1
- package/dist/os/werkstatt/handlers/session-engine.js +0 -28
- package/dist/os/werkstatt/handlers/session-engine.js.map +0 -1
- package/dist/os/werkstatt/handlers/session-open.d.ts +0 -10
- package/dist/os/werkstatt/handlers/session-open.d.ts.map +0 -1
- package/dist/os/werkstatt/handlers/session-open.js +0 -46
- package/dist/os/werkstatt/handlers/session-open.js.map +0 -1
- package/dist/os/werkstatt/handlers/session-status.d.ts +0 -9
- package/dist/os/werkstatt/handlers/session-status.d.ts.map +0 -1
- package/dist/os/werkstatt/handlers/session-status.js +0 -34
- package/dist/os/werkstatt/handlers/session-status.js.map +0 -1
- package/os/werkstatt/handlers/session-close.ts +0 -82
- package/os/werkstatt/handlers/session-engine.ts +0 -34
- package/os/werkstatt/handlers/session-open.ts +0 -68
- package/os/werkstatt/handlers/session-status.ts +0 -55
package/profiles/typescript.yaml
CHANGED
|
@@ -144,13 +144,6 @@ workspace:
|
|
|
144
144
|
- path: .gitattributes
|
|
145
145
|
content: |
|
|
146
146
|
# No LFS patterns for this stack
|
|
147
|
-
- path: hooks/pre-commit
|
|
148
|
-
content: |
|
|
149
|
-
#!/bin/sh
|
|
150
|
-
# Platform-scope pre-commit guard
|
|
151
|
-
# Runs forge validation before commits
|
|
152
|
-
echo "Pre-commit: running platform checks..."
|
|
153
|
-
pnpm exec forge run forge.validate || exit 1
|
|
154
147
|
- path: scripts/git-guard.sh
|
|
155
148
|
content: |
|
|
156
149
|
#!/bin/bash
|
|
@@ -539,8 +532,8 @@ workspace:
|
|
|
539
532
|
### 4. Verify the workshop
|
|
540
533
|
|
|
541
534
|
```sh
|
|
542
|
-
pnpm exec forge
|
|
543
|
-
pnpm exec forge
|
|
535
|
+
pnpm exec forge doctor
|
|
536
|
+
pnpm exec forge validate
|
|
544
537
|
```
|
|
545
538
|
|
|
546
539
|
## Stack
|
|
@@ -548,5 +541,29 @@ workspace:
|
|
|
548
541
|
- Engine: @warpgogol/forge
|
|
549
542
|
- Plugin: @warpgogol/werkstatt-typescript
|
|
550
543
|
- Stack profile: typescript
|
|
544
|
+
- path: hooks/worktree-setup.sh
|
|
545
|
+
content: |
|
|
546
|
+
#!/bin/sh
|
|
547
|
+
# worktree-setup for a flow session worktree (RFC-1487, RFC-1500).
|
|
548
|
+
# cwd: the new worktree; FLOW_PRIMARY is the primary checkout.
|
|
549
|
+
set -eu
|
|
550
|
+
for env_file in "$FLOW_PRIMARY"/.env "$FLOW_PRIMARY"/.env.*; do
|
|
551
|
+
case "$env_file" in *.example) continue ;; esac
|
|
552
|
+
[ -f "$env_file" ] || continue
|
|
553
|
+
cp "$env_file" "./$(basename "$env_file")"
|
|
554
|
+
done
|
|
555
|
+
pnpm install --frozen-lockfile
|
|
556
|
+
- path: hooks/integration-gate.sh
|
|
557
|
+
content: |
|
|
558
|
+
#!/bin/sh
|
|
559
|
+
# Integration gate for flow.integrate (RFC-1487, RFC-1500).
|
|
560
|
+
# cwd: the worktree under judgment; non-zero exit refuses.
|
|
561
|
+
set -eu
|
|
562
|
+
pnpm install --frozen-lockfile
|
|
563
|
+
for script in typecheck lint test; do
|
|
564
|
+
if node -e "process.exit((require('./package.json').scripts||{})['$script'] ? 0 : 1)" 2>/dev/null; then
|
|
565
|
+
pnpm run "$script"
|
|
566
|
+
fi
|
|
567
|
+
done
|
|
551
568
|
install:
|
|
552
569
|
- pnpm add -wD @warpgogol/forge @warpgogol/werkstatt-typescript @warpgogol/werkstatt-engine @warpgogol/werkstatt-shared prettier vitest typescript
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fo-outbox
|
|
3
|
+
description: Write a dependency-contract request entry in docs/outbox/ so the system can match the need to an offering product. Use when a product needs a contract without naming the provider.
|
|
4
|
+
invocation: user
|
|
5
|
+
category: fo
|
|
6
|
+
concerns: document-only
|
|
7
|
+
dependsOn: []
|
|
8
|
+
languagePolicy: ref(PREFERENCES.md)
|
|
9
|
+
triggerPhrases: ["request a contract", "add an outbox entry", "I need something another product provides"]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!--
|
|
13
|
+
<MODULE_CONTRACT>
|
|
14
|
+
<purpose>fo-outbox skill — author a forge outbox entry in docs/outbox/<id>.yaml that records what this product needs from a contract without naming who serves it.</purpose>
|
|
15
|
+
<non-goals>
|
|
16
|
+
<item>Do not decide which product serves the contract — the system matches needs to offers.</item>
|
|
17
|
+
</non-goals>
|
|
18
|
+
</MODULE_CONTRACT>
|
|
19
|
+
-->
|
|
20
|
+
|
|
21
|
+
# fo-outbox
|
|
22
|
+
|
|
23
|
+
Before starting, read `PREFERENCES.md` at the repository root. If the file is missing or `aiLanguage` is unset, ask the operator once and create the file using the `my-preferences` skill semantics.
|
|
24
|
+
|
|
25
|
+
Use this skill inside a **product repository** when the work needs a contract another product may offer — a shared schema, a data feed, a capability — and the product must not name the provider.
|
|
26
|
+
|
|
27
|
+
An outbox entry is an ordinary tracked file, reviewed and committed with the rest of the product's work.
|
|
28
|
+
|
|
29
|
+
## The rule
|
|
30
|
+
|
|
31
|
+
An entry names **a contract and nothing else**:
|
|
32
|
+
|
|
33
|
+
- never the system the product belongs to;
|
|
34
|
+
- never the product that might serve it;
|
|
35
|
+
- never a repository, checkout path or remote URL.
|
|
36
|
+
|
|
37
|
+
If the need truly has no candidate contract, say so in `why` — do not invent a contract id.
|
|
38
|
+
|
|
39
|
+
## Steps
|
|
40
|
+
|
|
41
|
+
### 1. Pick the next free id
|
|
42
|
+
|
|
43
|
+
List `docs/outbox/` (create the directory when absent) and take the lowest unused `OB-NNNN` number. The filename stem IS the entry id — `docs/outbox/OB-0003.yaml` must declare `id: OB-0003`.
|
|
44
|
+
|
|
45
|
+
### 2. Write the entry
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
schema: forge/outbox@1
|
|
49
|
+
id: OB-0003
|
|
50
|
+
contract: <contract-id>
|
|
51
|
+
need: <one line: what you need from the contract>
|
|
52
|
+
why: <one line: why the product needs it>
|
|
53
|
+
state: open
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
- `contract` — the contract id exactly as published (check the project's contract registry or catalog if one exists).
|
|
57
|
+
- `need` — the concrete ask: e.g. "consume events in format X" or "a versioned read surface for Y".
|
|
58
|
+
- `why` — the business reason; the system copies it into the proposed task's history.
|
|
59
|
+
- `state` — `open` while the need stands; a product session later flips it to `served` or `withdrawn`.
|
|
60
|
+
|
|
61
|
+
### 3. Validate
|
|
62
|
+
|
|
63
|
+
Run the project's outbox validator (e.g. `forge outbox.validate` where registered, or `werkstatt run outbox.validate`). It must exit 0 — fix OUTBOX-01/02 diagnostics before committing.
|
|
64
|
+
|
|
65
|
+
### 4. Commit with the product work
|
|
66
|
+
|
|
67
|
+
The entry is tracked like any source file — include it in the change that needs it, on the product's governed branch. The system's next scan reads only what reached `develop`; uncommitted or unintegrated entries stay invisible by design.
|
|
68
|
+
|
|
69
|
+
## After the scan
|
|
70
|
+
|
|
71
|
+
A matched entry becomes a **proposed task** for the offering product. The operator fills the dispatch brief and moves it to `ready` — nothing dispatches automatically. When your own task report carries `outbox:` entries pointing at needs you served, the collection path records them.
|
|
@@ -20,15 +20,11 @@ triggerPhrases: ["завершаем", "протокол завершения",
|
|
|
20
20
|
</non-goals>
|
|
21
21
|
</MODULE_CONTRACT>
|
|
22
22
|
<CHANGE_SUMMARY>
|
|
23
|
-
<item>RFC-1433: acceptance CX-1 — add the spec's negative filter to the checklist
|
|
24
|
-
|
|
25
|
-
One-off external outages are not frictions unless they expose a missing
|
|
26
|
-
guard — the sentence was in the accepted design but missing from the
|
|
27
|
-
shipped signal checklist. Synced to the .agents copy.</item>
|
|
28
|
-
<item>ADR-0121: persist soft-block report, fix E2-E4 wording, park arbitration</item>
|
|
29
|
-
<item>ADR-0119: align retro delegation wording with pending routings; widen fo-idea-create-adr fast path</item>
|
|
30
23
|
<item>RFC-1460: recurring frictions escalate to mechanical measures — FRICTION-06/07/08, registry flips, session-retro escalation</item>
|
|
31
24
|
<item>RFC-1460: address review r1 findings — F-0007 obligation token, escalated-match autopsy branch, FRICTION-08 path-shape + governance-doc inference</item>
|
|
25
|
+
<item>RFC-1487: step 7 — remove RFC-1462 session-worktree paths, COMMIT-FGN-01 guard, and .sessions model; document flow lifecycle</item>
|
|
26
|
+
<item>RFC-1487: drop RFC-1487 id from fo-session-retro instruction text (SKILL-17)</item>
|
|
27
|
+
<item>RFC-1491: step 6 — outbound AGENTS paragraphs, retro step 3f, FLOW-PUSH/HOLD/GUARD-05/10/INT-11 catalog</item>
|
|
32
28
|
<history>ADR-0119, ADR-0121, RFC-1097, RFC-1247, RFC-1433</history>
|
|
33
29
|
</CHANGE_SUMMARY>
|
|
34
30
|
-->
|
|
@@ -175,6 +171,20 @@ for d in missions/*/workpiece; do [ -d "$d/.git" ] && echo "=== $d ===" && rtk g
|
|
|
175
171
|
- List every unattributed file left dirty on the `### <Left untouched>` line of the Step 7 report, one per tree.
|
|
176
172
|
- If the tree is now clean (or was clean from the start), proceed silently.
|
|
177
173
|
|
|
174
|
+
**3e. Integrate or discard the session flow branch (dormant until the session-worktree switch-over):**
|
|
175
|
+
|
|
176
|
+
- This step applies only when the session's cwd is a flow worktree — its branch is a registered `auto/session-*` entry (check `flow.status`; repositories not on the fixed branch model have no registered branches → skip silently).
|
|
177
|
+
- After the clean-tree commit, run `flow.integrate` from the session worktree — it rebases the branch onto `develop`, runs the primary checkout's `hooks/integration-gate.sh`, and fast-forwards `develop`.
|
|
178
|
+
- On a FLOW-INT-02 (rebase conflict) or FLOW-INT-05 (gate refusal) diagnostic, report the refusal and leave the branch for the next session — do not force-resolve inside session end.
|
|
179
|
+
- When the operator said to drop the work, run `flow.discard --reason "<operator words>"` instead of `flow.integrate`.
|
|
180
|
+
|
|
181
|
+
**3f. List pending outbound items (dormant when not on the fixed branch model):**
|
|
182
|
+
|
|
183
|
+
- This step applies only when the repository is on the fixed branch model — `flow.digest` answers a digest instead of a not-adopted refusal. Repositories without the flow module skip silently.
|
|
184
|
+
- Run `pnpm exec forge flow.digest --no-fetch --json` and read the item counts by risk category, the held entries and the pending publications.
|
|
185
|
+
- Report them on the `### <Pending outbound>` line of the Step 7 report — e.g. `3 items (contract: 1, other: 2), 1 held, 1 pending publication`, or `none`.
|
|
186
|
+
- This step never runs `flow.push`, `flow.hold` or `flow.unhold` — outbound publication stays the operator's command.
|
|
187
|
+
|
|
178
188
|
### Step 4: RFC implementation verification (NON-NEGOTIABLE)
|
|
179
189
|
|
|
180
190
|
If any RFC was worked on during this session (implementation, audit, enhance, plan, or fix work), verify that each such RFC is either stamped as `implemented` or has an explicit operator-acknowledged reason for remaining in a non-terminal status. This step prevents sessions from ending with silently unfinished RFCs — the agent must either complete the stamp or obtain explicit operator consent to leave the RFC as-is.
|
|
@@ -554,6 +564,7 @@ Present a concise summary in `aiLanguage`. **ALL labels, headings, column names,
|
|
|
554
564
|
### <Direct edits>: <count>
|
|
555
565
|
### <Commit>: <hash | none — no direct edits>
|
|
556
566
|
### <Left untouched>: <N unattributed dirty files — list each as "<tree>: <path>", or "none">
|
|
567
|
+
### <Pending outbound>: <N unpushed items (<counts by category>), K held, M pending publications — or "none" when not on the fixed branch model>
|
|
557
568
|
|
|
558
569
|
### <Frictions in aiLanguage>
|
|
559
570
|
<appended>: <N new registry entries, one line each with id + category>
|
|
@@ -30,6 +30,7 @@ Sweep batch 1: add Compass v2 headers to 45 SKILL.md files (purpose derived from
|
|
|
30
30
|
<item>RFC-1247: triggerPhrases vocabulary sync — mined operator phrasing applied to this skill's trigger set.</item>
|
|
31
31
|
<item>RFC-1154: step 5 resolves the commit path by project type — plain git commit in forge workshops where ecosystem.commit is not registered</item>
|
|
32
32
|
<item>RFC-1361: path-scoped commits by default — EC-24 pre-commit message lint with governed-prefix exemption</item>
|
|
33
|
+
<item>RFC-1493: step 4 — remove per-commit version bump, PC-01..04, version log; one commit path with universal X-RFC/X-ADR trailers</item>
|
|
33
34
|
</CHANGE_SUMMARY>
|
|
34
35
|
-->
|
|
35
36
|
|
|
@@ -53,7 +54,7 @@ After every standalone operator request that produces file changes, perform the
|
|
|
53
54
|
3. **Pick the commit's path set.** On `ecosystem.commit` projects prefer `--files` over `git add`: `ecosystem.commit --files <path1> <path2> ...` auto-stages exactly the listed paths at commit time — including untracked new files and staged deletions — and leaves foreign staged entries intact. On plain-git workshops stage only the files the agent modified in this request: `git add <path1> <path2> ...`. Never use `git add -A` or `git add .` — another agent or session may have unrelated changes in the working tree.
|
|
54
55
|
4. **Form commit message.** Write a conventional commit message (`fix:`, `feat:`, `refactor:`, `docs:`, `chore:`) based on the work performed in this request. On `ecosystem.commit` projects the governed pipeline prefixes (`implement:`, `audit:`, `enhance:`, `plan:`, `review:`, `stamp:`, `queue:`, `session-end:`, `resolve:`, `rfc:`, `evidence:`, `retro:`, `accept:`, `xrepo:`, `werkstatt:`, `access-protection:`) are also legal — the EC-24 pre-commit lint checks the subject against COMMIT-01..04 before the commit and blocks non-conforming messages. The agent determines the type and description from the context of the request.
|
|
55
56
|
5. **Commit in monorepo.** Pick the commit path by project type:
|
|
56
|
-
- **`ecosystem.commit` projects** — the Werkstatt platform monorepo and site-workshops that load the site check module (detect: `packages/werkstatt-site/` or `node_modules/@warpgogol/werkstatt-site/` exists): use `pnpm exec werkstatt run ecosystem.commit --message "<message>" --files "<path1> <path2> ..."`. It
|
|
57
|
+
- **`ecosystem.commit` projects** — the Werkstatt platform monorepo and site-workshops that load the site check module (detect: `packages/werkstatt-site/` or `node_modules/@warpgogol/werkstatt-site/` exists): use `pnpm exec werkstatt run ecosystem.commit --message "<message>" --files "<path1> <path2> ..."`. It writes the `X-RFC`/`X-ADR` governance trailer on every commit path when `--rfc`/`--adr` is passed or the subject's governance id is inferred; `--files` auto-stages the listed paths at commit time and pathspec-narrows the commit (the pre-commit hook blocks raw `git commit` for platform-scope files). The root version is the repository release line — `ecosystem.commit` never bumps it.
|
|
57
58
|
- **Forge workshops without `ecosystem.commit`** (no `werkstatt-site` in dependencies — typescript/forge-shell/knowledge profiles): run plain `git commit -m "<message>"` on the staged paths. No platform-scope gate applies.
|
|
58
59
|
6. **Commit in mission workpiece (if applicable).** If the agent changed files in the active mission workpiece, commit there via `git commit` in the workpiece directory.
|
|
59
60
|
7. **Verify clean trees.** After all commits, run `bash scripts/check-clean-trees.sh` again. If any tree is still dirty, report to the operator.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fo-system-dispatch
|
|
3
|
+
description: Run a task end to end inside a system repository — read the queue, scan product outboxes, write self-contained briefs, move tasks to ready, dispatch, and collect reports.
|
|
4
|
+
invocation: user
|
|
5
|
+
category: fo
|
|
6
|
+
concerns: document-only
|
|
7
|
+
dependsOn: []
|
|
8
|
+
languagePolicy: ref(PREFERENCES.md)
|
|
9
|
+
triggerPhrases: ["dispatch a system task", "run the system queue", "move a task to ready and dispatch it"]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!--
|
|
13
|
+
<MODULE_CONTRACT>
|
|
14
|
+
<purpose>fo-system-dispatch skill — drive one task through the system queue: status → brief → ready → dispatch → collect, asking the operator only for a parked task or a needs-decision report.</purpose>
|
|
15
|
+
<non-goals>
|
|
16
|
+
<item>Do not work in a product repository — the system agent reads queues and writes briefs, never product code.</item>
|
|
17
|
+
</non-goals>
|
|
18
|
+
</MODULE_CONTRACT>
|
|
19
|
+
-->
|
|
20
|
+
|
|
21
|
+
# fo-system-dispatch
|
|
22
|
+
|
|
23
|
+
Before starting, read `PREFERENCES.md` at the repository root. If the file is missing or `aiLanguage` is unset, ask the operator once and create the file using the `my-preferences` skill semantics.
|
|
24
|
+
|
|
25
|
+
Use this skill inside a **system repository** — the one holding `system/system.yaml`. A system session never opens a product checkout; the product's own session does the work.
|
|
26
|
+
|
|
27
|
+
## Steps
|
|
28
|
+
|
|
29
|
+
### 1. Read the queue
|
|
30
|
+
|
|
31
|
+
Run `system.task.status`. It joins every task file with its product-side registry and journal evidence — one picture per task: state, branch, and what the product last reported.
|
|
32
|
+
|
|
33
|
+
### 2. Create tasks
|
|
34
|
+
|
|
35
|
+
Operator-initiated work starts as `system.task.create --product <p> --slug <s> --title <t> --kind <adoption|change|…>` — including the adoption tasks the operator's runbook hands this skill. Then run `system.outbox.scan` (add `--create` to materialize matched entries as `proposed` tasks). A scan is read-only without `--create`; unmatched, forbidden or unresolvable entries surface as SYSTEM-OUTBOX diagnostics (schema-invalid entries as OUTBOX-01/02), never silent drops.
|
|
36
|
+
|
|
37
|
+
### 3. Write a self-contained brief
|
|
38
|
+
|
|
39
|
+
For each `proposed` task you intend to dispatch, write `queue/briefs/<id>.md` so that a session which has never seen this repository can do the work. Frontmatter carries `schema: forge/dispatch-brief@1`, the task id, the product, a non-placeholder `goal`, and at least one `acceptance: [{claim, check}]` — all gated by the ready move. The body carries what to change, where to look, and how the session proves it. A brief that needs system context to parse is a failed brief.
|
|
40
|
+
|
|
41
|
+
### 4. Move to `ready`
|
|
42
|
+
|
|
43
|
+
Run `system.task.move --task <id> --to ready`. The ready gate checks the brief exists, binds to the task, and clears dependency and edge rules — fix what it reports instead of retrying.
|
|
44
|
+
|
|
45
|
+
### 5. Dispatch
|
|
46
|
+
|
|
47
|
+
Run `system.task.dispatch --task <id>`. Dispatch opens a task worktree inside the product checkout, plants `.forge/task/brief.md` there, and prints the worktree path to `cd` into — start that session yourself or hand the printed command to the operator. When `products.local.yaml` declares `launcher.argv`, the product session is invoked automatically.
|
|
48
|
+
|
|
49
|
+
A dispatch refusal is information: read the SYSTEM-TASK or FLOW-OPEN diagnostic, repair the cause (unmapped folder, forbidden edge, wedged flow), then dispatch again.
|
|
50
|
+
|
|
51
|
+
### 6. Collect
|
|
52
|
+
|
|
53
|
+
Later, run `system.task.collect --task <id>` after the product session reports. Collect maps the outcome: `done` → `integrated` (with the journal's integrate evidence), `needs-decision` → `reported`, `blocked` → `failed`. A `needs-decision` report's question goes to the operator verbatim — then follow through with `system.task.move`: `reported → ready` (with `--reason`) before re-dispatching, `failed → ready` directly, or `ready`/`failed → parked` (with `--reason`) to shelve.
|
|
54
|
+
|
|
55
|
+
A dispatched task with no report stays `dispatched` — `--mark-failed --reason "<why>"` is the operator's call after a session dies, not a cleanup habit.
|
|
56
|
+
|
|
57
|
+
### 7. Commit queue files in this repository
|
|
58
|
+
|
|
59
|
+
Task files, briefs and collected reports live under `queue/` in the system repository — commit them through this repository's own governed session path, never through a product.
|
|
60
|
+
|
|
61
|
+
## Rules
|
|
62
|
+
|
|
63
|
+
- **Never commit or integrate inside a product checkout.** Integration is the product session's own governed step.
|
|
64
|
+
- **A `needs-decision` report becomes one operator question** — relay it verbatim, do not answer it yourself.
|
|
65
|
+
- **Briefs are the whole contract.** If a brief would not let a cold session finish the task, rewrite the brief before dispatching.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fo-task-run
|
|
3
|
+
description: Execute a dispatched task inside a product worktree — read the planted brief, do the work with this repository's own gate, write the task report, then integrate.
|
|
4
|
+
invocation: user
|
|
5
|
+
category: fo
|
|
6
|
+
concerns: code-mutation
|
|
7
|
+
dependsOn: []
|
|
8
|
+
languagePolicy: ref(PREFERENCES.md)
|
|
9
|
+
triggerPhrases: ["run this task in the product", "execute the planted brief", "work this dispatched task"]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<!--
|
|
13
|
+
<MODULE_CONTRACT>
|
|
14
|
+
<purpose>fo-task-run skill — take a dispatched task from .forge/task/brief.md to .forge/task/report.yaml inside the product worktree, finishing with the product's own integrate step.</purpose>
|
|
15
|
+
<non-goals>
|
|
16
|
+
<item>Do not look for or touch the repository that sent the brief — the product session knows only its own worktree.</item>
|
|
17
|
+
</non-goals>
|
|
18
|
+
</MODULE_CONTRACT>
|
|
19
|
+
-->
|
|
20
|
+
|
|
21
|
+
# fo-task-run
|
|
22
|
+
|
|
23
|
+
Before starting, read `PREFERENCES.md` at the repository root. If the file is missing or `aiLanguage` is unset, ask the operator once and create the file using the `my-preferences` skill semantics.
|
|
24
|
+
|
|
25
|
+
Use this skill inside a **product worktree** that was opened for a task — it carries `.forge/task/brief.md` at its root. The brief is the whole contract: a session that needs outside context to parse it should stop and report `blocked`.
|
|
26
|
+
|
|
27
|
+
## Steps
|
|
28
|
+
|
|
29
|
+
### 1. Read the brief
|
|
30
|
+
|
|
31
|
+
Read `.forge/task/brief.md`. It names the task id, the product, what to change, and how the change is proven. Work only inside this worktree — the product's primary checkout stays untouched.
|
|
32
|
+
|
|
33
|
+
### 2. Do the work
|
|
34
|
+
|
|
35
|
+
Use this repository's own skills, conventions and commit path. The brief names its acceptance intent; translate it into the repository's own evidence — tests, validators, probes.
|
|
36
|
+
|
|
37
|
+
Record a new dependency need — a contract another product may offer — through `fo-outbox` as an ordinary tracked entry; never hardcode a provider.
|
|
38
|
+
|
|
39
|
+
### 3. Run the product's gate
|
|
40
|
+
|
|
41
|
+
Run the repository's own gate exactly as a human would before integrating. Evidence lives in this repository — do not invent a parallel one.
|
|
42
|
+
|
|
43
|
+
### 4. Write the report
|
|
44
|
+
|
|
45
|
+
Write `.forge/task/report.yaml`:
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
schema: forge/task-report@1
|
|
49
|
+
task: T-NNNN
|
|
50
|
+
outcome: done | blocked | needs-decision
|
|
51
|
+
summary: <one paragraph: what happened>
|
|
52
|
+
commits: [<full hashes this work produced>]
|
|
53
|
+
gate: pass | fail | not-run
|
|
54
|
+
acceptance:
|
|
55
|
+
- claim: <what the brief asked>
|
|
56
|
+
evidence: <how it is proven>
|
|
57
|
+
outbox: [<entry ids this work served, if any>]
|
|
58
|
+
# question: <required when outcome is needs-decision — one question for the operator>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
- `outcome: done` goes with `gate: pass` — a report claiming done on a failing gate is dishonest, and collect will surface it to the operator.
|
|
62
|
+
- `outcome: needs-decision` requires `question:` — one question for the operator, verbatim-quotable.
|
|
63
|
+
- `gate: not-run` is honest when nothing ran; pair it with `blocked`, not `done`.
|
|
64
|
+
|
|
65
|
+
### 5. Integrate or stop
|
|
66
|
+
|
|
67
|
+
- Gate passed and report written → run this repository's `flow.integrate`. The task files survive teardown — the system collects them later.
|
|
68
|
+
- Gate cannot pass after two honest attempts → write `outcome: blocked`, leave the worktree as evidence, stop. Do not retry forever and do not merge anything yourself.
|
|
69
|
+
- The brief cannot be satisfied as written → `outcome: needs-decision` with the question.
|
|
70
|
+
|
|
71
|
+
## Rules
|
|
72
|
+
|
|
73
|
+
- **Integration stays the product's own `flow.integrate`** — nothing pushes, nothing merges behind the operator's back.
|
|
74
|
+
- **`.forge/task/` is scratch the worktree owns** — brief in, report out; do not commit it into the product's tracked tree.
|
|
75
|
+
- **Report honestly.** `blocked` is a first-class outcome; a wedged report helps nobody.
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-1365: step 1 — contractProducers schema + conformance execution path</item>
|
|
10
9
|
<item>RFC-1391: make the formal verification tier checker-bound (RFC-1391)</item>
|
|
11
10
|
<item>RFC-1391: close RFC-1391 review r1 findings — evidence freshness, config classification, contract guards
|
|
12
11
|
|
|
@@ -18,7 +17,8 @@ workspace; the exhaustive entry dispatches per packageManager; proved runs
|
|
|
18
17
|
record log, counterexample stays the refuted-path record.</item>
|
|
19
18
|
<item>RFC-1453: executed outcome probes, IMP-14 surface gate, outcome.serve + V-47/V-48</item>
|
|
20
19
|
<item>RFC-1481: close REVIEW-CODE-2026-11-01-11 findings on resolver safety, IO boundaries, and reporting</item>
|
|
21
|
-
<
|
|
20
|
+
<item>RFC-1493: step 4 — remove per-commit version bump, PC-01..04, version log; one commit path with universal X-RFC/X-ADR trailers</item>
|
|
21
|
+
<history>RFC-0391, RFC-0393, RFC-0537, RFC-0538, RFC-0539, RFC-0540, RFC-0543, RFC-0546, RFC-0639, RFC-0640, RFC-0643, RFC-0661, RFC-0662, RFC-0704, RFC-1097, RFC-1224, RFC-1332, RFC-1365</history>
|
|
22
22
|
</CHANGE_SUMMARY>
|
|
23
23
|
*/
|
|
24
24
|
|
|
@@ -312,8 +312,6 @@ export const forgeConfigSchema = z
|
|
|
312
312
|
// previous buggy serialize) so loadForgeConfig can recover the declared id —
|
|
313
313
|
// a hard schema throw here would deadlock `forge upgrade`, the healing path.
|
|
314
314
|
profile: z.union([z.string(), z.object({ id: z.string().min(1) }).passthrough()]).optional(),
|
|
315
|
-
/** RFC-0704: packages with autonomous npm versions — ecosystem.commit skips platform bump when all staged files belong to these packages */
|
|
316
|
-
independentVersionPackages: z.array(z.string()).optional(),
|
|
317
315
|
/**
|
|
318
316
|
* RFC-1453: picomatch globs (repo-root-relative) naming files that decide
|
|
319
317
|
* what the user sees. An implementation diff touching one requires a
|
|
@@ -363,8 +361,6 @@ export interface ForgeConfig {
|
|
|
363
361
|
profileDeclaredId?: string;
|
|
364
362
|
/** RFC-1118: resolution outcome for the declared `profile:` id */
|
|
365
363
|
profileResolution?: "resolved" | "unknown" | "absent" | "catalog-unavailable";
|
|
366
|
-
/** RFC-0704: packages with autonomous npm versions — ecosystem.commit skips platform bump when all staged files belong to these packages */
|
|
367
|
-
independentVersionPackages?: string[];
|
|
368
364
|
/** RFC-1453: picomatch globs naming user-visible outcome surfaces (RFC-IMP-14). */
|
|
369
365
|
outcomeSurfaces: string[];
|
|
370
366
|
}
|
package/src/index.ts
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-0374: initial public exports for forge package.</item>
|
|
10
|
-
<item>RFC-1097: step 6 — compass.migrate codemod run
|
|
11
|
-
|
|
12
|
-
Mechanical v1 to v2 header migration across the workspace: 942 files rewritten — CHANGE_SUMMARY windows collapsed into history, forbidden v1 blocks stripped, KEY_DECISIONS seeded from @ai-invariant comments (5 files) or TODO placeholders (103 files), blocks reordered to canonical order.</item>
|
|
13
9
|
<item>RFC-1097: sweep — packages/forge + services clean
|
|
14
10
|
|
|
15
11
|
Sweep batch 2: real KEY_DECISIONS on 10 files, expanded purposes (CONTRACT-02/PURPOSE-02), headers on mission/index + gen-upstreams, sanitizeItemText in summary.record (literal Compass tags corrupted history), excludedPaths for wrangler types, test-fixtures testPattern. forge+services now 0 diagnostics under --mode error.</item>
|
|
16
12
|
<item>RFC-1097: sweep — werkstatt-engine clean
|
|
17
13
|
|
|
18
14
|
Sweep batch 4: 73 Compass headers on headerless engine files (certification, component-runtime, isolation, evolution, testing), real KEY_DECISIONS on 75 files (kernel, cache, dht, swim, gitmesh, runtime), ~80 purpose expansions (CONTRACT-02/PURPOSE-02), non-goals on 13 CONTRACT-03 files, CS-07 history literal fix repo-wide (253 files). Policy: .template.ts/.template.astro excludedPaths. werkstatt-engine now 0 diagnostics.</item>
|
|
15
|
+
<item>RFC-1486: step 5 — forge-flow module registration + dual CLI/kernel wiring</item>
|
|
16
|
+
<item>RFC-1508: implement RFC-1508 — system profile, system map schemas and system.map.validate</item>
|
|
17
|
+
<item>RFC-1508: align rfc-1508 schemas with the normative contract after review r1</item>
|
|
18
|
+
<history>RFC-0374, RFC-1097</history>
|
|
19
19
|
</CHANGE_SUMMARY>
|
|
20
20
|
*/
|
|
21
21
|
|
|
@@ -197,3 +197,18 @@ export { createForgeExplorationModule } from "../os/exploration/exploration.modu
|
|
|
197
197
|
export { createForgeNotesModule } from "../os/notes/notes.module.ts";
|
|
198
198
|
export { createForgeProgramModule } from "../os/program/program.module.ts";
|
|
199
199
|
export { forgePluginModule } from "../os/plugin/plugin.module.ts";
|
|
200
|
+
export { createForgeFlowModule } from "../os/flow/flow.module.ts";
|
|
201
|
+
export { createForgeSystemModule } from "../os/system/system.module.ts";
|
|
202
|
+
export {
|
|
203
|
+
assertSystemRepository,
|
|
204
|
+
edgeVerdict,
|
|
205
|
+
loadSystemMap,
|
|
206
|
+
validateSystemMap,
|
|
207
|
+
} from "../os/system/repo.ts";
|
|
208
|
+
export type { EdgeVerdict, SystemMap, SystemMapLoadResult } from "../os/system/repo.ts";
|
|
209
|
+
export type {
|
|
210
|
+
FlowBranchKind,
|
|
211
|
+
ParsedFlowBranch,
|
|
212
|
+
BranchClass,
|
|
213
|
+
} from "../os/flow/branch-name.ts";
|
|
214
|
+
export type { RepoKind, RepoKindDetection, GeneratedMarker } from "../os/flow/repo-kind.ts";
|
|
@@ -7,16 +7,14 @@
|
|
|
7
7
|
</non-goals>
|
|
8
8
|
</MODULE_CONTRACT>
|
|
9
9
|
<CHANGE_SUMMARY>
|
|
10
|
-
<item>RFC-1097: step 6 — compass.migrate codemod run
|
|
11
|
-
|
|
12
|
-
Mechanical v1 to v2 header migration across the workspace: 942 files rewritten — CHANGE_SUMMARY windows collapsed into history, forbidden v1 blocks stripped, KEY_DECISIONS seeded from @ai-invariant comments (5 files) or TODO placeholders (103 files), blocks reordered to canonical order.</item>
|
|
13
10
|
<item>RFC-1097: sweep — packages/forge + services clean
|
|
14
11
|
|
|
15
12
|
Sweep batch 2: real KEY_DECISIONS on 10 files, expanded purposes (CONTRACT-02/PURPOSE-02), headers on mission/index + gen-upstreams, sanitizeItemText in summary.record (literal Compass tags corrupted history), excludedPaths for wrangler types, test-fixtures testPattern. forge+services now 0 diagnostics under --mode error.</item>
|
|
16
13
|
<item>RFC-1255: Single blank line after the generated header — header ends in a newline so "\n\n" produced two blank lines that prettier collapsed, ping-ponging doctor's stale check. wsTypes resolution moved to shared resolveWorkspaceTypes.</item>
|
|
17
14
|
<item>RFC-1365: step 4 — DNA-115, CONF-* remediation entries, agents-generate convention section</item>
|
|
18
15
|
<item>RFC-1485: sweep compass headers — forge-src + forge root eslint</item>
|
|
19
|
-
<
|
|
16
|
+
<item>RFC-1500: step 4 — branch-model AGENTS section and consumer docs</item>
|
|
17
|
+
<history>RFC-0391, RFC-0393, RFC-0548, RFC-0549, RFC-0551, RFC-0611, RFC-0640, RFC-0643, RFC-0664, RFC-1097, RFC-1253</history>
|
|
20
18
|
</CHANGE_SUMMARY>
|
|
21
19
|
*/
|
|
22
20
|
|
|
@@ -24,7 +22,7 @@ import * as fs from "../utils/sync-fs.ts";
|
|
|
24
22
|
import { resolveIo } from "../utils/io.ts";
|
|
25
23
|
import path from "node:path";
|
|
26
24
|
import { parse as parseYaml } from "yaml";
|
|
27
|
-
import { loadForgeConfig, resolveBinding, resolveForgePackageRoot, resolveForgeRoot } from "../config/forge-config.ts";
|
|
25
|
+
import { loadForgeConfig, resolveBinding, resolveForgePackageRoot, resolveForgeRoot, type ForgeConfig } from "../config/forge-config.ts";
|
|
28
26
|
import { resolveAllTerminology } from "../profiles/terminology-utils.ts";
|
|
29
27
|
import { FORGE_SKILLS } from "../registry.ts";
|
|
30
28
|
import { alignMarkdownTable, buildGeneratedHeader, hasEditableGeneratedMarker, hasGeneratedMarker, mergeEditableGenerated, writeFileIfChanged } from "../utils/index.ts";
|
|
@@ -40,6 +38,31 @@ import type {
|
|
|
40
38
|
|
|
41
39
|
type BehavioralRegister = "business" | "creative";
|
|
42
40
|
|
|
41
|
+
/**
|
|
42
|
+
* RFC-1500: the repository's command prefix for generated flow instructions —
|
|
43
|
+
* derived from the first resolvable `bindings.commands` value by cutting at
|
|
44
|
+
* the dotted command token (`pnpm exec forge rfc.validate …` → `pnpm exec
|
|
45
|
+
* forge`; `pnpm exec werkstatt run rfc.validate …` → `pnpm exec werkstatt
|
|
46
|
+
* run`). Falls back to `pnpm exec forge`.
|
|
47
|
+
*/
|
|
48
|
+
function resolveCommandPrefix(config: ForgeConfig): string {
|
|
49
|
+
const candidates = [
|
|
50
|
+
"commands.validateRfc",
|
|
51
|
+
"commands.specValidate",
|
|
52
|
+
"commands.sessionSave",
|
|
53
|
+
"commands.implementStamp",
|
|
54
|
+
"commands.validateAdr",
|
|
55
|
+
];
|
|
56
|
+
for (const key of candidates) {
|
|
57
|
+
const value = resolveBinding(config, key);
|
|
58
|
+
if (typeof value !== "string" || value.trim() === "") continue;
|
|
59
|
+
const tokens = value.trim().split(/\s+/);
|
|
60
|
+
const idx = tokens.findIndex((t) => /^[a-z][\w-]*\.[\w.-]+$/.test(t));
|
|
61
|
+
if (idx > 0) return tokens.slice(0, idx).join(" ");
|
|
62
|
+
}
|
|
63
|
+
return "pnpm exec forge";
|
|
64
|
+
}
|
|
65
|
+
|
|
43
66
|
// RFC-0643: Template placeholder substitution for {{terminology.key}} patterns
|
|
44
67
|
export function substituteTemplate(
|
|
45
68
|
content: string,
|
|
@@ -399,6 +422,27 @@ export async function runAgentsGenerate(
|
|
|
399
422
|
dynamicLines.push("**Session-start read discipline (advisory):** At session start, read `MEMORY.md` (always), then `daily/<today>.md` and `daily/<yesterday>.md` (if present). Older daily files are cold — use grep when a task references past context.");
|
|
400
423
|
dynamicLines.push("");
|
|
401
424
|
|
|
425
|
+
// RFC-1500 step 4: adopted repositories carry the fixed-branch-model rules —
|
|
426
|
+
// emitted only when isFlowAdopted reports adoption (committed develop +
|
|
427
|
+
// managed block). The probe is advisory: generation never fails on it.
|
|
428
|
+
try {
|
|
429
|
+
const { isFlowAdopted } = await import("../../os/flow/index.ts");
|
|
430
|
+
const { topLevel } = await import("../../os/flow/git.ts");
|
|
431
|
+
const repoRoot = (await topLevel(workspaceRoot, fio)) ?? workspaceRoot;
|
|
432
|
+
if (await isFlowAdopted(repoRoot, fio)) {
|
|
433
|
+
const prefix = resolveCommandPrefix(config);
|
|
434
|
+
dynamicLines.push("## Branch model");
|
|
435
|
+
dynamicLines.push("");
|
|
436
|
+
dynamicLines.push(`- Every session starts with \`${prefix} flow.open --kind session --slug <slug>\`; work and commit only in the returned worktree. The guard refuses commits on \`develop\` and \`main\`.`);
|
|
437
|
+
dynamicLines.push(`- \`${prefix} flow.integrate --branch <name>\` (operator) rebases, gates and fast-forwards \`develop\`; \`${prefix} flow.discard\` drops a session.`);
|
|
438
|
+
dynamicLines.push(`- Releases are \`${prefix} flow.cut\` (repository line) and \`${prefix} flow.cut --lines <line>\` (package lines); nothing leaves the machine except \`${prefix} flow.push --digest <id>\` after the operator has read \`${prefix} flow.digest\`.`);
|
|
439
|
+
dynamicLines.push("- Never edit `forge/registry.yaml`, `forge/journal.jsonl` or `forge/*.lock` in the git directory.");
|
|
440
|
+
dynamicLines.push("");
|
|
441
|
+
}
|
|
442
|
+
} catch {
|
|
443
|
+
// Flow probe failed (no git, unreadable repo) — section omitted.
|
|
444
|
+
}
|
|
445
|
+
|
|
402
446
|
// RFC-1365 (DNA-115): declared contract producers carry the golden-conformance
|
|
403
447
|
// convention — emitted only when forge.yaml declares contractProducers[].
|
|
404
448
|
if ((config.contractProducers ?? []).length > 0) {
|