@gate-forge/cli 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/cache-exclusions.d.ts +20 -13
- package/dist/cache-exclusions.d.ts.map +1 -1
- package/dist/cache-exclusions.js +47 -33
- package/dist/cache-exclusions.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +11 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/classify.d.ts +1 -0
- package/dist/commands/classify.d.ts.map +1 -1
- package/dist/commands/classify.js +230 -14
- package/dist/commands/classify.js.map +1 -1
- package/dist/commands/common.d.ts +6 -1
- package/dist/commands/common.d.ts.map +1 -1
- package/dist/commands/common.js +8 -1
- package/dist/commands/common.js.map +1 -1
- package/dist/commands/enforcement.d.ts +9 -1
- package/dist/commands/enforcement.d.ts.map +1 -1
- package/dist/commands/enforcement.js +296 -38
- package/dist/commands/enforcement.js.map +1 -1
- package/dist/commands/init.d.ts +20 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +88 -56
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/migrate.d.ts +14 -0
- package/dist/commands/migrate.d.ts.map +1 -0
- package/dist/commands/migrate.js +177 -0
- package/dist/commands/migrate.js.map +1 -0
- package/dist/commands/tests.d.ts.map +1 -1
- package/dist/commands/tests.js +47 -24
- package/dist/commands/tests.js.map +1 -1
- package/dist/docs-exclusions.d.ts +32 -5
- package/dist/docs-exclusions.d.ts.map +1 -1
- package/dist/docs-exclusions.js +60 -26
- package/dist/docs-exclusions.js.map +1 -1
- package/dist/evidence-config-text.d.ts +57 -0
- package/dist/evidence-config-text.d.ts.map +1 -0
- package/dist/evidence-config-text.js +263 -0
- package/dist/evidence-config-text.js.map +1 -0
- package/dist/execution.d.ts +51 -8
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +61 -29
- package/dist/execution.js.map +1 -1
- package/dist/gateforge-owned.d.ts +1 -1
- package/dist/gateforge-owned.d.ts.map +1 -1
- package/dist/gateforge-owned.js +6 -9
- package/dist/gateforge-owned.js.map +1 -1
- package/dist/input-snapshot.d.ts.map +1 -1
- package/dist/input-snapshot.js +2 -6
- package/dist/input-snapshot.js.map +1 -1
- package/dist/legacy-exclusion-paths.d.ts +28 -0
- package/dist/legacy-exclusion-paths.d.ts.map +1 -0
- package/dist/legacy-exclusion-paths.js +48 -0
- package/dist/legacy-exclusion-paths.js.map +1 -0
- package/guides/CONNECT-YOUR-PROJECT.md +50 -1
- package/guides/QUICKSTART.md +43 -10
- package/guides/REFERENCE.md +179 -29
- package/guides/TEST-ENVIRONMENT.md +36 -0
- package/guides/UPGRADE-0.9-to-0.10.md +137 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -4,6 +4,7 @@ The gateforge command-line interface: initialize a project, discover
|
|
|
4
4
|
resources and classification signals, inspect automatic decisions, reuse a
|
|
5
5
|
repository's existing tests, evaluate obligations, run the supervised E2E
|
|
6
6
|
gate, enforce the exact staged candidate, and maintain baselines.
|
|
7
|
+
**0.10.0:** evidence exclusions moved INTO `.gateforge.yml` (`evidence.exclude.docs` / `.cache`), and `gateforge migrate` moves an existing 0.9 declaration there; `enforcement pin --pin-file` writes the owner-approved policy digest outside the repository and `enforcement doctor` reports `policy-inputs-vs-HEAD` / `approved-digest`; transport (`http:*`) obligations can now be PROVEN through the Observe channel by an ordinary suite-driven test; `@gate-forge/pack-playwright/fixture` works from CommonJS (`require`), so a default-shaped Playwright suite can route its traffic through the session proxy; `classify delete` records owner-declared delete semantics. Upgrading: [UPGRADE-0.9-to-0.10](guides/UPGRADE-0.9-to-0.10.md).
|
|
7
8
|
**0.9.1:** `init --blocking` and `enforce` now insert the `gateforge-check` entry as the FIRST item of an existing `.pre-commit-config.yaml` `repos:` list, so file-mutating hooks cannot run before the gate. See [CHANGELOG.md](../CHANGELOG.md) for the 0.9.1 fixes. **0.9.0 vs. published 0.8.0:** `check --staged` reads the staged bytes, the scan skips untracked gitignored files (receipt identity unchanged), Gateforge's own setup files are policy inputs so the setup commit passes with the policy digest pinned, test-directory models stay out of the graph, per-tenant singletons are tagged only on an exact configured scope, `init` asks one plane question per route folder, `classify plane` takes a folder, `--docs-exclude-file`, `init --behavior`, `explain <path>`, ranked and capped `tests suggest`, `FASTAPI_ROUTER_UNMOUNTED` / `HTTP_METHOD_DYNAMIC` / `ENDPOINT_RESOURCE_CANDIDATE_UNMATCHED` / folded FastAPI prefixes, and no `.pyc` in a published tarball. Upgrading: [UPGRADE-0.8-to-0.9](guides/UPGRADE-0.8-to-0.9.md).
|
|
8
9
|
|
|
9
10
|
**0.8.0 vs. published 0.7.1:** one-command local proof (`gateforge run`), witnessed single tests (`--test`), test-only re-seal, owner-chosen strictness and quarantine, a strict run preflight in the doctor, CI progress stream and witnessed CI templates, adapter kit and scaffold, an engine-owned queue observer for `task` cases, timing chaos and twin path coverage. Upgrading: [UPGRADE-0.7-to-0.8](guides/UPGRADE-0.7-to-0.8.md).
|
|
@@ -30,6 +31,7 @@ including tarball installs: [Quickstart](guides/QUICKSTART.md).
|
|
|
30
31
|
- [Quickstart](guides/QUICKSTART.md)
|
|
31
32
|
- [Test environment](guides/TEST-ENVIRONMENT.md)
|
|
32
33
|
- [Upgrade from 0.8 to 0.9](guides/UPGRADE-0.8-to-0.9.md)
|
|
34
|
+
- [Upgrade from 0.9 to 0.10](guides/UPGRADE-0.9-to-0.10.md)
|
|
33
35
|
- [Upgrade from 0.7 to 0.8](guides/UPGRADE-0.7-to-0.8.md)
|
|
34
36
|
- [Upgrade from 0.6 to 0.7](guides/UPGRADE-0.6-to-0.7.md)
|
|
35
37
|
- [Runners other than Playwright](guides/RUNNER-NEUTRAL-EVIDENCE.md)
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { GateforgeConfig } from '@gate-forge/core';
|
|
2
|
-
/**
|
|
3
|
-
export declare const
|
|
2
|
+
/** Where the declaration is read from, named in refusals and digests. */
|
|
3
|
+
export declare const CACHE_EXCLUSIONS_SOURCE = ".gateforge.yml (evidence.exclude.cache)";
|
|
4
4
|
/** The reduced guarantee shown in reports when bytecode is excluded. */
|
|
5
5
|
export declare const CACHE_EXCLUSIONS_GUARANTEE: string;
|
|
6
6
|
/**
|
|
7
|
-
* Loads and validates the
|
|
7
|
+
* Loads and validates the owner-declared Python bytecode files from
|
|
8
|
+
* `.gateforge.yml` (`evidence.exclude.cache`).
|
|
8
9
|
*
|
|
9
10
|
* Args:
|
|
10
11
|
* cwd: absolute repository root.
|
|
@@ -14,32 +15,38 @@ export declare const CACHE_EXCLUSIONS_GUARANTEE: string;
|
|
|
14
15
|
* string[]: sorted exact cache paths, or an empty list when undeclared.
|
|
15
16
|
*
|
|
16
17
|
* Throws:
|
|
17
|
-
* UsageError:
|
|
18
|
+
* UsageError: a pre-0.10 declaration file, or any refusal below.
|
|
18
19
|
*/
|
|
19
20
|
export declare function loadCacheExclusions(cwd: string, config: GateforgeConfig): string[];
|
|
20
21
|
/**
|
|
21
|
-
*
|
|
22
|
+
* Reads the REMOVED 0.9 declaration file — for `gateforge migrate` only.
|
|
23
|
+
* Same symlink, shape and validation rules as the 0.9 loader, so a
|
|
24
|
+
* migrated repository gets exactly the list it had before.
|
|
22
25
|
*
|
|
23
26
|
* Args:
|
|
24
27
|
* cwd: absolute repository root.
|
|
25
|
-
* files: exact paths requested by the owner.
|
|
26
28
|
* config: validated Gateforge configuration.
|
|
27
29
|
*
|
|
28
30
|
* Returns:
|
|
29
|
-
* string[]:
|
|
31
|
+
* string[]: sorted exact cache paths, or an empty list when absent.
|
|
30
32
|
*
|
|
31
33
|
* Throws:
|
|
32
|
-
* UsageError: an
|
|
34
|
+
* UsageError: an unreadable, malformed or unsafe declaration.
|
|
33
35
|
*/
|
|
34
|
-
export declare function
|
|
36
|
+
export declare function readLegacyCacheExclusions(cwd: string, config: GateforgeConfig): string[];
|
|
35
37
|
/**
|
|
36
|
-
*
|
|
38
|
+
* Validates an init request and returns canonical, sorted file paths.
|
|
37
39
|
*
|
|
38
40
|
* Args:
|
|
39
|
-
*
|
|
41
|
+
* cwd: absolute repository root.
|
|
42
|
+
* files: exact paths requested by the owner.
|
|
43
|
+
* config: validated Gateforge configuration.
|
|
40
44
|
*
|
|
41
45
|
* Returns:
|
|
42
|
-
* string:
|
|
46
|
+
* string[]: validated, sorted paths.
|
|
47
|
+
*
|
|
48
|
+
* Throws:
|
|
49
|
+
* UsageError: an invalid path, configured input, or unsafe filesystem entry.
|
|
43
50
|
*/
|
|
44
|
-
export declare function
|
|
51
|
+
export declare function validateRequestedCacheFiles(cwd: string, files: readonly string[], config: GateforgeConfig): string[];
|
|
45
52
|
//# sourceMappingURL=cache-exclusions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-exclusions.d.ts","sourceRoot":"","sources":["../src/cache-exclusions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache-exclusions.d.ts","sourceRoot":"","sources":["../src/cache-exclusions.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKxD,yEAAyE;AACzE,eAAO,MAAM,uBAAuB,4CAA4C,CAAC;AACjF,wEAAwE;AACxE,eAAO,MAAM,0BAA0B,QAEyB,CAAC;AAEjE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,EAAE,CAKlF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,EAAE,CAmCxF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,eAAe,GACtB,MAAM,EAAE,CAEV"}
|
package/dist/cache-exclusions.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Owner-declared Python bytecode files that may leave evidence identity.
|
|
3
|
-
* The declaration
|
|
4
|
-
* is
|
|
3
|
+
* The declaration lives in `.gateforge.yml` under `evidence.exclude.cache`
|
|
4
|
+
* (0.10.0) and is trusted only when the matching trusted-policy digest is
|
|
5
|
+
* provisioned outside the candidate repository.
|
|
5
6
|
*/
|
|
6
7
|
import { existsSync, lstatSync, readFileSync } from 'node:fs';
|
|
7
8
|
import { join, resolve } from 'node:path';
|
|
8
9
|
import { parse as parseYaml } from 'yaml';
|
|
9
10
|
import { collectDeclaredInputs } from './input-snapshot.js';
|
|
10
11
|
import { UsageError } from './errors.js';
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
import { LEGACY_CACHE_EXCLUSIONS_PATH, rejectLegacyExclusions } from './legacy-exclusion-paths.js';
|
|
13
|
+
/** Where the declaration is read from, named in refusals and digests. */
|
|
14
|
+
export const CACHE_EXCLUSIONS_SOURCE = '.gateforge.yml (evidence.exclude.cache)';
|
|
13
15
|
/** The reduced guarantee shown in reports when bytecode is excluded. */
|
|
14
16
|
export const CACHE_EXCLUSIONS_GUARANTEE = 'owner assertion only: Gateforge does not prove excluded bytecode cannot affect runtime behavior; ' +
|
|
15
17
|
'a changed bytecode file can make old evidence appear current';
|
|
16
18
|
/**
|
|
17
|
-
* Loads and validates the
|
|
19
|
+
* Loads and validates the owner-declared Python bytecode files from
|
|
20
|
+
* `.gateforge.yml` (`evidence.exclude.cache`).
|
|
18
21
|
*
|
|
19
22
|
* Args:
|
|
20
23
|
* cwd: absolute repository root.
|
|
@@ -24,39 +27,64 @@ export const CACHE_EXCLUSIONS_GUARANTEE = 'owner assertion only: Gateforge does
|
|
|
24
27
|
* string[]: sorted exact cache paths, or an empty list when undeclared.
|
|
25
28
|
*
|
|
26
29
|
* Throws:
|
|
27
|
-
* UsageError:
|
|
30
|
+
* UsageError: a pre-0.10 declaration file, or any refusal below.
|
|
28
31
|
*/
|
|
29
32
|
export function loadCacheExclusions(cwd, config) {
|
|
30
|
-
|
|
33
|
+
rejectLegacyExclusions(cwd);
|
|
34
|
+
const files = config.evidence?.exclude?.cache ?? [];
|
|
35
|
+
if (files.length === 0)
|
|
36
|
+
return [];
|
|
37
|
+
return validateCacheFiles(cwd, files, config);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Reads the REMOVED 0.9 declaration file — for `gateforge migrate` only.
|
|
41
|
+
* Same symlink, shape and validation rules as the 0.9 loader, so a
|
|
42
|
+
* migrated repository gets exactly the list it had before.
|
|
43
|
+
*
|
|
44
|
+
* Args:
|
|
45
|
+
* cwd: absolute repository root.
|
|
46
|
+
* config: validated Gateforge configuration.
|
|
47
|
+
*
|
|
48
|
+
* Returns:
|
|
49
|
+
* string[]: sorted exact cache paths, or an empty list when absent.
|
|
50
|
+
*
|
|
51
|
+
* Throws:
|
|
52
|
+
* UsageError: an unreadable, malformed or unsafe declaration.
|
|
53
|
+
*/
|
|
54
|
+
export function readLegacyCacheExclusions(cwd, config) {
|
|
55
|
+
const absolute = join(cwd, ...LEGACY_CACHE_EXCLUSIONS_PATH.split('/'));
|
|
31
56
|
if (!existsSync(absolute))
|
|
32
57
|
return [];
|
|
33
|
-
inspectCachePathComponents(cwd,
|
|
58
|
+
inspectCachePathComponents(cwd, LEGACY_CACHE_EXCLUSIONS_PATH, true, false);
|
|
34
59
|
let stat;
|
|
35
60
|
try {
|
|
36
61
|
stat = lstatSync(absolute);
|
|
37
62
|
}
|
|
38
63
|
catch (error) {
|
|
39
|
-
throw new UsageError(`cannot inspect ${
|
|
64
|
+
throw new UsageError(`cannot inspect ${LEGACY_CACHE_EXCLUSIONS_PATH}: ${error.message}`);
|
|
40
65
|
}
|
|
41
66
|
if (stat.isSymbolicLink() || !stat.isFile()) {
|
|
42
|
-
throw new UsageError(`${
|
|
67
|
+
throw new UsageError(`${LEGACY_CACHE_EXCLUSIONS_PATH} must be a regular file, not a symlink or directory`);
|
|
43
68
|
}
|
|
44
69
|
let document;
|
|
45
70
|
try {
|
|
46
71
|
document = parseYaml(readFileSync(absolute, 'utf8'));
|
|
47
72
|
}
|
|
48
73
|
catch (error) {
|
|
49
|
-
throw new UsageError(`${
|
|
74
|
+
throw new UsageError(`${LEGACY_CACHE_EXCLUSIONS_PATH} is not valid YAML: ${error.message}`);
|
|
50
75
|
}
|
|
51
|
-
if (typeof document !== 'object' || document === null || Array.isArray(document)
|
|
52
|
-
|
|
53
|
-
document['schemaVersion'] !== 1 ||
|
|
54
|
-
!Array.isArray(document['files'])) {
|
|
55
|
-
throw new UsageError(`${CACHE_EXCLUSIONS_PATH} must contain only schemaVersion: 1 and a files list`);
|
|
76
|
+
if (typeof document !== 'object' || document === null || Array.isArray(document)) {
|
|
77
|
+
throw new UsageError(`${LEGACY_CACHE_EXCLUSIONS_PATH} must contain only schemaVersion: 1 and a files list`);
|
|
56
78
|
}
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
79
|
+
const raw = 'files' in document ? document.files : null;
|
|
80
|
+
const listed = Array.isArray(raw) ? raw : [];
|
|
81
|
+
const files = listed.filter((file) => typeof file === 'string');
|
|
82
|
+
if (!Array.isArray(raw) ||
|
|
83
|
+
files.length !== listed.length ||
|
|
84
|
+
!('schemaVersion' in document) ||
|
|
85
|
+
document.schemaVersion !== 1 ||
|
|
86
|
+
Object.keys(document).some((key) => key !== 'schemaVersion' && key !== 'files')) {
|
|
87
|
+
throw new UsageError(`${LEGACY_CACHE_EXCLUSIONS_PATH} must contain only schemaVersion: 1 and a files list`);
|
|
60
88
|
}
|
|
61
89
|
return validateCacheFiles(cwd, files, config);
|
|
62
90
|
}
|
|
@@ -188,18 +216,4 @@ function inspectCachePathComponents(cwd, path, requireTarget, targetMustBeFile)
|
|
|
188
216
|
}
|
|
189
217
|
}
|
|
190
218
|
}
|
|
191
|
-
/**
|
|
192
|
-
* Writes the owner declaration in a stable format.
|
|
193
|
-
*
|
|
194
|
-
* Args:
|
|
195
|
-
* files: validated cache paths.
|
|
196
|
-
*
|
|
197
|
-
* Returns:
|
|
198
|
-
* string: YAML declaration text.
|
|
199
|
-
*/
|
|
200
|
-
export function renderCacheExclusions(files) {
|
|
201
|
-
return files.length === 0
|
|
202
|
-
? 'schemaVersion: 1\nfiles: []\n'
|
|
203
|
-
: `schemaVersion: 1\nfiles:\n${files.map((file) => ` - ${JSON.stringify(file)}`).join('\n')}\n`;
|
|
204
|
-
}
|
|
205
219
|
//# sourceMappingURL=cache-exclusions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-exclusions.js","sourceRoot":"","sources":["../src/cache-exclusions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cache-exclusions.js","sourceRoot":"","sources":["../src/cache-exclusions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAE1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAEnG,yEAAyE;AACzE,MAAM,CAAC,MAAM,uBAAuB,GAAG,yCAAyC,CAAC;AACjF,wEAAwE;AACxE,MAAM,CAAC,MAAM,0BAA0B,GACrC,mGAAmG;IACnG,8DAA8D,CAAC;AAEjE;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAW,EAAE,MAAuB;IACtE,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAC5B,MAAM,KAAK,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,CAAC,CAAC;QACpF,CAAC;QACD,IAAI,QAAQ,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9D,MAAM,IAAI,UAAU,CAAC,8BAA8B,IAAI,0BAA0B,CAAC,CAAC;QACrF,CAAC;IACH,CAAC;AACH,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 adopt enforcement: seed the baseline from current debt (the one bulk-add) + wire the gate\n discover [--json] run detectors and dump the resource graph\n classify [--json] [--write-snapshot P] inspect effective classifications + typed blocks\n explain <resourceId> [--json] full signal/rule/obligation trace for one resource\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 baseline update <fp...> shrink the baseline to a strict subset (invariant 4)\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 --version print the version\n --help show this help\n\nexit codes: 0 clean/waived, 1 unresolved obligations, 2 config/usage error";
|
|
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 adopt enforcement: seed the baseline from current debt (the one bulk-add) + wire the gate\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] full signal/rule/obligation trace for one resource\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 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;
|
|
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,wvMAqEyD,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
|
@@ -28,6 +28,7 @@ import { explainCommand } from './commands/explain.js';
|
|
|
28
28
|
import { testsCommand } from './commands/tests.js';
|
|
29
29
|
import { adaptersCommand } from './commands/adapters.js';
|
|
30
30
|
import { runCommand } from './commands/run.js';
|
|
31
|
+
import { migrateCommand } from './commands/migrate.js';
|
|
31
32
|
import { enforcementCommand } from './commands/enforcement.js';
|
|
32
33
|
import { brokerCommand } from './broker.js';
|
|
33
34
|
import { keysCommand } from './commands/keys.js';
|
|
@@ -48,6 +49,10 @@ commands:
|
|
|
48
49
|
adopt adopt enforcement: seed the baseline from current debt (the one bulk-add) + wire the gate
|
|
49
50
|
discover [--json] run detectors and dump the resource graph
|
|
50
51
|
classify [--json] [--write-snapshot P] inspect effective classifications + typed blocks
|
|
52
|
+
classify plane <src> <plane> --reason T [--confirm]
|
|
53
|
+
declare the data plane for a file, folder, or glob (preview without --confirm)
|
|
54
|
+
classify delete <src> <hard|archive> [--archive-field k=v]... --reason T [--confirm]
|
|
55
|
+
declare how removal manifests for a file, folder, or glob
|
|
51
56
|
explain <resourceId> [--json] full signal/rule/obligation trace for one resource
|
|
52
57
|
tests discover [--json] [--pytest] inventory existing tests into the run-state catalog
|
|
53
58
|
tests suggest [--changed] [--json] suggest existing tests for uncovered obligations (inspection, never a gate)
|
|
@@ -79,6 +84,8 @@ commands:
|
|
|
79
84
|
--file PATH --confirm key IDs are safe to log; key material is never printed
|
|
80
85
|
enforcement doctor [--json] honest enforcement diagnostics: hook activation, runner/observer readiness,
|
|
81
86
|
trusted binary/policy ownership, snapshot mode, standard/managed boundary
|
|
87
|
+
enforcement pin --pin-file PATH [--confirm] write the STAGED revision's approved policy digest into an env file
|
|
88
|
+
OUTSIDE the repo (mode 0600); preview by default (NOT --env-file: node owns it)
|
|
82
89
|
baseline update <fp...> shrink the baseline to a strict subset (invariant 4)
|
|
83
90
|
baseline diff <before> <after> compare adopted obligations by ID without printing fingerprints
|
|
84
91
|
waive <resourceId:contract> write an expiring, owner-approved waiver for one obligation
|
|
@@ -91,6 +98,8 @@ commands:
|
|
|
91
98
|
.gateforge/runtime.yml recipe (reset/seed/up/health), the supervised
|
|
92
99
|
test-gates, check --require-e2e, and the recipe's teardown — one line
|
|
93
100
|
per step, exit code = the first failing step's own code
|
|
101
|
+
migrate [--confirm] move owner declarations into .gateforge.yml (evidence.exclude.docs|cache);
|
|
102
|
+
preview by default, idempotent, re-pin reminder on write
|
|
94
103
|
--version print the version
|
|
95
104
|
--help show this help
|
|
96
105
|
|
|
@@ -163,6 +172,8 @@ export async function main(argv, io = processIo()) {
|
|
|
163
172
|
return runWithExitCodes(io, () => Promise.resolve(baselineCommand(io, rest)));
|
|
164
173
|
case 'waive':
|
|
165
174
|
return runWithExitCodes(io, () => waiveCommand(io, rest));
|
|
175
|
+
case 'migrate':
|
|
176
|
+
return runWithExitCodes(io, () => Promise.resolve(migrateCommand(io, rest)));
|
|
166
177
|
case 'quarantine':
|
|
167
178
|
return runWithExitCodes(io, () => quarantineCommand(io, rest));
|
|
168
179
|
default:
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRo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EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAChF,KAAK,OAAO;YACV,OAAO,gBAAgB,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QAC5D,KAAK,SAAS;YACZ,OAAO,gBAAgB,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QAC/E,KAAK,YAAY;YACf,OAAO,gBAAgB,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QACjE;YACE,OAAO,gBAAgB,CAAC,EAAE,EAAE,KAAK,IAAI,EAAE;gBACrC,sEAAsE;gBACtE,SAAS,CAAC,IAAI,CAAC,CAAC;gBAChB,MAAM,IAAI,UAAU,CAAC,oBAAoB,OAAO,GAAG,CAAC,CAAC;YACvD,CAAC,CAAC,CAAC;IACP,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Io } from '../io.js';
|
|
2
2
|
export declare const CLASSIFY_USAGE: string;
|
|
3
3
|
export declare const CLASSIFY_PLANE_USAGE = "usage: gateforge classify plane <file|folder|glob> <tenant|master|global> --reason <text> [--confirm]";
|
|
4
|
+
export declare const CLASSIFY_DELETE_USAGE = "usage: gateforge classify delete <file|folder|glob> <hard|archive> [--archive-field <key=value>]... --reason <text> [--confirm]";
|
|
4
5
|
/**
|
|
5
6
|
* Runs the classify subcommand.
|
|
6
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../src/commands/classify.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../../src/commands/classify.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAOnC,eAAO,MAAM,cAAc,QAGqC,CAAC;AACjE,eAAO,MAAM,oBAAoB,0GACwE,CAAC;AAC1G,eAAO,MAAM,qBAAqB,oIACiG,CAAC;AAqgBpI;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA8CtF"}
|