@gate-forge/cli 0.13.0 → 0.13.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.
- package/CHANGELOG.md +164 -0
- package/README.md +2 -0
- package/bin/gateforge.js +17 -1
- package/dist/args.d.ts +13 -0
- package/dist/args.d.ts.map +1 -1
- package/dist/args.js +16 -0
- package/dist/args.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/check.d.ts.map +1 -1
- package/dist/commands/check.js +5 -1
- package/dist/commands/check.js.map +1 -1
- package/dist/commands/common.d.ts +26 -0
- package/dist/commands/common.d.ts.map +1 -1
- package/dist/commands/common.js +41 -0
- package/dist/commands/common.js.map +1 -1
- package/dist/commands/enforcement.d.ts.map +1 -1
- package/dist/commands/enforcement.js +40 -1
- package/dist/commands/enforcement.js.map +1 -1
- package/dist/commands/explain.d.ts +1 -1
- package/dist/commands/explain.d.ts.map +1 -1
- package/dist/commands/explain.js +17 -7
- package/dist/commands/explain.js.map +1 -1
- package/dist/commands/init-presets.d.ts +5 -3
- package/dist/commands/init-presets.d.ts.map +1 -1
- package/dist/commands/init-presets.js +7 -3
- package/dist/commands/init-presets.js.map +1 -1
- package/dist/commands/init.js +2 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/next.d.ts.map +1 -1
- package/dist/commands/next.js +5 -14
- package/dist/commands/next.js.map +1 -1
- package/dist/commands/test-gates.d.ts.map +1 -1
- package/dist/commands/test-gates.js +21 -2
- package/dist/commands/test-gates.js.map +1 -1
- package/dist/commands/tests.d.ts +1 -1
- package/dist/commands/tests.d.ts.map +1 -1
- package/dist/commands/tests.js +280 -10
- package/dist/commands/tests.js.map +1 -1
- package/dist/repo-scan.d.ts +2 -1
- package/dist/repo-scan.d.ts.map +1 -1
- package/dist/repo-scan.js +51 -0
- package/dist/repo-scan.js.map +1 -1
- package/dist/run-evidence.d.ts +190 -0
- package/dist/run-evidence.d.ts.map +1 -0
- package/dist/run-evidence.js +361 -0
- package/dist/run-evidence.js.map +1 -0
- package/dist/staged-candidate.d.ts.map +1 -1
- package/dist/staged-candidate.js +2 -1
- package/dist/staged-candidate.js.map +1 -1
- package/guides/CONNECT-YOUR-PROJECT.md +37 -5
- package/guides/QUICKSTART.md +29 -12
- package/guides/REFERENCE.md +68 -4
- package/guides/TEST-ENVIRONMENT.md +21 -0
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,169 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.2
|
|
4
|
+
|
|
5
|
+
- **API tests are witnessed: the Playwright APIRequestContext now rides the
|
|
6
|
+
session proxy.** API specs that use `request` (the fixture),
|
|
7
|
+
`page.request`/`context.request`, or `request.newContext()` never pass
|
|
8
|
+
`page.route`, so the session proxy never saw their exchanges and their
|
|
9
|
+
endpoint traffic could never be witnessed. The Gateforge fixture now
|
|
10
|
+
wraps those contexts (additive; without a witness wired, behavior is
|
|
11
|
+
byte-for-byte today's): every call whose resolved URL carries the app
|
|
12
|
+
origin is rehosted onto the test's session proxy — the same host swap
|
|
13
|
+
the page channel performs, with path, query, headers and body
|
|
14
|
+
untouched; other origins pass through, and a same-host or loopback
|
|
15
|
+
other origin is reported like an unrouted page origin. The fixture
|
|
16
|
+
module exports `request` next to `test`/`expect`; its `newContext()`
|
|
17
|
+
resolves the session per call from the running test and goes straight
|
|
18
|
+
to the app inside worker hooks and module scope, so setup traffic stays
|
|
19
|
+
uncredited. Kind inference no longer proposes `api-e2e`/`unit` from a
|
|
20
|
+
Gateforge-pack import, so `tests mark --kind observed-e2e` is
|
|
21
|
+
declarable for exactly the tests the channel witnesses. The observation
|
|
22
|
+
proxies listen on every loopback address the app hostname resolves to
|
|
23
|
+
(a name such as `localhost` answers both `::1` and the IPv4 loopback),
|
|
24
|
+
so a Node-side client whose resolver picks the other family still
|
|
25
|
+
reaches the session proxy.
|
|
26
|
+
|
|
27
|
+
- **The sweep progress line names the requests that refused a page.** A
|
|
28
|
+
page printing only `refused PAGE_API_UNSETTLED (782 ms)` left nobody any
|
|
29
|
+
wiser about WHICH request never settled. A refused visit now keeps its
|
|
30
|
+
culprits — the additive `unsettledRequests` field on the visit and in
|
|
31
|
+
the `page.observed` payload (both the observed and the swept channel):
|
|
32
|
+
un-superseded failures with their real browser error text, then
|
|
33
|
+
still-open requests as `outstanding`, capped at five, urls without
|
|
34
|
+
query — and the per-page progress line appends them:
|
|
35
|
+
`page 5/56 erp /billing/documents -> refused PAGE_API_UNSETTLED (782 ms): GET /api/v1/foo net::ERR_ABORTED; POST /api/x outstanding`.
|
|
36
|
+
A `PAGE_API_ERROR` line names the refusing response
|
|
37
|
+
(`GET /api/y -> 500`, honoring the grader's anonymous-401 exemption)
|
|
38
|
+
instead of printing only the reason code.
|
|
39
|
+
|
|
40
|
+
- **`tests suggest --from-run`: suggestions from a witnessed run's own page
|
|
41
|
+
observations.** A witnessed run already records, per test, every API
|
|
42
|
+
request each page made; the suggestion engine no longer has to guess from
|
|
43
|
+
names. The witness now stamps each recorded exchange with its method (the
|
|
44
|
+
additive `method` field on `page.observed` payloads' `apiStatuses`
|
|
45
|
+
entries, in both the observed and the swept channel), and
|
|
46
|
+
`gateforge tests suggest --from-run [--run-dir <dir>]` reads that ledger
|
|
47
|
+
from the run state directory, matches every same-origin app API exchange
|
|
48
|
+
(status under 400) against the current endpoint inventory with the
|
|
49
|
+
shared router semantics — a literal segment beats a parameter; more than
|
|
50
|
+
one equal match is reported as ambiguous, never guessed — and prints,
|
|
51
|
+
per observation obligation no test declares and the run did not satisfy,
|
|
52
|
+
the tests that exercised it, the evidence lines
|
|
53
|
+
(`METHOD path -> status (run <runId>)`), and the exact
|
|
54
|
+
`tests mark --kind observed-e2e` command. Advisory only: nothing is
|
|
55
|
+
written. Exchanges that matched no endpoint (usually an app bug) and the
|
|
56
|
+
ambiguous ones are listed separately with the test and path.
|
|
57
|
+
|
|
58
|
+
- **A `.gateforge/runtime.yml` that `.gateforge.yml` never references now
|
|
59
|
+
warns instead of being silently ignored.** The supervised runner forwards
|
|
60
|
+
only the environment variables listed in that file's `envAllowlist`, and
|
|
61
|
+
only when the config declares the file with a `runtime:` key. A
|
|
62
|
+
`runtime.yml` alone was read by nothing, so a witnessed run failed on
|
|
63
|
+
missing variables with no hint why. `check`, `next`, `test-gates` and the
|
|
64
|
+
commit hook now print one warning naming the missing `runtime:`
|
|
65
|
+
declaration.
|
|
66
|
+
|
|
67
|
+
- **A second `tests mark` for the same test adds to its claims instead of
|
|
68
|
+
replacing them.** The first mark's obligations survive; the resulting
|
|
69
|
+
claim list is printed. A repeat that declares a different `--kind` or a
|
|
70
|
+
different `--category` set is refused, naming both and the sidecar edit
|
|
71
|
+
that changes them. The repeatable `--obligation <id> --obligation <id>`
|
|
72
|
+
form is documented in QUICKSTART §5 and REFERENCE.
|
|
73
|
+
|
|
74
|
+
- **`gateforge explain` accepts the obligation ids other commands print**
|
|
75
|
+
(`<resourceId>:<contract>`, including transport/http ids such as
|
|
76
|
+
`…:http:request-observed`): it resolves the obligation's resource, shows
|
|
77
|
+
its trace, and names the requested obligation in the obligation list. A
|
|
78
|
+
truly unknown target still reports `no discovered resource matches`.
|
|
79
|
+
|
|
80
|
+
- **init's no-terminal notice names the edit that works.** It now says to
|
|
81
|
+
set `mode:` in `.gateforge.yml` (per preset: `warn`, `changed`,
|
|
82
|
+
`strict`) instead of "re-run with `--preset`" — that re-run exits 2,
|
|
83
|
+
because init never rewrites an existing config. QUICKSTART §2 says the
|
|
84
|
+
same.
|
|
85
|
+
|
|
86
|
+
- **`tests discover` exits with its own verdict when the output reader
|
|
87
|
+
goes away.** Reading a large catalog through `| head` (or any reader
|
|
88
|
+
that closes early) killed the process with an unhandled `write EPIPE`
|
|
89
|
+
and exit 1 after discovery had already succeeded — the same repository
|
|
90
|
+
exited 0 on one run and 1 on the next. The exit code is now always the
|
|
91
|
+
command's own.
|
|
92
|
+
|
|
93
|
+
- **The test scan parses only script extensions, never JSON files.** A
|
|
94
|
+
spec importing a translations `en.json` flooded the catalog with
|
|
95
|
+
thousands of parse-error rows (18,658 on one real app) because the
|
|
96
|
+
import edge pulled the JSON document into the JavaScript parser. The
|
|
97
|
+
scan now resolves only `.js .cjs .mjs .ts .cts .mts .jsx .tsx` files.
|
|
98
|
+
|
|
99
|
+
- **init recommends `@gate-forge/pack-react-router` when the app uses
|
|
100
|
+
React Router.** Any scanned `package.json` — root or nested like
|
|
101
|
+
`frontend/` — declaring `react-router` or `react-router-dom` in
|
|
102
|
+
dependencies or devDependencies recommends the pack, with the declaring
|
|
103
|
+
file as the printed reason.
|
|
104
|
+
|
|
105
|
+
## 0.13.1
|
|
106
|
+
|
|
107
|
+
- **Frontend detector: a trailing query-string hole is read as a query, not a
|
|
108
|
+
path segment.** Calls written like
|
|
109
|
+
`` `.../meters${qs ? `?code=${code}` : ''}` `` (also the `&&`, `|| ''`, and
|
|
110
|
+
const-bound forms, including function-local `const`) used to render their
|
|
111
|
+
unresolved hole as a positional slot glued to the last path segment
|
|
112
|
+
(`meters${}`), so the call failed to join its backend route and was reported
|
|
113
|
+
unwired. When the template's last hole provably evaluates only to query or
|
|
114
|
+
fragment text (empty, `?…`, or `#…`), it now renders as a bare `?` and
|
|
115
|
+
normalization strips the query, so the call joins its route. Anything not
|
|
116
|
+
provably a query suffix — a hole mid-path, a trailing path value, a branch
|
|
117
|
+
starting with `/` — is unchanged.
|
|
118
|
+
|
|
119
|
+
- **The post-suite page sweep can now run past five minutes.** The
|
|
120
|
+
supervisor's call to the witness used Node's global fetch, whose fixed
|
|
121
|
+
300-second internal header/body timeout aborted every sweep budgeted for
|
|
122
|
+
longer than that, reporting `fetch failed` no matter what deadline the
|
|
123
|
+
sweep itself had computed. The supervisor client now performs its HTTP
|
|
124
|
+
calls directly with `node:http`/`node:https`, so the computed budget (base
|
|
125
|
+
timeout plus the per-page allowance) is the only deadline. Error types,
|
|
126
|
+
messages, and fail-closed behavior are unchanged; a budget shorter than a
|
|
127
|
+
slow answer still aborts with the same typed error.
|
|
128
|
+
|
|
129
|
+
- **A storage-only init script no longer refuses page proof.** A spec or
|
|
130
|
+
helper calling `page.addInitScript(() => localStorage.setItem('lang',
|
|
131
|
+
'en'))` (also the block form, `sessionStorage`, `removeItem`/`clear`,
|
|
132
|
+
optional `window.` receiver, and the `context.addInitScript` form) was
|
|
133
|
+
reported as a page-observation tamper risk and refused page-level proof.
|
|
134
|
+
Such a script only sets storage keys the witness's independent observer
|
|
135
|
+
can see, so it is no longer a tamper; the scan continues past it, and a
|
|
136
|
+
real tamper later in the same file (a route interception, `window.fetch`
|
|
137
|
+
reassignment, a template or non-literal value, extra arguments, or a
|
|
138
|
+
string/path script) is still reported at its own line.
|
|
139
|
+
|
|
140
|
+
- **A page may keep a live connection open (`pages.liveChannels`).** A page
|
|
141
|
+
whose app holds a long poll, a WebSocket, or a server-sent-events stream
|
|
142
|
+
open forever used to burn the whole visit settle budget and refuse the
|
|
143
|
+
page with `PAGE_API_UNSETTLED`. Declaring the stream's path prefix under
|
|
144
|
+
the new controller-held `pages.liveChannels` configuration (same rule in
|
|
145
|
+
both proof channels) makes such a request a live channel: it never counts
|
|
146
|
+
as app data evidence, never holds the settle wait, and never refuses the
|
|
147
|
+
page by itself; the visit payload lists what stayed open (`liveChannels`,
|
|
148
|
+
count + paths). WebSocket upgrades on the app host and `text/event-stream`
|
|
149
|
+
responses are live channels by protocol, with no declaration needed. An
|
|
150
|
+
undeclared open request still refuses the page exactly as before.
|
|
151
|
+
|
|
152
|
+
- **A rejected audience session stops that audience's page sweep.** When an
|
|
153
|
+
audience with a session lands on one of its declared login routes on the
|
|
154
|
+
first visited page (the usual rotating-refresh-token case: the suite's run
|
|
155
|
+
consumed the session the file carried), that page is graded as today and
|
|
156
|
+
every remaining page of the same audience is refused without visiting it,
|
|
157
|
+
with the new `PAGE_AUDIENCE_SESSION_INVALID` reason. The records still
|
|
158
|
+
issue, the sweep payload says each page was not visited and why, and one
|
|
159
|
+
log line asks for a session file the suite does not consume. Session-less
|
|
160
|
+
audiences are unaffected.
|
|
161
|
+
|
|
162
|
+
- **The page sweep reports progress per page.** Each visited page emits one
|
|
163
|
+
line as its visit finishes — `page 3/12 tenant /orders -> proven (1234
|
|
164
|
+
ms)` — so a killed sweep keeps the lines it already earned instead of
|
|
165
|
+
staying silent for minutes. `--progress off` asks for none.
|
|
166
|
+
|
|
3
167
|
## 0.13.0
|
|
4
168
|
|
|
5
169
|
- **Pages-family adoption for already-adopted repositories (0.13.0).**
|
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@ 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.13.2:** API tests are witnessed: the Gateforge Playwright fixture rehosts APIRequestContext calls (the `request` fixture, `page.request`/`context.request`, and the exported `request.newContext()`) onto the test's session proxy, while hook and module-scope setup traffic stays uncredited. `tests suggest --from-run` names tests from a witnessed run's own recorded exchanges (now stamped with their method) and prints the exact `tests mark` command; unmatched and ambiguous exchanges are listed separately. A refused sweep page names the requests behind `PAGE_API_UNSETTLED`/`PAGE_API_ERROR`. First-install fixes: an unreferenced `.gateforge/runtime.yml` warns, a repeated `tests mark` adds claims instead of replacing them, `explain` accepts printed obligation ids, init's no-terminal notice names the `mode:` edit, a closed output reader no longer changes the exit code, the test scan ignores JSON files, and init recommends the React Router pack for React Router apps.
|
|
8
|
+
**0.13.1:** The frontend detector now reads a trailing template-literal hole that provably renders only query or fragment text as a bare query marker instead of gluing it to the last path segment, so calls like `.../meters${qs}` join their backend route instead of reporting unwired (anything not provably a query suffix is unchanged). The supervisor's post-suite page sweep performs its witness HTTP calls with `node:http`/`node:https` directly, so the computed budget is the only deadline and a sweep budgeted longer than five minutes no longer aborts with `fetch failed` (error types, messages, and fail-closed behavior unchanged). A storage-only `addInitScript` (`localStorage`/`sessionStorage` set, `removeItem`/`clear`, optional `window.` receiver, and the `context.addInitScript` form) is no longer a page-observation tamper; the scan continues past it, and a real tamper later in the same file is still reported at its own line.
|
|
7
9
|
**0.13.0:** React Router pages become first-class proof targets. `@gate-forge/pack-react-router` reads JSX and object route trees into `ui.page` resources, and each plane-resolved page carries two promises — `page:loads` and `page:data-ok` — graded from settled, route-matched witnessed visits (a page's API call counts only when its response BODY completed; a `net::ERR_ABORTED` cancel settles only when the same method and URL completed in the same visit). The engine's post-suite referee sweep visits the pages no test proved, with seeded `pages.params`; a failed page-observation flush never fails the app's own passing test. Page paths honor a code-read router `basename` plus the optional `pages.basePath`, and a relative route with no parent to place it under is refused (`PAGE_ROUTE_UNRESOLVED`) instead of silently joined. `gateforge adopt --family pages` records pre-existing page debt for already-adopted repositories (preview by default, one atomic receipt write, permanent marker, shrink via `baseline update --family-pages`); a 401 on a page whose audience has no login counts as the expected not-logged-in answer; page promises report honest causes and honor owner waivers; and `gateforge init` now asks for `pages.audiences` plane declarations.
|
|
8
10
|
**0.12.0:** owner-declared business rules, test-type agnostic. The owner writes the product's rules down in the `rules:` section of `.gateforge/classification-policy.yml` (`gateforge init --rules` adds a commented example; a repository without the section is byte-identical to a release without the feature). Each rule names the test type that must prove it — `e2e` (default) or `pytest` — and splits into CASES mapped by the claim id `business-rule:<ruleId>/<caseId>` through the ONE mapping resolver (`tests mark --rule <ruleId>/<caseId> …`). A declaration is never proof: the case is graded by a pure evaluator over the sealed run's own facts, every mapped test of a case must deliver the proof (a green sibling never forgives a red one), a mocked spec never proves an end-to-end rule, a test outside the run's graded slice is reported `unproven`, and rule findings are run-wide, never diff-scoped away. `enforcement: advisory` (requires `advisoryReason`) rides the report's advisory channel every run, out of `blocking` and out of the exit code. `check` blocks (or advises) per case, `check --require-e2e` and `test-gates` grade from the sealed receipt's authorized records, the json report carries an additive `businessRules` section, and `gateforge next` prints a starter test plus the exact `tests mark --rule` line per missing case. Fixed: an empty optional config directory is digested exactly like an absent one, so the pin an owner minted over their adoption commit is the digest every gate computes and a fresh adoption can push again.
|
|
9
11
|
**0.11.1:** Gateforge's own `check` cache is excluded from candidate trees, so a concurrent check cannot alter a run using a non-default `test-gates --out` directory. No other ignored or run-state files are excluded.
|
package/bin/gateforge.js
CHANGED
|
@@ -9,6 +9,22 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import { main } from '../dist/cli.js';
|
|
11
11
|
|
|
12
|
+
// A closed output reader (`| head`, a pager that quits, a CI log tailer
|
|
13
|
+
// that stops following) is not a Gateforge failure. Without a listener,
|
|
14
|
+
// Node raises the stream's 'error' event OUTSIDE main's error handling —
|
|
15
|
+
// an unhandled `write EPIPE` crash with exit 1 that can overwrite the
|
|
16
|
+
// command's own verdict (fresh-clone snag 5a: `tests discover` exited 0
|
|
17
|
+
// on the first run and 1 on identical re-runs, decided by how the output
|
|
18
|
+
// was captured, not by the repository). The error is swallowed here so
|
|
19
|
+
// the process always exits with the exit code the command itself
|
|
20
|
+
// returned; anything other than EPIPE still crashes loudly.
|
|
21
|
+
for (const output of [process.stdout, process.stderr]) {
|
|
22
|
+
output.on('error', (error) => {
|
|
23
|
+
if (error !== null && typeof error === 'object' && error.code === 'EPIPE') return;
|
|
24
|
+
throw error;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
12
28
|
main(process.argv.slice(2)) //
|
|
13
29
|
.then((code) => {
|
|
14
30
|
process.exitCode = code;
|
|
@@ -18,4 +34,4 @@ main(process.argv.slice(2)) //
|
|
|
18
34
|
// is an internal error and must never look like a clean run.
|
|
19
35
|
process.stderr.write(`gateforge: internal error: ${error instanceof Error ? error.stack : String(error)}\n`);
|
|
20
36
|
process.exitCode = 2;
|
|
21
|
-
});
|
|
37
|
+
});
|
package/dist/args.d.ts
CHANGED
|
@@ -43,4 +43,17 @@ export declare function stringFlag(options: Record<string, unknown>, name: strin
|
|
|
43
43
|
* the flag is absent or carries only blank values.
|
|
44
44
|
*/
|
|
45
45
|
export declare function repeatableStringFlag(options: Record<string, unknown>, name: string): string[] | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Quotes one argument for a POSIX shell command line: wraps it in single
|
|
48
|
+
* quotes and replaces every embedded `'` with `'\''`, so a printed
|
|
49
|
+
* command survives any key, path, or reason text a test or route can
|
|
50
|
+
* carry (quotes, `$`, backticks, spaces).
|
|
51
|
+
*
|
|
52
|
+
* Args:
|
|
53
|
+
* value: the raw argument text.
|
|
54
|
+
*
|
|
55
|
+
* Returns:
|
|
56
|
+
* string: the shell-safe argument.
|
|
57
|
+
*/
|
|
58
|
+
export declare function shellQuote(value: string): string;
|
|
46
59
|
//# sourceMappingURL=args.d.ts.map
|
package/dist/args.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAuCD;;;;;;;;;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
|
@@ -10,6 +10,7 @@ import { UsageError } from './errors.js';
|
|
|
10
10
|
const BOOLEAN_FLAGS = {
|
|
11
11
|
json: true,
|
|
12
12
|
changed: true,
|
|
13
|
+
'from-run': true,
|
|
13
14
|
staged: true,
|
|
14
15
|
help: true,
|
|
15
16
|
version: true,
|
|
@@ -153,4 +154,19 @@ export function repeatableStringFlag(options, name) {
|
|
|
153
154
|
const values = raw.map(String).map((entry) => entry.trim()).filter((entry) => entry.length > 0);
|
|
154
155
|
return values.length === 0 ? undefined : values;
|
|
155
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Quotes one argument for a POSIX shell command line: wraps it in single
|
|
159
|
+
* quotes and replaces every embedded `'` with `'\''`, so a printed
|
|
160
|
+
* command survives any key, path, or reason text a test or route can
|
|
161
|
+
* carry (quotes, `$`, backticks, spaces).
|
|
162
|
+
*
|
|
163
|
+
* Args:
|
|
164
|
+
* value: the raw argument text.
|
|
165
|
+
*
|
|
166
|
+
* Returns:
|
|
167
|
+
* string: the shell-safe argument.
|
|
168
|
+
*/
|
|
169
|
+
export function shellQuote(value) {
|
|
170
|
+
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
171
|
+
}
|
|
156
172
|
//# sourceMappingURL=args.js.map
|
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,U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,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"}
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Io } from './io.js';
|
|
2
2
|
/** The top-level usage text (also printed for `--help`). */
|
|
3
|
-
export declare const USAGE = "usage: gateforge <command> [options]\n\ncommands:\n init [--languages <comma,list>] [--plugins <comma,list>] [--accept-recommended] [--no-scan]\n [--proof overlay|observe] [--blocking] [--strict-e2e] [--witnessed staged|full]\n scan the repo, print the recommended install, and write\n .gateforge.yml + skeleton + GATEFORGE.md + overlay README\n (idempotent; --blocking installs AND verifies an active\n pre-commit hook + CI wiring)\n enforce [--ci github|gitlab] [--witnessed] wire the blocking pre-commit + CI gate into an initialized repo (idempotent);\n --witnessed also writes the witnessed 'gateforge run' job template\n adopt [--family pages [--confirm]] adopt enforcement: seed the baseline from current debt (the one bulk-add) + wire the gate;\n --family pages previews the pages-family migration of an ALREADY-adopted repo,\n --confirm records it (one atomic receipt write)\n discover [--json] run detectors and dump the resource graph\n classify [--json] [--write-snapshot P] inspect effective classifications + typed blocks\n classify plane <src> <plane> --reason T [--confirm]\n declare the data plane for a file, folder, or glob (preview without --confirm)\n classify delete <src> <hard|archive> [--archive-field k=v]... --reason T [--confirm]\n declare how removal manifests for a file, folder, or glob\n explain <resourceId> [--json]
|
|
3
|
+
export declare const USAGE = "usage: gateforge <command> [options]\n\ncommands:\n init [--languages <comma,list>] [--plugins <comma,list>] [--accept-recommended] [--no-scan]\n [--proof overlay|observe] [--blocking] [--strict-e2e] [--witnessed staged|full]\n scan the repo, print the recommended install, and write\n .gateforge.yml + skeleton + GATEFORGE.md + overlay README\n (idempotent; --blocking installs AND verifies an active\n pre-commit hook + CI wiring)\n enforce [--ci github|gitlab] [--witnessed] wire the blocking pre-commit + CI gate into an initialized repo (idempotent);\n --witnessed also writes the witnessed 'gateforge run' job template\n adopt [--family pages [--confirm]] adopt enforcement: seed the baseline from current debt (the one bulk-add) + wire the gate;\n --family pages previews the pages-family migration of an ALREADY-adopted repo,\n --confirm records it (one atomic receipt write)\n discover [--json] run detectors and dump the resource graph\n classify [--json] [--write-snapshot P] inspect effective classifications + typed blocks\n classify plane <src> <plane> --reason T [--confirm]\n declare the data plane for a file, folder, or glob (preview without --confirm)\n classify delete <src> <hard|archive> [--archive-field k=v]... --reason T [--confirm]\n declare how removal manifests for a file, folder, or glob\n explain <resourceId|obligationId> [--json]\n full signal/rule/obligation trace for one resource or obligation\n tests discover [--json] [--pytest] inventory existing tests into the run-state catalog\n tests suggest [--changed] [--json] suggest existing tests for uncovered obligations (inspection, never a gate)\n tests mark --test K --kind K [--category C]...\n --obligation ID... --reason \"T\" declare an existing test in .gateforge/test-map.yml (atomic, idempotent)\n tests explain --test K [--json] requirements/mapping/next action for one existing test\n tests diagnose [--suite N] [--json] run the configured pytest diagnostic suites (advisory; exit 0/1/2)\n adapters scaffold [--dry-run] write a starting-point evidence adapter per business resource\n [--dry-run] that has none (never overwrites; every guess is marked)\n adapters check [--json] load and validate every adapter; report the resources with none\n [--probe --base-url URL] with the app running: one read-only GET per adapter\n [--probe-id ID]\n obligations [--json] evaluate policies and dump obligations\n history [--test TEXT] [--failed] [--since ISO] query retained supervised run history\n check [--changed] [--staged] [--candidate-commit SHA] run the gate against all files, the exact frozen\n index, or the selected immutable commit tree; --changed narrows the selected candidate's diff;\n [--require-e2e] [--format F] require a valid receipt and select text|json|sarif output\n next [--changed] [--json] print the ONE blocking next action (navigation, not the gate)\n test-gates [--changed] [--suite CMD] supervised E2E run over the obligations (--changed) or the\n [--out DIR] [--format F] legacy suite escape hatch; seals a gate receipt on complete success\n [--witness-url URL]\n pre-commit --scope staged|full freeze the Git index, run the witnessed gate against those exact\n bytes, validate the new receipt, and recheck the index before success\n broker commit --workspace DIR commit broker (MECHANISM, not deployment): verifies a gate\n --message MSG [--receipt P] receipt for the exact workspace bytes, then commits via compare-and-swap\n [--ref REF] ref update. Guaranteed only when the broker runs outside the agent's\n write/process boundary (ADR 0005 D1)\n key create|import-env|rotate|retire owner-only verifier-key ceremony; stores keys outside the repo\n --file PATH --confirm key IDs are safe to log; key material is never printed\n enforcement doctor [--json] honest enforcement diagnostics: hook activation, runner/observer readiness,\n trusted binary/policy ownership, snapshot mode, standard/managed boundary\n enforcement pin --pin-file PATH [--confirm] write the STAGED revision's approved policy digest into an env file\n OUTSIDE the repo (mode 0600); preview by default (NOT --env-file: node owns it)\n baseline update <fp...> shrink the baseline to a strict subset (invariant 4);\n [--classification-blocked <id>]... / [--family-pages <fp>]... shrink the receipt's adopted layers\n baseline diff <before> <after> compare adopted obligations by ID without printing fingerprints\n waive <resourceId:contract> write an expiring, owner-approved waiver for one obligation\n --owner N --approver N (GF-15: all fields mandatory; justification URL required;\n --justification-url U --expires D no --force \u2014 renewal is a hand-edit of the written file)\n quarantine <testKey> write an expiring, owner-approved flaky-test quarantine\n --owner N --approver N (never proof, never blocking; at most 14 days; no --force;\n --reason \"T\" --expires D an expired quarantine BLOCKS until renewed or deleted)\n run [--] [test-gates flags] the whole local proof in order: doctor preflight (strict), the optional\n .gateforge/runtime.yml recipe (reset/seed/up/health), the supervised\n test-gates, check --require-e2e, and the recipe's teardown \u2014 one line\n per step, exit code = the first failing step's own code\n migrate [--confirm] move owner declarations into .gateforge.yml (evidence.exclude.docs|cache);\n preview by default, idempotent, re-pin reminder on write\n --version print the version\n --help show this help\n\nexit codes: 0 clean/waived, 1 unresolved obligations, 2 config/usage error";
|
|
4
4
|
/**
|
|
5
5
|
* Runs the gateforge CLI.
|
|
6
6
|
*
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AA0BlC,4DAA4D;AAC5D,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AA0BlC,4DAA4D;AAC5D,eAAO,MAAM,KAAK,wpNAyEyD,CAAC;AAE5E;;;;;;;;;GASG;AACH,wBAAsB,IAAI,CACxB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,GAAE,EAAgB,GACnB,OAAO,CAAC,MAAM,CAAC,CAsEjB"}
|
package/dist/cli.js
CHANGED
|
@@ -55,7 +55,8 @@ commands:
|
|
|
55
55
|
declare the data plane for a file, folder, or glob (preview without --confirm)
|
|
56
56
|
classify delete <src> <hard|archive> [--archive-field k=v]... --reason T [--confirm]
|
|
57
57
|
declare how removal manifests for a file, folder, or glob
|
|
58
|
-
explain <resourceId> [--json]
|
|
58
|
+
explain <resourceId|obligationId> [--json]
|
|
59
|
+
full signal/rule/obligation trace for one resource or obligation
|
|
59
60
|
tests discover [--json] [--pytest] inventory existing tests into the run-state catalog
|
|
60
61
|
tests suggest [--changed] [--json] suggest existing tests for uncovered obligations (inspection, never a gate)
|
|
61
62
|
tests mark --test K --kind K [--category C]...
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM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E;IACzE,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAClD,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;IACxC,sEAAsE;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;;;OASG;IACH,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IAChD;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA4CnF;AA8VD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,QAEgE,CAAC;AAEnG;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAMhE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,aAAa,GAAG,IAAI,GAAG,OAAO,CAE9E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,GACf,MAAM,CAeR;AAsCD;;;;;;;;;;;GAWG;AACH,wBAAsB,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CA62CrF"}
|
package/dist/commands/check.js
CHANGED
|
@@ -164,7 +164,7 @@ import { assertRuntimeReuseOwnerApproval, freezeCommitCandidate, freezeStagedCan
|
|
|
164
164
|
import { httpRoutesView, readCandidateTreeEntries, readStateDocument, resolveStateDir } from '../state.js';
|
|
165
165
|
import { engineGeneratedStateFileFilter } from '../state-artifacts.js';
|
|
166
166
|
import { assertReceiptApprovedPolicy, evaluateApprovedPolicy, resolveApprovedPolicyDigest, } from '../trusted-policy.js';
|
|
167
|
-
import { loadConfigAt, parseRunFormat, rejectUnknownFlags, VERSION } from './common.js';
|
|
167
|
+
import { loadConfigAt, parseRunFormat, rejectUnknownFlags, VERSION, warnUndeclaredRuntime } from './common.js';
|
|
168
168
|
import { resolveVerifierKeyring } from '../verifier-keys.js';
|
|
169
169
|
import { renderEndpointInventory } from '../endpoint-report.js';
|
|
170
170
|
import { candidateTreeCoversCommit, computeCandidateTreeSnapshot, resolveGitDir, sanitizedAuthorityEnv } from '../candidate-tree.js';
|
|
@@ -911,6 +911,10 @@ export async function runCheckGate(io, options) {
|
|
|
911
911
|
// fails closed. Legacy v1 `recordIdsMac` never authorizes, even when
|
|
912
912
|
// it verifies.
|
|
913
913
|
const config = loadConfigAt(io.cwd);
|
|
914
|
+
// Undeclared runtime document (fresh-clone snag 5g): the
|
|
915
|
+
// owner's `.gateforge/runtime.yml` is ignored until this
|
|
916
|
+
// line exists — say so before the gate runs.
|
|
917
|
+
warnUndeclaredRuntime(io, config);
|
|
914
918
|
// A merge-request pipeline with no base commit would resolve `auto` to
|
|
915
919
|
// the local staged diff — zero changed files in a CI job, and a gate
|
|
916
920
|
// that fails an hour later on debt nobody changed. Refuse in seconds.
|