Skip to content

Question sheet C4b: the local page live on a Mac, and on by default (M5) - #894

Merged
SSFSKIM merged 25 commits into
masterfrom
question-sheet-c4
Nov 28, 2026
Merged

SSFSKIM merged 25 commits into
masterfrom
question-sheet-c4

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Part of #869. This is the second and last of C4's landings; C4a was #886.

The question sheet's local page, landing C4b: milestone M5 of docs/doperpowers/plans/2026-11-24-question-sheet-c4-local-page.md, a child (C4) of docs/doperpowers/specs/2026-11-23-question-sheet-design.md.

From this landing on, the default mawsd serves the page and registers it. SHEET_PAGE_DEFAULT_ON is true. It was set only after the live run on a Mac passed. MAWS_SHEET_PAGE=0 still turns the page off, in the daemon's environment or in its login shell.

  • The live run.
    • Setup: a real terminal session (Haiku), the real sminos, a private mawsd on a port of its own, and scratch homes. A driven Chromium does the person's part.
    • The rig: apps/sheet-page/e2e/sheet-live.rig.ts and live.ts drive the plan's twelve steps.
      • Only apps/sheet-page/live.config.ts selects it; no gate runs it.
      • It writes only under a temporary directory.
      • It starts the terminal, git and curl with the scratch home and no shell startup.
    • The run of record: all twelve steps passed on this landing's code with C3's second landing merged in, so the page was seen once with the components it ships with.
  • The page passes C3b's live to its sheet. A queued answer's card says the session is stopped only when it is.
  • The focus outline. C3 draws it on the card the page's outline opens; a pointer's click inside a card draws none.
    • The outline's chosen line is now its one current row, kept by the page until the person scrolls the column themselves: closing and reopening the drawer, pressing or typing in a card, a refresh or a resize do not move it.
    • The page opens at a card only through its outline panel. No address fragment acts (T20).
  • C3's attempts.ts: a press the page's storage refuses no longer leaves its prepared call in the waiting map (dropAttempt). This is C4a's residue.
  • One stranger observer, apps/sheet-page/e2e/observe.ts, is shared by the gate's strangers.spec.ts and the live run. Step 8 reads the foreign WebSocket's 403 handshake from the browser itself.
  • docs/tech-debt-tracker.md gains the ten limits M5 states, one row each. The row on a program that holds the port cites Question sheet page: close the two gaps against another account on the same Mac #887: the owner's ruling to ship with that limit against another login account.

Validation Evidence

  • Gates:
    • The plan's whole set on 925965f91, the commit that turns the default on: scripts/ci-gate.sh <worktree> --gates static,unit,probes,e2e:sheet-page,e2e:supervisor-daemon,e2e:daemon-unit,e2e:lane-a,e2e:transcript,e2e:desk-web, run 46171998779, green.
    • After master and C3's second landing were merged (365d58d24): static, unit, probes and e2e:sheet-page, green on f6f11f06e (run 46175596572), on 916e1ca84 (run 46177060955), on 85591d0b0 (run 46178063518), and, after the branch review's fix wave, on 6c9a79bd7 (run 46180724330). The head 2feeb20e9 adds only the plan's and the report's text after that run. The other lanes stand on run 46171998779, because the merge changed the page's bundle and nothing those lanes drive.
  • The live run of record, on 44d631523 (the branch review's fix wave, whose rig assertions changed): all twelve steps passed. Each acceptance clause has its step:
    • A.a: step 4, the terminal's own link opened unpaired shows the pairing screen.
    • A.b: steps 4 and 10, the overview with a running session, then the stopped one apart.
    • A.c: step 5, five cards left without a reload.
    • A.d: steps 3 to 7, 9 and 10, the composite's acceptance 1 to 6 end to end:
      • eight questions in one call;
      • "Changed since asked";
      • three answers in one Send, a pick among them, quoted by the agent;
      • "Updated" with the draft kept across a reload;
      • a dismissal that starts no turn;
      • a stale Send coming back with its draft;
      • a queued answer delivered "while this session was stopped".
    • A.e: step 8.
      • A 200 from the daemon came first.
      • Then the refusals: 421, 421, 401, 403, 401 and 403.
      • The second origin's page read every line refused, the frame included. On the wire: 403, 403, 401, 405, 403, 403. The browser reports the WebSocket's 403 handshake, with no frame sent.
      • The record's inbox and uploads were unchanged.
    • A.f: steps 2 and 12, sminos sheet surfaces reads it alive. It is gone after a clean stop. After kill -9 it reads not alive at once, and stale after 30 s.
    • A.g: step 12, a question asked while the daemon was stopped shows in the open tab when it returns, with no reload.
    • A.h: step 3, the terminal's line names the page's link.
    • A.i: step 9, the page's Send raced sminos sheet answer. One was applied, and the page read "already answered".
  • The app archive carries the page: pnpm build:app, then asar list … | grep -c '/out/sheet-page/index.html', printed 1.
  • Tests seen red before each fix:
    • apps/sheet-page/src/views/no-room.test.tsx: the refused press's attempt is dropped.
    • apps/sheet-page/src/views/live-state.test.tsx and the stopped and running browser cases in sheet.spec.ts: live.
    • apps/sheet-page/e2e/outline.spec.ts: one current row, at once and after the column settles, for a last card too; the last card chosen in the 480 px drawer is still the lit row on reopening; typing in its field, then a refresh and a resize, keep it; a wheel scroll releases it.
    • src/mawsd/sheet-page/serve.test.ts: the default serves, and both opt-outs turn it off.
  • The run's spend: about US$0.04 across five runs, on Haiku. Run 1 stopped at step 12 on the rig's own marker, not on the page. Runs 2 to 4 passed before the run of record.
  • Not checked: Safari and Firefox. They are the tracker's stated limit, as the plan names it. The pictures of the built page are with the composite's writer, outside the repository.

Unresolved Review Findings

The branch review of this pull request (high, f0a7b2e71..85591d0b0) found six things. Five are fixed (a33ced820..6c9a79bd7) and one is shipped with:

  • Fixed, the outline's chosen row (two findings, one cause). The pin lived in the panel's component and any press released it. Now the sheet view keeps the chosen line, and only the person's own scroll of the column releases it (SheetView.tsx, SheetOutline.tsx).
  • Fixed, the rig:
    • a failed scratch setup now removes its directory, the gateway environment with it;
    • step 5 compares the answers in the sheet's order and finds the pick by id;
    • a required picture that fails now fails its step.
  • Shipped with, logged in docs/tech-debt-tracker.md: a MAWS_SHEET_PAGE=0 exported only in the login shell is not honoured on a start whose shell capture fails or times out (src/mawsd/sheet-page/serve.ts, decide()). The capture falls back to the daemon's own environment, the repository's rule for every reader of it. It is rare, what is served is the loopback-only paired page, and the daemon's own environment still turns it off.

The task reviews' findings were all fixed in this landing:

  • the rig's isolation from the real home, and its file boundary: it writes under /tmp alone, never in the checkout, and its children get a scratch TMPDIR;
  • step 8's WebSocket proof;
  • the pick and the rewritten question, checked live;
  • the Concrete Steps' order.

The boundary fix 85591d0b0 was checked with a probe, not another review round. With TMPDIR set to a home, the guard refuses that home and the checkout, and accepts a path under /tmp.

Dismissed: live evidence for HTML or SVG drawn as text and for no outside requests. The plan's acceptance table gives those to M2 and M4, which prove them on the gate.

Residue

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)

…pared call

When the page refused a press for want of storage (noRoom), the call C3's sheet had
prepared for it stayed in attempts.ts's waiting map, with the lines it captured, until
that session's next launched Send or a reload. The sheet's components now export
dropAttempt, and the page's memory drops the refused press's attempt where it refuses it.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…r suite

A Playwright driver for M5's Concrete Steps 1 to 12 and the pictures: a private mawsd
under the switch on a port of its own, a real terminal session in a tmux server of the
run's own, the real sminos, and the page driven in Chromium. Its own config is its whole
selection; the suite's config collects *.spec.ts alone, so no gate runs it.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…dence, not in it

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…s own reload

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…idence as the plan states it

The ten rows of M5's stated limits went in with the rig's marker commit (9a29111); this
corrects the one whose evidence named the live run before it had run.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…DEFAULT_ON)

M5's live run passed every step on a Mac (a real terminal session on Haiku, the real
sminos, the page driven in Chromium, a private mawsd on its own port), so the default
daemon now serves the page and registers it, on the owner's answer that it is served by
default. MAWS_SHEET_PAGE=0 in its environment or its login shell still turns it off, and
every test launcher still forces it off (T2).

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The rig that drives them, port 47591, the prompts as given, step 8's session parameter,
the strangers' statuses on the wire, step 11's Safari and Firefox left as the tracker's
limit, and step 15's test of the constant.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)

# Conflicts:
#	docs/tech-debt-tracker.md
…te (C3b's live)

A queued answer's card reads stopped only where the page's sessions say no process holds
the session; on a running session, or one the page does not know, it reads not yet picked
up. Workspace passes its summary's live through SheetView to SessionSheet. A unit case for
each, and a browser case for a running session's queued card beside the stopped one.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
A card the outline leads to draws C3b's focus outline, wide and in the narrow drawer; a
pointer pressed inside a card draws none.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…e and the live run

What the browser records of a stranger's tries (the status on the wire, its word that the
live connection's handshake was answered 403, the frames sent, its word that the frame was
refused) moves from strangers.spec.ts into e2e/observe.ts, so the live run judges step 8
the same way the gate does.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
- The run's evidence directory is checked before the runner starts, and Playwright's own
  output, which it clears first, is a directory made fresh under /tmp for the run.
- tmux runs with the scratch HOME and /bin/sh, the pane's command as an argv; git init
  with the scratch HOME and no system or global configuration; curl with -q.
- Step 8 is its own function and judges the foreign WebSocket by the browser's word of a
  403 handshake with no frame sent (the shared observer).
- Step 5 checks the pick in the delivery block; step 9 the rewritten question's text, and
  pictures the already-answered note; step 4 pictures the focus outline on the card the
  outline opens; step 10 reads a stopped session's queued sentence, now that the page
  passes live.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…the task review

The rig's steps apart from the commands of 13 and 15, and their order as run; the run of
record on the merged head; the focus outline in step 4, the pick in step 5's delivery, the
live connection's 403 by the browser's word in step 8, the rewritten question in step 9,
and step 10's deliberate reload and its stopped sentence.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
A line chosen was not current until the scroll it caused was heard a frame or two later,
and then the card nearest the top was (the column ending on an earlier card), so two rows
read as lit beside the pointer's hover. The chosen line is now current at once and stays
so through the scroll its choice causes, a last card included; the person's own move of
the column (a wheel, a touch, a press, a key) gives the mark back to the column. A chosen
question no longer open gives it back too. The browser suite's case for it, and the
pointer case now checks the card took focus before reading its outline.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ctory

SHEET_LIVE_OUT must resolve under /tmp or the system's temporary directory; Playwright's
own output is made fresh at every read of the config, no inherited path trusted; tmux's
socket lives in the run's scratch. Step 4 checks the one current row and moves the pointer
off the panel before its picture.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…here the run writes

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… checkout, and gives its children a scratch TMPDIR

The environment's temporary directory can name a home (TMPDIR), so the evidence
guard trusts /tmp alone and refuses a path in the checkout; the terminal's
environment no longer inherits TMPDIR.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 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-28T19:02:18.979136Z 85591d0 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.

…rson scrolls the column

The outline's chosen line was held in the panel and released by any press or key in
the column, so a narrow drawer's choice, a hidden and reshown panel, or typing in the
chosen card gave the lit row back to the card nearest the top. The sheet view now holds
it and releases it only on a scroll of the person's: a wheel, a moving touch, a press
on the scroller itself, or a scrolling key outside a field or control.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…5 reads the sheet's order, a step's picture is required

A scratch whose sminos init failed stayed under /tmp with the gateway's environment in
it; it is now removed with the error. Step 5 expected the three-option question first,
while a Send writes its lines in the sheet's order; it now compares in the page's
card order and finds the pick by id. A failed screenshot no longer passes as one taken;
only the evidence of a step already failed is taken as it can be.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…apture fails (C4, branch review of #894)

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…anch review of #894

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ch review of #894

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
@SSFSKIM
SSFSKIM merged commit f456677 into master Nov 28, 2026
@SSFSKIM

SSFSKIM commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

Landed master-first as f456677 (parents f0a7b2e, 2feeb20; tree = the head's). Branch and worktree left to their session.

Sminos-Session: master-landing-architect#37052769 (MAWS on macbook)

SSFSKIM added a commit that referenced this pull request Nov 28, 2026
…fault, #894)

The composite's C4 Status, Progress and Tracking Map row say landed; section 8.2
says how the page is turned off and its logged limit, and the outline's chosen
line as built. The plan's last Progress line is ticked.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 28, 2026
…launch, the Auto card retired, fold on click

master-first; class 1a 46194594972 and desk-web 46194606361 green on tree d67b3da (= head). Mac groups at 96dcf68; since then only master's #894 (the sheet page's default and an export the app doesn't call) and docs. The owner approved the pictures 2026-11-28. Hand resolution of src/services/attention/service.ts at the merge of f0a7b2e (the sheet's items beside obs4's mode fields), described in the PR. Adds --allow-dangerously-skip-permissions to ENGINE_FLAGS (src/engine-host/launch.ts).

Sminos-Session: master-landing-architect#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