Skip to content

P5 O3-B: the e2e groups on the daemon shape - #336

Merged
SSFSKIM merged 34 commits into
masterfrom
p5-o3-b
Oct 29, 2026
Merged

SSFSKIM merged 34 commits into
masterfrom
p5-o3-b

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

P5 O3-B (docs/doperpowers/plans/2026-10-28-p5-o3-spine.md, child O3-B, parent pin blob e499132f4 at master 94a69b5): the suites now test the shape the owner runs. This PR is to land, not to merge as is: the architect lands it. The ledger, with the brief, every message, decisions 1 to 15 and the full gate record, is docs/doperpowers/ledgers/2026-10-28-p5-o3-b.md.

What changes

  • The default shape for tests. src/main/hosts/mode.ts no longer maps MAWS_E2E / MAWS_HARNESS to utility. A test or harness launch takes supervisor.shape as the owner's app does: the daemon shape, with a private mawsd on its scratch profile. MAWS_HOST_MODE still wins. O2's refusal of a test launch on the default profile (a509270d4) is kept, and a new live-process unit test in src/main/hosts/daemon.test.ts shows the owner's mawsd and pty host are left running and unsignalled under every MAWS_HOST_MODE (acceptance 5).
  • What a launch leaves behind (e2e/support/launch.ts, processes.ts):
    • A launch's cleanup ends every process naming its profile, in every spelling of the path: mawsd, its engine host and pty host, and their engines. This applies to a given profile too.
    • The cleanup waits for the pty host's shells, and a process that survives fails the launch.
    • A worker's exit ends what any uncleaned launch left. It sends SIGKILL synchronously, re-checking each pid's start time first.
  • Waiting for the hosts (e2e/support/host-ready.ts, unit-tested):
    • On the daemon shape a launch returns once the engine host is ready through mawsd. The wait is bounded at 30 s, never fails, and each launch prints one line with how long it waited.
    • A launch takes the app's own window, the page exposing window.maws. When firstWindow returned some other page, it prints one line saying so.
    • Smoke opts out of the wait (mawsHostReady: false), since it times the window from the launch.
  • The sidebar helper (e2e/support/sidebar.ts):
    • It locates a project's row afresh at every try, so a row re-keyed when its org project derives never leaves a stale locator.
    • A row that never holds expanded is reported with every project row then on the list.
  • Mode pins. A pin is kept only where the mode is what the spec tests, each with its reason:
    • Kept as they were: supervisor, supervisor-packaged, local-latency, daemon-idle, cross-build, connector-cold-delivery and p1-live-keep-quit.
    • New: the artifacts-perf case is pinned to utility.
    • Dropped: connector-scene's pin.
  • Shape-aware specs. c12-quit and smoke assert each shape's own behaviour, read from host.status.transport.
  • The embedded shape's sentinels.
    • e2e:supervisor stays as the detached one.
    • New e2e:c7-utility (c7's specs with both hosts as utility processes) joins CLASS1_E2E and HOSTED_MAC_E2E. CI-opt reviewed it. scripts/ci-gate-pool-demand.test.mjs's counts take its waiter.
  • One scoped product fix (the architect's approval).
    • src/main/lifecycle/quit-guard.ts: on the daemon shape the "Quit when idle" banner counted busy terminals that the wait no longer waits for. The banner said "2 things", then the app quit after one.
    • The waited report now drops terminals that outlive the app.
    • Found by run 40723401776 at c12-quit.spec.ts:128.

Gates

  • Final head e4e03f2 (tree 5df89f2d8), run 40849031130. No --lane, --class1a pool.
    • Green: static, probes, unit 1, 2 and 4, and e2e:c7, c7-utility, lane-a, settings and desk-web-hub. No flaky pass.
    • Unit 3/4 was red on O2's tracked src/mawsd/cli-prompt.test.ts ^C case, this time with the typed code echoed. The unit gate went green on rerun in run 40850249949, on the same tree.
    • Both runs' commits carry tree 5df89f2d8.
  • Hosted landing set on 0b67876 (master adb0096 with P5 O2: a memory-reducing collection at each entry into idle (Decision Log 124, owed (2)) #324). The last merge brought in only gate: admit lane-a to HOSTED_MAC_E2E #337 and P5: DX4 StepEnd gains optional t, model and effort (sminos 1.27.12) #339; e4e03f2 adds two composer test fixes and the ledger. Static on that merge's head a9e6fc7 was green in run 40847324372.
    • Run 40834080351, cancelled for the hosted cap. connectors, c12, delivery, widgets and available finished green before the cancel.
    • Relaunch 40838515514 with no --lane: the other 30 hosted groups plus browser-comment, lane-a and packaged, all green. One flaky pass, composer.spec.ts:317 in e2e:c7-utility, is fixed on the final head (decision 16).
  • Self-hosted groups on 0b67876.
    • Run 40838489005 on the mini: e2e:discover and e2e:connectors-oauth green.
    • e2e:default reran green in run 40842313381 on the EC2 Mac. Its first run in 40838489005 lost one case (side.spec.ts:771) to a Screen Sharing viewer's pointer; CI-opt traced it (job 123328929129).
  • Earlier heads. 048e558's landing set 40824824647, green. f6f421b and 048e558 each had three e2e:browser-chrome + e2e:terminal runs, all green.

Acceptance 2: the before and after sets

Each set ran the HOSTED_MAC_E2E groups under --lane hosted --peer none. Job-minutes are summed over the 34 groups both sides ran; end-to-end time is secondary, since other runs queued alongside.

Set Tree Run Job-minutes (34) End to end Failures Flaky passes
before 1 94a69b5 40716555545 153.5 39.7 min 0 0
before 2 94a69b5 40725659319 140.0 79.3 min (O3-A interleaved) 0 0
before 3 94a69b5 40743240635 144.2 49.4 min 1 (presentations-export.spec.ts:618, the tracked PNG flake) 1
after 1 67ccfdd 40786637414 143.7 (+ c7-utility 4.5) 73.7 min 0 1 (browser-chrome.spec.ts:747)
after 2 67ccfdd 40807073983 137.0 (+ 2.9) 50.3 min 0 1 (terminal-take-over.ts:26)
after 3 67ccfdd 40812037243 144.1 (+ 4.8) 49.1 min 0 0
  • Mean job-minutes: 145.9 before, 141.6 after. The daemon shape's cold start, about a second a launch, sits inside the run-to-run spread.
  • The after-sets' two flaky lines were harness races, both fixed: firstWindow returning another page, and a sidebar row located before its key was final (decisions 14 and 15). Two composer cases later met the window where a send is pending (decision 16), also fixed.
  • browser-comment ran three times hosted on 67ccfdd: 40814413679, 40815182439 and 40816280209.
  • The architect's ruling splits acceptance 2: the hosted after-sets cover the hosted groups (browser-comment and lane-a included), and default, discover and connectors-oauth get self-hosted runs on the landing head.

Other pending PRs

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

…daemon's, a private mawsd on its scratch profile); a launch's cleanup ends what the profile's launch left; the pins kept only where the mode is tested; acceptance 5's live-process test; the ledger

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…specs with both hosts utility processes), on CLASS1_E2E and HOSTED_MAC_E2E beside supervisor's detached one

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…whose cleanup never ran (a failed or timed-out test), so no private mawsd outlives its job

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n shape no outliving terminal; run 40723401776, c12-quit.spec.ts:128); c12-quit asserts each shape's quit; each worker says once which processes its profile ran

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ts path (given, resolved, /private dropped), and the worker-exit sweep revalidates each pid's start time before SIGKILL

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tes comparison); a tracker row for the cleanup's shell wait

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…osted scrollbar pref) into p5-o3-b

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the daemon shape)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…w's convergence

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… ready through mawsd (bounded at 30 s, never failing), each launch's wait printed (after-set 2's slow VMs, run 40766897996)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…aunch's wait (decision 12) and its first readings

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
….status read against its 30 s bound (host-ready.ts, unit-tested), and smoke times its window without it (mawsHostReady: false)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ver holds a worker open

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e merges the after-sets carry and class 1a on their tree

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ts; a tracker row for the wait at a crashed host

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the ledger records the browser-comment and flaky-line messages

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… p5-o3-b

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…w.maws), naming the first when it was another; the sidebar locates a project's row once its org key has derived, and a row that never holds expanded is named with every project row (after-set flakes browser-chrome.spec.ts:747, terminal-take-over.ts:26)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…y lines' fixes (decision 14)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e fix head

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r waiting for an org key a stub source's project never derives (landing run 40818367820); smoke checks the daemon shape's hosts as mawsd's, outliving the app

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s 1a on 048e558

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…p5-o3-b

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…to p5-o3-b; HOSTED_MAC_E2E the union, the pool-demand counts for both

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…re in, since one is recorded when its invoke answers, after the event it waited for (c7-utility's flaky pass, run 40838515514)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…keeps it uneditable until its invoke answers (e2e:c7's flaky pass, run 40847569515); the ledger

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@SSFSKIM
SSFSKIM merged commit dd58bcb into master Oct 29, 2026
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…ps run on the daemon shape; O3-D waits only on O3-C; three tracker rows and the cli-prompt row's new face

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…e2e launches)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…o p5-o8-m4a

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…, bd6b4b0) into p5-o3-c for landing

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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