@gate-forge/cli 0.13.9 → 0.13.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/guides/QUICKSTART.md +7 -7
- package/guides/REFERENCE.md +22 -0
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.10
|
|
4
|
+
|
|
5
|
+
Theme: Gateforge reads a test's type from what its fixtures are really made
|
|
6
|
+
of, so an API-only test behind a custom fixture is named as one, and a real
|
|
7
|
+
UI test is never demoted. Measured on a foreign app (169 tests): 28 tests
|
|
8
|
+
Gateforge could not type before now have their type, 0 left `unknown`.
|
|
9
|
+
|
|
10
|
+
- **Playwright kinds follow custom fixture definitions.** Fixture parameters
|
|
11
|
+
are classified from the browser and API building blocks their definitions
|
|
12
|
+
reach, including fixture-on-fixture chains. API-only fixture evidence is
|
|
13
|
+
included when an E2E mapping contradicts the inferred kind. Unfollowable
|
|
14
|
+
fixtures remain `unknown`; runtime proof rules are unchanged.
|
|
15
|
+
|
|
16
|
+
- **HTTP-client kind signals follow reached helpers and Playwright API
|
|
17
|
+
requests.** Discovery recognizes `page.request` and `context.request`
|
|
18
|
+
calls through imports, attributed only to tests that call a reachable test
|
|
19
|
+
helper. `fetch`/`axios` calls are detected in the test file; calls in
|
|
20
|
+
imported product modules do not count as Playwright API evidence. A test
|
|
21
|
+
that drives the page AND calls an API client (e.g. for setup) stays a
|
|
22
|
+
browser test; the runtime rule still never credits its API traffic.
|
|
23
|
+
|
|
24
|
+
- **Setup-project tests never carry claims.** Discovery marks rows in projects
|
|
25
|
+
the Playwright runner resolved as dependencies of other projects. A claim
|
|
26
|
+
mapped to such a row is refused with the dependent project names; when the
|
|
27
|
+
runner's dependency graph is unavailable, mapping behavior is unchanged.
|
|
28
|
+
|
|
3
29
|
## 0.13.9
|
|
4
30
|
|
|
5
31
|
Theme: Gateforge exists to catch fake tests. This release closes three ways a
|
package/guides/QUICKSTART.md
CHANGED
|
@@ -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.
|
|
28
|
-
@gate-forge/pack-playwright@0.13.
|
|
29
|
-
@gate-forge/pack-http@0.13.
|
|
30
|
-
@gate-forge/pack-fastapi@0.13.
|
|
31
|
-
@gate-forge/pack-sqlalchemy@0.13.
|
|
27
|
+
@gate-forge/cli@0.13.10 \
|
|
28
|
+
@gate-forge/pack-playwright@0.13.10 \
|
|
29
|
+
@gate-forge/pack-http@0.13.10 \
|
|
30
|
+
@gate-forge/pack-fastapi@0.13.10 \
|
|
31
|
+
@gate-forge/pack-sqlalchemy@0.13.10
|
|
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.
|
|
52
|
+
**If not:** align every direct `@gate-forge/*` package to `0.13.10`, then install again. Do not work around the compatibility error.
|
|
53
53
|
|
|
54
54
|
## 2. Pick a goal
|
|
55
55
|
|
|
@@ -501,7 +501,7 @@ the registry. To gate a release that is not on the registry yet (a local
|
|
|
501
501
|
regenerate:
|
|
502
502
|
|
|
503
503
|
```sh
|
|
504
|
-
GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.
|
|
504
|
+
GATEFORGE_CI_ENGINE_SOURCE=vendor/gate-forge-cli-0.13.10.tgz \
|
|
505
505
|
gateforge enforce --ci github
|
|
506
506
|
```
|
|
507
507
|
|
package/guides/REFERENCE.md
CHANGED
|
@@ -499,6 +499,19 @@ catalog, lists up to five of that file's real keys.
|
|
|
499
499
|
strong code-signal inference. In particular, `api-e2e` is not E2E evidence
|
|
500
500
|
for observed claims and cannot be reclassified as `observed-e2e`;
|
|
501
501
|
`tests mark` refuses such contradictions with both source locations.
|
|
502
|
+
- Playwright's resolved project graph also marks prerequisite-project rows
|
|
503
|
+
in the catalog. Such setup tests prepare state, so sidecar and native claims
|
|
504
|
+
on them are refused with `TEST_MAPPING_AMBIGUOUS` and a message naming the
|
|
505
|
+
setup project and its dependents. This uses only the graph returned by the
|
|
506
|
+
runner; if discovery cannot read that graph, existing mapping behavior
|
|
507
|
+
remains unchanged.
|
|
508
|
+
|
|
509
|
+
- Static discovery follows custom Playwright fixtures to their building
|
|
510
|
+
blocks. A fixture backed by `browser.newContext()` / `.newPage()` counts
|
|
511
|
+
as browser evidence; one backed by `request.newContext()` counts as API
|
|
512
|
+
evidence. Fixture chains are included in kind evidence and API-only
|
|
513
|
+
fixtures cannot be declared as E2E tests. A fixture the scanner cannot
|
|
514
|
+
follow remains `unknown`; classification does not change runtime proof.
|
|
502
515
|
- A test that Playwright lists but static discovery did not read cannot
|
|
503
516
|
carry an E2E claim: Gateforge blocks sidecar and native claims for that
|
|
504
517
|
row until code is readable. This is distinct from a scanned test whose
|
|
@@ -2037,6 +2050,15 @@ signals for every instance registered at that line. Resolvable titles
|
|
|
2037
2050
|
continue to require title-path identity; a different literal title is
|
|
2038
2051
|
never joined by line alone.
|
|
2039
2052
|
|
|
2053
|
+
Static Playwright discovery assigns the `http-client-call` kind signal to
|
|
2054
|
+
`fetch`/`axios` calls in the test file and to API-client methods called
|
|
2055
|
+
through `page.request` or `context.request`. It follows the same bounded
|
|
2056
|
+
import and per-test helper reachability used for route-tamper attribution:
|
|
2057
|
+
only Playwright API request calls in imported test infrastructure count,
|
|
2058
|
+
and a helper call counts only for a test that reaches it, not every test
|
|
2059
|
+
that merely imports the module. Fetch/axios calls in imported product
|
|
2060
|
+
modules are not treated as Playwright API evidence.
|
|
2061
|
+
|
|
2040
2062
|
### Provenance trust model (GF-23, audited 2026-08-31, three rounds)
|
|
2041
2063
|
|
|
2042
2064
|
`records.json` and `manifest.json` live in the suite-writable state
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gate-forge/cli",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.10",
|
|
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.
|
|
37
|
-
"@gate-forge/http-contract": "^0.13.
|
|
38
|
-
"@gate-forge/pack-fastapi": "^0.13.
|
|
39
|
-
"@gate-forge/pack-alembic": "^0.13.
|
|
40
|
-
"@gate-forge/pack-http": "^0.13.
|
|
41
|
-
"@gate-forge/pack-react-router": "^0.13.
|
|
42
|
-
"@gate-forge/pack-playwright": "^0.13.
|
|
43
|
-
"@gate-forge/pack-sqlalchemy": "^0.13.
|
|
44
|
-
"@gate-forge/pack-task": "^0.13.
|
|
45
|
-
"@gate-forge/plugin-protocol": "^0.13.
|
|
36
|
+
"@gate-forge/core": "^0.13.10",
|
|
37
|
+
"@gate-forge/http-contract": "^0.13.10",
|
|
38
|
+
"@gate-forge/pack-fastapi": "^0.13.10",
|
|
39
|
+
"@gate-forge/pack-alembic": "^0.13.10",
|
|
40
|
+
"@gate-forge/pack-http": "^0.13.10",
|
|
41
|
+
"@gate-forge/pack-react-router": "^0.13.10",
|
|
42
|
+
"@gate-forge/pack-playwright": "^0.13.10",
|
|
43
|
+
"@gate-forge/pack-sqlalchemy": "^0.13.10",
|
|
44
|
+
"@gate-forge/pack-task": "^0.13.10",
|
|
45
|
+
"@gate-forge/plugin-protocol": "^0.13.10",
|
|
46
46
|
"picomatch": "^4.0.7",
|
|
47
47
|
"yaml": "^2.8.1"
|
|
48
48
|
},
|