@gate-forge/cli 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -0
- package/dist/commands/test-gates.d.ts.map +1 -1
- package/dist/commands/test-gates.js +21 -5
- package/dist/commands/test-gates.js.map +1 -1
- package/dist/evaluate.d.ts +34 -0
- package/dist/evaluate.d.ts.map +1 -1
- package/dist/evaluate.js +57 -29
- package/dist/evaluate.js.map +1 -1
- package/guides/QUICKSTART.md +7 -7
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## 0.10.3
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
|
|
8
|
+
- **The docs-only slice seals in a repository that ADOPTED debt.** The seal guard also required the RAW policy blocking list to be empty, and that list is the pre-baseline view: in any repository that ran `gateforge adopt` it holds the adopted classification, finding, unclassified and unresolved entries forever (measured on the repository that motivated this: 1 660 entries), so the 0.10.2 exemption could never engage outside the template fixture, whose adopted debt was missing OBLIGATIONS — none of which are blocking entries. `test-gates --changed --scope changed` refused a `docs/**.md` commit with `--scope changed produced no runnable slice` and the next `check --staged` with the stale-attestation finding, exactly as before that fix. The condition is gone, and it was the only guard term that read a pre-baseline list: a docs-only change cannot change a policy entry, and `check` grades those entries against the adopted baseline on every commit. Nothing else about the receipt moves — it still covers no obligation, one non-docs file in the change keeps today's refusal, and a repository with no adopted debt takes the identical path.
|
|
9
|
+
- **A receipt carried forward no longer reads the raw policy list either.** The same raw term gated the carry-forward over sealed candidate trees, so in an adopted repository the path could never run at all: the parent receipt was verified, the tree difference was proved to lie inside the evaluated paths, and the run still fell through to `--scope changed produced no runnable slice`. What that term has to mean is "no NEW policy debt", and the raw list cannot express it — it is never empty after adoption. It now reads the ADOPTED-baseline view through the same split `applyBaseline` grades with (`splitBlockingByBaseline`, extracted so the guard and the grading cannot disagree): an entry the adoption receipt forgives — by whole-entry fingerprint or by the classification layer's resource identity — is forgiven here too, and an entry adoption never recorded still refuses the carry-forward. Nothing else about the seal moved: the parent receipt must still verify, the two sealed trees must still differ only inside the evaluated paths, and every changed file must still have been scanned.
|
|
10
|
+
|
|
4
11
|
## 0.10.2
|
|
5
12
|
|
|
6
13
|
### Changed
|
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@ The gateforge command-line interface: initialize a project, discover
|
|
|
4
4
|
resources and classification signals, inspect automatic decisions, reuse a
|
|
5
5
|
repository's existing tests, evaluate obligations, run the supervised E2E
|
|
6
6
|
gate, enforce the exact staged candidate, and maintain baselines.
|
|
7
|
+
**0.10.3:** the two receipt paths that read the RAW policy blocking list now read the ADOPTED baseline instead, so both engage in a repository that ran `gateforge adopt` — a `docs/**.md` commit re-seals its zero-record receipt, and a receipt carried forward over sealed candidate trees is carried. Neither ever seals over NEW debt: an entry the adoption receipt forgives (by whole-entry fingerprint or by the classification layer's resource identity) is forgiven in the guard through the same split the grader uses, and an entry adoption never recorded still refuses the path. Nothing else about either receipt moved.
|
|
7
8
|
**0.10.2:** the whole-run cap is the operator's (`runtime.yml executionTimeoutSeconds` or `--run-timeout-min`; by default there is none) and only a STALL bound is ours (`stallTimeoutSeconds`, default 15 min). The commit that WIRES the gate is committable: adoption mode is computed from the base revision — no flag, no config key — so the first adoption commit proves only the obligations it newly claims and the adopted baseline survives the strict-E2E re-grade. The pack configs (`.gateforge/planes.json`, `endpoints.json`, `http-clients.json`, `fastapi.json`) and the generated `.gateforge/hooks/` + `.gateforge/ci/` wiring are owner-pinned, and a run, a `check --staged` and an `enforcement pin` now agree on ONE input identity for the same repository. Upgrading a repository that ships a pack config or the generated wiring: re-pin once.
|
|
8
9
|
**0.10.1:** `enforcement pin`, `check --staged` and `enforcement doctor` now agree on ONE policy digest for the same repository — a repository whose `.gateforge/adapters/` and `.gateforge/waivers/` are empty but untracked (exactly what `gateforge init` leaves behind) no longer makes a freshly written pin fail `check --staged` with `ENFORCEMENT_UNTRUSTED`, and re-pinning converges instead of looping. `tests mark --test` and `tests explain --test` accept the documented `<file>#<titlePath joined by '>'` reconciliation key next to the catalog `logicalKey`, so a key copied out of a report resolves instead of being reported as absent from the catalog. The npm tarball now ships this [CHANGELOG.md](CHANGELOG.md), so the release notes are readable from the installed package.
|
|
9
10
|
**0.10.0:** evidence exclusions moved INTO `.gateforge.yml` (`evidence.exclude.docs` / `.cache`), and `gateforge migrate` moves an existing 0.9 declaration there; `enforcement pin --pin-file` writes the owner-approved policy digest outside the repository and `enforcement doctor` reports `policy-inputs-vs-HEAD` / `approved-digest`; transport (`http:*`) obligations can now be PROVEN through the Observe channel by an ordinary suite-driven test; `@gate-forge/pack-playwright/fixture` works from CommonJS (`require`), so a default-shaped Playwright suite can route its traffic through the session proxy; `classify delete` records owner-declared delete semantics. Upgrading: [UPGRADE-0.9-to-0.10](guides/UPGRADE-0.9-to-0.10.md).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-gates.d.ts","sourceRoot":"","sources":["../../src/commands/test-gates.ts"],"names":[],"mappings":"AA6DA,OAAO,EA2BL,KAAK,eAAe,EAEpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,WAAW,EAGhB,KAAK,iBAAiB,EAKtB,KAAK,SAAS,EAcd,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,WAAW,EAKhB,KAAK,QAAQ,EAEd,MAAM,kBAAkB,CAAC;AAqD1B,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAkCnC,OAAO,EAOL,KAAK,0BAA0B,EAChC,MAAM,cAAc,CAAC;AAyBtB,OAAO,EAQL,KAAK,yBAAyB,EAE/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAuC7D,OAAO,EAA0B,KAAK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G;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,GAAG;IAAE,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAyHrD;AACD;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA6IhG;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,SAAS,gBAAgB,EAAE,GACnC,aAAa,EAAE,CAajB;AA4vHD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,eAAe,GAAG,IAAI,EACvC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,GACrC,MAAM,CAgDR"}
|
|
@@ -67,7 +67,7 @@ import { UsageError } from '../errors.js';
|
|
|
67
67
|
import { writeLine } from '../io.js';
|
|
68
68
|
import { runDiagnosticSuites, runWitnessedPytestSuites } from '../diagnostics.js';
|
|
69
69
|
import { claimInjectionsFor, planScopedExpectedSet, trustedPolicyDigestForConfig, issueGateReceipt, issueRunRecord, parentSha, planExpectedSet, plannedProjectScopes, plannedRowsWithProjectDependencies, sealExecutionResult, supervisionBlocking, SUPERVISED_INVOCATION, } from '../execution.js';
|
|
70
|
-
import { evaluateRun, scopeBlocking } from '../evaluate.js';
|
|
70
|
+
import { evaluateRun, scopeBlocking, splitBlockingByBaseline } from '../evaluate.js';
|
|
71
71
|
import { installedPlaywrightCompatibilityError } from '../package-compatibility.js';
|
|
72
72
|
import { DOCS_EXCLUSIONS_GUARANTEE, loadDocsExclusions } from '../docs-exclusions.js';
|
|
73
73
|
import { CACHE_EXCLUSIONS_GUARANTEE, loadCacheExclusions } from '../cache-exclusions.js';
|
|
@@ -2722,6 +2722,16 @@ async function runSupervisedTestGatesInner(io, options, declaredRunnerEnvNames)
|
|
|
2722
2722
|
currentTreeId: frozenTreeId,
|
|
2723
2723
|
evaluatedPaths: scopeDecision.changedFiles,
|
|
2724
2724
|
});
|
|
2725
|
+
// The policy-debt term reads the ADOPTED-baseline view, not the raw
|
|
2726
|
+
// one. What a carry-forward must never seal over is NEW debt, and the
|
|
2727
|
+
// raw list cannot express that: in a repository that ran `gateforge
|
|
2728
|
+
// adopt` it holds the adopted classification, finding, unclassified
|
|
2729
|
+
// and unresolved entries forever, so the term denied the carry there
|
|
2730
|
+
// altogether. The split keeps the protection and drops only what
|
|
2731
|
+
// adoption forgave — an entry adoption never recorded still blocks —
|
|
2732
|
+
// and it is the same split `applyBaseline` grades through, so the guard
|
|
2733
|
+
// and the grading cannot disagree about what debt is forgiven.
|
|
2734
|
+
const unadoptedPolicyBlocking = splitBlockingByBaseline(adoptedBaseline, pipeline.policy.blocking).kept;
|
|
2725
2735
|
// A planned re-seal is never a carry-forward: it re-runs the
|
|
2726
2736
|
// affected tests and seals its own receipt. `affectedTestCount`
|
|
2727
2737
|
// is the CHANGED-SCOPE plan's count, which a test-only change
|
|
@@ -2742,7 +2752,7 @@ async function runSupervisedTestGatesInner(io, options, declaredRunnerEnvNames)
|
|
|
2742
2752
|
scopeBlockers.length === 0 &&
|
|
2743
2753
|
mappingBlockers.length === 0 &&
|
|
2744
2754
|
inventoryBlocking.length === 0 &&
|
|
2745
|
-
|
|
2755
|
+
unadoptedPolicyBlocking.length === 0 &&
|
|
2746
2756
|
(config.diagnostics?.suites.length ?? 0) === 0 &&
|
|
2747
2757
|
pipeline.policy.obligations.length === carryParent.receipt.verdictSummary.total &&
|
|
2748
2758
|
carryParent.receipt.behaviorCatalogDigest === behaviorBindings.behaviorCatalogDigest &&
|
|
@@ -2836,8 +2846,15 @@ async function runSupervisedTestGatesInner(io, options, declaredRunnerEnvNames)
|
|
|
2836
2846
|
// Every condition below is CHECKED, never assumed: an unusable digest,
|
|
2837
2847
|
// a candidate tree that moved under the run, a missing verifier key, an
|
|
2838
2848
|
// incomplete inventory or discovery, a diagnostics suite, a planned
|
|
2839
|
-
// re-seal, or any
|
|
2840
|
-
// refusal below, byte-for-byte.
|
|
2849
|
+
// re-seal, or any mapping, scope or inventory blocker all fall through
|
|
2850
|
+
// to today's refusal below, byte-for-byte.
|
|
2851
|
+
//
|
|
2852
|
+
// The RAW policy blocking list is deliberately NOT one of them. It is the
|
|
2853
|
+
// pre-baseline view, so in a repository that adopted debt with
|
|
2854
|
+
// `gateforge adopt` it is never empty and the seal could never engage.
|
|
2855
|
+
// A docs-only change cannot change a policy entry, and the commit gate
|
|
2856
|
+
// (`check`) grades those entries against the adopted baseline exactly as
|
|
2857
|
+
// for every commit; this receipt covers no obligation.
|
|
2841
2858
|
const docsOnlySlice = !options.resultOnly &&
|
|
2842
2859
|
namedTestIds === null &&
|
|
2843
2860
|
catalog !== null &&
|
|
@@ -2852,7 +2869,6 @@ async function runSupervisedTestGatesInner(io, options, declaredRunnerEnvNames)
|
|
|
2852
2869
|
scopeBlockers.length === 0 &&
|
|
2853
2870
|
mappingBlockers.length === 0 &&
|
|
2854
2871
|
inventoryBlocking.length === 0 &&
|
|
2855
|
-
pipeline.policy.blocking.length === 0 &&
|
|
2856
2872
|
(config.diagnostics?.suites.length ?? 0) === 0 &&
|
|
2857
2873
|
expectedDigest !== null &&
|
|
2858
2874
|
frozenTreeId !== null &&
|