@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/src/tests/create.test.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
<item>RFC-0544: initial forge.create tests.</item>
|
|
10
10
|
<item>RFC-0877: rewrite tests for --in-place mode, add strict empty-directory check and name-derivation tests.</item>
|
|
11
11
|
<item>RFC-1019: add tests for pre-user-prompt-wrapper.mjs, shell auto-detection, hooks.json wrapper, pinned.yaml.</item>
|
|
12
|
+
<item>RFC-1500: step 2 — forge.create adopts the fixed branch model</item>
|
|
12
13
|
</CHANGE_SUMMARY>
|
|
13
14
|
*/
|
|
14
15
|
|
|
@@ -54,7 +55,7 @@ afterEach(async () => {
|
|
|
54
55
|
|
|
55
56
|
test("forge create --in-place scaffolds in cwd with forge.yaml and docs dirs", async () => {
|
|
56
57
|
const result = await runCreate(
|
|
57
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
58
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
58
59
|
makeContext(tempDir),
|
|
59
60
|
);
|
|
60
61
|
expect(result.exitCode).toBe(0);
|
|
@@ -73,7 +74,7 @@ test("forge create --in-place refuses when forge artifacts already exist", async
|
|
|
73
74
|
await writeFile(join(tempDir, "forge.yaml"), "existing: true", "utf8");
|
|
74
75
|
|
|
75
76
|
const result = await runCreate(
|
|
76
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
77
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
77
78
|
makeContext(tempDir),
|
|
78
79
|
);
|
|
79
80
|
expect(result.exitCode).toBe(1);
|
|
@@ -85,7 +86,7 @@ test("forge create --in-place refuses when non-forge files exist in target direc
|
|
|
85
86
|
await writeFile(join(tempDir, "some-file.txt"), "hello", "utf8");
|
|
86
87
|
|
|
87
88
|
const result = await runCreate(
|
|
88
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
89
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
89
90
|
makeContext(tempDir),
|
|
90
91
|
);
|
|
91
92
|
expect(result.exitCode).toBe(1);
|
|
@@ -98,7 +99,7 @@ test("forge create --in-place tolerates only .git directory in target directory"
|
|
|
98
99
|
await mkdir(join(tempDir, ".git"), { recursive: true });
|
|
99
100
|
|
|
100
101
|
const result = await runCreate(
|
|
101
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
102
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
102
103
|
makeContext(tempDir),
|
|
103
104
|
);
|
|
104
105
|
expect(result.exitCode).toBe(0);
|
|
@@ -109,7 +110,7 @@ test("forge create --in-place tolerates only .git directory in target directory"
|
|
|
109
110
|
|
|
110
111
|
test("forge create fails on non-kebab-case name", async () => {
|
|
111
112
|
const result = await runCreate(
|
|
112
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "MyProject" } },
|
|
113
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "MyProject" } },
|
|
113
114
|
makeContext(tempDir),
|
|
114
115
|
);
|
|
115
116
|
expect(result.exitCode).toBe(1);
|
|
@@ -129,7 +130,7 @@ test("forge create fails on missing --in-place flag", async () => {
|
|
|
129
130
|
|
|
130
131
|
test("forge create fails on missing --profile flag", async () => {
|
|
131
132
|
const result = await runCreate(
|
|
132
|
-
{ argv: [], flags: { "in-place": true, name: "my-project" } },
|
|
133
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, name: "my-project" } },
|
|
133
134
|
makeContext(tempDir),
|
|
134
135
|
);
|
|
135
136
|
expect(result.exitCode).toBe(1);
|
|
@@ -139,7 +140,7 @@ test("forge create fails on missing --profile flag", async () => {
|
|
|
139
140
|
|
|
140
141
|
test("forge create --in-place --profile forge-shell uses forge-shell profile", async () => {
|
|
141
142
|
const result = await runCreate(
|
|
142
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
143
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
143
144
|
makeContext(tempDir),
|
|
144
145
|
);
|
|
145
146
|
expect(result.exitCode).toBe(0);
|
|
@@ -151,7 +152,7 @@ test("forge create --package-manager npm writes npm into forge.yaml with npx bin
|
|
|
151
152
|
{
|
|
152
153
|
argv: [],
|
|
153
154
|
flags: {
|
|
154
|
-
"in-place": true,
|
|
155
|
+
"in-place": true, "no-flow": true,
|
|
155
156
|
profile: "forge-shell",
|
|
156
157
|
name: "my-project",
|
|
157
158
|
"package-manager": "npm",
|
|
@@ -172,7 +173,7 @@ test("forge create --package-manager pnpm writes pnpm into forge.yaml", async ()
|
|
|
172
173
|
{
|
|
173
174
|
argv: [],
|
|
174
175
|
flags: {
|
|
175
|
-
"in-place": true,
|
|
176
|
+
"in-place": true, "no-flow": true,
|
|
176
177
|
profile: "forge-shell",
|
|
177
178
|
name: "my-project",
|
|
178
179
|
"package-manager": "pnpm",
|
|
@@ -189,7 +190,7 @@ test("forge create --package-manager pnpm writes pnpm into forge.yaml", async ()
|
|
|
189
190
|
|
|
190
191
|
test("forge.yaml has non-null forge-CLI bindings and null stack bindings", async () => {
|
|
191
192
|
await runCreate(
|
|
192
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
193
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
193
194
|
makeContext(tempDir),
|
|
194
195
|
);
|
|
195
196
|
|
|
@@ -206,7 +207,7 @@ test("forge.yaml has non-null forge-CLI bindings and null stack bindings", async
|
|
|
206
207
|
|
|
207
208
|
test("forge.yaml has forge.syncedVersion set", async () => {
|
|
208
209
|
await runCreate(
|
|
209
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
210
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
210
211
|
makeContext(tempDir),
|
|
211
212
|
);
|
|
212
213
|
|
|
@@ -216,7 +217,7 @@ test("forge.yaml has forge.syncedVersion set", async () => {
|
|
|
216
217
|
|
|
217
218
|
test("result includes nextSteps with forge-bootstrap", async () => {
|
|
218
219
|
const result = await runCreate(
|
|
219
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
220
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
220
221
|
makeContext(tempDir),
|
|
221
222
|
);
|
|
222
223
|
expect(result.exitCode).toBe(0);
|
|
@@ -227,7 +228,7 @@ test("result includes nextSteps with forge-bootstrap", async () => {
|
|
|
227
228
|
|
|
228
229
|
test("forge create generates AGENTS.md with behavioral layer (RFC-0548)", async () => {
|
|
229
230
|
const result = await runCreate(
|
|
230
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
231
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
231
232
|
makeContext(tempDir),
|
|
232
233
|
);
|
|
233
234
|
expect(result.exitCode).toBe(0);
|
|
@@ -244,7 +245,7 @@ test("forge create generates AGENTS.md with behavioral layer (RFC-0548)", async
|
|
|
244
245
|
|
|
245
246
|
test("forge create writes NEXT_STEPS.md with greenfield and transplant guidance (RFC-0550)", async () => {
|
|
246
247
|
const result = await runCreate(
|
|
247
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
248
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
248
249
|
makeContext(tempDir),
|
|
249
250
|
);
|
|
250
251
|
expect(result.exitCode).toBe(0);
|
|
@@ -262,7 +263,7 @@ test("forge create writes NEXT_STEPS.md with greenfield and transplant guidance
|
|
|
262
263
|
|
|
263
264
|
test("forge create root package.json has scripts and replaced project name", async () => {
|
|
264
265
|
const result = await runCreate(
|
|
265
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
266
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
266
267
|
makeContext(tempDir),
|
|
267
268
|
);
|
|
268
269
|
expect(result.exitCode).toBe(0);
|
|
@@ -282,7 +283,7 @@ test("forge create --in-place derives name from folder name when --name omitted"
|
|
|
282
283
|
await mkdir(namedDir, { recursive: true });
|
|
283
284
|
|
|
284
285
|
const result = await runCreate(
|
|
285
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell" } },
|
|
286
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell" } },
|
|
286
287
|
makeContext(namedDir),
|
|
287
288
|
);
|
|
288
289
|
expect(result.exitCode).toBe(0);
|
|
@@ -295,7 +296,7 @@ test("forge create --in-place derives name from folder name when --name omitted"
|
|
|
295
296
|
|
|
296
297
|
test("forge create --profile godot-game writes compass.fileExtensions into forge.yaml", async () => {
|
|
297
298
|
const result = await runCreate(
|
|
298
|
-
{ argv: [], flags: { "in-place": true, profile: "godot-game", name: "my-game" } },
|
|
299
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "godot-game", name: "my-game" } },
|
|
299
300
|
makeContext(tempDir),
|
|
300
301
|
);
|
|
301
302
|
expect(result.exitCode).toBe(0);
|
|
@@ -312,7 +313,7 @@ test("forge create --profile godot-game writes compass.fileExtensions into forge
|
|
|
312
313
|
|
|
313
314
|
test("forge create --in-place setup-git-guards.sh contains shell auto-detection (RFC-1019)", async () => {
|
|
314
315
|
const result = await runCreate(
|
|
315
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
316
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
316
317
|
makeContext(tempDir),
|
|
317
318
|
);
|
|
318
319
|
expect(result.exitCode).toBe(0);
|
|
@@ -326,7 +327,7 @@ test("forge create --in-place setup-git-guards.sh contains shell auto-detection
|
|
|
326
327
|
|
|
327
328
|
test("forge create --in-place .windsurf/hooks.json calls wrapper not bash directly (RFC-1019)", async () => {
|
|
328
329
|
const result = await runCreate(
|
|
329
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
330
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
330
331
|
makeContext(tempDir),
|
|
331
332
|
);
|
|
332
333
|
expect(result.exitCode).toBe(0);
|
|
@@ -339,7 +340,7 @@ test("forge create --in-place .windsurf/hooks.json calls wrapper not bash direct
|
|
|
339
340
|
|
|
340
341
|
test("forge create --in-place pins pre-user-prompt-wrapper.mjs in pinned.yaml (RFC-1019)", async () => {
|
|
341
342
|
const result = await runCreate(
|
|
342
|
-
{ argv: [], flags: { "in-place": true, profile: "forge-shell", name: "my-project" } },
|
|
343
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "forge-shell", name: "my-project" } },
|
|
343
344
|
makeContext(tempDir),
|
|
344
345
|
);
|
|
345
346
|
expect(result.exitCode).toBe(0);
|
|
@@ -351,7 +352,7 @@ test("forge create --in-place pins pre-user-prompt-wrapper.mjs in pinned.yaml (R
|
|
|
351
352
|
|
|
352
353
|
test("forge create --profile phaser-game writes compass.fileExtensions into forge.yaml", async () => {
|
|
353
354
|
const result = await runCreate(
|
|
354
|
-
{ argv: [], flags: { "in-place": true, profile: "phaser-game", name: "my-phaser-game" } },
|
|
355
|
+
{ argv: [], flags: { "in-place": true, "no-flow": true, profile: "phaser-game", name: "my-phaser-game" } },
|
|
355
356
|
makeContext(tempDir),
|
|
356
357
|
);
|
|
357
358
|
expect(result.exitCode).toBe(0);
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
9
|
<item>RFC-0391: initial doctor autonomy guard tests.</item>
|
|
10
|
+
<item>RFC-1487: step 7 — remove RFC-1462 session-worktree paths, COMMIT-FGN-01 guard, and .sessions model; document flow lifecycle</item>
|
|
10
11
|
</CHANGE_SUMMARY>
|
|
11
12
|
*/
|
|
12
13
|
|
|
@@ -131,7 +132,7 @@ test("doctor exempts the os/werkstatt/ adapter boundary", async () => {
|
|
|
131
132
|
);
|
|
132
133
|
await writeFile(
|
|
133
134
|
join(dir, "session-close.ts"),
|
|
134
|
-
'import {
|
|
135
|
+
'import type { CommitWerkstattResult } from "@warpgogol/werkstatt-engine/werkstatt";\nexport type { CommitWerkstattResult };',
|
|
135
136
|
"utf8",
|
|
136
137
|
);
|
|
137
138
|
|
|
@@ -71,6 +71,7 @@ Treat these XML documents as the primary semantic layer for AI work and keep the
|
|
|
71
71
|
| fo-idea-status | fo | user | read-only |
|
|
72
72
|
| fo-knowledge-distill | fo | user | document-only |
|
|
73
73
|
| fo-memory-sync | fo | user | content-mutation |
|
|
74
|
+
| fo-outbox | fo | user | document-only |
|
|
74
75
|
| fo-qa | fo | user | document-only |
|
|
75
76
|
| fo-reproduce | fo | user | code-mutation |
|
|
76
77
|
| fo-review | fo | user | read-only |
|
|
@@ -78,6 +79,8 @@ Treat these XML documents as the primary semantic layer for AI work and keep the
|
|
|
78
79
|
| fo-session-save | fo | user | document-only |
|
|
79
80
|
| fo-spec-ingest | fo | user | document-only |
|
|
80
81
|
| fo-step-commit | fo | model | code-mutation |
|
|
82
|
+
| fo-system-dispatch | fo | user | document-only |
|
|
83
|
+
| fo-task-run | fo | user | code-mutation |
|
|
81
84
|
| fo-triage | fo | user | document-only |
|
|
82
85
|
| forge-bootstrap | meta | user | content-mutation |
|
|
83
86
|
| grilling | shared | user | read-only |
|
|
@@ -140,6 +143,7 @@ When the operator expresses an intent in natural language, the agent routes to t
|
|
|
140
143
|
| "show RFC and ADR status", "what is the status of this RFC", "list RFCs by status" | `fo-idea-status` |
|
|
141
144
|
| "distill knowledge", "compact skill knowledge", "knowledge lifecycle", "promote fix patterns" | `fo-knowledge-distill` |
|
|
142
145
|
| "sync memory from codex", "import external agent knowledge", "recall sessions from other tools", "sync memory from claude code" | `fo-memory-sync` |
|
|
146
|
+
| "request a contract", "add an outbox entry", "I need something another product provides" | `fo-outbox` |
|
|
143
147
|
| "I found a bug", "file a GitHub issue for this bug", "report a bug conversationally", "interactive QA session" | `fo-qa` |
|
|
144
148
|
| "reproduce the bug", "reproduce this defect", "prove it fails first", "reproduction-first", "подтверди дефект тестом" | `fo-reproduce` |
|
|
145
149
|
| "проверим всё ли сделали правильно", "проверь изменения", "review this session", "review this code diff", "check code against Forge standards" | `fo-review` |
|
|
@@ -147,6 +151,8 @@ When the operator expresses an intent in natural language, the agent routes to t
|
|
|
147
151
|
| "save this session", "enhance session transcript with annotations", "save session with quality checks" | `fo-session-save` |
|
|
148
152
|
| "ingest external specification", "vendor spec package into docs", "author spec skeleton" | `fo-spec-ingest` |
|
|
149
153
|
| "закоммитим", "commit after request", "auto-commit changes", "step commit" | `fo-step-commit` |
|
|
154
|
+
| "dispatch a system task", "run the system queue", "move a task to ready and dispatch it" | `fo-system-dispatch` |
|
|
155
|
+
| "run this task in the product", "execute the planted brief", "work this dispatched task" | `fo-task-run` |
|
|
150
156
|
| "triage this issue", "categorize incoming bug report", "triage external pull request", "process feature request" | `fo-triage` |
|
|
151
157
|
|
|
152
158
|
The agent uses judgment to calibrate routing — minor edits (typo fixes, small CSS changes) do not require skill invocation, while significant changes (new features, architectural decisions) do.
|
|
@@ -8,12 +8,14 @@ Unit tests for implement stamp covering rfc.implement.stamp. It also guards the
|
|
|
8
8
|
</non-goals>
|
|
9
9
|
</MODULE_CONTRACT>
|
|
10
10
|
<CHANGE_SUMMARY>
|
|
11
|
-
<item>RFC-1322: step 4 — --check-criteria resolvable/unresolvable matrix + dry-run residual-unchecked fix</item>
|
|
12
11
|
<item>RFC-1322: fo-review fix pass — stale-envelope refresh, probes-less fail-closed, empty/dir/escape paths, line-ranges, --sync composition, fully-checked no-op</item>
|
|
13
12
|
<item>RFC-1322: evidence annotation extraction takes the last occurrence — prose mentions no longer shadow the annotation</item>
|
|
14
13
|
<item>RFC-1383: pins for the --check-criteria remedy hint, residual no-no-op, and N-of-M success output</item>
|
|
15
14
|
<item>RFC-1483: self-sufficient implement stamp — default repair pass, ordered remediation checklist, --no-repair</item>
|
|
16
|
-
<
|
|
15
|
+
<item>RFC-1489: batch test probes through one instrumented Vitest run + frontmatter corpus reads
|
|
16
|
+
|
|
17
|
+
runProbeSet is the single shared execution point: barrier-free segments of test probes sharing one effective bound run in one vitest --reporter=json --outputFile process with per-(file,testName) attribution; missing files/reports yield unverified. run/page/proof and all non-test kinds are barriers. --no-batch escapes to the legacy path on acceptance.run, verification.emit and verification.refresh. rfc.validate reads non-target corpus files frontmatter-only via readRfcFrontmatter (64 KiB bound, full-parse fallback); emit/refresh/acceptance corpus scans use the same accessor. Corpus map slimmed to RfcCorpusEntry {fileName, frontmatter}.</item>
|
|
18
|
+
<history>RFC-1310, RFC-1311, RFC-1322</history>
|
|
17
19
|
</CHANGE_SUMMARY>
|
|
18
20
|
*/
|
|
19
21
|
|
|
@@ -25,7 +27,28 @@ import { execFileSync } from "node:child_process";
|
|
|
25
27
|
import { parse as yamlParse, stringify as yamlStringify } from "yaml";
|
|
26
28
|
|
|
27
29
|
const { mockRunProbe } = vi.hoisted(() => ({ mockRunProbe: vi.fn() }));
|
|
28
|
-
vi.mock("../../os/rfc/acceptance.ts", () => ({
|
|
30
|
+
vi.mock("../../os/rfc/acceptance.ts", () => ({
|
|
31
|
+
runProbe: mockRunProbe,
|
|
32
|
+
// RFC-1489: emit (which stamp composes) drives runProbeSet — the shim
|
|
33
|
+
// preserves the per-probe mock contract.
|
|
34
|
+
runProbeSet: async (probes: unknown[], opts: Record<string, unknown>) => {
|
|
35
|
+
const results = [];
|
|
36
|
+
const durationsMs = [];
|
|
37
|
+
for (const p of probes) {
|
|
38
|
+
results.push(
|
|
39
|
+
await mockRunProbe(
|
|
40
|
+
p,
|
|
41
|
+
opts.workspaceRoot,
|
|
42
|
+
opts.commandRegistry,
|
|
43
|
+
opts.forgeRoot,
|
|
44
|
+
opts.outcomeSession,
|
|
45
|
+
),
|
|
46
|
+
);
|
|
47
|
+
durationsMs.push(0);
|
|
48
|
+
}
|
|
49
|
+
return { results, durationsMs };
|
|
50
|
+
},
|
|
51
|
+
}));
|
|
29
52
|
|
|
30
53
|
import { runRfcImplementStamp } from "../../os/rfc/handlers/implement-stamp.ts";
|
|
31
54
|
import type { ForgeCommandInput, ForgeRuntimeContext, ForgeLogger } from "../../src/types.ts";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>RFC-1500 AC-4: every built-in stack profile ships the two flow
|
|
4
|
+
lifecycle hooks — hooks/integration-gate.sh and hooks/worktree-setup.sh —
|
|
5
|
+
as workspace.files entries whose contents are POSIX-sh scripts with a
|
|
6
|
+
shebang first line and a clean `sh -n` parse.</purpose>
|
|
7
|
+
<non-goals>
|
|
8
|
+
<item>Not a gate-semantics test — the flow runner contract is covered by os/flow tests; this file pins the profile payload only.</item>
|
|
9
|
+
</non-goals>
|
|
10
|
+
</MODULE_CONTRACT>
|
|
11
|
+
<CHANGE_SUMMARY>
|
|
12
|
+
<item>RFC-1500: step 1 — profile flow hooks contract test</item>
|
|
13
|
+
<item>RFC-1500: step 1 — profile flow hooks</item>
|
|
14
|
+
</CHANGE_SUMMARY>
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { execFileSync } from "node:child_process";
|
|
18
|
+
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
19
|
+
import { tmpdir } from "node:os";
|
|
20
|
+
import { join } from "node:path";
|
|
21
|
+
|
|
22
|
+
import { describe, expect, it } from "vitest";
|
|
23
|
+
|
|
24
|
+
import { listStackProfiles } from "../profiles/stack-profile.ts";
|
|
25
|
+
|
|
26
|
+
const FORGE_ROOT = join(import.meta.dirname, "..", "..");
|
|
27
|
+
const HOOK_PATHS = ["hooks/integration-gate.sh", "hooks/worktree-setup.sh"];
|
|
28
|
+
|
|
29
|
+
describe("RFC-1500: built-in profiles ship flow hooks (AC-4)", () => {
|
|
30
|
+
const profiles = listStackProfiles(FORGE_ROOT);
|
|
31
|
+
|
|
32
|
+
it("loads at least the six built-in profiles", () => {
|
|
33
|
+
const ids = profiles.map((p) => p.id);
|
|
34
|
+
for (const expected of [
|
|
35
|
+
"typescript",
|
|
36
|
+
"phaser-game",
|
|
37
|
+
"godot-game",
|
|
38
|
+
"knowledge",
|
|
39
|
+
"forge-shell",
|
|
40
|
+
"site-workshop",
|
|
41
|
+
]) {
|
|
42
|
+
expect(ids).toContain(expected);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
for (const profile of profiles) {
|
|
47
|
+
describe(`profile ${profile.id}`, () => {
|
|
48
|
+
const files = profile.workspace.files;
|
|
49
|
+
const paths = files.map((f) => f.path);
|
|
50
|
+
|
|
51
|
+
it("declares both hook files in workspace.files", () => {
|
|
52
|
+
for (const hookPath of HOOK_PATHS) {
|
|
53
|
+
expect(paths).toContain(hookPath);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
for (const hookPath of HOOK_PATHS) {
|
|
58
|
+
it(`${hookPath} starts with #!/bin/sh and parses with sh -n`, async () => {
|
|
59
|
+
const entry = files.find((f) => f.path === hookPath);
|
|
60
|
+
expect(entry).toBeDefined();
|
|
61
|
+
const content = entry!.content;
|
|
62
|
+
expect(content.startsWith("#!/bin/sh")).toBe(true);
|
|
63
|
+
|
|
64
|
+
const dir = await mkdtemp(join(tmpdir(), "flow-hook-"));
|
|
65
|
+
try {
|
|
66
|
+
const scriptPath = join(dir, "hook.sh");
|
|
67
|
+
await writeFile(scriptPath, content, "utf8");
|
|
68
|
+
// sh -n parses without executing — a syntax failure exits non-zero.
|
|
69
|
+
execFileSync("sh", ["-n", scriptPath], { stdio: "pipe" });
|
|
70
|
+
} finally {
|
|
71
|
+
await rm(dir, { recursive: true, force: true });
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
});
|
|
@@ -9,6 +9,7 @@ Unit tests for profile schema covering its documented public contract and regres
|
|
|
9
9
|
</MODULE_CONTRACT>
|
|
10
10
|
<CHANGE_SUMMARY>
|
|
11
11
|
<item>RFC-0638: initial domain field tests — parsing, defaults, validation, backward compat.</item>
|
|
12
|
+
<item>RFC-1508: implement RFC-1508 — system profile, system map schemas and system.map.validate</item>
|
|
12
13
|
</CHANGE_SUMMARY>
|
|
13
14
|
*/
|
|
14
15
|
|
|
@@ -162,7 +163,7 @@ test("artifacts with missing required extensions field fails", () => {
|
|
|
162
163
|
|
|
163
164
|
test("all shipped profiles parse without changes", () => {
|
|
164
165
|
const profiles = listStackProfiles(FORGE_ROOT);
|
|
165
|
-
expect(profiles.length).toBe(
|
|
166
|
+
expect(profiles.length).toBe(7);
|
|
166
167
|
for (const profile of profiles) {
|
|
167
168
|
expect(profile.id).toBeDefined();
|
|
168
169
|
expect(profile.workspace.dirs.length).toBeGreaterThan(0);
|
|
@@ -8,6 +8,7 @@ unknown fields, required fields, and type constraints (RFC-0856).</purpose>
|
|
|
8
8
|
</MODULE_CONTRACT>
|
|
9
9
|
<CHANGE_SUMMARY>
|
|
10
10
|
<item>RFC-0856: initial schema tests.</item>
|
|
11
|
+
<item>RFC-1499: step 3 — program manifests drop branch; legacy branch key stripped at parse</item>
|
|
11
12
|
</CHANGE_SUMMARY>
|
|
12
13
|
*/
|
|
13
14
|
|
|
@@ -23,6 +24,39 @@ import {
|
|
|
23
24
|
|
|
24
25
|
describe("programManifestSchema", () => {
|
|
25
26
|
it("accepts a valid manifest", () => {
|
|
27
|
+
const manifest = {
|
|
28
|
+
schema: "forge/program@1",
|
|
29
|
+
program: "RFC-0855",
|
|
30
|
+
title: "Test program",
|
|
31
|
+
state: "preparing",
|
|
32
|
+
currentPacket: "000-test",
|
|
33
|
+
steward: "human:alice",
|
|
34
|
+
sequential: true,
|
|
35
|
+
parallelism: 1,
|
|
36
|
+
packets: [
|
|
37
|
+
{
|
|
38
|
+
order: 0,
|
|
39
|
+
packetId: "000-test",
|
|
40
|
+
file: "000-test.md",
|
|
41
|
+
state: "draft",
|
|
42
|
+
governingDecision: "RFC-0856",
|
|
43
|
+
decisionKind: "rfc",
|
|
44
|
+
resolvedRfc: "RFC-0856",
|
|
45
|
+
dependsOnPacket: null,
|
|
46
|
+
baseCommit: null,
|
|
47
|
+
sealCommit: null,
|
|
48
|
+
completion: null,
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const result = programManifestSchema.safeParse(manifest);
|
|
54
|
+
expect(result.success).toBe(true);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// RFC-1499 AC-5: branch removed — manifests without it parse; legacy
|
|
58
|
+
// manifests carrying it parse too, with the key ignored (dropped).
|
|
59
|
+
it("AC-5: parses a manifest carrying a legacy branch key and drops it", () => {
|
|
26
60
|
const manifest = {
|
|
27
61
|
schema: "forge/program@1",
|
|
28
62
|
program: "RFC-0855",
|
|
@@ -52,6 +86,9 @@ describe("programManifestSchema", () => {
|
|
|
52
86
|
|
|
53
87
|
const result = programManifestSchema.safeParse(manifest);
|
|
54
88
|
expect(result.success).toBe(true);
|
|
89
|
+
if (result.success) {
|
|
90
|
+
expect("branch" in result.data).toBe(false);
|
|
91
|
+
}
|
|
55
92
|
});
|
|
56
93
|
|
|
57
94
|
it("rejects unknown fields", () => {
|
|
@@ -59,7 +96,6 @@ describe("programManifestSchema", () => {
|
|
|
59
96
|
schema: "forge/program@1",
|
|
60
97
|
program: "RFC-0855",
|
|
61
98
|
title: "Test",
|
|
62
|
-
branch: "main",
|
|
63
99
|
state: "preparing",
|
|
64
100
|
currentPacket: "000-test",
|
|
65
101
|
steward: "human:alice",
|
|
@@ -78,7 +114,6 @@ describe("programManifestSchema", () => {
|
|
|
78
114
|
schema: "forge/program@1",
|
|
79
115
|
program: "RFC-0855",
|
|
80
116
|
title: "Test",
|
|
81
|
-
branch: "main",
|
|
82
117
|
state: "preparing",
|
|
83
118
|
currentPacket: "000-test",
|
|
84
119
|
steward: "human:alice",
|
|
@@ -96,7 +131,6 @@ describe("programManifestSchema", () => {
|
|
|
96
131
|
schema: "forge/program@1",
|
|
97
132
|
program: "RFC-0855",
|
|
98
133
|
title: "Test",
|
|
99
|
-
branch: "main",
|
|
100
134
|
state: "preparing",
|
|
101
135
|
currentPacket: "000-test",
|
|
102
136
|
steward: "human:alice",
|
|
@@ -112,6 +146,32 @@ describe("programManifestSchema", () => {
|
|
|
112
146
|
|
|
113
147
|
describe("programPacketSchema", () => {
|
|
114
148
|
it("accepts a valid packet", () => {
|
|
149
|
+
const packet = {
|
|
150
|
+
schema: "forge/program-packet@1",
|
|
151
|
+
program: "RFC-0855",
|
|
152
|
+
packetId: "000-test",
|
|
153
|
+
state: "draft",
|
|
154
|
+
governingDecision: "RFC-0856",
|
|
155
|
+
decisionKind: "rfc",
|
|
156
|
+
resolvedRfc: "RFC-0856",
|
|
157
|
+
dependsOnPacket: null,
|
|
158
|
+
baseCommit: null,
|
|
159
|
+
steward: "human:alice",
|
|
160
|
+
normativeSources: [{ path: "docs/rfcs/rfc-0856.md", sha256: "a".repeat(64) }],
|
|
161
|
+
allowedFiles: ["packages/forge/**"],
|
|
162
|
+
forbiddenFiles: ["missions/**"],
|
|
163
|
+
permittedTransitionDiagnostics: [],
|
|
164
|
+
requiredValidations: [
|
|
165
|
+
{ command: "pnpm test", expectedStatus: "pass", expectedDiagnostics: [] },
|
|
166
|
+
],
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
const result = programPacketSchema.safeParse(packet);
|
|
170
|
+
expect(result.success).toBe(true);
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
// RFC-1499 AC-5: same legacy-branch tolerance at the packet level.
|
|
174
|
+
it("AC-5: parses a packet carrying a legacy branch key and drops it", () => {
|
|
115
175
|
const packet = {
|
|
116
176
|
schema: "forge/program-packet@1",
|
|
117
177
|
program: "RFC-0855",
|
|
@@ -135,6 +195,9 @@ describe("programPacketSchema", () => {
|
|
|
135
195
|
|
|
136
196
|
const result = programPacketSchema.safeParse(packet);
|
|
137
197
|
expect(result.success).toBe(true);
|
|
198
|
+
if (result.success) {
|
|
199
|
+
expect("branch" in result.data).toBe(false);
|
|
200
|
+
}
|
|
138
201
|
});
|
|
139
202
|
|
|
140
203
|
it("rejects unknown fields", () => {
|
|
@@ -148,7 +211,6 @@ describe("programPacketSchema", () => {
|
|
|
148
211
|
resolvedRfc: "RFC-0856",
|
|
149
212
|
dependsOnPacket: null,
|
|
150
213
|
baseCommit: null,
|
|
151
|
-
branch: "main",
|
|
152
214
|
steward: "human:alice",
|
|
153
215
|
normativeSources: [],
|
|
154
216
|
allowedFiles: [],
|
|
@@ -173,7 +235,6 @@ describe("programPacketSchema", () => {
|
|
|
173
235
|
resolvedRfc: "RFC-0856",
|
|
174
236
|
dependsOnPacket: null,
|
|
175
237
|
baseCommit: null,
|
|
176
|
-
branch: "main",
|
|
177
238
|
steward: "human:alice",
|
|
178
239
|
normativeSources: [],
|
|
179
240
|
allowedFiles: [],
|
|
@@ -197,7 +258,6 @@ describe("programPacketSchema", () => {
|
|
|
197
258
|
resolvedRfc: "RFC-0856",
|
|
198
259
|
dependsOnPacket: null,
|
|
199
260
|
baseCommit: null,
|
|
200
|
-
branch: "main",
|
|
201
261
|
steward: "human:alice",
|
|
202
262
|
normativeSources: [{ path: "test.md", sha256: "short" }],
|
|
203
263
|
allowedFiles: ["packages/**"],
|
|
@@ -10,6 +10,7 @@ and execution phases.</purpose>
|
|
|
10
10
|
</MODULE_CONTRACT>
|
|
11
11
|
<CHANGE_SUMMARY>
|
|
12
12
|
<item>RFC-0857: spec-node seal validation and phase-aware lease tests.</item>
|
|
13
|
+
<item>RFC-1499: step 3 — program manifests drop branch; legacy branch key stripped at parse</item>
|
|
13
14
|
</CHANGE_SUMMARY>
|
|
14
15
|
*/
|
|
15
16
|
|
|
@@ -28,7 +29,6 @@ function makeManifest(packets: ProgramPacketIndexEntry[]): ProgramManifest {
|
|
|
28
29
|
schema: "forge/program@1",
|
|
29
30
|
program: "RFC-0855",
|
|
30
31
|
title: "Test",
|
|
31
|
-
branch: "main",
|
|
32
32
|
state: "executing",
|
|
33
33
|
currentPacket: "140-test",
|
|
34
34
|
steward: "human:alice",
|
|
@@ -49,7 +49,6 @@ function makePacket(): ProgramPacket {
|
|
|
49
49
|
resolvedRfc: null,
|
|
50
50
|
dependsOnPacket: "130-predecessor",
|
|
51
51
|
baseCommit: "abc123",
|
|
52
|
-
branch: "main",
|
|
53
52
|
steward: "human:alice",
|
|
54
53
|
normativeSources: [{ path: "docs/rfcs/rfc-0857.md", sha256: "a".repeat(64) }],
|
|
55
54
|
allowedFiles: ["packages/forge/**"],
|
|
@@ -99,7 +98,6 @@ describe("RFC-0857: spec-node seal validation", () => {
|
|
|
99
98
|
const entry = makeEntry();
|
|
100
99
|
|
|
101
100
|
const violations = validateSealTransition(manifest, entry, packet, {
|
|
102
|
-
branch: "main",
|
|
103
101
|
head: "abc123",
|
|
104
102
|
isClean: true,
|
|
105
103
|
hasActiveLease: false,
|
|
@@ -116,7 +114,6 @@ describe("RFC-0857: spec-node seal validation", () => {
|
|
|
116
114
|
const entry = makeEntry({ resolvedRfc: "RFC-0865" });
|
|
117
115
|
|
|
118
116
|
const violations = validateSealTransition(manifest, entry, packet, {
|
|
119
|
-
branch: "main",
|
|
120
117
|
head: "abc123",
|
|
121
118
|
isClean: true,
|
|
122
119
|
hasActiveLease: false,
|
|
@@ -137,7 +134,6 @@ describe("RFC-0857: spec-node seal validation", () => {
|
|
|
137
134
|
const entry = makeEntry({ decisionKind: "rfc", resolvedRfc: "RFC-0856" });
|
|
138
135
|
|
|
139
136
|
const violations = validateSealTransition(manifest, entry, packet, {
|
|
140
|
-
branch: "main",
|
|
141
137
|
head: "abc123",
|
|
142
138
|
isClean: true,
|
|
143
139
|
hasActiveLease: false,
|
|
@@ -11,6 +11,9 @@ Unit tests for rfc evidence sync covering rfc.evidence.sync (RFC-1306); rfc.impl
|
|
|
11
11
|
<item>RFC-1311: Compass header sweep — declares the rfc suite's contract for test-file scaffold coverage.</item>
|
|
12
12
|
<item>RFC-1310: governance-id parity guards on ecosystem.commit and rfc.implement.stamp</item>
|
|
13
13
|
<item>RFC-1320</item>
|
|
14
|
+
<item>RFC-1489: batch test probes through one instrumented Vitest run + frontmatter corpus reads
|
|
15
|
+
|
|
16
|
+
runProbeSet is the single shared execution point: barrier-free segments of test probes sharing one effective bound run in one vitest --reporter=json --outputFile process with per-(file,testName) attribution; missing files/reports yield unverified. run/page/proof and all non-test kinds are barriers. --no-batch escapes to the legacy path on acceptance.run, verification.emit and verification.refresh. rfc.validate reads non-target corpus files frontmatter-only via readRfcFrontmatter (64 KiB bound, full-parse fallback); emit/refresh/acceptance corpus scans use the same accessor. Corpus map slimmed to RfcCorpusEntry {fileName, frontmatter}.</item>
|
|
14
17
|
</CHANGE_SUMMARY>
|
|
15
18
|
*/
|
|
16
19
|
|
|
@@ -213,6 +216,25 @@ const { mockRunProbe } = vi.hoisted(() => ({ mockRunProbe: vi.fn() }));
|
|
|
213
216
|
vi.mock("../../os/rfc/acceptance.ts", async (importOriginal) => ({
|
|
214
217
|
...(await importOriginal<typeof import("../../os/rfc/acceptance.ts")>()),
|
|
215
218
|
runProbe: mockRunProbe,
|
|
219
|
+
// RFC-1489: emit drives runProbeSet — the shim preserves the per-probe
|
|
220
|
+
// mock contract so these tests observe the same probe calls as before.
|
|
221
|
+
runProbeSet: async (probes: unknown[], opts: Record<string, unknown>) => {
|
|
222
|
+
const results = [];
|
|
223
|
+
const durationsMs = [];
|
|
224
|
+
for (const p of probes) {
|
|
225
|
+
results.push(
|
|
226
|
+
await mockRunProbe(
|
|
227
|
+
p,
|
|
228
|
+
opts.workspaceRoot,
|
|
229
|
+
opts.commandRegistry,
|
|
230
|
+
opts.forgeRoot,
|
|
231
|
+
opts.outcomeSession,
|
|
232
|
+
),
|
|
233
|
+
);
|
|
234
|
+
durationsMs.push(0);
|
|
235
|
+
}
|
|
236
|
+
return { results, durationsMs };
|
|
237
|
+
},
|
|
216
238
|
}));
|
|
217
239
|
|
|
218
240
|
const git = (dir: string, args: string[]) =>
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
<item>RFC-1310: governance-id parity guards on ecosystem.commit and rfc.implement.stamp</item>
|
|
12
12
|
<item>RFC-1321: lowercase --id satisfies an uppercase subject (AC-3)</item>
|
|
13
13
|
<item>RFC-1322: step 4 — --check-criteria resolvable/unresolvable matrix + dry-run residual-unchecked fix</item>
|
|
14
|
+
<item>RFC-1489: batch test probes through one instrumented Vitest run + frontmatter corpus reads
|
|
15
|
+
|
|
16
|
+
runProbeSet is the single shared execution point: barrier-free segments of test probes sharing one effective bound run in one vitest --reporter=json --outputFile process with per-(file,testName) attribution; missing files/reports yield unverified. run/page/proof and all non-test kinds are barriers. --no-batch escapes to the legacy path on acceptance.run, verification.emit and verification.refresh. rfc.validate reads non-target corpus files frontmatter-only via readRfcFrontmatter (64 KiB bound, full-parse fallback); emit/refresh/acceptance corpus scans use the same accessor. Corpus map slimmed to RfcCorpusEntry {fileName, frontmatter}.</item>
|
|
14
17
|
</CHANGE_SUMMARY>
|
|
15
18
|
*/
|
|
16
19
|
|
|
@@ -21,7 +24,28 @@ import { tmpdir } from "node:os";
|
|
|
21
24
|
import { execFileSync } from "node:child_process";
|
|
22
25
|
|
|
23
26
|
const { mockRunProbe } = vi.hoisted(() => ({ mockRunProbe: vi.fn() }));
|
|
24
|
-
vi.mock("../../os/rfc/acceptance.ts", () => ({
|
|
27
|
+
vi.mock("../../os/rfc/acceptance.ts", () => ({
|
|
28
|
+
runProbe: mockRunProbe,
|
|
29
|
+
// RFC-1489: emit (which stamp composes) drives runProbeSet — the shim
|
|
30
|
+
// preserves the per-probe mock contract.
|
|
31
|
+
runProbeSet: async (probes: unknown[], opts: Record<string, unknown>) => {
|
|
32
|
+
const results = [];
|
|
33
|
+
const durationsMs = [];
|
|
34
|
+
for (const p of probes) {
|
|
35
|
+
results.push(
|
|
36
|
+
await mockRunProbe(
|
|
37
|
+
p,
|
|
38
|
+
opts.workspaceRoot,
|
|
39
|
+
opts.commandRegistry,
|
|
40
|
+
opts.forgeRoot,
|
|
41
|
+
opts.outcomeSession,
|
|
42
|
+
),
|
|
43
|
+
);
|
|
44
|
+
durationsMs.push(0);
|
|
45
|
+
}
|
|
46
|
+
return { results, durationsMs };
|
|
47
|
+
},
|
|
48
|
+
}));
|
|
25
49
|
|
|
26
50
|
import { runRfcImplementStamp } from "../../os/rfc/handlers/implement-stamp.ts";
|
|
27
51
|
import type { ForgeCommandInput, ForgeRuntimeContext, ForgeLogger } from "../../src/types.ts";
|