@warpgogol/forge 9.6.3 → 9.7.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 +34 -0
- package/README.md +12 -0
- package/bin/cli.ts +40 -2
- package/dist/bin/cli.js +39 -2
- package/dist/bin/cli.js.map +1 -1
- package/dist/os/adr/handlers/implement-stamp.d.ts.map +1 -1
- package/dist/os/adr/handlers/implement-stamp.js +55 -19
- package/dist/os/adr/handlers/implement-stamp.js.map +1 -1
- package/dist/os/adr/handlers/validate.d.ts.map +1 -1
- package/dist/os/adr/handlers/validate.js +55 -21
- package/dist/os/adr/handlers/validate.js.map +1 -1
- package/dist/os/adversarial/adversarial.module.d.ts +3 -0
- package/dist/os/adversarial/adversarial.module.d.ts.map +1 -0
- package/dist/os/adversarial/adversarial.module.js +128 -0
- package/dist/os/adversarial/adversarial.module.js.map +1 -0
- package/dist/os/adversarial/catalog.d.ts +11 -0
- package/dist/os/adversarial/catalog.d.ts.map +1 -0
- package/dist/os/adversarial/catalog.js +72 -0
- package/dist/os/adversarial/catalog.js.map +1 -0
- package/dist/os/adversarial/runner.d.ts +17 -0
- package/dist/os/adversarial/runner.d.ts.map +1 -0
- package/dist/os/adversarial/runner.js +479 -0
- package/dist/os/adversarial/runner.js.map +1 -0
- package/dist/os/agent/handlers/agent-tiers-validate.d.ts.map +1 -1
- package/dist/os/agent/handlers/agent-tiers-validate.js +21 -7
- package/dist/os/agent/handlers/agent-tiers-validate.js.map +1 -1
- package/dist/os/agent/index.js +1 -1
- package/dist/os/agent-tools/agent-tools.module.d.ts +3 -0
- package/dist/os/agent-tools/agent-tools.module.d.ts.map +1 -0
- package/dist/os/agent-tools/agent-tools.module.js +80 -0
- package/dist/os/agent-tools/agent-tools.module.js.map +1 -0
- package/dist/os/agent-tools/generate.d.ts +18 -0
- package/dist/os/agent-tools/generate.d.ts.map +1 -0
- package/dist/os/agent-tools/generate.js +79 -0
- package/dist/os/agent-tools/generate.js.map +1 -0
- package/dist/os/agent-tools/handlers/tools-generate.d.ts +16 -0
- package/dist/os/agent-tools/handlers/tools-generate.d.ts.map +1 -0
- package/dist/os/agent-tools/handlers/tools-generate.js +108 -0
- package/dist/os/agent-tools/handlers/tools-generate.js.map +1 -0
- package/dist/os/agent-tools/index.d.ts +7 -0
- package/dist/os/agent-tools/index.d.ts.map +1 -0
- package/dist/os/agent-tools/index.js +16 -0
- package/dist/os/agent-tools/index.js.map +1 -0
- package/dist/os/agent-tools/manifest.d.ts +26 -0
- package/dist/os/agent-tools/manifest.d.ts.map +1 -0
- package/dist/os/agent-tools/manifest.js +70 -0
- package/dist/os/agent-tools/manifest.js.map +1 -0
- package/dist/os/agent-tools/serve.d.ts +21 -0
- package/dist/os/agent-tools/serve.d.ts.map +1 -0
- package/dist/os/agent-tools/serve.js +99 -0
- package/dist/os/agent-tools/serve.js.map +1 -0
- package/dist/os/agent-tools/server.d.ts +53 -0
- package/dist/os/agent-tools/server.d.ts.map +1 -0
- package/dist/os/agent-tools/server.js +381 -0
- package/dist/os/agent-tools/server.js.map +1 -0
- package/dist/os/agent-tools/types.d.ts +72 -0
- package/dist/os/agent-tools/types.d.ts.map +1 -0
- package/dist/os/agent-tools/types.js +74 -0
- package/dist/os/agent-tools/types.js.map +1 -0
- package/dist/os/authority/authority.module.d.ts.map +1 -1
- package/dist/os/authority/authority.module.js +17 -2
- package/dist/os/authority/authority.module.js.map +1 -1
- package/dist/os/checks/checks.module.d.ts.map +1 -1
- package/dist/os/checks/checks.module.js +44 -11
- package/dist/os/checks/checks.module.js.map +1 -1
- package/dist/os/checks/handlers/contribution-report.d.ts +3 -0
- package/dist/os/checks/handlers/contribution-report.d.ts.map +1 -1
- package/dist/os/checks/handlers/contribution-report.js +142 -23
- package/dist/os/checks/handlers/contribution-report.js.map +1 -1
- package/dist/os/checks/handlers/counters-export.d.ts.map +1 -1
- package/dist/os/checks/handlers/counters-export.js +75 -8
- package/dist/os/checks/handlers/counters-export.js.map +1 -1
- package/dist/os/checks/handlers/counters-validate.d.ts.map +1 -1
- package/dist/os/checks/handlers/counters-validate.js +1 -1
- package/dist/os/checks/handlers/counters-validate.js.map +1 -1
- package/dist/os/codebase/handlers/codebase-measure.d.ts.map +1 -1
- package/dist/os/codebase/handlers/codebase-measure.js +15 -18
- package/dist/os/codebase/handlers/codebase-measure.js.map +1 -1
- package/dist/os/codebase/index.d.ts.map +1 -1
- package/dist/os/codebase/index.js +4 -1
- package/dist/os/codebase/index.js.map +1 -1
- package/dist/os/compass/handlers/compass-audit-handler.d.ts +4 -2
- package/dist/os/compass/handlers/compass-audit-handler.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-audit-handler.js +229 -37
- package/dist/os/compass/handlers/compass-audit-handler.js.map +1 -1
- package/dist/os/compass/handlers/compass-header-scaffold-handler.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-header-scaffold-handler.js +45 -2
- package/dist/os/compass/handlers/compass-header-scaffold-handler.js.map +1 -1
- package/dist/os/compass/handlers/compass-migrate-handler.d.ts.map +1 -1
- package/dist/os/compass/handlers/compass-migrate-handler.js +44 -4
- package/dist/os/compass/handlers/compass-migrate-handler.js.map +1 -1
- package/dist/os/compass/handlers/git-revision.d.ts +31 -5
- package/dist/os/compass/handlers/git-revision.d.ts.map +1 -1
- package/dist/os/compass/handlers/git-revision.js +153 -55
- package/dist/os/compass/handlers/git-revision.js.map +1 -1
- package/dist/os/compass/handlers/summary-record.d.ts.map +1 -1
- package/dist/os/compass/handlers/summary-record.js +44 -9
- package/dist/os/compass/handlers/summary-record.js.map +1 -1
- package/dist/os/context/context.module.d.ts.map +1 -1
- package/dist/os/context/context.module.js +23 -4
- package/dist/os/context/context.module.js.map +1 -1
- package/dist/os/context/handlers/context-assemble.d.ts.map +1 -1
- package/dist/os/context/handlers/context-assemble.js +109 -16
- package/dist/os/context/handlers/context-assemble.js.map +1 -1
- package/dist/os/context/handlers/context-slate-eval.d.ts.map +1 -1
- package/dist/os/context/handlers/context-slate-eval.js +34 -9
- package/dist/os/context/handlers/context-slate-eval.js.map +1 -1
- package/dist/os/context/handlers/index-build.d.ts.map +1 -1
- package/dist/os/context/handlers/index-build.js +119 -26
- package/dist/os/context/handlers/index-build.js.map +1 -1
- package/dist/os/core/archive-regen.d.ts +55 -4
- package/dist/os/core/archive-regen.d.ts.map +1 -1
- package/dist/os/core/archive-regen.js +144 -11
- package/dist/os/core/archive-regen.js.map +1 -1
- package/dist/os/core/core.module.d.ts.map +1 -1
- package/dist/os/core/core.module.js +182 -50
- package/dist/os/core/core.module.js.map +1 -1
- package/dist/os/core/handlers/forge-autonomy-validate.d.ts +9 -2
- package/dist/os/core/handlers/forge-autonomy-validate.d.ts.map +1 -1
- package/dist/os/core/handlers/forge-autonomy-validate.js +81 -0
- package/dist/os/core/handlers/forge-autonomy-validate.js.map +1 -1
- package/dist/os/core/handlers/package-health.js +6 -6
- package/dist/os/core/handlers/policy-digest.d.ts +11 -0
- package/dist/os/core/handlers/policy-digest.d.ts.map +1 -0
- package/dist/os/core/handlers/policy-digest.js +421 -0
- package/dist/os/core/handlers/policy-digest.js.map +1 -0
- package/dist/os/correctness/audit/snapshot.d.ts.map +1 -1
- package/dist/os/correctness/audit/snapshot.js +46 -15
- package/dist/os/correctness/audit/snapshot.js.map +1 -1
- package/dist/os/correctness/correctness.module.d.ts.map +1 -1
- package/dist/os/correctness/correctness.module.js +5 -3
- package/dist/os/correctness/correctness.module.js.map +1 -1
- package/dist/os/correctness/gate/frozen.d.ts +84 -9
- package/dist/os/correctness/gate/frozen.d.ts.map +1 -1
- package/dist/os/correctness/gate/frozen.js +573 -53
- package/dist/os/correctness/gate/frozen.js.map +1 -1
- package/dist/os/correctness/gate/origin.d.ts +2 -0
- package/dist/os/correctness/gate/origin.d.ts.map +1 -1
- package/dist/os/correctness/gate/origin.js +68 -35
- package/dist/os/correctness/gate/origin.js.map +1 -1
- package/dist/os/correctness/gate/repo.d.ts +58 -2
- package/dist/os/correctness/gate/repo.d.ts.map +1 -1
- package/dist/os/correctness/gate/repo.js +177 -15
- package/dist/os/correctness/gate/repo.js.map +1 -1
- package/dist/os/correctness/gate/run.d.ts +6 -0
- package/dist/os/correctness/gate/run.d.ts.map +1 -1
- package/dist/os/correctness/gate/run.js +394 -62
- package/dist/os/correctness/gate/run.js.map +1 -1
- package/dist/os/correctness/gate/runner.d.ts.map +1 -1
- package/dist/os/correctness/gate/runner.js +42 -8
- package/dist/os/correctness/gate/runner.js.map +1 -1
- package/dist/os/correctness/gate/tests/gate-fixture.d.ts +5 -1
- package/dist/os/correctness/gate/tests/gate-fixture.d.ts.map +1 -1
- package/dist/os/correctness/gate/tests/gate-fixture.js +23 -1
- package/dist/os/correctness/gate/tests/gate-fixture.js.map +1 -1
- package/dist/os/correctness/gate/types.d.ts +3 -0
- package/dist/os/correctness/gate/types.d.ts.map +1 -1
- package/dist/os/correctness/gate/types.js +1 -0
- package/dist/os/correctness/gate/types.js.map +1 -1
- package/dist/os/correctness/handlers/gate.d.ts.map +1 -1
- package/dist/os/correctness/handlers/gate.js +2 -0
- package/dist/os/correctness/handlers/gate.js.map +1 -1
- package/dist/os/correctness/handlers/validate.d.ts +30 -0
- package/dist/os/correctness/handlers/validate.d.ts.map +1 -1
- package/dist/os/correctness/handlers/validate.js +20 -7
- package/dist/os/correctness/handlers/validate.js.map +1 -1
- package/dist/os/correctness/manifest-schema.d.ts +2 -2
- package/dist/os/correctness/references.d.ts +19 -0
- package/dist/os/correctness/references.d.ts.map +1 -1
- package/dist/os/correctness/references.js +57 -22
- package/dist/os/correctness/references.js.map +1 -1
- package/dist/os/correctness/workspace.d.ts +22 -2
- package/dist/os/correctness/workspace.d.ts.map +1 -1
- package/dist/os/correctness/workspace.js +194 -18
- package/dist/os/correctness/workspace.js.map +1 -1
- package/dist/os/flow/branch-name.d.ts.map +1 -1
- package/dist/os/flow/branch-name.js +2 -4
- package/dist/os/flow/branch-name.js.map +1 -1
- package/dist/os/flow/correctness-step.d.ts.map +1 -1
- package/dist/os/flow/correctness-step.js +83 -17
- package/dist/os/flow/correctness-step.js.map +1 -1
- package/dist/os/flow/digest.d.ts +27 -10
- package/dist/os/flow/digest.d.ts.map +1 -1
- package/dist/os/flow/digest.js +530 -165
- package/dist/os/flow/digest.js.map +1 -1
- package/dist/os/flow/dup-id-scan.d.ts +23 -0
- package/dist/os/flow/dup-id-scan.d.ts.map +1 -0
- package/dist/os/flow/dup-id-scan.js +171 -0
- package/dist/os/flow/dup-id-scan.js.map +1 -0
- package/dist/os/flow/flow.module.d.ts.map +1 -1
- package/dist/os/flow/flow.module.js +132 -18
- package/dist/os/flow/flow.module.js.map +1 -1
- package/dist/os/flow/git.d.ts +77 -11
- package/dist/os/flow/git.d.ts.map +1 -1
- package/dist/os/flow/git.js +661 -84
- package/dist/os/flow/git.js.map +1 -1
- package/dist/os/flow/guard-files.d.ts.map +1 -1
- package/dist/os/flow/guard-files.js +3 -5
- package/dist/os/flow/guard-files.js.map +1 -1
- package/dist/os/flow/handlers/flow-backmerge.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-backmerge.js +2 -2
- package/dist/os/flow/handlers/flow-backmerge.js.map +1 -1
- package/dist/os/flow/handlers/flow-check.js +2 -2
- package/dist/os/flow/handlers/flow-cut.d.ts +38 -0
- package/dist/os/flow/handlers/flow-cut.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-cut.js +325 -186
- package/dist/os/flow/handlers/flow-cut.js.map +1 -1
- package/dist/os/flow/handlers/flow-digest.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-digest.js +2 -1
- package/dist/os/flow/handlers/flow-digest.js.map +1 -1
- package/dist/os/flow/handlers/flow-discard.js +6 -6
- package/dist/os/flow/handlers/flow-discard.js.map +1 -1
- package/dist/os/flow/handlers/flow-fix.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-fix.js +34 -12
- package/dist/os/flow/handlers/flow-fix.js.map +1 -1
- package/dist/os/flow/handlers/flow-hold.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-hold.js +12 -21
- package/dist/os/flow/handlers/flow-hold.js.map +1 -1
- package/dist/os/flow/handlers/flow-install.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-install.js +19 -18
- package/dist/os/flow/handlers/flow-install.js.map +1 -1
- package/dist/os/flow/handlers/flow-integrate.d.ts +50 -2
- package/dist/os/flow/handlers/flow-integrate.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-integrate.js +624 -135
- package/dist/os/flow/handlers/flow-integrate.js.map +1 -1
- package/dist/os/flow/handlers/flow-open.d.ts +11 -0
- package/dist/os/flow/handlers/flow-open.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-open.js +82 -12
- package/dist/os/flow/handlers/flow-open.js.map +1 -1
- package/dist/os/flow/handlers/flow-publication-retire.d.ts +2 -2
- package/dist/os/flow/handlers/flow-publication-retire.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-publication-retire.js +36 -16
- package/dist/os/flow/handlers/flow-publication-retire.js.map +1 -1
- package/dist/os/flow/handlers/flow-push.d.ts +12 -4
- package/dist/os/flow/handlers/flow-push.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-push.js +297 -47
- package/dist/os/flow/handlers/flow-push.js.map +1 -1
- package/dist/os/flow/handlers/flow-status.d.ts +6 -0
- package/dist/os/flow/handlers/flow-status.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-status.js +13 -10
- package/dist/os/flow/handlers/flow-status.js.map +1 -1
- package/dist/os/flow/handlers/flow-swept.d.ts +30 -0
- package/dist/os/flow/handlers/flow-swept.d.ts.map +1 -0
- package/dist/os/flow/handlers/flow-swept.js +135 -0
- package/dist/os/flow/handlers/flow-swept.js.map +1 -0
- package/dist/os/flow/handlers/flow-version.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-version.js +3 -5
- package/dist/os/flow/handlers/flow-version.js.map +1 -1
- package/dist/os/flow/index.d.ts +2 -0
- package/dist/os/flow/index.d.ts.map +1 -1
- package/dist/os/flow/index.js +7 -4
- package/dist/os/flow/index.js.map +1 -1
- package/dist/os/flow/line-version.d.ts.map +1 -1
- package/dist/os/flow/line-version.js +20 -3
- package/dist/os/flow/line-version.js.map +1 -1
- package/dist/os/flow/locks.d.ts +7 -0
- package/dist/os/flow/locks.d.ts.map +1 -1
- package/dist/os/flow/locks.js +15 -5
- package/dist/os/flow/locks.js.map +1 -1
- package/dist/os/flow/markers.d.ts +1 -1
- package/dist/os/flow/markers.d.ts.map +1 -1
- package/dist/os/flow/markers.js +14 -5
- package/dist/os/flow/markers.js.map +1 -1
- package/dist/os/flow/ops-registry.d.ts.map +1 -1
- package/dist/os/flow/ops-registry.js +19 -6
- package/dist/os/flow/ops-registry.js.map +1 -1
- package/dist/os/flow/post-rebase-regen.d.ts +30 -8
- package/dist/os/flow/post-rebase-regen.d.ts.map +1 -1
- package/dist/os/flow/post-rebase-regen.js +172 -20
- package/dist/os/flow/post-rebase-regen.js.map +1 -1
- package/dist/os/flow/pre-lock.d.ts +61 -0
- package/dist/os/flow/pre-lock.d.ts.map +1 -0
- package/dist/os/flow/pre-lock.js +265 -0
- package/dist/os/flow/pre-lock.js.map +1 -0
- package/dist/os/flow/preflight.d.ts +6 -0
- package/dist/os/flow/preflight.d.ts.map +1 -1
- package/dist/os/flow/preflight.js +85 -13
- package/dist/os/flow/preflight.js.map +1 -1
- package/dist/os/flow/primary-dirt.d.ts +63 -0
- package/dist/os/flow/primary-dirt.d.ts.map +1 -0
- package/dist/os/flow/primary-dirt.js +259 -0
- package/dist/os/flow/primary-dirt.js.map +1 -0
- package/dist/os/flow/publish.d.ts.map +1 -1
- package/dist/os/flow/publish.js +32 -10
- package/dist/os/flow/publish.js.map +1 -1
- package/dist/os/flow/registry.d.ts +12 -4
- package/dist/os/flow/registry.d.ts.map +1 -1
- package/dist/os/flow/registry.js +15 -8
- package/dist/os/flow/registry.js.map +1 -1
- package/dist/os/flow/release-level.d.ts +2 -0
- package/dist/os/flow/release-level.d.ts.map +1 -1
- package/dist/os/flow/release-level.js +23 -5
- package/dist/os/flow/release-level.js.map +1 -1
- package/dist/os/flow/release-lines.js +1 -1
- package/dist/os/flow/release-tags.d.ts +1 -1
- package/dist/os/flow/release-tags.d.ts.map +1 -1
- package/dist/os/flow/release-tags.js +43 -19
- package/dist/os/flow/release-tags.js.map +1 -1
- package/dist/os/flow/repo-kind.d.ts.map +1 -1
- package/dist/os/flow/repo-kind.js +6 -3
- package/dist/os/flow/repo-kind.js.map +1 -1
- package/dist/os/flow/scripts.d.ts.map +1 -1
- package/dist/os/flow/scripts.js +40 -7
- package/dist/os/flow/scripts.js.map +1 -1
- package/dist/os/flow/semver.js +1 -1
- package/dist/os/flow/session-checkout.js +3 -3
- package/dist/os/flow/standalone-invoke.js +2 -2
- package/dist/os/flow/tests/helpers.d.ts +28 -1
- package/dist/os/flow/tests/helpers.d.ts.map +1 -1
- package/dist/os/flow/tests/helpers.js +159 -19
- package/dist/os/flow/tests/helpers.js.map +1 -1
- package/dist/os/flow/version-files.d.ts.map +1 -1
- package/dist/os/flow/version-files.js +3 -2
- package/dist/os/flow/version-files.js.map +1 -1
- package/dist/os/flow/worktree-path.d.ts.map +1 -1
- package/dist/os/flow/worktree-path.js +1 -1
- package/dist/os/flow/worktree-path.js.map +1 -1
- package/dist/os/friction/friction.module.d.ts.map +1 -1
- package/dist/os/friction/friction.module.js +134 -30
- package/dist/os/friction/friction.module.js.map +1 -1
- package/dist/os/friction/handlers/friction-add.d.ts +13 -0
- package/dist/os/friction/handlers/friction-add.d.ts.map +1 -0
- package/dist/os/friction/handlers/friction-add.js +196 -0
- package/dist/os/friction/handlers/friction-add.js.map +1 -0
- package/dist/os/friction/handlers/friction-migrate.d.ts +23 -0
- package/dist/os/friction/handlers/friction-migrate.d.ts.map +1 -0
- package/dist/os/friction/handlers/friction-migrate.js +168 -0
- package/dist/os/friction/handlers/friction-migrate.js.map +1 -0
- package/dist/os/friction/handlers/friction-validate.d.ts.map +1 -1
- package/dist/os/friction/handlers/friction-validate.js +144 -106
- package/dist/os/friction/handlers/friction-validate.js.map +1 -1
- package/dist/os/friction/index.d.ts +2 -0
- package/dist/os/friction/index.d.ts.map +1 -1
- package/dist/os/friction/index.js +3 -1
- package/dist/os/friction/index.js.map +1 -1
- package/dist/os/friction/store.d.ts +68 -0
- package/dist/os/friction/store.d.ts.map +1 -0
- package/dist/os/friction/store.js +231 -0
- package/dist/os/friction/store.js.map +1 -0
- package/dist/os/friction/types.d.ts +1 -1
- package/dist/os/friction/types.d.ts.map +1 -1
- package/dist/os/friction/types.js +11 -13
- package/dist/os/friction/types.js.map +1 -1
- package/dist/os/gate/gate.module.d.ts.map +1 -1
- package/dist/os/gate/gate.module.js +47 -6
- package/dist/os/gate/gate.module.js.map +1 -1
- package/dist/os/gate/handlers/gate-probe-catalog.d.ts +17 -2
- package/dist/os/gate/handlers/gate-probe-catalog.d.ts.map +1 -1
- package/dist/os/gate/handlers/gate-probe-catalog.js +343 -44
- package/dist/os/gate/handlers/gate-probe-catalog.js.map +1 -1
- package/dist/os/gate/handlers/gate-probe.d.ts.map +1 -1
- package/dist/os/gate/handlers/gate-probe.js +90 -10
- package/dist/os/gate/handlers/gate-probe.js.map +1 -1
- package/dist/os/gate/handlers/liveness.d.ts +30 -0
- package/dist/os/gate/handlers/liveness.d.ts.map +1 -0
- package/dist/os/gate/handlers/liveness.js +94 -0
- package/dist/os/gate/handlers/liveness.js.map +1 -0
- package/dist/os/gate/handlers/probe-runs-journal.d.ts +44 -0
- package/dist/os/gate/handlers/probe-runs-journal.d.ts.map +1 -0
- package/dist/os/gate/handlers/probe-runs-journal.js +157 -0
- package/dist/os/gate/handlers/probe-runs-journal.js.map +1 -0
- package/dist/os/gate-run/gate-run.module.d.ts.map +1 -1
- package/dist/os/gate-run/gate-run.module.js +3 -0
- package/dist/os/gate-run/gate-run.module.js.map +1 -1
- package/dist/os/gate-run/index.d.ts.map +1 -1
- package/dist/os/gate-run/index.js +10 -0
- package/dist/os/gate-run/index.js.map +1 -1
- package/dist/os/gate-run/record.d.ts +1 -0
- package/dist/os/gate-run/record.d.ts.map +1 -1
- package/dist/os/gate-run/record.js +2 -0
- package/dist/os/gate-run/record.js.map +1 -1
- package/dist/os/gate-run/status.d.ts.map +1 -1
- package/dist/os/gate-run/status.js +4 -1
- package/dist/os/gate-run/status.js.map +1 -1
- package/dist/os/gate-run/types.d.ts +7 -0
- package/dist/os/gate-run/types.d.ts.map +1 -1
- package/dist/os/gate-run/types.js +1 -0
- package/dist/os/gate-run/types.js.map +1 -1
- package/dist/os/instructions/handlers/scar-migrate.d.ts +3 -0
- package/dist/os/instructions/handlers/scar-migrate.d.ts.map +1 -1
- package/dist/os/instructions/handlers/scar-migrate.js +23 -66
- package/dist/os/instructions/handlers/scar-migrate.js.map +1 -1
- package/dist/os/instructions/instructions.module.d.ts.map +1 -1
- package/dist/os/instructions/instructions.module.js +32 -5
- package/dist/os/instructions/instructions.module.js.map +1 -1
- package/dist/os/knowledge/handlers/knowledge-authz-probe.d.ts.map +1 -1
- package/dist/os/knowledge/handlers/knowledge-authz-probe.js +31 -10
- package/dist/os/knowledge/handlers/knowledge-authz-probe.js.map +1 -1
- package/dist/os/knowledge/handlers/knowledge-rebuild.d.ts.map +1 -1
- package/dist/os/knowledge/handlers/knowledge-rebuild.js +24 -12
- package/dist/os/knowledge/handlers/knowledge-rebuild.js.map +1 -1
- package/dist/os/knowledge/knowledge.module.d.ts.map +1 -1
- package/dist/os/knowledge/knowledge.module.js +20 -4
- package/dist/os/knowledge/knowledge.module.js.map +1 -1
- package/dist/os/mission/lockfile.d.ts.map +1 -1
- package/dist/os/mission/lockfile.js +44 -20
- package/dist/os/mission/lockfile.js.map +1 -1
- package/dist/os/naming/naming-convention.js +2 -2
- package/dist/os/naming/naming-convention.js.map +1 -1
- package/dist/os/program/discovery.d.ts +14 -5
- package/dist/os/program/discovery.d.ts.map +1 -1
- package/dist/os/program/discovery.js +64 -46
- package/dist/os/program/discovery.js.map +1 -1
- package/dist/os/program/handlers/complete.d.ts.map +1 -1
- package/dist/os/program/handlers/complete.js +28 -10
- package/dist/os/program/handlers/complete.js.map +1 -1
- package/dist/os/program/handlers/lease.js +12 -2
- package/dist/os/program/handlers/lease.js.map +1 -1
- package/dist/os/program/handlers/seal.js +3 -3
- package/dist/os/program/handlers/seal.js.map +1 -1
- package/dist/os/program/handlers/validate.js +3 -3
- package/dist/os/program/handlers/validate.js.map +1 -1
- package/dist/os/queue/handlers/queue-decision.d.ts +10 -0
- package/dist/os/queue/handlers/queue-decision.d.ts.map +1 -0
- package/dist/os/queue/handlers/queue-decision.js +177 -0
- package/dist/os/queue/handlers/queue-decision.js.map +1 -0
- package/dist/os/queue/handlers/queue-validate.d.ts.map +1 -1
- package/dist/os/queue/handlers/queue-validate.js +18 -22
- package/dist/os/queue/handlers/queue-validate.js.map +1 -1
- package/dist/os/queue/manifest.d.ts.map +1 -1
- package/dist/os/queue/manifest.js +1 -2
- package/dist/os/queue/manifest.js.map +1 -1
- package/dist/os/queue/queue.module.d.ts.map +1 -1
- package/dist/os/queue/queue.module.js +89 -4
- package/dist/os/queue/queue.module.js.map +1 -1
- package/dist/os/rfc/frontmatter-io.d.ts.map +1 -1
- package/dist/os/rfc/frontmatter-io.js +4 -3
- package/dist/os/rfc/frontmatter-io.js.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp-origin.d.ts.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp-origin.js +6 -3
- package/dist/os/rfc/handlers/implement-stamp-origin.js.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.d.ts.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js +65 -29
- package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
- package/dist/os/rfc/handlers/index-graph.d.ts.map +1 -1
- package/dist/os/rfc/handlers/index-graph.js +13 -0
- package/dist/os/rfc/handlers/index-graph.js.map +1 -1
- package/dist/os/rfc/handlers/rfc-evidence-sync.d.ts.map +1 -1
- package/dist/os/rfc/handlers/rfc-evidence-sync.js +52 -10
- package/dist/os/rfc/handlers/rfc-evidence-sync.js.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.d.ts +1 -0
- package/dist/os/rfc/handlers/validate-rules.d.ts.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.js +172 -50
- 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 +0 -3
- package/dist/os/rfc/handlers/validate.js.map +1 -1
- package/dist/os/rfc/next-id.d.ts +7 -1
- package/dist/os/rfc/next-id.d.ts.map +1 -1
- package/dist/os/rfc/next-id.js +122 -5
- package/dist/os/rfc/next-id.js.map +1 -1
- package/dist/os/rfc/outcome-probe.d.ts.map +1 -1
- package/dist/os/rfc/outcome-probe.js +5 -2
- package/dist/os/rfc/outcome-probe.js.map +1 -1
- package/dist/os/rfc/reachable-symbol.d.ts.map +1 -1
- package/dist/os/rfc/reachable-symbol.js +61 -19
- package/dist/os/rfc/reachable-symbol.js.map +1 -1
- package/dist/os/rfc/rfc.module.d.ts.map +1 -1
- package/dist/os/rfc/rfc.module.js +26 -4
- package/dist/os/rfc/rfc.module.js.map +1 -1
- package/dist/os/rfc/types.d.ts +28 -3
- package/dist/os/rfc/types.d.ts.map +1 -1
- package/dist/os/rfc/types.js +13 -3
- package/dist/os/rfc/types.js.map +1 -1
- package/dist/os/rfc/verification-evidence.d.ts.map +1 -1
- package/dist/os/rfc/verification-evidence.js +72 -24
- package/dist/os/rfc/verification-evidence.js.map +1 -1
- package/dist/os/rfc/verification-origin.d.ts +41 -3
- package/dist/os/rfc/verification-origin.d.ts.map +1 -1
- package/dist/os/rfc/verification-origin.js +314 -50
- package/dist/os/rfc/verification-origin.js.map +1 -1
- package/dist/os/rfc/verifier/rfc-1391/support.js +1 -1
- package/dist/os/rfc/verify-workspace.d.ts.map +1 -1
- package/dist/os/rfc/verify-workspace.js +148 -48
- package/dist/os/rfc/verify-workspace.js.map +1 -1
- package/dist/os/session/handlers/metrics-rfc.d.ts.map +1 -1
- package/dist/os/session/handlers/metrics-rfc.js +42 -11
- package/dist/os/session/handlers/metrics-rfc.js.map +1 -1
- package/dist/os/session/handlers/save.d.ts.map +1 -1
- package/dist/os/session/handlers/save.js +50 -24
- package/dist/os/session/handlers/save.js.map +1 -1
- package/dist/os/session/handlers/session-audit-report.d.ts.map +1 -1
- package/dist/os/session/handlers/session-audit-report.js +21 -6
- package/dist/os/session/handlers/session-audit-report.js.map +1 -1
- package/dist/os/session/handlers/session-audit.d.ts.map +1 -1
- package/dist/os/session/handlers/session-audit.js +22 -9
- package/dist/os/session/handlers/session-audit.js.map +1 -1
- package/dist/os/session/session.module.d.ts.map +1 -1
- package/dist/os/session/session.module.js +29 -9
- package/dist/os/session/session.module.js.map +1 -1
- package/dist/os/system/handlers/system-outbox-scan.d.ts.map +1 -1
- package/dist/os/system/handlers/system-outbox-scan.js +36 -18
- package/dist/os/system/handlers/system-outbox-scan.js.map +1 -1
- package/dist/os/system/handlers/system-task-dispatch.d.ts.map +1 -1
- package/dist/os/system/handlers/system-task-dispatch.js +14 -16
- package/dist/os/system/handlers/system-task-dispatch.js.map +1 -1
- package/dist/os/system/handlers/system-versionset-record.js +3 -3
- package/dist/os/system/scenario-schemas.js +1 -1
- package/dist/os/system/system.module.d.ts.map +1 -1
- package/dist/os/system/system.module.js +14 -9
- package/dist/os/system/system.module.js.map +1 -1
- package/dist/os/system/task-schemas.d.ts +3 -3
- package/dist/os/trajectory/handlers/journal-io.d.ts.map +1 -1
- package/dist/os/trajectory/handlers/journal-io.js +2 -2
- package/dist/os/trajectory/handlers/journal-io.js.map +1 -1
- package/dist/os/trajectory/handlers/outcome-record.d.ts.map +1 -1
- package/dist/os/trajectory/handlers/outcome-record.js +49 -9
- package/dist/os/trajectory/handlers/outcome-record.js.map +1 -1
- package/dist/os/trajectory/handlers/trajectory-index.d.ts.map +1 -1
- package/dist/os/trajectory/handlers/trajectory-index.js +75 -21
- package/dist/os/trajectory/handlers/trajectory-index.js.map +1 -1
- package/dist/os/trajectory/handlers/trajectory-recall.d.ts.map +1 -1
- package/dist/os/trajectory/handlers/trajectory-recall.js +38 -10
- package/dist/os/trajectory/handlers/trajectory-recall.js.map +1 -1
- package/dist/os/trajectory/trajectory.module.d.ts.map +1 -1
- package/dist/os/trajectory/trajectory.module.js +35 -7
- package/dist/os/trajectory/trajectory.module.js.map +1 -1
- package/dist/src/adversarial/types.d.ts +44 -0
- package/dist/src/adversarial/types.d.ts.map +1 -0
- package/dist/src/adversarial/types.js +82 -0
- package/dist/src/adversarial/types.js.map +1 -0
- package/dist/src/authority/delegations.d.ts +1 -1
- package/dist/src/authority/delegations.d.ts.map +1 -1
- package/dist/src/authority/delegations.js +9 -2
- package/dist/src/authority/delegations.js.map +1 -1
- package/dist/src/command-modules.d.ts.map +1 -1
- package/dist/src/command-modules.js +2 -0
- package/dist/src/command-modules.js.map +1 -1
- package/dist/src/config/forge-config.d.ts +65 -1
- package/dist/src/config/forge-config.d.ts.map +1 -1
- package/dist/src/config/forge-config.js +114 -12
- package/dist/src/config/forge-config.js.map +1 -1
- package/dist/src/correctness/policy-bundle.d.ts +72 -0
- package/dist/src/correctness/policy-bundle.d.ts.map +1 -0
- package/dist/src/correctness/policy-bundle.js +170 -0
- package/dist/src/correctness/policy-bundle.js.map +1 -0
- package/dist/src/knowledge/paths.d.ts +21 -0
- package/dist/src/knowledge/paths.d.ts.map +1 -0
- package/dist/src/knowledge/paths.js +57 -0
- package/dist/src/knowledge/paths.js.map +1 -0
- package/dist/src/knowledge/sync.d.ts +7 -0
- package/dist/src/knowledge/sync.d.ts.map +1 -1
- package/dist/src/knowledge/sync.js +41 -13
- package/dist/src/knowledge/sync.js.map +1 -1
- package/dist/src/onboarding/init.d.ts.map +1 -1
- package/dist/src/onboarding/init.js +19 -5
- package/dist/src/onboarding/init.js.map +1 -1
- package/dist/src/onboarding/npm-token-check.d.ts.map +1 -1
- package/dist/src/onboarding/npm-token-check.js +9 -1
- package/dist/src/onboarding/npm-token-check.js.map +1 -1
- package/dist/src/onboarding/scaffold-project.d.ts.map +1 -1
- package/dist/src/onboarding/scaffold-project.js +17 -5
- package/dist/src/onboarding/scaffold-project.js.map +1 -1
- package/dist/src/onboarding/trust-boundary.d.ts +16 -0
- package/dist/src/onboarding/trust-boundary.d.ts.map +1 -0
- package/dist/src/onboarding/trust-boundary.js +806 -0
- package/dist/src/onboarding/trust-boundary.js.map +1 -0
- package/dist/src/onboarding/upgrade.d.ts +4 -0
- package/dist/src/onboarding/upgrade.d.ts.map +1 -1
- package/dist/src/onboarding/upgrade.js +120 -9
- package/dist/src/onboarding/upgrade.js.map +1 -1
- package/dist/src/types.d.ts +6 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +3 -3
- package/dist/src/utils/verifier-git.d.ts +1303 -0
- package/dist/src/utils/verifier-git.d.ts.map +1 -0
- package/dist/src/utils/verifier-git.js +7797 -0
- package/dist/src/utils/verifier-git.js.map +1 -0
- package/dist/src/validators/skill-validate.d.ts.map +1 -1
- package/dist/src/validators/skill-validate.js +17 -5
- package/dist/src/validators/skill-validate.js.map +1 -1
- package/docs/adversarial/downgrade-forge/scenario.yaml +22 -0
- package/docs/adversarial/drop-manifest-entry/scenario.yaml +25 -0
- package/docs/adversarial/edit-frozen-file/scenario.yaml +24 -0
- package/docs/adversarial/edit-policy-key/scenario.yaml +41 -0
- package/docs/adversarial/forge-review-record/scenario.yaml +34 -0
- package/docs/adversarial/grow-allow/scenario.yaml +46 -0
- package/docs/adversarial/mixed-weakening/scenario.yaml +26 -0
- package/docs/adversarial/rebind-checkrun/scenario.yaml +41 -0
- package/docs/adversarial/self-exempt/scenario.yaml +41 -0
- package/docs/adversarial/shrink-policy-decl/scenario.yaml +41 -0
- package/docs/adversarial/spoof-verifier-trailer/scenario.yaml +26 -0
- package/docs/adversarial/weaken-oracle/scenario.yaml +22 -0
- package/docs/maintainers/publishing.md +1 -1
- package/docs/reference/correctness-gate.md +35 -5
- package/docs/reference/forge-yaml.md +16 -0
- package/docs/reference/trust-boundary.md +36 -0
- package/os/adr/handlers/implement-stamp.ts +56 -26
- package/os/adr/handlers/validate.ts +66 -28
- package/os/adversarial/adversarial.module.ts +147 -0
- package/os/adversarial/catalog.test.ts +96 -0
- package/os/adversarial/catalog.ts +79 -0
- package/os/adversarial/runner.ts +533 -0
- package/os/agent/handlers/agent-tiers-validate.ts +39 -10
- package/os/agent/index.ts +1 -1
- package/os/agent-tools/agent-tools.module.ts +84 -0
- package/os/agent-tools/generate.ts +104 -0
- package/os/agent-tools/handlers/tools-generate.ts +137 -0
- package/os/agent-tools/index.ts +23 -0
- package/os/agent-tools/manifest.ts +95 -0
- package/os/agent-tools/serve.ts +127 -0
- package/os/agent-tools/server.ts +460 -0
- package/os/agent-tools/tool-server.test.ts +226 -0
- package/os/agent-tools/tools-generate.test.ts +204 -0
- package/os/agent-tools/types.ts +139 -0
- package/os/authority/authority.module.ts +17 -2
- package/os/checks/checks.module.ts +46 -11
- package/os/checks/handlers/contribution-liveness.test.ts +142 -0
- package/os/checks/handlers/contribution-report.test.ts +46 -11
- package/os/checks/handlers/contribution-report.ts +222 -44
- package/os/checks/handlers/counters-export.test.ts +179 -8
- package/os/checks/handlers/counters-export.ts +77 -9
- package/os/checks/handlers/counters-journal.test.ts +25 -5
- package/os/checks/handlers/counters-validate.test.ts +21 -6
- package/os/checks/handlers/counters-validate.ts +4 -2
- package/os/checks/handlers/variant-candidates.test.ts +6 -2
- package/os/codebase/handlers/codebase-measure.ts +17 -20
- package/os/codebase/index.ts +4 -1
- package/os/compass/handlers/compass-audit-handler.ts +236 -38
- package/os/compass/handlers/compass-header-scaffold-handler.ts +47 -2
- package/os/compass/handlers/compass-migrate-handler.ts +46 -4
- package/os/compass/handlers/git-revision.ts +183 -63
- package/os/compass/handlers/summary-record.ts +48 -10
- package/os/context/context.module.ts +23 -4
- package/os/context/handlers/context-assemble.test.ts +5 -2
- package/os/context/handlers/context-assemble.ts +144 -28
- package/os/context/handlers/context-slate-eval.test.ts +11 -5
- package/os/context/handlers/context-slate-eval.ts +36 -10
- package/os/context/handlers/index-build.ts +179 -40
- package/os/context/handlers/no-model-deps.test.ts +8 -3
- package/os/context/handlers/slate-fill.test.ts +7 -2
- package/os/core/archive-regen.ts +178 -13
- package/os/core/core.module.ts +208 -51
- package/os/core/docs-archive.test.ts +134 -37
- package/os/core/handlers/forge-autonomy-validate.ts +104 -2
- package/os/core/handlers/package-health.ts +6 -6
- package/os/core/handlers/policy-digest.test.ts +143 -0
- package/os/core/handlers/policy-digest.ts +470 -0
- package/os/correctness/audit/snapshot.ts +46 -22
- package/os/correctness/correctness-chain.test.ts +6 -2
- package/os/correctness/correctness.module.ts +6 -3
- package/os/correctness/gate/anchor-events.test.ts +5 -1
- package/os/correctness/gate/freeze-coverage.test.ts +1 -1
- package/os/correctness/gate/freeze-diff.test.ts +1 -1
- package/os/correctness/gate/frozen.ts +691 -58
- package/os/correctness/gate/gate-mode.test.ts +5 -1
- package/os/correctness/gate/hardening.test.ts +5 -2
- package/os/correctness/gate/origin.ts +77 -37
- package/os/correctness/gate/policy-freeze-cx.test.ts +174 -0
- package/os/correctness/gate/policy-freeze-cx10.test.ts +873 -0
- package/os/correctness/gate/policy-freeze-cx11.test.ts +534 -0
- package/os/correctness/gate/policy-freeze-cx12.test.ts +488 -0
- package/os/correctness/gate/policy-freeze-cx13.test.ts +734 -0
- package/os/correctness/gate/policy-freeze-cx14.test.ts +533 -0
- package/os/correctness/gate/policy-freeze-cx15.test.ts +830 -0
- package/os/correctness/gate/policy-freeze-cx16.test.ts +652 -0
- package/os/correctness/gate/policy-freeze-cx17.test.ts +717 -0
- package/os/correctness/gate/policy-freeze-cx18.test.ts +705 -0
- package/os/correctness/gate/policy-freeze-cx19.test.ts +376 -0
- package/os/correctness/gate/policy-freeze-cx2.test.ts +691 -0
- package/os/correctness/gate/policy-freeze-cx20.test.ts +572 -0
- package/os/correctness/gate/policy-freeze-cx21.test.ts +423 -0
- package/os/correctness/gate/policy-freeze-cx22.test.ts +978 -0
- package/os/correctness/gate/policy-freeze-cx23.test.ts +431 -0
- package/os/correctness/gate/policy-freeze-cx24.test.ts +509 -0
- package/os/correctness/gate/policy-freeze-cx25.test.ts +1064 -0
- package/os/correctness/gate/policy-freeze-cx3.test.ts +569 -0
- package/os/correctness/gate/policy-freeze-cx4.test.ts +731 -0
- package/os/correctness/gate/policy-freeze-cx5.test.ts +577 -0
- package/os/correctness/gate/policy-freeze-cx6.test.ts +944 -0
- package/os/correctness/gate/policy-freeze-cx7.test.ts +622 -0
- package/os/correctness/gate/policy-freeze-cx8.test.ts +638 -0
- package/os/correctness/gate/policy-freeze-cx9.test.ts +959 -0
- package/os/correctness/gate/policy-freeze.test.ts +249 -0
- package/os/correctness/gate/repo.ts +194 -15
- package/os/correctness/gate/run.ts +444 -65
- package/os/correctness/gate/runner.ts +41 -8
- package/os/correctness/gate/tests/gate-fixture.ts +27 -2
- package/os/correctness/gate/tier-high.test.ts +5 -1
- package/os/correctness/gate/trust-boundary-cx1.test.ts +1020 -0
- package/os/correctness/gate/trust-boundary-cx10.test.ts +755 -0
- package/os/correctness/gate/trust-boundary-cx11.test.ts +515 -0
- package/os/correctness/gate/trust-boundary-cx12.test.ts +552 -0
- package/os/correctness/gate/trust-boundary-cx13.test.ts +446 -0
- package/os/correctness/gate/trust-boundary-cx14.test.ts +375 -0
- package/os/correctness/gate/trust-boundary-cx15.test.ts +421 -0
- package/os/correctness/gate/trust-boundary-cx16.test.ts +487 -0
- package/os/correctness/gate/trust-boundary-cx17.test.ts +319 -0
- package/os/correctness/gate/trust-boundary-cx18.test.ts +516 -0
- package/os/correctness/gate/trust-boundary-cx19.test.ts +514 -0
- package/os/correctness/gate/trust-boundary-cx2.test.ts +979 -0
- package/os/correctness/gate/trust-boundary-cx20.test.ts +216 -0
- package/os/correctness/gate/trust-boundary-cx22.test.ts +193 -0
- package/os/correctness/gate/trust-boundary-cx23.test.ts +283 -0
- package/os/correctness/gate/trust-boundary-cx24.test.ts +180 -0
- package/os/correctness/gate/trust-boundary-cx25.test.ts +482 -0
- package/os/correctness/gate/trust-boundary-cx26.test.ts +408 -0
- package/os/correctness/gate/trust-boundary-cx27.test.ts +983 -0
- package/os/correctness/gate/trust-boundary-cx28.test.ts +587 -0
- package/os/correctness/gate/trust-boundary-cx29a.test.ts +226 -0
- package/os/correctness/gate/trust-boundary-cx29b.test.ts +271 -0
- package/os/correctness/gate/trust-boundary-cx29c.test.ts +217 -0
- package/os/correctness/gate/trust-boundary-cx29d.test.ts +544 -0
- package/os/correctness/gate/trust-boundary-cx29e.test.ts +207 -0
- package/os/correctness/gate/trust-boundary-cx29f.test.ts +226 -0
- package/os/correctness/gate/trust-boundary-cx29g.test.ts +74 -0
- package/os/correctness/gate/trust-boundary-cx3.test.ts +929 -0
- package/os/correctness/gate/trust-boundary-cx30a.test.ts +195 -0
- package/os/correctness/gate/trust-boundary-cx30b.test.ts +296 -0
- package/os/correctness/gate/trust-boundary-cx31a.test.ts +129 -0
- package/os/correctness/gate/trust-boundary-cx31b.test.ts +333 -0
- package/os/correctness/gate/trust-boundary-cx31c.test.ts +259 -0
- package/os/correctness/gate/trust-boundary-cx31d.test.ts +132 -0
- package/os/correctness/gate/trust-boundary-cx32a.test.ts +275 -0
- package/os/correctness/gate/trust-boundary-cx32b.test.ts +509 -0
- package/os/correctness/gate/trust-boundary-cx32c.test.ts +211 -0
- package/os/correctness/gate/trust-boundary-cx32d.test.ts +184 -0
- package/os/correctness/gate/trust-boundary-cx33a.test.ts +250 -0
- package/os/correctness/gate/trust-boundary-cx33b.test.ts +287 -0
- package/os/correctness/gate/trust-boundary-cx33c.test.ts +122 -0
- package/os/correctness/gate/trust-boundary-cx33d.test.ts +357 -0
- package/os/correctness/gate/trust-boundary-cx33e.test.ts +96 -0
- package/os/correctness/gate/trust-boundary-cx34a.test.ts +283 -0
- package/os/correctness/gate/trust-boundary-cx34b.test.ts +228 -0
- package/os/correctness/gate/trust-boundary-cx34d.test.ts +282 -0
- package/os/correctness/gate/trust-boundary-cx34e.test.ts +224 -0
- package/os/correctness/gate/trust-boundary-cx34f.test.ts +250 -0
- package/os/correctness/gate/trust-boundary-cx34g.test.ts +179 -0
- package/os/correctness/gate/trust-boundary-cx34h.test.ts +293 -0
- package/os/correctness/gate/trust-boundary-cx34i.test.ts +245 -0
- package/os/correctness/gate/trust-boundary-cx35a.test.ts +181 -0
- package/os/correctness/gate/trust-boundary-cx35b.test.ts +137 -0
- package/os/correctness/gate/trust-boundary-cx35c.test.ts +149 -0
- package/os/correctness/gate/trust-boundary-cx35d.test.ts +121 -0
- package/os/correctness/gate/trust-boundary-cx35e.test.ts +108 -0
- package/os/correctness/gate/trust-boundary-cx36.test.ts +120 -0
- package/os/correctness/gate/trust-boundary-cx37.test.ts +430 -0
- package/os/correctness/gate/trust-boundary-cx38.test.ts +436 -0
- package/os/correctness/gate/trust-boundary-cx39.test.ts +432 -0
- package/os/correctness/gate/trust-boundary-cx4.test.ts +764 -0
- package/os/correctness/gate/trust-boundary-cx40.test.ts +264 -0
- package/os/correctness/gate/trust-boundary-cx41.test.ts +460 -0
- package/os/correctness/gate/trust-boundary-cx42.test.ts +432 -0
- package/os/correctness/gate/trust-boundary-cx43.test.ts +257 -0
- package/os/correctness/gate/trust-boundary-cx5.test.ts +998 -0
- package/os/correctness/gate/trust-boundary-cx6.test.ts +701 -0
- package/os/correctness/gate/trust-boundary-cx7.test.ts +1007 -0
- package/os/correctness/gate/trust-boundary-cx8.test.ts +929 -0
- package/os/correctness/gate/trust-boundary-cx9.test.ts +993 -0
- package/os/correctness/gate/types.ts +4 -0
- package/os/correctness/handlers/gate.ts +2 -0
- package/os/correctness/handlers/validate.ts +63 -12
- package/os/correctness/references.ts +63 -20
- package/os/correctness/workspace.ts +203 -22
- package/os/flow/branch-name.ts +3 -6
- package/os/flow/correctness-step.ts +91 -17
- package/os/flow/digest.ts +598 -178
- package/os/flow/dup-id-scan.ts +187 -0
- package/os/flow/flow.module.ts +138 -18
- package/os/flow/git.ts +757 -86
- package/os/flow/guard-files.ts +5 -14
- package/os/flow/handlers/flow-backmerge.ts +11 -22
- package/os/flow/handlers/flow-check.ts +2 -2
- package/os/flow/handlers/flow-cut.ts +459 -252
- package/os/flow/handlers/flow-digest.ts +2 -1
- package/os/flow/handlers/flow-discard.ts +6 -6
- package/os/flow/handlers/flow-fix.ts +104 -29
- package/os/flow/handlers/flow-hold.ts +24 -37
- package/os/flow/handlers/flow-install.ts +61 -33
- package/os/flow/handlers/flow-integrate.ts +992 -209
- package/os/flow/handlers/flow-open.ts +104 -12
- package/os/flow/handlers/flow-publication-retire.ts +38 -17
- package/os/flow/handlers/flow-push.ts +337 -73
- package/os/flow/handlers/flow-status.ts +32 -13
- package/os/flow/handlers/flow-swept.ts +185 -0
- package/os/flow/handlers/flow-version.ts +5 -18
- package/os/flow/index.ts +8 -4
- package/os/flow/line-version.ts +21 -8
- package/os/flow/locks.ts +21 -10
- package/os/flow/markers.ts +16 -5
- package/os/flow/ops-registry.ts +25 -7
- package/os/flow/post-rebase-regen.ts +218 -25
- package/os/flow/pre-lock.ts +334 -0
- package/os/flow/preflight.ts +108 -17
- package/os/flow/primary-dirt.ts +319 -0
- package/os/flow/publish.ts +35 -17
- package/os/flow/registry.ts +23 -13
- package/os/flow/release-level.ts +25 -12
- package/os/flow/release-lines.ts +4 -5
- package/os/flow/release-tags.ts +47 -19
- package/os/flow/repo-kind.ts +6 -3
- package/os/flow/scripts.ts +40 -7
- package/os/flow/semver.ts +1 -1
- package/os/flow/session-checkout.ts +3 -3
- package/os/flow/standalone-invoke.ts +2 -2
- package/os/flow/tests/branch-name.test.ts +15 -7
- package/os/flow/tests/flow-backmerge.test.ts +8 -6
- package/os/flow/tests/flow-check.test.ts +6 -11
- package/os/flow/tests/flow-cut-prepare.test.ts +64 -15
- package/os/flow/tests/flow-cut.rerun.test.ts +1 -1
- package/os/flow/tests/flow-cut.test.ts +230 -11
- package/os/flow/tests/flow-detachable.test.ts +10 -2
- package/os/flow/tests/flow-digest.test.ts +109 -29
- package/os/flow/tests/flow-fix.test.ts +96 -20
- package/os/flow/tests/flow-guard-parity.test.ts +55 -53
- package/os/flow/tests/flow-guard-push.test.ts +39 -2
- package/os/flow/tests/flow-guard.test.ts +5 -10
- package/os/flow/tests/flow-hold.test.ts +43 -10
- package/os/flow/tests/flow-install-markers.test.ts +47 -20
- package/os/flow/tests/flow-install.rerun.test.ts +18 -9
- package/os/flow/tests/flow-install.test.ts +19 -19
- package/os/flow/tests/flow-integrate-correctness-gate.test.ts +3 -4
- package/os/flow/tests/flow-integrate-prelock.test.ts +392 -0
- package/os/flow/tests/flow-integrate.gate-report.test.ts +2 -4
- package/os/flow/tests/flow-integrate.post-rebase-regen.test.ts +33 -0
- package/os/flow/tests/flow-integrate.preflight.test.ts +36 -1
- package/os/flow/tests/flow-integrate.test.ts +375 -21
- package/os/flow/tests/flow-open.test.ts +123 -9
- package/os/flow/tests/flow-publication-retire.test.ts +13 -6
- package/os/flow/tests/flow-push-publish.test.ts +45 -19
- package/os/flow/tests/flow-push-supersede.test.ts +37 -34
- package/os/flow/tests/flow-push-verifier-review.test.ts +190 -0
- package/os/flow/tests/flow-push.test.ts +15 -7
- package/os/flow/tests/flow-status.test.ts +54 -1
- package/os/flow/tests/flow-swept.test.ts +105 -0
- package/os/flow/tests/flow-task-files.test.ts +18 -4
- package/os/flow/tests/helpers.test.ts +91 -0
- package/os/flow/tests/helpers.ts +188 -19
- package/os/flow/tests/locks.test.ts +5 -4
- package/os/flow/tests/post-rebase-regen.test.ts +315 -0
- package/os/flow/tests/scripts.test.ts +8 -4
- package/os/flow/tests/state-roots.test.ts +8 -11
- package/os/flow/version-files.ts +4 -2
- package/os/flow/worktree-path.ts +3 -9
- package/os/friction/friction-add.test.ts +141 -0
- package/os/friction/friction-migrate.test.ts +138 -0
- package/os/friction/friction-store.test.ts +184 -0
- package/os/friction/friction-validate.test.ts +133 -21
- package/os/friction/friction.module.ts +140 -30
- package/os/friction/handlers/friction-add.ts +268 -0
- package/os/friction/handlers/friction-migrate.ts +206 -0
- package/os/friction/handlers/friction-validate.ts +238 -176
- package/os/friction/index.ts +14 -1
- package/os/friction/qa-log-shards.test.ts +111 -0
- package/os/friction/store.ts +284 -0
- package/os/friction/types.ts +11 -13
- package/os/gate/gate.module.ts +47 -6
- package/os/gate/handlers/gate-probe-catalog.test.ts +1 -1
- package/os/gate/handlers/gate-probe-catalog.ts +413 -42
- package/os/gate/handlers/gate-probe-ratchet.test.ts +329 -0
- package/os/gate/handlers/gate-probe.test.ts +27 -5
- package/os/gate/handlers/gate-probe.ts +110 -12
- package/os/gate/handlers/liveness.ts +113 -0
- package/os/gate/handlers/probe-runs-journal.ts +167 -0
- package/os/gate-run/gate-run.module.ts +3 -0
- package/os/gate-run/index.ts +11 -0
- package/os/gate-run/record.ts +8 -1
- package/os/gate-run/status.ts +9 -1
- package/os/gate-run/tests/gate-run-record.test.ts +11 -1
- package/os/gate-run/tests/gate-run-status.test.ts +2 -0
- package/os/gate-run/types.ts +8 -0
- package/os/instructions/budget.test.ts +32 -7
- package/os/instructions/handlers/scar-migrate.ts +55 -66
- package/os/instructions/instructions.module.ts +32 -5
- package/os/knowledge/handlers/knowledge-authz-probe.ts +38 -12
- package/os/knowledge/handlers/knowledge-rebuild.test.ts +5 -2
- package/os/knowledge/handlers/knowledge-rebuild.ts +39 -16
- package/os/knowledge/knowledge.module.ts +21 -4
- package/os/mission/handlers/archive.test.ts +47 -30
- package/os/mission/lockfile.ts +47 -20
- package/os/naming/naming-convention.test.ts +1 -0
- package/os/naming/naming-convention.ts +2 -2
- package/os/program/discovery.ts +70 -44
- package/os/program/handlers/complete.ts +28 -10
- package/os/program/handlers/lease.ts +11 -2
- package/os/program/handlers/seal.ts +3 -3
- package/os/program/handlers/validate.ts +3 -3
- package/os/queue/handlers/queue-decision.ts +253 -0
- package/os/queue/handlers/queue-validate.ts +24 -23
- package/os/queue/manifest.ts +1 -2
- package/os/queue/queue-decision.test.ts +262 -0
- package/os/queue/queue.module.ts +93 -4
- package/os/rfc/frontmatter-io.ts +6 -3
- package/os/rfc/handlers/implement-stamp-origin.ts +6 -3
- package/os/rfc/handlers/implement-stamp.ts +65 -46
- package/os/rfc/handlers/index-graph.ts +14 -0
- package/os/rfc/handlers/rfc-evidence-sync.ts +62 -22
- package/os/rfc/handlers/validate-moves.test.ts +221 -0
- package/os/rfc/handlers/validate-probe-meta.test.ts +21 -1
- package/os/rfc/handlers/validate-rules.ts +216 -60
- package/os/rfc/handlers/validate.ts +1 -5
- package/os/rfc/next-id.ts +155 -21
- package/os/rfc/outcome-probe.ts +13 -4
- package/os/rfc/reachable-symbol.ts +65 -43
- package/os/rfc/rfc-0000-template.md +10 -0
- package/os/rfc/rfc.module.ts +26 -4
- package/os/rfc/types.ts +31 -3
- package/os/rfc/verification-evidence.ts +74 -25
- package/os/rfc/verification-origin.ts +358 -62
- package/os/rfc/verifier/rfc-1333/imp12-binding.acceptance.test.ts +1 -1
- package/os/rfc/verifier/rfc-1333/imp12-gate.acceptance.test.ts +1 -1
- package/os/rfc/verifier/rfc-1333/skills-and-types.acceptance.test.ts +1 -1
- package/os/rfc/verifier/rfc-1333/verify-workspace.acceptance.test.ts +1 -1
- package/os/rfc/verifier/rfc-1391/fixtures/no-report.proof.test.ts +1 -1
- package/os/rfc/verifier/rfc-1391/fixtures/small-domain.proof.test.ts +1 -1
- package/os/rfc/verifier/rfc-1391/support.ts +1 -1
- package/os/rfc/verify-workspace.ts +147 -53
- package/os/session/handlers/metrics-rfc.ts +42 -11
- package/os/session/handlers/save.ts +52 -28
- package/os/session/handlers/session-audit-detectors.test.ts +16 -6
- package/os/session/handlers/session-audit-report.test.ts +9 -3
- package/os/session/handlers/session-audit-report.ts +34 -8
- package/os/session/handlers/session-audit.test.ts +25 -7
- package/os/session/handlers/session-audit.ts +49 -23
- package/os/session/session.module.ts +31 -9
- package/os/system/handlers/system-outbox-scan.ts +45 -17
- package/os/system/handlers/system-task-dispatch.ts +17 -21
- package/os/system/handlers/system-versionset-record.ts +3 -3
- package/os/system/scenario-schemas.ts +1 -1
- package/os/system/system.module.ts +14 -9
- package/os/system/tests/scenario-pin-drift-check.test.ts +2 -0
- package/os/system/tests/scenario-validator-check.test.ts +2 -0
- package/os/system/tests/system-task-collect.test.ts +25 -15
- package/os/system/tests/system-task-dispatch.test.ts +18 -7
- package/os/system/tests/system-task-status.test.ts +7 -1
- package/os/system/tests/system-task.test.ts +15 -4
- package/os/system/tests/version-set-v2.test.ts +2 -0
- package/os/trajectory/handlers/extract-units.test.ts +11 -6
- package/os/trajectory/handlers/journal-io.ts +21 -7
- package/os/trajectory/handlers/outcome-record.test.ts +28 -8
- package/os/trajectory/handlers/outcome-record.ts +65 -18
- package/os/trajectory/handlers/producer-trust.test.ts +22 -8
- package/os/trajectory/handlers/trajectory-index.test.ts +75 -29
- package/os/trajectory/handlers/trajectory-index.ts +116 -38
- package/os/trajectory/handlers/trajectory-recall.test.ts +67 -19
- package/os/trajectory/handlers/trajectory-recall.ts +115 -41
- package/os/trajectory/handlers/trajectory.test.ts +19 -7
- package/os/trajectory/handlers/verdict-binding.test.ts +138 -33
- package/os/trajectory/trajectory.module.ts +35 -7
- package/os/yaml/scalars.test.ts +1 -1
- package/package.json +30 -1
- package/profiles/godot-game.yaml +4 -4
- package/skills/_shared/fo-pipeline-conventions.md +15 -13
- package/skills/fo/fo-handoff/SKILL.md +10 -2
- package/skills/fo/fo-idea-audit/SKILL.md +4 -0
- package/skills/fo/fo-idea-create-rfc/SKILL.md +21 -10
- package/skills/fo/fo-idea-implement/SKILL.md +2 -10
- package/skills/fo/fo-idea-plan/SKILL.md +7 -5
- package/skills/fo/fo-knowledge-distill/SKILL.md +15 -4
- package/skills/fo/fo-memory-sync/SKILL.md +7 -6
- package/skills/fo/fo-reproduce/SKILL.md +2 -1
- package/skills/fo/fo-session-retro/SKILL.md +87 -44
- package/skills/fo/fo-session-save/SKILL.md +4 -3
- package/skills/fo/fo-system-dispatch/SKILL.md +9 -0
- package/skills/shared/grilling/SKILL.md +17 -9
- package/skills/shared/knowledge/learned-principles.md +1 -1
- package/skills/shared/writing-great-skills/SKILL.md +4 -3
- package/src/adversarial/types.ts +100 -0
- package/src/authority/delegations.ts +9 -2
- package/src/command-modules.ts +6 -0
- package/src/config/forge-config.ts +146 -13
- package/src/correctness/policy-bundle.ts +187 -0
- package/src/knowledge/paths.ts +75 -0
- package/src/knowledge/sync.ts +42 -18
- package/src/onboarding/init.ts +20 -5
- package/src/onboarding/npm-token-check.ts +9 -1
- package/src/onboarding/scaffold-project.ts +16 -5
- package/src/onboarding/trust-boundary.test.ts +179 -0
- package/src/onboarding/trust-boundary.ts +825 -0
- package/src/onboarding/upgrade.ts +149 -9
- package/src/scaffold/github/CODEOWNERS.template +14 -0
- package/src/scaffold/github/forge-policy.template.yml +40 -0
- package/src/tests/bindings-schema.test.ts +5 -1
- package/src/tests/create.test.ts +74 -20
- package/src/tests/forge-config.test.ts +5 -2
- package/src/tests/knowledge-paths.test.ts +80 -0
- package/src/tests/skill-validate.test.ts +76 -0
- package/src/types.ts +10 -5
- package/src/utils/verifier-git.ts +8684 -0
- package/src/validators/skill-validate.ts +17 -5
- /package/skills/fo/fo-memory-sync/{qa-log.md → qa-log/legacy.md} +0 -0
- /package/skills/fo/fo-session-save/{qa-log.md → qa-log/legacy.md} +0 -0
- /package/skills/shared/grilling/{qa-log.md → qa-log/legacy.md} +0 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>
|
|
4
|
+
RFC-1596: V-56 `moves` declaration tests — a workshop-tooling RFC (post-cutoff
|
|
5
|
+
createdAt, kind ∈ {architecture, contract, command, policy}, no appsImpacted,
|
|
6
|
+
no outcome-surface package) must name the loopMetrics metric it moves, or
|
|
7
|
+
`none` with a reason. Silent when the project declares no loopMetrics (AC-4);
|
|
8
|
+
terminal statuses keep a frozen record for removed metric ids.
|
|
9
|
+
</purpose>
|
|
10
|
+
<non-goals>
|
|
11
|
+
<item>Do not exercise the stamp path — V-56 is a validate-time rule only.</item>
|
|
12
|
+
</non-goals>
|
|
13
|
+
</MODULE_CONTRACT>
|
|
14
|
+
<CHANGE_SUMMARY>
|
|
15
|
+
<item>RFC-1596: V-56 moves-declaration tests (AC-1..AC-4 + subject boundary).</item>
|
|
16
|
+
<item>RFC-1596: V-56 moves declaration on workshop-tooling RFCs
|
|
17
|
+
|
|
18
|
+
loopMetrics vocabulary in forge.yaml (7 site-loop metrics), V-56 validator rule (subject = loopMetrics declared + createdAt >= adoption + tooling kind + no app/outcome-surface impact; missing moves / undeclared id / none-without-reason / missing baseline+target all error; terminal-status immunity for removed ids), moves.metric copied into rfc.index.generate entries, commented moves block in the RFC template, moves on RFC-1596 itself, and skill guidance in fo-idea-create-rfc (baseline read from the metric's source) + fo-idea-audit (flag a target restating the deliverable).</item>
|
|
19
|
+
</CHANGE_SUMMARY>
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
import { describe, expect, test } from "vitest";
|
|
23
|
+
import { join } from "node:path";
|
|
24
|
+
import { tmpdir } from "node:os";
|
|
25
|
+
import { mkdtemp, writeFile } from "node:fs/promises";
|
|
26
|
+
import { validateSingleRfc, type AddViolationFn } from "./validate-rules.ts";
|
|
27
|
+
import type { ParsedRfc } from "../frontmatter-io.ts";
|
|
28
|
+
|
|
29
|
+
interface Seen {
|
|
30
|
+
rule: string;
|
|
31
|
+
message: string;
|
|
32
|
+
severity?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const FORGE_YAML_METRICS = `schema: forge/config@1
|
|
36
|
+
project:
|
|
37
|
+
name: fixture
|
|
38
|
+
paths: {}
|
|
39
|
+
bindings:
|
|
40
|
+
schema: forge/bindings@1
|
|
41
|
+
commands: {}
|
|
42
|
+
paths: {}
|
|
43
|
+
outcomeSurfaces:
|
|
44
|
+
- packages/werkstatt-site/src/domain/ui/**
|
|
45
|
+
loopMetrics:
|
|
46
|
+
- id: validate-wall-content-edit
|
|
47
|
+
description: Wall time of mission.validate after a one-file content edit
|
|
48
|
+
source: docs/metrics/site-throughput.generated.yaml
|
|
49
|
+
- id: integrate-refusal-rate
|
|
50
|
+
description: Share of flow.integrate runs that end in a refusal
|
|
51
|
+
source: forge/gate-runs (gate.run.status)
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
const makeParsed = (fm: Record<string, unknown>): ParsedRfc => ({
|
|
55
|
+
frontmatter: {
|
|
56
|
+
id: "RFC-9999",
|
|
57
|
+
title: "Test RFC",
|
|
58
|
+
status: "draft",
|
|
59
|
+
kind: "command",
|
|
60
|
+
scope: "workspace",
|
|
61
|
+
owners: ["architecture"],
|
|
62
|
+
createdAt: "2026-11-14",
|
|
63
|
+
updatedAt: "2026-11-14",
|
|
64
|
+
...fm,
|
|
65
|
+
},
|
|
66
|
+
body: "# RFC-9999: Test RFC\n",
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const runValidate = async (
|
|
70
|
+
fileName: string,
|
|
71
|
+
parsed: ParsedRfc,
|
|
72
|
+
workspaceRoot: string,
|
|
73
|
+
): Promise<Seen[]> => {
|
|
74
|
+
const seen: Seen[] = [];
|
|
75
|
+
const add: AddViolationFn = (_id, _file, rule, msg, severity) =>
|
|
76
|
+
void seen.push({ rule, message: msg, severity });
|
|
77
|
+
await validateSingleRfc(
|
|
78
|
+
fileName,
|
|
79
|
+
parsed,
|
|
80
|
+
new Map(),
|
|
81
|
+
new Map(),
|
|
82
|
+
new Set(),
|
|
83
|
+
new Set(),
|
|
84
|
+
new Set(Object.keys(parsed.frontmatter)),
|
|
85
|
+
workspaceRoot,
|
|
86
|
+
add,
|
|
87
|
+
);
|
|
88
|
+
return seen;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const workspaceWithMetrics = async (): Promise<string> => {
|
|
92
|
+
const dir = await mkdtemp(join(tmpdir(), "rfc1596-v56-"));
|
|
93
|
+
await writeFile(join(dir, "forge.yaml"), FORGE_YAML_METRICS);
|
|
94
|
+
return dir;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
const v56 = (violations: Seen[]) => violations.filter((v) => v.rule === "V-56");
|
|
98
|
+
|
|
99
|
+
describe("V-56 — tooling RFCs declare the loop metric they move (RFC-1596)", () => {
|
|
100
|
+
test("AC-1: errors when a subject RFC has no moves block", async () => {
|
|
101
|
+
const dir = await workspaceWithMetrics();
|
|
102
|
+
const violations = await runValidate("rfc-9999-test.md", makeParsed({}), dir);
|
|
103
|
+
expect(v56(violations)).toHaveLength(1);
|
|
104
|
+
expect(v56(violations)[0]!.severity).toBe("error");
|
|
105
|
+
expect(v56(violations)[0]!.message).toContain("moves");
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
test("AC-2: errors naming the declared ids when moves.metric is undeclared and not none", async () => {
|
|
109
|
+
const dir = await workspaceWithMetrics();
|
|
110
|
+
const violations = await runValidate(
|
|
111
|
+
"rfc-9999-test.md",
|
|
112
|
+
makeParsed({
|
|
113
|
+
moves: { metric: "made-up-metric", baseline: "x", target: "y" },
|
|
114
|
+
}),
|
|
115
|
+
dir,
|
|
116
|
+
);
|
|
117
|
+
expect(v56(violations)).toHaveLength(1);
|
|
118
|
+
expect(v56(violations)[0]!.message).toContain("validate-wall-content-edit");
|
|
119
|
+
expect(v56(violations)[0]!.message).toContain("integrate-refusal-rate");
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
test("AC-3: errors when moves.metric is none without a reason", async () => {
|
|
123
|
+
const dir = await workspaceWithMetrics();
|
|
124
|
+
const violations = await runValidate(
|
|
125
|
+
"rfc-9999-test.md",
|
|
126
|
+
makeParsed({ moves: { metric: "none" } }),
|
|
127
|
+
dir,
|
|
128
|
+
);
|
|
129
|
+
expect(v56(violations)).toHaveLength(1);
|
|
130
|
+
expect(v56(violations)[0]!.message).toContain("reason");
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
test("AC-4: silent when forge.yaml declares no loopMetrics", async () => {
|
|
134
|
+
const dir = await mkdtemp(join(tmpdir(), "rfc1596-v56-nometrics-"));
|
|
135
|
+
await writeFile(
|
|
136
|
+
join(dir, "forge.yaml"),
|
|
137
|
+
`schema: forge/config@1\nproject:\n name: fixture\npaths: {}\n`,
|
|
138
|
+
);
|
|
139
|
+
const violations = await runValidate("rfc-9999-test.md", makeParsed({}), dir);
|
|
140
|
+
expect(v56(violations)).toHaveLength(0);
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
test("passes with a declared metric plus baseline and target", async () => {
|
|
144
|
+
const dir = await workspaceWithMetrics();
|
|
145
|
+
const violations = await runValidate(
|
|
146
|
+
"rfc-9999-test.md",
|
|
147
|
+
makeParsed({
|
|
148
|
+
moves: {
|
|
149
|
+
metric: "integrate-refusal-rate",
|
|
150
|
+
baseline: "22 of 51 runs refused (gate-run records 2026-11-11..14)",
|
|
151
|
+
target: "under 10 %",
|
|
152
|
+
},
|
|
153
|
+
}),
|
|
154
|
+
dir,
|
|
155
|
+
);
|
|
156
|
+
expect(v56(violations)).toHaveLength(0);
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
test("passes with metric none plus a reason", async () => {
|
|
160
|
+
const dir = await workspaceWithMetrics();
|
|
161
|
+
const violations = await runValidate(
|
|
162
|
+
"rfc-9999-test.md",
|
|
163
|
+
makeParsed({ moves: { metric: "none", reason: "security hardening" } }),
|
|
164
|
+
dir,
|
|
165
|
+
);
|
|
166
|
+
expect(v56(violations)).toHaveLength(0);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
test("errors when a declared metric lacks baseline or target", async () => {
|
|
170
|
+
const dir = await workspaceWithMetrics();
|
|
171
|
+
const violations = await runValidate(
|
|
172
|
+
"rfc-9999-test.md",
|
|
173
|
+
makeParsed({ moves: { metric: "integrate-refusal-rate", target: "under 10 %" } }),
|
|
174
|
+
dir,
|
|
175
|
+
);
|
|
176
|
+
expect(v56(violations)).toHaveLength(1);
|
|
177
|
+
expect(v56(violations)[0]!.message).toContain("baseline");
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
test("exempt when createdAt predates the adoption cutoff", async () => {
|
|
181
|
+
const dir = await workspaceWithMetrics();
|
|
182
|
+
const violations = await runValidate(
|
|
183
|
+
"rfc-9999-test.md",
|
|
184
|
+
makeParsed({ createdAt: "2026-11-13" }),
|
|
185
|
+
dir,
|
|
186
|
+
);
|
|
187
|
+
expect(v56(violations)).toHaveLength(0);
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
test("exempt for deprecation kind, app impact, and outcome-surface packages", async () => {
|
|
191
|
+
const dir = await workspaceWithMetrics();
|
|
192
|
+
for (const fm of [
|
|
193
|
+
{ kind: "deprecation" },
|
|
194
|
+
{ appsImpacted: ["warpgogol-com"] },
|
|
195
|
+
{ packagesImpacted: ["werkstatt-site"] },
|
|
196
|
+
]) {
|
|
197
|
+
const violations = await runValidate("rfc-9999-test.md", makeParsed(fm), dir);
|
|
198
|
+
expect(v56(violations), `subject boundary ${JSON.stringify(fm)}`).toHaveLength(0);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
test("terminal statuses are immune to a removed metric id but not to a missing moves", async () => {
|
|
203
|
+
const dir = await workspaceWithMetrics();
|
|
204
|
+
const removed = await runValidate(
|
|
205
|
+
"rfc-9999-test.md",
|
|
206
|
+
makeParsed({
|
|
207
|
+
status: "implemented",
|
|
208
|
+
implementedAt: "2026-11-14",
|
|
209
|
+
moves: { metric: "retired-metric", baseline: "x", target: "y" },
|
|
210
|
+
}),
|
|
211
|
+
dir,
|
|
212
|
+
);
|
|
213
|
+
expect(v56(removed)).toHaveLength(0);
|
|
214
|
+
const missing = await runValidate(
|
|
215
|
+
"rfc-9999-test.md",
|
|
216
|
+
makeParsed({ status: "implemented", implementedAt: "2026-11-14" }),
|
|
217
|
+
dir,
|
|
218
|
+
);
|
|
219
|
+
expect(v56(missing)).toHaveLength(1);
|
|
220
|
+
});
|
|
221
|
+
});
|
|
@@ -9,6 +9,16 @@
|
|
|
9
9
|
<CHANGE_SUMMARY>
|
|
10
10
|
<item>RFC-1569: metachar extension tests (AC-8) + suppression regression</item>
|
|
11
11
|
<item>RFC-1569: lint rfc evidence annotations and transient probe targets</item>
|
|
12
|
+
<item>RFC-1604: correct the validator rules pinned false-positive by the friction registry (RFC-1604)
|
|
13
|
+
|
|
14
|
+
- probe-meta: mask [...] classes before metachar scans (F-0224)
|
|
15
|
+
- skill.validate: exempt managed .agents/skills twins from SKILL-11 (sf-F-0004)
|
|
16
|
+
- rfc-0000 template: emit reviewers ["human:<handle>"] placeholder (ds-F-0017)
|
|
17
|
+
- robots.generate: drop wildcard no-op directives; PUBTXT-09 scoped to the * group (F-0232)
|
|
18
|
+
- page.render.check: dead exemptions move to staleExemptions channel (F-0233)
|
|
19
|
+
- cosmic.literals.lint: extend retired-channel scan to systems/*.yaml (F-0172)
|
|
20
|
+
- price.presence.validate: accept Intl-emitted price shapes incl. attribute resolution (F-0231)
|
|
21
|
+
- ecosystem.commit EC-33: scan over maskSource keepComments (F-0221)</item>
|
|
12
22
|
</CHANGE_SUMMARY>
|
|
13
23
|
*/
|
|
14
24
|
|
|
@@ -46,7 +56,7 @@ describe("V-PROBE-META-01 extensions (RFC-1569)", () => {
|
|
|
46
56
|
test("unescaped {} and [] are flagged", () => {
|
|
47
57
|
const brace = collectProbeMetacharHits(probe("a{1,2}"), fm(""));
|
|
48
58
|
expect(brace.some((h) => h.chars.some((c) => c.includes("`{`/`}`")))).toBe(true);
|
|
49
|
-
const bracket = collectProbeMetacharHits(probe("a
|
|
59
|
+
const bracket = collectProbeMetacharHits(probe("a]b]"), fm(""));
|
|
50
60
|
expect(bracket.some((h) => h.chars.some((c) => c.includes("`[`/`]`")))).toBe(true);
|
|
51
61
|
});
|
|
52
62
|
|
|
@@ -68,4 +78,14 @@ describe("V-PROBE-META-01 extensions (RFC-1569)", () => {
|
|
|
68
78
|
const hits = collectProbeMetacharHits(probe(pattern), fmWithMarker);
|
|
69
79
|
expect(hits).toEqual([]);
|
|
70
80
|
});
|
|
81
|
+
|
|
82
|
+
test("F-0224: metacharacters inside a [...] class are literals — [\\s\\S] stays clean", () => {
|
|
83
|
+
const hits = collectProbeMetacharHits(probe("[\\s\\S]+"), fm(""));
|
|
84
|
+
expect(hits).toEqual([]);
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
test("F-0224: a stray unclosed class still flags the bracket", () => {
|
|
88
|
+
const hits = collectProbeMetacharHits(probe("a[b"), fm(""));
|
|
89
|
+
expect(hits.some((h) => h.chars.some((c) => c.includes("`[`/`]`")))).toBe(true);
|
|
90
|
+
});
|
|
71
91
|
});
|
|
@@ -6,22 +6,58 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
<item>RFC-1596: V-56 moves declaration on workshop-tooling RFCs
|
|
10
|
+
|
|
11
|
+
loopMetrics vocabulary in forge.yaml (7 site-loop metrics), V-56 validator rule (subject = loopMetrics declared + createdAt >= adoption + tooling kind + no app/outcome-surface impact; missing moves / undeclared id / none-without-reason / missing baseline+target all error; terminal-status immunity for removed ids), moves.metric copied into rfc.index.generate entries, commented moves block in the RFC template, moves on RFC-1596 itself, and skill guidance in fo-idea-create-rfc (baseline read from the metric's source) + fo-idea-audit (flag a target restating the deliverable).</item>
|
|
12
|
+
<item>RFC-1596: close REVIEW-CODE-2026-11-14-01 — packaged template moves block, typed frontmatter, forge.yaml in rfc.validate reads</item>
|
|
13
|
+
<item>RFC-1604: correct the validator rules pinned false-positive by the friction registry (RFC-1604)
|
|
14
|
+
|
|
15
|
+
- probe-meta: mask [...] classes before metachar scans (F-0224)
|
|
16
|
+
- skill.validate: exempt managed .agents/skills twins from SKILL-11 (sf-F-0004)
|
|
17
|
+
- rfc-0000 template: emit reviewers ["human:<handle>"] placeholder (ds-F-0017)
|
|
18
|
+
- robots.generate: drop wildcard no-op directives; PUBTXT-09 scoped to the * group (F-0232)
|
|
19
|
+
- page.render.check: dead exemptions move to staleExemptions channel (F-0233)
|
|
20
|
+
- cosmic.literals.lint: extend retired-channel scan to systems/*.yaml (F-0172)
|
|
21
|
+
- price.presence.validate: accept Intl-emitted price shapes incl. attribute resolution (F-0231)
|
|
22
|
+
- ecosystem.commit EC-33: scan over maskSource keepComments (F-0221)</item>
|
|
23
|
+
<item>RFC-1616: close RFC-1616 r9 trust-boundary counterexamples
|
|
24
|
+
|
|
25
|
+
Independent clean-context verification (round 9, candidate 4436339db)
|
|
26
|
+
returned REFUTED with ten live counterexamples against the r8-hardened
|
|
27
|
+
evidence channel — this commit closes all root causes.
|
|
28
|
+
|
|
29
|
+
- Pack-carried objects get the loose-sweep integrity anchor: every
|
|
30
|
+
.idx/.pack pair under objects/pack is verify-pack -s'd at preflight
|
|
31
|
+
and the sweep memo key is the unforgeable (ino, ctimeMs, size) stat
|
|
32
|
+
triple (CX-113/114); pack.useBitmapIndex=false pins the bitmap
|
|
33
|
+
reachability cache off.
|
|
34
|
+
- Every trusted-path git call routes through the judged/preflighted
|
|
35
|
+
channel: execGit/readCommittedEnvelope/readAcceptanceReports/
|
|
36
|
+
listWorkspaceFiles and the snapshot gitGrep closure now run
|
|
37
|
+
verifierGit/createOriginGit with structured fail-closed dirty
|
|
38
|
+
verdicts (CX-115/118/120/122).
|
|
39
|
+
- Export materialization no longer trusts git archive, ambient tar, or
|
|
40
|
+
committed .gitattributes: exportTree enumerates ls-tree -r -z and
|
|
41
|
+
materializes committed bytes through the re-hashed cat-file --batch
|
|
42
|
+
channel, bounding symlink targets to the export root (CX-116/117).
|
|
43
|
+
- Index-consulting reads run on a verifier-owned claims rebuild:
|
|
44
|
+
prepareEvidenceIndex copies staged object claims into a fresh index
|
|
45
|
+
with zeroed stat metadata, so status/diff content-hash the worktree
|
|
46
|
+
instead of trusting a session-written stat tuple (CX-121).
|
|
47
|
+
- The heredoc lexer is quote-aware: a << inside quotes is string
|
|
48
|
+
content, never an operator (CX-119).
|
|
49
|
+
- Pins ride GIT_CONFIG_* env so the spawned argv stays the judged
|
|
50
|
+
query verbatim; diff.external moved from a broken pin to
|
|
51
|
+
refuse-on-presence; OriginGit.run/runExit now judge caller argv with
|
|
52
|
+
the same read table; batch stdin is EPIPE-safe.
|
|
53
|
+
- kernel-source-scan models the two channel files as judged bodies so
|
|
54
|
+
the channel migration does not read as new unguarded subprocess hits
|
|
55
|
+
in the werkstatt-site mutation ratchet.
|
|
56
|
+
|
|
57
|
+
The independent r9 probe file and acceptance report land in the
|
|
58
|
+
follow-up port commit.</item>
|
|
59
|
+
<item>RFC-1616: close RFC-1616 r16 trust-boundary counterexamples</item>
|
|
60
|
+
<history>RFC-0303, RFC-0722, RFC-0755, RFC-0795, RFC-0997, RFC-1006, RFC-1097, RFC-1271, RFC-1322, RFC-1330, RFC-1334, RFC-1336, RFC-1391, RFC-1453, RFC-1454, RFC-1455, RFC-1467, RFC-1489, RFC-1513, RFC-1534, RFC-1563, RFC-1569, RFC-1578</history>
|
|
25
61
|
</CHANGE_SUMMARY>
|
|
26
62
|
*/
|
|
27
63
|
|
|
@@ -33,7 +69,7 @@ import {
|
|
|
33
69
|
resolveDelegation,
|
|
34
70
|
} from "../../../src/authority/delegations.ts";
|
|
35
71
|
|
|
36
|
-
import {
|
|
72
|
+
import { repoShaped, verifierGit } from "../../../src/utils/verifier-git.ts";
|
|
37
73
|
|
|
38
74
|
import { parse as yamlParse } from "yaml";
|
|
39
75
|
import { proofSpecSchema } from "../../../src/formal/proof-spec.ts";
|
|
@@ -57,11 +93,12 @@ import {
|
|
|
57
93
|
RFC_PROBE_BINDING_CUTOFF,
|
|
58
94
|
RFC_CRITERIA_CONTENT_CUTOFF,
|
|
59
95
|
RFC_FIXED_INPUTS_CUTOFF,
|
|
96
|
+
RFC_MOVES_CUTOFF,
|
|
60
97
|
RFC_ORIGIN_CUTOFF,
|
|
61
98
|
RFC_REACHABLE_CUTOFF,
|
|
62
99
|
} from "../types.ts";
|
|
63
100
|
import type { ProbeCoverageReport, AcceptanceProbe } from "../types.ts";
|
|
64
|
-
import { isPresenceProbe } from "../verification-origin.ts";
|
|
101
|
+
import { createOriginGit, isPresenceProbe } from "../verification-origin.ts";
|
|
65
102
|
import { loadForgeConfig } from "../../../src/config/forge-config.ts";
|
|
66
103
|
import { runProbeMatchesOutcomeBuild } from "./implement-stamp-outcome.ts";
|
|
67
104
|
import { evaluateFixedInputs } from "./fixed-inputs.ts";
|
|
@@ -448,24 +485,12 @@ export function computeProbeCoverage(
|
|
|
448
485
|
|
|
449
486
|
// ─── RFC-0625: V-32 implementation commit drift detection ──────────────────
|
|
450
487
|
|
|
451
|
-
function execGitLog(workspaceRoot: string, args: string[]): Promise<string> {
|
|
452
|
-
return new Promise((resolve) => {
|
|
453
|
-
execFile("git", args, { cwd: workspaceRoot, timeout: 10000 }, (err, stdout) => {
|
|
454
|
-
if (err) {
|
|
455
|
-
resolve("");
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
|
-
resolve(stdout.trim());
|
|
459
|
-
});
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
|
|
463
488
|
async function checkImplementationCommitDrift(
|
|
464
489
|
workspaceRoot: string,
|
|
465
490
|
rfcId: string,
|
|
466
491
|
createdAt: string,
|
|
467
492
|
currentStatus: string,
|
|
468
|
-
): Promise<{ found: boolean; commitCount: number }> {
|
|
493
|
+
): Promise<{ found: boolean; commitCount: number; unverifiable?: string }> {
|
|
469
494
|
// Terminal statuses are exempt: implemented is the target state, and
|
|
470
495
|
// superseded/rejected RFCs may legitimately carry implement: commits from
|
|
471
496
|
// work that landed before the status transition (RFC-0769 lifecycle).
|
|
@@ -482,8 +507,24 @@ async function checkImplementationCommitDrift(
|
|
|
482
507
|
return { found: false, commitCount: 0 };
|
|
483
508
|
}
|
|
484
509
|
|
|
485
|
-
|
|
486
|
-
|
|
510
|
+
// verifierGit: the drift-check log is judged evidence — ambient GIT_*
|
|
511
|
+
// selectors cannot redirect it and a session-forged index/object cannot
|
|
512
|
+
// fabricate the commit list (CX-113/CX-122). A refused or failed read
|
|
513
|
+
// is NOT an empty history — the drift verdict is unverifiable, never
|
|
514
|
+
// "no drift" (CX-158).
|
|
515
|
+
const r = await verifierGit(workspaceRoot, ["log", `--since=${createdAt}`, "--oneline"]);
|
|
516
|
+
if (r.exitCode !== 0) {
|
|
517
|
+
// No repo surface anywhere in the walk-up → there is no history to
|
|
518
|
+
// drift-check and the skip is honest; a repo-shaped surface the
|
|
519
|
+
// channel refuses → the verdict is unverifiable, never "no drift".
|
|
520
|
+
if (!repoShaped(workspaceRoot)) return { found: false, commitCount: 0 };
|
|
521
|
+
return {
|
|
522
|
+
found: false,
|
|
523
|
+
commitCount: 0,
|
|
524
|
+
unverifiable: r.stderr.trim() || `git log exited ${r.exitCode}`,
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
const log = r.stdout.trim();
|
|
487
528
|
if (!log) {
|
|
488
529
|
return { found: false, commitCount: 0 };
|
|
489
530
|
}
|
|
@@ -577,17 +618,21 @@ export function collectProbeMetacharHits(
|
|
|
577
618
|
const pattern = typeof raw === "string" ? raw : "";
|
|
578
619
|
if (!pattern) continue;
|
|
579
620
|
const chars: string[] = [];
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
621
|
+
// RFC-1604 (F-0224): metacharacters inside a [...] character class are
|
|
622
|
+
// literals — mask well-formed classes before scanning so `[\s\S]` does
|
|
623
|
+
// not report an unescaped `]`, a stray unclosed class still flags.
|
|
624
|
+
const masked = pattern.replace(/\[(?:[^\]\\]|\\.)*\]/g, "");
|
|
625
|
+
if (/(^|[^\\])\(/.test(masked)) chars.push("unescaped `(`");
|
|
626
|
+
if (/(^|[^\\])\)/.test(masked)) chars.push("unescaped `)`");
|
|
627
|
+
if (masked.includes("**/")) chars.push("`**/` glob shape");
|
|
583
628
|
// RFC-1569 (F-0202): a mid-pattern `$`/`^` anchors silently — the probe can
|
|
584
629
|
// never match; unescaped `{}`/`[]` quantify/group instead of matching.
|
|
585
|
-
const rest =
|
|
630
|
+
const rest = masked.slice(1).replace(/\\\^/g, "");
|
|
586
631
|
if (rest.includes("^")) chars.push("mid-pattern `^` anchor");
|
|
587
|
-
const head =
|
|
632
|
+
const head = masked.slice(0, -1).replace(/\\\$/g, "");
|
|
588
633
|
if (head.includes("$")) chars.push("mid-pattern `$` anchor");
|
|
589
|
-
if (/(^|[^\\])[{}]/.test(
|
|
590
|
-
if (/(^|[^\\])[[\]]/.test(
|
|
634
|
+
if (/(^|[^\\])[{}]/.test(masked)) chars.push("unescaped `{`/`}`");
|
|
635
|
+
if (/(^|[^\\])[[\]]/.test(masked)) chars.push("unescaped `[`/`]`");
|
|
591
636
|
if (chars.length === 0 || suppressed(field, pattern)) continue;
|
|
592
637
|
hits.push({
|
|
593
638
|
criterion: typeof probe.criterion === "string" ? probe.criterion : "?",
|
|
@@ -604,6 +649,26 @@ export function collectProbeMetacharHits(
|
|
|
604
649
|
return hits;
|
|
605
650
|
}
|
|
606
651
|
|
|
652
|
+
// ─── packagesImpacted ↔ outcomeSurfaces overlap (V-48, V-56) ───────────────
|
|
653
|
+
// A packagesImpacted entry `x` maps to `packages/x` (verbatim when it already
|
|
654
|
+
// contains "/"); it is touched when an outcomeSurfaces glob's static prefix
|
|
655
|
+
// overlaps that directory — the same matching V-48 and the V-56 subject test
|
|
656
|
+
// share.
|
|
657
|
+
export function impactedPackagesTouchSurfaces(impacted: string[], surfaces: string[]): string[] {
|
|
658
|
+
return impacted.filter((entry) => {
|
|
659
|
+
const pkgDir = entry.includes("/") ? entry : `packages/${entry}`;
|
|
660
|
+
return surfaces.some((glob) => {
|
|
661
|
+
const staticPrefix = glob.split(/[\*\?\[\{]/)[0]!.replace(/\/+$/, "");
|
|
662
|
+
const dir = pkgDir.replace(/\/+$/, "");
|
|
663
|
+
return (
|
|
664
|
+
staticPrefix === dir ||
|
|
665
|
+
staticPrefix.startsWith(`${dir}/`) ||
|
|
666
|
+
dir.startsWith(`${staticPrefix}/`)
|
|
667
|
+
);
|
|
668
|
+
});
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
|
|
607
672
|
export async function validateSingleRfc(
|
|
608
673
|
fileName: string,
|
|
609
674
|
parsed: ParsedRfc,
|
|
@@ -1386,9 +1451,8 @@ export async function validateSingleRfc(
|
|
|
1386
1451
|
}
|
|
1387
1452
|
|
|
1388
1453
|
// V-48: outcome-surface packages need an outcome probe (RFC-1453, warning).
|
|
1389
|
-
//
|
|
1390
|
-
//
|
|
1391
|
-
// static prefix overlaps that directory.
|
|
1454
|
+
// packagesImpacted ↔ outcomeSurfaces matching lives in
|
|
1455
|
+
// impactedPackagesTouchSurfaces.
|
|
1392
1456
|
if (!isArchived) {
|
|
1393
1457
|
const impacted = Array.isArray(fm["packagesImpacted"])
|
|
1394
1458
|
? (fm["packagesImpacted"] as unknown[]).map(String)
|
|
@@ -1410,18 +1474,7 @@ export async function validateSingleRfc(
|
|
|
1410
1474
|
)),
|
|
1411
1475
|
);
|
|
1412
1476
|
if (!hasOutcomeProbe) {
|
|
1413
|
-
const touched = impacted
|
|
1414
|
-
const pkgDir = entry.includes("/") ? entry : `packages/${entry}`;
|
|
1415
|
-
return surfaces.some((glob) => {
|
|
1416
|
-
const staticPrefix = glob.split(/[\*\?\[\{]/)[0]!.replace(/\/+$/, "");
|
|
1417
|
-
const dir = pkgDir.replace(/\/+$/, "");
|
|
1418
|
-
return (
|
|
1419
|
-
staticPrefix === dir ||
|
|
1420
|
-
staticPrefix.startsWith(`${dir}/`) ||
|
|
1421
|
-
dir.startsWith(`${staticPrefix}/`)
|
|
1422
|
-
);
|
|
1423
|
-
});
|
|
1424
|
-
});
|
|
1477
|
+
const touched = impactedPackagesTouchSurfaces(impacted, surfaces);
|
|
1425
1478
|
if (touched.length > 0) {
|
|
1426
1479
|
addViolation(
|
|
1427
1480
|
rfcId,
|
|
@@ -1453,6 +1506,104 @@ export async function validateSingleRfc(
|
|
|
1453
1506
|
}
|
|
1454
1507
|
}
|
|
1455
1508
|
|
|
1509
|
+
// V-56 (RFC-1596): a workshop-tooling RFC must declare `moves` — the
|
|
1510
|
+
// site-loop metric it intends to move, or `none` with a reason. Subject =
|
|
1511
|
+
// the project declares `loopMetrics` ∧ createdAt ≥ RFC_MOVES_CUTOFF (the
|
|
1512
|
+
// stamp-date adoption) ∧ kind ∈ {architecture, contract, command, policy}
|
|
1513
|
+
// ∧ appsImpacted empty ∧ no packagesImpacted entry touches an
|
|
1514
|
+
// outcomeSurfaces glob. Silent when `loopMetrics` is undeclared — the
|
|
1515
|
+
// vocabulary is project data, so consumer workshops opt in by declaring
|
|
1516
|
+
// it. Terminal statuses keep a frozen record: a `moves.metric` id the
|
|
1517
|
+
// vocabulary later removed is not re-flagged.
|
|
1518
|
+
if (!isArchived && createdAt >= RFC_MOVES_CUTOFF) {
|
|
1519
|
+
const kindStr = String(fm["kind"] ?? "");
|
|
1520
|
+
const apps = Array.isArray(fm["appsImpacted"])
|
|
1521
|
+
? (fm["appsImpacted"] as unknown[]).map(String)
|
|
1522
|
+
: [];
|
|
1523
|
+
const subject =
|
|
1524
|
+
["architecture", "contract", "command", "policy"].includes(kindStr) && apps.length === 0;
|
|
1525
|
+
if (subject) {
|
|
1526
|
+
let loopMetrics: { id: string }[] = [];
|
|
1527
|
+
let surfaces: string[] = [];
|
|
1528
|
+
try {
|
|
1529
|
+
const cfg = loadForgeConfig(workspaceRoot);
|
|
1530
|
+
loopMetrics = cfg.loopMetrics ?? [];
|
|
1531
|
+
surfaces = cfg.outcomeSurfaces ?? [];
|
|
1532
|
+
} catch {
|
|
1533
|
+
// forge.yaml unreadable → no declared vocabulary → the rule is silent.
|
|
1534
|
+
}
|
|
1535
|
+
if (loopMetrics.length > 0) {
|
|
1536
|
+
const impacted = Array.isArray(fm["packagesImpacted"])
|
|
1537
|
+
? (fm["packagesImpacted"] as unknown[]).map(String)
|
|
1538
|
+
: [];
|
|
1539
|
+
if (impactedPackagesTouchSurfaces(impacted, surfaces).length === 0) {
|
|
1540
|
+
const declaredIds = loopMetrics.map((m) => m.id);
|
|
1541
|
+
const isTerminal =
|
|
1542
|
+
status === "implemented" || status === "rejected" || status === "superseded";
|
|
1543
|
+
const moves = fm["moves"];
|
|
1544
|
+
if (moves === undefined || moves === null) {
|
|
1545
|
+
addViolation(
|
|
1546
|
+
rfcId,
|
|
1547
|
+
relFile,
|
|
1548
|
+
"V-56",
|
|
1549
|
+
`workshop-tooling RFC has no \`moves\` — declare the site-loop metric it moves: moves.metric as a loopMetrics id (${declaredIds.join(", ")}) or \`none\` with a reason (RFC-1596).`,
|
|
1550
|
+
"error",
|
|
1551
|
+
);
|
|
1552
|
+
} else if (typeof moves !== "object" || Array.isArray(moves)) {
|
|
1553
|
+
addViolation(
|
|
1554
|
+
rfcId,
|
|
1555
|
+
relFile,
|
|
1556
|
+
"V-56",
|
|
1557
|
+
`\`moves\` must be a mapping {metric, baseline, target, reason?} — got ${Array.isArray(moves) ? "a list" : typeof moves} (RFC-1596).`,
|
|
1558
|
+
"error",
|
|
1559
|
+
);
|
|
1560
|
+
} else {
|
|
1561
|
+
const m = moves as Record<string, unknown>;
|
|
1562
|
+
const metric = typeof m["metric"] === "string" ? m["metric"].trim() : "";
|
|
1563
|
+
const nonEmpty = (v: unknown) => typeof v === "string" && v.trim().length > 0;
|
|
1564
|
+
if (metric === "") {
|
|
1565
|
+
addViolation(
|
|
1566
|
+
rfcId,
|
|
1567
|
+
relFile,
|
|
1568
|
+
"V-56",
|
|
1569
|
+
`\`moves.metric\` is required — a loopMetrics id (${declaredIds.join(", ")}) or \`none\` (RFC-1596).`,
|
|
1570
|
+
"error",
|
|
1571
|
+
);
|
|
1572
|
+
} else if (metric === "none") {
|
|
1573
|
+
if (!nonEmpty(m["reason"])) {
|
|
1574
|
+
addViolation(
|
|
1575
|
+
rfcId,
|
|
1576
|
+
relFile,
|
|
1577
|
+
"V-56",
|
|
1578
|
+
`\`moves.metric: none\` requires a non-empty \`moves.reason\` stating why no loop metric applies (RFC-1596).`,
|
|
1579
|
+
"error",
|
|
1580
|
+
);
|
|
1581
|
+
}
|
|
1582
|
+
} else if (declaredIds.includes(metric)) {
|
|
1583
|
+
if (!nonEmpty(m["baseline"]) || !nonEmpty(m["target"])) {
|
|
1584
|
+
addViolation(
|
|
1585
|
+
rfcId,
|
|
1586
|
+
relFile,
|
|
1587
|
+
"V-56",
|
|
1588
|
+
`\`moves.metric: ${metric}\` requires non-empty \`baseline\` (current value + source) and \`target\` (RFC-1596).`,
|
|
1589
|
+
"error",
|
|
1590
|
+
);
|
|
1591
|
+
}
|
|
1592
|
+
} else if (!isTerminal) {
|
|
1593
|
+
addViolation(
|
|
1594
|
+
rfcId,
|
|
1595
|
+
relFile,
|
|
1596
|
+
"V-56",
|
|
1597
|
+
`\`moves.metric: ${metric}\` is neither a declared loopMetrics id nor \`none\` — declared ids: ${declaredIds.join(", ")} (RFC-1596).`,
|
|
1598
|
+
"error",
|
|
1599
|
+
);
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1456
1607
|
// V-49: `## Deviations` entries resolve to committed review reports
|
|
1457
1608
|
// (RFC-1454, error). No cutoff — the section is new, so no historical
|
|
1458
1609
|
// file can carry a dangling entry. Only evaluated when entries exist,
|
|
@@ -1477,10 +1628,7 @@ export async function validateSingleRfc(
|
|
|
1477
1628
|
}
|
|
1478
1629
|
const reviews = committedReviews
|
|
1479
1630
|
? await committedReviews()
|
|
1480
|
-
: await collectCommittedReviews(
|
|
1481
|
-
{ run: (args) => execGitLog(workspaceRoot, args) },
|
|
1482
|
-
reviewsDir,
|
|
1483
|
-
);
|
|
1631
|
+
: await collectCommittedReviews(createOriginGit(workspaceRoot), reviewsDir);
|
|
1484
1632
|
const known = new Set(reviews.map((r) => r.reviewId));
|
|
1485
1633
|
for (const entry of entries) {
|
|
1486
1634
|
if (!known.has(entry.reviewId)) {
|
|
@@ -1982,7 +2130,15 @@ export async function validateSingleRfc(
|
|
|
1982
2130
|
createdAt,
|
|
1983
2131
|
status,
|
|
1984
2132
|
);
|
|
1985
|
-
if (driftResult.
|
|
2133
|
+
if (driftResult.unverifiable !== undefined) {
|
|
2134
|
+
addViolation(
|
|
2135
|
+
rfcId,
|
|
2136
|
+
relFile,
|
|
2137
|
+
"V-32",
|
|
2138
|
+
`${rfcId} drift check is unverifiable — the evidence channel refused the history read (${driftResult.unverifiable})`,
|
|
2139
|
+
"warning",
|
|
2140
|
+
);
|
|
2141
|
+
} else if (driftResult.found) {
|
|
1986
2142
|
addViolation(
|
|
1987
2143
|
rfcId,
|
|
1988
2144
|
relFile,
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-1097: sweep — werkstatt-engine clean
|
|
10
|
-
|
|
11
|
-
Sweep batch 4: 73 Compass headers on headerless engine files (certification, component-runtime, isolation, evolution, testing), real KEY_DECISIONS on 75 files (kernel, cache, dht, swim, gitmesh, runtime), ~80 purpose expansions (CONTRACT-02/PURPOSE-02), non-goals on 13 CONTRACT-03 files, CS-07 history literal fix repo-wide (253 files). Policy: .template.ts/.template.astro excludedPaths. werkstatt-engine now 0 diagnostics.</item>
|
|
12
9
|
<item>KERNEL-FLAG-02: Guard --id against non-string values (boolean/array from unvalidated flag input) — throws a clear flag error instead of TypeError in rfcFileMatchesId.</item>
|
|
13
10
|
<item>RFC-1467: block rfc.create on terminal-kind near-duplicates until --revisit acknowledges + V-52 validate mirror</item>
|
|
14
11
|
<item>RFC-1489: batch test probes through one instrumented Vitest run + frontmatter corpus reads
|
|
@@ -143,8 +140,7 @@ export async function runRfcValidate(
|
|
|
143
140
|
// — the getter memoizes so every `## Deviations`-carrying RFC shares one
|
|
144
141
|
// batched read instead of paying per-file `git show` calls (V-49).
|
|
145
142
|
let committedReviewsPromise:
|
|
146
|
-
|
|
147
|
-
| undefined;
|
|
143
|
+
Promise<Awaited<ReturnType<typeof collectCommittedReviews>>> | undefined;
|
|
148
144
|
const committedReviews = () => {
|
|
149
145
|
committedReviewsPromise ??= (async () => {
|
|
150
146
|
let reviewsDir: string | null = null;
|