@gate-forge/cli 0.13.10 → 0.15.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +415 -0
  2. package/README.md +13 -1
  3. package/bin/gateforge.js +3 -1
  4. package/dist/additional-app-origins.d.ts +38 -0
  5. package/dist/additional-app-origins.d.ts.map +1 -0
  6. package/dist/additional-app-origins.js +46 -0
  7. package/dist/additional-app-origins.js.map +1 -0
  8. package/dist/adopted-baseline.d.ts +2 -0
  9. package/dist/adopted-baseline.d.ts.map +1 -1
  10. package/dist/adopted-baseline.js +1 -0
  11. package/dist/adopted-baseline.js.map +1 -1
  12. package/dist/args.d.ts.map +1 -1
  13. package/dist/args.js +1 -0
  14. package/dist/args.js.map +1 -1
  15. package/dist/candidate-tree.d.ts +1 -1
  16. package/dist/candidate-tree.d.ts.map +1 -1
  17. package/dist/candidate-tree.js +24 -2
  18. package/dist/candidate-tree.js.map +1 -1
  19. package/dist/ci-witnessed-template.d.ts.map +1 -1
  20. package/dist/ci-witnessed-template.js +7 -5
  21. package/dist/ci-witnessed-template.js.map +1 -1
  22. package/dist/cli.d.ts +1 -1
  23. package/dist/cli.d.ts.map +1 -1
  24. package/dist/cli.js +4 -1
  25. package/dist/cli.js.map +1 -1
  26. package/dist/commands/adapters.d.ts.map +1 -1
  27. package/dist/commands/adapters.js +17 -12
  28. package/dist/commands/adapters.js.map +1 -1
  29. package/dist/commands/adopt.d.ts.map +1 -1
  30. package/dist/commands/adopt.js +163 -13
  31. package/dist/commands/adopt.js.map +1 -1
  32. package/dist/commands/baseline.d.ts.map +1 -1
  33. package/dist/commands/baseline.js +23 -5
  34. package/dist/commands/baseline.js.map +1 -1
  35. package/dist/commands/blocking.d.ts.map +1 -1
  36. package/dist/commands/blocking.js +1 -0
  37. package/dist/commands/blocking.js.map +1 -1
  38. package/dist/commands/check.d.ts.map +1 -1
  39. package/dist/commands/check.js +60 -76
  40. package/dist/commands/check.js.map +1 -1
  41. package/dist/commands/config.d.ts +3 -0
  42. package/dist/commands/config.d.ts.map +1 -0
  43. package/dist/commands/config.js +106 -0
  44. package/dist/commands/config.js.map +1 -0
  45. package/dist/commands/enforcement.d.ts +12 -1
  46. package/dist/commands/enforcement.d.ts.map +1 -1
  47. package/dist/commands/enforcement.js +85 -34
  48. package/dist/commands/enforcement.js.map +1 -1
  49. package/dist/commands/init-presets.d.ts +11 -0
  50. package/dist/commands/init-presets.d.ts.map +1 -1
  51. package/dist/commands/init-presets.js +6 -0
  52. package/dist/commands/init-presets.js.map +1 -1
  53. package/dist/commands/init.d.ts.map +1 -1
  54. package/dist/commands/init.js +13 -1
  55. package/dist/commands/init.js.map +1 -1
  56. package/dist/commands/next.d.ts.map +1 -1
  57. package/dist/commands/next.js +33 -4
  58. package/dist/commands/next.js.map +1 -1
  59. package/dist/commands/test-gates.d.ts +90 -0
  60. package/dist/commands/test-gates.d.ts.map +1 -1
  61. package/dist/commands/test-gates.js +156 -50
  62. package/dist/commands/test-gates.js.map +1 -1
  63. package/dist/endpoint-compiler.d.ts.map +1 -1
  64. package/dist/endpoint-compiler.js +73 -6
  65. package/dist/endpoint-compiler.js.map +1 -1
  66. package/dist/evaluate.d.ts +40 -1
  67. package/dist/evaluate.d.ts.map +1 -1
  68. package/dist/evaluate.js +91 -4
  69. package/dist/evaluate.js.map +1 -1
  70. package/dist/evidence-authority.d.ts +68 -0
  71. package/dist/evidence-authority.d.ts.map +1 -0
  72. package/dist/evidence-authority.js +114 -0
  73. package/dist/evidence-authority.js.map +1 -0
  74. package/dist/execution.d.ts +0 -25
  75. package/dist/execution.d.ts.map +1 -1
  76. package/dist/execution.js +16 -11
  77. package/dist/execution.js.map +1 -1
  78. package/dist/git-ignored.d.ts +22 -0
  79. package/dist/git-ignored.d.ts.map +1 -1
  80. package/dist/git-ignored.js +49 -0
  81. package/dist/git-ignored.js.map +1 -1
  82. package/dist/pipeline.d.ts.map +1 -1
  83. package/dist/pipeline.js +1 -0
  84. package/dist/pipeline.js.map +1 -1
  85. package/dist/providers.d.ts +22 -0
  86. package/dist/providers.d.ts.map +1 -1
  87. package/dist/providers.js +60 -11
  88. package/dist/providers.js.map +1 -1
  89. package/dist/reseal.d.ts.map +1 -1
  90. package/dist/reseal.js +30 -14
  91. package/dist/reseal.js.map +1 -1
  92. package/dist/run-evidence.d.ts +1 -1
  93. package/dist/run-evidence.d.ts.map +1 -1
  94. package/dist/run-evidence.js +7 -3
  95. package/dist/run-evidence.js.map +1 -1
  96. package/dist/runtime-reuse.d.ts +8 -0
  97. package/dist/runtime-reuse.d.ts.map +1 -1
  98. package/dist/runtime-reuse.js +40 -0
  99. package/dist/runtime-reuse.js.map +1 -1
  100. package/dist/state.d.ts +19 -1
  101. package/dist/state.d.ts.map +1 -1
  102. package/dist/state.js +39 -1
  103. package/dist/state.js.map +1 -1
  104. package/guides/QUICKSTART.md +7 -7
  105. package/guides/REFERENCE.md +301 -1
  106. package/guides/TEST-ENVIRONMENT.md +15 -8
  107. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,420 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.15.0
4
+
5
+ - **Fixed: github-pr base ref in detached PR checkouts:** the changed-file
6
+ provider and the `test-gates` carry-forward resolver now resolve
7
+ `GITHUB_BASE_REF` as the fetched remote ref `refs/remotes/origin/<base>`
8
+ first and as a local `<base>` only as a fallback — a checkout of the PR
9
+ head SHA has the base only as the remote-tracking ref, the gate used to
10
+ fail with `fatal: Not a valid object name <base>`, and a stale local
11
+ branch of the same name no longer shadows the fetched base. The value
12
+ must be a valid branch name (`git check-ref-format --branch`): revision
13
+ syntax and surrounding whitespace fail closed, as does neither candidate
14
+ resolving. The witnessed CI template drops its `GITHUB_BASE_REF` write
15
+ to `$GITHUB_ENV` and passes the branch name to the shell through `env:`;
16
+ the base `git fetch` and `GATEFORGE_CI_BASE_SHA` stay.
17
+ - **Candidate fast-path tree binding:** `check --candidate-commit` reuses a
18
+ receipt only when the sealed candidate tree matches the commit tree or
19
+ every extra sealed path is git-ignored (`git check-ignore`); non-ignored
20
+ worktree extras no longer satisfy containment alone.
21
+ - **Candidate-tree cache exclusions:** `.gateforge/ci-witnessed/` and
22
+ runner cache directories (`.vite`, `.vite-temp`, `.vitest`, `.turbo`) are
23
+ omitted from the sealed tree only when Git ignores that path; tracked or
24
+ untracked non-ignored bytes there are bound.
25
+ - **Witness shutdown:** `test-gates` returns immediately when a spawned
26
+ witness has already exited instead of waiting the full 30 s SIGKILL grace
27
+ and misreporting SIGKILL; attestation fetch parse failures are labeled
28
+ `(parse)` separately from `(transport)`.
29
+ - **GitLab CI engine pin:** The committed `.gateforge/ci/gitlab-gateforge.yml`
30
+ template is regenerated for 0.15.0 so `GATEFORGE_VERSION` matches the
31
+ installed CLI (same contract as the GitHub strict workflow manifest pin).
32
+ - **Repository hygiene:** `.gitignore` ignores `.gateforge/test-gates/` so
33
+ local run state does not pollute commits; GitHub strict workflow adds
34
+ `timeout-minutes` and explicit browser install steps.
35
+ - **Runtime reuse ephemeral list:** Reuse digests omit `.vite-temp` alongside
36
+ `.vite`, `.vitest`, `.cache`, and `.turbo` under approved reuse roots.
37
+ - **Vitest logical keys with `#` in titles:** Execution no longer rejects
38
+ enumerated tests whose title path contains `#` (only the first `#` separates
39
+ file from title path). A self-gate that registered such tests used to finish
40
+ with zero executed cases and blanket `RUN_INCOMPLETE` grading.
41
+ - **Vitest logical keys with `>` in titles:** Title segments escape literal
42
+ `>` (e.g. angle brackets in schema test names) so registration, the vitest
43
+ reporter, and supervision share one reconciliation key instead of splitting
44
+ on characters inside a test title. Playwright outcomes mapping,
45
+ catalog reconciliation, Cypress/pytest adapters, and `test-gates` progress
46
+ filtering now use the same `runnerLogicalKey` helper; pytest named runs
47
+ decode logical keys with `parseRunnerLogicalKey` instead of splitting on
48
+ `>`.
49
+ - **Supervised vitest dist rebuild:** The pack's vitest `global-setup` skips
50
+ the workspace dist rebuild and the post-run dist drift teardown when
51
+ `GATEFORGE_RUN_TOKEN` or `GATEFORGE_RUN_ID` is set (witnessed-session
52
+ child), so `gateforge test-gates` (which already builds dists) no longer
53
+ rewrites them mid-run or fails the runner on unrelated dist churn while
54
+ the supervisor enforces reuse digests.
55
+ - **Vitest `list` harness parity:** `vitest list` enumeration copies the
56
+ same test-harness `GATEFORGE_*` variables as execution (`pytest`/`cypress`
57
+ paths, …), so `describe.skipIf` suites register in the expected set when
58
+ they will run. Pack global-setup tests import the setup module from
59
+ TypeScript so list inventory matches execution without a pre-list dist
60
+ rebuild.
61
+ - **Witnessed session runner env:** `buildWitnessedSessionRunnerEnv` no longer
62
+ falls back to ambient `GATEFORGE_*` for run wiring; the supervisor-supplied
63
+ vars are the only source, so nested meta-tests under an outer vitest gate
64
+ cannot inherit the parent witness URL.
65
+ - **Vitest title paths with empty segments:** Blank `ancestorTitles` entries and
66
+ stray `>` joins no longer produce empty `titlePath` segments that fail execution
67
+ result sealing (`ZodError` on `outcomes[].titlePath`).
68
+ - **Playwright catalog gaps on disclaimed files:** Zero-instance parameterized
69
+ templates and dynamic-title gaps in files the runner never collects stay
70
+ visible as blocking catalog rows instead of disappearing when native
71
+ enumeration lists no instances.
72
+ - **Misplaced specs inside a runner `testDir`:** Files the static scan finds
73
+ under a runner's `testDir` but outside its `testMatch`/`include` are
74
+ `unclaimed` gaps again (explicit `testIgnore` and paths outside every
75
+ `testDir` stay `disclaimed`).
76
+ - **Runtime reuse digest and runner caches:** Ephemeral cache directories
77
+ (`.vite`, `.vitest`, `.cache`, `.turbo`) under a declared reuse root are
78
+ omitted from the reuse byte digest so parallel supervised runs in the owner
79
+ workspace do not fail nested `pre-commit`/`test-gates` with “reused
80
+ dependency bytes changed during the run” when only tooling caches move.
81
+ - **Nested supervised Playwright meta-tests:** `executeSupervisedPlaywright`
82
+ accepts `ambientEnv` and exports `stripGateforgeAmbient()` so pack tests
83
+ that spawn their own loopback witness do not inherit the parent
84
+ `gateforge test-gates` witness URL (which previously sent nested runner
85
+ reporters to the wrong witness and failed under the full vitest gate).
86
+ - **Supervised Playwright `execute` under an outer gate:** When `ambientEnv` is
87
+ omitted, `executeSupervisedPlaywright` strips ambient `GATEFORGE_*` wiring
88
+ unless `vars` already carry the supervisor witness URL, so a parent vitest
89
+ gate's exported witness URL no longer leaves nested playwright runs with
90
+ empty outcomes or failed runner binding tests.
91
+ - **Auto-session e2e nested `test-gates`:** Spawns strip the parent gate's
92
+ ambient `GATEFORGE_*` before starting nested playwright and gateforge runs.
93
+ - **Witness supervisor body limit:** `POST /runs/expected-set` (and other
94
+ supervisor JSON endpoints) accept bodies up to 8 MiB so large vitest
95
+ workspace self-gates can register the full enumeration without the witness
96
+ resetting the connection mid-read. Over-limit bodies answer HTTP 413 instead
97
+ of aborting the socket.
98
+ - **`witness.enumerationTimeoutSeconds`:** Vitest catalog/enumeration children
99
+ (`vitest list --json`) honor this optional bound (default 120s, max 3600s).
100
+ Large workspace suites no longer die as `vitest enumeration exceeded its
101
+ timeout and was killed` when the owner raises the limit in `.gateforge.yml`.
102
+ - **Vitest workspace file scope:** A root `test.projects[]` workspace config no
103
+ longer claims every `*.spec` under the repository; only each project's own
104
+ config selects files. Specs outside a project's `test.include` are disclaimed
105
+ rather than blocking inventory as phantom configured-runner gaps (Playwright
106
+ demo journeys in a vitest-monorepo self-gate).
107
+ - **Vitest-configured catalog:** When the configured runner enumerates vitest
108
+ tests, its rows replace static-scan duplicates (same logical key) instead of
109
+ failing catalog validation — the runner list is authoritative, like playwright
110
+ native reconciliation.
111
+ - **Vitest `list` enumeration:** Monorepo globalSetup no longer rebuilds or
112
+ asserts dist integrity during `vitest list` — inventory-only runs are not test
113
+ execution, and a gate step that already built workspace dists must not fail
114
+ enumeration teardown when list spans many projects.
115
+ - Supervised runs that spawn their own witness fetch the live attestation while
116
+ the witness still serves it, before the graceful stop. The fetch previously ran
117
+ after the stop, so those runs always reported `live attestation unavailable
118
+ (transport)` and sealed no live envelope. Re-seal refusals of tampered retained
119
+ evidence now name the sealed attestation digest check, which runs before the MAC check.
120
+ - A consumer whose UI runs on a SECOND browser app (a platform admin console
121
+ beside the tenant app) can declare it in `.gateforge.yml` under
122
+ `additionalAppOrigins`, one ENVIRONMENT VARIABLE NAME per extra origin. The
123
+ witness opens one additional loopback-attested observation proxy per
124
+ session and the Playwright fixture rewrites each app origin's requests onto
125
+ that origin's own proxy, so one test driving two apps keeps one session, one
126
+ attribution and one exchange ledger instead of passing while every claim on
127
+ the second app earns nothing. The UI-vs-test-code initiator classification
128
+ applies on every declared origin, test-code requests still never satisfy a
129
+ UI claim, an undeclared origin is still reported and still blocks, and
130
+ resolution fails closed on a declared variable the run does not set. Absent
131
+ declaration, nothing changes: no proxy, no variable, byte-identical startup.
132
+ The declaration is inside the owner-approved policy digest, so widening the
133
+ list is a policy-revision change.
134
+
135
+ - Automatic witnessed fixture preloads recognize Playwright 1.60's separate
136
+ worker and loader fork entries as well as 1.58's shared process entry;
137
+ binding failures fail loud in those children without loading app/helper processes.
138
+ - Witnesses of runs whose bound options request response shapes no longer
139
+ refuse the supervisor's PRE-run observe and server-e2e declarations with
140
+ 409: the run-level `http.openapi` record sealed at bind time is run
141
+ metadata, not test evidence, so a fresh witness binds both declaration
142
+ sets and a response-shape run witnesses its full authorized HTTP ledger.
143
+ The declaration and run-context gates still refuse after any real test
144
+ record, open session, pre-observation or in-flight proxy exchange.
145
+ - Witnessed browser routing requires `GATEFORGE_APP_BASE_URL` only when a
146
+ page or browser context is used, preserving page-free supervised tests
147
+ and their original integrity diagnostics.
148
+ - Test-owned Playwright API request contexts route app-origin calls through
149
+ the current session proxy, including redirects, exposing witnessed
150
+ `httpLedger` rows marked `initiator: test-code` without satisfying UI
151
+ claims. Non-app origins, setup contexts and page/context-owned request
152
+ objects remain direct; the obsolete API exchange self-report channel is removed.
153
+ - Playwright reports retain per-test runner-observed UI actions and assertions
154
+ as a report-only `uiLedger` in full supervised runs as well as selection
155
+ reports, distinguishing journeys with identical HTTP traffic. Locator-free
156
+ keyboard and mouse input is retained alongside locator actions and assertions.
157
+ Signatures ignore source locations and normalize UUIDs/long digit runs;
158
+ each attempt is capped at 500 unique steps with truncation disclosed.
159
+ - `enforcement doctor` runs repository hooks only with `--hook-mutation`,
160
+ once in an isolated copy at low priority. Its 120 s deadline kills the
161
+ whole process tree, avoiding default full-hook workloads and orphaned
162
+ formatter processes after a timeout.
163
+ - Witnessed Playwright sessions also route pages from consumer-created browser
164
+ contexts and `browser.newPage()`, including overridden context/page fixtures
165
+ and popups. Consumer context routes retain the session rewrite; test-scoped
166
+ hooks are removed at teardown so later contexts cannot reuse a prior session.
167
+ - Supervised Playwright runs with missing/malformed/empty outcomes, or only
168
+ skipped outcomes and a failed exit, report
169
+ `RUNNER_STARTUP_FAILED`, the child exit code and the first 20 stderr lines
170
+ (8192 characters maximum, Gateforge token echoes redacted). JSON reports retain this
171
+ diagnostic; debug output drains child stderr before returning.
172
+ Successful all-skipped runs retain their existing execution envelope and
173
+ are not misclassified as runner startup failures.
174
+ - Playwright config discovery searches two directory levels breadth-first,
175
+ retaining root-first selection and multiple-config disclosure. Hidden,
176
+ dependency, build and Python environment directories are pruned at every
177
+ level; sealed-tree re-sealing uses the same convention.
178
+ - Observe-channel HTTP claim snapshots exclude static assets before deduplication
179
+ and the 500-exchange cap, using the ledger's existing request classification.
180
+ Unmatched truncated records stay blocking as missing with a cap diagnostic,
181
+ rather than blaming an unrelated endpoint; retained matches still satisfy.
182
+ Claim-free `http.exchanges` ledger snapshots keep their existing semantics.
183
+ - Observe persistence reads match collection responses against parameterized
184
+ declared routes, and repeated same-entity reads are credited once while
185
+ consuming every matching exchange. Repeated reads that resolve to different
186
+ entities remain blocking; create, update and delete still require exactly
187
+ one matching exchange.
188
+ - Witnessed Playwright runs automatically use the existing Gateforge fixture
189
+ for consumer `@playwright/test` imports, including CommonJS, ESM, TypeScript,
190
+ project extensions and root `test.test` calls, without editing specs.
191
+ Direct API calls remain diagnostics, never browser evidence. Execution results
192
+ and report execution summaries include `measuredTests` (tests with witness
193
+ sessions) and `executedTests`; ordinary unwitnessed runs stay unchanged.
194
+ - Session proxy routing yields to consumer context routes, preserving fulfilled
195
+ stubs and retaining the session rewrite when those handlers continue requests.
196
+ A later consumer page route that continues directly still takes precedence:
197
+ its outcome is unchanged, but that request bypasses session attribution.
198
+ - The automatic Playwright preload activates only in the test runner and its
199
+ forked test processes; inherited options leave application servers and helper
200
+ Node commands untouched, without loading the fixture or redirecting imports.
201
+ - Automatic root-module forwarding uses a separate test wrapper, preserving the
202
+ explicit Gateforge fixture's own API when plain and explicit imports coexist.
203
+ - Automatic preload binding failures name the selected runner and underlying
204
+ cause, and stop the child rather than continuing without witnessed fixtures.
205
+ - Shared CLI stub installs include Playwright's public `test` entry alongside
206
+ the CLI, so automatic fixture loading exercises the same install shape.
207
+ - Strict supervised result-contract tests pin both `executedTests` and
208
+ `measuredTests` in the sealed execution result's exact key set.
209
+ - Automatic witnessed sessions also cover the equivalent `playwright/test`
210
+ entry in CommonJS, ESM and project re-exporting helpers, preserving root
211
+ test properties and extension hooks without redirecting the plain library.
212
+ - Page-observation diagnostics now describe session-backed observation instead
213
+ of claiming plain-import tests require an explicit fixture. Clean passing
214
+ auto-session tests retain their page records under the same witness rules.
215
+ Twin comparison advice accepts both supported Playwright package imports
216
+ and the explicit fixture; uninstrumented or zero-traffic twins remain
217
+ explicitly not compared.
218
+ - ESM `playwright/test` imports preserve that entry's native named exports even
219
+ when a consumer's `@playwright/test` is a CommonJS-only shim. ESM and CommonJS
220
+ helpers share the same automatic fixture test wrapper and witness session.
221
+ - **Breaking:** `HTTP_CALL_UNRESOLVED` always blocks the gate; declare the wrapper in `scan.httpClients` or fix the call site — adoption and `http.callFindings: report` no longer forgive it.
222
+
223
+ ## 0.14.0
224
+
225
+ Theme: In the witnessed run, Gateforge checks the API calls your UI actually
226
+ makes against the backend routes. Only fetch/XHR traffic counts as API traffic
227
+ for these checks; pages and assets remain visible in the ledger but do not
228
+ create HTTP call findings. With an available, complete route inventory, a real
229
+ API call answered with 404 or 405 blocks as `HTTP_CALL_UNMATCHED` and names
230
+ the test; an unresolvable frontend call site blocks as `HTTP_CALL_UNRESOLVED`
231
+ and names its `file:line` when `http.callFindings` is `block`. Optional
232
+ OpenAPI response-shape checks compare bodies with declared models, and
233
+ `gateforge config` reads and writes schema-checked `.gateforge.yml` settings.
234
+
235
+ ### Upgrading from 0.13
236
+
237
+ 1. Bump the CLI and every direct `@gate-forge/*` package together to `0.14.0`.
238
+ Keep all Gateforge packages on the same release.
239
+ 2. Run a witnessed suite, then `gateforge check`. In `block` mode, new
240
+ `HTTP_CALL_*` findings block. On a real ~700-endpoint app, four new
241
+ `HTTP_CALL_UNRESOLVED` findings moved blocking entries from 1 to 5.
242
+ 3. For an already-adopted repository, preview the HTTP-call migration with
243
+ `gateforge adopt --family http-calls`, review the findings, then run
244
+ `gateforge adopt --family http-calls --confirm` to record them as shrink-only
245
+ debt. On that app, blocking entries fell from 5 to 1.
246
+ 4. The owner must re-pin after staging: the receipt is part of the trusted
247
+ policy. The CLI says:
248
+
249
+ > the trusted-policy digest changed (the receipt is part of the approved revision): strict gates stay untrusted until the owner repins OUTSIDE this candidate — `gateforge enforcement pin --pin-file <path> --confirm` after staging, or the approved-digest env var / trusted config
250
+
251
+ 5. Prefer resolving the call sites to carrying debt. Declare genuine fetch or
252
+ axios wrappers and pure URL builders under the existing `scan.httpClients`
253
+ section in `.gateforge.yml`. For example, for `apiGet(path) { return
254
+ fetch(path); }` and a pure `buildApiPath(path)` that prefixes `/api/v1`:
255
+
256
+ ```yaml
257
+ scan:
258
+ httpClients:
259
+ wrapperFunctions:
260
+ - name: apiGet
261
+ method: GET
262
+ urlBuilders:
263
+ - name: buildApiPath
264
+ base: /api/v1
265
+ ```
266
+
267
+ The `wrapperFunctions` and `urlBuilders` arrays are declared by the
268
+ `scan.httpClients` schema; pack-http reads the wrapper name and concrete
269
+ method, and the builder name and optional literal base. Declare only
270
+ functions that actually satisfy those contracts.
271
+ 6. Set `http.callFindings: report` to keep new call findings advisory; the
272
+ `light` preset writes this setting by default. `normal` and `strict` use
273
+ `block`.
274
+
275
+ ### What's new
276
+
277
+ #### Exchange ledger and resource classification
278
+
279
+ - Every passed witnessed session, including one with no claims, contributes
280
+ its deduplicated HTTP exchanges as a claim-free `http.exchanges` record;
281
+ completed page sweeps contribute their exchanges too. Failed sessions drop
282
+ the record, and a session that proxied nothing issues none. This record can
283
+ never satisfy an obligation.
284
+ - Each exchange records its effective `fetchDest` and raw Playwright
285
+ `resourceType`. Browser `Sec-Fetch-Dest` takes precedence when present;
286
+ otherwise the fixture maps fetch/XHR to API destination `empty`, documents
287
+ to `document`, and retains asset destinations. A disagreement is recorded
288
+ without overriding the browser value. The resource-type header is a
289
+ test-process observation: when browser destination metadata is absent it
290
+ affects API-call and response-shape finding selection, but never proves or
291
+ satisfies an obligation.
292
+ Documents and assets stay visible in the ledger without creating API-call
293
+ or response-shape findings; `unknown` traffic does not block.
294
+ - The `httpLedger` report field adds one row per exchange—test, method,
295
+ query-stripped path, status, attributed route, and the matcher's
296
+ `match`/`nomatch`/`ambiguous`/`incomplete` result—plus a resolution summary.
297
+ The field is additive and report-only by itself; the R1-R5 rules below use
298
+ the same exchange evidence to create findings.
299
+ - Reports include one HTTP coverage line and the same values under
300
+ `httpCoverage`: served, used, proven, missing, unmatched, and ambiguous.
301
+ An absent or incomplete inventory is named rather than treated as proof
302
+ that an observed call is unmatched. Reports that do not compute the
303
+ summary keep their existing output.
304
+
305
+ #### Route inventory and attribution fixes
306
+
307
+ - Merge a pure OpenAPI path/method route table with detector inventory using
308
+ `http.routeSource` (`both` by default). Routes present in only one source
309
+ remain in the union and produce report-only `ROUTE_SOURCE_MISMATCH`
310
+ findings.
311
+ - Resolve concrete exchanges with positional route matching and proven
312
+ detector registration order. Unknown precedence stays ambiguous;
313
+ OpenAPI path order never substitutes for registration order.
314
+ - Use one route resolver: obligation grading and the exchange ledger share
315
+ the same obligation-free matcher; the duplicate matcher shipped with the
316
+ route table is removed.
317
+ - Prove which routes an app actually mounts. `pack-fastapi` emits the
318
+ `include-chain:<app> → <router> → …` that reaches each route from the
319
+ same walk that positions it. A router with no `include_router` target
320
+ emits no proof. The compiled endpoint carries `mountProvenances`, so a
321
+ proven-unmounted route leaves the `served` denominator and is named
322
+ report-only as `HTTP_ENDPOINT_UNMOUNTED`. That finding is emitted only
323
+ when the detector supplies mount proofs.
324
+ - Preserve conditional route declarations. A route inside a module-level
325
+ `if`/`try`/`with`/`for`/`while` is marked `conditional: true`, not dropped.
326
+ The marker is not a served-ness input: the mounted router still carries
327
+ its mount proof and registration.
328
+
329
+ #### HTTP call rules R1-R5
330
+
331
+ - **R1 — API use means API use.** A route is used when an API exchange
332
+ matched it or the static join consumed it. Page, asset, and unknown
333
+ traffic do not count as API use. Used routes already owe
334
+ `http:request-observed` and `http:response-status-ok` through the
335
+ existing `consumed: true` policy (or every endpoint under
336
+ `http.endpoint.requireObservation: all`); the rule invents no obligation.
337
+ - **R2 — an unmatched call requires a complete inventory.** A witnessed
338
+ API call that matches no route and receives 404 or 405 reports
339
+ `HTTP_CALL_UNMATCHED`, naming its test, method, and path. Repeated
340
+ occurrences are one finding. A no-match response with any other status
341
+ produces report-only `HTTP_ROUTE_NOT_INVENTORIED`: the app answered, but
342
+ its route inventory may be incomplete. An unavailable, empty, or
343
+ incomplete inventory cannot prove that a call is unmatched.
344
+ - **R3 — equal route matches are ambiguous.** An API call matching several
345
+ routes at equal specificity reports `HTTP_CALL_AMBIGUOUS` with the
346
+ candidates. Incomplete placements and page, asset, or unknown rows do
347
+ not produce R2/R3 findings.
348
+ - **R4 — unresolved frontend calls are not dropped.** A static call site
349
+ whose target cannot be resolved reports `HTTP_CALL_UNRESOLVED` with its
350
+ `file:line`. Existing `unresolved` blocking entries for those same sites
351
+ remain unchanged.
352
+ - **R5 — served but unused is a count.** It appears in the summary and is
353
+ never a finding.
354
+ - The owner chooses `http.callFindings: report | block` (default `block`).
355
+ `report` prints and serializes each new call finding as an advisory and
356
+ does not change the exit code. `block` puts new findings in the run's
357
+ blocking set. Findings already recorded as debt are counted, not blocked,
358
+ in either mode.
359
+ - `gateforge next` names the caller when its top item is a used route's
360
+ `http:request-observed` or `http:response-status-ok`: its `why` line
361
+ includes witnessing test IDs and static call sites.
362
+
363
+ #### Adoption
364
+
365
+ - HTTP call findings have stable identities. Unmatched and ambiguous
366
+ identities include method, path shape, and test ID; unresolved identities
367
+ include file and scanner detail. HTTP status and source line number are
368
+ not part of the identity.
369
+ - `gateforge adopt --family http-calls` previews the findings for an
370
+ already-adopted repository; `--confirm` records them as debt in the
371
+ adoption receipt. `check` names this migration. A repository with no
372
+ receipt is directed to plain `gateforge adopt`. Adopted findings appear
373
+ in the debt summary, and a finding that stops occurring leaves the
374
+ current debt count automatically.
375
+ - The `http-calls` family marker is stored in the receipt, never the
376
+ baseline document, and is written only when findings are recorded. The
377
+ receipt keeps the 0.13 shape when there are no findings to record.
378
+ - `gateforge baseline update --family-http-calls <fingerprint>...` shrinks
379
+ the recorded debt; `--family-http-calls=` keeps none.
380
+
381
+ #### Response-shape checks
382
+
383
+ - The witness fetches the app's OpenAPI document once at run bind, using
384
+ `http.openapiPath` (default `/openapi.json`), and seals it as an
385
+ `http.openapi` record. Each proxied JSON response body is checked against
386
+ its route's declared response schema with OpenAPI/JSON-Schema semantics,
387
+ including `nullable`, `oneOf`/`anyOf`, `$ref`, and
388
+ `additionalProperties` allowed by default. A route without a schema or a
389
+ run without a reachable document is `unchecked` and never fails the run.
390
+ - The owner sets `http.responseShape: off | report | block` (default
391
+ `off`). `report` makes shape mismatches advisory; `block` makes each
392
+ consumed endpoint owe `http:response-matches-model`, and a wrong field
393
+ type fails with `HTTP_RESPONSE_SHAPE_MISMATCH`. A body over 1 MiB is
394
+ refused with `HTTP_BODY_TOO_LARGE` for that obligation only. `off`
395
+ changes no verdict or golden. `light` and `normal` set `report`; `strict`
396
+ sets `block`.
397
+
398
+ #### Configuration command
399
+
400
+ - `gateforge config get <key>`, `gateforge config set <key> <value>`, and
401
+ `gateforge config list` read or write `.gateforge.yml` by dotted key.
402
+ `get` and `list` report effective values, including defaults. `set`
403
+ validates the entire edited file against the pinned schema, refuses
404
+ unknown keys and invalid values, and leaves the file untouched on refusal.
405
+
406
+ ### Known limitations
407
+
408
+ - A fixed call re-introduced identically is forgiven until
409
+ `gateforge baseline update --family-http-calls` shrinks it out of the
410
+ receipt (D3).
411
+ - Realtime transports such as Socket.IO polling can produce report-only
412
+ `HTTP_ROUTE_NOT_INVENTORIED` advisories because they are not part of the
413
+ backend route inventory.
414
+ - Only an API call answered with 404 or 405 counts as a missing route;
415
+ other statuses are report-only, and incomplete inventory cannot prove
416
+ absence.
417
+
3
418
  ## 0.13.10
4
419
 
5
420
  Theme: Gateforge reads a test's type from what its fixtures are really made
package/README.md CHANGED
@@ -139,9 +139,21 @@ run), `2` config/usage error. `tests diagnose` has its own advisory contract
139
139
  `enforcement doctor` fails the `playwright-projects` row — `test-gates`
140
140
  needs a named project.
141
141
  - Gateforge reads the FIRST of `playwright.config.{ts,mts,cts,js,mjs,cjs}`
142
- at the repository root; a suffixed config such as
142
+ at the repository root, then up to two directory levels down (breadth-first,
143
+ alphabetical, hidden/dependency/build/Python directories pruned). Multiple
144
+ configs are disclosed, but only the first is inventoried. A suffixed config such as
143
145
  `playwright.config.e2e.js` is not read — rename it to
144
146
  `playwright.config.js` if it is the suite to prove.
147
+ - If the supervised Playwright child reports missing/malformed/empty outcomes,
148
+ or all-skipped outcomes with a failed exit, `test-gates` prints
149
+ `RUNNER_STARTUP_FAILED`, its exit code and a bounded stderr excerpt even
150
+ with `--result-only`. JSON includes `diagnosticContext.runnerStartup`
151
+ (`cause`, `processExit`, `stderr`). The excerpt contains at most 20 lines
152
+ and 8192 characters; lines echoing `GATEFORGE_*TOKEN*` variables are redacted.
153
+ `GATEFORGE_DEBUG_RUNNER=1` additionally echoes child stdout/stderr live
154
+ to the parent's stderr. These diagnostics never count as execution evidence.
155
+ Successful all-skipped runs retain their ordinary outcome envelope, not a
156
+ startup failure diagnostic.
145
157
  - Run-state hygiene is enforced, not forgiven: a committed run-state
146
158
  directory or include globs that omit the spec directories fail closed —
147
159
  gitignore `.gateforge/test-gates/` and include the spec globs.
package/bin/gateforge.js CHANGED
@@ -33,5 +33,7 @@ main(process.argv.slice(2)) //
33
33
  // main catches and prints expected failures; anything escaping here
34
34
  // is an internal error and must never look like a clean run.
35
35
  process.stderr.write(`gateforge: internal error: ${error instanceof Error ? error.stack : String(error)}\n`);
36
- process.exitCode = 2;
36
+ // Exit explicitly: a spawned witness child keeps the event loop alive
37
+ // after supervisor transport failures (ECONNRESET on expected-set).
38
+ process.exit(2);
37
39
  });
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The owner's DECLARED additional app origins
3
+ * (`.gateforge.yml` `additionalAppOrigins`) resolved to the base URLs the
4
+ * run's environment carries.
5
+ *
6
+ * The declaration holds environment VARIABLE NAMES, not addresses: a
7
+ * consumer whose UI runs on a second browser app (a platform admin console
8
+ * beside the tenant app) names the variable its harness already exports, so
9
+ * the address never enters a candidate-controlled file — exactly the split
10
+ * `GATEFORGE_APP_BASE_URL` already keeps between config and operator env.
11
+ *
12
+ * Resolution FAILS CLOSED. A declared name the environment does not set (or
13
+ * sets to something that is not an absolute http(s) base URL) refuses the
14
+ * run instead of being skipped: a skip would put the consumer back where it
15
+ * started — a test that passes and earns nothing — behind a config that
16
+ * reads perfectly correct. The run boundary is the only place a declared
17
+ * origin can still be missing, so that is where the refusal belongs.
18
+ */
19
+ import type { GateforgeConfig } from '@gate-forge/core';
20
+ /**
21
+ * The declared base URLs, in declaration order.
22
+ *
23
+ * Args:
24
+ * config: the loaded `.gateforge.yml` (its `additionalAppOrigins` list is
25
+ * the declaration; absent means none).
26
+ * env: the run's trusted operator environment (never the suite's).
27
+ *
28
+ * Returns:
29
+ * string[]: one absolute http(s) base URL per declared name. Empty for a
30
+ * repository that declares nothing — the single-origin path, byte for
31
+ * byte as before.
32
+ *
33
+ * Raises:
34
+ * UsageError: when a declared name is unset, blank, or does not hold an
35
+ * absolute http(s) base URL (fail closed, never a silent skip).
36
+ */
37
+ export declare function resolveAdditionalAppOrigins(config: GateforgeConfig, env: NodeJS.ProcessEnv): string[];
38
+ //# sourceMappingURL=additional-app-origins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"additional-app-origins.d.ts","sourceRoot":"","sources":["../src/additional-app-origins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGxD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,eAAe,EACvB,GAAG,EAAE,MAAM,CAAC,UAAU,GACrB,MAAM,EAAE,CA+BV"}
@@ -0,0 +1,46 @@
1
+ import { UsageError } from './errors.js';
2
+ /**
3
+ * The declared base URLs, in declaration order.
4
+ *
5
+ * Args:
6
+ * config: the loaded `.gateforge.yml` (its `additionalAppOrigins` list is
7
+ * the declaration; absent means none).
8
+ * env: the run's trusted operator environment (never the suite's).
9
+ *
10
+ * Returns:
11
+ * string[]: one absolute http(s) base URL per declared name. Empty for a
12
+ * repository that declares nothing — the single-origin path, byte for
13
+ * byte as before.
14
+ *
15
+ * Raises:
16
+ * UsageError: when a declared name is unset, blank, or does not hold an
17
+ * absolute http(s) base URL (fail closed, never a silent skip).
18
+ */
19
+ export function resolveAdditionalAppOrigins(config, env) {
20
+ const declared = config.additionalAppOrigins ?? [];
21
+ const resolved = [];
22
+ for (const name of declared) {
23
+ const raw = env[name];
24
+ if (raw === undefined || raw.trim() === '') {
25
+ throw new UsageError(`additionalAppOrigins declares '${name}', but the run environment does not set it: ` +
26
+ `export ${name}=<the second app's base URL>, or remove the declaration — a declared origin ` +
27
+ 'that cannot be resolved would run the suite against an unwitnessed app origin');
28
+ }
29
+ const value = raw.trim();
30
+ let url;
31
+ try {
32
+ url = new URL(value);
33
+ }
34
+ catch {
35
+ throw new UsageError(`additionalAppOrigins declares '${name}', but it is not an absolute URL (got '${value}'): ` +
36
+ 'it must hold a base URL such as http://localhost:26303');
37
+ }
38
+ if (url.protocol !== 'http:' && url.protocol !== 'https:') {
39
+ throw new UsageError(`additionalAppOrigins declares '${name}', but '${value}' is not an http(s) base URL: ` +
40
+ 'the observation proxy only fronts an HTTP app origin');
41
+ }
42
+ resolved.push(value);
43
+ }
44
+ return resolved;
45
+ }
46
+ //# sourceMappingURL=additional-app-origins.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"additional-app-origins.js","sourceRoot":"","sources":["../src/additional-app-origins.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAAuB,EACvB,GAAsB;IAEtB,MAAM,QAAQ,GAAG,MAAM,CAAC,oBAAoB,IAAI,EAAE,CAAC;IACnD,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;QAC5B,MAAM,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;QACtB,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAC3C,MAAM,IAAI,UAAU,CAClB,kCAAkC,IAAI,8CAA8C;gBAClF,UAAU,IAAI,8EAA8E;gBAC5F,+EAA+E,CAClF,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACzB,IAAI,GAAQ,CAAC;QACb,IAAI,CAAC;YACH,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,UAAU,CAClB,kCAAkC,IAAI,0CAA0C,KAAK,MAAM;gBACzF,wDAAwD,CAC3D,CAAC;QACJ,CAAC;QACD,IAAI,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;YAC1D,MAAM,IAAI,UAAU,CAClB,kCAAkC,IAAI,WAAW,KAAK,gCAAgC;gBACpF,sDAAsD,CACzD,CAAC;QACJ,CAAC;QACD,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -24,6 +24,8 @@ export declare function resolveAdoptedBaseline(cwd: string, baselinesPath: strin
24
24
  fingerprints: ReadonlySet<string>;
25
25
  classificationBlocked?: ReadonlySet<string>;
26
26
  adoptedAt: string;
27
+ /** The receipt carries the `http-calls` family marker (0.14 WP5). */
28
+ httpCallsRecorded: boolean;
27
29
  obligationFingerprintsById?: ReadonlyMap<string, string>;
28
30
  obligationSourcesById?: ReadonlyMap<string, readonly string[]>;
29
31
  } | null;
@@ -1 +1 @@
1
- {"version":3,"file":"adopted-baseline.d.ts","sourceRoot":"","sources":["../src/adopted-baseline.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,GAEnB;IACE,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzD,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;CAChE,GACD,IAAI,CA2CP"}
1
+ {"version":3,"file":"adopted-baseline.d.ts","sourceRoot":"","sources":["../src/adopted-baseline.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,GAEnB;IACE,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,iBAAiB,EAAE,OAAO,CAAC;IAC3B,0BAA0B,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzD,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;CAChE,GACD,IAAI,CA4CP"}
@@ -69,6 +69,7 @@ export function resolveAdoptedBaseline(cwd, baselinesPath) {
69
69
  : undefined,
70
70
  adoptedAt: adoption.adoptedAt,
71
71
  obligationFingerprintsById,
72
+ httpCallsRecorded: adoption.families?.['http-calls'] !== undefined,
72
73
  obligationSourcesById,
73
74
  };
74
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"adopted-baseline.js","sourceRoot":"","sources":["../src/adopted-baseline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,sBAAsB,CACpC,GAAW,EACX,aAAqB;IAUrB,MAAM,YAAY,GAAG,eAAe,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IACzD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC;IAC3F,IAAI,QAAQ,KAAK,I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;;GAWG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAS7F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,EAAE,GAAG,SAAS,CAMtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"}
1
+ {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,UAAU;IACzB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC,CAAC;IACrD,+CAA+C;IAC/C,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAwCD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CAoD7D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAS7F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,EAAE,GAAG,SAAS,CAMtB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"}
package/dist/args.js CHANGED
@@ -41,6 +41,7 @@ const BOOLEAN_FLAGS = {
41
41
  'dry-run': true,
42
42
  probe: true,
43
43
  'strict-preflight': true,
44
+ 'hook-mutation': true,
44
45
  };
45
46
  /**
46
47
  * Parses argv (without node/script) into options + positionals.
package/dist/args.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AASzC,iDAAiD;AACjD,MAAM,aAAa,GAAyB;IAC1C,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,wBAAwB,EAAE,IAAI;IAC9B,0BAA0B,EAAE,IAAI;IAChC,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;IACZ,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,IAAI;IACrB,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,oBAAoB,EAAE,IAAI;IAC1B,SAAS,EAAE,IAAI;IACf,MAAM,EAAE,IAAI;IACZ,aAAa,EAAE,IAAI;IACnB,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,IAAI;IACvB,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,IAAI;IACX,kBAAkB,EAAE,IAAI;CACzB,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAC,IAAuB;IAC/C,MAAM,OAAO,GAAgD,EAAE,CAAC;IAChE,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,IAAI,eAAe,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AED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAAgC,EAChC,IAAY;IAEZ,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACnD,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAChG,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;AAClD,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,UAAU,CAAC,KAAa;IACtC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC;AAC7C,CAAC"}
@@ -85,7 +85,7 @@ export declare function computeCandidateTreeSnapshot(gitDir: string, workspace:
85
85
  * with the same mode and blob; false on any mismatch or unreadable
86
86
  * listing (fail closed).
87
87
  */
88
- export declare function candidateTreeCoversCommit(gitDir: string, env: NodeJS.ProcessEnv, treeId: string, commitish: string, docsExclusions?: readonly string[], cacheExclusions?: readonly string[]): boolean;
88
+ export declare function candidateTreeCoversCommit(gitDir: string, env: NodeJS.ProcessEnv, treeId: string, commitish: string, workspace: string, docsExclusions?: readonly string[], cacheExclusions?: readonly string[]): boolean;
89
89
  /**
90
90
  * Lists every path Git TRACKS in the work tree, as repo-relative posix
91
91
  * paths.