@gate-forge/cli 0.10.1 → 0.10.2

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +1 -0
  3. package/dist/adoption-mode.d.ts +37 -0
  4. package/dist/adoption-mode.d.ts.map +1 -0
  5. package/dist/adoption-mode.js +101 -0
  6. package/dist/adoption-mode.js.map +1 -0
  7. package/dist/commands/check.d.ts.map +1 -1
  8. package/dist/commands/check.js +185 -15
  9. package/dist/commands/check.js.map +1 -1
  10. package/dist/commands/enforcement.d.ts +19 -0
  11. package/dist/commands/enforcement.d.ts.map +1 -1
  12. package/dist/commands/enforcement.js +69 -3
  13. package/dist/commands/enforcement.js.map +1 -1
  14. package/dist/commands/explain.js +3 -1
  15. package/dist/commands/explain.js.map +1 -1
  16. package/dist/commands/pre-commit.d.ts.map +1 -1
  17. package/dist/commands/pre-commit.js +1 -0
  18. package/dist/commands/pre-commit.js.map +1 -1
  19. package/dist/commands/test-gates.d.ts +12 -1
  20. package/dist/commands/test-gates.d.ts.map +1 -1
  21. package/dist/commands/test-gates.js +267 -9
  22. package/dist/commands/test-gates.js.map +1 -1
  23. package/dist/execution.d.ts +26 -2
  24. package/dist/execution.d.ts.map +1 -1
  25. package/dist/execution.js +80 -2
  26. package/dist/execution.js.map +1 -1
  27. package/dist/input-snapshot.d.ts.map +1 -1
  28. package/dist/input-snapshot.js +20 -1
  29. package/dist/input-snapshot.js.map +1 -1
  30. package/dist/runtime.d.ts +29 -0
  31. package/dist/runtime.d.ts.map +1 -1
  32. package/dist/runtime.js +39 -0
  33. package/dist/runtime.js.map +1 -1
  34. package/dist/scope.d.ts +81 -0
  35. package/dist/scope.d.ts.map +1 -1
  36. package/dist/scope.js +101 -2
  37. package/dist/scope.js.map +1 -1
  38. package/dist/staged-candidate.d.ts +12 -0
  39. package/dist/staged-candidate.d.ts.map +1 -1
  40. package/dist/staged-candidate.js +27 -6
  41. package/dist/staged-candidate.js.map +1 -1
  42. package/dist/test-infrastructure.d.ts +32 -0
  43. package/dist/test-infrastructure.d.ts.map +1 -0
  44. package/dist/test-infrastructure.js +125 -0
  45. package/dist/test-infrastructure.js.map +1 -0
  46. package/guides/QUICKSTART.md +20 -7
  47. package/guides/REFERENCE.md +160 -0
  48. package/guides/TEST-ENVIRONMENT.md +3 -1
  49. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"staged-candidate.js","sourceRoot":"","sources":["../src/staged-candidate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACpH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,GAGpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wEAAwE;AACxE,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAEpD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,iBAAiB,GAAG,mCAAmC,CAAC;AACrE,MAAM,CAAC,MAAM,eAAe,GAAG,mCAAmC,CAAC;AAEnE,sEAAsE;AACtE,MAAM,aAAa,GAAG,0CAA0C,CAAC;AAYjE;;;;;GAKG;AACH,MAAM,OAAO,yBAA0B,S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G,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,mCAAmC,CAAC,EAAE,CAAC;QACtE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,QAAQ,qDAAqD,EAAE,CAAC;IACvG,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,QAAQ,4DAA4D,EAAE,CAAC;AAC7G,CAAC"}
@@ -0,0 +1,32 @@
1
+ import { type GateforgeConfig } from '@gate-forge/core';
2
+ import { runnerConfigPaths } from '@gate-forge/pack-playwright';
3
+ /**
4
+ * Every runner configuration the CONFIGURED runner can be pointed at.
5
+ *
6
+ * The enumeration lives in `@gate-forge/pack-playwright` (one list, one
7
+ * rule): discovery roots the test-infrastructure import graph at exactly
8
+ * these configurations, so a config that names a reporter and a config
9
+ * the scope inputs attribute can never disagree about what exists. This
10
+ * module re-exports it for the CLI's own callers.
11
+ */
12
+ export { runnerConfigPaths };
13
+ /**
14
+ * Every path the staged runtime document NAMES — a command argument or an
15
+ * `env_files` entry — whether or not the file exists yet.
16
+ *
17
+ * These are RUNTIME INPUTS, not owner-pinned policy: a stack script, a
18
+ * compose override and the `.env` the run loads decide what runs and what
19
+ * the suite sees. They expand the evaluation scope and they join the input
20
+ * snapshot, so a change to any of them changes the receipt's identity.
21
+ * They are deliberately NOT part of the owner-approved policy digest: a
22
+ * port or a base URL changes far too often to justify a re-pin.
23
+ *
24
+ * Args:
25
+ * cwd: absolute repo root.
26
+ * config: the loaded configuration (its `runtime` key names the doc).
27
+ *
28
+ * Returns:
29
+ * string[]: normalized repo-relative posix paths, sorted.
30
+ */
31
+ export declare function runtimeDeclaredInputs(cwd: string, config: GateforgeConfig): string[];
32
+ //# sourceMappingURL=test-infrastructure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-infrastructure.d.ts","sourceRoot":"","sources":["../src/test-infrastructure.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAuB,KAAK,eAAe,EAAsB,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAoB,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGlF;;;;;;;;GAQG;AACH,OAAO,EAAE,iBAAiB,EAAE,CAAC;AA+D7B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,EAAE,CAcpF"}
@@ -0,0 +1,125 @@
1
+ /**
2
+ * Which files are a repository's own TEST INFRASTRUCTURE, read from the
3
+ * repository's own words rather than from what a file is named.
4
+ *
5
+ * Two independent sources, both data:
6
+ *
7
+ * - **Runner configurations.** The resolved config is only ONE of them. A
8
+ * repository legitimately keeps several (`playwright.config.ts` for the
9
+ * suite the gate reads, plus dev-stack / headed / demo wrappers), and a
10
+ * repository's `package.json` scripts name them. Only the first one
11
+ * resolved before, so every sibling was unattributable — a change the
12
+ * runner itself may pick up.
13
+ * - **The staged runtime document's own commands and env files.** A
14
+ * `scripts/e2e/run.sh` or a compose override is test infrastructure
15
+ * because `runtime.yml` runs it, not because of where it sits. The same
16
+ * answer denies attribution to an UNDECLARED one: it can change what
17
+ * runs, so it stays `CHANGE_UNMAPPED`.
18
+ *
19
+ * Every path accepted here must already exist inside the repository — a
20
+ * declaration is read as a fact, never as a candidate-supplied string.
21
+ */
22
+ import { readFileSync } from 'node:fs';
23
+ import { join } from 'node:path';
24
+ import { RuntimeConfigSchema } from '@gate-forge/core';
25
+ import { existingRepoFile, runnerConfigPaths } from '@gate-forge/pack-playwright';
26
+ import { parse as parseYaml } from 'yaml';
27
+ /**
28
+ * Every runner configuration the CONFIGURED runner can be pointed at.
29
+ *
30
+ * The enumeration lives in `@gate-forge/pack-playwright` (one list, one
31
+ * rule): discovery roots the test-infrastructure import graph at exactly
32
+ * these configurations, so a config that names a reporter and a config
33
+ * the scope inputs attribute can never disagree about what exists. This
34
+ * module re-exports it for the CLI's own callers.
35
+ */
36
+ export { runnerConfigPaths };
37
+ /** Every argv list the staged runtime document declares, plus its shell commands. */
38
+ function runtimeArgvLists(runtime) {
39
+ const lists = [];
40
+ const push = (value) => {
41
+ if (value === undefined)
42
+ return;
43
+ lists.push(value.split(/\s+/).filter((token) => token.length > 0));
44
+ };
45
+ push(runtime.prepare?.command);
46
+ for (const command of runtime.prepare?.commands ?? [])
47
+ lists.push(command);
48
+ for (const probe of runtime.prepare?.preflight ?? [])
49
+ push(probe.command);
50
+ for (const probe of runtime.health ?? []) {
51
+ push(probe.command);
52
+ push(probe.logAbsent?.command);
53
+ }
54
+ for (const step of [runtime.services_up, runtime.services_down, runtime.reset, runtime.seed, runtime.healthcheck]) {
55
+ for (const command of step?.commands ?? [])
56
+ lists.push(command);
57
+ }
58
+ return lists;
59
+ }
60
+ /**
61
+ * Parses the staged runtime document, or null when the repository
62
+ * declares none, the file is absent, or it does not validate.
63
+ *
64
+ * Reads the document directly rather than through `runtime.ts`: this
65
+ * module is imported by the input snapshot, and `runtime.ts` reaches
66
+ * back into the snapshot through `state.ts`. A leaf reader keeps the
67
+ * dependency graph acyclic, and attribution wants a plain "no document,
68
+ * no declarations" answer anyway.
69
+ *
70
+ * Args:
71
+ * cwd: absolute repo root.
72
+ * config: the loaded configuration (its `runtime` key names the doc).
73
+ *
74
+ * Returns:
75
+ * RuntimeConfig | null: the validated document, or null.
76
+ */
77
+ function readRuntimeDocument(cwd, config) {
78
+ if (config.runtime === undefined)
79
+ return null;
80
+ let document;
81
+ try {
82
+ document = parseYaml(readFileSync(join(cwd, ...config.runtime.split('/')), 'utf8'));
83
+ }
84
+ catch {
85
+ return null;
86
+ }
87
+ const runtime = RuntimeConfigSchema.safeParse(document);
88
+ return runtime.success ? runtime.data : null;
89
+ }
90
+ /**
91
+ * Every path the staged runtime document NAMES — a command argument or an
92
+ * `env_files` entry — whether or not the file exists yet.
93
+ *
94
+ * These are RUNTIME INPUTS, not owner-pinned policy: a stack script, a
95
+ * compose override and the `.env` the run loads decide what runs and what
96
+ * the suite sees. They expand the evaluation scope and they join the input
97
+ * snapshot, so a change to any of them changes the receipt's identity.
98
+ * They are deliberately NOT part of the owner-approved policy digest: a
99
+ * port or a base URL changes far too often to justify a re-pin.
100
+ *
101
+ * Args:
102
+ * cwd: absolute repo root.
103
+ * config: the loaded configuration (its `runtime` key names the doc).
104
+ *
105
+ * Returns:
106
+ * string[]: normalized repo-relative posix paths, sorted.
107
+ */
108
+ export function runtimeDeclaredInputs(cwd, config) {
109
+ const runtime = readRuntimeDocument(cwd, config);
110
+ if (runtime === null)
111
+ return [];
112
+ const found = new Set();
113
+ for (const argv of runtimeArgvLists(runtime)) {
114
+ for (const token of argv) {
115
+ const resolved = existingRepoFile(cwd, token);
116
+ if (resolved !== null)
117
+ found.add(resolved);
118
+ }
119
+ }
120
+ for (const envFile of runtime.env_files ?? []) {
121
+ found.add(envFile.split('\\').join('/'));
122
+ }
123
+ return [...found].sort();
124
+ }
125
+ //# sourceMappingURL=test-infrastructure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-infrastructure.js","sourceRoot":"","sources":["../src/test-infrastructure.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,mBAAmB,EAA4C,MAAM,kBAAkB,CAAC;AACjG,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAClF,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C;;;;;;;;GAQG;AACH,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,qFAAqF;AACrF,SAAS,gBAAgB,CAAC,OAYzB;IACC,MAAM,KAAK,GAAe,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,CAAC,KAAyB,EAAQ,EAAE;QAC/C,IAA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astAPI backend, and SQLAlchemy data layer:
24
24
 
25
25
  ```sh
26
26
  npm i -D \
27
- @gate-forge/cli@0.10.1 \
28
- @gate-forge/pack-playwright@0.10.1 \
29
- @gate-forge/pack-http@0.10.1 \
30
- @gate-forge/pack-fastapi@0.10.1 \
31
- @gate-forge/pack-sqlalchemy@0.10.1
27
+ @gate-forge/cli@0.10.2 \
28
+ @gate-forge/pack-playwright@0.10.2 \
29
+ @gate-forge/pack-http@0.10.2 \
30
+ @gate-forge/pack-fastapi@0.10.2 \
31
+ @gate-forge/pack-sqlalchemy@0.10.2
32
32
  ```
33
33
 
34
34
  Use the project-local `gateforge` binary from your npm script or add `node_modules/.bin` to your shell `PATH`. If the scan recommends other packs, add only the ones your code uses, at the same version. A mismatched Gateforge package contract can stop the CLI with exit code 2 and `GATEFORGE_PACKAGE_INCOMPATIBLE`.
@@ -49,7 +49,7 @@ This installs every pack of the release; the scan still recommends the ones your
49
49
 
50
50
  **You should see:** npm installs the packages without a Gateforge compatibility error.
51
51
 
52
- **If not:** align every direct `@gate-forge/*` package to `0.10.1`, then install again. Do not work around the compatibility error.
52
+ **If not:** align every direct `@gate-forge/*` package to `0.10.2`, then install again. Do not work around the compatibility error.
53
53
 
54
54
  ## 2. Pick a goal
55
55
 
@@ -128,6 +128,19 @@ whenever the repository already had code:
128
128
  gateforge adopt
129
129
  ```
130
130
 
131
+ Then commit the installation **through the hook**:
132
+
133
+ ```sh
134
+ git add -A && git commit -m "adopt the gate"
135
+ ```
136
+
137
+ The generated pre-commit hook runs `gateforge check --staged --require-e2e`. The first adoption commit passes it **without a bypass**: the repository has no gate at HEAD, so the check judges that commit in adoption mode — it demands a sealed receipt for the obligations this commit newly claims (a `--scope changed` run over the same staged candidate is accepted) and leaves pre-existing debt as `adopt` baselined it. There is nothing to configure: adoption mode is computed from HEAD, and once the gate exists every later commit is judged in full.
138
+
139
+ ```sh
140
+ gateforge test-gates --changed --scope changed # seal the receipt the hook will read
141
+ git add -A && git commit -m "adopt the gate" # the hook runs check --staged; no --no-verify
142
+ ```
143
+
131
144
  It records today's blocking findings as forgiven debt, in
132
145
  `.gateforge/baselines/obligations.json` plus a dated receipt in
133
146
  `.gateforge/baselines/adoption.json`, and then wires the blocking gate.
@@ -427,7 +440,7 @@ the registry. To gate a release that is not on the registry yet (a local
427
440
  regenerate:
428
441
 
429
442
  ```sh
430
- GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.10.1.tgz \
443
+ GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.10.2.tgz \
431
444
  gateforge enforce --ci github
432
445
  ```
433
446
 
@@ -298,6 +298,32 @@ Contract highlights:
298
298
  needs installed dependencies blocks honestly instead of silently reusing
299
299
  the worktree's environment.
300
300
 
301
+ ### Whole-run budget and the stall bound
302
+
303
+ By default there is NO whole-run cap. The engine used to kill any supervised
304
+ run at 30 minutes of wall clock — a bound nobody declared, and it killed a real
305
+ 1 101-test Playwright suite that needs two hours while every test was still
306
+ passing. A whole-run budget applies only when the operator declares one:
307
+
308
+ - `runtime.yml executionTimeoutSeconds` — the owner's own budget, honoured by
309
+ the command it is written for (`check --staged` and `test-gates`);
310
+ - `--run-timeout-min <n>` — the flag still wins over the document.
311
+
312
+ What the engine keeps is a STALL bound: if no test has FINISHED for
313
+ `runtime.yml stallTimeoutSeconds` (new key, 1–3600, default 15 minutes) the run
314
+ is killed and fails closed with
315
+ `stalled: no test finished for 15 min (last finished: <title>, <k>/<n>)`. It
316
+ rides the same per-test completion signal the `--progress` stream already
317
+ consumes, so a run carries one completion signal, not two. A suite that keeps
318
+ finishing tests is never killed, however long it takes.
319
+
320
+ **Playwright only, and here is why.** A stall bound needs a stream of per-test
321
+ completions; today only the Playwright pack reads one. The pytest, Vitest,
322
+ Cypress and other supervisors keep their historical 30-minute whole-run
323
+ default until they can report completions the same way — on those runners an
324
+ over-long run still dies at 30 minutes, and `executionTimeoutSeconds` (or
325
+ `--run-timeout-min`) is how you raise it.
326
+
301
327
  ## Harness and run history
302
328
 
303
329
  The optional `.gateforge.yml` `harness` section declares `up`, `reset`,
@@ -643,6 +669,44 @@ check:
643
669
  policy digest, so a weakened candidate fails closed until a separate
644
670
  trusted update is accepted.
645
671
 
672
+ **A change that is only `docs/**.md` is the engine's own.** No obligation
673
+ can arise from a Markdown file, so a commit whose WHOLE changed set is
674
+ `docs/**.md` is exempt from the unclassified-change handling — never
675
+ candidate-configurable, and denied the moment one non-docs file joins the
676
+ commit (a mixed change keeps the docs files as unknown changes, exactly as
677
+ before). Since no obligation arises from it, the slice has nothing to prove,
678
+ and `test-gates --changed --scope changed` seals a receipt for the current
679
+ candidate with ZERO records: `scope: changed`, an empty covered set, and a
680
+ `docs-only-slice` execution result naming an expected set that is empty by
681
+ decision. It is bound to the same input digest, candidate tree and trusted
682
+ policy digest as any other receipt, so `check --staged` finds a current one.
683
+ It proves nothing — the commit gate recomputes the docs-only decision from
684
+ its own changed set rather than believing the receipt's claim, the empty
685
+ covered set satisfies no obligation, and the next product change has a
686
+ different input digest and needs its own run. This is separate from
687
+ `--docs-exclude` below, which is an owner assertion about input hashing and
688
+ is never required or implied by it.
689
+
690
+ **Developer and CI tooling is owner-declared.** A `scripts/e2e/run.sh`
691
+ only `package.json` scripts name, or a custom reporter the runner
692
+ configuration NAMES but no test imports, is test infrastructure by
693
+ different evidence — the import graph roots at the runner configurations
694
+ too, so a `reporter`, `globalSetup`, `globalTeardown`, project
695
+ `storageState` or `require.resolve('./…')` path that resolves to an
696
+ existing file is attributable, together with its own import closure. What
697
+ NOBODY names, the owner declares: `project.paths.testTooling` in
698
+ `.gateforge.yml` takes a list of globs, and a changed file matching one is
699
+ attributed `test-tooling:<file>`. The pass is deliberately weak — it
700
+ EXPANDS the evaluation scope exactly like test infrastructure (so a change
701
+ to declared tooling is never proven by a slice of the suite) and it is
702
+ NEVER `CHANGE_UNMAPPED`. It cannot hide product code: a discovered
703
+ resource's own source keeps its own treatment, and a glob that matches
704
+ one is a config error — `gateforge check` exits 2 and
705
+ `gateforge enforcement doctor` fails a `test-tooling` row, both naming the
706
+ file and the glob. The key lives in `.gateforge.yml`, so it is inside the
707
+ approved policy digest: widening the list needs your pin re-approved.
708
+ Absent means today's behaviour, byte for byte, digests included.
709
+
646
710
  **Gateforge's own files are policy inputs.** The config, the policy,
647
711
  classification, behavior and runtime documents, the exclusion declarations,
648
712
  the mapping sidecar, the adapter/waiver/baseline/quarantine records, the
@@ -663,6 +727,94 @@ config, manifests, ignore controls, documentation you did not exclude) keeps
663
727
  today's treatment, including the scope expansion that makes a policy change
664
728
  re-check the whole repository.
665
729
 
730
+ ### Adoption mode: the first commit that wires the gate
731
+
732
+ The commit that introduces the gate always touches gate-defining inputs — the
733
+ manifest, `.gateforge.yml`, the runner configuration, the mapping sidecar and
734
+ the specs — so the evaluation expands to EVERY obligation in the repository,
735
+ while the only affordable proof of a large repository is
736
+ `test-gates --changed --scope changed`. Before 0.10.2 the hook refused that
737
+ receipt as a scope mismatch, so the first commit of every adopting repository
738
+ had to be committed with `--no-verify`.
739
+
740
+ A commit is judged in **adoption mode** when, and only when:
741
+
742
+ 1. HEAD has NO gate — no `enforcement` block in its `.gateforge.yml`, and no
743
+ generated `.gateforge/hooks/gateforge-check.mjs`; and
744
+ 2. the candidate DOES wire one (it introduces `.gateforge/hooks/` /
745
+ `.gateforge/ci/` wiring, or turns `enforcement` on); and
746
+ 3. the candidate's trusted policy digest matches your owner-approved pin.
747
+
748
+ Condition 1 is monotone and one-shot: once a gate exists at HEAD it can never
749
+ hold again, so no later commit can re-enter adoption mode. The mode is
750
+ COMPUTED from the base revision — there is no flag, no config key and no
751
+ environment variable a candidate could set.
752
+
753
+ What it changes:
754
+
755
+ - **Which obligations must be proven.** A sealed `--scope changed` receipt for
756
+ the SAME staged candidate tree is accepted; only the obligations whose
757
+ source files this change set touches must be inside the receipt's
758
+ `coveredFingerprints`. Every obligation the commit does not touch stays
759
+ unproven debt, recorded by `gateforge adopt` and still named in the report.
760
+ - **Adopted debt survives the strict-E2E re-grade** when the change set is
761
+ product-behaviour-neutral — every changed file is a policy input, a
762
+ gate-defining input, a catalog test file, test infrastructure, a
763
+ runtime-declared input or `docs/**.md`, and NO discovered resource's source
764
+ is in it — and your pin is enforced. One changed product source in the same
765
+ commit denies it, and the debt is re-graded blocking exactly as before. (An
766
+ owner WAIVER is never forgiveness: strict E2E re-grades it either way.)
767
+
768
+ What is still refused in adoption mode, unchanged: a policy-input pin
769
+ mismatch; a sealed receipt that does not cover the staged bytes (see
770
+ "The candidate tree a sealed receipt is bound to" below); a
771
+ `CHANGE_UNMAPPED` file; an obligation the change newly claims with no
772
+ mapping or no sealed evidence; and any commit after the first one. Adoption
773
+ mode moves WHICH obligations must be proven, never WHO may approve the
774
+ policy.
775
+
776
+ ### The pack configs and the generated wiring are owner-pinned
777
+
778
+ `.gateforge/planes.json`, `.gateforge/endpoints.json`,
779
+ `.gateforge/http-clients.json` and `.gateforge/fastapi.json` are owner-owned
780
+ policy inputs: they are classified as such, so they are never unmapped product
781
+ changes and never expand the evaluation scope — but that exemption is only
782
+ honest while your approved digest binds their bytes. Before 0.10.2 nothing
783
+ bound them, so a candidate could narrow `clientScanRoots` (deleting
784
+ obligations) in the same commit and the pin still matched. Their bytes are now
785
+ inside the approved policy digest, and so are the generated `.gateforge/hooks/`
786
+ and `.gateforge/ci/` wiring, for the same reason: deleting the generated hook
787
+ is a policy-revision change, not a way back into adoption mode.
788
+
789
+ **Upgrading:** a repository that ships a pack config or the generated gate
790
+ wiring re-pins ONCE, after upgrading —
791
+ `git add -A .gateforge .gateforge.yml && gateforge enforcement pin --pin-file
792
+ <path outside the repository> --confirm`. A repository with NO pack config
793
+ keeps a byte-identical digest: an absent config adds no digest entry and no
794
+ absence marker.
795
+
796
+ ### The candidate tree a sealed receipt is bound to
797
+
798
+ A candidate tree is the raw-ingested workspace a run tested, so it also
799
+ carries that workspace's untracked and gitignored bytes — `node_modules/`, a
800
+ blob report, a Playwright storage state. `check --staged` therefore binds a
801
+ sealed receipt by CONTAINMENT, not by string equality: the receipt is
802
+ accepted when the sealed candidate tree carries every path of the frozen
803
+ index tree with the SAME mode and blob, and refused when a single staged
804
+ byte is missing or differs. Two shapes therefore work, and neither is a
805
+ weakened commitment:
806
+
807
+ - a receipt sealed INSIDE a staged checkout (`gateforge pre-commit`), whose
808
+ candidate tree is the prepared checkout itself;
809
+ - a receipt sealed in the WORKSPACE (`gateforge test-gates --changed`)
810
+ while every tracked byte is staged — its candidate tree is a superset of
811
+ the index tree, and the input digest (which must still equal the digest
812
+ the checkout computes) pins the rest.
813
+
814
+ An unreadable receipt, an unreadable tree listing, or any difference falls
815
+ back to the previous, stricter test: the receipt's candidate tree id must
816
+ equal the frozen index tree.
817
+
666
818
  **Receipts (the strict saved-state gate).** `check --require-e2e` accepts
667
819
  only an authenticated gate receipt sealed by a COMPLETE supervised run for
668
820
  the current input digest and trusted policy digest:
@@ -929,6 +1081,14 @@ Enforcement-relevant sections:
929
1081
  `playwright` (the default when the key is absent), `pytest`, `vitest` or
930
1082
  `cypress`. `check`, `next`, `tests`, `test-gates`, `doctor` and `init`
931
1083
  all follow it. See `guides/RUNNER-NEUTRAL-EVIDENCE.md`.
1084
+ - `project.paths.testTooling:` — globs the owner asserts are test/developer
1085
+ tooling (`scripts/e2e/**`, `tools/dev/**`). A changed file matching one is
1086
+ attributed `test-tooling:<file>`: scope-expanding exactly like test
1087
+ infrastructure and never `CHANGE_UNMAPPED`, and never a pass over a
1088
+ discovered resource's own source — a glob that matches one is a config
1089
+ error (`check` exits 2). Optional; inside the trusted policy digest, so
1090
+ changing the list moves the approved revision. See "Developer and CI
1091
+ tooling is owner-declared" above.
932
1092
 
933
1093
  ## Classification policy (`.gateforge/classification-policy.yml`)
934
1094
 
@@ -504,7 +504,9 @@ Two details in that command are load-bearing. It names the engine's OWN `cli.js`
504
504
  gateforge test-gates --changed --scope changed --result-only
505
505
  ```
506
506
 
507
- For an authoritative slice, run `gateforge test-gates --changed --scope changed` without `--result-only`. `gateforge test-gates --changed` alone runs the full relevant mapped suite. Then run `gateforge check --changed --require-e2e` on the same inputs.
507
+ For an authoritative slice, run `gateforge test-gates --changed --scope changed` without `--result-only`. `gateforge test-gates --changed` alone runs the full relevant mapped suite. Then verify the COMMIT with the command the generated hook runs: `gateforge check --staged --require-e2e`. It grades the exact staged bytes, and it accepts the scoped receipt when the receipt covers the obligations this commit newly claims.
508
+
509
+ **The first commit that wires the gate.** A repository with no gate at HEAD is judged in **adoption mode**: `check --staged` demands proof of the obligations THIS commit newly claims instead of every obligation in the repository, so a `--scope changed` receipt for the same staged candidate is accepted and the adoption commit is committable without a bypass. Nothing else moves — an unmapped changed file still blocks, a policy-input pin mismatch still blocks, a receipt bound to another candidate tree is still refused, and every obligation the commit does not touch stays unproven debt that `gateforge adopt` baselines. The mode is computed from HEAD, never configured: there is no flag and no config key, and once a gate exists at HEAD it can never apply again. Outside adoption mode a commit that touches a gate-defining input (`package.json`, a lockfile, `.gateforge.yml`, a runner config) expands the evaluation to every obligation and a scoped receipt is refused with `EVIDENCE_SCOPE_INCOMPLETE` — the behaviour every commit after adoption keeps.
508
510
 
509
511
  A changed file can affect obligations that have no test at all. Those
510
512
  still block the slice, one blocker each, with the reason:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gate-forge/cli",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "gateforgeCompatibility": {
5
5
  "supervisedFixtureProtocol": "gateforge.supervised-playwright.v1"
6
6
  },
@@ -33,15 +33,15 @@
33
33
  "test": "vitest run"
34
34
  },
35
35
  "dependencies": {
36
- "@gate-forge/core": "^0.10.1",
37
- "@gate-forge/http-contract": "^0.10.1",
38
- "@gate-forge/pack-fastapi": "^0.10.1",
39
- "@gate-forge/pack-alembic": "^0.10.1",
40
- "@gate-forge/pack-http": "^0.10.1",
41
- "@gate-forge/pack-playwright": "^0.10.1",
42
- "@gate-forge/pack-sqlalchemy": "^0.10.1",
43
- "@gate-forge/pack-task": "^0.10.1",
44
- "@gate-forge/plugin-protocol": "^0.10.1",
36
+ "@gate-forge/core": "^0.10.2",
37
+ "@gate-forge/http-contract": "^0.10.2",
38
+ "@gate-forge/pack-fastapi": "^0.10.2",
39
+ "@gate-forge/pack-alembic": "^0.10.2",
40
+ "@gate-forge/pack-http": "^0.10.2",
41
+ "@gate-forge/pack-playwright": "^0.10.2",
42
+ "@gate-forge/pack-sqlalchemy": "^0.10.2",
43
+ "@gate-forge/pack-task": "^0.10.2",
44
+ "@gate-forge/plugin-protocol": "^0.10.2",
45
45
  "picomatch": "^4.0.7",
46
46
  "yaml": "^2.8.1"
47
47
  },