Wayfinder map — e2e testing: the product and the swarm pipeline #262

Open
opened 2026-08-02 03:13:13 +00:00 by ben · 5 comments
Owner

Destination

An e2e testing strategy for OurCloud, decided and ticketed. Two arms: (1) the product — how end-to-end verification above the seam-test tier works: browser/UI e2e for the dashboard + operator app, the live clan-lab smoke tier (automation posture, cadence, who runs what), and full-journey coverage; (2) the swarm pipeline — how the Sandcastle/Forgejo machinery is verified end-to-end across its hops (triage → swarm → gate → push → CI → heal → ask-human → resume), including the harness scenario tests and the scheduler-silence failure mode. Done = the open decisions are ADR'd and the build work exists as ready-for-agent tickets in the DAG.

Notes

  • Planning map: tickets resolve decisions; the map builds nothing. Build work exits as DAG tickets when decisions close.
  • Skills: /grilling + /domain-modeling on grilling tickets; /research subagents on research tickets.
  • Standing rulings that bound this map: “smokes are slices, not CI; per-family clan-lab smokes gate each family” (ruled on Engine-adapters arc — scope); the fakes posture (ADR 0100) and the pinned toolchain (ADR 0040) stand.
  • Ground truth: 10 live harnesses scripts/smoke-*.sh → control-plane/cmd/smoke-* (hand-driven, verdicts land in docs/spike-findings/); 16 offline pipeline scenario tests in .sandcastle/tests/ (not wired into any CI); clan-lab + lab-dns skills run only where credentials live (workstation/laptop) — the swarm sandbox is deliberately credential-free.
  • Decision-light execution note: “wire .sandcastle/tests/ into CI” needs no grilling — file it straight to the DAG when Pipeline e2e — what a full swarm pass runs against resolves.

Decisions so far

  • Research: browser-e2e tooling for Vue dashboard + Electron app under nix CI — Playwright for both surfaces: Electron via _electron (no nix browser problem, needs xvfb-run in the dev shell; fuse/dialog caveats noted), dashboard via nixpkgs playwright-driver with a pinned lockstep input (pinned 24.11 carries 1.50.1 vs npm 1.62.1); WDIO electron-service recorded as fallback. Findings: research/browser-e2e-tooling branch.
  • Research: disposable Forgejo target options for pipeline e2e — staging repo on prod REJECTED (org runner + inherited org secrets + shared fragile cron scheduler DB); recommend two tiers: stateful-fake script-chain e2e as default CI test + on-demand containerized Forgejo 15 (SQLite, INSTALL_LOCK, repo-scoped host-mode runner, workflow_dispatch-driven) for platform hops. Findings: research/pipeline-e2e-forgejo-target branch.
  • Research: deSEC delegation beyond one A record for the lab — token-policy subnames match exact-only (no subtree selector), so "anything under lab." is inexpressible inside matou.nz; recommend (B) now: exact TXT _acme-challenge policies to unblock wildcard smokes, (D) for full-journey: delegate lab.matou.nz as its own deSEC child zone with a zone-scoped token + own 300/day rate budget; human ruling flagged on perm_create_domain for throwaway per-run zones. Findings: research/desec-lab-delegation branch.

Not yet specified

Out of scope

  • Executing the live drives — #183 (and the #251/#252 live smokes) stay their own effort; this map may reshape them but doesn't run them.
  • Re-litigating the unit/seam tiers — ADR 0100 and the seam-test system stand; this map is about the tiers above them.
  • matou-app product testing — that repo's business; only the shared harness is in scope here.
## Destination An e2e testing strategy for OurCloud, decided and ticketed. Two arms: (1) the **product** — how end-to-end verification above the seam-test tier works: browser/UI e2e for the dashboard + operator app, the live clan-lab smoke tier (automation posture, cadence, who runs what), and full-journey coverage; (2) the **swarm pipeline** — how the Sandcastle/Forgejo machinery is verified end-to-end across its hops (triage → swarm → gate → push → CI → heal → ask-human → resume), including the harness scenario tests and the scheduler-silence failure mode. Done = the open decisions are ADR'd and the build work exists as ready-for-agent tickets in the DAG. ## Notes - **Planning map**: tickets resolve decisions; the map builds nothing. Build work exits as DAG tickets when decisions close. - Skills: `/grilling` + `/domain-modeling` on grilling tickets; `/research` subagents on research tickets. - Standing rulings that bound this map: “smokes are slices, not CI; per-family clan-lab smokes gate each family” (ruled on [Engine-adapters arc — scope](https://git.matou.nz/Matou/ourcloud/issues/160)); the fakes posture (ADR 0100) and the pinned toolchain (ADR 0040) stand. - Ground truth: 10 live harnesses `scripts/smoke-*.sh` → `control-plane/cmd/smoke-*` (hand-driven, verdicts land in `docs/spike-findings/`); 16 offline pipeline scenario tests in `.sandcastle/tests/` (not wired into any CI); `clan-lab` + `lab-dns` skills run only where credentials live (workstation/laptop) — the swarm sandbox is deliberately credential-free. - Decision-light execution note: “wire `.sandcastle/tests/` into CI” needs no grilling — file it straight to the DAG when [Pipeline e2e — what a full swarm pass runs against](https://git.matou.nz/Matou/ourcloud/issues/268) resolves. ## Decisions so far <!-- one line per closed ticket: name — gist --> - [Research: browser-e2e tooling for Vue dashboard + Electron app under nix CI](https://git.matou.nz/Matou/ourcloud/issues/270) — Playwright for both surfaces: Electron via `_electron` (no nix browser problem, needs `xvfb-run` in the dev shell; fuse/dialog caveats noted), dashboard via nixpkgs `playwright-driver` with a pinned lockstep input (pinned 24.11 carries 1.50.1 vs npm 1.62.1); WDIO electron-service recorded as fallback. Findings: `research/browser-e2e-tooling` branch. - [Research: disposable Forgejo target options for pipeline e2e](https://git.matou.nz/Matou/ourcloud/issues/271) — staging repo on prod REJECTED (org runner + inherited org secrets + shared fragile cron scheduler DB); recommend two tiers: stateful-fake script-chain e2e as default CI test + on-demand containerized Forgejo 15 (SQLite, INSTALL_LOCK, repo-scoped host-mode runner, workflow_dispatch-driven) for platform hops. Findings: `research/pipeline-e2e-forgejo-target` branch. - [Research: deSEC delegation beyond one A record for the lab](https://git.matou.nz/Matou/ourcloud/issues/272) — token-policy subnames match exact-only (no subtree selector), so "anything under lab." is inexpressible inside matou.nz; recommend (B) now: exact TXT `_acme-challenge` policies to unblock wildcard smokes, (D) for full-journey: delegate `lab.matou.nz` as its own deSEC child zone with a zone-scoped token + own 300/day rate budget; human ruling flagged on `perm_create_domain` for throwaway per-run zones. Findings: `research/desec-lab-delegation` branch. ## Not yet specified - Browser-e2e implementation shape (tooling choice, fixtures, where it runs) — fog until [Browser e2e for dashboard + operator app — yes/no and with what](https://git.matou.nz/Matou/ourcloud/issues/265) rules yes/no. - Smoke scheduling details (cadence mechanics, droplet lifecycle, verdict routing) — fog until [Where automated e2e runs — environment and credential posture](https://git.matou.nz/Matou/ourcloud/issues/263) and [Automation posture for the live smoke tier](https://git.matou.nz/Matou/ourcloud/issues/264) resolve. - Pipeline-e2e scenario list — which hop-chains get covered — fog until [Pipeline e2e — what a full swarm pass runs against](https://git.matou.nz/Matou/ourcloud/issues/268) is ruled. - matou-app as harness-sync consumer: does pipeline e2e prove the sync target stays green? - Flake/quarantine policy for the new e2e tier. ## Out of scope - **Executing the live drives** — #183 (and the #251/#252 live smokes) stay their own effort; this map may reshape them but doesn't run them. - **Re-litigating the unit/seam tiers** — ADR 0100 and the seam-test system stand; this map is about the tiers above them. - **matou-app product testing** — that repo's business; only the shared harness is in scope here.
Author
Owner

Map update — the operator-app phase-1 lane is PROVEN: ADR 0132's tier passes end-to-end (drive 20, 2026-08-08, 11.4m unattended — founding through fleet seeding to S12 hand-off on a real local gateway guest; #265 closed with the tally). The harness's evidence discipline (one run dir per drive, evidence-tuned ceilings, diagnose-never-re-drive) is now load-bearing and documented in ADR 0132 + the build-and-run Automated section.

Remaining frontier on this map: phase 2, the Chromium leg (kanidm sign-in, CDP virtual authenticator passkey ceremony, dashboard reachable — the boundary the phase-1 spec now honestly stops at), and the harness-tests-in-CI gap the map originally named. Follow-up harness issues filed today: resumable tail, drives-7/11 kill archaeology, Finding G evidence loss, warm-verify substitution.

Map update — the operator-app phase-1 lane is PROVEN: ADR 0132's tier passes end-to-end (drive 20, 2026-08-08, 11.4m unattended — founding through fleet seeding to S12 hand-off on a real local gateway guest; #265 closed with the tally). The harness's evidence discipline (one run dir per drive, evidence-tuned ceilings, diagnose-never-re-drive) is now load-bearing and documented in ADR 0132 + the build-and-run Automated section. Remaining frontier on this map: **phase 2, the Chromium leg** (kanidm sign-in, CDP virtual authenticator passkey ceremony, dashboard reachable — the boundary the phase-1 spec now honestly stops at), and the harness-tests-in-CI gap the map originally named. Follow-up harness issues filed today: resumable tail, drives-7/11 kill archaeology, Finding G evidence loss, warm-verify substitution.
Author
Owner

Phase 2 of the private-path live drive is built (the follow-on ADR 0132 named): the Chromium leg reads the kanidm reset URL from the helper's e2e open sink (#338), registers the passkey through a CDP virtual authenticator (the kanidm-netbird spike's proven shape), signs in as operator to /ui/apps, and reaches the branded dashboard; the drive then completes the hand-off (kit deferred → scrub → Operator home). The playwright-driver lockstep is dissolved, not paid — ADR 0143: the browser rides the npm layer like the electron binary, preflight-gated (present + launches). Unproven until the next live drive, which now proves phase 2 and DDR 0140's bar-reading harness together.

Phase 2 of the private-path live drive is built (the follow-on ADR 0132 named): the Chromium leg reads the kanidm reset URL from the helper's e2e open sink (#338), registers the passkey through a CDP virtual authenticator (the kanidm-netbird spike's proven shape), signs in as `operator` to `/ui/apps`, and reaches the branded dashboard; the drive then completes the hand-off (kit deferred → scrub → Operator home). The playwright-driver lockstep is dissolved, not paid — **ADR 0143**: the browser rides the npm layer like the electron binary, preflight-gated (present + launches). Unproven until the next live drive, which now proves phase 2 and DDR 0140's bar-reading harness together.
Author
Owner

Phase 2 is PROVEN LIVE — drive 20260809T030602Z ran founding S1 → Operator home GREEN in 6.2 minutes, unattended: real KVM guest, real kanidm passkey ceremony (CDP virtual authenticator), sign-in as operator to /ui/apps, dashboard branded, scrub witnessed, Operator home landed. Also the live proof of DDR 0144's bar-reading harness. The proving arc (six drives, one sitting) caught four real defects invisible to every earlier tier: the runner-owned trace collision (5900075), HasPasskey polling a surface kanidm never lists passkeys on — S12 enrolment could never complete in production (060e880), the seeded repo cloning EMPTY on the gateway + the unwired Community() stub (68c18b5), and the landed exit resting on the boot-time seat (bcb5a0a). ADR 0132's live-backend ruling earned its keep four times over.

**Phase 2 is PROVEN LIVE** — drive `20260809T030602Z` ran founding S1 → Operator home GREEN in 6.2 minutes, unattended: real KVM guest, real kanidm passkey ceremony (CDP virtual authenticator), sign-in as `operator` to `/ui/apps`, dashboard branded, scrub witnessed, Operator home landed. Also the live proof of DDR 0144's bar-reading harness. The proving arc (six drives, one sitting) caught four real defects invisible to every earlier tier: the runner-owned trace collision (`5900075`), `HasPasskey` polling a surface kanidm never lists passkeys on — S12 enrolment could never complete in production (`060e880`), the seeded repo cloning EMPTY on the gateway + the unwired `Community()` stub (`68c18b5`), and the `landed` exit resting on the boot-time seat (`bcb5a0a`). ADR 0132's live-backend ruling earned its keep four times over.
Author
Owner

This was generated by AI during triage.

no-triage applied: this is a wayfinder ticket (program-level scoping, docs/agents/issue-tracker.md "Wayfinding operations"), not a bug/enhancement report — it is worked one-per-session by /wayfinder and resolved by comment + close, not by the bug/enhancement + triage-state machine. Matches precedent from #7, #8, #9, #160, #265, which closed the same way without a triage-state label.

> *This was generated by AI during triage.* `no-triage` applied: this is a wayfinder ticket (program-level scoping, `docs/agents/issue-tracker.md` "Wayfinding operations"), not a bug/enhancement report — it is worked one-per-session by `/wayfinder` and resolved by comment + close, not by the bug/enhancement + triage-state machine. Matches precedent from #7, #8, #9, #160, #265, which closed the same way without a triage-state label.
Author
Owner

Decisions so far — catch-up (2026-08-27 sweep)

The map's decisions landed as ADRs after 2026-08-09 and were never written back here:

  • ADR 0132 — drives are slices, not CI; run where a driver runs them (host cron; the swarm has no /dev/kvm). Closes #263.
  • ADR 0143 — the browser rides the npm layer (Playwright, both surfaces).
  • ADR 0182 — red-run routing: diagnose → heal (in-transaction live verify) or ticket, deduped by leg signature, retry budget. Closes #267.
  • ADR 0183 — the driver/evidence contract (legs.json, verdict.json, eyeballed screenshots).
  • ADR 0184 — two-slot host capacity; drives reserve the host.
  • ADR 0189 / 0185 / 0208 — rented gateways on idss.nz, tracking pin, standing community; the lab.matou.nz child-zone question dissolved with ADR 0128. Closes #266.
  • Rehearsal ratchet (spec 2026-08-09-183-vps-rehearsal-ratchet) — one standing full-journey drive per phase, executor-polled; supersedes per-family smoke scheduling. Closes #264.
  • #873 — scripts/tests/*.sh wired into ci (f530e72b); dev-factory runs its own tests. Closes #268.
  • Not-yet-specified residue (matou-app as harness-sync consumer; flake/quarantine policy) is moot: matou-app is a FACTORY_REF consumer, and no e2e tier gates CI.

Only #269 (scheduler-silence canary) remains unbuilt — re-armed ready-for-agent today. This map closes when #269 does.

## Decisions so far — catch-up (2026-08-27 sweep) The map's decisions landed as ADRs after 2026-08-09 and were never written back here: - **ADR 0132** — drives are slices, not CI; run where a driver runs them (host cron; the swarm has no /dev/kvm). Closes #263. - **ADR 0143** — the browser rides the npm layer (Playwright, both surfaces). - **ADR 0182** — red-run routing: diagnose → heal (in-transaction live verify) or ticket, deduped by leg signature, retry budget. Closes #267. - **ADR 0183** — the driver/evidence contract (legs.json, verdict.json, eyeballed screenshots). - **ADR 0184** — two-slot host capacity; drives reserve the host. - **ADR 0189 / 0185 / 0208** — rented gateways on idss.nz, tracking pin, standing community; the lab.matou.nz child-zone question dissolved with ADR 0128. Closes #266. - **Rehearsal ratchet** (spec 2026-08-09-183-vps-rehearsal-ratchet) — one standing full-journey drive per phase, executor-polled; supersedes per-family smoke scheduling. Closes #264. - **#873** — `scripts/tests/*.sh` wired into ci (f530e72b); dev-factory runs its own tests. Closes #268. - Not-yet-specified residue (matou-app as harness-sync consumer; flake/quarantine policy) is moot: matou-app is a FACTORY_REF consumer, and no e2e tier gates CI. **Only #269 (scheduler-silence canary) remains unbuilt** — re-armed `ready-for-agent` today. This map closes when #269 does.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#262
No description provided.