Skip to content

Add a browser journey harness and an isolated review stack - #344

Merged
athNdev merged 2 commits into
mainfrom
feat/manual-review-harness
Nov 4, 2026
Merged

athNdev merged 2 commits into
mainfrom
feat/manual-review-harness

Conversation

@athNdev

@athNdev athNdev commented Nov 4, 2026

Copy link
Copy Markdown
Owner

What

Reviewing the console by hand does not scale and leaves no evidence. scripts/review/journey.mjs drives a real Chromium through a JSON plan: log in (or bootstrap the first admin), click through the app, assert what a person would assert, and write a Markdown report plus one screenshot per named step.

It is deliberately not an end-to-end suite. It exists for the things a unit test cannot see.

What it found in one afternoon

  • Invalid Date on the audit log, the backup list and the new lifecycle journal — protobuf-es v2 timestamps have no toDate(). Fixed in Expose the lifecycle journal over RPC and in the console #342.
  • A 400 on every vanilla server's Mods tab. ListMods returns invalid_argument: this server type does not support mods, and the RPC interceptor turns every unmapped error into a toast — so the tab showed a correct "Mod loader incompatible" empty state and a red error toast at the same time. Fixed here by not making the call.
  • A modpack server that could never start: root-owned server.properties in a uid-1000 data directory. Fixed in Hand panel-written server files to the game container's user #343.

Details

  • Animations settle before each screenshot, so a report never argues about a state nobody can see (a tab indicator mid-transition looked like the wrong tab was selected twice).
  • Failed HTTP responses and console errors are collected into the report — that is how the 400 was noticed while every assertion passed.
  • Failed steps screenshot the full page as FAILED-<name>.png.
  • Credentials come from the environment only.
  • Exit codes: 0 pass, 1 a step failed, 2 setup error.

scripts/review/devstack.sh starts an isolated review panel: its own port (first free from 8099), its own data directory and installation id, its own admin, local Docker node and starter server, and it publishes the chosen port.

That last part is not optional. While reviewing against the shared dev instance, another agent's admin session deleted both of its servers mid-journey; the report then described their action, not my change. The review stack has its own installation id, so the panel correctly ignores another installation's containers ("Ignoring server container … it belongs to another Carbon Panel installation").

Verification

  • bun run check 0 errors, bun run test 69 pass
  • plan-console.json against the isolated stack: PASS, no failed requests, no console errors
  • plan-lifecycle.json: PASS — started a real vanilla server, waited for "Server healthy and processing ticks", saw the journal record the start and the live console reach Done (5.898s)!, then stopped it cleanly

Refs OSS-247, OSS-245

A vanilla server has no mods directory, so ListMods returns 400 and the
RPC interceptor toasts "this server type does not support mods" on a tab
that already says the same thing in its empty state.
Reviewing the console by hand does not scale and leaves no evidence.
scripts/review/journey.mjs drives a real Chromium through a JSON plan,
asserts what a person would assert, settles animations before each
screenshot, and writes a Markdown report plus one image per step. It also
records failed HTTP responses and console errors, which is how a 400 on a
tab that looks fine gets noticed at all.

devstack.sh starts an isolated panel: its own port, data directory and
installation id, its own admin, node and starter server. Reviewing against
a shared instance means another person's click can land in your report.
@athNdev
athNdev merged commit 74a0721 into main Nov 4, 2026
11 checks passed
@athNdev
athNdev deleted the feat/manual-review-harness branch November 4, 2026 08:12
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