@warpgogol/forge 9.6.3 → 9.7.1
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 +59 -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/archive.d.ts.map +1 -1
- package/dist/os/adr/handlers/archive.js +3 -7
- package/dist/os/adr/handlers/archive.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/list-create.d.ts.map +1 -1
- package/dist/os/adr/handlers/list-create.js +8 -6
- package/dist/os/adr/handlers/list-create.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/audit/handlers/archive.d.ts.map +1 -1
- package/dist/os/audit/handlers/archive.js +3 -7
- package/dist/os/audit/handlers/archive.js.map +1 -1
- 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 +56 -4
- package/dist/os/core/archive-regen.d.ts.map +1 -1
- package/dist/os/core/archive-regen.js +173 -15
- 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 +187 -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/pinned-check.d.ts +13 -0
- package/dist/os/core/handlers/pinned-check.d.ts.map +1 -1
- package/dist/os/core/handlers/pinned-check.js +25 -0
- package/dist/os/core/handlers/pinned-check.js.map +1 -1
- package/dist/os/core/handlers/pinned-types.d.ts +7 -0
- package/dist/os/core/handlers/pinned-types.d.ts.map +1 -1
- package/dist/os/core/handlers/pinned-validate.d.ts.map +1 -1
- package/dist/os/core/handlers/pinned-validate.js +24 -1
- package/dist/os/core/handlers/pinned-validate.js.map +1 -1
- 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 +98 -9
- package/dist/os/flow/digest.d.ts.map +1 -1
- package/dist/os/flow/digest.js +802 -185
- 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/evidence-lock.d.ts +36 -0
- package/dist/os/flow/evidence-lock.d.ts.map +1 -0
- package/dist/os/flow/evidence-lock.js +156 -0
- package/dist/os/flow/evidence-lock.js.map +1 -0
- package/dist/os/flow/flow.module.d.ts.map +1 -1
- package/dist/os/flow/flow.module.js +155 -19
- package/dist/os/flow/flow.module.js.map +1 -1
- package/dist/os/flow/git.d.ts +124 -11
- package/dist/os/flow/git.d.ts.map +1 -1
- package/dist/os/flow/git.js +793 -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 +5 -6
- 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 +91 -2
- package/dist/os/flow/handlers/flow-push.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-push.js +806 -52
- 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 +15 -0
- package/dist/os/flow/locks.d.ts.map +1 -1
- package/dist/os/flow/locks.js +20 -7
- 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 +87 -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 +21 -9
- package/dist/os/flow/registry.d.ts.map +1 -1
- package/dist/os/flow/registry.js +16 -9
- 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 +160 -31
- 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 +189 -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 +354 -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 +72 -0
- package/dist/os/friction/store.d.ts.map +1 -0
- package/dist/os/friction/store.js +251 -0
- package/dist/os/friction/store.js.map +1 -0
- package/dist/os/friction/types.d.ts +13 -1
- package/dist/os/friction/types.d.ts.map +1 -1
- package/dist/os/friction/types.js +19 -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 +376 -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/handlers/archive.d.ts.map +1 -1
- package/dist/os/mission/handlers/archive.js +3 -7
- package/dist/os/mission/handlers/archive.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/plan/handlers/archive.d.ts.map +1 -1
- package/dist/os/plan/handlers/archive.js +3 -7
- package/dist/os/plan/handlers/archive.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/archive.d.ts.map +1 -1
- package/dist/os/rfc/handlers/archive.js +3 -7
- package/dist/os/rfc/handlers/archive.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/list-create.d.ts.map +1 -1
- package/dist/os/rfc/handlers/list-create.js +15 -7
- package/dist/os/rfc/handlers/list-create.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/archive.d.ts.map +1 -1
- package/dist/os/session/handlers/archive.js +3 -7
- package/dist/os/session/handlers/archive.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-product-register.d.ts +24 -0
- package/dist/os/system/handlers/system-product-register.d.ts.map +1 -0
- package/dist/os/system/handlers/system-product-register.js +322 -0
- package/dist/os/system/handlers/system-product-register.js.map +1 -0
- package/dist/os/system/handlers/system-products-status.d.ts +23 -0
- package/dist/os/system/handlers/system-products-status.d.ts.map +1 -0
- package/dist/os/system/handlers/system-products-status.js +235 -0
- package/dist/os/system/handlers/system-products-status.js.map +1 -0
- 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/schemas.d.ts +13 -0
- package/dist/os/system/schemas.d.ts.map +1 -1
- package/dist/os/system/schemas.js +15 -0
- package/dist/os/system/schemas.js.map +1 -1
- package/dist/os/system/system.module.d.ts.map +1 -1
- package/dist/os/system/system.module.js +126 -11
- 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 +67 -1
- package/dist/src/config/forge-config.d.ts.map +1 -1
- package/dist/src/config/forge-config.js +116 -13
- 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/create.d.ts.map +1 -1
- package/dist/src/onboarding/create.js +27 -2
- package/dist/src/onboarding/create.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/profiles/stack-profile.js +2 -2
- package/dist/src/types.d.ts +6 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +4 -4
- package/dist/src/utils/verifier-git.d.ts +1329 -0
- package/dist/src/utils/verifier-git.d.ts.map +1 -0
- package/dist/src/utils/verifier-git.js +7827 -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/system-hub.md +104 -0
- package/docs/reference/trust-boundary.md +36 -0
- package/os/adr/handlers/archive.ts +3 -11
- package/os/adr/handlers/implement-stamp.ts +56 -26
- package/os/adr/handlers/list-create.test.ts +174 -0
- package/os/adr/handlers/list-create.ts +16 -8
- 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/audit/handlers/archive.ts +3 -11
- 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 +209 -18
- package/os/core/core.module.ts +215 -51
- package/os/core/docs-archive.test.ts +159 -37
- package/os/core/handlers/forge-autonomy-validate.ts +104 -2
- package/os/core/handlers/package-health.ts +6 -6
- package/os/core/handlers/pinned-check.ts +30 -0
- package/os/core/handlers/pinned-types.ts +7 -0
- package/os/core/handlers/pinned-validate.ts +28 -3
- 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 +962 -201
- package/os/flow/dup-id-scan.ts +187 -0
- package/os/flow/evidence-lock.ts +184 -0
- package/os/flow/flow.module.ts +162 -19
- package/os/flow/git.ts +952 -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 +14 -9
- 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 +925 -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 +44 -16
- 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 +110 -17
- package/os/flow/primary-dirt.ts +319 -0
- package/os/flow/publish.ts +35 -17
- package/os/flow/registry.ts +29 -15
- 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/digest-id-inputs.test.ts +106 -0
- package/os/flow/tests/digest-persist.test.ts +243 -0
- package/os/flow/tests/evidence-preflight-surface-skip.test.ts +218 -0
- 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-attest.test.ts +137 -0
- package/os/flow/tests/flow-push-publish.test.ts +45 -19
- package/os/flow/tests/flow-push-review-baseline.test.ts +339 -0
- package/os/flow/tests/flow-push-supersede.test.ts +37 -34
- package/os/flow/tests/flow-push-verifier-batch.test.ts +134 -0
- 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 +183 -0
- package/os/friction/friction-migrate.test.ts +203 -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 +169 -31
- package/os/friction/handlers/friction-add.ts +263 -0
- package/os/friction/handlers/friction-migrate.ts +425 -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 +303 -0
- package/os/friction/types.ts +19 -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 +445 -42
- package/os/gate/handlers/gate-probe-ratchet.test.ts +364 -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/handlers/archive.ts +3 -11
- 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/plan/handlers/archive.ts +3 -11
- 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/archive.ts +3 -11
- 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/list-create.ts +22 -17
- 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/archive.ts +3 -11
- 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-product-register.ts +492 -0
- package/os/system/handlers/system-products-status.ts +395 -0
- 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/schemas.ts +17 -0
- package/os/system/system.module.ts +130 -11
- 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-product-register.test.ts +304 -0
- package/os/system/tests/system-products-status.test.ts +154 -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/profiles/root-agents-system.md +82 -0
- package/profiles/system.yaml +1 -0
- 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 +151 -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/create-superfolder-guard.test.ts +73 -0
- package/src/onboarding/create.ts +28 -2
- 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/profiles/stack-profile.ts +2 -2
- 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/evidence-consult-serialization.test.ts +202 -0
- package/src/tests/forge-config.test.ts +5 -2
- package/src/tests/knowledge-paths.test.ts +80 -0
- package/src/tests/pinned-validate.test.ts +194 -0
- package/src/tests/profile-flow-hooks.test.ts +1 -0
- package/src/tests/profile-schema.test.ts +1 -0
- package/src/tests/skill-validate.test.ts +76 -0
- package/src/tests/stack-profile.test.ts +1 -0
- package/src/types.ts +11 -6
- package/src/utils/verifier-git.ts +8732 -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
package/os/queue/queue.module.ts
CHANGED
|
@@ -6,12 +6,14 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-1250: re-review wave — blocked dependsOn cascade, manifest-failure gating, generated artifacts</item>
|
|
10
|
-
<item>RFC-1350: queue-batch hardening — ledger baseline field, manifest packagesImpacted + QUEUE-09, COMMIT-GOV-02 manifest scope, test-first policy</item>
|
|
11
9
|
<item>RFC-1350: review follow-ups — QUEUE-09 touched-set edge cases (empty window, quoted paths, rename source, malformed entries), strict baseline, manifest template/scope wording, generated artifacts resync</item>
|
|
12
10
|
<item>RFC-1354: step 4 — CMD-MAN-02 sweep: writes/generates on mutating commands, mutatesState:false on read-only and port/in-memory commands, execOnReadOnly on subprocess commands (0 CMD-MAN-02; 42 ENV-INPUT-02 excluded per Q-1)</item>
|
|
13
11
|
<item>RFC-1461: declare rules[] severity via CommandRuleDecl workspace-wide (RFC-1461)</item>
|
|
14
|
-
<
|
|
12
|
+
<item>RFC-1601: ledger writers assign + refusals teach the violated rule (RFC-1601)
|
|
13
|
+
|
|
14
|
+
FRICTION-11 flags any out-of-vocabulary friction field value at validate, naming field+value+closed set — the mechanical detector for hand-edit corruption (F-0206/F-0244). queue.decision is the new decision-ledger writer: schema-gated append stamping createdAt/answeredAt, next-free Q-id default, QUEUE-05/QUEUE-DEC-01 refusals carrying the minimal shape. ecosystem.commit --rfc/--adr normalize bare digits or refuse EC-35 with the format statement — the F-0248 silent-injection-skip class is closed, and a summary-record failure now names the id + skipped injection. RFC-IMP-10 refusal leads with the rule statement; pipeline conventions and guides point at the command write path.</item>
|
|
15
|
+
<item>RFC-1592: retire 3 unprobeable rules (F-0288 recurrence) unblocking this worktree's RFC-1592 ratchet</item>
|
|
16
|
+
<history>RFC-1140, RFC-1250, RFC-1350</history>
|
|
15
17
|
</CHANGE_SUMMARY>
|
|
16
18
|
*/
|
|
17
19
|
|
|
@@ -19,12 +21,89 @@ import type { ForgeModule } from "../../src/forge-module.ts";
|
|
|
19
21
|
|
|
20
22
|
export async function createForgeQueueModule(): Promise<ForgeModule> {
|
|
21
23
|
const { runQueueValidate } = await import("./handlers/queue-validate.ts");
|
|
24
|
+
const { runQueueDecision } = await import("./handlers/queue-decision.ts");
|
|
22
25
|
return {
|
|
23
26
|
name: "forge-queue",
|
|
24
27
|
version: "0.1.0",
|
|
25
28
|
runtime: "autonomous",
|
|
26
29
|
declarations: [],
|
|
27
30
|
commands: [
|
|
31
|
+
{
|
|
32
|
+
name: "queue.decision",
|
|
33
|
+
description:
|
|
34
|
+
"Append one schema-validated entry to a queue manifest's decision " +
|
|
35
|
+
"ledger (docs/queues/<stem>.decisions.yaml) — the documented write " +
|
|
36
|
+
"path (RFC-1601). The writer stamps the ledger's createdAt on " +
|
|
37
|
+
"first write and the entry's answeredAt when status is answered or " +
|
|
38
|
+
"auto-resolved; --id defaults to the next free Q-id. Refuses " +
|
|
39
|
+
"QUEUE-01 on an unreadable manifest/ledger, QUEUE-05 on a " +
|
|
40
|
+
"duplicate decision id (names the next free id), QUEUE-DEC-01 on " +
|
|
41
|
+
"input/schema violations with the minimal satisfying shape. " +
|
|
42
|
+
"Required flags: `--file` plus the entry fields (--doc/--stage/" +
|
|
43
|
+
"--question) or --entry-file for a full entry object.",
|
|
44
|
+
scope: "workspace",
|
|
45
|
+
contract: "queue",
|
|
46
|
+
rules: [
|
|
47
|
+
{ id: "QUEUE-01", severity: "error" },
|
|
48
|
+
{ id: "QUEUE-05", severity: "error" },
|
|
49
|
+
],
|
|
50
|
+
mutatesState: true,
|
|
51
|
+
idempotency: "rerun-safe",
|
|
52
|
+
reads: ["docs/queues/*.yaml"],
|
|
53
|
+
writes: ["docs/queues/*.decisions.yaml"],
|
|
54
|
+
generates: [],
|
|
55
|
+
flags: {
|
|
56
|
+
file: {
|
|
57
|
+
kind: "string",
|
|
58
|
+
required: true,
|
|
59
|
+
description:
|
|
60
|
+
"Path to the queue manifest YAML file — the ledger is its sibling <stem>.decisions.yaml.",
|
|
61
|
+
},
|
|
62
|
+
"entry-file": {
|
|
63
|
+
kind: "string",
|
|
64
|
+
required: false,
|
|
65
|
+
description:
|
|
66
|
+
"Path to a YAML/JSON file holding the full decision entry object (options passthrough).",
|
|
67
|
+
},
|
|
68
|
+
id: {
|
|
69
|
+
kind: "string",
|
|
70
|
+
required: false,
|
|
71
|
+
description: "Decision id (Q-N) — defaults to the next free id in the ledger.",
|
|
72
|
+
},
|
|
73
|
+
doc: {
|
|
74
|
+
kind: "string",
|
|
75
|
+
required: false,
|
|
76
|
+
description: "Target document id (RFC-NNNN or ADR-NNNN).",
|
|
77
|
+
},
|
|
78
|
+
stage: {
|
|
79
|
+
kind: "string",
|
|
80
|
+
required: false,
|
|
81
|
+
description: "Pipeline stage: idea|audit|enhance|plan|implement|review.",
|
|
82
|
+
},
|
|
83
|
+
question: {
|
|
84
|
+
kind: "string",
|
|
85
|
+
required: false,
|
|
86
|
+
description: "The decision question.",
|
|
87
|
+
},
|
|
88
|
+
"resolution-path": {
|
|
89
|
+
kind: "string",
|
|
90
|
+
required: false,
|
|
91
|
+
description:
|
|
92
|
+
"How the question resolves: codebase|convention|profile|policy|none (default none).",
|
|
93
|
+
},
|
|
94
|
+
status: {
|
|
95
|
+
kind: "string",
|
|
96
|
+
required: false,
|
|
97
|
+
description: "Entry status: open|answered|auto-resolved|deferred (default open).",
|
|
98
|
+
},
|
|
99
|
+
answer: {
|
|
100
|
+
kind: "string",
|
|
101
|
+
required: false,
|
|
102
|
+
description: "The recorded answer (required for answered/auto-resolved entries).",
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
execute: runQueueDecision,
|
|
106
|
+
},
|
|
28
107
|
{
|
|
29
108
|
name: "queue.validate",
|
|
30
109
|
description:
|
|
@@ -42,7 +121,17 @@ export async function createForgeQueueModule(): Promise<ForgeModule> {
|
|
|
42
121
|
"Required flags: `--file`.",
|
|
43
122
|
scope: "workspace",
|
|
44
123
|
contract: "queue",
|
|
45
|
-
rules: [
|
|
124
|
+
rules: [
|
|
125
|
+
{ id: "QUEUE-01", severity: "error" },
|
|
126
|
+
{ id: "QUEUE-02", severity: "error" },
|
|
127
|
+
{ id: "QUEUE-03", severity: "error" },
|
|
128
|
+
{ id: "QUEUE-04", severity: "error" },
|
|
129
|
+
{ id: "QUEUE-05", severity: "error" },
|
|
130
|
+
{ id: "QUEUE-06", severity: "error" },
|
|
131
|
+
{ id: "QUEUE-07", severity: "error" },
|
|
132
|
+
{ id: "QUEUE-08", severity: "error" },
|
|
133
|
+
{ id: "QUEUE-09", severity: "warning" },
|
|
134
|
+
],
|
|
46
135
|
mutatesState: false,
|
|
47
136
|
execOnReadOnly: true,
|
|
48
137
|
reads: [
|
package/os/rfc/frontmatter-io.ts
CHANGED
|
@@ -10,7 +10,6 @@ circular import between the two.
|
|
|
10
10
|
</non-goals>
|
|
11
11
|
</MODULE_CONTRACT>
|
|
12
12
|
<CHANGE_SUMMARY>
|
|
13
|
-
<item>RFC-0521: added getRfcStatusById and loadRfcStatusMap helpers for plan/audit archive commands.</item>
|
|
14
13
|
<item>RFC-0755: readAndParseRfc now returns { fileName, error } on YAML parse failure instead of undefined.</item>
|
|
15
14
|
<item>RFC-1097: step 6 — compass.migrate codemod run
|
|
16
15
|
|
|
@@ -22,7 +21,7 @@ Sweep batch 4: 73 Compass headers on headerless engine files (certification, com
|
|
|
22
21
|
|
|
23
22
|
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>
|
|
24
23
|
<item>RFC-1534: frontmatterSource captured on both parse paths (probe-meta marker scan); mergeFrontmatterListEntry / appendRfcFrontmatterListEntry — line-level list merge preserving comments and key order (F-0056 discipline, never a YAML.stringify round-trip).</item>
|
|
25
|
-
<history>RFC-0268</history>
|
|
24
|
+
<history>RFC-0268, RFC-0521</history>
|
|
26
25
|
</CHANGE_SUMMARY>
|
|
27
26
|
*/
|
|
28
27
|
|
|
@@ -85,7 +84,11 @@ export function mergeFrontmatterListEntry(
|
|
|
85
84
|
} else {
|
|
86
85
|
insertAt = keyIdx + 1;
|
|
87
86
|
while (insertAt < lines.length && /^\s+-\s+/.test(lines[insertAt]!)) {
|
|
88
|
-
existing.add(
|
|
87
|
+
existing.add(
|
|
88
|
+
lines[insertAt]!.replace(/^\s+-\s+/, "")
|
|
89
|
+
.trim()
|
|
90
|
+
.replace(/^["']|["']$/g, ""),
|
|
91
|
+
);
|
|
89
92
|
insertAt++;
|
|
90
93
|
}
|
|
91
94
|
}
|
|
@@ -33,7 +33,7 @@ import type {
|
|
|
33
33
|
} from "../../../src/types.ts";
|
|
34
34
|
import { RFC_DIR } from "../types.ts";
|
|
35
35
|
import { toIsoDate } from "./shared.ts";
|
|
36
|
-
import { loadPinnedManifest,
|
|
36
|
+
import { loadPinnedManifest, isArchiveBlocked } from "../../core/handlers/pinned-check.ts";
|
|
37
37
|
|
|
38
38
|
export const RFC_TERMINAL_STATUSES = ["implemented", "rejected", "superseded"] as const;
|
|
39
39
|
|
|
@@ -124,11 +124,7 @@ export async function runRfcArchive(
|
|
|
124
124
|
|
|
125
125
|
// RFC-0733: Check if file is pinned before moving
|
|
126
126
|
// Gap fix: exempt intra-directory moves (file stays within the same pinned dir)
|
|
127
|
-
if (
|
|
128
|
-
pinnedManifest &&
|
|
129
|
-
isPinned(pinnedManifest, relFile) &&
|
|
130
|
-
!isIntraDirMove(pinnedManifest, relFile, targetRel)
|
|
131
|
-
) {
|
|
127
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, relFile, targetRel)) {
|
|
132
128
|
skipped.push({ id, file: relFile, reason: "pinned (protected by .forge/pinned.yaml)" });
|
|
133
129
|
if (outputFormat === "pretty") {
|
|
134
130
|
logger.warn(` pinned: skipping ${relFile} (protected)`);
|
|
@@ -173,11 +169,7 @@ export async function runRfcArchive(
|
|
|
173
169
|
|
|
174
170
|
// RFC-0733: Check if file is pinned before moving
|
|
175
171
|
// Gap fix: exempt intra-directory moves (file stays within the same pinned dir)
|
|
176
|
-
if (
|
|
177
|
-
pinnedManifest &&
|
|
178
|
-
isPinned(pinnedManifest, relFile) &&
|
|
179
|
-
!isIntraDirMove(pinnedManifest, relFile, targetRel)
|
|
180
|
-
) {
|
|
172
|
+
if (pinnedManifest && isArchiveBlocked(pinnedManifest, relFile, targetRel)) {
|
|
181
173
|
skipped.push({ id, file: relFile, reason: "pinned (protected by .forge/pinned.yaml)" });
|
|
182
174
|
if (outputFormat === "pretty") {
|
|
183
175
|
logger.warn(` pinned: skipping ${relFile} (protected)`);
|
|
@@ -17,12 +17,14 @@ verificationTier: high RFC.
|
|
|
17
17
|
<item>The high-tier evidence gate severity stays a module constant until the acceptance-report layer lands non-self evidence.</item>
|
|
18
18
|
</KEY_DECISIONS>
|
|
19
19
|
<CHANGE_SUMMARY>
|
|
20
|
-
<item>RFC-1333: steps 1-3 — report contract, rfc.verify.workspace export, RFC-IMP-12 gate, RFC-IMP-11 blocking</item>
|
|
21
20
|
<item>RFC-1333: CX-1/CX-2 fixes — docs/** binding, waiver covers a missing report, IMP-12 for probe-less RFCs; merge-aware fail-closed binding.</item>
|
|
22
21
|
<item>RFC-1391: make the formal verification tier checker-bound (RFC-1391)</item>
|
|
23
22
|
<item>RFC-1483: self-sufficient implement stamp — default repair pass, ordered remediation checklist, --no-repair</item>
|
|
24
23
|
<item>RFC-1485: sweep compass headers — forge-os-rfc</item>
|
|
25
|
-
<
|
|
24
|
+
<item>RFC-1601: ledger writers assign + refusals teach the violated rule (RFC-1601)
|
|
25
|
+
|
|
26
|
+
FRICTION-11 flags any out-of-vocabulary friction field value at validate, naming field+value+closed set — the mechanical detector for hand-edit corruption (F-0206/F-0244). queue.decision is the new decision-ledger writer: schema-gated append stamping createdAt/answeredAt, next-free Q-id default, QUEUE-05/QUEUE-DEC-01 refusals carrying the minimal shape. ecosystem.commit --rfc/--adr normalize bare digits or refuse EC-35 with the format statement — the F-0248 silent-injection-skip class is closed, and a summary-record failure now names the id + skipped injection. RFC-IMP-10 refusal leads with the rule statement; pipeline conventions and guides point at the command write path.</item>
|
|
27
|
+
<history>RFC-1330, RFC-1333</history>
|
|
26
28
|
</CHANGE_SUMMARY>
|
|
27
29
|
*/
|
|
28
30
|
|
|
@@ -87,7 +89,8 @@ export function evaluateOriginGates(input: OriginGateInput): OriginGateResult {
|
|
|
87
89
|
errors.push({
|
|
88
90
|
rule: "RFC-IMP-10",
|
|
89
91
|
message:
|
|
90
|
-
|
|
92
|
+
`expectationSource: a probe running a command this RFC declares must be "self" — ` +
|
|
93
|
+
`${input.targetId} ${describeProbe(probe, i)} declares "${origin.declared}" but git derives it self ` +
|
|
91
94
|
`(${origin.reason.join("; ")}). Correct the declaration to "self", or obtain non-self evidence — never rewrite history.`,
|
|
92
95
|
fixHint: `correct the expectationSource declaration to "self", or bind genuinely non-self evidence — never rewrite history`,
|
|
93
96
|
});
|
|
@@ -12,18 +12,52 @@ verification evidence, and atomically mutates RFC frontmatter.
|
|
|
12
12
|
</non-goals>
|
|
13
13
|
</MODULE_CONTRACT>
|
|
14
14
|
<CHANGE_SUMMARY>
|
|
15
|
-
<item>RFC-1504: step 4 — shared stamp lock for rfc and adr stamp handlers</item>
|
|
16
|
-
<item>RFC-1504: review fixes — legacy acquiredAt fallback, atomic break claim, verified stamp release, onStale warnings</item>
|
|
17
15
|
<item>RFC-1516: add an evidence-freshness window to the stamp-sync chain for rfc-1516</item>
|
|
18
16
|
<item>RFC-1569: lint rfc evidence annotations and transient probe targets</item>
|
|
19
17
|
<item>RFC-1578: correctness manifest, validator, promotes gate
|
|
20
18
|
|
|
21
19
|
Add os/correctness (forge/correctness-manifest@1, correctness.manifest.validate CORR-01..09), bindings.paths.correctnessManifest, bindings.commands.checkRun and the correctness section, promotes with V-55 and RFC-IMP-16, the typescript profile skeleton, reference pages, and the promotes marking in fo-idea-create-rfc/fo-idea-audit. Repoint the RFC-1391 AC-8 registry test at src/command-modules.ts (stale since RFC-1573) and close the types.ts header comment without a glob-shaped terminator (EC-33).</item>
|
|
22
|
-
<
|
|
20
|
+
<item>RFC-1616: close RFC-1616 r9 trust-boundary counterexamples
|
|
21
|
+
|
|
22
|
+
Independent clean-context verification (round 9, candidate 4436339db)
|
|
23
|
+
returned REFUTED with ten live counterexamples against the r8-hardened
|
|
24
|
+
evidence channel — this commit closes all root causes.
|
|
25
|
+
|
|
26
|
+
- Pack-carried objects get the loose-sweep integrity anchor: every
|
|
27
|
+
.idx/.pack pair under objects/pack is verify-pack -s'd at preflight
|
|
28
|
+
and the sweep memo key is the unforgeable (ino, ctimeMs, size) stat
|
|
29
|
+
triple (CX-113/114); pack.useBitmapIndex=false pins the bitmap
|
|
30
|
+
reachability cache off.
|
|
31
|
+
- Every trusted-path git call routes through the judged/preflighted
|
|
32
|
+
channel: execGit/readCommittedEnvelope/readAcceptanceReports/
|
|
33
|
+
listWorkspaceFiles and the snapshot gitGrep closure now run
|
|
34
|
+
verifierGit/createOriginGit with structured fail-closed dirty
|
|
35
|
+
verdicts (CX-115/118/120/122).
|
|
36
|
+
- Export materialization no longer trusts git archive, ambient tar, or
|
|
37
|
+
committed .gitattributes: exportTree enumerates ls-tree -r -z and
|
|
38
|
+
materializes committed bytes through the re-hashed cat-file --batch
|
|
39
|
+
channel, bounding symlink targets to the export root (CX-116/117).
|
|
40
|
+
- Index-consulting reads run on a verifier-owned claims rebuild:
|
|
41
|
+
prepareEvidenceIndex copies staged object claims into a fresh index
|
|
42
|
+
with zeroed stat metadata, so status/diff content-hash the worktree
|
|
43
|
+
instead of trusting a session-written stat tuple (CX-121).
|
|
44
|
+
- The heredoc lexer is quote-aware: a << inside quotes is string
|
|
45
|
+
content, never an operator (CX-119).
|
|
46
|
+
- Pins ride GIT_CONFIG_* env so the spawned argv stays the judged
|
|
47
|
+
query verbatim; diff.external moved from a broken pin to
|
|
48
|
+
refuse-on-presence; OriginGit.run/runExit now judge caller argv with
|
|
49
|
+
the same read table; batch stdin is EPIPE-safe.
|
|
50
|
+
- kernel-source-scan models the two channel files as judged bodies so
|
|
51
|
+
the channel migration does not read as new unguarded subprocess hits
|
|
52
|
+
in the werkstatt-site mutation ratchet.
|
|
53
|
+
|
|
54
|
+
The independent r9 probe file and acceptance report land in the
|
|
55
|
+
follow-up port commit.</item>
|
|
56
|
+
<item>RFC-1616: close RFC-1616 r16 trust-boundary counterexamples</item>
|
|
57
|
+
<history>RFC-0268, RFC-0476, RFC-0756, RFC-0795, RFC-0997, RFC-1053, RFC-1097, RFC-1249, RFC-1271, RFC-1306, RFC-1310, RFC-1321, RFC-1322, RFC-1330, RFC-1333, RFC-1383, RFC-1391, RFC-1453, RFC-1454, RFC-1483, RFC-1504, RFC-IMP-07</history>
|
|
23
58
|
</CHANGE_SUMMARY>
|
|
24
59
|
*/
|
|
25
60
|
|
|
26
|
-
import { execFile } from "../../../src/utils/sync-fs.ts";
|
|
27
61
|
import { ambientIo, resolveIo } from "../../../src/utils/io.ts";
|
|
28
62
|
|
|
29
63
|
import { join, relative, resolve, sep } from "node:path";
|
|
@@ -58,9 +92,9 @@ import {
|
|
|
58
92
|
createOriginGit,
|
|
59
93
|
createProofEntryResolver,
|
|
60
94
|
deriveProbeOrigins,
|
|
61
|
-
gitEnvForCwd,
|
|
62
95
|
hasVerifierTrailers,
|
|
63
96
|
} from "../verification-origin.ts";
|
|
97
|
+
import { verifierGit } from "../../../src/utils/verifier-git.ts";
|
|
64
98
|
import {
|
|
65
99
|
ACCEPTANCE_REPORTS_DIR,
|
|
66
100
|
evaluateAcceptanceVerificationGate,
|
|
@@ -97,43 +131,34 @@ const VERIFICATION_DIR = join(RFC_DIR, "verification");
|
|
|
97
131
|
// review/fix/chore commits referencing the same RFC id never claim it.
|
|
98
132
|
const IMPLEMENTATION_SUBJECT_RE = /^(implement|feat)(\([^)]*\))?!?:/i;
|
|
99
133
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
resolve(stdout.trim());
|
|
112
|
-
},
|
|
113
|
-
);
|
|
114
|
-
});
|
|
134
|
+
/**
|
|
135
|
+
* Trusted-path git reads go through `verifierGit` — the argv-judged,
|
|
136
|
+
* preflighted channel whose `-c` pins neutralize repo-config programs
|
|
137
|
+
* (`core.fsmonitor`, drivers) and whose HEAD-anchored index defeats
|
|
138
|
+
* `.git/index` stat forgery (CX-115/CX-121). A refused surface degrades
|
|
139
|
+
* to "" — the same "no answer" contract the raw spawn had, now
|
|
140
|
+
* fail-closed instead of fabricated.
|
|
141
|
+
*/
|
|
142
|
+
async function execGit(workspaceRoot: string, args: string[]): Promise<string> {
|
|
143
|
+
const r = await verifierGit(workspaceRoot, args);
|
|
144
|
+
return r.exitCode === 0 ? r.stdout.trim() : "";
|
|
115
145
|
}
|
|
116
146
|
|
|
117
147
|
async function isRfcFileClean(workspaceRoot: string, rfcRelPath: string): Promise<boolean> {
|
|
118
|
-
|
|
119
|
-
|
|
148
|
+
// A refused or failed read is NOT a clean file — the dirty verdict is
|
|
149
|
+
// unverifiable, so `exitCode !== 0 → false` (CX-157: the `execGit`
|
|
150
|
+
// nonzero→"" mapping reads a refusal as clean and skips RFC-IMP-04 on
|
|
151
|
+
// exactly the dirty file it guards; the indexUnproven asymmetry keeps
|
|
152
|
+
// every other stamp gate answering honestly, making this the only
|
|
153
|
+
// blind gate).
|
|
154
|
+
const r = await verifierGit(workspaceRoot, ["status", "--porcelain", "--", rfcRelPath]);
|
|
155
|
+
return r.exitCode === 0 && r.stdout.trim().length === 0;
|
|
120
156
|
}
|
|
121
157
|
|
|
122
158
|
async function commitReachableFromHead(workspaceRoot: string, commitSha: string): Promise<boolean> {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
// So we need a different approach: check exit code directly
|
|
127
|
-
return new Promise((resolve) => {
|
|
128
|
-
execFile(
|
|
129
|
-
"git",
|
|
130
|
-
["merge-base", "--is-ancestor", commitSha, "HEAD"],
|
|
131
|
-
{ cwd: workspaceRoot, timeout: 30000, env: gitEnvForCwd() },
|
|
132
|
-
(err) => {
|
|
133
|
-
resolve(!err);
|
|
134
|
-
},
|
|
135
|
-
);
|
|
136
|
-
});
|
|
159
|
+
// merge-base --is-ancestor exits 0 if ancestor, 1 if not, >1 on error.
|
|
160
|
+
const r = await verifierGit(workspaceRoot, ["merge-base", "--is-ancestor", commitSha, "HEAD"]);
|
|
161
|
+
return r.exitCode === 0;
|
|
137
162
|
}
|
|
138
163
|
|
|
139
164
|
async function autoDetectImplementationCommit(
|
|
@@ -461,14 +486,8 @@ export async function readAcceptanceReports(
|
|
|
461
486
|
|
|
462
487
|
/** RFC-1333: candidate..HEAD may contain only verifier-trailer or docs-only commits. */
|
|
463
488
|
export async function candidateBoundToHead(workspaceRoot: string, sha: string): Promise<boolean> {
|
|
464
|
-
const isAnc =
|
|
465
|
-
|
|
466
|
-
"git",
|
|
467
|
-
["merge-base", "--is-ancestor", sha, "HEAD"],
|
|
468
|
-
{ cwd: workspaceRoot, env: gitEnvForCwd() },
|
|
469
|
-
(err) => done(!err),
|
|
470
|
-
),
|
|
471
|
-
);
|
|
489
|
+
const isAnc =
|
|
490
|
+
(await verifierGit(workspaceRoot, ["merge-base", "--is-ancestor", sha, "HEAD"])).exitCode === 0;
|
|
472
491
|
if (!isAnc) return false;
|
|
473
492
|
// --first-parent -m: a merge reports its full first-parent diff, so code
|
|
474
493
|
// brought in by a merge cannot pass as an empty "docs-only" commit.
|
|
@@ -1042,8 +1061,8 @@ export async function runRfcImplementStamp(
|
|
|
1042
1061
|
if (!rfcFileClean) {
|
|
1043
1062
|
violations.push({
|
|
1044
1063
|
rule: "RFC-IMP-04",
|
|
1045
|
-
message: `RFC file ${rfcRelPath} has uncommitted changes. Commit the RFC file before stamping.`,
|
|
1046
|
-
fixHint: `commit or stash the uncommitted changes to ${rfcRelPath}, then re-run`,
|
|
1064
|
+
message: `RFC file ${rfcRelPath} has uncommitted changes or its dirty state could not be verified. Commit the RFC file before stamping.`,
|
|
1065
|
+
fixHint: `commit or stash the uncommitted changes to ${rfcRelPath} (or restore a verifiable git surface), then re-run`,
|
|
1047
1066
|
});
|
|
1048
1067
|
}
|
|
1049
1068
|
|
|
@@ -14,6 +14,9 @@ Mechanical v1 to v2 header migration across the workspace: 942 files rewritten
|
|
|
14
14
|
|
|
15
15
|
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>
|
|
16
16
|
<item>RFC-1364: robust rfc index generation — bounded retry, RFC-IDX-04, atomic writes</item>
|
|
17
|
+
<item>RFC-1596: V-56 moves declaration on workshop-tooling RFCs
|
|
18
|
+
|
|
19
|
+
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>
|
|
17
20
|
</CHANGE_SUMMARY>
|
|
18
21
|
*/
|
|
19
22
|
|
|
@@ -91,6 +94,16 @@ export async function runRfcIndexGenerate(
|
|
|
91
94
|
const fm = result.parsed.frontmatter;
|
|
92
95
|
const arr = (k: string): string[] =>
|
|
93
96
|
Array.isArray(fm[k]) ? (fm[k] as unknown[]).map(String) : [];
|
|
97
|
+
// RFC-1596: surface the declared loop metric so the index can count
|
|
98
|
+
// tooling RFCs per metric and the share of `none`.
|
|
99
|
+
const moves = fm["moves"];
|
|
100
|
+
const movesMetric =
|
|
101
|
+
moves !== null &&
|
|
102
|
+
typeof moves === "object" &&
|
|
103
|
+
!Array.isArray(moves) &&
|
|
104
|
+
typeof (moves as Record<string, unknown>)["metric"] === "string"
|
|
105
|
+
? String((moves as Record<string, unknown>)["metric"])
|
|
106
|
+
: undefined;
|
|
94
107
|
entries.push({
|
|
95
108
|
id: String(fm["id"] ?? ""),
|
|
96
109
|
title: String(fm["title"] ?? ""),
|
|
@@ -104,6 +117,7 @@ export async function runRfcIndexGenerate(
|
|
|
104
117
|
amends: arr("amends"),
|
|
105
118
|
amendedBy: arr("amendedBy"),
|
|
106
119
|
related: arr("related"),
|
|
120
|
+
...(movesMetric !== undefined ? { movesMetric } : {}),
|
|
107
121
|
file: `${RFC_DIR}/${fileName}`,
|
|
108
122
|
});
|
|
109
123
|
}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-1482: emit validation-compliant RFC skeletons and surface contract breaches at authoring time</item>
|
|
10
9
|
<item>RFC-1534: --amends flag seeds amends: and merges the draft id into the amended file's amendedBy[] in the same pass (line-level, F-0056); unreadable counterpart downgrades to a pending report.</item>
|
|
11
10
|
<item>RFC-1514: attach corrected invocations to blocking diagnostics so retry is one-shot</item>
|
|
12
11
|
<item>RFC-1536: owning-checkout routing, FLOW-OPEN-01 dirty-primary warning, shared governance-id allocation (RFC+ADR)</item>
|
|
13
12
|
<item>RFC-1546: derive-and-repair recoverable state across flow surfaces (AC-1..AC-5)</item>
|
|
14
|
-
<
|
|
13
|
+
<item>RFC-1536: degrade rfc.create session hint when the enclosing repo is unverifiable</item>
|
|
14
|
+
<history>RFC-0303, RFC-1097, RFC-1138, RFC-1139, RFC-1364, RFC-1467, RFC-1482</history>
|
|
15
15
|
</CHANGE_SUMMARY>
|
|
16
16
|
*/
|
|
17
17
|
|
|
@@ -281,8 +281,7 @@ export async function runRfcCreate(
|
|
|
281
281
|
.join("; ");
|
|
282
282
|
const reviewBand = byId(
|
|
283
283
|
scoredAll.filter(
|
|
284
|
-
(d) =>
|
|
285
|
-
TERMINAL_KINDS.has(d.kind) && d.score >= REVIEW_SCORE && d.score < REPROPOSED_SCORE,
|
|
284
|
+
(d) => TERMINAL_KINDS.has(d.kind) && d.score >= REVIEW_SCORE && d.score < REPROPOSED_SCORE,
|
|
286
285
|
),
|
|
287
286
|
);
|
|
288
287
|
const reviewBandIds = reviewBand.map((d) => d.rfcId);
|
|
@@ -439,9 +438,7 @@ export async function runRfcCreate(
|
|
|
439
438
|
const closing = content.indexOf("\n---\n");
|
|
440
439
|
if (closing !== -1) {
|
|
441
440
|
content =
|
|
442
|
-
content.slice(0, closing + 1) +
|
|
443
|
-
`acceptance:\n${stubs}\n` +
|
|
444
|
-
content.slice(closing + 1);
|
|
441
|
+
content.slice(0, closing + 1) + `acceptance:\n${stubs}\n` + content.slice(closing + 1);
|
|
445
442
|
}
|
|
446
443
|
}
|
|
447
444
|
// RFC-1467: cite the acknowledged/review-band precedents in `related`
|
|
@@ -468,14 +465,24 @@ export async function runRfcCreate(
|
|
|
468
465
|
const targetPath = path.join(rfcDirPath, fileName);
|
|
469
466
|
// RFC-1536: reserve on the shared surface BEFORE the file write — a
|
|
470
467
|
// sibling session sees the claimed id even if this write never lands.
|
|
471
|
-
const landed = new Set<number>(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
468
|
+
const landed = new Set<number>(
|
|
469
|
+
files.map((f) => {
|
|
470
|
+
const m = path.basename(f).match(/^rfc-(\d{4})/);
|
|
471
|
+
return m ? parseInt(m[1]!, 10) : 0;
|
|
472
|
+
}),
|
|
473
|
+
);
|
|
475
474
|
const reserved = await appendReservation(
|
|
476
475
|
io,
|
|
477
476
|
workspaceRoot,
|
|
478
|
-
{
|
|
477
|
+
{
|
|
478
|
+
kind: "rfc",
|
|
479
|
+
id: candidate,
|
|
480
|
+
// RFC-1536: `session` is a lifecycle hint, not a claim input — an
|
|
481
|
+
// unverifiable enclosing repo (phantom .git plant, load refusal)
|
|
482
|
+
// degrades to null like friction's "manual" attribution rather
|
|
483
|
+
// than sinking the whole create on a metadata read.
|
|
484
|
+
session: await currentBranch(workspaceRoot, io).catch(() => null),
|
|
485
|
+
},
|
|
479
486
|
landed,
|
|
480
487
|
);
|
|
481
488
|
for (const warning of reserved.warnings) {
|
|
@@ -511,11 +518,9 @@ export async function runRfcCreate(
|
|
|
511
518
|
}
|
|
512
519
|
}
|
|
513
520
|
const wrote = amendedFile
|
|
514
|
-
? await appendRfcFrontmatterListEntry(
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
[nextId],
|
|
518
|
-
)
|
|
521
|
+
? await appendRfcFrontmatterListEntry(path.join(rfcDirPath, amendedFile), "amendedBy", [
|
|
522
|
+
nextId,
|
|
523
|
+
])
|
|
519
524
|
: undefined;
|
|
520
525
|
amendsSync = { amended: amendsId, wroteCounterpart: wrote !== undefined };
|
|
521
526
|
}
|
|
@@ -14,14 +14,51 @@ invocation attests "all generated artifacts + RFC evidence are current".
|
|
|
14
14
|
<KEY_DECISIONS>
|
|
15
15
|
<item>Step order is contract: the ecosystem manifest hashes the other artifacts, so ecosystem.manifest.generate runs last among the manifest steps.</item>
|
|
16
16
|
<item>EVIDENCE_SYNC_STEPS is the canonical regen list</item>
|
|
17
|
-
<item>
|
|
18
|
-
<item>
|
|
19
|
-
<item>
|
|
20
|
-
<item>
|
|
17
|
+
<item>The committed envelope reads via `git show HEAD:<path>`, never the worktree — sub-green gates fall back to full re-execution.</item>
|
|
18
|
+
<item>Reuse evaluates inside emit, not the sync orchestrator — direct emit, sync chain, and stamp share one decision.</item>
|
|
19
|
+
<item>Freshness binds to `resultsFrom ?? emittedAt` — replayed envelopes keep the original execution's anchor, never extended.</item>
|
|
20
|
+
<item>Probes-count mismatch is `malformed` only after acceptanceHash matches — crafted bytes degrade to full re-execution, never crash.</item>
|
|
21
21
|
</KEY_DECISIONS>
|
|
22
22
|
<CHANGE_SUMMARY>
|
|
23
23
|
<item>RFC-1306: initial — EVIDENCE_SYNC_STEPS chain + runRfcEvidenceSync via the ctx.invoke port; EVIDENCE-SYNC-01 fail-closed without a kernel host, EVIDENCE-SYNC-02 propagates a failed step's diagnostics verbatim; review-r1: try/catch maps thrown invokes into EVIDENCE-SYNC-02, dry-run exposes `planned` in data.</item>
|
|
24
24
|
<item>RFC-1306: review-r1 — io-native writes, cacheable off on chain generators, EVIDENCE-SYNC-02 on invoke throws</item>
|
|
25
|
+
<item>RFC-1616: close RFC-1616 r9 trust-boundary counterexamples
|
|
26
|
+
|
|
27
|
+
Independent clean-context verification (round 9, candidate 4436339db)
|
|
28
|
+
returned REFUTED with ten live counterexamples against the r8-hardened
|
|
29
|
+
evidence channel — this commit closes all root causes.
|
|
30
|
+
|
|
31
|
+
- Pack-carried objects get the loose-sweep integrity anchor: every
|
|
32
|
+
.idx/.pack pair under objects/pack is verify-pack -s'd at preflight
|
|
33
|
+
and the sweep memo key is the unforgeable (ino, ctimeMs, size) stat
|
|
34
|
+
triple (CX-113/114); pack.useBitmapIndex=false pins the bitmap
|
|
35
|
+
reachability cache off.
|
|
36
|
+
- Every trusted-path git call routes through the judged/preflighted
|
|
37
|
+
channel: execGit/readCommittedEnvelope/readAcceptanceReports/
|
|
38
|
+
listWorkspaceFiles and the snapshot gitGrep closure now run
|
|
39
|
+
verifierGit/createOriginGit with structured fail-closed dirty
|
|
40
|
+
verdicts (CX-115/118/120/122).
|
|
41
|
+
- Export materialization no longer trusts git archive, ambient tar, or
|
|
42
|
+
committed .gitattributes: exportTree enumerates ls-tree -r -z and
|
|
43
|
+
materializes committed bytes through the re-hashed cat-file --batch
|
|
44
|
+
channel, bounding symlink targets to the export root (CX-116/117).
|
|
45
|
+
- Index-consulting reads run on a verifier-owned claims rebuild:
|
|
46
|
+
prepareEvidenceIndex copies staged object claims into a fresh index
|
|
47
|
+
with zeroed stat metadata, so status/diff content-hash the worktree
|
|
48
|
+
instead of trusting a session-written stat tuple (CX-121).
|
|
49
|
+
- The heredoc lexer is quote-aware: a << inside quotes is string
|
|
50
|
+
content, never an operator (CX-119).
|
|
51
|
+
- Pins ride GIT_CONFIG_* env so the spawned argv stays the judged
|
|
52
|
+
query verbatim; diff.external moved from a broken pin to
|
|
53
|
+
refuse-on-presence; OriginGit.run/runExit now judge caller argv with
|
|
54
|
+
the same read table; batch stdin is EPIPE-safe.
|
|
55
|
+
- kernel-source-scan models the two channel files as judged bodies so
|
|
56
|
+
the channel migration does not read as new unguarded subprocess hits
|
|
57
|
+
in the werkstatt-site mutation ratchet.
|
|
58
|
+
|
|
59
|
+
The independent r9 probe file and acceptance report land in the
|
|
60
|
+
follow-up port commit.</item>
|
|
61
|
+
<item>RFC-1622: preserve single manifest render during archive replay RFC-1622</item>
|
|
25
62
|
</CHANGE_SUMMARY>
|
|
26
63
|
*/
|
|
27
64
|
|
|
@@ -30,9 +67,8 @@ import type {
|
|
|
30
67
|
ForgeCommandResult,
|
|
31
68
|
ForgeRuntimeContext,
|
|
32
69
|
} from "../../../src/types.ts";
|
|
33
|
-
import { execFile } from "../../../src/utils/sync-fs.ts";
|
|
34
70
|
import { parse as yamlParse } from "yaml";
|
|
35
|
-
import {
|
|
71
|
+
import { verifierGit } from "../../../src/utils/verifier-git.ts";
|
|
36
72
|
import type { VerificationEvidence } from "../types.ts";
|
|
37
73
|
|
|
38
74
|
/**
|
|
@@ -131,16 +167,14 @@ export async function readCommittedEnvelope(
|
|
|
131
167
|
probeCountMismatch?: boolean;
|
|
132
168
|
}> {
|
|
133
169
|
const rel = relPath.replace(/\\/g, "/");
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
resolve(err ? "" : out);
|
|
141
|
-
},
|
|
142
|
-
);
|
|
170
|
+
// verifierGit: the committed blob is judged evidence — the preflighted,
|
|
171
|
+
// argv-pinned channel refuses forged object stores (pack/loose/alternates)
|
|
172
|
+
// a raw spawn would serve verbatim (CX-118/CX-120). A refused or failed
|
|
173
|
+
// read degrades to absent → full re-execution, never a fabricated reuse.
|
|
174
|
+
const r = await verifierGit(workspaceRoot, ["show", `HEAD:${rel}`], {
|
|
175
|
+
timeoutMs: 5000,
|
|
143
176
|
});
|
|
177
|
+
const stdout = r.exitCode === 0 ? r.stdout : "";
|
|
144
178
|
if (stdout.trim().length === 0) return {};
|
|
145
179
|
let parsed: unknown;
|
|
146
180
|
try {
|
|
@@ -156,9 +190,7 @@ export async function readCommittedEnvelope(
|
|
|
156
190
|
typeof env.acceptanceHash !== "string" ||
|
|
157
191
|
(env.overall !== "pass" && env.overall !== "fail") ||
|
|
158
192
|
!Array.isArray(env.probes) ||
|
|
159
|
-
env.probes.some(
|
|
160
|
-
(r) => r === null || typeof r !== "object" || typeof r.ok !== "boolean",
|
|
161
|
-
) ||
|
|
193
|
+
env.probes.some((r) => r === null || typeof r !== "object" || typeof r.ok !== "boolean") ||
|
|
162
194
|
(env.resultsFrom !== undefined && typeof env.resultsFrom !== "string")
|
|
163
195
|
) {
|
|
164
196
|
return { malformed: true };
|
|
@@ -342,10 +374,14 @@ export async function runRfcEvidenceSync(
|
|
|
342
374
|
// RFC-1516: a one-line note keeps replayed probes visible — an old
|
|
343
375
|
// pass must never look like a fresh execution in pretty output.
|
|
344
376
|
if (planned.step === EVIDENCE_SYNC_EMIT_STEP && report.exitCode === 0) {
|
|
345
|
-
const emitted = (
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
377
|
+
const emitted = (
|
|
378
|
+
report.data as {
|
|
379
|
+
emitted?: Array<{
|
|
380
|
+
reuse?: { reusable?: boolean; reusedFrom?: string };
|
|
381
|
+
heavyProbesReused?: string[];
|
|
382
|
+
}>;
|
|
383
|
+
} | null
|
|
384
|
+
)?.emitted?.[0];
|
|
349
385
|
if (emitted?.reuse?.reusable === true) {
|
|
350
386
|
logger.info(
|
|
351
387
|
` ${planned.step}: envelope-reused — ${emitted.heavyProbesReused?.length ?? 0} heavy probe(s) replayed from ${emitted.reuse.reusedFrom}`,
|
|
@@ -409,3 +445,7 @@ export async function runRfcEvidenceSync(
|
|
|
409
445
|
`rfc.evidence.sync: ${steps.length} steps clean, ${changedFiles.length} file${changedFiles.length === 1 ? "" : "s"} changed`,
|
|
410
446
|
);
|
|
411
447
|
}
|
|
448
|
+
|
|
449
|
+
// A kernel can advertise this exact implementation to the integration fold.
|
|
450
|
+
// Ordinary invocations retain the complete sync, including the manifest.
|
|
451
|
+
Object.assign(runRfcEvidenceSync, { evidenceSyncStepsV1: true });
|