@warpgogol/forge 9.1.0 → 9.2.3
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 +39 -0
- package/README.md +15 -8
- package/README.uk.md +15 -8
- package/bin/cli.ts +3 -2
- package/dist/bin/cli.js +3 -2
- package/dist/bin/cli.js.map +1 -1
- package/dist/os/core/core.module.d.ts.map +1 -1
- package/dist/os/core/core.module.js +6 -4
- package/dist/os/core/core.module.js.map +1 -1
- 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 +73 -0
- package/dist/os/flow/digest.d.ts.map +1 -0
- package/dist/os/flow/digest.js +634 -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 +716 -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 +63 -0
- package/dist/os/flow/handlers/flow-cut.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-cut.js +636 -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 +110 -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 +200 -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 +443 -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 +419 -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-push.d.ts +22 -0
- package/dist/os/flow/handlers/flow-push.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-push.js +306 -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 +34 -0
- package/dist/os/flow/locks.d.ts.map +1 -0
- package/dist/os/flow/locks.js +147 -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/publish.d.ts +28 -0
- package/dist/os/flow/publish.d.ts.map +1 -0
- package/dist/os/flow/publish.js +153 -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 +198 -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 +72 -0
- package/dist/os/flow/release-tags.d.ts.map +1 -0
- package/dist/os/flow/release-tags.js +166 -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 +49 -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/tests/helpers.d.ts +52 -0
- package/dist/os/flow/tests/helpers.d.ts.map +1 -0
- package/dist/os/flow/tests/helpers.js +189 -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 +43 -6
- package/dist/os/mission/handlers/archive.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/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/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 +3 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- 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 +14 -6
- package/docs/reference/cli.md +125 -0
- package/docs/reference/profiles.md +1 -0
- package/os/core/core.module.ts +7 -4
- package/os/flow/assets/flow-guard.sh +176 -0
- package/os/flow/branch-name.ts +139 -0
- package/os/flow/digest.ts +761 -0
- package/os/flow/flow.module.ts +740 -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 +912 -0
- package/os/flow/handlers/flow-digest.ts +124 -0
- package/os/flow/handlers/flow-discard.ts +301 -0
- package/os/flow/handlers/flow-fix.ts +597 -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 +607 -0
- package/os/flow/handlers/flow-open.ts +447 -0
- package/os/flow/handlers/flow-push.ts +373 -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 +177 -0
- package/os/flow/markers.ts +135 -0
- package/os/flow/publish.ts +201 -0
- package/os/flow/registry.ts +266 -0
- package/os/flow/release-level.ts +139 -0
- package/os/flow/release-lines.ts +208 -0
- package/os/flow/release-tags.ts +231 -0
- package/os/flow/repo-kind.ts +117 -0
- package/os/flow/scripts.ts +73 -0
- package/os/flow/semver.ts +82 -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.rerun.test.ts +95 -0
- package/os/flow/tests/flow-cut.test.ts +319 -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-push-publish.test.ts +282 -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-version-level.test.ts +116 -0
- package/os/flow/tests/flow-version.test.ts +169 -0
- package/os/flow/tests/helpers.ts +235 -0
- package/os/flow/tests/is-flow-adopted.test.ts +71 -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 +27 -0
- package/os/mission/handlers/archive.ts +46 -6
- 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-stale.test.ts +22 -0
- 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/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 +17 -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/typescript.yaml +26 -9
- package/skills/fo/fo-session-retro/SKILL.md +18 -7
- package/skills/fo/fo-step-commit/SKILL.md +2 -1
- package/src/config/forge-config.ts +2 -6
- package/src/index.ts +8 -0
- 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/implement-stamp.test.ts +26 -3
- package/src/tests/profile-flow-hooks.test.ts +77 -0
- 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
|
@@ -0,0 +1,740 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>Register flow.check and flow.install with the forge kernel registry
|
|
4
|
+
(RFC-1486) — the fixed branch model's read-only validator (FLOW-01..05) and
|
|
5
|
+
the idempotent two-phase repository adoption (FLOW-ADOPT-01..06, -08).</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>Do not implement handler logic here — delegate to handlers/flow-check.ts and handlers/flow-install.ts.</item>
|
|
8
|
+
<item>No pipeline wiring — activation is the wave-4 switch-over RFC.</item>
|
|
9
|
+
</non-goals>
|
|
10
|
+
</MODULE_CONTRACT>
|
|
11
|
+
<CHANGE_SUMMARY>
|
|
12
|
+
<item>RFC-1491: step 3 — flow.digest risk digest with journal-attributed items, categories, digestId</item>
|
|
13
|
+
<item>RFC-1491: step 4 — flow.hold replay + flow.unhold worktree restore</item>
|
|
14
|
+
<item>RFC-1491: step 5 — flow.push atomic outbound path + extract publication</item>
|
|
15
|
+
<item>RFC-1491: independent-review pass — shared lock constants, publishable pending filter, declared rules, hold ordering, sha-pinned refspecs</item>
|
|
16
|
+
<item>RFC-1498: step 4 — CI tag triggers and FLOW-11 in flow.digest
|
|
17
|
+
|
|
18
|
+
flow.digest now reads .github/workflows on the primary checkout and reports tagTriggers: for every digest tag the workflows whose on.push.tags filter matches its name. Matching evaluates the GitHub glob subset — star inside a segment, double-star across, question for one char; character classes and leading negations report FLOW-11 as pattern not understood and match nothing. A workflow that cannot be parsed reports FLOW-11 and contributes nothing, never blocking the digest. tagTriggers feeds digestId so a workflow change invalidates a quoted id, the pretty output prints one line per triggered tag, and flow.module declares FLOW-11 warning plus the workflows read glob. Tests AC-7 (a v1.0.1 tag maps to the v-star workflow only) and AC-8 (broken YAML and a bracket pattern warn while the digest still returns). Compass metadata updated.</item>
|
|
19
|
+
<history>RFC-1486, RFC-1487, RFC-1488, RFC-1490</history>
|
|
20
|
+
</CHANGE_SUMMARY>
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
import type { ForgeModule } from "../../src/forge-module.ts";
|
|
24
|
+
|
|
25
|
+
export async function createForgeFlowModule(): Promise<ForgeModule> {
|
|
26
|
+
const { runFlowCheck } = await import("./handlers/flow-check.ts");
|
|
27
|
+
const { runFlowDigest } = await import("./handlers/flow-digest.ts");
|
|
28
|
+
const { runFlowDiscard } = await import("./handlers/flow-discard.ts");
|
|
29
|
+
const { runFlowInstall } = await import("./handlers/flow-install.ts");
|
|
30
|
+
const { runFlowBackmerge } = await import("./handlers/flow-backmerge.ts");
|
|
31
|
+
const { runFlowCut } = await import("./handlers/flow-cut.ts");
|
|
32
|
+
const { runFlowFix } = await import("./handlers/flow-fix.ts");
|
|
33
|
+
const { runFlowHold } = await import("./handlers/flow-hold.ts");
|
|
34
|
+
const { runFlowIntegrate } = await import("./handlers/flow-integrate.ts");
|
|
35
|
+
const { runFlowOpen } = await import("./handlers/flow-open.ts");
|
|
36
|
+
const { runFlowPush } = await import("./handlers/flow-push.ts");
|
|
37
|
+
const { runFlowStatus } = await import("./handlers/flow-status.ts");
|
|
38
|
+
const { runFlowUnhold } = await import("./handlers/flow-unhold.ts");
|
|
39
|
+
const { runFlowVersion } = await import("./handlers/flow-version.ts");
|
|
40
|
+
return {
|
|
41
|
+
name: "forge-flow",
|
|
42
|
+
version: "0.1.0",
|
|
43
|
+
runtime: "autonomous",
|
|
44
|
+
declarations: [],
|
|
45
|
+
commands: [
|
|
46
|
+
{
|
|
47
|
+
name: "flow.check",
|
|
48
|
+
description:
|
|
49
|
+
"Read-only fixed-branch-model validator (RFC-1486). Reports FLOW-01 " +
|
|
50
|
+
"(local branch outside the model), FLOW-02 (missing develop), " +
|
|
51
|
+
"FLOW-03 (guard not installed: core.hooksPath, managed block or " +
|
|
52
|
+
"byte-exact flow-guard.sh), FLOW-04 (warning — main ahead of " +
|
|
53
|
+
"develop, a back-merge is owed) and FLOW-05 (forge.generated.yaml " +
|
|
54
|
+
"fails the forge/generated@1 schema). Generated repositories return " +
|
|
55
|
+
"an exempt verdict with the parsed marker; ungoverned repositories " +
|
|
56
|
+
"report their kind with no diagnostics. Exit 1 iff an " +
|
|
57
|
+
"error-severity diagnostic exists.",
|
|
58
|
+
scope: "workspace",
|
|
59
|
+
contract: "flow",
|
|
60
|
+
rules: [
|
|
61
|
+
{ id: "FLOW-01", severity: "error" },
|
|
62
|
+
{ id: "FLOW-02", severity: "error" },
|
|
63
|
+
{ id: "FLOW-03", severity: "error" },
|
|
64
|
+
{ id: "FLOW-04", severity: "warning" },
|
|
65
|
+
{ id: "FLOW-05", severity: "error" },
|
|
66
|
+
{ id: "FLOW-06", severity: "warning" },
|
|
67
|
+
{ id: "FLOW-07", severity: "error" },
|
|
68
|
+
{ id: "FLOW-08", severity: "error" },
|
|
69
|
+
{ id: "FLOW-09", severity: "warning" },
|
|
70
|
+
{ id: "FLOW-10", severity: "error" },
|
|
71
|
+
{ id: "FLOW-VER-02", severity: "error" },
|
|
72
|
+
],
|
|
73
|
+
mutatesState: false,
|
|
74
|
+
execOnReadOnly: true,
|
|
75
|
+
writes: [],
|
|
76
|
+
coverage: "operator",
|
|
77
|
+
coverageNote:
|
|
78
|
+
"adoption/model check — wired into pipelines by the wave-4 switch-over RFC",
|
|
79
|
+
reads: [
|
|
80
|
+
"forge.yaml",
|
|
81
|
+
"forge.generated.yaml",
|
|
82
|
+
".git/**",
|
|
83
|
+
"hooks/**",
|
|
84
|
+
"pnpm-workspace.yaml",
|
|
85
|
+
"*/package.json",
|
|
86
|
+
"*/extract.config.yaml",
|
|
87
|
+
],
|
|
88
|
+
cacheable: false,
|
|
89
|
+
flags: {},
|
|
90
|
+
execute: runFlowCheck,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "flow.install",
|
|
94
|
+
description:
|
|
95
|
+
"Adopt the fixed branch model in this repository (RFC-1486), " +
|
|
96
|
+
"idempotent and two-phase: the plan phase evaluates every " +
|
|
97
|
+
"precondition without mutating (refusals FLOW-ADOPT-01..06, -08 " +
|
|
98
|
+
"exit 1 with nothing changed; --dry-run stops here), then the " +
|
|
99
|
+
"execute phase levels develop with main, points core.hooksPath at " +
|
|
100
|
+
"hooks/, switches the clean primary to develop, installs " +
|
|
101
|
+
"hooks/flow-guard.sh byte-exact plus the managed pre-commit block, " +
|
|
102
|
+
"and lands one adoption commit on develop under " +
|
|
103
|
+
"FORGE_FLOW_OP=install. Step 9 embeds a flow.check report.",
|
|
104
|
+
scope: "workspace",
|
|
105
|
+
contract: "flow",
|
|
106
|
+
rules: [
|
|
107
|
+
{ id: "FLOW-ADOPT-01", severity: "error" },
|
|
108
|
+
{ id: "FLOW-ADOPT-02", severity: "error" },
|
|
109
|
+
{ id: "FLOW-ADOPT-03", severity: "error" },
|
|
110
|
+
{ id: "FLOW-ADOPT-04", severity: "error" },
|
|
111
|
+
{ id: "FLOW-ADOPT-05", severity: "error" },
|
|
112
|
+
{ id: "FLOW-ADOPT-06", severity: "error" },
|
|
113
|
+
{ id: "FLOW-ADOPT-07", severity: "error" },
|
|
114
|
+
{ id: "FLOW-ADOPT-08", severity: "error" },
|
|
115
|
+
{ id: "FLOW-VER-02", severity: "error" },
|
|
116
|
+
],
|
|
117
|
+
mutatesState: true,
|
|
118
|
+
idempotency: "rerun-safe",
|
|
119
|
+
execOnReadOnly: false,
|
|
120
|
+
mutatingFlags: [],
|
|
121
|
+
writes: ["hooks/pre-commit", "hooks/flow-guard.sh", ".git/**"],
|
|
122
|
+
generates: [],
|
|
123
|
+
coverage: "operator",
|
|
124
|
+
coverageNote:
|
|
125
|
+
"run once per repository at adoption — wired into forge.upgrade by the wave-4 switch-over RFC",
|
|
126
|
+
reads: [
|
|
127
|
+
"forge.yaml",
|
|
128
|
+
"forge.generated.yaml",
|
|
129
|
+
".git/**",
|
|
130
|
+
"hooks/**",
|
|
131
|
+
"pnpm-workspace.yaml",
|
|
132
|
+
"*/package.json",
|
|
133
|
+
"*/extract.config.yaml",
|
|
134
|
+
],
|
|
135
|
+
cacheable: false,
|
|
136
|
+
flags: {
|
|
137
|
+
"dry-run": {
|
|
138
|
+
kind: "boolean",
|
|
139
|
+
required: false,
|
|
140
|
+
description:
|
|
141
|
+
"Plan phase only — report the computed steps[] without mutating anything.",
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
execute: runFlowInstall,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: "flow.version",
|
|
148
|
+
description:
|
|
149
|
+
"Read-only release-line report (RFC-1488). For every discovered " +
|
|
150
|
+
"line (repository `v` line plus each extract.config.yaml package " +
|
|
151
|
+
"line) it reports the last reachable annotated tag, the version " +
|
|
152
|
+
"file's value, commits since the tag, the derived version " +
|
|
153
|
+
"X.Y.Z+N.<head9> (.dirty on tracked modifications) and the " +
|
|
154
|
+
"pending level from X-RFC trailers resolved through the canonical " +
|
|
155
|
+
"RFC reader. Diagnostics: FLOW-VER-01 (no baseline tag), " +
|
|
156
|
+
"FLOW-VER-02 (basename collision), FLOW-VER-03 (unreadable RFC), " +
|
|
157
|
+
"FLOW-VER-04 (unknown --line). Never writes — only flow.install " +
|
|
158
|
+
"and the wave-2 cut create tags.",
|
|
159
|
+
scope: "workspace",
|
|
160
|
+
contract: "flow",
|
|
161
|
+
rules: [
|
|
162
|
+
{ id: "FLOW-VER-01", severity: "warning" },
|
|
163
|
+
{ id: "FLOW-VER-02", severity: "error" },
|
|
164
|
+
{ id: "FLOW-VER-03", severity: "warning" },
|
|
165
|
+
{ id: "FLOW-VER-04", severity: "error" },
|
|
166
|
+
],
|
|
167
|
+
mutatesState: false,
|
|
168
|
+
execOnReadOnly: true,
|
|
169
|
+
writes: [],
|
|
170
|
+
coverage: "operator",
|
|
171
|
+
coverageNote: "read-only version report — consumed by flow.cut in wave 2",
|
|
172
|
+
reads: ["pnpm-workspace.yaml", "*/package.json", "*/extract.config.yaml", ".git/**", "docs/rfcs/**"],
|
|
173
|
+
cacheable: false,
|
|
174
|
+
flags: {
|
|
175
|
+
line: {
|
|
176
|
+
kind: "string",
|
|
177
|
+
required: false,
|
|
178
|
+
description:
|
|
179
|
+
"Report only this release line id (e.g. repo, forge). Unknown id → FLOW-VER-04.",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
execute: runFlowVersion,
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "flow.open",
|
|
186
|
+
description:
|
|
187
|
+
"Open a session or task in its own worktree beside the repository " +
|
|
188
|
+
"(RFC-1487). Assigns the next free NN for today's UTC date across " +
|
|
189
|
+
"local branches, remote-tracking refs and the registry, creates " +
|
|
190
|
+
"auto/<kind>-<YYMMDD>-<NN>-<slug> from the develop tip at " +
|
|
191
|
+
"<parent>/<repo>@<branch-slug>, records the registry entry under " +
|
|
192
|
+
"the common git dir, journals the open and runs the primary's " +
|
|
193
|
+
"hooks/worktree-setup.sh. Refusals: FLOW-OPEN-01..07. The sibling " +
|
|
194
|
+
"worktree directory lives outside writes[] scope by design.",
|
|
195
|
+
scope: "workspace",
|
|
196
|
+
contract: "flow",
|
|
197
|
+
rules: [
|
|
198
|
+
{ id: "FLOW-OPEN-01", severity: "error" },
|
|
199
|
+
{ id: "FLOW-OPEN-02", severity: "error" },
|
|
200
|
+
{ id: "FLOW-OPEN-03", severity: "error" },
|
|
201
|
+
{ id: "FLOW-OPEN-04", severity: "error" },
|
|
202
|
+
{ id: "FLOW-OPEN-05", severity: "error" },
|
|
203
|
+
{ id: "FLOW-OPEN-06", severity: "error" },
|
|
204
|
+
{ id: "FLOW-OPEN-07", severity: "error" },
|
|
205
|
+
{ id: "FLOW-07", severity: "error" },
|
|
206
|
+
],
|
|
207
|
+
mutatesState: true,
|
|
208
|
+
execOnReadOnly: false,
|
|
209
|
+
mutatingFlags: [],
|
|
210
|
+
writes: [".git/**"],
|
|
211
|
+
generates: [],
|
|
212
|
+
coverage: "operator",
|
|
213
|
+
coverageNote: "session lifecycle — activated by the wave-4 switch-over RFC",
|
|
214
|
+
reads: ["forge.yaml", "forge.generated.yaml", ".git/**", "hooks/**"],
|
|
215
|
+
cacheable: false,
|
|
216
|
+
flags: {
|
|
217
|
+
kind: {
|
|
218
|
+
kind: "string",
|
|
219
|
+
required: true,
|
|
220
|
+
description: "Branch kind: session or task.",
|
|
221
|
+
},
|
|
222
|
+
slug: {
|
|
223
|
+
kind: "string",
|
|
224
|
+
required: true,
|
|
225
|
+
description: "Slug for the branch name — ^[a-z0-9]+(-[a-z0-9]+)*$, 3..48 chars.",
|
|
226
|
+
},
|
|
227
|
+
brief: {
|
|
228
|
+
kind: "string",
|
|
229
|
+
required: false,
|
|
230
|
+
description: "One-line brief recorded on the registry entry.",
|
|
231
|
+
},
|
|
232
|
+
owner: {
|
|
233
|
+
kind: "string",
|
|
234
|
+
required: false,
|
|
235
|
+
description: "Owner id — required for --kind task (e.g. T-0007); sessions default to 'unspecified'.",
|
|
236
|
+
},
|
|
237
|
+
"dry-run": {
|
|
238
|
+
kind: "boolean",
|
|
239
|
+
required: false,
|
|
240
|
+
description: "Report the would-be branch/worktree without mutating.",
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
execute: runFlowOpen,
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: "flow.integrate",
|
|
247
|
+
description:
|
|
248
|
+
"Integrate a registered auto branch into develop as a linear " +
|
|
249
|
+
"fast-forward (RFC-1487), idempotent and rerun-safe: under the " +
|
|
250
|
+
"integration lock the clean branch worktree rebases onto develop, " +
|
|
251
|
+
"the primary's hooks/integration-gate.sh gates, the clean primary " +
|
|
252
|
+
"on develop fast-forwards via git -C <primary> merge --ff-only " +
|
|
253
|
+
"(never a merge commit — the primary working tree is rewritten by " +
|
|
254
|
+
"the merge itself), then teardown, worktree removal, branch delete, " +
|
|
255
|
+
"registry drop and journal finish the lifecycle. Refusals: " +
|
|
256
|
+
"FLOW-INT-01..08.",
|
|
257
|
+
scope: "workspace",
|
|
258
|
+
contract: "flow",
|
|
259
|
+
rules: [
|
|
260
|
+
{ id: "FLOW-INT-01", severity: "error" },
|
|
261
|
+
{ id: "FLOW-INT-02", severity: "error" },
|
|
262
|
+
{ id: "FLOW-INT-03", severity: "error" },
|
|
263
|
+
{ id: "FLOW-INT-04", severity: "error" },
|
|
264
|
+
{ id: "FLOW-INT-05", severity: "error" },
|
|
265
|
+
{ id: "FLOW-INT-06", severity: "error" },
|
|
266
|
+
{ id: "FLOW-INT-07", severity: "error" },
|
|
267
|
+
{ id: "FLOW-INT-08", severity: "error" },
|
|
268
|
+
{ id: "FLOW-INT-09", severity: "error" },
|
|
269
|
+
{ id: "FLOW-INT-10", severity: "error" },
|
|
270
|
+
{ id: "FLOW-INT-11", severity: "error" },
|
|
271
|
+
{ id: "FLOW-07", severity: "error" },
|
|
272
|
+
],
|
|
273
|
+
mutatesState: true,
|
|
274
|
+
idempotency: "rerun-safe",
|
|
275
|
+
execOnReadOnly: false,
|
|
276
|
+
mutatingFlags: [],
|
|
277
|
+
writes: [".git/**"],
|
|
278
|
+
generates: [],
|
|
279
|
+
coverage: "operator",
|
|
280
|
+
coverageNote: "session lifecycle — activated by the wave-4 switch-over RFC",
|
|
281
|
+
reads: ["forge.yaml", "forge.generated.yaml", ".git/**", "hooks/**"],
|
|
282
|
+
cacheable: false,
|
|
283
|
+
flags: {
|
|
284
|
+
branch: {
|
|
285
|
+
kind: "string",
|
|
286
|
+
required: false,
|
|
287
|
+
description:
|
|
288
|
+
"Registered auto branch to integrate; defaults to the branch checked out in the cwd worktree.",
|
|
289
|
+
},
|
|
290
|
+
"dry-run": {
|
|
291
|
+
kind: "boolean",
|
|
292
|
+
required: false,
|
|
293
|
+
description: "Evaluate the integration's preconditions without mutating.",
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
execute: runFlowIntegrate,
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: "flow.cut",
|
|
300
|
+
description:
|
|
301
|
+
"Cut a release on the fixed branch model (RFC-1490): plan refusals " +
|
|
302
|
+
"FLOW-CUT-01..07, then under the integration lock — release branch " +
|
|
303
|
+
"through flow.open (owner release), verified version-file writes, " +
|
|
304
|
+
"chore(release) commit, gate + fast-forward into develop, " +
|
|
305
|
+
"release-fingerprints hook, main compare-and-swap, release tags " +
|
|
306
|
+
"(repository line always, package lines via --lines), journal. " +
|
|
307
|
+
"Rerun-safe: resumes at fingerprints after an integrated release " +
|
|
308
|
+
"commit, reports released when every named tag exists.",
|
|
309
|
+
scope: "workspace",
|
|
310
|
+
contract: "flow",
|
|
311
|
+
rules: [
|
|
312
|
+
{ id: "FLOW-CUT-01", severity: "error" },
|
|
313
|
+
{ id: "FLOW-CUT-02", severity: "error" },
|
|
314
|
+
{ id: "FLOW-CUT-03", severity: "error" },
|
|
315
|
+
{ id: "FLOW-CUT-04", severity: "error" },
|
|
316
|
+
{ id: "FLOW-CUT-05", severity: "error" },
|
|
317
|
+
{ id: "FLOW-CUT-06", severity: "error" },
|
|
318
|
+
{ id: "FLOW-CUT-07", severity: "error" },
|
|
319
|
+
{ id: "FLOW-CUT-08", severity: "error" },
|
|
320
|
+
{ id: "FLOW-CUT-09", severity: "error" },
|
|
321
|
+
{ id: "FLOW-CUT-10", severity: "error" },
|
|
322
|
+
{ id: "FLOW-CUT-11", severity: "error" },
|
|
323
|
+
{ id: "FLOW-INT-02", severity: "error" },
|
|
324
|
+
{ id: "FLOW-INT-05", severity: "error" },
|
|
325
|
+
{ id: "FLOW-INT-06", severity: "error" },
|
|
326
|
+
{ id: "FLOW-INT-08", severity: "error" },
|
|
327
|
+
{ id: "FLOW-07", severity: "error" },
|
|
328
|
+
{ id: "FLOW-OPEN-02", severity: "error" },
|
|
329
|
+
{ id: "FLOW-OPEN-04", severity: "error" },
|
|
330
|
+
{ id: "FLOW-OPEN-06", severity: "error" },
|
|
331
|
+
{ id: "FLOW-OPEN-07", severity: "error" },
|
|
332
|
+
],
|
|
333
|
+
envInputs: [{ name: "ALLOW_MAJOR_BUMP", required: false }],
|
|
334
|
+
mutatesState: true,
|
|
335
|
+
idempotency: "rerun-safe",
|
|
336
|
+
execOnReadOnly: false,
|
|
337
|
+
mutatingFlags: [],
|
|
338
|
+
writes: [".git/**"],
|
|
339
|
+
generates: [],
|
|
340
|
+
coverage: "operator",
|
|
341
|
+
coverageNote: "release workflow — activated by the wave-4 switch-over RFC",
|
|
342
|
+
reads: ["forge.yaml", "forge.generated.yaml", ".git/**", "hooks/**", "pnpm-workspace.yaml", "package.json", "packages/*/package.json"],
|
|
343
|
+
cacheable: false,
|
|
344
|
+
flags: {
|
|
345
|
+
lines: {
|
|
346
|
+
kind: "string",
|
|
347
|
+
required: false,
|
|
348
|
+
description:
|
|
349
|
+
"Comma-separated package release-line ids to cut alongside the repository line.",
|
|
350
|
+
},
|
|
351
|
+
branch: {
|
|
352
|
+
kind: "string",
|
|
353
|
+
required: false,
|
|
354
|
+
description:
|
|
355
|
+
"Registered fix branch to cut a fix release for; defaults to the cwd worktree's branch.",
|
|
356
|
+
},
|
|
357
|
+
"dry-run": {
|
|
358
|
+
kind: "boolean",
|
|
359
|
+
required: false,
|
|
360
|
+
description: "Evaluate the cut's preconditions without mutating.",
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
execute: runFlowCut,
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
name: "flow.backmerge",
|
|
367
|
+
description:
|
|
368
|
+
"Port main into develop through a gated port branch (RFC-1490): " +
|
|
369
|
+
"release tags on develop..main (oldest first) name the merge " +
|
|
370
|
+
"message 'release <tags> → develop', the port worktree merges main " +
|
|
371
|
+
"--no-ff under the integration lock, a clean merge gates and " +
|
|
372
|
+
"fast-forwards the primary, a conflict leaves the merge in " +
|
|
373
|
+
"progress with recovery steps. --redo discards an existing port " +
|
|
374
|
+
"for the same mainSha first. Refusals: FLOW-BM-01/02, FLOW-INT-09/10.",
|
|
375
|
+
scope: "workspace",
|
|
376
|
+
contract: "flow",
|
|
377
|
+
rules: [
|
|
378
|
+
{ id: "FLOW-BM-01", severity: "error" },
|
|
379
|
+
{ id: "FLOW-BM-02", severity: "error" },
|
|
380
|
+
{ id: "FLOW-INT-05", severity: "error" },
|
|
381
|
+
{ id: "FLOW-INT-08", severity: "error" },
|
|
382
|
+
{ id: "FLOW-INT-09", severity: "error" },
|
|
383
|
+
{ id: "FLOW-INT-10", severity: "error" },
|
|
384
|
+
{ id: "FLOW-07", severity: "error" },
|
|
385
|
+
{ id: "FLOW-OPEN-02", severity: "error" },
|
|
386
|
+
{ id: "FLOW-OPEN-04", severity: "error" },
|
|
387
|
+
{ id: "FLOW-OPEN-06", severity: "error" },
|
|
388
|
+
{ id: "FLOW-OPEN-07", severity: "error" },
|
|
389
|
+
],
|
|
390
|
+
mutatesState: true,
|
|
391
|
+
idempotency: "rerun-safe",
|
|
392
|
+
execOnReadOnly: false,
|
|
393
|
+
mutatingFlags: ["redo"],
|
|
394
|
+
writes: [".git/**"],
|
|
395
|
+
generates: [],
|
|
396
|
+
coverage: "operator",
|
|
397
|
+
coverageNote: "release workflow — activated by the wave-4 switch-over RFC",
|
|
398
|
+
reads: ["forge.yaml", "forge.generated.yaml", ".git/**", "hooks/**", "pnpm-workspace.yaml", "package.json"],
|
|
399
|
+
cacheable: false,
|
|
400
|
+
flags: {
|
|
401
|
+
redo: {
|
|
402
|
+
kind: "boolean",
|
|
403
|
+
required: false,
|
|
404
|
+
description: "Discard an existing port for the same mainSha and reopen it.",
|
|
405
|
+
},
|
|
406
|
+
"dry-run": {
|
|
407
|
+
kind: "boolean",
|
|
408
|
+
required: false,
|
|
409
|
+
description: "Evaluate the back-merge's preconditions without mutating.",
|
|
410
|
+
},
|
|
411
|
+
},
|
|
412
|
+
execute: runFlowBackmerge,
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
name: "flow.fix",
|
|
416
|
+
description:
|
|
417
|
+
"Open a release fix on the fixed branch model (RFC-1490): refuses " +
|
|
418
|
+
"when the repository is unadopted (FLOW-FIX-01), when main moved " +
|
|
419
|
+
"past its last release tag (FLOW-FIX-02), on a bad slug " +
|
|
420
|
+
"(FLOW-FIX-03), or while a back-merge is pending (FLOW-FIX-04); " +
|
|
421
|
+
"then opens auto/fix-<YYMMDD>-<NN>-<slug> at the main tip with a " +
|
|
422
|
+
"registered kind:fix entry. flow.cut inside that worktree ships " +
|
|
423
|
+
"the patch into main and back-merges into develop.",
|
|
424
|
+
scope: "workspace",
|
|
425
|
+
contract: "flow",
|
|
426
|
+
rules: [
|
|
427
|
+
{ id: "FLOW-FIX-01", severity: "error" },
|
|
428
|
+
{ id: "FLOW-FIX-02", severity: "error" },
|
|
429
|
+
{ id: "FLOW-FIX-03", severity: "error" },
|
|
430
|
+
{ id: "FLOW-FIX-04", severity: "error" },
|
|
431
|
+
{ id: "FLOW-OPEN-01", severity: "error" },
|
|
432
|
+
{ id: "FLOW-OPEN-02", severity: "error" },
|
|
433
|
+
{ id: "FLOW-OPEN-04", severity: "error" },
|
|
434
|
+
{ id: "FLOW-OPEN-06", severity: "error" },
|
|
435
|
+
{ id: "FLOW-OPEN-07", severity: "error" },
|
|
436
|
+
{ id: "FLOW-07", severity: "error" },
|
|
437
|
+
],
|
|
438
|
+
mutatesState: true,
|
|
439
|
+
idempotency: "not-idempotent",
|
|
440
|
+
execOnReadOnly: false,
|
|
441
|
+
mutatingFlags: [],
|
|
442
|
+
writes: [".git/**"],
|
|
443
|
+
generates: [],
|
|
444
|
+
coverage: "operator",
|
|
445
|
+
coverageNote: "release workflow — activated by the wave-4 switch-over RFC",
|
|
446
|
+
reads: ["forge.yaml", "forge.generated.yaml", ".git/**", "hooks/**", "pnpm-workspace.yaml", "package.json"],
|
|
447
|
+
cacheable: false,
|
|
448
|
+
flags: {
|
|
449
|
+
slug: {
|
|
450
|
+
kind: "string",
|
|
451
|
+
required: true,
|
|
452
|
+
description: "Branch slug — ^[a-z0-9]+(-[a-z0-9]+)*$, 3..48 chars.",
|
|
453
|
+
},
|
|
454
|
+
brief: {
|
|
455
|
+
kind: "string",
|
|
456
|
+
required: false,
|
|
457
|
+
description: "One-line brief recorded in the registry and journal.",
|
|
458
|
+
},
|
|
459
|
+
"dry-run": {
|
|
460
|
+
kind: "boolean",
|
|
461
|
+
required: false,
|
|
462
|
+
description: "Evaluate the fix's preconditions without mutating.",
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
execute: runFlowFix,
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
name: "flow.digest",
|
|
469
|
+
description:
|
|
470
|
+
"Read-only outbound risk digest (RFC-1491): the unpushed " +
|
|
471
|
+
"develop tail segmented into journal-attributed items " +
|
|
472
|
+
"(integration, backmerge, release, unattributed) classified by " +
|
|
473
|
+
"risk category — contract, migration, invariant, " +
|
|
474
|
+
"capability-removal, major-dependency, other — plus new release " +
|
|
475
|
+
"tags versus origin, held branches and journal-scoped pending " +
|
|
476
|
+
"publications. Prints the digestId flow.push must quote. " +
|
|
477
|
+
"--no-fetch skips git fetch for offline review; a fetch failure " +
|
|
478
|
+
"downgrades to stale remote-tracking refs with a warning. " +
|
|
479
|
+
"FLOW-PUSH-01 (error) when no origin remote exists.",
|
|
480
|
+
scope: "workspace",
|
|
481
|
+
contract: "flow",
|
|
482
|
+
rules: [
|
|
483
|
+
{ id: "FLOW-PUSH-01", severity: "error" },
|
|
484
|
+
{ id: "FLOW-DIGEST-01", severity: "warning" },
|
|
485
|
+
{ id: "FLOW-07", severity: "error" },
|
|
486
|
+
{ id: "FLOW-11", severity: "warning" },
|
|
487
|
+
],
|
|
488
|
+
mutatesState: true, // git fetch updates remote-tracking refs unless --no-fetch
|
|
489
|
+
idempotency: "rerun-safe",
|
|
490
|
+
execOnReadOnly: false,
|
|
491
|
+
mutatingFlags: [],
|
|
492
|
+
writes: [".git/**"],
|
|
493
|
+
generates: [],
|
|
494
|
+
coverage: "operator",
|
|
495
|
+
coverageNote: "release workflow — activated by the wave-4 switch-over RFC",
|
|
496
|
+
reads: [
|
|
497
|
+
"forge.yaml",
|
|
498
|
+
".git/**",
|
|
499
|
+
"docs/rfcs/*.md",
|
|
500
|
+
"pnpm-workspace.yaml",
|
|
501
|
+
"package.json",
|
|
502
|
+
"packages/*/package.json",
|
|
503
|
+
".github/workflows/**",
|
|
504
|
+
],
|
|
505
|
+
cacheable: false,
|
|
506
|
+
flags: {
|
|
507
|
+
"no-fetch": {
|
|
508
|
+
kind: "boolean",
|
|
509
|
+
required: false,
|
|
510
|
+
description: "Skip git fetch origin --prune — digest on existing remote-tracking refs.",
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
execute: runFlowDigest,
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
name: "flow.discard",
|
|
517
|
+
description:
|
|
518
|
+
"Discard a registered auto branch without integrating (RFC-1487): " +
|
|
519
|
+
"the primary's hooks/worktree-teardown.sh runs, the worktree is " +
|
|
520
|
+
"removed (--force only with --dirty), the branch is force-deleted, " +
|
|
521
|
+
"the registry entry dropped and the operator's --reason journaled. " +
|
|
522
|
+
"Refusals: FLOW-DIS-01..04.",
|
|
523
|
+
scope: "workspace",
|
|
524
|
+
contract: "flow",
|
|
525
|
+
rules: [
|
|
526
|
+
{ id: "FLOW-DIS-01", severity: "error" },
|
|
527
|
+
{ id: "FLOW-DIS-02", severity: "error" },
|
|
528
|
+
{ id: "FLOW-DIS-03", severity: "error" },
|
|
529
|
+
{ id: "FLOW-DIS-04", severity: "error" },
|
|
530
|
+
{ id: "FLOW-07", severity: "error" },
|
|
531
|
+
],
|
|
532
|
+
mutatesState: true,
|
|
533
|
+
execOnReadOnly: false,
|
|
534
|
+
mutatingFlags: [],
|
|
535
|
+
writes: [".git/**"],
|
|
536
|
+
generates: [],
|
|
537
|
+
coverage: "operator",
|
|
538
|
+
coverageNote: "session lifecycle — activated by the wave-4 switch-over RFC",
|
|
539
|
+
reads: ["forge.yaml", "forge.generated.yaml", ".git/**", "hooks/**"],
|
|
540
|
+
cacheable: false,
|
|
541
|
+
flags: {
|
|
542
|
+
branch: {
|
|
543
|
+
kind: "string",
|
|
544
|
+
required: false,
|
|
545
|
+
description:
|
|
546
|
+
"Registered auto branch to discard; defaults to the branch checked out in the cwd worktree.",
|
|
547
|
+
},
|
|
548
|
+
reason: {
|
|
549
|
+
kind: "string",
|
|
550
|
+
required: true,
|
|
551
|
+
description: "Why the work is dropped — journaled for the outbound wave.",
|
|
552
|
+
},
|
|
553
|
+
dirty: {
|
|
554
|
+
kind: "boolean",
|
|
555
|
+
required: false,
|
|
556
|
+
description: "Acknowledge discarding uncommitted changes in the worktree.",
|
|
557
|
+
},
|
|
558
|
+
"dry-run": {
|
|
559
|
+
kind: "boolean",
|
|
560
|
+
required: false,
|
|
561
|
+
description: "Report the discard plan without mutating.",
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
execute: runFlowDiscard,
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
name: "flow.hold",
|
|
568
|
+
description:
|
|
569
|
+
"Pull one integration item out of the unpushed develop tail " +
|
|
570
|
+
"(RFC-1491) under the integration lock: refuses FLOW-HOLD-01..06 " +
|
|
571
|
+
"(not in a fresh digest, unpushed release tag above the item, an " +
|
|
572
|
+
"open branch based above it, dirty or off-develop primary, " +
|
|
573
|
+
"non-integration kind, a merge above it), then replays the tail " +
|
|
574
|
+
"without the item via cherry-pick in a detached temporary " +
|
|
575
|
+
"worktree, keeps a held auto branch at the item's tip, resets " +
|
|
576
|
+
"develop to the replayed tip and journals rewrites so the next " +
|
|
577
|
+
"digest still attributes the replayed items. FLOW-HOLD-07 when " +
|
|
578
|
+
"the replay conflicts — nothing changes.",
|
|
579
|
+
scope: "workspace",
|
|
580
|
+
contract: "flow",
|
|
581
|
+
rules: [
|
|
582
|
+
{ id: "FLOW-HOLD-01", severity: "error" },
|
|
583
|
+
{ id: "FLOW-HOLD-02", severity: "error" },
|
|
584
|
+
{ id: "FLOW-HOLD-03", severity: "error" },
|
|
585
|
+
{ id: "FLOW-HOLD-04", severity: "error" },
|
|
586
|
+
{ id: "FLOW-HOLD-05", severity: "error" },
|
|
587
|
+
{ id: "FLOW-HOLD-06", severity: "error" },
|
|
588
|
+
{ id: "FLOW-HOLD-07", severity: "error" },
|
|
589
|
+
{ id: "FLOW-07", severity: "error" },
|
|
590
|
+
],
|
|
591
|
+
mutatesState: true,
|
|
592
|
+
idempotency: "not-idempotent",
|
|
593
|
+
execOnReadOnly: false,
|
|
594
|
+
mutatingFlags: [],
|
|
595
|
+
writes: [".git/**"],
|
|
596
|
+
generates: [],
|
|
597
|
+
coverage: "operator",
|
|
598
|
+
coverageNote: "release workflow — activated by the wave-4 switch-over RFC",
|
|
599
|
+
reads: ["forge.yaml", ".git/**", "docs/rfcs/*.md", "hooks/**"],
|
|
600
|
+
cacheable: false,
|
|
601
|
+
flags: {
|
|
602
|
+
item: {
|
|
603
|
+
kind: "string",
|
|
604
|
+
required: true,
|
|
605
|
+
description: "Digest item id to hold — I-<9 hex of tip> from flow.digest.",
|
|
606
|
+
},
|
|
607
|
+
reason: {
|
|
608
|
+
kind: "string",
|
|
609
|
+
required: true,
|
|
610
|
+
description: "Why the item is held — recorded on the registry entry and journal.",
|
|
611
|
+
},
|
|
612
|
+
"dry-run": {
|
|
613
|
+
kind: "boolean",
|
|
614
|
+
required: false,
|
|
615
|
+
description: "Evaluate every refusal and print the held branch name without mutating.",
|
|
616
|
+
},
|
|
617
|
+
},
|
|
618
|
+
execute: runFlowHold,
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
name: "flow.unhold",
|
|
622
|
+
description:
|
|
623
|
+
"Bring a held branch back (RFC-1491): refuses FLOW-HOLD-08 when " +
|
|
624
|
+
"the registry entry is not held, then creates the RFC-1487 " +
|
|
625
|
+
"sibling worktree at the branch tip, runs hooks/worktree-setup.sh, " +
|
|
626
|
+
"clears held and journals the unhold. The branch integrates " +
|
|
627
|
+
"normally afterwards via flow.integrate.",
|
|
628
|
+
scope: "workspace",
|
|
629
|
+
contract: "flow",
|
|
630
|
+
rules: [
|
|
631
|
+
{ id: "FLOW-HOLD-08", severity: "error" },
|
|
632
|
+
{ id: "FLOW-07", severity: "error" },
|
|
633
|
+
],
|
|
634
|
+
mutatesState: true,
|
|
635
|
+
idempotency: "not-idempotent",
|
|
636
|
+
execOnReadOnly: false,
|
|
637
|
+
mutatingFlags: [],
|
|
638
|
+
writes: [".git/**"],
|
|
639
|
+
generates: [],
|
|
640
|
+
coverage: "operator",
|
|
641
|
+
coverageNote: "release workflow — activated by the wave-4 switch-over RFC",
|
|
642
|
+
reads: ["forge.yaml", ".git/**", "hooks/**"],
|
|
643
|
+
cacheable: false,
|
|
644
|
+
flags: {
|
|
645
|
+
branch: {
|
|
646
|
+
kind: "string",
|
|
647
|
+
required: true,
|
|
648
|
+
description: "Held auto branch to unhold — see flow.status held entries.",
|
|
649
|
+
},
|
|
650
|
+
"dry-run": {
|
|
651
|
+
kind: "boolean",
|
|
652
|
+
required: false,
|
|
653
|
+
description: "Evaluate the unhold plan without mutating.",
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
execute: runFlowUnhold,
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
name: "flow.push",
|
|
660
|
+
description:
|
|
661
|
+
"The only outbound path (RFC-1491, AUDIT-RFC-1491-E1): refuses " +
|
|
662
|
+
"preflight FLOW-PUSH-01 (no origin), FLOW-PUSH-02 (stale digest " +
|
|
663
|
+
"— quote the current flow.digest id), FLOW-PUSH-03 (origin " +
|
|
664
|
+
"diverged), FLOW-PUSH-06 (package line without a valid " +
|
|
665
|
+
"forge.generated.yaml marker) and FLOW-PUSH-07 (repo-extract " +
|
|
666
|
+
"missing), then pushes develop + main + new release tags in one " +
|
|
667
|
+
"atomic push under FORGE_FLOW_OP=push (FLOW-PUSH-04 on failure) " +
|
|
668
|
+
"and publishes each package-line tag through repo-extract " +
|
|
669
|
+
"(FLOW-PUSH-05 per failure, ours-merge reconcile on " +
|
|
670
|
+
"non-fast-forward only, never force). A rerun with an empty " +
|
|
671
|
+
"digest retries journal-scoped pending publications.",
|
|
672
|
+
scope: "workspace",
|
|
673
|
+
contract: "flow",
|
|
674
|
+
rules: [
|
|
675
|
+
{ id: "FLOW-PUSH-01", severity: "error" },
|
|
676
|
+
{ id: "FLOW-PUSH-02", severity: "error" },
|
|
677
|
+
{ id: "FLOW-PUSH-03", severity: "error" },
|
|
678
|
+
{ id: "FLOW-PUSH-04", severity: "error" },
|
|
679
|
+
{ id: "FLOW-PUSH-05", severity: "error" },
|
|
680
|
+
{ id: "FLOW-PUSH-06", severity: "error" },
|
|
681
|
+
{ id: "FLOW-PUSH-07", severity: "error" },
|
|
682
|
+
{ id: "FLOW-07", severity: "error" },
|
|
683
|
+
],
|
|
684
|
+
mutatesState: true,
|
|
685
|
+
idempotency: "not-idempotent",
|
|
686
|
+
execOnReadOnly: false,
|
|
687
|
+
mutatingFlags: [],
|
|
688
|
+
writes: [".git/**"],
|
|
689
|
+
generates: [],
|
|
690
|
+
coverage: "operator",
|
|
691
|
+
coverageNote: "outbound — operator command only (RFC-1491 E1)",
|
|
692
|
+
reads: [
|
|
693
|
+
"forge.yaml",
|
|
694
|
+
".git/**",
|
|
695
|
+
"docs/rfcs/*.md",
|
|
696
|
+
"hooks/**",
|
|
697
|
+
"pnpm-workspace.yaml",
|
|
698
|
+
"package.json",
|
|
699
|
+
"packages/*/extract.config.yaml",
|
|
700
|
+
],
|
|
701
|
+
cacheable: false,
|
|
702
|
+
flags: {
|
|
703
|
+
digest: {
|
|
704
|
+
kind: "string",
|
|
705
|
+
required: true,
|
|
706
|
+
description: "The flow.digest id the operator reviewed — 12 hex of sha256.",
|
|
707
|
+
},
|
|
708
|
+
"dry-run": {
|
|
709
|
+
kind: "boolean",
|
|
710
|
+
required: false,
|
|
711
|
+
description: "Evaluate preflight only — nothing leaves the machine.",
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
execute: runFlowPush,
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
name: "flow.status",
|
|
718
|
+
description:
|
|
719
|
+
"Read-only session-branch report (RFC-1487): every auto branch " +
|
|
720
|
+
"with its registry entry, worktree, uncommitted-change count, " +
|
|
721
|
+
"distance to develop, last commit time, held state and the 72 h " +
|
|
722
|
+
"stale flag. Reports FLOW-07 at error severity when the registry " +
|
|
723
|
+
"fails the forge/flow-registry@1 schema.",
|
|
724
|
+
scope: "workspace",
|
|
725
|
+
contract: "flow",
|
|
726
|
+
rules: [{ id: "FLOW-07", severity: "error" }],
|
|
727
|
+
mutatesState: false,
|
|
728
|
+
execOnReadOnly: true,
|
|
729
|
+
writes: [],
|
|
730
|
+
coverage: "operator",
|
|
731
|
+
coverageNote: "session lifecycle — activated by the wave-4 switch-over RFC",
|
|
732
|
+
reads: ["forge.yaml", ".git/**"],
|
|
733
|
+
cacheable: false,
|
|
734
|
+
flags: {},
|
|
735
|
+
execute: runFlowStatus,
|
|
736
|
+
},
|
|
737
|
+
],
|
|
738
|
+
pipelines: [],
|
|
739
|
+
};
|
|
740
|
+
}
|