Skip to content

feat(e2e): the journeys as a suite, with a target guard, a count guard and the controls that need no Plane - #137

Merged
aRustyDev merged 1 commit into
mainfrom
feat/e2e-journey-suite
Nov 12, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
feat/e2e-journey-suite

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

Part of #45 (first of three PRs). Does not close it: the pinned-Plane leg, the committed HAR, the schedule and the parity table are still to come.

What this does

#132 built the first browser journey as #44's last acceptance criterion and said it becomes the first of #45's. This turns the journeys into a suite that a second journey, and the same journeys on the pinned Plane, can join without rewriting what guards them.

  • One spec per journey in e2e/journeys/ (the M1 journey moves there; its steps are now named). What they share is in e2e/support/: the target adapter, the network-log judge and the controls.
  • A target guard. E2E_TARGET=thrust|plane; the guard runs before any click and names itself (TARGET GUARD (<wanted>)). It reads /_info by its body: behind a proxy or the single-page fallback a path that does not exist is a 200 text/html, and a status check alone would call that a Thrust. The Plane form cannot use GET /api/instances/, because Thrust serves it in the pin's shape on purpose (S01); it uses "/_info is not a Thrust answer" and "/api/schema/ is an OpenAPI document" (the oracle runs with ENABLE_DRF_SPECTACULAR=1).
  • A count guard. scripts/e2e.sh reads each run's own JSON report (e2e/support/check-report.mjs) and requires one passed journey per file in e2e/journeys/, none skipped, unexpected or flaky. Playwright exits 0 for a skipped test, so the exit status alone cannot say it, and the number comes from the files, not from the run.
  • Three controls beside the stickies 404, each a run that must fail and say why (scripts/e2e.sh controls, so the worker-cf e2e cell runs them):
    • the work-item list emptied in the browser (S47 answered with results: [] and the server's own envelope): must fail at see it in the list:; the run fails as CONTROL INERT if it emptied nothing;
    • the journey skipping itself: the count guard must refuse it;
    • the journey told it is on the other target: must fail at the target guard.
  • Docs: app-and-e2e, defect-matrix X18, by-change, running, AGENTS.md, the rust-test-app skill's pointer, PLAN, and a new G-31 row that says what was measured and what was not.

Evidence

Measured locally on worker-cf, 2026-11-12:

  • scripts/e2e.sh worker-cf controls ended VERDICT: PASS: the journey passed (report: passed 1 of 1), and the four controls each failed as required. The emptied list failed at the step after the reload; the wrong target failed before any step; the skip exited 0 and the count guard refused it.
  • The server-side variant of the empty-list control, once, by hand: with list in crates/thrust-compat-plane/src/issues.rs returning no rows (a .take(0), reverted, not in this PR), the journey without controls ended VERDICT: FAIL at see it in the list:, in the same words as the browser-side control.
  • The count guard on eight synthetic reports: it passes the good one and refuses a count of 2 for 1 journey, skipped, flaky, unexpected, text that is no JSON, a missing file and 0 journeys, each for its own reason.
  • scripts/e2e.sh passes sh -n locally and under dash in ubuntu:24.04 (CI runs it under dash); .github/scripts/tests/test-ci-scripts.sh: passed=60 bad=0.

Not measured, said plainly

  • The Plane form of the target guard has only been run to refuse a Thrust. It has not seen the oracle, so its /api/schema/ probe is unverified until the next PR.
  • The skip and emptied-list controls are browser-side switches; the server-side variant is by hand, not in CI (as G-30 gap 7).
  • A count short of the files is shown on a synthetic report, not by a spec that registers no test.
  • A web/-only change still does not run the cell until the scheduled workflow (the third PR); sign-in and sign-out are still not walked (G-30 gaps 2 and 3).

Next

  1. tools/e2e-plane/: the pin's stock bundle (Thrust's web/ with the Q-R2 ledger reverted, each restored file checked against web/PIN-MANIFEST) served on one origin with the oracle API, scripts/e2e.sh plane-oracle, and the committed HAR (local only: the oracle builds from the unpushed fork).
  2. The scheduled workflow, the parity-matrix table in TRACEABILITY, the ADR-0006 register row.

🤖 Generated with Claude Code

…d and the controls that need no Plane

#132 built the first browser journey as #44's last criterion and said it
becomes the first of #45's. This makes the journeys a suite that a second
journey, and the same journeys on the pinned Plane, can join without
rewriting what guards them.

- One spec per journey in e2e/journeys/ (the M1 journey moves there with
  git mv); what they share in e2e/support/: the target adapter, the
  network-log judge and the controls.
- E2E_TARGET=thrust|plane and a target guard that runs before any click and
  names itself (TARGET GUARD). It reads /_info by its body: behind a proxy
  or the single-page fallback a path that does not exist is a 200
  text/html, and a status check alone would call that a Thrust. The Plane
  form cannot use GET /api/instances/, which Thrust serves in the pin's
  shape on purpose (S01).
- A count guard: scripts/e2e.sh reads each run's own JSON report
  (e2e/support/check-report.mjs) and requires one passed journey per file
  in e2e/journeys/, none skipped, unexpected or flaky. Playwright exits 0
  for a skipped test, so the exit status alone cannot say it.
- Three controls beside the stickies 404, each a run that must fail and
  say why: the work-item list emptied in the browser (must fail at "see it
  in the list:"; the run fails as CONTROL INERT if it emptied nothing), the
  journey skipping itself (the count guard must refuse it), and the journey
  told it is on the other target (must fail at the target guard).
- Docs: the testing pages (app-and-e2e, defect-matrix X18, by-change,
  running), AGENTS.md, the rust-test-app skill's pointer, PLAN, and G-31
  with what was measured and what was not.

Measured locally on worker-cf: the journey and all four controls behave as
required. The server-side variant of the empty-list control was run once by
hand (list returning no rows, reverted, not committed) and the journey
failed at "see it in the list:". The count guard was run on eight synthetic
reports. The Plane form of the target guard has only been run to refuse a
Thrust: the pinned-Plane leg is the next PR.

Refs: #45
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev
aRustyDev merged commit 684f2b4 into main Nov 12, 2026
35 checks passed
@aRustyDev
aRustyDev deleted the feat/e2e-journey-suite branch November 12, 2026 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant