@gate-forge/cli 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +2 -0
  3. package/dist/commands/adopt.d.ts +1 -1
  4. package/dist/commands/adopt.d.ts.map +1 -1
  5. package/dist/commands/adopt.js +5 -2
  6. package/dist/commands/adopt.js.map +1 -1
  7. package/dist/commands/check.d.ts.map +1 -1
  8. package/dist/commands/check.js +95 -23
  9. package/dist/commands/check.js.map +1 -1
  10. package/dist/commands/classify.d.ts.map +1 -1
  11. package/dist/commands/classify.js +24 -11
  12. package/dist/commands/classify.js.map +1 -1
  13. package/dist/commands/init.d.ts +14 -14
  14. package/dist/commands/init.d.ts.map +1 -1
  15. package/dist/commands/init.js +120 -80
  16. package/dist/commands/init.js.map +1 -1
  17. package/dist/commands/migrate-moved-documents.d.ts +44 -0
  18. package/dist/commands/migrate-moved-documents.d.ts.map +1 -0
  19. package/dist/commands/migrate-moved-documents.js +333 -0
  20. package/dist/commands/migrate-moved-documents.js.map +1 -0
  21. package/dist/commands/migrate.d.ts.map +1 -1
  22. package/dist/commands/migrate.js +98 -75
  23. package/dist/commands/migrate.js.map +1 -1
  24. package/dist/commands/next.d.ts.map +1 -1
  25. package/dist/commands/next.js +50 -17
  26. package/dist/commands/next.js.map +1 -1
  27. package/dist/docs-exclusions.js +1 -2
  28. package/dist/docs-exclusions.js.map +1 -1
  29. package/dist/endpoint-compiler.d.ts +82 -9
  30. package/dist/endpoint-compiler.d.ts.map +1 -1
  31. package/dist/endpoint-compiler.js +86 -41
  32. package/dist/endpoint-compiler.js.map +1 -1
  33. package/dist/endpoint-config.d.ts +32 -13
  34. package/dist/endpoint-config.d.ts.map +1 -1
  35. package/dist/endpoint-config.js +37 -27
  36. package/dist/endpoint-config.js.map +1 -1
  37. package/dist/execution.d.ts.map +1 -1
  38. package/dist/execution.js +6 -8
  39. package/dist/execution.js.map +1 -1
  40. package/dist/gateforge-owned.d.ts.map +1 -1
  41. package/dist/gateforge-owned.js +2 -6
  42. package/dist/gateforge-owned.js.map +1 -1
  43. package/dist/index.d.ts +2 -1
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +2 -1
  46. package/dist/index.js.map +1 -1
  47. package/dist/input-snapshot.d.ts +0 -2
  48. package/dist/input-snapshot.d.ts.map +1 -1
  49. package/dist/input-snapshot.js +9 -6
  50. package/dist/input-snapshot.js.map +1 -1
  51. package/dist/moved-owner-documents.d.ts +51 -0
  52. package/dist/moved-owner-documents.d.ts.map +1 -0
  53. package/dist/moved-owner-documents.js +92 -0
  54. package/dist/moved-owner-documents.js.map +1 -0
  55. package/dist/owner-answers.d.ts +31 -0
  56. package/dist/owner-answers.d.ts.map +1 -0
  57. package/dist/owner-answers.js +56 -0
  58. package/dist/owner-answers.js.map +1 -0
  59. package/dist/pipeline.d.ts +0 -2
  60. package/dist/pipeline.d.ts.map +1 -1
  61. package/dist/pipeline.js +34 -41
  62. package/dist/pipeline.js.map +1 -1
  63. package/dist/planes-inference.d.ts +3 -2
  64. package/dist/planes-inference.d.ts.map +1 -1
  65. package/dist/planes-inference.js +3 -2
  66. package/dist/planes-inference.js.map +1 -1
  67. package/dist/plugins.d.ts +25 -3
  68. package/dist/plugins.d.ts.map +1 -1
  69. package/dist/plugins.js +23 -7
  70. package/dist/plugins.js.map +1 -1
  71. package/dist/route-plane-proposals.d.ts +6 -3
  72. package/dist/route-plane-proposals.d.ts.map +1 -1
  73. package/dist/route-plane-proposals.js +26 -7
  74. package/dist/route-plane-proposals.js.map +1 -1
  75. package/dist/run-cache.d.ts +8 -2
  76. package/dist/run-cache.d.ts.map +1 -1
  77. package/dist/run-cache.js +9 -3
  78. package/dist/run-cache.js.map +1 -1
  79. package/dist/scope.d.ts.map +1 -1
  80. package/dist/scope.js +1 -3
  81. package/dist/scope.js.map +1 -1
  82. package/dist/yaml-section.d.ts +49 -0
  83. package/dist/yaml-section.d.ts.map +1 -0
  84. package/dist/yaml-section.js +443 -0
  85. package/dist/yaml-section.js.map +1 -0
  86. package/dist/yaml.d.ts +10 -0
  87. package/dist/yaml.d.ts.map +1 -0
  88. package/dist/yaml.js +35 -0
  89. package/dist/yaml.js.map +1 -0
  90. package/guides/CONNECT-YOUR-PROJECT.md +1 -1
  91. package/guides/QUICKSTART.md +13 -8
  92. package/guides/REFERENCE.md +140 -24
  93. package/package.json +10 -10
@@ -24,8 +24,8 @@ first commands; the guides cover the walks:
24
24
  - [Configuration](#configuration)
25
25
  - [Classification policy (`.gateforge/classification-policy.yml`)](#classification-policy-gateforgeclassification-policyyml)
26
26
  - [Plugin invocation](#plugin-invocation)
27
- - [Endpoint plane rules (`.gateforge/planes.json`)](#endpoint-plane-rules-gateforgeplanesjson)
28
- - [Endpoint capability rules (`.gateforge/endpoints.json`)](#endpoint-capability-rules-gateforgeendpointsjson)
27
+ - [Endpoint plane rules (the `planes:` section)](#endpoint-plane-rules-the-planes-section)
28
+ - [Endpoint capability rules (the `endpoints:` section)](#endpoint-capability-rules-the-endpoints-section)
29
29
  - [Proposing planes at init (`gateforge init --planes`)](#proposing-planes-at-init-gateforge-init---planes)
30
30
  - [test-gates protocol (G6 surface)](#test-gates-protocol-g6-surface)
31
31
  - [Limitations](#limitations)
@@ -50,7 +50,7 @@ first commands; the guides cover the walks:
50
50
 
51
51
  | `gateforge next [--changed] [--json]` | Print the ONE blocking next action (`next`/`cause`/`why`/`do`; `--json` adds `remainingBlocking` and route-specific `guidance` when relevant). For an endpoint with no plane, ask which boundary owns its data and show the owner-reviewed choices; internality remains owner-only. Navigation, not the gate: never requires an E2E receipt. Exit 0 clean, 1 next action, 2 config/usage. | 0/1/2 |
52
52
  | `gateforge discover [--json]` | Run every configured detector over the expanded `project.paths` and dump the resource graph (default: human listing; `--json`: GF-canonical JSON). | 0 |
53
- | `gateforge classify [--json] [--write-snapshot <path>]` | Recompute effective classifications from detector signals and print decisions, traces, and typed blocks. `classify plane` previews or explicitly appends an owner-reviewed endpoint plane rule to the existing `.gateforge/planes.json`; snapshots are derived review artifacts and never pipeline input. | 0/1/2 |
53
+ | `gateforge classify [--json] [--write-snapshot <path>]` | Recompute effective classifications from detector signals and print decisions, traces, and typed blocks. `classify plane` previews or explicitly appends an owner-reviewed endpoint plane rule to the existing `planes:` section of the owner-answers document; snapshots are derived review artifacts and never pipeline input. | 0/1/2 |
54
54
  | `gateforge classify delete <file\|folder\|glob> <hard\|archive> [--archive-field <key=value>]... --reason <text> [--confirm]` | Preview (default) or explicitly append one owner delete-semantics rule to `.gateforge/classification-policy.yml`: how removal manifests for every model whose source file matches the pattern. `archive` requires at least one `--archive-field` (the owner-owned archived state the run grades removal against); `hard` refuses the flag. The preview writes nothing, prints the exact diff, and quotes the policy-pin consequence; `--confirm` appends the rule at TEXT level — the key at the end of the document when absent, a new `- match:` item at the end of the block when present — so every byte the owner wrote survives (comments, key order, flow sequences), and the resulting document is validated against the pinned schema. A `deleteRules` the command cannot extend safely (flow style, or a value that is not a list of rules) is refused by name. An existing rule for the same source is reported, never shadowed. Declaring is an evidence contract, not an override: contradicting detector evidence still blocks. | 0/2 |
55
55
  | `gateforge explain <resourceId\|path> [--json]` | Show one resource's detector signals, classification rules, decision fingerprint, typed blocks, and generated obligations. A repo-relative PATH is also a target: when no resource matches it, the command prints what the file is and what governs it (Gateforge policy input, declared gate input, owner-declared documentation folder, known source of a resource, or an unclassified change) with the steps that attribute it — this is the answer an unmapped `CHANGE_UNMAPPED` file needs. An unknown target stays unknown (exit 1). | 0/1/2 |
56
56
  | `gateforge tests discover [--json] [--pytest]` | Inventory existing tests into the derived run-state catalog: static analysis reconciled with native Playwright enumeration (`--list`). Unresolved wrappers, parse errors, and inventory gaps are DATA (never an empty catalog — failed native enumeration is exit 2). `--pytest` additionally collects the configured diagnostic suites' node ids (`--collect-only`). Playwright enumeration runs ONE config (a repo-root config wins; otherwise the alphabetically first config one directory deep), and when the repo holds more than one the runner line names every config, the one used, why, and the ones NOT inventoried. `inventoryComplete=false` means a reconciliation gap (an enumerated-vs-static mismatch, an unresolved case, or a not-inventoried extra config), not a partial success. | 0/2 |
@@ -773,10 +773,45 @@ mapping or no sealed evidence; and any commit after the first one. Adoption
773
773
  mode moves WHICH obligations must be proven, never WHO may approve the
774
774
  policy.
775
775
 
776
- ### The pack configs and the generated wiring are owner-pinned
777
-
778
- `.gateforge/planes.json`, `.gateforge/endpoints.json`,
779
- `.gateforge/http-clients.json` and `.gateforge/fastapi.json` are owner-owned
776
+ ### Adopted debt after adoption
777
+
778
+ `gateforge adopt` records the debt a repository already carries, and under
779
+ `enforcement.strictE2E` a baselined obligation is still not proof: every
780
+ adopted `missing` verdict is re-graded blocking. From 0.10.3 that made the
781
+ FIRST commit after setup — the one that adds tests, the mapping sidecar and
782
+ runner configuration, with no product code at all — demand proof of every
783
+ adopted obligation, which no scoped run can produce.
784
+
785
+ `enforcement.adoptedDebt` is the owner-pinned setting that decides it:
786
+
787
+ - `lenient` (the DEFAULT; the key may be absent) — the adopted baseline keeps
788
+ its forgiveness on any change set that carries no product behaviour: every
789
+ changed file is a policy input, a gate-defining input (including the
790
+ manifest and lockfile), a catalog test file, test infrastructure, a
791
+ runtime-declared input, declared `testTooling`, or documentation, and NO
792
+ discovered resource's source is in it. Such a commit demands receipt
793
+ coverage of the obligations it NEWLY CLAIMS — the same slice an adoption
794
+ commit demands — and the adopted debt it cannot have affected stays named,
795
+ forgiven debt. Any discovered resource's source in the change set denies
796
+ the neutrality, and the debt is re-graded blocking exactly as before.
797
+ - `strict` — the 0.10.3 treatment: only an ADOPTION COMMIT (the one-shot,
798
+ computed condition above) keeps the forgiveness, so every later commit
799
+ re-grades adopted debt blocking again.
800
+
801
+ What the setting never moves: the owner pin is required in BOTH values
802
+ (`evaluateApprovedPolicy(...).status === 'enforced'`, or nothing is
803
+ forgiven), a newly claimed or newly arising obligation is still graded on
804
+ its own evidence in both values, and an owner WAIVER is never forgiveness —
805
+ strict E2E re-grades it either way. The key lives in `.gateforge.yml`, so its
806
+ bytes are inside the approved policy digest: flipping it is a policy-revision
807
+ change the owner re-approves, never something a candidate grants itself.
808
+ `gateforge init --preset strict` writes no key, so a preset install gets the
809
+ lenient default like every other configuration; declare `strict` in
810
+ `.gateforge.yml` to keep the 0.10.3 treatment.
811
+
812
+ ### The owner answers and the generated wiring are owner-pinned
813
+
814
+ The owner-answers document and `.gateforge.yml` are owner-owned
780
815
  policy inputs: they are classified as such, so they are never unmapped product
781
816
  changes and never expand the evaluation scope — but that exemption is only
782
817
  honest while your approved digest binds their bytes. Before 0.10.2 nothing
@@ -1066,6 +1101,9 @@ Enforcement-relevant sections:
1066
1101
  `strictE2E: boolean` (default `false`), and optional
1067
1102
  `receiptStage: pre-push | pre-commit | ci`. New configs choose `pre-push`;
1068
1103
  omission preserves legacy behavior.
1104
+ - `enforcement.adoptedDebt:` — `lenient | strict` (default `lenient`): how
1105
+ ADOPTED debt is treated under `strictE2E` after the adoption commit. See
1106
+ "Adopted debt after adoption" below.
1069
1107
  - `coveragePolicy:` (opt-in, fail closed) — the closed-world CRUD coverage
1070
1108
  policy: enumerated user-facing tables (validated against the run's
1071
1109
  resource inventory on EVERY run — an unknown table name is a config error,
@@ -1090,28 +1128,95 @@ Enforcement-relevant sections:
1090
1128
  changing the list moves the approved revision. See "Developer and CI
1091
1129
  tooling is owner-declared" above.
1092
1130
 
1093
- ## Classification policy (`.gateforge/classification-policy.yml`)
1131
+ ## Owner answers (`.gateforge/classification-policy.yml`)
1094
1132
 
1095
- The repository-wide deterministic classification inputs. `gateforge init`
1096
- scaffolds the file; every key is an OWNER answer, and the file
1097
- participates in the trusted-policy digest, so changing it re-approves any
1098
- approved policy pin before strict gates run.
1133
+ The repository-wide deterministic classification ANSWERS. `gateforge init`
1134
+ scaffolds the file; every key is an owner answer, and the file participates
1135
+ in the trusted-policy digest, so changing it re-approves any approved policy
1136
+ pin before strict gates run.
1099
1137
 
1100
1138
  | Key | What it decides | Shape |
1101
1139
  | --- | --- | --- |
1102
- | `scanRoots` | the files a closed-world proof must cover | repo-root-relative globs |
1103
1140
  | `trustedInternalEntryPoints` | which entry-point categories certify internality | category + patterns + detector |
1104
1141
  | `internalRules` | organization rules for internal resources | `resourceName` / `resourceKind` patterns |
1105
1142
  | `lifecycleRules` | operations that structurally do not exist, for one EXACT resource | exact `<plane>.<resource>` + `disable` |
1106
- | `deleteRules` | how removal manifests, per source glob | `match` glob + `semantics` (+ `archiveFields`) |
1143
+ | `deleteRules` | how removal manifests, per source glob (a RESOURCE's own answer) | `match` glob + `semantics` (+ `archiveFields`) |
1144
+ | `planes` | the plane of a source tree or table set (see [below](#endpoint-plane-rules-the-planes-section)) | `rules[]` of `match`/`tables` + `plane` + `reason` |
1145
+ | `endpoints` | capabilities detector facts cannot see (see [below](#endpoint-capability-rules-the-endpoints-section)) | `rules[]` of selectors + `capability` + `reason` |
1107
1146
  | `coverage` | which detector must examine which files before a proof counts | capability + detector + globs (+ `exhaustive`) |
1108
- | `declarations` | the declaration syntax detectors may emit | source strings |
1109
- | `volatileFields` | bookkeeping columns that never satisfy an update | column names |
1147
+
1148
+ Since 0.11.0 this document holds ONLY answers. The four scanner settings
1149
+ (`scanRoots`, `coverage`, `declarations`, `volatileFields`) live in
1150
+ `.gateforge.yml` under [`scan:`](#scanner-settings-gateforgeyml-scan), and
1151
+ `.gateforge/planes.json`, `endpoints.json`, `http-clients.json` and
1152
+ `fastapi.json` are sections of one of the two documents — run
1153
+ `gateforge migrate` to move them (see [Migrating to 0.11](#migrating-to-011)).
1110
1154
 
1111
1155
  Unknown keys, an unknown value, and two rules answering the same target
1112
1156
  are refused (exit 2, fail closed) — the document is an input, never a
1113
1157
  place to smuggle intent past the schema.
1114
1158
 
1159
+ ## Scanner settings (`.gateforge.yml` `scan:`)
1160
+
1161
+ The machine-wide settings that decide what a closed-world proof may claim.
1162
+ **REQUIRED**: a repository that has not answered them fails the config load
1163
+ (exit 2) instead of silently getting the weaker today's-default behaviour.
1164
+ They live in `.gateforge.yml`, so they are inside the owner-approved policy
1165
+ digest exactly like the answers they replaced — moving the bytes between
1166
+ documents never moves them out of the pin.
1167
+
1168
+ | Key | What it decides | Shape |
1169
+ | --- | --- | --- |
1170
+ | `scanRoots` | the files a closed-world proof must cover | repo-root-relative globs, non-empty |
1171
+ | `coverage` | which detector must examine which files before a proof counts | capability + detector + globs (+ `exhaustive`) |
1172
+ | `declarations` | the declaration syntax detectors may emit | detector key → source string |
1173
+ | `volatileFields` | bookkeeping columns that never satisfy an update | column names |
1174
+ | `httpClients` | HTTP client-scan settings (was `.gateforge/http-clients.json`) | `clientSymbols`, `wrapperFunctions`, `urlBuilders`, `sameOriginHosts`, `clientScanRoots`, `serverScanRoots` |
1175
+ | `fastapi` | Python import roots (was `.gateforge/fastapi.json`) | `importRoots` |
1176
+
1177
+ ## Migrating to 0.11
1178
+
1179
+ 0.11.0 folds four owner-answer FILES into the two documents above. Nothing
1180
+ reads the old files: a repository that still carries one is refused **by
1181
+ name**, with the command that moves it, because silently ignoring a file
1182
+ would silently drop the owner's declaration and quietly change what the
1183
+ engine may conclude.
1184
+
1185
+ `gateforge migrate` previews by default (prints the exact diff, writes
1186
+ nothing) and applies with `--confirm`:
1187
+
1188
+ | From | To |
1189
+ | --- | --- |
1190
+ | `.gateforge/planes.json` | `planes:` section of the answers document |
1191
+ | `.gateforge/endpoints.json` | `endpoints:` section of the answers document |
1192
+ | `.gateforge/http-clients.json` | `scan.httpClients` in `.gateforge.yml` |
1193
+ | `.gateforge/fastapi.json` | `scan.fastapi` in `.gateforge.yml` |
1194
+ | `scanRoots` / `coverage` / `declarations` / `volatileFields` at the top of the answers document | `scan:` in `.gateforge.yml` |
1195
+
1196
+ Each section is spliced in at TEXT level — every other byte of both
1197
+ documents survives, and the comment above a moved key travels with it. Every
1198
+ old value is validated by the reader that will read it after the move BEFORE
1199
+ anything is written, so a migration can never leave a repository that cannot
1200
+ load. The command is idempotent: a repository with nothing to migrate prints
1201
+ `nothing to migrate` and exits 0.
1202
+
1203
+ **Upgrading:** run `gateforge migrate --confirm`, then re-approve the
1204
+ policy digest once (`gateforge enforcement pin --pin-file <path> --confirm`).
1205
+ The digest moves exactly once, at the re-pin.
1206
+
1207
+ **Upgrading Gateforge or dependencies:** do it in that order — upgrade
1208
+ first, re-seal second, commit both together. The manifest and the lockfile
1209
+ are gate-defining inputs, so they are inside the sealed receipt's
1210
+ `inputDigest`: bumping either one (or Gateforge itself) invalidates the
1211
+ proof the last run sealed, and the commit is then refused with
1212
+ `evidence-context: … inputDigest does not match the current input
1213
+ snapshot`. That refusal is CORRECT — old evidence cannot certify changed
1214
+ configuration — so re-seal it with `gateforge test-gates --changed`
1215
+ (without `--scope changed`: a change set that holds no product source has
1216
+ no runnable slice) before committing. Committing the upgrade alone leaves a
1217
+ commit that cannot pass; committing the upgrade and its re-seal together
1218
+ leaves one that always can.
1219
+
1115
1220
  ### Owner-declared delete semantics (`deleteRules`)
1116
1221
 
1117
1222
  Delete semantics are proven, never guessed. A detector that reads the
@@ -1123,6 +1228,16 @@ can DISABLE delete for one exact resource; declaring semantics is the
1123
1228
  other half of the answer, and it needs a pattern because one declaration
1124
1229
  usually covers a whole model tree.
1125
1230
 
1231
+ `deleteRules` are the answer for a RESOURCE — their `match` names that
1232
+ resource's source file, so one declaration answers every DELETE route
1233
+ linked to it. They are not the answer for a DELETE ROUTE THAT LINKS NO
1234
+ RESOURCE (a link-row teardown, a draft discard, a cache purge): there is
1235
+ no resource to match a glob against. Declare those in the
1236
+ [`endpoints:` section](#endpoint-capability-rules-the-endpoints-section)
1237
+ as `crud-archive` / `crud-delete`, which needs no model. A DELETE with
1238
+ neither stays `ENDPOINT_SEMANTICS_UNRESOLVED` — a word like `archive` in
1239
+ a handler name is not evidence about a model that is not there.
1240
+
1126
1241
  ```yaml
1127
1242
  deleteRules:
1128
1243
  - match: 'backend/models/session/**'
@@ -1136,7 +1251,7 @@ deleteRules:
1136
1251
  ```
1137
1252
 
1138
1253
  - `match` is a repo-root-relative glob over the SOURCE FILE of the
1139
- resources it declares for — the same glob engine `.gateforge/planes.json`
1254
+ resources it declares for — the same glob engine the `planes:` section
1140
1255
  uses. It must stay inside the repository.
1141
1256
  - `semantics` is `hard` or `archive`. `archive` REQUIRES non-empty
1142
1257
  `archiveFields`: the owner-owned archived state (e.g.
@@ -1196,7 +1311,7 @@ inputs even when Git ignores them, so an edit to an ignored file still
1196
1311
  invalidates old evidence — the digest is a deliberate superset of the
1197
1312
  scan, never a subset.
1198
1313
 
1199
- ## Endpoint plane rules (`.gateforge/planes.json`)
1314
+ ## Endpoint plane rules (the `planes:` section)
1200
1315
 
1201
1316
  The same declarative plane document the packs apply to business tables
1202
1317
  also carries endpoint-plane evidence. It is consumed by the endpoint
@@ -1235,7 +1350,7 @@ contributions and CONTRADICTS the config plane, the compiler emits both
1235
1350
  assertions so the classifier blocks with `PLANE_CONTRADICTION`; when they
1236
1351
  agree, one plane remains and the endpoint resolves.
1237
1352
 
1238
- Absence of `.gateforge/planes.json` is normal and byte-identical to not
1353
+ Absence of the `planes:` section is normal and byte-identical to not
1239
1354
  having this channel; a malformed document (bad JSON, unknown keys, a rule
1240
1355
  without `plane`/`reason`, an absolute or `..`-escaping `match`) fails the
1241
1356
  run closed at startup (exit 2).
@@ -1262,8 +1377,9 @@ gateforge classify plane 'backend/api/v1/*_admin.py' master \
1262
1377
  ```
1263
1378
 
1264
1379
  The default is a dry run: it prints the exact config diff and does not write.
1265
- Add `--confirm` to append the rule to an **existing**
1266
- `.gateforge/planes.json`. The command never creates another trust file,
1380
+ Add `--confirm` to append the rule to the **existing** `planes:`
1381
+ section of the owner-answers document. The command never creates that
1382
+ section,
1267
1383
  replaces a rule, or writes an internality declaration; a source outside the
1268
1384
  repository (absolute, drive-qualified, backslashed, or `..`-escaping) is
1269
1385
  refused, and a new rule that would overlap an existing one with a different
@@ -1277,7 +1393,7 @@ The alternative in `next` is owner-only: use the existing
1277
1393
  the route is genuinely internal. Internal rules still require the existing
1278
1394
  internality certificate; they are not overrides.
1279
1395
 
1280
- ## Endpoint capability rules (`.gateforge/endpoints.json`)
1396
+ ## Endpoint capability rules (the `endpoints:` section)
1281
1397
 
1282
1398
  Capability derivation uses detector FACTS only (method, canonical path,
1283
1399
  handler simple name, schema symbols, resource linkage). A handler whose
@@ -1358,7 +1474,7 @@ allowed values. Answer it by replacing the two marked fields and writing
1358
1474
  the file (append the rule to `rules` when the file already exists), then
1359
1475
  prove it applied with the printed `gateforge explain <endpoint-id>` — its
1360
1476
  `capabilities:` line names the capability and its trace says
1361
- `endpoints.json`.
1477
+ `endpoints:`.
1362
1478
 
1363
1479
  The shortest useful file — one exact endpoint, no glob at all — is:
1364
1480
 
@@ -1420,7 +1536,7 @@ and takes `--unmatched-routes block|warn`.
1420
1536
  ## Proposing planes at init (`gateforge init --planes`)
1421
1537
 
1422
1538
  `gateforge init --planes` runs discovery over the repo's own include and
1423
- exclude configuration and PROPOSES `.gateforge/planes.json` from the
1539
+ exclude configuration and PROPOSES a `planes:` section from the
1424
1540
  directories the discovered tables live in: one non-overlapping `match`
1425
1541
  glob per model tree, `master` for trees whose path names a control-plane
1426
1542
  segment (`admin`, `master`, `control`, `root`, `operator`), `tenant`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gate-forge/cli",
3
- "version": "0.10.3",
3
+ "version": "0.11.0",
4
4
  "gateforgeCompatibility": {
5
5
  "supervisedFixtureProtocol": "gateforge.supervised-playwright.v1"
6
6
  },
@@ -33,15 +33,15 @@
33
33
  "test": "vitest run"
34
34
  },
35
35
  "dependencies": {
36
- "@gate-forge/core": "^0.10.3",
37
- "@gate-forge/http-contract": "^0.10.3",
38
- "@gate-forge/pack-fastapi": "^0.10.3",
39
- "@gate-forge/pack-alembic": "^0.10.3",
40
- "@gate-forge/pack-http": "^0.10.3",
41
- "@gate-forge/pack-playwright": "^0.10.3",
42
- "@gate-forge/pack-sqlalchemy": "^0.10.3",
43
- "@gate-forge/pack-task": "^0.10.3",
44
- "@gate-forge/plugin-protocol": "^0.10.3",
36
+ "@gate-forge/core": "^0.11.0",
37
+ "@gate-forge/http-contract": "^0.11.0",
38
+ "@gate-forge/pack-fastapi": "^0.11.0",
39
+ "@gate-forge/pack-alembic": "^0.11.0",
40
+ "@gate-forge/pack-http": "^0.11.0",
41
+ "@gate-forge/pack-playwright": "^0.11.0",
42
+ "@gate-forge/pack-sqlalchemy": "^0.11.0",
43
+ "@gate-forge/pack-task": "^0.11.0",
44
+ "@gate-forge/plugin-protocol": "^0.11.0",
45
45
  "picomatch": "^4.0.7",
46
46
  "yaml": "^2.8.1"
47
47
  },