Repository navigation
Merged
Conversation
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)
mawsd serves maws-artifact: URLs over HTTP on artifacts.sock (start step 6, 0600, private-listen's checks, no loopback
port), resolving each through the engine host's artifacts.content; its handler is a chunk loaded at the first use
(the bundle guard holds it off mawsd.js's run path), and DaemonServices gains artifacts.fetch for O10's module and
O7 M5. Every welcome lists machine.artifacts; daemon.status gains artifacts {loaded, requests}; the exit ends the
endpoint's connections and removes the socket. WIRE_MINOR 13 on this branch.
The scheme's plain-Node library moves to src/services/artifacts/scheme/ (the handler, the resolver and responder
chain, the bridge script, and http.ts: serveOverHttp for the endpoint, fetchOverSocket for the proxy, one path
convention, the answer's status and headers byte-exact); its Electron half is src/render/scheme.ts. On the daemon
shape main's two sessions proxy each request to artifacts.sock while the machine host's welcome lists
machine.artifacts and serve the store's files themselves otherwise; the presenter's embeds answer first either way.
e2e:artifacts' two scheme cases pin the daemon shape and assert the endpoint served them, with a range 206 and a 416
across the proxy; e2e:cross-build's (update, daemon) loads a page of the peer's engine host through this build's
endpoint.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…eck in M6's sitting) 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)
…, not 50 ms The deferred-load case asserted the load began after a fixed 50 ms sleep; the injected loader now resolves a promise when it is entered, and the case awaits that before asserting. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…flight) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…--render-host entry src/render/ holds the render library: capture, the export service, inspection, the frame policies and every kind's exporters, moved from src/main/ with their tests. composeRender composes it over an engine-host call and registers nothing on IPC; main's embedded root composes it in startArtifacts (the bridges' listeners and artifacts.export as today), and app.ts registers no exporter of its own. The library throws HostCommandError, which main's router answers as it answered CommandFailure. src/render-host/ is the render host: a persistent machine.sock client saying hello with render.client, its life in plain Node (its own userData under <profile>/mawsd/render-host, ready once composed, each render.request answered once, render.exit after the work in flight) and its Electron root. main's entry loads that root on --render-host, the app's otherwise, after the shared bootstrap. The wire gains render.request, render.exit and render.answer (WIRE_MINOR 14); render.* events are the services front's own and stay off machine links. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
e2e/render-host.spec.ts starts the built app with --render-host over a fake front on machine.sock and a fake artifact endpoint on artifacts.sock (M2's handler over HTTP): hello as a render client, out of the Dock, its own userData, three captures in a row, the bridge's and the library's exports, the moved print and inspection seams, and exit 0 on render.exit. The print request-filter step leaves artifacts-store.spec.ts. The group is class 1 (gate.yml's CLASS1_E2E, after artifacts), so the bare default set counts 102 specs. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tory, and never leaves a failure to a dialog e2e:render-host hung at launch on the gate (run 41207574435): under Playwright's loader `require.main` is unset, so the build id read a relative 'mawsd.js', threw before `ready`, and Electron's modal error dialog for main's uncaught exception held Chromium's start with nothing on stderr. The entry now hands the render host its own directory, and the render host's root writes any failure of its start, or a later uncaught exception, to stderr synchronously and exits 70 (EXIT_FAILED), so a windowless process never raises a dialog. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ocess The gate's run 41211056494 passed e2e:render-host on its retry: the first attempt's test passed and its teardown threw reading app.process() after render.exit had ended the render host (Playwright's application channel is disposed once the process ends, as launch.ts notes). The scene keeps the ChildProcess from the launch and reads it instead. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ts from M3 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d, never leaving it to a dialog The render host's own failure handling (root.ts's fatal) exists only once its root chunk and graph have loaded; a chunk that is missing or a dependency that throws while it loads reached main's entry's rethrow, an uncaught exception, and Electron's modal dialog in a windowless process. On --render-host the entry now writes such a failure to stderr synchronously and exits 70 (EXIT_FAILED, which index.test.ts holds it to) with nothing of the render host's graph imported; the app's root keeps its rethrow. The bundle guard reads the entry's new branch. 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)
…load Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tifacts.export on the machine wire mawsd takes the engine host's maws.artifact.capture and maws.artifact.export (posted to no client from now on), starts the render host (the app binary windowless, a machine.sock render.client) at the first request through a deferred chunk (src/mawsd/render-seam.ts behind render-handle.ts), hands each request over after its ready, answers the engine host, ends it after the quiet period (MAWS_RENDER_QUIET_MS, 120 s), backs off and turns unavailable after two failed starts in a minute, and answers every request in its table before the spine's stop ends the engine-host link. host.attachment carries render: true to an engine host whose welcome lists host.render; mawsd's welcome lists machine.render; daemon.status.render; daemon.e2eRender under MAWS_E2E=1; a render client is no client for the clocks. artifacts.export is machine-owned with dialect on the wire: the embedded root registers it through registerMachineHandler, the daemon shape forwards it to the seam, and the router answers it locally while an older daemon's welcome lacks machine.render. Delivery's export goes through the machine command. Dataset holds are keyed by the asking client ref (the supervisor forwards the front's per-connection refs, O7 M2's change applied verbatim). Word comment authors ride render.request; the engine-host link's generation reaches the render host as render.hostGeneration. WIRE_MINOR 15. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
render-host part (b): on the daemon shape with the app quit, a second machine.sock client's library Export and a daemon.e2eRender capture are rendered by mawsd's render host, which ends after its quiet period; the relaunched app finds the artifact. artifacts-store: the daemon shape's exports come from the render host. machines: B, a daemon alone, renders artifacts.export through its render host (acceptance 5, the machine side). cross-build: both directions of the render service on a unit mawsd of the other build (e2e/support/unit-daemon.ts; a private mawsd of another build is restarted by the app's build check), the gate job sweeping its LaunchAgent. daemon-idle: the warm-to-idle case, a measured group of its own (MEASURED_E2E), left out of the plain and baseline groups. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s binding pin, cross-build's probe of artifacts.export The coverage table lists render.request's authors.sessions (a comment actor's appSessionId to its title); the daemon root's test pins the host binding with its daemonRenders; cross-build's gap probe gives artifacts.export, now on the manifest as `machine`, one fixed unknown id and takes its handler's named refusal (notFound) as a parsed input's answer. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t to park after its discovery wake The daemon's start reads session.list, whose discovery wake asks the woken engine host to exit when idle; artifacts.create sent meanwhile raced that exit (host_unavailable, run 41222548784). The scene now waits for the host to park, so its first request wakes it on its own, and a refused request carries B's mawsd.log. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n keeps composing the library; cross-build on unit daemons; the park race) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nder library on the daemon shape); §K's host.clientGone annotated Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…eneration at the loss, late inspection files, authors from a cold spine - An answer deadline per request from its admission (ANSWER_DEADLINE_MS): inside the bridge for a session's capture (43 s) and export (58 s), so a handed-over request hears a sentence, never a timeout; the start's plus the render library's own budget (110 s) for the library's Export. - A start watchdog (30 s): a host that never says ready is ended (SIGTERM, SIGKILL after the grace) and counted as a failed start, so the backoff and the second failure's unavailability apply and later requests are not trapped. - render.hostGeneration counts the engine-host link's losses, as the embedded root does, and is posted at the loss, ahead of the failures of the reads it refused; a render client hears the count at its ready. - A request the seam answered after handing it over (its deadline, the stop) is remembered until the host exits: the host's late answer is taken and an inspection file it names removed; a removal failure is logged. - The Word comment authors are resolved on demand: a cold or released spine is loaded for an export (bounded at 10 s); the request waits for them before its handover while the host starts. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… launchd sweep's cross-build hunk dropped installUnitDaemon and e2e:daemon-unit's spec refuse (a failure, never a skip) on RUNNER_NAME ci-kit-mac-mini or where the owner's dev.maws.mawsd is loaded in the account's gui domain (homeInstanceRefusal, the architect's ruling). The gate.yml sweep condition returns to master's: CI-opt's launchd-groups-off-home branch takes it over with LAUNCHD_E2E. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s exit; stop drains removals on both branches The start watchdog no longer lets go of the hung child: it is sent SIGTERM, then SIGKILL at the grace (a tracked timer), and remains the seam's child until it exits, which is the failed start whose backoff starts the successor. So no successor runs beside it, its connection's late ready is not taken, and its departure cannot touch a successor; stop() during that time waits for it (SIGKILL, not render.exit, at the grace) and starts nothing after. stop() awaits an inspection file's removal in flight whether or not a host is left. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…for landing 1 O7 M2 (#410), CI-opt's #412 (LAUNCHD_E2E, the sweep before gate-peer.sh stop) and #416 (e2e:remote on the hosted Macs), #411, #414, #415. Conflicts reconciled side by side: the render and remote namespaces in names, grades, schema and its test, and the link surface's client rules; the router's host binding keeps daemonRenders under master's routeLaneB; the default-spec count is 103 (render-host and remote); gate.yml's comment keeps both groups' notes. #410's host-supervisor forward and StandIn.clients hunks merged to master's text (no duplicate). The wire minor and the generated snapshots follow in their own commits. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…generated once against master's One additive minor for M2–M4's names (machine.artifacts, the render.* commands and events, render.client, machine.render, host.render, artifacts.export as machine with dialect, host.attachment's render, daemon.e2eRender, the daemon status's artifacts and render). routes.json and address-paths.json regenerate unchanged. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…est is never sent to a host leaving under it On the merged tree a request right after a discovery wake's park still failed (process-park-race.test.ts, RED: artifacts.create answered host_unavailable "engine-host disconnected before answering"). Its path is the front's forward to hosts.forward (a bare client's, the render host's reads for another machine's Export), which #411's need does not cover. engine-requests.ts now carries every client request to the engine host through mawsd (the front's, the endpoint's, the artifact endpoint's lookups, the render seam's answers): each is a need (the park clock restarts from it), no park is asked while any is in flight (DaemonClocks.engineRequests), and one that arrives after the ask waits for that host's exit (then the supervisor starts the next for it), or takes the ask back from a host still serving after EXIT_SETTLE_MS (live rows). e2e:machines' machine-side scene no longer waits for the park. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… (typecheck) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… bare set's 103 specs The merge took both render-host's and remote's specs into the bare set; the second count in the test (the relaunch summary's) still said 102 (run 41240013960, static). Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Owner
Author
|
Static on the PR head c415ca8 (tree b1176bc2a494139068e73adbd2da066ae3d5a374; a docs-only commit over 7922209: the spec's interim Outcomes and the execution report): Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook) |
SSFSKIM
added a commit
that referenced
this pull request
Oct 31, 2026
…nt's engine-host request is a park need; the lane B idle re-subscribe loop routed to O7; two tracker rows; the wave 2 ledger gains O5 landing 1's, O7 M4a2's and O16 M3a's names Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 1, 2026
…RE_MINOR 14 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 1, 2026
…sted Mac render-host.spec.ts:144 went red only under the packaged binary and landed unseen (#418, #424): packaged was explicit-only, and --gates all is the plan's default set, so no landing gate and no default run ever built the packaged app. Where packaged would run on GitHub's hosted Macs (packagedHosted: the direct route, HOSTED_MAC_JOBS admits it, a macOS lane, not a reserved final ref) the default set now holds it, as two macos-26 shards. Mirror and final refs, where it would build on the mini, keep it explicit. finalRef and packagedHosted move above the default set, which reads them; the summary's From names packaged only when it joined. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
O5 landing 1 (P5, child O5;
docs/doperpowers/plans/2026-10-31-p5-o5-chromium.md, milestones M2–M4, per the architect's two-landing ruling in its Decision Log). After this,artifact_screenshot,artifact_exportand the library's Export are rendered on the session's machine by a render host thatmawsdstarts on demand and ends when quiet, and artifact pages come from one HTTP endpoint onmawsd.mawsdservesmaws-artifact:bytes over HTTP onartifacts.sock(0600 in the 0700 daemon directory,private-listen's checks, no loopback port). The listener is bound at start; the handler loads from a deferred chunk at first use. On the daemon shape the app'sprotocol.handleproxies to it per request while the welcome listsmachine.artifacts, and serves the store itself otherwise.DaemonServices.artifacts.fetchis ready for O7 M5.src/render/(composeRender), with two roots: main's embedded root, and a windowless render host (--render-host <profile>on the app's own entry,src/render-host/). The render host is amachine.sockclient with therender.clientcapability, takesrender.requestand answersrender.answer. It writes[render-host] failed:and exits 70 rather than ever raising a dialog.src/mawsd/render-handle.tson the run path,render-seam.tsdeferred) spawns the render host at the first request. It holds requests within the bridges' deadlines and answers with a reason when it cannot render. It ends the host when quiet and has a start watchdog for a host that never says ready.host.attachment.renderlets the engine host's bridges send without an app attached; an older engine host keeps the app gate.artifacts.exportismachine-owned (stillview), with a router fallback on an older daemon.RenderService.exportForLibraryis ready for O4's delivery. Dataset holds are keyed by the requesting client ref.mawsdnow counts as a need. No park is asked while one is in flight, and one that arrives after a park ask waits for that host's exit and goes to the next (src/mawsd/engine-requests.ts). mawsd spine: a command that waits on the engine host wakes it from its park #411's wake covered the spine's path, not the front's forward.WIRE_MINOR13 (master's 12 plus one). The manifest is regenerated once against master's and is additive.gate.ymlhunk: CI-opt's ci: keep unit-daemon e2e groups out of the home account #412 ownsLAUNCHD_E2Eand the sweep's order.e2e:render-hostjoinsCLASS1_E2E(on neither the VM nor the hosted list until CI-opt has evidence).e2e:daemon-idle-renderjoinsMEASURED_E2Eand has never been run.Validation Evidence
scripts/ci-gate.sh <worktree> --gates all --lane hosted --class1a pool --runner macoson 19a16b0 (tree bf2b90d9a962bae1c551db7397497dc2cccbb365), peeraef9ae01 (the merge base with origin/master), wire 3.12; this tree's 3.13, a minor apart. Run 41240013960: 52 jobs green (every e2e group, cross-build and render-host included, no flaky line). static was red only on.github/scripts/e2e-default-specs.test.mjs's relaunch count (the merged bare set's 103 specs), which 7922209 fixes. 7922209's diff against 19a16b0 is that one line. https://github.com/SSFSKIM/MAWS/actions/runs/41240013960successon attempt 2. Attempt 1's one failure wassrc/mawsd/process.test.ts, "an app is welcomed by the engine host it spawned…", inafterEach:ENOTEMPTY: directory not empty, rmdir '/tmp/maws-mp-*/supervisor'. That is the known teardown race (docs/tech-debt-tracker.md's 2026-10-28 row, first in run 40745591686; friction entrymawsd-process-test-teardown-enotempty). The teardown SIGTERMs the engine host and removes its directory without waiting for its exit. This PR'sengine-requests.tschanges whenmawsdasks a park, not what an exiting host writes or when a SIGTERMed host exits. https://github.com/SSFSKIM/MAWS/actions/runs/41245630105e2e:daemon-idle×3,e2e:daemon-idle-render×3,e2e:local-latency-daemon×1), launched by CI-opt on the architect's go after this PR's gate.Does anything poll the engine host through the new need path?
The architect asked this before the PR, because a request that counts as a need restarts the park clock. Answer, from a code read of every timer that ends in an engine-host-owned request:
engine-host.sockthrough the relay's raw forward, notengine-requests.ts. While an app is attached the park clock does not run anyway (clocks.ts'sparkDue).src/main/lane-b/remote-session.ts:311-327,idleRetryMsinlane-b/remote.ts:63). Each try sendssession.status(engine-host) through the endpoint's dispatch, which this PR routes throughengine-requests.ts. Before this PR the same loop already kept machine B's host from parking: each subscription's interest flips non-empty to empty, which restarts the park clock (clocks.ts'sparkConditionChanged), and a request wakes a parked host. Exempting the loop's requests from counting as a need would therefore not restore D6's idle exit; the interest flip would still reset the clock. The fix belongs to the loop (Residue). The other remote reads (SessionInfo, act queries) run only while a subscription is live, when interest already holds the host.MAWS_LOCAL_MACHINES), whose reads are gated on a live process.Unresolved Review Findings
e2e/cross-build.spec.tsdrives a session'sartifact_screenshotorartifact_exportcall on the unit daemons, and acceptance 2's session capture is shown throughdaemon.e2eRender. Left because it needs a replayed session calling the MCP tools on a unit daemon of the other build, which is more than this landing's scope. Where:e2e/cross-build.spec.ts,e2e/render-host.spec.ts:268.src/mawsd/front.ts:378-382,:421-431). It is safe today only because the seam starts a successor after its predecessor's exit and the backoff (M4's second review round). Left as is: binding them to the admitted connection is a refactor the seam's ownership rule makes unnecessary for now.Tracker rows (text for the architect to file)
src/main/hosts/daemon.test.tslock race.mawsd.lock150 ms after printingready, while the test writes the lock only after it readsready.existsSync(lock)fails (run 41226557941, unit 3/4).ready).src/main/machines/socket-link.tsgives every requestLINK_TIMING.requestTimeoutMs(10 s).artifacts.exportasked of another machine (a cold render host's start, a cold spine for the authors, then the export) runs well past 10 s, so A gives up while B finishes.COMMAND_BUDGETS_MSper command name, as main's machine binding does.src/mawsd/process.test.tsteardown ENOTEMPTY, a new sighting of the existing row and friction entry: run 41245630105, attempt 1, unit 3/4, the case "an app is welcomed by the engine host it spawned; daemon.restart exits 75 and the next mawsd adopts the same engine host". It is not this diff's (above).Residue
src/main/lane-b/remote-session.ts:311-327retries a subscription to a session that is not live on its machine every ≤30 s for as long as the tab is open. Each try readssession.statusfrom the engine host, and each subscription's interest flip restarts the park clock, so that machine's engine host never parks (D6). This predates O5. It wants a cheaper liveness check (amachine-owned spine read, or the endpoint's own session events) or a long idle backoff. It is O7's or O10's.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)