@warpgogol/forge 9.5.0 → 9.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +30 -0
- package/README.uk.md +30 -0
- package/bin/cli.ts +19 -50
- package/dist/bin/cli.js +18 -43
- package/dist/bin/cli.js.map +1 -1
- package/dist/os/codebase/codebase.module.d.ts +3 -0
- package/dist/os/codebase/codebase.module.d.ts.map +1 -0
- package/dist/os/codebase/codebase.module.js +53 -0
- package/dist/os/codebase/codebase.module.js.map +1 -0
- package/dist/os/codebase/handlers/codebase-measure-symbols.d.ts +15 -0
- package/dist/os/codebase/handlers/codebase-measure-symbols.d.ts.map +1 -0
- package/dist/os/codebase/handlers/codebase-measure-symbols.js +97 -0
- package/dist/os/codebase/handlers/codebase-measure-symbols.js.map +1 -0
- package/dist/os/codebase/handlers/codebase-measure.d.ts +22 -0
- package/dist/os/codebase/handlers/codebase-measure.d.ts.map +1 -0
- package/dist/os/codebase/handlers/codebase-measure.js +435 -0
- package/dist/os/codebase/handlers/codebase-measure.js.map +1 -0
- package/dist/os/codebase/index.d.ts +4 -0
- package/dist/os/codebase/index.d.ts.map +1 -0
- package/dist/os/codebase/index.js +13 -0
- package/dist/os/codebase/index.js.map +1 -0
- package/dist/os/codebase/types.d.ts +35 -0
- package/dist/os/codebase/types.d.ts.map +1 -0
- package/dist/os/codebase/types.js +17 -0
- package/dist/os/codebase/types.js.map +1 -0
- package/dist/os/core/handlers/package-health.d.ts +6 -4
- package/dist/os/core/handlers/package-health.d.ts.map +1 -1
- package/dist/os/core/handlers/package-health.js +15 -20
- package/dist/os/core/handlers/package-health.js.map +1 -1
- package/dist/os/correctness/anchors.d.ts +24 -0
- package/dist/os/correctness/anchors.d.ts.map +1 -0
- package/dist/os/correctness/anchors.js +156 -0
- package/dist/os/correctness/anchors.js.map +1 -0
- package/dist/os/correctness/audit/bindings-verify-substance.d.ts +7 -0
- package/dist/os/correctness/audit/bindings-verify-substance.d.ts.map +1 -0
- package/dist/os/correctness/audit/bindings-verify-substance.js +145 -0
- package/dist/os/correctness/audit/bindings-verify-substance.js.map +1 -0
- package/dist/os/correctness/audit/differential.d.ts +7 -0
- package/dist/os/correctness/audit/differential.d.ts.map +1 -0
- package/dist/os/correctness/audit/differential.js +105 -0
- package/dist/os/correctness/audit/differential.js.map +1 -0
- package/dist/os/correctness/audit/ledger-orphans.d.ts +6 -0
- package/dist/os/correctness/audit/ledger-orphans.d.ts.map +1 -0
- package/dist/os/correctness/audit/ledger-orphans.js +71 -0
- package/dist/os/correctness/audit/ledger-orphans.js.map +1 -0
- package/dist/os/correctness/audit/ledger.d.ts +29 -0
- package/dist/os/correctness/audit/ledger.d.ts.map +1 -0
- package/dist/os/correctness/audit/ledger.js +72 -0
- package/dist/os/correctness/audit/ledger.js.map +1 -0
- package/dist/os/correctness/audit/run.d.ts +27 -0
- package/dist/os/correctness/audit/run.d.ts.map +1 -0
- package/dist/os/correctness/audit/run.js +184 -0
- package/dist/os/correctness/audit/run.js.map +1 -0
- package/dist/os/correctness/audit/schema-db.d.ts +32 -0
- package/dist/os/correctness/audit/schema-db.d.ts.map +1 -0
- package/dist/os/correctness/audit/schema-db.js +166 -0
- package/dist/os/correctness/audit/schema-db.js.map +1 -0
- package/dist/os/correctness/audit/snapshot.d.ts +34 -0
- package/dist/os/correctness/audit/snapshot.d.ts.map +1 -0
- package/dist/os/correctness/audit/snapshot.js +190 -0
- package/dist/os/correctness/audit/snapshot.js.map +1 -0
- package/dist/os/correctness/audit/sql-scanner.d.ts +28 -0
- package/dist/os/correctness/audit/sql-scanner.d.ts.map +1 -0
- package/dist/os/correctness/audit/sql-scanner.js +279 -0
- package/dist/os/correctness/audit/sql-scanner.js.map +1 -0
- package/dist/os/correctness/audit/sql-schema-conform.d.ts +17 -0
- package/dist/os/correctness/audit/sql-schema-conform.d.ts.map +1 -0
- package/dist/os/correctness/audit/sql-schema-conform.js +163 -0
- package/dist/os/correctness/audit/sql-schema-conform.js.map +1 -0
- package/dist/os/correctness/audit/state-transitions-coverage.d.ts +19 -0
- package/dist/os/correctness/audit/state-transitions-coverage.d.ts.map +1 -0
- package/dist/os/correctness/audit/state-transitions-coverage.js +263 -0
- package/dist/os/correctness/audit/state-transitions-coverage.js.map +1 -0
- package/dist/os/correctness/audit/tests/git-fixture.d.ts +15 -0
- package/dist/os/correctness/audit/tests/git-fixture.d.ts.map +1 -0
- package/dist/os/correctness/audit/tests/git-fixture.js +85 -0
- package/dist/os/correctness/audit/tests/git-fixture.js.map +1 -0
- package/dist/os/correctness/audit/types.d.ts +58 -0
- package/dist/os/correctness/audit/types.d.ts.map +1 -0
- package/dist/os/correctness/audit/types.js +34 -0
- package/dist/os/correctness/audit/types.js.map +1 -0
- package/dist/os/correctness/correctness.module.d.ts +3 -0
- package/dist/os/correctness/correctness.module.d.ts.map +1 -0
- package/dist/os/correctness/correctness.module.js +173 -0
- package/dist/os/correctness/correctness.module.js.map +1 -0
- package/dist/os/correctness/gate/frozen.d.ts +52 -0
- package/dist/os/correctness/gate/frozen.d.ts.map +1 -0
- package/dist/os/correctness/gate/frozen.js +322 -0
- package/dist/os/correctness/gate/frozen.js.map +1 -0
- package/dist/os/correctness/gate/origin.d.ts +28 -0
- package/dist/os/correctness/gate/origin.d.ts.map +1 -0
- package/dist/os/correctness/gate/origin.js +139 -0
- package/dist/os/correctness/gate/origin.js.map +1 -0
- package/dist/os/correctness/gate/repo.d.ts +25 -0
- package/dist/os/correctness/gate/repo.d.ts.map +1 -0
- package/dist/os/correctness/gate/repo.js +88 -0
- package/dist/os/correctness/gate/repo.js.map +1 -0
- package/dist/os/correctness/gate/run.d.ts +22 -0
- package/dist/os/correctness/gate/run.d.ts.map +1 -0
- package/dist/os/correctness/gate/run.js +430 -0
- package/dist/os/correctness/gate/run.js.map +1 -0
- package/dist/os/correctness/gate/runner.d.ts +18 -0
- package/dist/os/correctness/gate/runner.d.ts.map +1 -0
- package/dist/os/correctness/gate/runner.js +123 -0
- package/dist/os/correctness/gate/runner.js.map +1 -0
- package/dist/os/correctness/gate/tests/gate-fixture.d.ts +36 -0
- package/dist/os/correctness/gate/tests/gate-fixture.d.ts.map +1 -0
- package/dist/os/correctness/gate/tests/gate-fixture.js +153 -0
- package/dist/os/correctness/gate/tests/gate-fixture.js.map +1 -0
- package/dist/os/correctness/gate/types.d.ts +102 -0
- package/dist/os/correctness/gate/types.d.ts.map +1 -0
- package/dist/os/correctness/gate/types.js +64 -0
- package/dist/os/correctness/gate/types.js.map +1 -0
- package/dist/os/correctness/handlers/audit.d.ts +4 -0
- package/dist/os/correctness/handlers/audit.d.ts.map +1 -0
- package/dist/os/correctness/handlers/audit.js +95 -0
- package/dist/os/correctness/handlers/audit.js.map +1 -0
- package/dist/os/correctness/handlers/gate.d.ts +4 -0
- package/dist/os/correctness/handlers/gate.d.ts.map +1 -0
- package/dist/os/correctness/handlers/gate.js +62 -0
- package/dist/os/correctness/handlers/gate.js.map +1 -0
- package/dist/os/correctness/handlers/validate.d.ts +19 -0
- package/dist/os/correctness/handlers/validate.d.ts.map +1 -0
- package/dist/os/correctness/handlers/validate.js +367 -0
- package/dist/os/correctness/handlers/validate.js.map +1 -0
- package/dist/os/correctness/index.d.ts +8 -0
- package/dist/os/correctness/index.d.ts.map +1 -0
- package/dist/os/correctness/index.js +23 -0
- package/dist/os/correctness/index.js.map +1 -0
- package/dist/os/correctness/manifest-schema.d.ts +155 -0
- package/dist/os/correctness/manifest-schema.d.ts.map +1 -0
- package/dist/os/correctness/manifest-schema.js +110 -0
- package/dist/os/correctness/manifest-schema.js.map +1 -0
- package/dist/os/correctness/references.d.ts +22 -0
- package/dist/os/correctness/references.d.ts.map +1 -0
- package/dist/os/correctness/references.js +129 -0
- package/dist/os/correctness/references.js.map +1 -0
- package/dist/os/correctness/tests/fixture-workspace.d.ts +23 -0
- package/dist/os/correctness/tests/fixture-workspace.d.ts.map +1 -0
- package/dist/os/correctness/tests/fixture-workspace.js +104 -0
- package/dist/os/correctness/tests/fixture-workspace.js.map +1 -0
- package/dist/os/correctness/workspace.d.ts +32 -0
- package/dist/os/correctness/workspace.d.ts.map +1 -0
- package/dist/os/correctness/workspace.js +147 -0
- package/dist/os/correctness/workspace.js.map +1 -0
- package/dist/os/flow/correctness-step.d.ts +19 -0
- package/dist/os/flow/correctness-step.d.ts.map +1 -0
- package/dist/os/flow/correctness-step.js +133 -0
- package/dist/os/flow/correctness-step.js.map +1 -0
- package/dist/os/flow/digest.d.ts +18 -0
- package/dist/os/flow/digest.d.ts.map +1 -1
- package/dist/os/flow/digest.js +28 -1
- package/dist/os/flow/digest.js.map +1 -1
- package/dist/os/flow/flow.module.d.ts.map +1 -1
- package/dist/os/flow/flow.module.js +17 -3
- package/dist/os/flow/flow.module.js.map +1 -1
- package/dist/os/flow/handlers/flow-digest.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-digest.js +11 -1
- package/dist/os/flow/handlers/flow-digest.js.map +1 -1
- package/dist/os/flow/handlers/flow-integrate.d.ts +11 -0
- package/dist/os/flow/handlers/flow-integrate.d.ts.map +1 -1
- package/dist/os/flow/handlers/flow-integrate.js +90 -5
- package/dist/os/flow/handlers/flow-integrate.js.map +1 -1
- package/dist/os/flow/post-rebase-regen.d.ts +33 -0
- package/dist/os/flow/post-rebase-regen.d.ts.map +1 -0
- package/dist/os/flow/post-rebase-regen.js +120 -0
- package/dist/os/flow/post-rebase-regen.js.map +1 -0
- package/dist/os/flow/preflight.d.ts.map +1 -1
- package/dist/os/flow/preflight.js +11 -15
- package/dist/os/flow/preflight.js.map +1 -1
- package/dist/os/flow/publish.d.ts.map +1 -1
- package/dist/os/flow/publish.js +23 -4
- package/dist/os/flow/publish.js.map +1 -1
- package/dist/os/flow/registry.d.ts +4 -4
- package/dist/os/flow/tests/helpers.d.ts +9 -1
- package/dist/os/flow/tests/helpers.d.ts.map +1 -1
- package/dist/os/flow/tests/helpers.js +36 -2
- package/dist/os/flow/tests/helpers.js.map +1 -1
- package/dist/os/friction/types.d.ts +2 -2
- package/dist/os/gate-run/status.d.ts +12 -0
- package/dist/os/gate-run/status.d.ts.map +1 -1
- package/dist/os/gate-run/status.js +24 -3
- package/dist/os/gate-run/status.js.map +1 -1
- package/dist/os/program/schemas.d.ts +3 -3
- package/dist/os/queue/types.d.ts +2 -2
- package/dist/os/rfc/handlers/implement-stamp-promotes.d.ts +8 -0
- package/dist/os/rfc/handlers/implement-stamp-promotes.d.ts.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp-promotes.js +65 -0
- package/dist/os/rfc/handlers/implement-stamp-promotes.js.map +1 -0
- package/dist/os/rfc/handlers/implement-stamp.d.ts.map +1 -1
- package/dist/os/rfc/handlers/implement-stamp.js +15 -2
- package/dist/os/rfc/handlers/implement-stamp.js.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.d.ts.map +1 -1
- package/dist/os/rfc/handlers/validate-rules.js +26 -5
- package/dist/os/rfc/handlers/validate-rules.js.map +1 -1
- package/dist/os/rfc/rfc.module.d.ts.map +1 -1
- package/dist/os/rfc/rfc.module.js +18 -6
- package/dist/os/rfc/rfc.module.js.map +1 -1
- package/dist/os/rfc/types.d.ts +12 -3
- package/dist/os/rfc/types.d.ts.map +1 -1
- package/dist/os/rfc/types.js +5 -2
- package/dist/os/rfc/types.js.map +1 -1
- package/dist/os/rfc/verify-workspace.d.ts +12 -0
- package/dist/os/rfc/verify-workspace.d.ts.map +1 -1
- package/dist/os/rfc/verify-workspace.js +155 -0
- package/dist/os/rfc/verify-workspace.js.map +1 -1
- package/dist/os/system/task-schemas.d.ts +1 -1
- package/dist/os/system/tests/helpers.d.ts.map +1 -1
- package/dist/os/system/tests/helpers.js +6 -1
- package/dist/os/system/tests/helpers.js.map +1 -1
- package/dist/os/werkstatt/handlers/schema.d.ts +1 -1
- package/dist/src/command-modules.d.ts +4 -0
- package/dist/src/command-modules.d.ts.map +1 -0
- package/dist/src/command-modules.js +42 -0
- package/dist/src/command-modules.js.map +1 -0
- package/dist/src/config/forge-config.d.ts +16 -1
- package/dist/src/config/forge-config.d.ts.map +1 -1
- package/dist/src/config/forge-config.js +27 -11
- package/dist/src/config/forge-config.js.map +1 -1
- package/dist/src/correctness/index.d.ts +32 -0
- package/dist/src/correctness/index.d.ts.map +1 -0
- package/dist/src/correctness/index.js +157 -0
- package/dist/src/correctness/index.js.map +1 -0
- package/dist/src/correctness/schema-hash.d.ts +15 -0
- package/dist/src/correctness/schema-hash.d.ts.map +1 -0
- package/dist/src/correctness/schema-hash.js +44 -0
- package/dist/src/correctness/schema-hash.js.map +1 -0
- package/dist/src/knowledge/schema.d.ts +1 -1
- package/dist/src/onboarding/agents-generate.d.ts.map +1 -1
- package/dist/src/onboarding/agents-generate.js +20 -3
- package/dist/src/onboarding/agents-generate.js.map +1 -1
- package/dist/src/onboarding/create.d.ts +7 -0
- package/dist/src/onboarding/create.d.ts.map +1 -1
- package/dist/src/onboarding/create.js +62 -9
- package/dist/src/onboarding/create.js.map +1 -1
- package/docs/reference/correctness-audit.md +91 -0
- package/docs/reference/correctness-gate.md +102 -0
- package/docs/reference/correctness-manifest.md +142 -0
- package/docs/reference/forge-yaml.md +15 -0
- package/os/codebase/codebase.module.ts +57 -0
- package/os/codebase/handlers/codebase-measure-symbols.ts +131 -0
- package/os/codebase/handlers/codebase-measure.ts +503 -0
- package/os/codebase/index.ts +21 -0
- package/os/codebase/types.ts +55 -0
- package/os/core/handlers/package-health.test.ts +24 -2
- package/os/core/handlers/package-health.ts +16 -19
- package/os/correctness/anchors.ts +182 -0
- package/os/correctness/audit/bindings-verify-substance.test.ts +79 -0
- package/os/correctness/audit/bindings-verify-substance.ts +155 -0
- package/os/correctness/audit/differential.test.ts +113 -0
- package/os/correctness/audit/differential.ts +131 -0
- package/os/correctness/audit/ledger-orphans.test.ts +96 -0
- package/os/correctness/audit/ledger-orphans.ts +84 -0
- package/os/correctness/audit/ledger.test.ts +65 -0
- package/os/correctness/audit/ledger.ts +103 -0
- package/os/correctness/audit/run.ts +220 -0
- package/os/correctness/audit/schema-db.ts +208 -0
- package/os/correctness/audit/snapshot.ts +211 -0
- package/os/correctness/audit/sql-scanner.test.ts +84 -0
- package/os/correctness/audit/sql-scanner.ts +289 -0
- package/os/correctness/audit/sql-schema-conform.test.ts +170 -0
- package/os/correctness/audit/sql-schema-conform.ts +178 -0
- package/os/correctness/audit/state-transitions-coverage.test.ts +141 -0
- package/os/correctness/audit/state-transitions-coverage.ts +271 -0
- package/os/correctness/audit/tests/git-fixture.ts +98 -0
- package/os/correctness/audit/types.ts +91 -0
- package/os/correctness/correctness-capture.test.ts +107 -0
- package/os/correctness/correctness-chain.test.ts +232 -0
- package/os/correctness/correctness-coverage.test.ts +86 -0
- package/os/correctness/correctness-mode.test.ts +108 -0
- package/os/correctness/correctness-substrate.test.ts +64 -0
- package/os/correctness/correctness.module.ts +182 -0
- package/os/correctness/gate/anchor-events.test.ts +77 -0
- package/os/correctness/gate/freeze-coverage.test.ts +218 -0
- package/os/correctness/gate/freeze-diff.test.ts +110 -0
- package/os/correctness/gate/frozen.ts +399 -0
- package/os/correctness/gate/gate-mode.test.ts +76 -0
- package/os/correctness/gate/hardening.test.ts +175 -0
- package/os/correctness/gate/oracle-edit.test.ts +83 -0
- package/os/correctness/gate/oracle-origin.test.ts +142 -0
- package/os/correctness/gate/origin.ts +175 -0
- package/os/correctness/gate/repo.ts +102 -0
- package/os/correctness/gate/run.ts +547 -0
- package/os/correctness/gate/runner.ts +136 -0
- package/os/correctness/gate/substrate-attestation.test.ts +71 -0
- package/os/correctness/gate/tests/gate-fixture.ts +205 -0
- package/os/correctness/gate/tier-high.test.ts +92 -0
- package/os/correctness/gate/types.ts +144 -0
- package/os/correctness/handlers/audit.ts +107 -0
- package/os/correctness/handlers/gate.ts +75 -0
- package/os/correctness/handlers/validate.ts +514 -0
- package/os/correctness/index.ts +24 -0
- package/os/correctness/manifest-schema.ts +174 -0
- package/os/correctness/references.ts +143 -0
- package/os/correctness/tests/fixture-workspace.ts +119 -0
- package/os/correctness/workspace.ts +167 -0
- package/os/flow/correctness-step.ts +166 -0
- package/os/flow/digest.ts +40 -1
- package/os/flow/flow.module.ts +18 -3
- package/os/flow/handlers/flow-digest.ts +11 -1
- package/os/flow/handlers/flow-integrate.ts +117 -5
- package/os/flow/post-rebase-regen.ts +170 -0
- package/os/flow/preflight.ts +11 -19
- package/os/flow/publish.ts +23 -4
- package/os/flow/tests/flow-detachable.test.ts +31 -0
- package/os/flow/tests/flow-digest-correctness-trail.test.ts +55 -0
- package/os/flow/tests/flow-integrate-correctness-gate.test.ts +275 -0
- package/os/flow/tests/flow-integrate.post-rebase-regen.test.ts +234 -0
- package/os/flow/tests/flow-integrate.test.ts +10 -9
- package/os/flow/tests/helpers.ts +45 -24
- package/os/gate-run/status.ts +36 -3
- package/os/gate-run/tests/gate-run-status.test.ts +114 -0
- package/os/rfc/handlers/implement-stamp-promotes.test.ts +214 -0
- package/os/rfc/handlers/implement-stamp-promotes.ts +79 -0
- package/os/rfc/handlers/implement-stamp.ts +16 -2
- package/os/rfc/handlers/validate-rules.ts +43 -5
- package/os/rfc/rfc.module.ts +19 -6
- package/os/rfc/types.ts +16 -2
- package/os/rfc/verify-workspace-manifest.test.ts +55 -0
- package/os/rfc/verify-workspace.ts +167 -0
- package/os/system/tests/helpers.ts +6 -1
- package/package.json +41 -1
- package/profiles/typescript.yaml +16 -0
- package/skills/_shared/agent-operating-model.md +4 -0
- package/skills/fo/fo-idea-audit/SKILL.md +4 -0
- package/skills/fo/fo-idea-create-rfc/SKILL.md +6 -2
- package/skills/fo/fo-idea-implement/SKILL.md +8 -2
- package/skills/fo/fo-review/SKILL.md +16 -2
- package/src/command-modules.ts +62 -0
- package/src/config/forge-config.ts +37 -11
- package/src/correctness/index.ts +192 -0
- package/src/correctness/schema-hash.ts +59 -0
- package/src/onboarding/agents-generate.ts +20 -3
- package/src/onboarding/create.ts +59 -9
- package/src/tests/agents-generate-detach.test.ts +126 -0
- package/src/tests/codebase-measure-rfc-1581.test.ts +260 -0
- package/src/tests/command-modules.test.ts +34 -0
|
@@ -22,6 +22,12 @@ documents, with a VERIFY-BUNDLE.md carrying only the RFC's normative prose.
|
|
|
22
22
|
<CHANGE_SUMMARY>
|
|
23
23
|
<item>RFC-1333: initial implementation — git-free export, self-test and RFC-document stripping, VERIFY-BUNDLE.md.</item>
|
|
24
24
|
<item>RFC-1333: review hardening — piped export, root node_modules mirroring, failure cleanup, sha resolution, Windows links.</item>
|
|
25
|
+
<item>RFC-1580: digest trail, manifest review export, operating model and skills
|
|
26
|
+
|
|
27
|
+
flow.digest lists X-Correctness-Weakening trailers and verifier-trailer commits (correctnessTrail, part of digestId); rfc.verify.workspace --manifest exports the oracle-review surface with MANIFEST-REVIEW-BUNDLE.md hashes; operating model §7 product tiers and §8 'a self oracle never covers an anchor of a product correctness manifest'; fo-review oracle review mode producing forge/oracle-review@1; fo-idea-implement step 4.4c; correctness-gate reference page; forge AGENTS.md gate rules.</item>
|
|
28
|
+
<item>RFC-1580: close review REVIEW-CODE-2026-11-13-04 findings
|
|
29
|
+
|
|
30
|
+
F1 bootstrap degrade only on an exact unknown-command stderr line with no JSON; F2 review records count only from a verifier-trailer commit naming them; F3 any frozen substrate change or dropped capture is a weakening, declared L3 needs loaded captures; F4 requirement origin needs acceptance before --base; F5 anchor events only for L2+ runs; F6 proof oracles via proof.check only, non-self; F7 bundle naming; F8/F9 limitations; F10 every anchor copy; F11 base entry refs; F12 unreadable base manifest refuses; F13 dirty worktree warning; F14 source/statement diffs; F15 process-group kill; F16 run root cleanup; F20 review dir stripped, blob hashes. Regression tests for spoofing, plain-commit review, L3, requirement origin, rewording, timeout, formal tier, rebind, real-gate pass, accept-weakening. DEV-1..DEV-6 recorded in the RFC.</item>
|
|
25
31
|
</CHANGE_SUMMARY>
|
|
26
32
|
*/
|
|
27
33
|
|
|
@@ -304,12 +310,173 @@ export async function buildVerifyWorkspace(opts: {
|
|
|
304
310
|
return result;
|
|
305
311
|
}
|
|
306
312
|
|
|
313
|
+
/** RFC-1580: narrative directories stripped from an oracle-review export. */
|
|
314
|
+
const MANIFEST_STRIP_DIRS = [
|
|
315
|
+
"docs/plans/",
|
|
316
|
+
"docs/reviews/",
|
|
317
|
+
"docs/sessions/",
|
|
318
|
+
"docs/handoffs/",
|
|
319
|
+
"docs/audits/",
|
|
320
|
+
"docs/queues/",
|
|
321
|
+
"docs/explorations/",
|
|
322
|
+
"docs/metrics/",
|
|
323
|
+
"docs/rfcs/verification/",
|
|
324
|
+
".agents/memory/",
|
|
325
|
+
".agents/notes/",
|
|
326
|
+
];
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* RFC-1580: export a committed candidate for a clean-context oracle review —
|
|
330
|
+
* the manifest, requirement documents, anchored code, oracle and support
|
|
331
|
+
* files, and captures stay; narrative directories are stripped;
|
|
332
|
+
* MANIFEST-REVIEW-BUNDLE.md lists every manifest oracle with its sha256 (the
|
|
333
|
+
* value a forge/oracle-review@1 record must name).
|
|
334
|
+
*/
|
|
335
|
+
export async function buildManifestReviewWorkspace(opts: {
|
|
336
|
+
workspaceRoot: string;
|
|
337
|
+
candidateSha: string;
|
|
338
|
+
outDir?: string;
|
|
339
|
+
}): Promise<RfcVerifyWorkspaceResult> {
|
|
340
|
+
const { workspaceRoot } = opts;
|
|
341
|
+
const resolved = (
|
|
342
|
+
await run(workspaceRoot, "git", ["rev-parse", "--verify", `${opts.candidateSha}^{commit}`])
|
|
343
|
+
).stdout.trim();
|
|
344
|
+
const candidateSha = resolved || opts.candidateSha;
|
|
345
|
+
const fail = (error: string): RfcVerifyWorkspaceResult => ({
|
|
346
|
+
command: "rfc.verify.workspace",
|
|
347
|
+
status: "fail",
|
|
348
|
+
rfcId: "",
|
|
349
|
+
candidateSha,
|
|
350
|
+
path: null,
|
|
351
|
+
removed: [],
|
|
352
|
+
error,
|
|
353
|
+
});
|
|
354
|
+
if (!resolved) return fail(`candidate ${opts.candidateSha} is not a commit`);
|
|
355
|
+
const selfCreated = opts.outDir === undefined;
|
|
356
|
+
const out = opts.outDir ?? (await mkdtemp(join(tmpdir(), "rfc-verify-manifest-")));
|
|
357
|
+
let result: RfcVerifyWorkspaceResult;
|
|
358
|
+
try {
|
|
359
|
+
await mkdir(out, { recursive: true });
|
|
360
|
+
const exportError = await exportTree(workspaceRoot, candidateSha, out);
|
|
361
|
+
if (exportError) {
|
|
362
|
+
result = fail(`export failed: ${exportError}`);
|
|
363
|
+
} else {
|
|
364
|
+
const tracked = (
|
|
365
|
+
await run(workspaceRoot, "git", ["ls-tree", "-r", "--name-only", candidateSha])
|
|
366
|
+
).stdout.split("\n");
|
|
367
|
+
const removed: string[] = [];
|
|
368
|
+
// Earlier review verdicts stay hidden from the reviewer.
|
|
369
|
+
const stripDirs = [...MANIFEST_STRIP_DIRS];
|
|
370
|
+
try {
|
|
371
|
+
const cfgText = await readFile(join(out, "forge.yaml"), "utf8");
|
|
372
|
+
const rd = /^\s*oracleReviewsDir:\s*["']?([^"'\s#]+)/m.exec(cfgText)?.[1];
|
|
373
|
+
stripDirs.push(`${(rd ?? "docs/correctness/reviews").replace(/\/$/, "")}/`);
|
|
374
|
+
} catch {
|
|
375
|
+
stripDirs.push("docs/correctness/reviews/");
|
|
376
|
+
}
|
|
377
|
+
for (const dir of stripDirs) {
|
|
378
|
+
if (tracked.some((f) => f.startsWith(dir)) && existsSync(join(out, dir))) {
|
|
379
|
+
await rm(join(out, dir), { recursive: true, force: true });
|
|
380
|
+
removed.push(dir.replace(/\/$/, ""));
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
await mirrorNodeModules(workspaceRoot, out, ".");
|
|
384
|
+
for (const pj of tracked.filter(
|
|
385
|
+
(f) => f.endsWith("/package.json") && !f.includes("node_modules/"),
|
|
386
|
+
)) {
|
|
387
|
+
await mirrorNodeModules(workspaceRoot, out, dirname(pj));
|
|
388
|
+
}
|
|
389
|
+
const { parse } = await import("yaml");
|
|
390
|
+
const { createHash } = await import("node:crypto");
|
|
391
|
+
let manifestRel: string | null = null;
|
|
392
|
+
try {
|
|
393
|
+
const cfg = parse(await readFile(join(out, "forge.yaml"), "utf8")) as {
|
|
394
|
+
bindings?: { paths?: { correctnessManifest?: unknown } };
|
|
395
|
+
};
|
|
396
|
+
const p = cfg?.bindings?.paths?.correctnessManifest;
|
|
397
|
+
manifestRel = typeof p === "string" ? p : null;
|
|
398
|
+
} catch {
|
|
399
|
+
manifestRel = null;
|
|
400
|
+
}
|
|
401
|
+
const lines = [
|
|
402
|
+
"# Oracle review bundle (forge/oracle-review@1)",
|
|
403
|
+
"",
|
|
404
|
+
`Candidate: ${candidateSha}`,
|
|
405
|
+
`Manifest: ${manifestRel ?? "(none bound)"}`,
|
|
406
|
+
"",
|
|
407
|
+
"For every oracle: does it exercise its entry's requirement, assert against the attested handle (not a second, mocked one), and make its substrate claim plausibly? Record verdicts in a forge/oracle-review@1 file naming each check with the sha256 below.",
|
|
408
|
+
"",
|
|
409
|
+
"Removed from this tree (narrative, intentionally hidden):",
|
|
410
|
+
...removed.map((r) => `- ${r}`),
|
|
411
|
+
"",
|
|
412
|
+
"| Entry | Check | Substrate | sha256 |",
|
|
413
|
+
"| --- | --- | --- | --- |",
|
|
414
|
+
];
|
|
415
|
+
if (manifestRel) {
|
|
416
|
+
try {
|
|
417
|
+
const manifest = parse(await readFile(join(out, manifestRel), "utf8")) as {
|
|
418
|
+
entries?: { id?: string; oracles?: { check?: string; substrate?: string }[] }[];
|
|
419
|
+
};
|
|
420
|
+
for (const entry of manifest?.entries ?? []) {
|
|
421
|
+
for (const o of entry.oracles ?? []) {
|
|
422
|
+
const target = String(o.check ?? "")
|
|
423
|
+
.replace(/^[a-z]+:/, "")
|
|
424
|
+
.replace(/^\.\//, "");
|
|
425
|
+
// Hash the committed blob (git show) — the bytes the gate hashes —
|
|
426
|
+
// not the archive export, which eol/export-subst attributes may alter.
|
|
427
|
+
const blob = await run(workspaceRoot, "git", ["show", `${candidateSha}:${target}`]);
|
|
428
|
+
const digest = blob.ok
|
|
429
|
+
? createHash("sha256").update(blob.stdout).digest("hex")
|
|
430
|
+
: "(missing)";
|
|
431
|
+
lines.push(
|
|
432
|
+
`| ${entry.id ?? "?"} | ${o.check ?? "?"} | ${o.substrate ?? "?"} | ${digest} |`,
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
} catch {
|
|
437
|
+
lines.push("| (manifest unreadable) | | | |");
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
await writeFile(join(out, "MANIFEST-REVIEW-BUNDLE.md"), `${lines.join("\n")}\n`);
|
|
441
|
+
result = {
|
|
442
|
+
command: "rfc.verify.workspace",
|
|
443
|
+
status: "pass",
|
|
444
|
+
rfcId: "",
|
|
445
|
+
candidateSha,
|
|
446
|
+
path: out,
|
|
447
|
+
removed,
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
} catch (e) {
|
|
451
|
+
result = fail(e instanceof Error ? e.message : String(e));
|
|
452
|
+
}
|
|
453
|
+
if (result.status === "fail" && selfCreated) await rm(out, { recursive: true, force: true });
|
|
454
|
+
return result;
|
|
455
|
+
}
|
|
456
|
+
|
|
307
457
|
export async function runRfcVerifyWorkspace(
|
|
308
458
|
input: ForgeCommandInput,
|
|
309
459
|
context: ForgeRuntimeContext,
|
|
310
460
|
): Promise<ForgeCommandResult<RfcVerifyWorkspaceResult>> {
|
|
311
461
|
const rfcId = String(input.flags["id"] ?? "").toUpperCase();
|
|
312
462
|
const candidateSha = String(input.flags["candidate"] ?? "");
|
|
463
|
+
if (input.flags["manifest"] === true) {
|
|
464
|
+
if (!candidateSha) {
|
|
465
|
+
return { exitCode: 1, summary: "rfc.verify.workspace --manifest: --candidate is required" };
|
|
466
|
+
}
|
|
467
|
+
const data = await buildManifestReviewWorkspace({
|
|
468
|
+
workspaceRoot: context.workspaceRoot,
|
|
469
|
+
candidateSha,
|
|
470
|
+
});
|
|
471
|
+
return {
|
|
472
|
+
data,
|
|
473
|
+
exitCode: data.status === "pass" ? 0 : 1,
|
|
474
|
+
summary:
|
|
475
|
+
data.status === "pass"
|
|
476
|
+
? `rfc.verify.workspace --manifest: ${candidateSha.slice(0, 9)} → ${data.path} (${data.removed.length} narrative dir(s) hidden; see MANIFEST-REVIEW-BUNDLE.md)`
|
|
477
|
+
: `rfc.verify.workspace --manifest: ${data.error}`,
|
|
478
|
+
};
|
|
479
|
+
}
|
|
313
480
|
if (!rfcId || !candidateSha) {
|
|
314
481
|
const data: RfcVerifyWorkspaceResult = {
|
|
315
482
|
command: "rfc.verify.workspace",
|
|
@@ -13,6 +13,9 @@ canonical YAML fixture strings keep tests focused on the variable under test.</p
|
|
|
13
13
|
<item>RFC-1508: implement RFC-1508 — system profile, system map schemas and system.map.validate</item>
|
|
14
14
|
<item>RFC-1508: align rfc-1508 schemas with the normative contract after review r1</item>
|
|
15
15
|
<item>RFC-1509: implement RFC-1509 — system task queue, dispatch briefs and task reports</item>
|
|
16
|
+
<item>RFC-1580: correctness.gate and the flow.integrate step
|
|
17
|
+
|
|
18
|
+
Add os/correctness/gate (frozen set at --base, weakening diff incl. byte changes without verifier trailers and frozen exempt mode, git-derived oracle origin with forge/oracle-review@1 records, argv oracle runner with timeout, schema-hash substrate attestation, anchor events, tier high/formal, forge/correctness-bundle@1), the correctness.gate command, test-side helpers @warpgogol/forge/correctness, bindings.paths.oracleReviewsDir, and flow.integrate spawning the primary install's gate after hooks/integration-gate.sh (FLOW-INT-18, --accept-weakening with an X-Correctness-Weakening trailer commit). Flow and system test primaries get a stand-in forge binary; integration warnings now survive the cleanup report.</item>
|
|
16
19
|
</CHANGE_SUMMARY>
|
|
17
20
|
*/
|
|
18
21
|
|
|
@@ -111,10 +114,12 @@ launcher:
|
|
|
111
114
|
* Returns the absolute product root.
|
|
112
115
|
*/
|
|
113
116
|
export async function makeProduct(prefix = "forge-product-"): Promise<string> {
|
|
114
|
-
const { gitExec } = await import("../../flow/tests/helpers.ts");
|
|
117
|
+
const { gitExec, installFakePrimaryForge } = await import("../../flow/tests/helpers.ts");
|
|
115
118
|
const root = await mkdtemp(path.join(os.tmpdir(), prefix));
|
|
116
119
|
const init = await gitExec(root, ["init", "-b", "main"]);
|
|
117
120
|
if (init.exitCode !== 0) throw new Error(`git init failed: ${init.stderr}`);
|
|
121
|
+
// RFC-1580: flow.integrate spawns the primary install's correctness.gate.
|
|
122
|
+
await installFakePrimaryForge(root);
|
|
118
123
|
await gitExec(root, ["config", "user.email", "system-test@example.invalid"]);
|
|
119
124
|
await gitExec(root, ["config", "user.name", "system-test"]);
|
|
120
125
|
await gitExec(root, ["config", "commit.gpgsign", "false"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warpgogol/forge",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.6.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -240,6 +240,18 @@
|
|
|
240
240
|
"types": "./os/friction/friction.module.ts",
|
|
241
241
|
"default": "./os/friction/friction.module.ts"
|
|
242
242
|
},
|
|
243
|
+
"./os/correctness": {
|
|
244
|
+
"types": "./os/correctness/index.ts",
|
|
245
|
+
"default": "./os/correctness/index.ts"
|
|
246
|
+
},
|
|
247
|
+
"./correctness": {
|
|
248
|
+
"types": "./src/correctness/index.ts",
|
|
249
|
+
"default": "./src/correctness/index.ts"
|
|
250
|
+
},
|
|
251
|
+
"./os/correctness-module": {
|
|
252
|
+
"types": "./os/correctness/correctness.module.ts",
|
|
253
|
+
"default": "./os/correctness/correctness.module.ts"
|
|
254
|
+
},
|
|
243
255
|
"./os/yaml": {
|
|
244
256
|
"types": "./os/yaml/index.ts",
|
|
245
257
|
"default": "./os/yaml/index.ts"
|
|
@@ -288,6 +300,14 @@
|
|
|
288
300
|
"types": "./os/checks/index.ts",
|
|
289
301
|
"default": "./os/checks/index.ts"
|
|
290
302
|
},
|
|
303
|
+
"./os/codebase": {
|
|
304
|
+
"types": "./os/codebase/index.ts",
|
|
305
|
+
"default": "./os/codebase/index.ts"
|
|
306
|
+
},
|
|
307
|
+
"./os/codebase-module": {
|
|
308
|
+
"types": "./os/codebase/codebase.module.ts",
|
|
309
|
+
"default": "./os/codebase/codebase.module.ts"
|
|
310
|
+
},
|
|
291
311
|
"./os/context-module": {
|
|
292
312
|
"types": "./os/context/context.module.ts",
|
|
293
313
|
"default": "./os/context/context.module.ts"
|
|
@@ -562,6 +582,18 @@
|
|
|
562
582
|
"types": "./dist/os/friction/friction.module.d.ts",
|
|
563
583
|
"default": "./dist/os/friction/friction.module.js"
|
|
564
584
|
},
|
|
585
|
+
"./os/correctness": {
|
|
586
|
+
"types": "./dist/os/correctness/index.d.ts",
|
|
587
|
+
"default": "./dist/os/correctness/index.js"
|
|
588
|
+
},
|
|
589
|
+
"./correctness": {
|
|
590
|
+
"types": "./dist/src/correctness/index.d.ts",
|
|
591
|
+
"default": "./dist/src/correctness/index.js"
|
|
592
|
+
},
|
|
593
|
+
"./os/correctness-module": {
|
|
594
|
+
"types": "./dist/os/correctness/correctness.module.d.ts",
|
|
595
|
+
"default": "./dist/os/correctness/correctness.module.js"
|
|
596
|
+
},
|
|
565
597
|
"./os/yaml": {
|
|
566
598
|
"types": "./dist/os/yaml/index.d.ts",
|
|
567
599
|
"default": "./dist/os/yaml/index.js"
|
|
@@ -614,6 +646,14 @@
|
|
|
614
646
|
"types": "./dist/os/context/context.module.d.ts",
|
|
615
647
|
"default": "./dist/os/context/context.module.js"
|
|
616
648
|
},
|
|
649
|
+
"./os/codebase": {
|
|
650
|
+
"types": "./dist/os/codebase/index.d.ts",
|
|
651
|
+
"default": "./dist/os/codebase/index.js"
|
|
652
|
+
},
|
|
653
|
+
"./os/codebase-module": {
|
|
654
|
+
"types": "./dist/os/codebase/codebase.module.d.ts",
|
|
655
|
+
"default": "./dist/os/codebase/codebase.module.js"
|
|
656
|
+
},
|
|
617
657
|
"./os/context": {
|
|
618
658
|
"types": "./dist/os/context/index.d.ts",
|
|
619
659
|
"default": "./dist/os/context/index.js"
|
package/profiles/typescript.yaml
CHANGED
|
@@ -540,6 +540,19 @@ workspace:
|
|
|
540
540
|
- Engine: @warpgogol/forge
|
|
541
541
|
- Plugin: @warpgogol/werkstatt-typescript
|
|
542
542
|
- Stack profile: typescript
|
|
543
|
+
- path: docs/correctness.yaml
|
|
544
|
+
content: |
|
|
545
|
+
# Product correctness manifest (RFC-1578, forge/correctness-manifest@1).
|
|
546
|
+
# Each entry roots a check in a requirement (req | dna | rfc-ac |
|
|
547
|
+
# fixed-input | domain), anchors it to @ai-invariant[INV-…] code
|
|
548
|
+
# markers, and lists oracles with their substrate (L0 double · L1
|
|
549
|
+
# engine · L2 runtime · L3 live). Validate with:
|
|
550
|
+
# pnpm exec forge correctness.manifest.validate
|
|
551
|
+
# Reference: node_modules/@warpgogol/forge/docs/reference/correctness-manifest.md
|
|
552
|
+
schema: forge/correctness-manifest@1
|
|
553
|
+
entries: []
|
|
554
|
+
support: []
|
|
555
|
+
exemptions: []
|
|
543
556
|
- path: hooks/worktree-setup.sh
|
|
544
557
|
content: |
|
|
545
558
|
#!/bin/sh
|
|
@@ -564,5 +577,8 @@ workspace:
|
|
|
564
577
|
pnpm run "$script"
|
|
565
578
|
fi
|
|
566
579
|
done
|
|
580
|
+
# RFC-1579: cross-artifact correctness audit from the PRIMARY checkout's
|
|
581
|
+
# forge install — the session under judgment cannot edit or pin it away.
|
|
582
|
+
"$FLOW_PRIMARY/node_modules/.bin/forge" correctness.audit --base "$FLOW_BASE_SHA"
|
|
567
583
|
install:
|
|
568
584
|
- pnpm add -wD @warpgogol/forge @warpgogol/werkstatt-typescript @warpgogol/werkstatt-engine @warpgogol/werkstatt-shared prettier vitest typescript
|
|
@@ -50,6 +50,8 @@ New automated tests need a concrete reason: a protected requirement, a reproduce
|
|
|
50
50
|
- **HIGH** — security, access rights, contracts, data, migrations, critical integrations, significant external effects: additionally verify negative scenarios, boundaries, invariants, rollback, compatibility. Use independent verification where it genuinely reduces risk (e.g. clean-context review).
|
|
51
51
|
- **FORMAL** — only for important, stable, precisely specifiable properties where formalization cost is justified. Tool by task: Lean (math/inductive), Dafny (algorithm correctness), Verus (supported Rust), TLA+/model checking (protocols/concurrency), property/fuzz (broad input classes without full proof). Not installed globally, never mandatory for ordinary changes; record spec, assumptions, proof scope, tool version, and unverified runtime boundaries — a successful proof does not prove business intent or the whole system. Only a mechanical checker verdict (`proof.check` → `proved`, bound to a `forge/proof-spec@1` file) counts as formal-tier evidence — an agent-written argument, a random-sampling property test, or an unavailable checker never does.
|
|
52
52
|
|
|
53
|
+
Product correctness tiers (`forge.yaml` `correctness.tier`, enforced by `correctness.gate` at `flow.integrate`): at `high` a manifest oracle covers only when its bytes came from the clean-context verifier (the last commit touching it carries the verifier trailer pair); at `formal` each manifest entry additionally needs a `proof:` oracle whose `proof.check` verdict is `proved`.
|
|
54
|
+
|
|
53
55
|
## 8. Expectation sources
|
|
54
56
|
|
|
55
57
|
Every significant check has an expectation origin:
|
|
@@ -61,6 +63,8 @@ Every significant check has an expectation origin:
|
|
|
61
63
|
|
|
62
64
|
Another AI agent is not automatically an independent verifier — independence is defined by criterion origin, access to normative sources, and real ability to catch the executor's error. Declare the class on probes via `expectationSource:`; declare what a check does not cover via `limitations:`. The `self` class is derived from git history of the implementation range (acceptance transition → HEAD), not taken on the author's word: a probe whose declaration or test file changed after acceptance is `self` unless the change came from the sanctioned independent-verifier workflow, and a declaration that history contradicts blocks the stamp. Declare `self` honestly for checks you wrote while implementing.
|
|
63
65
|
|
|
66
|
+
A `self` oracle never covers an anchor of a product correctness manifest: `correctness.gate` derives each manifest oracle's origin from git (verifier trailer pair, a committed `forge/oracle-review@1` record naming its current sha256, or byte-identity with the governing RFC's acceptance commit) and refuses an `enforce`-mode integration whose entry is covered only by `self` oracles. Frozen oracles, captures, and support files change only through the verifier workflow; any other byte change is a weakening that lands only in an isolated session the operator accepts (`flow.integrate --accept-weakening`).
|
|
67
|
+
|
|
64
68
|
## 9. Evidence trust boundary
|
|
65
69
|
|
|
66
70
|
An agent's claim that a check ran is not a substitute for the tool's result. Evidence binds: requirement identifier → expected-result source → verified code version → applicable criteria/checks → method and executed command → environment/tool → observed result → machine-artifact link → check limitations. Group checks into one reproducible result; no per-action receipts for trivia.
|
|
@@ -23,6 +23,9 @@ triggerPhrases: ["audit this RFC", "check RFC for ecosystem fit", "review RFC ag
|
|
|
23
23
|
<item>RFC-1097: sweep — SKILL.md headers + classification fixes
|
|
24
24
|
|
|
25
25
|
Sweep batch 1: add Compass v2 headers to 45 SKILL.md files (purpose derived from frontmatter description). Fix non-skill-markdown exclusion to check filename not workspace-relative path (packages/AGENTS.md escaped it). Add .coverage to ignoredDirs.</item>
|
|
26
|
+
<item>RFC-1578: correctness manifest, validator, promotes gate
|
|
27
|
+
|
|
28
|
+
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>
|
|
26
29
|
</CHANGE_SUMMARY>
|
|
27
30
|
-->
|
|
28
31
|
|
|
@@ -138,6 +141,7 @@ This ecosystem is forward-only — no backward compatibility layers, no expand-t
|
|
|
138
141
|
- **Status gate**: the RFC does not contain self-authorizing language ("may proceed while draft", "implementation can start before acceptance"). Draft RFCs cannot grant implementation permission.
|
|
139
142
|
- **Implementation notes** reference the correct governance rules: RFC-XXXX (accepted→implemented transition), RFC-XXXX (if touching agent surface), RFC-XXXX (supersede escalation on invariant conflict), RFC-XXXX (verification evidence for probe-bearing RFCs).
|
|
140
143
|
- **Anti-fabrication**: if the RFC's acceptance criteria include content authoring (prose, business records, claims), the criteria distinguish between code changes an agent can make and content that requires human authoring. The RFC must not claim content will be "auto-generated" when it requires human authoring.
|
|
144
|
+
- **Criterion promotion**: every criterion describing lasting behaviour (a write, a transition, a schema match, an accepted response shape) is listed in `promotes`; one-off criteria (registered command, file exists, doc literal) are not. Report each mis-marked criterion as a finding — promotion decides whether the behaviour stays checked by the product's correctness manifest after the stamp.
|
|
141
145
|
- **Storage policy**: if the RFC touches persistence, it does not introduce cookies (`document.cookie`, `Set-Cookie`). Client-side persistence is `localStorage` only; server-side is `unstorage`.
|
|
142
146
|
- **NEEDS CLARIFICATION markers**: List all unresolved `NEEDS CLARIFICATION` markers with line numbers. If none are found, state "No unresolved markers." Markers in `draft` status are informational; markers in `reviewing`+ status are a blocking finding.
|
|
143
147
|
|
|
@@ -20,12 +20,14 @@ triggerPhrases: ["подготовим RFC", "draft an RFC", "create a full RFC"
|
|
|
20
20
|
</non-goals>
|
|
21
21
|
</MODULE_CONTRACT>
|
|
22
22
|
<CHANGE_SUMMARY>
|
|
23
|
-
<item>RFC-1247: triggerPhrases vocabulary sync — mined operator phrasing applied to this skill's trigger set.</item>
|
|
24
23
|
<item>RFC-1361: path-scoped commits by default — EC-24 pre-commit message lint with governed-prefix exemption</item>
|
|
25
24
|
<item>RFC-1433: friction fast-path — step-3 grilling skipped when the caller supplies open/flagged docs/frictions.yaml entry ids; entries carry the justification, output stays draft.</item>
|
|
26
25
|
<item>RFC-1455: fixed inputs bound to outcome probes — V-50/V-51 + skills</item>
|
|
27
26
|
<item>RFC-1460: recurring frictions escalate to mechanical measures — FRICTION-06/07/08, registry flips, session-retro escalation</item>
|
|
28
|
-
<
|
|
27
|
+
<item>RFC-1578: correctness manifest, validator, promotes gate
|
|
28
|
+
|
|
29
|
+
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>
|
|
30
|
+
<history>RFC-1097, RFC-1247</history>
|
|
29
31
|
</CHANGE_SUMMARY>
|
|
30
32
|
-->
|
|
31
33
|
|
|
@@ -85,6 +87,8 @@ Address every concern the grilling raises by adjusting the metadata, scope, or c
|
|
|
85
87
|
|
|
86
88
|
Every grilling answer that fixes an observable value — verbatim copy, a label, a name, a decided option value — becomes a row in the RFC's `## Fixed inputs` section plus the `AC-N` criterion and outcome probe that checks it. Texts supplied by clients or operators are pasted into the row in full, never referenced by pointer.
|
|
87
89
|
|
|
90
|
+
Mark criteria that describe **lasting behaviour** in the frontmatter `promotes: [AC-N, …]` list — behaviour the product must keep after the stamp (a transition is written, a query matches the schema, a response shape is accepted). One-off criteria (a command is registered, a file exists, a doc names a value) stay unpromoted. `rfc.validate` refuses an id that is not one of the RFC's criteria (V-55); in a project binding a correctness manifest, `rfc.implement.stamp` refuses until each promoted criterion has a `source: rfc-ac` manifest entry (RFC-IMP-16).
|
|
91
|
+
|
|
88
92
|
#### Friction fast-path
|
|
89
93
|
|
|
90
94
|
Step 3 is skipped when the caller supplies `frictions: [F-NNNN, ...]` — ids of `open` or recurrence-flagged entries in `docs/frictions.yaml`. The registry entries are the justification: the friction and its measure already answer the grilling's "why" question, and the created file lands at `draft` under normal human architecture review — operator authority lives at the `draft → accepted` transition, not at file creation.
|
|
@@ -20,7 +20,6 @@ triggerPhrases: ["implement this RFC", "execute the implementation plan", "reali
|
|
|
20
20
|
</non-goals>
|
|
21
21
|
</MODULE_CONTRACT>
|
|
22
22
|
<CHANGE_SUMMARY>
|
|
23
|
-
<item>COMMIT-02: commit templates — governed ids moved to the scope position (fix(rfc-xxxx): repair …, never fix: RFC-XXXX — …); illegal trace: prefix replaced with docs(adr-xxxx):</item>
|
|
24
23
|
<item>RFC-1440: fo-reproduce skill + pipeline wiring
|
|
25
24
|
|
|
26
25
|
New fo-reproduce skill (bounded 5-attempt reproduction loop, no-source-
|
|
@@ -33,7 +32,10 @@ compass inventory regenerated.</item>
|
|
|
33
32
|
<item>RFC-1522: defer mid-session rule-file edits and add handoff state checkpoint
|
|
34
33
|
|
|
35
34
|
fo-idea-implement + fo-idea-plan: rule-file edits collect during plan steps and apply in one pass before rfc.verification.emit (F-0002 — every save re-arms IDE rules re-resolution). fo-handoff: every handoff carries a compact state: YAML block (goal/constraints/verified/changed/validation/rejected/next); dying sessions write it to .agents/memory/daily/<date>.md.</item>
|
|
36
|
-
<
|
|
35
|
+
<item>RFC-1580: digest trail, manifest review export, operating model and skills
|
|
36
|
+
|
|
37
|
+
flow.digest lists X-Correctness-Weakening trailers and verifier-trailer commits (correctnessTrail, part of digestId); rfc.verify.workspace --manifest exports the oracle-review surface with MANIFEST-REVIEW-BUNDLE.md hashes; operating model §7 product tiers and §8 'a self oracle never covers an anchor of a product correctness manifest'; fo-review oracle review mode producing forge/oracle-review@1; fo-idea-implement step 4.4c; correctness-gate reference page; forge AGENTS.md gate rules.</item>
|
|
38
|
+
<history>COMMIT-02, RFC-1097, RFC-1224, RFC-1250, RFC-1310, RFC-1317, RFC-1322, RFC-1332, RFC-1333</history>
|
|
37
39
|
</CHANGE_SUMMARY>
|
|
38
40
|
-->
|
|
39
41
|
|
|
@@ -213,6 +215,10 @@ Only when the document declares `verificationTier: high`. Run after the implemen
|
|
|
213
215
|
5. Disputed counterexamples go to the decision ledger for the operator. Repeat with a fresh verifier at most two fix rounds; a third failure parks the item.
|
|
214
216
|
6. Stamping requires a committed `verdict: pass`, `isolation: subagent` report whose candidate is followed only by verifier-trailer or docs commits.
|
|
215
217
|
|
|
218
|
+
#### 4.4c. Oracle review for product correctness-manifest oracles
|
|
219
|
+
|
|
220
|
+
When the session added or changed oracles of the product correctness manifest (`ref(forge.yaml bindings.paths.correctnessManifest)`) — every promoted acceptance criterion's oracle included — run one oracle review before integrating: commit the implementation, export with `rfc.verify.workspace --manifest --candidate <committed-sha>`, dispatch `fo-review` in oracle review mode as a fresh clean-context subagent on that export, and commit the returned `forge/oracle-review@1` record in its own commit with `X-Expectation-Origin: independent-verifier` + `X-Verifier-Report: <record path>`. Until that record lands, `correctness.gate` counts the oracles as `self` and an `enforce`-mode integration refuses. A later edit by you to a reviewed oracle makes it `self` again (and, once frozen on develop, a weakening). Never pass `flow.integrate --accept-weakening` on your own — it is an operator decision.
|
|
221
|
+
|
|
216
222
|
#### 4.5. Fix errors
|
|
217
223
|
|
|
218
224
|
If any check in step 4.4 fails, fix every error:
|
|
@@ -20,7 +20,6 @@ triggerPhrases: ["проверим всё ли сделали правильно
|
|
|
20
20
|
</non-goals>
|
|
21
21
|
</MODULE_CONTRACT>
|
|
22
22
|
<CHANGE_SUMMARY>
|
|
23
|
-
<item>RFC-1247: triggerPhrases vocabulary sync — mined operator phrasing applied to this skill's trigger set.</item>
|
|
24
23
|
<item>RFC-1250: review wave — QUEUE-07 gates un-parked opens only, ledger binding checks, fail-closed loader
|
|
25
24
|
|
|
26
25
|
REVIEW-RFC-1250-01 findings: QUEUE-07 no longer fires on parked entries
|
|
@@ -36,7 +35,10 @@ gain collect riders (ADR code-trace, NC markers, audit-verdict guard).</item>
|
|
|
36
35
|
<item>RFC-1333: step 4 — acceptance verification mode in fo-review, step 4.4b in fo-idea-implement, RFC-IMP-12 docs</item>
|
|
37
36
|
<item>RFC-1454: review deviations recorded in the RFC — IMP-15 gate, V-49 provenance, skill contract</item>
|
|
38
37
|
<item>RFC-1460: recurring frictions escalate to mechanical measures — FRICTION-06/07/08, registry flips, session-retro escalation</item>
|
|
39
|
-
<
|
|
38
|
+
<item>RFC-1580: digest trail, manifest review export, operating model and skills
|
|
39
|
+
|
|
40
|
+
flow.digest lists X-Correctness-Weakening trailers and verifier-trailer commits (correctnessTrail, part of digestId); rfc.verify.workspace --manifest exports the oracle-review surface with MANIFEST-REVIEW-BUNDLE.md hashes; operating model §7 product tiers and §8 'a self oracle never covers an anchor of a product correctness manifest'; fo-review oracle review mode producing forge/oracle-review@1; fo-idea-implement step 4.4c; correctness-gate reference page; forge AGENTS.md gate rules.</item>
|
|
41
|
+
<history>RFC-1097, RFC-1247, RFC-1250</history>
|
|
40
42
|
</CHANGE_SUMMARY>
|
|
41
43
|
-->
|
|
42
44
|
|
|
@@ -85,6 +87,18 @@ Invoked as `fo-review --acceptance --rfc <RFC-id> --workspace <path>` by `fo-ide
|
|
|
85
87
|
- **Isolation and model:** dispatch a fresh clean-context subagent per round; record `isolation` truthfully (`subagent | isolated-inline | inline`) and the model actually used. A different vendor model may be requested where the platform allows.
|
|
86
88
|
- **Loop cap:** at most two fix rounds (round 0 verification, then rounds 1 and 2 after fixes). A third failing verdict parks the item for operator arbitration; disputed counterexamples go to the decision ledger, never resolved by the executor.
|
|
87
89
|
|
|
90
|
+
## Oracle review mode
|
|
91
|
+
|
|
92
|
+
Invoked as a clean-context subagent by `fo-idea-implement` (and by correctness retrofit tasks) when a session adds or changes product correctness-manifest oracles. Input: the tree exported by `rfc.verify.workspace --manifest --candidate <sha>` — manifest, requirement documents, anchored code, oracle and support files, captures, and `MANIFEST-REVIEW-BUNDLE.md` with each oracle's sha256; plans, reviews, sessions, and narrative are stripped. Never the implementer's story.
|
|
93
|
+
|
|
94
|
+
Per oracle, decide `pass` or `fail`:
|
|
95
|
+
|
|
96
|
+
1. It exercises its entry's requirement (the `ref` / `statement`), not a neighbouring behaviour.
|
|
97
|
+
2. It asserts against the handle it attests (`attestSubstrate`), not a second, mocked one — record `attestedHandleIsUnderTest`.
|
|
98
|
+
3. Its declared substrate (L0 double · L1 engine · L2 runtime · L3 live) is plausible for what it runs on; lifecycle oracles verify `forge.anchor` events against the attested database.
|
|
99
|
+
|
|
100
|
+
Output: a `forge/oracle-review@1` YAML record (`schema`, `reviewedAt`, `isolation: subagent`, `candidate`, `export: "rfc.verify.workspace --manifest"`, overall `verdict`, and per oracle `check`, `sha256` copied from the bundle, `verdict`, `attestedHandleIsUnderTest`, `notes`). The dispatcher writes it under `ref(forge.yaml bindings.paths.oracleReviewsDir)` (default `docs/correctness/reviews/`) and commits it in its own commit carrying `X-Expectation-Origin: independent-verifier` and `X-Verifier-Report: <record path>`. One review pass covers every oracle the session added. The implementer never edits a record or writes the trailer pair itself.
|
|
101
|
+
|
|
88
102
|
## Process
|
|
89
103
|
|
|
90
104
|
### 1. Identify the diff
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
<MODULE_CONTRACT>
|
|
3
|
+
<purpose>RFC-1573 — the single list of forge command modules. `bin/cli.ts`
|
|
4
|
+
buildRegistry() registers them; `src/onboarding/agents-generate.ts` reads
|
|
5
|
+
their declarations (the detachable set) for generated agent instructions.</purpose>
|
|
6
|
+
<non-goals>
|
|
7
|
+
<item>No registration — callers own the registry they build.</item>
|
|
8
|
+
<item>No second list anywhere else — add new modules here only.</item>
|
|
9
|
+
</non-goals>
|
|
10
|
+
</MODULE_CONTRACT>
|
|
11
|
+
*/
|
|
12
|
+
import type { ForgeModule } from "./forge-module.ts";
|
|
13
|
+
|
|
14
|
+
/** Load every forge command module in registration order (lazy imports keep CLI start-up cheap). */
|
|
15
|
+
export async function loadForgeCommandModules(): Promise<ForgeModule[]> {
|
|
16
|
+
const modules: Array<ForgeModule | null> = [
|
|
17
|
+
await import("../os/core/core.module.ts").then((m) => m.createForgeCoreModule()),
|
|
18
|
+
await import("../os/rfc/rfc.module.ts").then((m) => m.createForgeRfcModule()),
|
|
19
|
+
await import("../os/adr/adr.module.ts").then((m) => m.createForgeAdrModule()),
|
|
20
|
+
await import("../os/plan/plan.module.ts").then((m) => m.createForgePlanModule()),
|
|
21
|
+
await import("../os/audit/audit.module.ts").then((m) => m.createForgeAuditModule()),
|
|
22
|
+
await import("../os/mission/mission.module.ts").then((m) => m.createForgeMissionModule()),
|
|
23
|
+
await import("../os/spec/spec.module.ts").then((m) => m.createForgeSpecModule()),
|
|
24
|
+
await import("../os/program/program.module.ts").then((m) => m.createForgeProgramModule()),
|
|
25
|
+
await import("../os/plugin/plugin.module.ts").then((m) => m.forgePluginModule),
|
|
26
|
+
await import("../os/workflow/workflow.module.ts").then((m) => m.createForgeWorkflowModule()),
|
|
27
|
+
await import("../os/naming/naming.module.ts").then((m) => m.createForgeNamingModule()),
|
|
28
|
+
await import("../os/compass/compass.module.ts").then((m) => m.forgeCompassModule),
|
|
29
|
+
await import("../os/werkstatt/werkstatt.module.ts").then((m) => m.forgeWerkstattModule),
|
|
30
|
+
await import("../os/session/session.module.ts").then((m) => m.createForgeSessionModule()),
|
|
31
|
+
await import("../os/exploration/exploration.module.ts").then((m) =>
|
|
32
|
+
m.createForgeExplorationModule(),
|
|
33
|
+
),
|
|
34
|
+
await import("../os/notes/notes.module.ts").then((m) => m.createForgeNotesModule()),
|
|
35
|
+
await import("../os/queue/queue.module.ts").then((m) => m.createForgeQueueModule()),
|
|
36
|
+
await import("../os/gate-run/gate-run.module.ts").then((m) => m.createForgeGateRunModule()),
|
|
37
|
+
await import("../os/authority/authority.module.ts").then((m) => m.createForgeAuthorityModule()),
|
|
38
|
+
await import("../os/conformance/conformance.module.ts").then((m) =>
|
|
39
|
+
m.createForgeConformanceModule(),
|
|
40
|
+
),
|
|
41
|
+
await import("../os/flow/flow.module.ts").then((m) => m.createForgeFlowModule()),
|
|
42
|
+
await import("../os/system/system.module.ts").then((m) => m.createForgeSystemModule()),
|
|
43
|
+
await import("../os/formal/formal.module.ts").then((m) => m.createForgeFormalModule()),
|
|
44
|
+
await import("../os/friction/friction.module.ts").then((m) => m.createForgeFrictionModule()),
|
|
45
|
+
await import("../os/yaml/yaml.module.ts").then((m) => m.createForgeYamlModule()),
|
|
46
|
+
await import("../os/resolver/resolver.module.ts").then((m) => m.forgeResolverModule),
|
|
47
|
+
await import("../os/instructions/instructions.module.ts").then(
|
|
48
|
+
(m) => m.forgeInstructionsModule,
|
|
49
|
+
),
|
|
50
|
+
await import("../os/agent/agent.module.ts").then((m) => m.forgeAgentModule),
|
|
51
|
+
await import("../os/knowledge/knowledge.module.ts").then((m) => m.forgeKnowledgeModule),
|
|
52
|
+
await import("../os/gate/gate.module.ts").then((m) => m.forgeGateModule),
|
|
53
|
+
await import("../os/checks/checks.module.ts").then((m) => m.forgeChecksModule),
|
|
54
|
+
await import("../os/context/context.module.ts").then((m) => m.forgeContextModule),
|
|
55
|
+
await import("../os/trajectory/trajectory.module.ts").then((m) => m.forgeTrajectoryModule),
|
|
56
|
+
await import("../os/correctness/correctness.module.ts").then((m) =>
|
|
57
|
+
m.createForgeCorrectnessModule(),
|
|
58
|
+
),
|
|
59
|
+
await import("../os/codebase/codebase.module.ts").then((m) => m.createForgeCodebaseModule()),
|
|
60
|
+
];
|
|
61
|
+
return modules.filter((m): m is ForgeModule => m !== null);
|
|
62
|
+
}
|
|
@@ -6,19 +6,18 @@
|
|
|
6
6
|
</non-goals>
|
|
7
7
|
</MODULE_CONTRACT>
|
|
8
8
|
<CHANGE_SUMMARY>
|
|
9
|
-
<item>RFC-1391: close RFC-1391 review r1 findings — evidence freshness, config classification, contract guards
|
|
10
|
-
|
|
11
|
-
REVIEW-CODE-2026-10-24-04 (warning): a stale .cache/proofs report could
|
|
12
|
-
fabricate proved; forge.yaml now resolves inside runProofCheck so a malformed
|
|
13
|
-
config is error not unavailable, and both surfaces share one path; {entry} is
|
|
14
|
-
required in formal.tools.command; spec/entry paths are confined to the
|
|
15
|
-
workspace; the exhaustive entry dispatches per packageManager; proved runs
|
|
16
|
-
record log, counterexample stays the refuted-path record.</item>
|
|
17
|
-
<item>RFC-1453: executed outcome probes, IMP-14 surface gate, outcome.serve + V-47/V-48</item>
|
|
18
|
-
<item>RFC-1481: close REVIEW-CODE-2026-11-01-11 findings on resolver safety, IO boundaries, and reporting</item>
|
|
19
9
|
<item>RFC-1493: step 4 — remove per-commit version bump, PC-01..04, version log; one commit path with universal X-RFC/X-ADR trailers</item>
|
|
20
10
|
<item>RFC-1539: package-sourced specs and published consumer validators in Forge</item>
|
|
21
|
-
<
|
|
11
|
+
<item>RFC-1578: correctness manifest, validator, promotes gate
|
|
12
|
+
|
|
13
|
+
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>
|
|
14
|
+
<item>RFC-1579: correctness.audit auditors and differential attribution
|
|
15
|
+
|
|
16
|
+
Add os/correctness/audit: tree snapshots (working tree, index, base via one cat-file batch with git-grep prefilter), literal scanner + SQL classifier, wrangler D1 schema builder on node:sqlite, the four auditors (sql.schema.conform, ledger.orphans, state.transitions.coverage, bindings.verify.substance), subject-keyed differential attribution with allow-list, survival ledger, the correctness.audit handler and registration, and bindings.paths.correctnessLedger.</item>
|
|
17
|
+
<item>RFC-1580: correctness.gate and the flow.integrate step
|
|
18
|
+
|
|
19
|
+
Add os/correctness/gate (frozen set at --base, weakening diff incl. byte changes without verifier trailers and frozen exempt mode, git-derived oracle origin with forge/oracle-review@1 records, argv oracle runner with timeout, schema-hash substrate attestation, anchor events, tier high/formal, forge/correctness-bundle@1), the correctness.gate command, test-side helpers @warpgogol/forge/correctness, bindings.paths.oracleReviewsDir, and flow.integrate spawning the primary install's gate after hooks/integration-gate.sh (FLOW-INT-18, --accept-weakening with an X-Correctness-Weakening trailer commit). Flow and system test primaries get a stand-in forge binary; integration warnings now survive the cleanup report.</item>
|
|
20
|
+
<history>RFC-0391, RFC-0393, RFC-0537, RFC-0538, RFC-0539, RFC-0540, RFC-0543, RFC-0546, RFC-0639, RFC-0640, RFC-0643, RFC-0661, RFC-0662, RFC-0704, RFC-1097, RFC-1224, RFC-1332, RFC-1365, RFC-1391, RFC-1453, RFC-1481</history>
|
|
22
21
|
</CHANGE_SUMMARY>
|
|
23
22
|
*/
|
|
24
23
|
|
|
@@ -62,6 +61,9 @@ export const forgeBindingsSchema = z.object({
|
|
|
62
61
|
// serve ({target} → first stdout line {"url","pid"}, keep running).
|
|
63
62
|
outcomeBuild: z.string().nullable().default(null),
|
|
64
63
|
outcomeServe: z.string().nullable().default(null),
|
|
64
|
+
// RFC-1578: runs one correctness-manifest oracle ({file} placeholder);
|
|
65
|
+
// required when correctness.mode is enforce.
|
|
66
|
+
checkRun: z.string().nullable().default(null),
|
|
65
67
|
// RFC-1224: consumer-defined command keys (e.g. createRfc) stay in the
|
|
66
68
|
// parsed config so resolveBinding can resolve them.
|
|
67
69
|
})
|
|
@@ -72,6 +74,12 @@ export const forgeBindingsSchema = z.object({
|
|
|
72
74
|
reviewsDir: z.string().nullable().default(null),
|
|
73
75
|
handoffsDir: z.string().nullable().default(null),
|
|
74
76
|
sessionsDir: z.string().nullable().default(null),
|
|
77
|
+
// RFC-1578: product correctness manifest — null = no manifest declared.
|
|
78
|
+
correctnessManifest: z.string().nullable().default(null),
|
|
79
|
+
// RFC-1579: survival ledger written by `correctness.audit --write-ledger`.
|
|
80
|
+
correctnessLedger: z.string().nullable().default(null),
|
|
81
|
+
// RFC-1580: committed forge/oracle-review@1 records (null = docs/correctness/reviews).
|
|
82
|
+
oracleReviewsDir: z.string().nullable().default(null),
|
|
75
83
|
}),
|
|
76
84
|
terminology: z.record(z.string(), z.string()).default({}),
|
|
77
85
|
// RFC-1096: consumer-level Compass policy overrides (same shape as the
|
|
@@ -129,6 +137,8 @@ export interface ForgeBindings {
|
|
|
129
137
|
// RFC-1453: outcome-probe bindings ({target} placeholder).
|
|
130
138
|
outcomeBuild: string | null;
|
|
131
139
|
outcomeServe: string | null;
|
|
140
|
+
// RFC-1578: runs one correctness-manifest oracle ({file} placeholder).
|
|
141
|
+
checkRun?: string | null;
|
|
132
142
|
};
|
|
133
143
|
paths: {
|
|
134
144
|
invariantsFile: string | null;
|
|
@@ -136,6 +146,12 @@ export interface ForgeBindings {
|
|
|
136
146
|
reviewsDir: string | null;
|
|
137
147
|
handoffsDir: string | null;
|
|
138
148
|
sessionsDir: string | null;
|
|
149
|
+
// RFC-1578: product correctness manifest — null/absent = no manifest declared.
|
|
150
|
+
correctnessManifest?: string | null;
|
|
151
|
+
// RFC-1579: survival ledger (null/absent = docs/maintenance-debt/correctness.ledger.yaml).
|
|
152
|
+
correctnessLedger?: string | null;
|
|
153
|
+
// RFC-1580: oracle review records (null/absent = docs/correctness/reviews).
|
|
154
|
+
oracleReviewsDir?: string | null;
|
|
139
155
|
};
|
|
140
156
|
terminology: Record<string, string>;
|
|
141
157
|
compass?: CompassPolicyOverrides;
|
|
@@ -360,6 +376,12 @@ export const forgeConfigSchema = z
|
|
|
360
376
|
* passing outcome probe (RFC-IMP-14). Absent means no surfaces declared.
|
|
361
377
|
*/
|
|
362
378
|
outcomeSurfaces: z.array(z.string()).default([]),
|
|
379
|
+
/**
|
|
380
|
+
* RFC-1578: product correctness section (`mode`, `tier`). Loosely typed
|
|
381
|
+
* here on purpose — `correctness.manifest.validate` reports invalid values
|
|
382
|
+
* as CORR-02 instead of every forge command failing to load forge.yaml.
|
|
383
|
+
*/
|
|
384
|
+
correctness: z.record(z.string(), z.unknown()).optional(),
|
|
363
385
|
// RFC-1224: consumer-owned top-level sections (e.g. `plugins:`) stay in the
|
|
364
386
|
// parsed config so full-serialization writes do not silently drop them.
|
|
365
387
|
})
|
|
@@ -407,6 +429,8 @@ export interface ForgeConfig {
|
|
|
407
429
|
profileResolution?: "resolved" | "unknown" | "absent" | "catalog-unavailable";
|
|
408
430
|
/** RFC-1453: picomatch globs naming user-visible outcome surfaces (RFC-IMP-14). */
|
|
409
431
|
outcomeSurfaces: string[];
|
|
432
|
+
/** RFC-1578: raw `correctness:` section — validated by correctness.manifest.validate (CORR-02). */
|
|
433
|
+
correctness?: Record<string, unknown>;
|
|
410
434
|
}
|
|
411
435
|
|
|
412
436
|
// ---------------------------------------------------------------------------
|
|
@@ -478,6 +502,7 @@ export function applyCliBindingDefaults(pm: string): ForgeBindings["commands"] {
|
|
|
478
502
|
verifyReproduction: null,
|
|
479
503
|
outcomeBuild: null,
|
|
480
504
|
outcomeServe: null,
|
|
505
|
+
checkRun: null,
|
|
481
506
|
};
|
|
482
507
|
for (const entry of FORGE_CLI_BINDING_DEFAULTS) {
|
|
483
508
|
const bareKey = entry.key.replace("commands.", "") as keyof ForgeBindings["commands"];
|
|
@@ -525,6 +550,7 @@ export function defaultForgeConfig(projectName: string, packageManager?: string)
|
|
|
525
550
|
reviewsDir: "docs/reviews",
|
|
526
551
|
handoffsDir: "docs/handoffs",
|
|
527
552
|
sessionsDir: "docs/sessions",
|
|
553
|
+
correctnessManifest: null,
|
|
528
554
|
},
|
|
529
555
|
terminology: {},
|
|
530
556
|
compass: {},
|