@gate-forge/cli 0.11.1 → 0.13.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 (86) hide show
  1. package/CHANGELOG.md +198 -0
  2. package/README.md +10 -1
  3. package/dist/adopted-baseline.d.ts.map +1 -1
  4. package/dist/adopted-baseline.js +13 -0
  5. package/dist/adopted-baseline.js.map +1 -1
  6. package/dist/args.d.ts.map +1 -1
  7. package/dist/args.js +1 -0
  8. package/dist/args.js.map +1 -1
  9. package/dist/business-rules.d.ts +223 -0
  10. package/dist/business-rules.d.ts.map +1 -0
  11. package/dist/business-rules.js +383 -0
  12. package/dist/business-rules.js.map +1 -0
  13. package/dist/cli.d.ts +1 -1
  14. package/dist/cli.d.ts.map +1 -1
  15. package/dist/cli.js +5 -2
  16. package/dist/cli.js.map +1 -1
  17. package/dist/commands/adopt.d.ts +5 -3
  18. package/dist/commands/adopt.d.ts.map +1 -1
  19. package/dist/commands/adopt.js +338 -5
  20. package/dist/commands/adopt.js.map +1 -1
  21. package/dist/commands/baseline.d.ts.map +1 -1
  22. package/dist/commands/baseline.js +60 -24
  23. package/dist/commands/baseline.js.map +1 -1
  24. package/dist/commands/check.d.ts.map +1 -1
  25. package/dist/commands/check.js +96 -18
  26. package/dist/commands/check.js.map +1 -1
  27. package/dist/commands/enforcement.d.ts.map +1 -1
  28. package/dist/commands/enforcement.js +5 -11
  29. package/dist/commands/enforcement.js.map +1 -1
  30. package/dist/commands/explain.d.ts.map +1 -1
  31. package/dist/commands/explain.js +67 -2
  32. package/dist/commands/explain.js.map +1 -1
  33. package/dist/commands/init.d.ts +3 -1
  34. package/dist/commands/init.d.ts.map +1 -1
  35. package/dist/commands/init.js +96 -4
  36. package/dist/commands/init.js.map +1 -1
  37. package/dist/commands/next.d.ts.map +1 -1
  38. package/dist/commands/next.js +96 -5
  39. package/dist/commands/next.js.map +1 -1
  40. package/dist/commands/pre-commit.d.ts.map +1 -1
  41. package/dist/commands/pre-commit.js +5 -8
  42. package/dist/commands/pre-commit.js.map +1 -1
  43. package/dist/commands/test-gates.d.ts.map +1 -1
  44. package/dist/commands/test-gates.js +245 -12
  45. package/dist/commands/test-gates.js.map +1 -1
  46. package/dist/commands/tests.d.ts +1 -1
  47. package/dist/commands/tests.d.ts.map +1 -1
  48. package/dist/commands/tests.js +101 -11
  49. package/dist/commands/tests.js.map +1 -1
  50. package/dist/detector-trust.d.ts.map +1 -1
  51. package/dist/detector-trust.js +2 -0
  52. package/dist/detector-trust.js.map +1 -1
  53. package/dist/evaluate.d.ts +16 -0
  54. package/dist/evaluate.d.ts.map +1 -1
  55. package/dist/evaluate.js +26 -2
  56. package/dist/evaluate.js.map +1 -1
  57. package/dist/execution.d.ts +6 -5
  58. package/dist/execution.d.ts.map +1 -1
  59. package/dist/execution.js +26 -2
  60. package/dist/execution.js.map +1 -1
  61. package/dist/input-snapshot.d.ts.map +1 -1
  62. package/dist/input-snapshot.js +17 -7
  63. package/dist/input-snapshot.js.map +1 -1
  64. package/dist/mapping.d.ts +10 -1
  65. package/dist/mapping.d.ts.map +1 -1
  66. package/dist/mapping.js +5 -0
  67. package/dist/mapping.js.map +1 -1
  68. package/dist/page-obligations.d.ts +21 -0
  69. package/dist/page-obligations.d.ts.map +1 -0
  70. package/dist/page-obligations.js +123 -0
  71. package/dist/page-obligations.js.map +1 -0
  72. package/dist/pipeline.d.ts +9 -1
  73. package/dist/pipeline.d.ts.map +1 -1
  74. package/dist/pipeline.js +10 -0
  75. package/dist/pipeline.js.map +1 -1
  76. package/dist/route-plane-proposals.d.ts.map +1 -1
  77. package/dist/route-plane-proposals.js +1 -0
  78. package/dist/route-plane-proposals.js.map +1 -1
  79. package/dist/staged-candidate.d.ts +1 -36
  80. package/dist/staged-candidate.d.ts.map +1 -1
  81. package/dist/staged-candidate.js +0 -47
  82. package/dist/staged-candidate.js.map +1 -1
  83. package/guides/CONNECT-YOUR-PROJECT.md +38 -0
  84. package/guides/QUICKSTART.md +46 -7
  85. package/guides/REFERENCE.md +244 -3
  86. package/package.json +11 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,203 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0
4
+
5
+ - **Pages-family adoption for already-adopted repositories (0.13.0).**
6
+ `gateforge adopt --family pages` revises an ALREADY-adopted repository —
7
+ the one owner-approved exception to the one-bulk-add invariant, scoped to
8
+ a named family. Preview by default (nothing written); `--confirm` performs
9
+ ONE atomic write to the existing `.gateforge/baselines/adoption.json`: a
10
+ dated, commit-referenced `families.pages` marker recording EVERY page
11
+ obligation discovered at that moment (proven pages included), with only
12
+ the then-missing/unproven page fingerprints marked `forgiven`. Receipt
13
+ writes are validated and then atomic (same-directory temporary file +
14
+ rename): a failed or interrupted write leaves the previous receipt
15
+ intact, never a truncated one. The
16
+ baseline document is never touched — the evaluator forgives the family's
17
+ `forgiven` set from the receipt alone, so no crash window can expose
18
+ unrecorded forgiveness (a union baseline would have been forgiven by the
19
+ OLD receipt before the new record existed). The marker is permanent: a
20
+ repeat records nothing, a page route discovered after the migration is
21
+ new work to prove, and an already-proven page that breaks later blocks.
22
+ The same guard reads the existing receipt backwards: page obligation ids
23
+ the ORIGINAL adoption already indexed (an earlier snapshot's plain
24
+ `adopt` that already knew pages) are recorded in the marker but never
25
+ re-adopted — proven stays proven, resolved stays resolved — while a
26
+ receipt that predates page indexing keeps the genuine first rollout
27
+ valid.
28
+ Family debt shrinks via `gateforge baseline update --family-pages
29
+ <fingerprint>...` (`--family-pages=` keeps none) while the marker is
30
+ retained. Only the `ui.page` contracts `page:loads`/`page:data-ok` can
31
+ enter the family; the migration refuses (exit 2, nothing written) on an
32
+ unadopted repository, with no page routes, or while any page's audience
33
+ or data plane is unresolved — declare each audience in `pages.audiences`
34
+ with an explicit `plane:` (`employee`→`tenant`, `admin`→`master`,
35
+ `public`→`global`; an audience name is a role, not a plane), which
36
+ `gateforge init` now asks for. The adoption receipt is now part of the
37
+ trusted-policy digest (present-only): a confirmed migration changes the
38
+ digest, and strict gates stay untrusted until the owner repins outside
39
+ the candidate. A plain `adopt` on a repo with `pages:` configured records
40
+ the family marker in the receipt it already writes with an EMPTY
41
+ `forgiven` set — the page debt itself rides the baseline bulk-add under
42
+ the ordinary shrink contract, so there is exactly one forgiveness store;
43
+ the family is then already adopted.
44
+
45
+ - **React Router page inventory and page obligations (0.13.0).** The
46
+ `@gate-forge/pack-react-router` pack reads JSX and object route trees,
47
+ resolves nested paths, reports unreadable paths, and supports an explicit
48
+ `.gateforge/pages.yml` inventory when `pages.router: manual` is selected.
49
+ `.gateforge.yml` `pages:` owner declarations bind audiences and error
50
+ markers; each plane-resolved `ui.page` contributes `page:loads` and
51
+ `page:data-ok` obligations. In witnessed Playwright runs, the fixture gives
52
+ the witness an independent Chromium debugging endpoint; the witness records
53
+ settled, route-matched visits, login bounces, uncaught errors, configured
54
+ error markers, and app-origin API statuses. Local fulfilment or an
55
+ unobserved proxy exchange refuses proof. A clean observation from a passing
56
+ test or the post-suite referee sweep satisfies the same page obligation; a
57
+ page already proved by a test is never swept. Static browser-tampering risks
58
+ are refused with source locations. `gateforge adopt` records pre-existing
59
+ page debt without blocking the adoption.
60
+
61
+ - **Post-suite page sweep and diagnostics (0.13.0).** `test-gates` asks the
62
+ witness to visit only page obligations without clean channel-B proof,
63
+ using seeded `pages.params` values or a unique matching engine-observed
64
+ create ID, with `PAGE_PARAM_UNBOUND` instead of guessing. `pages.sweep: false`
65
+ leaves gaps unproven. Page observations carry their `observed` or `swept`
66
+ channel; reports, `explain`, and `next` show page status and the cheapest
67
+ route, seed, or refusal fix.
68
+
69
+ - **Router `basename` and `pages.basePath` prefixes; unplaceable relative routes refused (0.13.0).**
70
+ The React Router reader prefixes page paths with a string-literal
71
+ `basename` read from the code — on `<BrowserRouter>`/`<HashRouter>`/`<MemoryRouter>`
72
+ or in the `createBrowserRouter`/`createHashRouter` options — so a page under
73
+ `basename="/app"` is discovered, visited, and route-matched at `/app/...`,
74
+ never at the bare route. A computed basename is never guessed: the pages
75
+ under it become `PAGE_ROUTE_UNRESOLVED` naming the `file:line`, and two
76
+ different basenames in one project raise an `AMBIGUOUS_BASENAME` finding.
77
+ A prefix that lives OUTSIDE the code (reverse proxy, sub-path host) is the
78
+ new optional `pages.basePath` key: it prefixes EVERY discovered page path
79
+ after the router `basename`, must start with `/` with no trailing slash,
80
+ and an invalid value is a config validation error naming the rule. A
81
+ relative route (`path="departments"`) with no parent route in its file and
82
+ no router root in the file is no longer silently joined onto `/departments`:
83
+ the page is not emitted and `PAGE_ROUTE_UNRESOLVED` says to make it
84
+ absolute or wrap it under its parent route.
85
+
86
+ - **Plain Playwright test compatibility.** The Playwright fixture now reuses
87
+ the runner's initialized core API if a raw test imports it while the public
88
+ CommonJS entry is still loading; raw tests keep running without requiring
89
+ Gateforge fixtures or producing page records.
90
+
91
+ - **Page promises report honest causes and honor waivers.** A missing
92
+ `page:loads`/`page:data-ok` was mislabeled `VERIFIER_UNSUPPORTED`
93
+ ("drop the pack") although the page proof channel exists; it now maps
94
+ to `EVIDENCE_NOT_COLLECTED` with the actionable fix (a witnessed page
95
+ visit through a browser test, or the engine's post-suite sweep), while
96
+ an unknown `page:*` contract stays unsupported. Page obligations also
97
+ honor owner waivers on the same lane as every other obligation — same
98
+ exact scope, expiry, and stale-owner rules (an exemption recorded by
99
+ the owner, never proof; revoke it and the page grades on its evidence
100
+ again).
101
+
102
+ - **Bound page sweep RPCs by the number of engine visits, rather than the ordinary single-call deadline.**
103
+
104
+ - **Page API data is graded only after the response body completes.** A
105
+ page's API request now counts as settled only when the response BODY
106
+ finished (Playwright `requestfinished`), not at the response headers; a
107
+ failed or unfinished body refuses both page promises with
108
+ `PAGE_API_UNSETTLED`. Both proof channels — the browser tests' observed
109
+ channel and the referee's swept channel — wait for in-flight app data
110
+ requests (fetch/XHR by resource type, plus `/api/` paths) and a quiet
111
+ window after the last activity before grading, bounded by the shared
112
+ engine budget. Before, a 500 arriving 1.2 s after the headers, or a 200
113
+ whose body died mid-flight, was graded clean. A request the app itself
114
+ cancels (`net::ERR_ABORTED`) counts as settled only when the same method
115
+ and URL completed in the same visit; any other failure, or an unretried
116
+ cancel, refuses the page. Both proof channels now read completion from
117
+ the browser's own network events, so a response body the app never reads
118
+ still counts once every declared byte (Content-Length) arrived; an
119
+ unread body without a declared length stays unsettled. The observed
120
+ channel keeps Playwright as its request ledger and adds the browser's
121
+ network events only as a completion signal, correlated per method and
122
+ URL — a request the network events did not observe is never upgraded.
123
+ A failed page-observation flush no longer fails the app's own passing
124
+ test: the fixture logs one line and moves on (page proof stays missing,
125
+ never fabricated), and the flush call's timeout now derives from the
126
+ shared engine budget instead of the ordinary 5 s call deadline.
127
+
128
+ - **The latest page observation per test decides.** Per test, only a
129
+ page's latest observation (`observationSequence`) counts: an early
130
+ clean visit cannot hide a later refusal by the same test, while another
131
+ passing test's latest clean visit still proves the page. A missing or
132
+ malformed sequence never proves, and equal-sequence contradictions fail
133
+ closed with `PAGE_OBSERVATION_CONFLICT`. The post-suite sweep chooses
134
+ its gap visits with the same rule.
135
+
136
+ - **Page observation metadata is controller-held.** The route table,
137
+ login routes, error markers, trusted app origins, and static tamper
138
+ risks are registered by the CLI with the witness on the
139
+ verifier-authenticated expected-set registration;
140
+ `/sessions/page-observer` carries only the session credentials and the
141
+ debugging port, and a run without registered context issues no page
142
+ proof. A matched page whose final URL origin is not a trusted app
143
+ origin is refused with `PAGE_APP_ORIGIN_MISMATCH`. The suite receives
144
+ only an enablement flag (`GATEFORGE_PAGE_OBSERVATION_ENABLED`): it can
145
+ disable observation, never enable false proof. Before, a test could
146
+ hand the witness its own route table or point it at another server and
147
+ get witnessed proof.
148
+
149
+ - **A 401 on pages of an audience without a login counts as the expected
150
+ not-logged-in answer.** On a page whose `pages.audiences` declaration has
151
+ no `session:` (no login configured — e.g. a public `global` audience),
152
+ an app data call answering exactly 401 no longer refuses `page:data-ok`;
153
+ 403 and every other error status still refuse there, and on audiences
154
+ WITH a login a 401 still refuses. The anonymity bit is controller-held —
155
+ derived from the audience declaration and registered with the witness on
156
+ the same verifier-authenticated path as the route table, never supplied
157
+ by the suite — so the observed and swept channels (and core grading,
158
+ which trusts the witness verdict) apply the same rule.
159
+
160
+ - **`gateforge next` resolves the witness verifier key ring like `check`.**
161
+ The key file and keyring locations now feed `next`'s durable-attestation
162
+ verification, not only the `GATEFORGE_WITNESS_VERIFIER_KEY` variable.
163
+ Before, with a verifier key file configured, `next` reported that
164
+ durable attestation cannot verify without a witness verifier key while
165
+ `check` passed.
166
+
167
+ ## 0.12.0
168
+
169
+ ### Added
170
+
171
+ - **Owner-declared business rules, test-type agnostic (0.12.0).** The owner writes the
172
+ product's rules down in the `rules:` section of `.gateforge/classification-policy.yml`
173
+ (`gateforge init --rules` adds a commented example; a repository without the section is
174
+ byte-identical to a release without the feature). Each rule names the test type that must
175
+ prove it — `e2e` (default) or `pytest` — and splits into CASES (the observable
176
+ consequences; a rule without `cases:` has one implicit `default`). A case is mapped by the
177
+ claim id `business-rule:<ruleId>/<caseId>` through the ONE mapping resolver
178
+ (`tests mark --rule <ruleId>/<caseId> …`): staleness, ambiguity, quarantine and
179
+ inferred-only behave exactly as for obligations, and rule bindings never enter any
180
+ obligation set, graded obligation array or receipt coverage list. A declaration is never
181
+ proof: the case is graded by a pure evaluator over the sealed run's own facts — `e2e`
182
+ requires the mapped test to have run, passed, and carry witness evidence attributable to
183
+ its own session (engine `ui.action` anchor, or a witnessed `http.request` exchange of the
184
+ session for `observed-e2e`); `pytest` requires the witnessed suite of the sealed run. Every
185
+ mapped test of a case must deliver the proof (a green sibling never forgives a red one), a
186
+ mocked spec never proves an end-to-end rule, a test outside the run's graded slice is
187
+ reported `unproven` — never satisfied, never silently absent — and rule findings are
188
+ run-wide, never diff-scoped away. `enforcement: advisory` (requires `advisoryReason`) rides
189
+ the report's existing advisory channel every run, out of `blocking` and out of the exit
190
+ code. The gate surfaces: `check` blocks (or advises) per case; `check --require-e2e` and
191
+ `test-gates` grade from the sealed receipt's authorized records; the json report carries an
192
+ additive `businessRules` section naming every graded case with its status and proof
193
+ channel; `gateforge next` ranks the four rule causes with the coverage band and prints, per
194
+ missing case, a starter test (the type table picks the Playwright-fixture or witnessed-
195
+ pytest template) plus the exact `tests mark --rule` line. An unknown `subject` is a
196
+ configuration error (exit 2).
197
+
198
+ ### Fixed
199
+
200
+ - **A fresh adoption can push again: an empty optional config directory is digested exactly like an absent one.** `gateforge init` creates EMPTY `.gateforge/adapters/` and `.gateforge/waivers/`, and Git cannot carry an empty directory — so the committed tree has neither, while the live worktree has both. The trusted-policy digest entry list and the input snapshot each gave the two shapes DIFFERENT absence markers (`(no .mjs adapters)` vs `(missing adapters dir)`, `absent:<dir>/(empty)` vs `absent:<waiversDir>/(missing waivers dir)`), so the pin an owner minted over their adoption commit (`enforcement pin`) was a digest the pre-push/CI candidate-commit gate never computed for that very commit: every push blocked `ENFORCEMENT_UNTRUSTED`, and re-pinning could not converge. Both surfaces now emit ONE absence marker per optional directory (nested empty directories are invisible, exactly as Git sees them), which also retires the worktree-shaping of materialized candidate checkouts (`mirrorEmptyConfigDirs` is gone — the bytes of the tree under test are the whole story). A repository with a missing directory, or with tracked adapter/waiver files, keeps today's digest byte-for-byte; only a repository that pinned over empty directories re-pins once, and from then on every surface agrees.
3
201
 
4
202
 
5
203
  ## 0.11.1
package/README.md CHANGED
@@ -4,6 +4,8 @@ The gateforge command-line interface: initialize a project, discover
4
4
  resources and classification signals, inspect automatic decisions, reuse a
5
5
  repository's existing tests, evaluate obligations, run the supervised E2E
6
6
  gate, enforce the exact staged candidate, and maintain baselines.
7
+ **0.13.0:** React Router pages become first-class proof targets. `@gate-forge/pack-react-router` reads JSX and object route trees into `ui.page` resources, and each plane-resolved page carries two promises — `page:loads` and `page:data-ok` — graded from settled, route-matched witnessed visits (a page's API call counts only when its response BODY completed; a `net::ERR_ABORTED` cancel settles only when the same method and URL completed in the same visit). The engine's post-suite referee sweep visits the pages no test proved, with seeded `pages.params`; a failed page-observation flush never fails the app's own passing test. Page paths honor a code-read router `basename` plus the optional `pages.basePath`, and a relative route with no parent to place it under is refused (`PAGE_ROUTE_UNRESOLVED`) instead of silently joined. `gateforge adopt --family pages` records pre-existing page debt for already-adopted repositories (preview by default, one atomic receipt write, permanent marker, shrink via `baseline update --family-pages`); a 401 on a page whose audience has no login counts as the expected not-logged-in answer; page promises report honest causes and honor owner waivers; and `gateforge init` now asks for `pages.audiences` plane declarations.
8
+ **0.12.0:** owner-declared business rules, test-type agnostic. The owner writes the product's rules down in the `rules:` section of `.gateforge/classification-policy.yml` (`gateforge init --rules` adds a commented example; a repository without the section is byte-identical to a release without the feature). Each rule names the test type that must prove it — `e2e` (default) or `pytest` — and splits into CASES mapped by the claim id `business-rule:<ruleId>/<caseId>` through the ONE mapping resolver (`tests mark --rule <ruleId>/<caseId> …`). A declaration is never proof: the case is graded by a pure evaluator over the sealed run's own facts, every mapped test of a case must deliver the proof (a green sibling never forgives a red one), a mocked spec never proves an end-to-end rule, a test outside the run's graded slice is reported `unproven`, and rule findings are run-wide, never diff-scoped away. `enforcement: advisory` (requires `advisoryReason`) rides the report's advisory channel every run, out of `blocking` and out of the exit code. `check` blocks (or advises) per case, `check --require-e2e` and `test-gates` grade from the sealed receipt's authorized records, the json report carries an additive `businessRules` section, and `gateforge next` prints a starter test plus the exact `tests mark --rule` line per missing case. Fixed: an empty optional config directory is digested exactly like an absent one, so the pin an owner minted over their adoption commit is the digest every gate computes and a fresh adoption can push again.
7
9
  **0.11.1:** Gateforge's own `check` cache is excluded from candidate trees, so a concurrent check cannot alter a run using a non-default `test-gates --out` directory. No other ignored or run-state files are excluded.
8
10
  **0.11.0:** one owner answer per fact. The four owner-answer FILES become SECTIONS of the two documents that already exist: `.gateforge/planes.json` and `.gateforge/endpoints.json` are now the `planes:` and `endpoints:` sections of `.gateforge/classification-policy.yml`, `.gateforge/http-clients.json` and `.gateforge/fastapi.json` are `.gateforge.yml` `scan.httpClients` and `scan.fastapi`, and the four scanner settings moved out of the answers document into a REQUIRED `scan:` block. There is no dual read — a repository still carrying one of the old files is refused BY NAME, with the command that moves it and its new home. `gateforge migrate` previews by default and applies with `--confirm`, one step per moved document, splicing at TEXT level so every comment survives, and validating every old value with the reader that will read it after the move. The hard-vs-archive answer keeps BOTH channels because they answer different questions: a declared `crud-delete`/`crud-archive` in the `endpoints:` section needs no linked model at all — a DELETE route that links no resource (a link-row teardown, a draft discard) cannot be expressed in `deleteRules`, whose globs name a resource's source file — while `deleteRules` answer for every route of one resource in a single line, and a DELETE with neither stays `ENDPOINT_SEMANTICS_UNRESOLVED` rather than being resolved by a word in a handler name. A diff-scoped report's `[NEW_DEBT]` entry no longer blocks a commit while saying there is nothing to prove — with no newly-unproven obligations it now names the cause it is actually reporting (a sealed receipt whose evidence-context `inputDigest` the change invalidated, typically) and the re-seal command. Upgrading: upgrade first, re-seal, commit both together.
9
11
  **0.10.4:** `enforcement.adoptedDebt` (default `lenient`) decides how ADOPTED debt is treated under `strictE2E` after the adoption commit. With `lenient`, a change set that carries no product behaviour at all — tests, the mapping sidecar, runner configuration, no discovered resource's source — keeps the adopted baseline's forgiveness and is demanded only the coverage of the obligations it newly claims, so the first test-adding commit after `gateforge adopt` commits through the hook instead of re-grading every adopted obligation blocking. `strict` keeps the 0.10.3 behaviour exactly. Both values still require the owner pin to be enforced, still grade a newly claimed obligation on its own evidence, and still re-grade the moment a product source is in the change; the key lives in `.gateforge.yml`, so it is inside the approved policy digest.
@@ -152,7 +154,14 @@ the blocking wiring. The full adopt contract, and the baseline
152
154
  commands that shrink the recorded set: [Reference](guides/REFERENCE.md).
153
155
  Under `strictE2E`, an adopted E2E obligation still blocks
154
156
  as soon as a change touches it — adoption forgives today's
155
- debt, never new work.
157
+ debt, never new work. A repository that adopted before the 0.13
158
+ pages rollout revises its adoption with `gateforge adopt --family
159
+ pages --confirm` (preview by default): one atomic receipt write
160
+ records a permanent `pages` family marker — every page obligation
161
+ discovered, proven pages included — forgiving only the then-missing
162
+ page debt; the marker survives every shrink, repeats add nothing,
163
+ and the digest change requires the owner's external repin for
164
+ strict gates ([Reference — the pages family](guides/REFERENCE.md#the-pages-family-adopting-page-debt-into-an-already-adopted-repo)).
156
165
 
157
166
  ## Development
158
167
 
@@ -1 +1 @@
1
- {"version":3,"file":"adopted-baseline.d.ts","sourceRoot":"","sources":["../src/adopted-baseline.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,GAEnB;IACE,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzD,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;CAChE,GACD,IAAI,CA+BP"}
1
+ {"version":3,"file":"adopted-baseline.d.ts","sourceRoot":"","sources":["../src/adopted-baseline.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,GAEnB;IACE,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,0BAA0B,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzD,qBAAqB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;CAChE,GACD,IAAI,CA2CP"}
@@ -42,7 +42,20 @@ export function resolveAdoptedBaseline(cwd, baselinesPath) {
42
42
  const adoption = loadAdoptionRecord(join(dirname(baselinePath), ADOPTION_RECORD_FILENAME));
43
43
  if (adoption === null)
44
44
  return null;
45
+ // Adopted families (0.13 pages rollout): a family's `forgiven`
46
+ // fingerprints are sanctioned by the RECEIPT alone — the migration that
47
+ // records them never touches the baseline document — so they fold into
48
+ // the forgiveness set HERE, gated on the same receipt whose existence
49
+ // sanctions the document. The fold cannot widen anything: `forgiven` is
50
+ // the shrink-only subset recorded at family adoption, every entry was a
51
+ // then-current page fingerprint, and the marker is permanent (a repeat
52
+ // migration adds nothing). A receipt without the family field predates
53
+ // families and forgives nothing family-shaped (fail closed).
45
54
  const fingerprints = new Set(loadBaseline(baselinePath).fingerprints);
55
+ for (const family of Object.values(adoption.families ?? {})) {
56
+ for (const fingerprint of family.forgiven)
57
+ fingerprints.add(fingerprint);
58
+ }
46
59
  const obligationFingerprintsById = adoption.obligationFingerprintsById === undefined
47
60
  ? undefined
48
61
  : new Map(Object.entries(adoption.obligationFingerprintsById).filter(([, fingerprint]) => fingerprints.has(fingerprint)));
@@ -1 +1 @@
1
- {"version":3,"file":"adopted-baseline.js","sourceRoot":"","sources":["../src/adopted-baseline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,sBAAsB,CACpC,GAAW,EACX,aAAqB;IAUrB,MAAM,YAAY,GAAG,eAAe,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IACzD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC;IAC3F,IAAI,QAAQ,KAAK,IAAI;Q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AAM,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAC7D,0BAA0B,CAAC,GAAG,CAAC,EAAE,CAAC,CACnC,CACF,CAAC;IACR,OAAO;QACL,YAAY;QACZ,qBAAqB,EACnB,QAAQ,CAAC,qBAAqB,KAAK,SAAS;YAC1C,CAAC,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,qBAAqB,CAAC;YACzC,CAAC,CAAC,SAAS;QACf,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,0BAA0B;QAC1B,qBAAqB;KACtB,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,UAAU;IACzB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC,CAAC;IACrD,+CAA+C;IAC/C,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAqCD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CAoD7D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAS7F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,EAAE,GAAG,SAAS,CAMtB"}
1
+ {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,UAAU;IACzB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC,CAAC;IACrD,+CAA+C;IAC/C,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAsCD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CAoD7D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAS7F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,EAAE,GAAG,SAAS,CAMtB"}
package/dist/args.js CHANGED
@@ -27,6 +27,7 @@ const BOOLEAN_FLAGS = {
27
27
  'no-ci': true,
28
28
  planes: true,
29
29
  'no-planes': true,
30
+ rules: true,
30
31
  behavior: true,
31
32
  'no-behavior': true,
32
33
  'accept-recommended': true,
package/dist/args.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AASzC,iDAAiD;AACjD,MAAM,aAAa,GAAyB;IAC1C,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,wBAAwB,EAAE,IAAI;IAC9B,0BAA0B,EAAE,IAAI;IAChC,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,IAAI;IACZ,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,I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AED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,UAAU,CAAC,OAAgC,EAAE,IAAY;IACvE,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,UAAU,CAAC,WAAW,IAAI,0BAA0B,CAAC,CAAC;QAClE,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAAgC,EAChC,IAAY;IAEZ,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACnD,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAChG,OAAO,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;AAClD,CAAC"}
@@ -0,0 +1,223 @@
1
+ /**
2
+ * The CLI seam for owner-declared BUSINESS RULES
3
+ * (plan 2026-10-05 §5 D3/D4/D5, WP4).
4
+ *
5
+ * One module owns every fact a rule needs, because the three consumers
6
+ * — `check`, `next` and `tests mark`/`explain` — must never disagree
7
+ * about what a case is worth:
8
+ *
9
+ * - the OWNER rules come from the owner-answers document, which the
10
+ * pipeline already read (never a second read of the same file);
11
+ * - the CLAIM IDS come from the cases those rules declare, and are what
12
+ * the one mapping resolver validates a `business-rule:` claim against;
13
+ * - the RUN FACTS come from a SEALED execution result plus the sealed
14
+ * records and the owner's WITNESSED suite declarations. A run with no
15
+ * sealed execution result passes `null`, and `null` grades everything
16
+ * mapped as `unproven` — a declaration is never proof.
17
+ *
18
+ * Two invariants this module exists to hold:
19
+ * - **run-wide.** Rule grading reads the FULL rule list and the FULL
20
+ * rule bindings, never the changed-file selection, so a `--scope
21
+ * changed` run cannot scope a rule away. A case whose test sits
22
+ * outside that run's graded slice is reported as `unproven (outside
23
+ * this run's graded slice)` — visible, not absent, and never
24
+ * satisfied by a receipt that never covered it.
25
+ * - **advisory never hides.** `enforcement: advisory` routes a case's
26
+ * finding into the report's existing `advisories` channel; only
27
+ * `enforcement: block` findings reach `blocking` and the exit code.
28
+ * Both channels carry the same typed cause, and the channel is decided
29
+ * by the OWNER's declaration on the rule, never by a new severity.
30
+ */
31
+ import { type BlockingEntry, type BusinessRule, type BusinessRuleBinding, type BusinessRuleCaseResult, type BusinessRuleEvaluation, type BusinessRuleRunFacts, type ExecutionResult, type GateforgeConfig, type ResourceGraph, type TestCatalog } from '@gate-forge/core';
32
+ /** Every rule-case claim id this rule list declares, sorted. */
33
+ export declare function businessRuleClaimIds(rules: readonly BusinessRule[]): string[];
34
+ /** The runner each catalog row executes under, keyed by logical key. */
35
+ export declare function catalogRunnerIndex(catalog: TestCatalog): Map<string, string>;
36
+ /**
37
+ * The logical test keys whose FILE the catalog observed intercepting the
38
+ * system under test. A mocked spec can never satisfy a rule: it proves
39
+ * the mock, not the rule (plan invariant 6).
40
+ */
41
+ export declare function mockedTestKeys(catalog: TestCatalog): Set<string>;
42
+ /**
43
+ * The resolver's rule bindings projected onto the evaluator's binding
44
+ * shape. Pure; the resolver has already dropped quarantined, stale and
45
+ * wildcard-rejected declarations, and the evaluator independently
46
+ * refuses anything but `native`/`sidecar` origins.
47
+ *
48
+ * A binding whose selector bound no catalog instance contributes no
49
+ * runner, which the evaluator reads as "not an accepted kind" rather
50
+ * than guessing one: a declaration with no resolvable instance is not
51
+ * proof of anything.
52
+ */
53
+ export declare function businessRuleBindingsOf(ruleBindings: readonly {
54
+ claimId: string;
55
+ bindings: readonly ResolvedRuleBinding[];
56
+ }[], runners: ReadonlyMap<string, string>, mockedKeys: ReadonlySet<string>): Map<string, readonly BusinessRuleBinding[]>;
57
+ /** The resolver binding shape this projection reads (narrow on purpose). */
58
+ interface ResolvedRuleBinding {
59
+ logicalKey: string;
60
+ origin: 'native' | 'sidecar' | 'inferred' | 'prior-run';
61
+ declaredKind: string | null;
62
+ reason: string | null;
63
+ instances: readonly {
64
+ runner: string;
65
+ file: string;
66
+ }[];
67
+ }
68
+ /**
69
+ * Reads the OWNER's declared `witnessed` diagnostic suites as the set of
70
+ * runner names whose proof this repository can produce. A suite the
71
+ * owner did not mark witnessed contributes nothing: the pytest row of
72
+ * the type table requires one, and an unwitnessed suite is not proof
73
+ * (owner decision, 2026-10-04).
74
+ */
75
+ export declare function witnessedRunnersOf(config: GateforgeConfig): Set<string>;
76
+ /** The sealed facts one run makes available, or null when no run exists. */
77
+ export interface BusinessRuleFactsInput {
78
+ /** The sealed execution result, or null for a static `check` run. */
79
+ result: ExecutionResult | null;
80
+ /**
81
+ * The run's authorized evidence records, exactly as `evaluateRun`
82
+ * returned them (`unknown[]`: authorization is established, shape is
83
+ * not). Validated here against the record schema; a record that does
84
+ * not parse contributes no proof.
85
+ */
86
+ records: readonly unknown[];
87
+ /** Runners whose suite the owner declared witnessed. */
88
+ witnessedRunners: ReadonlySet<string>;
89
+ /** The receipt's evaluation scope. */
90
+ scope: 'full' | 'changed';
91
+ /** True for the engine-owned docs-only slice (zero records by construction). */
92
+ docsOnly: boolean;
93
+ /** The run's catalog, for the runner each key executes under. */
94
+ catalog: TestCatalog;
95
+ }
96
+ /**
97
+ * Builds the evaluator's run facts from a SEALED execution result.
98
+ *
99
+ * Args:
100
+ * input: the sealed execution result (null when none exists), the
101
+ * sealed records, the witnessed runners, the receipt's scope, and the
102
+ * run's catalog.
103
+ *
104
+ * Returns:
105
+ * BusinessRuleRunFacts | null: the facts, or null for no sealed run —
106
+ * which is what makes a static `check` grade everything mapped as
107
+ * `unproven` instead of quietly satisfied.
108
+ */
109
+ export declare function businessRuleRunFacts(input: BusinessRuleFactsInput): BusinessRuleRunFacts | null;
110
+ /** Everything one rule-grading pass needs beyond the pipeline's own output. */
111
+ export interface BusinessRuleGradingInput {
112
+ /** The owner's declared rules (empty = the feature is off). */
113
+ rules: readonly BusinessRule[];
114
+ /** The one resolver's rule bindings for this run. */
115
+ ruleBindings: readonly {
116
+ claimId: string;
117
+ bindings: readonly ResolvedRuleBinding[];
118
+ }[];
119
+ /** The run's resource inventory (validates `subject`). */
120
+ inventory: readonly string[];
121
+ /** The sealed run's facts, or null when no sealed run exists. */
122
+ runFacts: BusinessRuleRunFacts | null;
123
+ /** The run's catalog (runner identity and observed mocking). */
124
+ catalog: TestCatalog;
125
+ }
126
+ /**
127
+ * Grades every declared rule case for one run.
128
+ *
129
+ * Args:
130
+ * input: rules, rule bindings, the inventory, the sealed facts and the
131
+ * catalog.
132
+ *
133
+ * Returns:
134
+ * BusinessRuleEvaluation: config errors plus every case result, sorted
135
+ * by rule id then case id.
136
+ *
137
+ * Throws:
138
+ * UsageError: when a rule names a `subject` the inventory cannot see
139
+ * (exit 2 — a silently uncheckable name is a configuration error, the
140
+ * same posture as an unknown coverage table).
141
+ */
142
+ export declare function gradeBusinessRules(input: BusinessRuleGradingInput): BusinessRuleEvaluation;
143
+ /**
144
+ * Splits a graded evaluation into the report's TWO channels.
145
+ *
146
+ * `enforcement: advisory` is decided by the OWNER's declaration on the
147
+ * rule, not by how bad the case looks: an advisory rule's findings are
148
+ * printed and serialized every run and only stay out of `blocking` and
149
+ * the exit code (plan invariant 7). The codes are identical in both
150
+ * channels, so a reader tells an advisory finding from a blocking one by
151
+ * where it is, never by a new severity.
152
+ */
153
+ export declare function partitionBusinessRuleEntries(rules: readonly BusinessRule[], cases: readonly BusinessRuleCaseResult[]): {
154
+ blocking: BlockingEntry[];
155
+ advisories: BlockingEntry[];
156
+ };
157
+ /**
158
+ * The resource names one run's inventory offers as a rule `subject`.
159
+ * Ranking and display only — a subject is never proof, and a rule
160
+ * without one is graded regardless of this list.
161
+ */
162
+ export declare function businessRuleInventory(graph: ResourceGraph): string[];
163
+ /** One serialized rule case in a report's additive `businessRules` section. */
164
+ export interface BusinessRuleReportEntry {
165
+ /** The rule the case belongs to. */
166
+ ruleId: string;
167
+ /** The case id (unique within the rule). */
168
+ caseId: string;
169
+ /** The rule's declared proof type (`e2e`, `pytest`, ...). */
170
+ test: string;
171
+ /** The rule's enforcement (`block` | `advisory`). */
172
+ enforcement: string;
173
+ /** `unmapped` | `wrong-type` | `unproven` | `failing` | `satisfied`. */
174
+ status: string;
175
+ /** The channel that proved a satisfied case (`engine`, `observe`, `execution`), else null. */
176
+ channel: string | null;
177
+ /** The gradeable mapped tests of the case, sorted. */
178
+ mappedTests: readonly string[];
179
+ /** The typed finding, null exactly when satisfied. */
180
+ finding: {
181
+ cause: string;
182
+ detail: string;
183
+ nextAction: string;
184
+ tests: readonly string[];
185
+ } | null;
186
+ }
187
+ /**
188
+ * Serializes every graded rule case for the report's `businessRules`
189
+ * section (plan §7.5, invariant 6): a SATISFIED case must be visible
190
+ * naming the channel that proved it — "satisfied" read as "the rule
191
+ * holds" is exactly the overclaim the channel naming exists to prevent —
192
+ * and a demoted (advisory) case appears here beside its advisory-channel
193
+ * entry, so the section is the one place that lists EVERY case with its
194
+ * status. The section rides the json document only when rules are
195
+ * declared, so a repository without the feature keeps its exact report.
196
+ *
197
+ * Args:
198
+ * rules: the owner's declared rules (status and channel context).
199
+ * cases: the graded case results, sorted by rule id then case id.
200
+ *
201
+ * Returns:
202
+ * BusinessRuleReportEntry[]: the serialized cases, input order.
203
+ */
204
+ export declare function businessRuleReportEntries(rules: readonly BusinessRule[], cases: readonly BusinessRuleCaseResult[]): BusinessRuleReportEntry[];
205
+ /**
206
+ * The `next` guidance for the run's rule findings (plan D6, §7.2): one
207
+ * block per graded case that carries a finding — the rule title, the
208
+ * case describe, the declared proof type — and, for a case with NO
209
+ * mapped test, the printed starter test (the type table's `starter`
210
+ * field picks the template: a Playwright test on the Gateforge fixture
211
+ * for `e2e`, a pytest function for `pytest`) plus the exact
212
+ * `tests mark --rule` line that maps it once written. A case that IS
213
+ * mapped gets the finding statement only: its gap is proof, not a
214
+ * missing declaration, and inventing a second mark line would steer the
215
+ * owner to map a duplicate instead of running the gate.
216
+ *
217
+ * Pure text; `next` prints these lines for EVERY finding case (§7.2:
218
+ * two starter tests and two mark lines for a two-case rule), not only
219
+ * for the top-ranked candidate.
220
+ */
221
+ export declare function businessRuleGuidanceLines(rules: readonly BusinessRule[], cases: readonly BusinessRuleCaseResult[]): string[];
222
+ export {};
223
+ //# sourceMappingURL=business-rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-rules.d.ts","sourceRoot":"","sources":["../src/business-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EAML,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EAGzB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,kBAAkB,CAAC;AAG1B,gEAAgE;AAChE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,GAAG,MAAM,EAAE,CAK7E;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAE5E;AAED;;;;GAIG;AACH,w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