@gate-forge/cli 0.9.1 → 0.10.1

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 (80) hide show
  1. package/CHANGELOG.md +343 -0
  2. package/README.md +3 -0
  3. package/dist/cache-exclusions.d.ts +20 -13
  4. package/dist/cache-exclusions.d.ts.map +1 -1
  5. package/dist/cache-exclusions.js +47 -33
  6. package/dist/cache-exclusions.js.map +1 -1
  7. package/dist/cli.d.ts +1 -1
  8. package/dist/cli.d.ts.map +1 -1
  9. package/dist/cli.js +11 -0
  10. package/dist/cli.js.map +1 -1
  11. package/dist/commands/check.d.ts.map +1 -1
  12. package/dist/commands/check.js +14 -14
  13. package/dist/commands/check.js.map +1 -1
  14. package/dist/commands/classify.d.ts +1 -0
  15. package/dist/commands/classify.d.ts.map +1 -1
  16. package/dist/commands/classify.js +230 -14
  17. package/dist/commands/classify.js.map +1 -1
  18. package/dist/commands/common.d.ts +6 -1
  19. package/dist/commands/common.d.ts.map +1 -1
  20. package/dist/commands/common.js +8 -1
  21. package/dist/commands/common.js.map +1 -1
  22. package/dist/commands/enforcement.d.ts +9 -1
  23. package/dist/commands/enforcement.d.ts.map +1 -1
  24. package/dist/commands/enforcement.js +306 -38
  25. package/dist/commands/enforcement.js.map +1 -1
  26. package/dist/commands/init.d.ts +20 -0
  27. package/dist/commands/init.d.ts.map +1 -1
  28. package/dist/commands/init.js +88 -56
  29. package/dist/commands/init.js.map +1 -1
  30. package/dist/commands/migrate.d.ts +14 -0
  31. package/dist/commands/migrate.d.ts.map +1 -0
  32. package/dist/commands/migrate.js +177 -0
  33. package/dist/commands/migrate.js.map +1 -0
  34. package/dist/commands/pre-commit.d.ts.map +1 -1
  35. package/dist/commands/pre-commit.js +8 -1
  36. package/dist/commands/pre-commit.js.map +1 -1
  37. package/dist/commands/tests.d.ts.map +1 -1
  38. package/dist/commands/tests.js +120 -40
  39. package/dist/commands/tests.js.map +1 -1
  40. package/dist/docs-exclusions.d.ts +32 -5
  41. package/dist/docs-exclusions.d.ts.map +1 -1
  42. package/dist/docs-exclusions.js +60 -26
  43. package/dist/docs-exclusions.js.map +1 -1
  44. package/dist/evidence-config-text.d.ts +57 -0
  45. package/dist/evidence-config-text.d.ts.map +1 -0
  46. package/dist/evidence-config-text.js +263 -0
  47. package/dist/evidence-config-text.js.map +1 -0
  48. package/dist/execution.d.ts +51 -8
  49. package/dist/execution.d.ts.map +1 -1
  50. package/dist/execution.js +61 -29
  51. package/dist/execution.js.map +1 -1
  52. package/dist/gateforge-owned.d.ts +1 -1
  53. package/dist/gateforge-owned.d.ts.map +1 -1
  54. package/dist/gateforge-owned.js +6 -9
  55. package/dist/gateforge-owned.js.map +1 -1
  56. package/dist/input-snapshot.d.ts.map +1 -1
  57. package/dist/input-snapshot.js +2 -6
  58. package/dist/input-snapshot.js.map +1 -1
  59. package/dist/legacy-exclusion-paths.d.ts +28 -0
  60. package/dist/legacy-exclusion-paths.d.ts.map +1 -0
  61. package/dist/legacy-exclusion-paths.js +48 -0
  62. package/dist/legacy-exclusion-paths.js.map +1 -0
  63. package/dist/pipeline.d.ts +8 -2
  64. package/dist/pipeline.d.ts.map +1 -1
  65. package/dist/pipeline.js +9 -8
  66. package/dist/pipeline.js.map +1 -1
  67. package/dist/repo-path.d.ts +3 -0
  68. package/dist/repo-path.d.ts.map +1 -0
  69. package/dist/repo-path.js +24 -0
  70. package/dist/repo-path.js.map +1 -0
  71. package/dist/staged-candidate.d.ts +36 -1
  72. package/dist/staged-candidate.d.ts.map +1 -1
  73. package/dist/staged-candidate.js +47 -0
  74. package/dist/staged-candidate.js.map +1 -1
  75. package/guides/CONNECT-YOUR-PROJECT.md +50 -1
  76. package/guides/QUICKSTART.md +43 -10
  77. package/guides/REFERENCE.md +206 -30
  78. package/guides/TEST-ENVIRONMENT.md +36 -0
  79. package/guides/UPGRADE-0.9-to-0.10.md +137 -0
  80. package/package.json +12 -10
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.10.1:** `enforcement pin`, `check --staged` and `enforcement doctor` now agree on ONE policy digest for the same repository — a repository whose `.gateforge/adapters/` and `.gateforge/waivers/` are empty but untracked (exactly what `gateforge init` leaves behind) no longer makes a freshly written pin fail `check --staged` with `ENFORCEMENT_UNTRUSTED`, and re-pinning converges instead of looping. `tests mark --test` and `tests explain --test` accept the documented `<file>#<titlePath joined by '>'` reconciliation key next to the catalog `logicalKey`, so a key copied out of a report resolves instead of being reported as absent from the catalog. The npm tarball now ships this [CHANGELOG.md](CHANGELOG.md), so the release notes are readable from the installed package.
8
+ **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
9
  **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
10
 
9
11
  **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 +32,7 @@ including tarball installs: [Quickstart](guides/QUICKSTART.md).
30
32
  - [Quickstart](guides/QUICKSTART.md)
31
33
  - [Test environment](guides/TEST-ENVIRONMENT.md)
32
34
  - [Upgrade from 0.8 to 0.9](guides/UPGRADE-0.8-to-0.9.md)
35
+ - [Upgrade from 0.9 to 0.10](guides/UPGRADE-0.9-to-0.10.md)
33
36
  - [Upgrade from 0.7 to 0.8](guides/UPGRADE-0.7-to-0.8.md)
34
37
  - [Upgrade from 0.6 to 0.7](guides/UPGRADE-0.6-to-0.7.md)
35
38
  - [Runners other than Playwright](guides/RUNNER-NEUTRAL-EVIDENCE.md)
@@ -1,10 +1,11 @@
1
1
  import type { GateforgeConfig } from '@gate-forge/core';
2
- /** Repo-relative owner declaration path. */
3
- export declare const CACHE_EXCLUSIONS_PATH = ".gateforge/cache-exclusions.yml";
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 optional owner-declared Python bytecode files.
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: malformed declarations, unsafe paths, or unreadable files.
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
- * Validates an init request and returns canonical, sorted file paths.
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[]: validated, sorted paths.
31
+ * string[]: sorted exact cache paths, or an empty list when absent.
30
32
  *
31
33
  * Throws:
32
- * UsageError: an invalid path, configured input, or unsafe filesystem entry.
34
+ * UsageError: an unreadable, malformed or unsafe declaration.
33
35
  */
34
- export declare function validateRequestedCacheFiles(cwd: string, files: readonly string[], config: GateforgeConfig): string[];
36
+ export declare function readLegacyCacheExclusions(cwd: string, config: GateforgeConfig): string[];
35
37
  /**
36
- * Writes the owner declaration in a stable format.
38
+ * Validates an init request and returns canonical, sorted file paths.
37
39
  *
38
40
  * Args:
39
- * files: validated cache paths.
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: YAML declaration text.
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 renderCacheExclusions(files: readonly string[]): string;
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":"AAQA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIxD,4CAA4C;AAC5C,eAAO,MAAM,qBAAqB,oCAAoC,CAAC;AAEvE,wEAAwE;AACxE,eAAO,MAAM,0BAA0B,QAEyB,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,EAAE,CAgClF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,MAAM,EAAE,eAAe,GACtB,MAAM,EAAE,CAEV;AAuHD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAItE"}
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"}
@@ -1,20 +1,23 @@
1
1
  /**
2
2
  * Owner-declared Python bytecode files that may leave evidence identity.
3
- * The declaration is trusted only when the matching trusted-policy digest
4
- * is provisioned outside the candidate repository.
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
- /** Repo-relative owner declaration path. */
12
- export const CACHE_EXCLUSIONS_PATH = '.gateforge/cache-exclusions.yml';
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 optional owner-declared Python bytecode files.
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: malformed declarations, unsafe paths, or unreadable files.
30
+ * UsageError: a pre-0.10 declaration file, or any refusal below.
28
31
  */
29
32
  export function loadCacheExclusions(cwd, config) {
30
- const absolute = join(cwd, ...CACHE_EXCLUSIONS_PATH.split('/'));
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, CACHE_EXCLUSIONS_PATH, true, false);
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 ${CACHE_EXCLUSIONS_PATH}: ${error.message}`);
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(`${CACHE_EXCLUSIONS_PATH} must be a regular file, not a symlink or directory`);
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(`${CACHE_EXCLUSIONS_PATH} is not valid YAML: ${error.message}`);
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
- Object.keys(document).some((key) => key !== 'schemaVersion' && key !== 'files') ||
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 files = document.files;
58
- if (files.some((file) => typeof file !== 'string')) {
59
- throw new UsageError(`${CACHE_EXCLUSIONS_PATH} files must contain exact repo-relative Python bytecode paths`);
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 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,QAAQ,IAAI,gBAAgB,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;YACnD,MAAM,IAAI,UAAU,CAAC,8BAA8B,IAAI,yBAAyB,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;AAyBlC,4DAA4D;AAC5D,eAAO,MAAM,KAAK,k8KA6DyD,CAAC;AAE5E;;;;;;;;;GASG;AACH,wBAAsB,IAAI,CACxB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,GAAE,EAAgB,GACnB,OAAO,CAAC,MAAM,CAAC,CAoEjB"}
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","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,E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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,CAwkCrF"}
@@ -129,7 +129,7 @@ async function adapterAdvisories(cwd, pipeline, verdicts, stateDir) {
129
129
  * annotations are compared with generated sidecar entries but are not direct
130
130
  * check bindings; raw `claims.json` is never a declaration source.
131
131
  */
132
- import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync } from 'node:fs';
132
+ import { cpSync, existsSync, lstatSync, readFileSync } from 'node:fs';
133
133
  import { spawnSync } from 'node:child_process';
134
134
  import { createHash } from 'node:crypto';
135
135
  import { join } from 'node:path';
@@ -149,7 +149,7 @@ import { responseFieldAdvisories } from '../response-field-guidance.js';
149
149
  import { unmatchedRouteBannerLines } from '../unmatched-routes.js';
150
150
  import { annotationMapSyncAdvisories, findRunnerConfigPath, loadOptionalTestMap, mappedCoverageFrom, mappingBlocking, nativeInventoryBlocking, resolveRepositoryMappings, TEST_MAP_RELATIVE } from '../mapping.js';
151
151
  import { collectInputFiles, computeInputSnapshot, diffInputFiles, SnapshotUnavailableError, UnsupportedSnapshotError, } from '../input-snapshot.js';
152
- import { runPipeline, resolveRepoPath, sourcesByResourceId } from '../pipeline.js';
152
+ import { runPipeline, sourcesByResourceId } from '../pipeline.js';
153
153
  import { digestPytestInputs, interpreterIdentity, pytestCacheKey, readPytestCache, resolveCacheControl, writePytestCache, } from '../run-cache.js';
154
154
  import { RuntimeBlockError, loadRuntimeConfigAt, prepareRuntime } from '../runtime.js';
155
155
  import { digestRuntimeReuseMounts } from '../runtime-reuse.js';
@@ -157,7 +157,7 @@ import { authenticatedChangedInputs, loadReceiptFor, receiptGateBlocking, scoped
157
157
  import { resealChainBlocking, retainedCarriedEvidence } from '../reseal-chain.js';
158
158
  import { changeBaseTextReader, mergeRequestScopePreflight, resolveProvider, textReaderAtRevision } from '../providers.js';
159
159
  import { computeEvaluationScope, detectStagedWorkingTreeMismatches, } from '../scope.js';
160
- import { assertRuntimeReuseOwnerApproval, freezeCommitCandidate, freezeStagedCandidate, materializeStagedCandidate, recheckStagedCandidate, releaseStagedCandidate, StagedCandidateBlockError, } from '../staged-candidate.js';
160
+ import { assertRuntimeReuseOwnerApproval, freezeCommitCandidate, freezeStagedCandidate, materializeStagedCandidate, mirrorEmptyConfigDirs, recheckStagedCandidate, releaseStagedCandidate, StagedCandidateBlockError, } from '../staged-candidate.js';
161
161
  import { httpRoutesView, readCandidateTreeEntries, readStateDocument, resolveStateDir } from '../state.js';
162
162
  import { engineGeneratedStateFileFilter } from '../state-artifacts.js';
163
163
  import { assertReceiptApprovedPolicy, evaluateApprovedPolicy, resolveApprovedPolicyDigest, } from '../trusted-policy.js';
@@ -548,20 +548,20 @@ async function stagedCheckCommand(io, options) {
548
548
  // Empty directories are invisible to Git trees — checkout-index cannot
549
549
  // create them — yet the input snapshot distinguishes an EMPTY optional
550
550
  // config directory (adapters/waivers) from a MISSING one through
551
- // explicit absence markers. Mirror the user repo's directory presence
552
- // so a receipt sealed in the worktree verifies against the candidate
553
- // checkout of the SAME bytes (the bytes themselves stay exactly the
554
- // staged tree; only the marker-relevant empty dirs are mirrored).
551
+ // explicit absence markers, and so does the trusted-policy digest entry
552
+ // list. `mirrorEmptyConfigDirs` is the ONE implementation of that
553
+ // mirroring, shared with every other surface that digests or snapshots
554
+ // the staged checkout (`enforcement pin`, doctor, the pre-commit gate),
555
+ // so all of them compute the same digest for the same bytes. The bytes
556
+ // stay exactly the staged tree; only the marker-relevant empty dirs are
557
+ // mirrored, and only for a STAGED index (a candidate commit tree is
558
+ // gated on its own contents, never on the worktree around it).
555
559
  const checkoutConfig = loadConfigAt(checkoutDir);
556
560
  const docsExclusions = loadDocsExclusions(checkoutDir, checkoutConfig);
557
561
  const cacheExclusions = loadCacheExclusions(checkoutDir, checkoutConfig);
558
- for (const dir of [checkoutConfig.adapters, checkoutConfig.waivers]) {
559
- const userDir = resolveRepoPath(io.cwd, dir);
560
- const checkoutPath = resolveRepoPath(checkoutDir, dir);
561
- if (options.candidateCommitSha === undefined && existsSync(userDir) && !existsSync(checkoutPath)) {
562
- mkdirSync(checkoutPath, { recursive: true });
563
- }
564
- }
562
+ mirrorEmptyConfigDirs(io.cwd, checkoutDir, checkoutConfig, {
563
+ fromStagedIndex: options.candidateCommitSha === undefined,
564
+ });
565
565
  // The candidate's own staged-runtime document prepares ITS checkout
566
566
  // (dependency reuse + tracked preparation command) — discovery reads
567
567
  // installed tooling from the candidate, never the worktree. The