@gate-forge/cli 0.13.0 → 0.13.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.
@@ -429,7 +429,10 @@ onto `@gate-forge/pack-playwright/fixture` is what lets those existing
429
429
  journeys prove their page visits; keep their route assertions and test bodies.
430
430
  The test channel (`observed`) is primary. After the tests, Gateforge's own
431
431
  referee visits only page obligations without a clean test record (`swept`).
432
- Both channels use the same grader.
432
+ Both channels use the same grader. An audience with a `session:` file needs
433
+ one the suite does not consume: a rotating refresh token turns a consumed
434
+ session into `PAGE_AUDIENCE_SESSION_INVALID` sweep refusals — mint a
435
+ sweep-only session file.
433
436
 
434
437
  Declare the router, login route, audience guard, error markers and seeded
435
438
  values for dynamic paths in `.gateforge.yml`:
@@ -24,11 +24,11 @@ Example for a React frontend, FastAPI backend, and SQLAlchemy data layer:
24
24
 
25
25
  ```sh
26
26
  npm i -D \
27
- @gate-forge/cli@0.13.0 \
28
- @gate-forge/pack-playwright@0.13.0 \
29
- @gate-forge/pack-http@0.13.0 \
30
- @gate-forge/pack-fastapi@0.13.0 \
31
- @gate-forge/pack-sqlalchemy@0.13.0
27
+ @gate-forge/cli@0.13.1 \
28
+ @gate-forge/pack-playwright@0.13.1 \
29
+ @gate-forge/pack-http@0.13.1 \
30
+ @gate-forge/pack-fastapi@0.13.1 \
31
+ @gate-forge/pack-sqlalchemy@0.13.1
32
32
  ```
33
33
 
34
34
  Use the project-local `gateforge` binary from your npm script or add `node_modules/.bin` to your shell `PATH`. If the scan recommends other packs, add only the ones your code uses, at the same version. A mismatched Gateforge package contract can stop the CLI with exit code 2 and `GATEFORGE_PACKAGE_INCOMPATIBLE`.
@@ -49,7 +49,7 @@ This installs every pack of the release; the scan still recommends the ones your
49
49
 
50
50
  **You should see:** npm installs the packages without a Gateforge compatibility error.
51
51
 
52
- **If not:** align every direct `@gate-forge/*` package to `0.13.0`, then install again. Do not work around the compatibility error.
52
+ **If not:** align every direct `@gate-forge/*` package to `0.13.1`, then install again. Do not work around the compatibility error.
53
53
 
54
54
  ## 2. Pick a goal
55
55
 
@@ -484,7 +484,7 @@ the registry. To gate a release that is not on the registry yet (a local
484
484
  regenerate:
485
485
 
486
486
  ```sh
487
- GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.0.tgz \
487
+ GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.1.tgz \
488
488
  gateforge enforce --ci github
489
489
  ```
490
490
 
@@ -1218,6 +1218,30 @@ controller-held — derived from the audience declaration, registered with
1218
1218
  the witness, never supplied by the suite — so both proof channels grade it
1219
1219
  identically.
1220
1220
 
1221
+ A page may legitimately keep a connection open forever: a long poll, a
1222
+ WebSocket, or a server-sent-events stream. Declare those path prefixes
1223
+ under `pages.liveChannels` (each starting with `/`) and both channels
1224
+ treat a same-origin request under a declared prefix — plus any WebSocket
1225
+ upgrade on the app host and any `text/event-stream` response, as protocol
1226
+ facts — as a LIVE CHANNEL: it never counts as app data evidence, never
1227
+ holds the visit's settle wait, and never refuses the page by itself; the
1228
+ visit payload lists what it saw under `liveChannels` (count + paths).
1229
+ Nothing is guessed from names or traffic: an undeclared long poll is still
1230
+ an unfinished app data request and refuses the page with
1231
+ `PAGE_API_UNSETTLED` once the settle budget expires. Like the rest of the
1232
+ page configuration, the prefixes are controller-held and registered with
1233
+ the witness, so both proof channels apply the same rule.
1234
+
1235
+ A rejected audience session stops that audience's sweep. When an audience
1236
+ WITH a session lands on one of its declared login routes on the FIRST
1237
+ visited page, that page is graded as today, and every remaining page of
1238
+ the same audience is refused WITHOUT visiting, with
1239
+ `PAGE_AUDIENCE_SESSION_INVALID` — the records still issue, and the sweep
1240
+ payload says each page was not visited and why. Session-less audiences are
1241
+ unaffected. The usual cause is a rotating refresh token: the suite's run
1242
+ consumed the session a storage-state file carried, so mint a session file
1243
+ the suite does not consume.
1244
+
1221
1245
  Per test, only a page's LATEST observation (`observationSequence`) counts.
1222
1246
  An early clean visit cannot hide a later refusal by the same test, and
1223
1247
  another passing test's latest clean visit still proves the page. A missing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gate-forge/cli",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "gateforgeCompatibility": {
5
5
  "supervisedFixtureProtocol": "gateforge.supervised-playwright.v1"
6
6
  },
@@ -33,16 +33,16 @@
33
33
  "test": "vitest run"
34
34
  },
35
35
  "dependencies": {
36
- "@gate-forge/core": "^0.13.0",
37
- "@gate-forge/http-contract": "^0.13.0",
38
- "@gate-forge/pack-fastapi": "^0.13.0",
39
- "@gate-forge/pack-alembic": "^0.13.0",
40
- "@gate-forge/pack-http": "^0.13.0",
41
- "@gate-forge/pack-react-router": "^0.13.0",
42
- "@gate-forge/pack-playwright": "^0.13.0",
43
- "@gate-forge/pack-sqlalchemy": "^0.13.0",
44
- "@gate-forge/pack-task": "^0.13.0",
45
- "@gate-forge/plugin-protocol": "^0.13.0",
36
+ "@gate-forge/core": "^0.13.1",
37
+ "@gate-forge/http-contract": "^0.13.1",
38
+ "@gate-forge/pack-fastapi": "^0.13.1",
39
+ "@gate-forge/pack-alembic": "^0.13.1",
40
+ "@gate-forge/pack-http": "^0.13.1",
41
+ "@gate-forge/pack-react-router": "^0.13.1",
42
+ "@gate-forge/pack-playwright": "^0.13.1",
43
+ "@gate-forge/pack-sqlalchemy": "^0.13.1",
44
+ "@gate-forge/pack-task": "^0.13.1",
45
+ "@gate-forge/plugin-protocol": "^0.13.1",
46
46
  "picomatch": "^4.0.7",
47
47
  "yaml": "^2.8.1"
48
48
  },