Repository navigation
Task Board B2b: M5, the live run with a real terminal session, and the board on by default - #925
Conversation
Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…e switch (the test, red) Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…e switch, as the sheet's do The holder's note from their read of #918: while the board was off, its four data routes answered 404 before the credential was looked up, while every sheet route checks the credential first. Now an unknown or revoked credential is 401 on or off, and off is 404 only to a known browser. The shell at /tasks, which needs no credential, is unchanged. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…lpers; the limits in the tracker The live run (M5's Concrete Steps 0 to 11) as one command on the Mac runner, pnpm e2e:board-live, its config the whole selection so no gate runs it. Built on the sheet's live support (live.ts, extended rather than copied: a terminal with no --plugin-dir and a mode that asks for nothing, the spend priced in one place, the run's own processes found by the scratch paths their environment names). - The scratch engine configuration has the sminos and task plugins installed at user scope from a doperpowers clone's own marketplace (cloned at main, holding the pinned set's commit); no session is given --plugin-dir. Every home is scratch, refused before anything is written if one is or holds a real home. - Step 0 checks the setup (the plugins listed, the start guide, the shell's sminos and task the installed ones) and stops the run as a fault of the setup; step 9 counts the wake only once the woken process's own environment shows the scratch configuration, the scratch sminos home and the run's model variables. - The woken session's teardown is registered before Done and ends it only once shown to be the run's; every process naming the scratch is ended before it is removed. - The project's log is read whole (chat --since --json) and known by writer and seq. - test/support/sminos-board-barrier.sh holds a task act until its file exists and counts the held acts, so steps 6 and 7 race nothing; a signal file holds the agent's revise in step 7. - BOARD_LIVE_* variables, each with a default; the model is the run's own credential variables, else ClaudeUsage's relay, probed first; a budget the rig enforces. - The pure parts (test/support/board-live.ts) and the barrier have unit tests. - Four tracker rows M5's Decisions list. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…root's script a filter of it The gate's Poppler collector reads every root e2e:* script as a group the hosted Macs could take, and could not read the rig's chained command; a root script that only filters into the page's package, as e2e:sheet-page does, it reads as elsewhere. And a supplied key's approval read from a local, not an index. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…ere the run's evidence lands Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
The pinned model and the partial run in the variables, the spend the cap watches and its fail-closed pricing, the bounds of the timed steps, step 9's exact notice and outcomes, the teardown's process lifecycle with a fake account, the barrier's deadline and its reaped children, and the planner's admission of e2e:board-live as a live group. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…teardown that sees exits board-live is a LIVE_E2E group (gate.yml, its minutes and its Chromium; the planner's flag test follows a package's own script), skipped unless MAWS_LIVE is 1. Haiku is pinned, another model only with BOARD_LIVE_PAID_MODEL naming it; the spend is watched every two seconds over every transcript, an unpriced call or the cap passed kills every process of the scratch, and the final count fails the run too. The steps stop at 50 minutes so the bounded teardown fits: the browser closed, the held acts released and seen to finish, the daemon, the terminals, the woken session taken by pid and start with both scratch homes and seen to exit, a sweep that tells a failed scan from an empty one, and the scratch kept, and named, unless nothing of it runs. Step 0 proves membership, the bridge and the commands' paths; one engine link serves the terminal and the wake, whose environment carries function hooks and whose bridge is checked; Chromium is launched inside the scratch with a scrubbed environment. Step 9 checks the background engine, the exact notice and its addressee, both outcomes by the keys their verdicts named, and every kind of log event for the note. A partial run fails as no acceptance. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…roup; the asker's engine in the holder A live run takes LIVE_GUARD_E2E's tool-time-heavy-live beside the groups it names, so the planner's board-live case expects it. The terminal's engine, which step 8 times from, is kept with the rest of what step 0 makes. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…cratch; the evidence asks both homes Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
Haiku with no variable naming another, Haiku prices alone, a complete transcript row that does not parse counted as past the cap, a woken process carrying any scratch path taken to be ended, a released act whose environment cannot be read waited for by its start, the scratch kept while the stopped step has not settled, and the relay looked at from this process. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…Chromium and the relay before any spend Once the run stops (its deadline, the cap, or its end) nothing starts: mawsd, a terminal, a prompt, the browser, an act or a POST by curl refuse, and every wait of `until` and `soon` stops at its next look, so the step the stop left running settles; the teardown waits for it (90 s) and keeps the scratch when it does not. A daemon's handle is cleared only by the stop that ended that process, and a second start refuses while one runs. The teardown ends any woken process that carries a scratch path; step 9's evidence still asks both homes. A released act whose environment cannot be read is waited for by its start. The cap prices Haiku alone, with no paid-model variable; a complete transcript row that does not parse is a breach (a last line still being written is skipped only while sessions run). The run's sminos calls are asynchronous, so the watch goes on beside them. The package script installs Playwright's pinned Chromium, and step 0 checks it before anything is spent; the relay is looked at in this process, bounded and loopback only, with no command run in the runner's environment. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
A process's identity is its pid and start alone, the same across the barrier's exec, checked against the account's own ps; an act whose exit was not seen keeps the scratch. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…ved acts kept, the fence latched A process is known by its pid and start time alone: the barrier's exec changes the command line of a held act, not its start, so a released act is no longer read as exited at the exec. The account's ps operations move beside the decisions that use them, where a unit case holds identity across an exec. An act whose exit quiesce cannot see keeps the scratch and fails the run. The run's stop fence stays latched after the teardown, so a continuation that never settled starts nothing later. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
Step 0's command check accepts the installed plugins' own commands, from the install path or the plugin's source in the scratch's marketplace clone; the teardown's waits settle after the run's stop; a dry run is named by BOARD_LIVE_DRY=1 and a run with neither flag is refused; the plan admits board-live outside a live run (DRY_E2E), on the home Mac. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…ands, the teardown's waits, a dry run Live run 1 stopped at step 0: the session's shell found sminos and task in the scratch's marketplace clone, not the install path. Step 0 now accepts each installed plugin's command from either of its directories (pluginDirs, commandProblems) and still refuses any other path. Its teardown then failed to close the terminals: the latched stop fence made the teardown's own waits throw. The waits and the fence move to test/support/live-waits.ts, where `settle`, bounded and unfenced, is the teardown's wait and `until` stays the steps'. BOARD_LIVE_DRY=1 runs everything that calls no model, with no session started: the setup, the registration and sminos's reader of it, the pairing and the empty board, the strangers, the daemon's stop, start and kill, the pictures, the teardown and sweep. Its evidence says DRY and never accepts. gate.yml's DRY_E2E admits board-live to a run that is not live, and MAC_HOME_E2E keeps it on the home Mac, whose relay the dry run checks; a run with neither MAWS_LIVE nor BOARD_LIVE_DRY at 1 is refused by its config. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…n's session default) Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…red) Both MAWS_LIVE and BOARD_LIVE_DRY at 1 are refused; step 0's path check wants one line per command and no other, inside the scratch by real path on both sides, held as a directory; the terminal's inert launch is checked. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…, the path check, the terminal's launch - runKind refuses MAWS_LIVE=1 with BOARD_LIVE_DRY=1: a job its launcher calls live must not pass as a dry one. - Step 0's path check wants exactly one line per command and no other line, and holds both the wanted and the found path inside the scratch by real path, every link resolved, with within() in place of a string prefix; the scratch's install check resolves links the same way. - The dry run starts the terminal through the same launch (tmux, env -i, the env file) with an inert command in the engine's place, checks it ran with the scratch's HOME, configuration, sminos home, temporary directory, project and engine first on PATH, records what it saw in step 0's evidence, and leaves it for the teardown to close through closeAll. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…ry marketplace's commands Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
The door's environment as the barrier records it, checked key by key (never a value) against the scratch and the run's model; the daemon's SHELL that runs MAWS's capture with no login profile; the barrier's record of every call's environment. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…on's own environment, checked before any wake Paid run 2 stopped at step 9: the woken session ran with none of the run's model variables and the machine's PATH first. MAWS runs the door with its login-shell capture (`$SHELL -ilc 'env -0'`), and the daemon's SHELL was /bin/sh, whose login profile ran the machine's configuration into it. - The daemon's SHELL is the scratch's CAPTURE_SHELL, which runs the captured command with no profile, so the capture is the daemon's own environment. - The barrier records every call's environment (SMINOS_ENV_RECORD), owner-only inside the scratch, each call's replacing the last. - doorEnvProblems checks it key by key, never a value: the scratch's homes, every model variable the run's, function hooks on, the scratch's engine first on PATH and its claude the first found, no gateway settings, no session id. Step 1 makes a first door call and checks it, dry or live; step 9 checks the restarted daemon's before the Done is pressed, failing closed; step 11 checks the last. provenRun checks HOME too. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…tch, the tests first (red) Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…tch, accounted for and removed Paid run 2's woken engine made /tmp/cc-daemon-<uid>/6a6876c4/, outside the scratch: the engine names an entry there by the first 8 hex of the sha256 of its configuration directory's path. The rig lists that directory before the run, names what is new there in each step's evidence, and the teardown removes only the new entries named for the scratch configuration, once the sweep shows nothing of the scratch running; any other new entry is reported and left alone. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…ments (TS2339) Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…s first (red) The daemon's entry named by the sha256 of the configuration's resolved, NFC path; the before/after difference with the run's own entry, others and siblings gone; the daemon's environment read from its `ps -E` by the door's check; the session's bg job in the daemon's log; a copied log's credentials redacted; the woken session's calls on the pinned model. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
… goes through `claude --bg` hands the woken session to the scratch configuration's engine daemon, whose environment is its first launcher's (the door's) and gives the session its model route; the session's own `ps -E` shows only its spare worker's start-up environment, without the model's variables, which is what paid run 2's check read. - Before the wake, besides the door's environment: a daemon of the scratch configuration that already runs must pass the same check, read from its `ps -E`. Fail closed. - After it: the session carries the scratch configuration and sminos home; the daemon runs and passes the check; its daemon.log names the session's bg job; the woken session's calls are on the pinned model. - The daemon's entry under /tmp/cc-daemon-<uid>/ is the sha256 of the configuration's resolved, NFC path; step 0 records it. The teardown copies daemon.log (credentials redacted), asks the daemon to stop under the scratch configuration so it removes its entry, removes the entry if it stayed, and fails on any other new entry there, which it leaves alone. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
No code path asks the engine to stop its daemon; a control socket in the scratch's entry before the wake needs a running daemon proven the scratch's; a copied log's credentials redacted longest first, in one pass. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…entity, the pre-Done check closed, the teardown's order - The engine's daemon stop verb is gone: its handler also stops the account's installed background service, whose launchd label no configuration qualifies. The teardown sends SIGTERM only to the daemon proven the scratch's (a `daemon run` process of the run's marks whose own environment names the scratch configuration), waits for its exit, bounded, and removes the scratch's entry only when the before-listing did not hold it. - An entry of the scratch's name already under /tmp/cc-daemon-<uid>/ refuses the run at setup. Before the Done, a control socket in that entry needs a running daemon proven the scratch's whose environment passes the check; an owner that cannot be identified or read stops the step. - The teardown copies daemon.log inside its attempt, and removes the door's environment record once D has stopped, kept scratch or not. - The per-step listing delta is cc_daemon_delta; the copied log is redacted longest first in one pass. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…e read, the tests first (red) Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…e read, the barrier's temporary records removed - processOps.scan reads each process's start with its argv and environment (`ps -o pid=,lstart=,command=`, TZ as identity's). scratchDaemon takes the scratch's engine daemon from that one read: its argv anchored on the engine's `daemon run`, of the run's marks, naming the scratch configuration, held with the start that read gave, so `end` rechecks that start before SIGTERM and again before SIGKILL and a pid taken by another process meanwhile is never signalled. The sweep holds what it ends by the start read with its marks, the same way. - The teardown removes the door's environment record and any `door-env.<pid>` a barrier was writing, once D has stopped and again after the sweep. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…gine records it, the tests first (red) Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…ext as the engine records it
Paid run 3 stopped at step 9's "its start context names the act": the
reader took only `hook_additional_context`, which the engine makes from a
hook's JSON additionalContext, while sminos's SessionStart hook prints plain
text, recorded as a `hook_success` attachment (hookEvent SessionStart); and
it read once, though a resumed session's start row can land after the
notice's.
- hookContextFrom reads SessionStart `hook_success` rows (content, else
stdout) beside `hook_additional_context`, and marks an output the engine
kept in a file ("saved to:"), which step 9 fails on with that reason.
- Step 9 waits for the start context to name the act (TURN_MS), then checks
the decline line and the absent titles on it.
- From the Done's press on, a failure writes 9-woken-rows.jsonl: each row's
type, attachment type, hook and event, and its text's first 300
characters, credentials redacted.
Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
… (TASK_BOARD_DEFAULT_ON) Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…t, the default on Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…five rig rows to the tracker The default turned on starts the board's watch, which reads the store by itself; the case that proves the service runs nothing until asked now says so. The review's other findings are rig limits, logged. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
… default With the switch unset the board is on (4102c10), so a paired tab is sent `{ t: 'board' }` beside the sheet's own messages, at a time of its own. The cases whose subject is the sheet read its frames past that message (`Tab.sheetNext`, `Tab.sheetFrames`) with the switch left unset; none pins it off, since none holds the whole wire's sequence as its subject. One case is named for the default: a sheet-only tab is sent one `board` message beside the snapshot, and the sheet's own messages, their order and a change's flow are as without the board. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 436e1883c3
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| # The live groups a run that is not live may take: run with no run flag they call no model. board-live's dry run | ||
| # (BOARD_LIVE_DRY=1, given its job as `--e2e-env`) does everything the live run does but start a session, and its | ||
| # config refuses a run with neither MAWS_LIVE nor BOARD_LIVE_DRY at 1, which would pass having run nothing. | ||
| DRY_E2E: board-live |
There was a problem hiding this comment.
Set the dry-run flag in the native board-live job
When gate.yml selects e2e:board-live without a live run, this exemption admits the group, but the shared e2e-env sets MAWS_LIVE to an empty string and never sets BOARD_LIVE_DRY. The e2e step invokes the package script unchanged, so board-live.config.ts calls runKind(process.env) and throws because neither flag is 1. Consequently, native non-live board jobs always fail after building instead of exercising the dry rig. Set BOARD_LIVE_DRY=1 for non-live board-live jobs; the external CI-opt launcher's environment override does not cover this workflow.
Useful? React with 👍 / 👎.
launchEnvironment is to name MAWS_TASK_BOARD=1, so the sidebar's Tasks row is drawn on every runner whatever its shell says; e2e/support/scratch-env.ts does not yet. Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
…me the Tasks row With the board on by default, B3's Tasks row (N1) sits under New chat, so shell.spec's Tab walk and its order of the App destinations meet it. Both now wait for the row and name it in its place, found by `data-tasks-row`, since its accessible name may carry a count. launchEnvironment pins MAWS_TASK_BOARD=1, the default: mawsd reads the switch from its environment before the runner's login shell, so no runner's shell can take the row away. A spec's own `env` still turns it off (lane-a's). Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)
|
Landed on master as bdc3e2e (gated tree). |
Task Board child B2, second landing (B2b): M5 of
docs/doperpowers/plans/2026-11-28-task-board-b2-local-page.md, the live run on the project's Mac with a real terminal session, and the board turned on by default. Closes #905. B2a (M1 to M4) landed as #918.What it adds
apps/sheet-page/e2e/board-live.rig.tswith its helpers inapps/sheet-page/e2e/board-live.tsandtest/support/board-live*.ts,live-waits.tsand the barriersminos-board-barrier.sh, all unit-tested where the logic is testable. It is run bypnpm e2e:board-liveunder its own config. Every home is scratch and is asserted so: the engine's configuration, the sminos home, MAWS's profile, the doperpowers clone and the browser. The run is Haiku only, under a spend cap the rig enforces from the transcripts. The terminal runs in tmux and the page in Playwright's Chromium, and nothing is left running at the end.ps -Eshows only a pre-started worker's. The daemon's per-uid/tmpentry is accounted for before and after, and the daemon is ended by its proven identity, never throughclaude daemon stop, which also stops an installed service.BOARD_LIVE_DRY=1, the rig runs every step that calls no model, including the terminal's launch with an inert command, and its evidence is never acceptance.board-liveis the gate plan's oneDRY_E2Egroup, admitted outside a live run. A run with both flags set, or neither, is refused at load.src/mawsd/sheet-page/handler.ts), with a test.TASK_BOARD_DEFAULT_ONis true. The board's routes, its registration and the spine's board watch, which includes B3's board in the app, are on in everymawsdand app that sets noMAWS_TASK_BOARD.MAWS_TASK_BOARD=0still turns it off.Validation Evidence
Nothing was built or run on a workstation. The ci-kit pool is down, so class 1a and the Linux e2e groups ran on GitHub-hosted
ubuntu-24.04with--class1a linux, and the Mac lines ran on the mini through CI-opt's gate tool.0115a0f0bb12-20261130T153136Zat 0115a0f,--gates e2e:board-live --e2e-script e2e:board-live --live --evidence, 1 passed in 1.8 min. Its evidence:accepted: true;/tmpentry was the run's alone and exited, with nothing foreign, nothing gone and nothing left;--e2e-env 'BOARD_LIVE_DRY=1'and no--live, the last on 0115a0f (0115a0f0bb12-20261130T150522Z). Each spent US$0./tmpentry. Run 3 (US$0.005) was the start line read from the wrong row type. The spec's Outcomes "B2b" carries what each taught.scripts/ci-gate.sh eb1183f4b --gates static,unit,probes,e2e:sheet-page --class1a linux, run 46476312951: static, probes and e2e:sheet-page green. Unit 3/4 hit the knownassistant-ink.test.tsx5000 ms slow-runner timeout. The rerun,--gates unit, run 46535238946, had unit 1/4 to 4/4 green.boardmessage while its own frames and flow are unchanged.src/services/index/source.test.tsread red once (run 46454952078). It is a 20 ms settle in code this branch doesn't touch.226859cb5e2d-20261130T160238Z): the app's board and B3's marks;436e1883c338-20261130T163235Z);eb1183f4bdbd-20261201T000959Z) and e2e:layout 27 passed (eb1183f4bdbd-20261201T004825Z).claude daemon stop --anyable to stop an installed service, and it was fixed before any paid run reached it;Unresolved Review Findings
Each is logged in
docs/tech-debt-tracker.md:.github/workflows/gate.yml: the repository's own workflow passes noBOARD_LIVE_DRY=1, so a native dry job builds and then refuses. It fails loudly and spends nothing; CI-opt's launcher passes the flag.apps/sheet-page/e2e/board-live.rig.ts: the timed bounds (2 s and 5 s) aren't under the measured-job settle. Run 4 met them with room.test/support/board-live.tsspendOf: one-hour cache writes are priced at the five-minute rate, an undercount far inside the cap.apps/sheet-page/e2e/board-live.ts: a job cancelled mid-run has no job-level cleanup. Runs are watched and one at a time.apps/sheet-page/e2e/board-live.rig.ts: a clone URL carrying credentials would be logged verbatim. The default URL is public.Residue
None.
Sminos-Session: event-manager#a66cd55b (doperpowers on macbook)