Skip to content

P5 O15 M1 and M2: the app runs on mawsd alone; the repair window when it cannot start - #562

Merged
SSFSKIM merged 39 commits into
masterfrom
p5-o15
Nov 10, 2026
Merged

SSFSKIM merged 39 commits into
masterfrom
p5-o15

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 10, 2026

Copy link
Copy Markdown
Owner

P5 O15's M1 and M2 (docs/doperpowers/plans/2026-11-10-p5-o15-recomposition.md). M2b and M3 to M5 are not part of this PR.

What changes

  • M1. No suite launches the app's embedded shape. The embedded-only scripts and gate entries are deleted. Every case both shapes share now runs on mawsd, and cross-build's update and downgrade run both builds on mawsd. The two cases the first draft dropped are ported back on mawsd: a crash with nothing to adopt, and an idle release read by a relaunched app.
  • M2. Electron main no longer composes the machine's services. The main profile's launch now ends one of two ways: mawsd, or a repair window that says why, shows the daemon's log, offers the repair and retries in the same process. Nothing on the way to that window can throw past it.
    • supervisor.shape is normalised to daemon, with no settings version bump. The shape switch and MAWS_HOST_MODE are retired, and pnpm dev:scratch is added.
    • Absence checks: a boundary rule, and a bundle guard over main's graph.
    • Acceptance 3 is proved by a new cross-build scene. A real embedded peer (63443a3) makes a profile; this build opens it on mawsd and checks everything in it after a reconciliation and again after a cold relaunch.
  • The ack bound. e2e:artifacts-perf's keystroke-to-ack bound is re-derived at 13 ms by the owner's ruling (Decision Log 15). The case now admits every measured window and voids a window measured in load.

The full account, with every deleted case and where its behaviour is still covered, is in docs/doperpowers/plans/2026-11-10-p5-o15-report.md.

Validation Evidence

The final head is aa10461. It differs from 372cd6d in e2e/cross-build.spec.ts (f4dd650: the acceptance-3 scene sends its turn 1) and in the review panel's three fixes (aa10461). The architect ruled that the earlier runs stand, with class 1a and e2e:supervisor-daemon run again on aa10461.

  • Typecheck, lint, unit suite and probes on the final head. ./scripts/ci-gate.sh . --gates static,unit,probes --class1a linux --runner macos --peer none --label p5-o15 → run 42902397703 on aa10461, success.
  • The panel's fixes, repair.spec and the supervisor suite on the final head. ./scripts/ci-gate.sh . --gates e2e:supervisor-daemon --runner macos --peer none --label p5-o15-fix-supervisor → run 42904757874 on aa10461, 27 passed with no retry (repair.spec among them).
  • Every e2e group and the packaged checks (acceptance 1). ./scripts/ci-gate.sh 372cd6dd6 --gates all --class1a linux --runner macos --label p5-o15-all-final → run 42871682868: 63 green and 4 skipped; packaged 1/2 and 2/2 are green inside it.
    • Its one red was e2e:supervisor-daemon's case (h), "1 busy terminal", at a 1-minute load of 10 to 15. This is the tracked flake on the tech-debt row of 2026-11-06, per the architect's ruling.
    • Rerun alone: ./scripts/ci-gate.sh . --gates e2e:supervisor-daemon --runner macos --peer none --label p5-o15-supervisor-rerun → run 42899608186 on f4dd650, 27 passed with no retry.
    • (f) at supervisor.spec.ts:880 failed once under the same load and passed on retry.
  • The repair window (acceptance 2). e2e/repair.spec.ts cases 1 to 4 run inside e2e:supervisor-daemon and passed in 42871682868.
  • Cross-build, including the acceptance-3 scene (acceptance 3). ./scripts/ci-gate.sh . --gates e2e:cross-build --runner macos --peer 63443a3bd --label p5-o15-cross-final2 → run 42897731007, success: 6 passed (the acceptance-3 scene "(embedded profile, mawsd)" among them, on its first attempt), 4 skipped for this peer.
  • artifacts-perf. ./scripts/ci-gate.sh . --gates e2e:artifacts-perf --runner macos --peer none --label p5-o15-perf-final2 on 372cd6d → run 42867217013, valid and green:
    • first sync 140.8 ms against a bound of 150;
    • ack p95 12.0 ms against a bound of 13, at 1-minute loads 2.94 and 2.33;
    • acknowledged lost: 0.
  • M1 on its own tree (549387e).
    • --gates all → 42808148412: green but for delivery.spec.ts:79, delivery.spec.ts:180 and browser-comment.spec.ts:545, each of which passed in 42829266756.
    • Measured groups → 42830861005: local-latency-daemon p50 25.3 ms and p95 37.2 ms; daemon-idle 96,259 KiB and 0.11 s.
    • Cross-build → 42841694867: green.
  • Whole-branch review. doperpowers:reviewer-high on 37f68b4..ffbc72b: correct, no material findings.
  • The architect's review panel on 37f68b4..f4dd650 found three P2 issues, all fixed in aa10461, each with a test that failed first (Decision Log 16):
    • reopening MAWS during repair now retries;
    • a reused pid no longer reads as a live lock holder;
    • the userDefaults assertion is restored.

Unresolved Review Findings

  • src/main/org/rows.test.ts timed out at 5 s once, in run 42842840500. It is unrelated to this branch and its cause is not established. It is carried as test-reliability debt, not fixed here.

Residue

  • The router's embedded binding kind. It is kept only as the in-process default of four suites; production binds host. It goes once those suites bind a fake host dispatch (Decision Log 12 (b)).
  • Main's graph through services/command-budgets. About 50 src/services/ modules are reachable through that one constants import, so the bundle check asserts the narrow rule. Moving the constants to constants-only modules lets it assert the wider rule (Decision Log 12 (c)).
  • Dead code left by the quit's simplification. This covers the renderer's quit-wait banner and the two layout.quitWait* routes (kept for the additive wire), HostSupervisor.stopAllForQuit, and the e2e when_idle and keep branches in c12-quit, c12-prerun, cross-build and shell.spec.
  • Items M5 already plans to file. The two retired settings fields (drop them at the next settings version); main's older-mawsd render and delivery answers; and the acceptance-3 scene's retirement once no peer has the embedded shape.

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

…ecision Log 4)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ps), the Mac spent at M1's boundary (Decision Log 5)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…raint 6, Concrete Steps, Decision Log 5)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
The embedded shape's runs go: e2e:c7-utility, e2e:supervisor, e2e:supervisor:packaged,
e2e:local-latency, e2e:daemon-idle-baseline, e2e:daemon-idle-aba and e2e:keep-quit-live
leave package.json, gate.yml's lists, the packaged job and the static tests that pin them
(the plan mirror's fixture re-captured with f85cc95's planner). The supervisor scratch
defaults to mawsd; the supervisor suite and its packaged check keep their daemon cases,
the embedded-only ones deleted (the packaged fuse, group and SIGUSR1 checks ported to the
engine host under mawsd); cross-build's (update) and (downgrade) run both apps on mawsd;
daemon-idle loses its baseline and A-B-A legs (the bound's records stand, f221bd3 named
as the last tree that re-derives them); artifacts-perf and the cold HTTP delivery run on
mawsd; the live keep-quit probe is deleted. Main's mocked startups take the daemon branch;
what they held of main's own session service moves to spine-root's and panel-lifetime's
tests, and profile-upgrade calls openSpineData directly.

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…aunch reading, on mawsd; cross-build's update and downgrade fixed on mawsd

The architect's ruling: both are shared behaviour, so they are ported, not dropped.
Supervisor (c) is back on the daemon shape: a kill -9 of the engine host holding a
replay session nothing can adopt reads the interrupted toast, Send's start, the crash
row and divider, and Diagnostics' crash line with mawsd's pid unchanged. A new (e)
case relaunches the app after an idle release while a second session, held mid-turn,
keeps the engine host from mawsd's park, and reads the release in session.status,
session.events and the sidebar's mark.

Cross-build's (update) and (downgrade) (the review's finding) run both builds on the
daemon shape always; a peer whose app lists no machine.connectors skips them with D11's
reason instead of switching shape.

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… M2, O15's document with Decision Log 6 and 8 to 11 (M2b)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ses none of the machine's services

resolveLaunch settles the launch per section A (a private daemon on a non-main profile; the
main profile's LaunchAgent installed or repaired and kickstarted when packaged, started only
when installed and loaded otherwise), never throws, and classifies a refused bootstrap or
kickstart and a loaded-but-not-run unit as install-refused. A launch mawsd cannot start opens
the repair window (section B: its own page, preload and three channels; one attempt at a
time, from its button, the window's focus after Login Items, or a second launch), which
resolves into the app in the same process.

app.ts loses the embedded root: no openSpineData, startSpine or startMachineIdentity, the
router binds machine as host alone, the cua relay, delivery shim and artifacts proxy always
run; the identity is read through main/machine/identity. MAWS_HOST_MODE is retired (logged
once). The quit guard asks only about unsaved files: the when-idle wait, the stop-all and
the SIGKILL rung, which only the embedded and detached shapes reached, are gone. Lint rule
B lets app.ts import only services/command-budgets; preload and renderer import no
composition root; the bundle check asserts main's graph holds none of the services' roots.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…it default and the embedded and utility branches

Every launch runs on mawsd, so the Supervisor section shows no shape segment or quit-default
segment, and the daemon and supervisor rows no utility, detached, embedded or unavailable
state; the copy only they used goes with them.

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

One normalising function at the client store's read (both the split file and an unconverted
unified one) and at its set, so a profile saved on the embedded shape shows and writes
daemon, every other setting kept, the version still 21. keepRunningDefault is kept as
stored. The launch no longer reads the settings file.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…edded case, pnpm dev:scratch, MAWS_HOST_MODE out of the scripts

The repair window's four cases run in e2e:supervisor-daemon over the suite's unit fault; the
settings group's shape flip becomes case 5, a profile saved on the embedded shape opening on
mawsd with its settings as written and shape stored as daemon at the first write. launchMaws
can return the repair window (firstWindow: 'repair') and exports its window finder. The
default-specs count moves to 107.

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)
…ases named, each passing on rerun)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…Log 12); §A's write snapshot is taken before the install or repair

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d; Decision Log 13 (nothing throws past the repair window; the artifacts-perf miss and its rule)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…w throws past it

resolveLaunch turns any error on the main profile's way (a unit whose state cannot be read, a
directory or an unreadable plist at its path) into install-refused with the error's words, on
either build, and prepareLaunch does the same for what precedes it; app.ts takes the outcome
inside a promise. The log tail is best-effort (a directory or unreadable mawsd.log falls back
to mawsd.out, then null) and scans back for line breaks, so a last line longer than any
window shows its first 300 characters; the controller shows no log when reading it throws.
install-refused's retry on a development build is Try Again, which never installs. The
repair page's load failure is logged; userInfo's throw falls back to $USER.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… window had no co-tenant

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…or more at either end) and the first mawsd reading as void

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…6 ms, a cost each edit pays), for the owner

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s in order and the window's times (nothing timed changes; cherry-picked from c401a8f, Decision Log 13)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…; the ack bound's drift in Surprises

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… test launch whose profile cannot be placed is refused

refuseTestLaunchOnDefaultProfile runs before prepareLaunch's guard, and assembled the unit
runner's deps (homedir(), which throws with no usable HOME and a failed account lookup) on
every launch. It now returns at once unless the launch is a test or harness one, which reads
only what the refusal needs and, if that read throws, exits as a refusal does. An ordinary
launch reaches prepareLaunch, whose guard makes the same error install-refused.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n on the owner's ruling for the ack bound

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…eer made opens on mawsd with everything present

The peer, still with the embedded shape (its main holds spine.lock), makes a session with a
turn to its end, an artifact, a draft and a library-plus-artifact layout, and quits; this
build opens the profile on mawsd and, after the library's first sync and again after a
relaunch, finds the session listed, the artifact in the library with its page loading, the
draft, the same tabs, and a spine load in mawsd.log with no index rebuild (db.ts's moved-aside
line) or refusal. A peer with no embedded shape skips, saying so.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…i; MAWS's own share of an ack

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…econciliation, shown by a canary

library.list reads the index at once, so the artifact's presence proved no sync. Each pass now
starts by waiting for a canary to leave the library: an artifact the library lists while
the engine host holds it no more (deleted under the library's held refreshes, the e2e
seam), which only a reconciliation that read and applied the host's snapshot removes. The
relaunch ends the profile's mawsd first, so its fresh library reconciles again, against a
second canary this build plants.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ort, #556 the renderer's state readers for another machine's lane B record, #557 the desk track's deploy tooling

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ck window void at a 1-minute load of 5 (Decision Log 15; a dated line in P3-A's plan)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ch-path walk and records the scene's canary barrier

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…st sync by a trial's load (test-only; Decision Log 15)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…'s turn, as crossing's launch does (the journal's turn waits for its human row)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…leted at the end)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… retry covers a reopen

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…during repair, a reused lock pid is no holder, the plan-mode seed is asserted again

- repair: while the repair window is up, the app's `activate` (a Dock or Finder reopen on macOS, which starts no second
  process) does what a second launch does: the window shown and focused, one attempt through the controller. The
  listener goes at success, before the window closes, and at 'closed', so startMain's own listener is then the only one.
- daemon: lockHeldByLiveProcess compares the lock's recorded start (isSameProcess); a pid reused by another process
  reads as case (iii). A lock with no recorded start keeps the old answer.
- spine-root.test: the ported engine-env case again requires the composed SessionService to seed a new intent's
  permissionMode from the capture's defaultMode (plan).

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e (the panel's fixes, the final gates)

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

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T21:42:27.917901Z 1e823d4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 10e30f1 into master Nov 10, 2026
@SSFSKIM
SSFSKIM deleted the p5-o15 branch November 10, 2026 21:53
SSFSKIM added a commit that referenced this pull request Nov 10, 2026
…mawsd alone; the landings since 267 recorded; the quit guard row's fourth sighting

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 10, 2026
app.ts: the second launch's line above the repair window's early return (Decision Log 21, formerly 16), the wake and reach shutdown step kept; M2b's O15 Decision Log entries renumbered 17 to 33 after p5-o15's 12 to 16, with every reference to them in the spec and the code.

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