Repository navigation
Question sheet C3a: the pin, the model, the service and the components (board #868) - #879
Merged
Merged
Conversation
…pp (board #868) The plan child C3 of docs/doperpowers/specs/2026-11-23-question-sheet-design.md at parent pin 635073c: the constraints, the eighteen decisions the composite left to the child (X2 agreed: MAWS runs the sminos command, and how it finds it), the interfaces (the pin, the model, the reader and its service, the wire, the door, the composite's X5 as two directories, the side sheet, the sheet items, the row), six milestones in two landings, and the entries for the composite's writer, the owner and the ux-wave session. Written against the published set as doperpowers pull request 628 carries it, unmerged: M1 fills the pin and corrects the shapes to it. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…paired The plan's one review round (2026-11-24). Each finding was checked against the code and held. Five were ruled by the composite's writer the same day; the rest are repaired as the review proposed. Ruled, and what the text said before: - A carried draft. Before: a draft was moved onto a new revision by code and sent with the next Send. Now: it stays at the revision it was written against and is neither counted nor sent until the person keeps or edits it. - The Send. Before: one answer line a draft, in chunks of fifty. Now: one call of the door and at most fifty inbox lines, an edit of a queued answer a retract and an answer together, the rest left as drafts, a failed Send sent again as the same lines. - The locator. Before: a named path, any installation of the plugin (user scope first, else the latest), then PATH, probed at sheet.list. Now: a named executable or an enabled user-scope installation, nothing else, and nothing run until there is a record to answer. - Receipts across a parent's and a child's history. Before: every outcome derived from the transcript, a subagent's included. Now: a row shows what its own history holds, the record supplying the rest while it lives. - Links. Before: the transcript's Markdown allowlist stood for the page's rule. Now: the sheet's Markdown has its own policy. Repaired as reviewed: the endpoint's refusal (by-effect grades with no-rule rows), the session id's form and confinement under a record, the join to the index followed, the arrival's two producers, the two-window proof (a barrier and a staged outcome keyed by append order), the reader's verified pair under a moving record, the stored call's reasons, the store's subscribe-then-list order, the sheet item's id as an address, the live setup with the checkout's plugin. Shapes brought to the set at doperpowers 9f4860205. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The owner answered on the drawn example (2026-11-24), each answer the recommended one: a head line on a sheet call's row; the option's preview under the options, beside from 560 px; an open sheet question does not raise the jump pill; a stopped session's questions count in Needs you and the dock badge, their row drawn calm. No objection to the frames, so the drawn example is the look. "The look" now records the answers verbatim, L1 to L6 as settled with the place each lives, what the composite's writer settled where the drawing showed a gap (the sentence a line shows, the preview with no focus, eight lines then "N more", the tab's title "Sheet", the head line's other forms, a refused entry's number, the stale card's badge, the waiting line when narrow), what each drawing milestone builds to match the frames, and what the frames do not show. Before: six open cards with defaults, and M3 onward blocked by the look. M3 is blocked by M1 alone. The calm Needs you row is M4's, from the info token. firstSentence becomes questionSentence. The parent pin moves to 8064524, and the entries for the composite's writer that the composite has taken leave the list; nine remain. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… the carried draft is seen in the built look Two rulings of the composite's writer on the plan's open points. The calm tone was built for a stopped session alone; the owner's standing ruling (calm state only) covers a running one too. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…), M1 unblocked; parent pin 5f53131 Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…94002af) The sections were written to the set at 9f4860205. What the text said before: - §A: "This document's §B to §D are written to the set at `9f4860205` ... What the pin holds binds; M1 corrects these sections to it where the merge differs, before M2 starts." - §B, SheetSent: "by `state`: queued (with `cancelled` where a queued retract names it), accepted, delivered, stale (with `current`), closed (with `how`), retracted, too-late". The pin discriminates a queued entry by kind: answer or dismissal (id, cancelled), retract (target), a delivered line (neither). - §B, modelOf's pitfalls: said nothing of a lone surrogate in state.json's strings; the pin prints each as U+FFFD. - §C, following records: said nothing of an inbox that shrinks; the pin's README names the unlocked reader's glimpse of a short write or rollback. - Concrete Steps, M1: copied with `cp -R` from a checkout at the merge commit; now `git archive` of the commit itself. - M1's first decision: had the executor compare and the controller correct after; the correction is now done before dispatch. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…revision (#875) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The sheet's published set, copied whole from doperpowers' merge of pull request #628 (sminos 1.57.0, set version 1) into test/fixtures/sheet/set with its provenance; a test recomputes its digest three ways. src/shared/sheet holds the model's types and schemas, the reader's computation (held to every show.*.json of the pin), the stored call's entries and ids, the delivery's block, and the draft and the Send. src/services/sheet/reader.ts lists a home's records and reads each as a verified pair of state.json and the inbox's tail. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ntries, RecordIo.entry, the upload request, sendOf's stop)
The door's results were stated as SheetSent; at the pin put prints
{key, state: 'queued'} or the bridge's verdict under its own name
(applied), so they are SheetPutEntry.
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…d §G (the composite's writer, 2026-11-24) SpineRoot.sheet; body serves any well-named upload; the locator's rule inside the service; the upload's signature check in the service; SheetOverview's hrefOf; the link policy as one exported predicate; ReferenceView's image from host bytes only (a data: URL). Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…s, queued sent projected by kind, record identity, fixed unreadable reasons) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The reader keeps a verdict under the inbox key __proto__ (zod's record dropped it), projects a queued sent entry by its kind, and reads a record whose state names another session, is not UTF-8, or whose directory cannot be looked at as unreadable, each with a fixed sentence that names no path and echoes nothing of the record. A call whose outcome is not known draws no id, a revise's included. The pin's test also holds the manifest's version to the provenance's. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The __proto__ fix let a malformed verdicts list through as a map (an
empty list as {}, a list of pairs as their map); only a plain object is
read as one now, and anything else reads as a state this build does not
read.
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)
… sheet's C3 Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The spine's sheet service (src/services/sheet/): it follows every record under the sminos home (a watch and a poll), announces each change as a summary (sheet.changed), joins each record to the index's session, reads a model on demand, appends through `sminos sheet put` found only when there is a record to answer (MAWS_SMINOS_CLI, or an enabled user-scope installation, proven by its probe), and serves a record's bodies and takes its uploads, confined to the record and checked by their raster signature. SpineRoot.sheet hands it to C4's page in process. The wire: the sheet namespace (five commands, one event, WIRE_MINOR 63), graded by effect with a no-rule row each so no remote caller reaches it; sheet.put's budget. The window's store connects in lane A's order and reads a watched session's model, the later read winning. The stand-in door and the live gate's barrier for tests. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…mmands A session in the engine's id form with no record, which the sampler's guess cannot meet; a put of no line and an empty image, refused before anything is located, run or written. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…d's data-sheet-question for C4's outline (§G) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…cond, no probe without a record, the door's answer checked, read not held by the probe, re-list on reconnect) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
src/renderer/src/sheet/: QuestionCard, OutcomeCard, SessionSheet, SheetOverview, ReferenceView and SheetMarkdown with its link policy sheetLinkAction; the host type, the surface's memory with reconcile (S13 to S15), the copy, and a recording host and the pin's reader under test-support/. Built to the drawn example and the look's settlements; tokens and today's option rows only. An ESLint block holds the directory to its boundary (no Electron, no Node, no window.maws, none of the app's IPC, stores, panel, session, lanes or tools). The harness gains #sheet, drawing any side of the pin, frame 2's card states, the narrow and compact forms, the notes and the overview over a host that records what it is sent. desk-web's own project renders the sheet through the consumer's import path and clicks its links through an injected host. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…cate
memory.ts reads an inbox line's state from the sheet's model ('delivered' is
a SheetSentState); it is no attention item's state, which the test guards.
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…Send releases its hold Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…emory (the composite's writer, 2026-11-24) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…y no destination, late pastes, what Send may take, shared memory, focus) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ld out of Send, links drawn by the sheet's policy - The memory names a Send by its attempt; a window-level registry keeps each call's answer until a mount showing a memory that still holds that attempt settles it against the memory as it is then. A sibling's call in the air is waited for; one this window does not know is offered again; a gone mount hands back nothing. - A Send the door answers refused, no-sheet or unavailable releases its hold, keeps every draft and notes the reason; busy, failed or no answer still offers the same lines again. - A pasted image joins the draft as it is when saved (onAttach), without confirming it; a failed save is noted. - A draft another surface answered over, or whose queued answer is gone, stays visible as a conflict and out of Send until the person keeps or discards it; a text past 20,000 code points stays editable, marked and out of Send. - Every act of a Send names its question, a retract's included. The hidden line reads its question's header. - A focus request waits for its question and is used once. - Markdown gains an optional link component; the sheet draws its links by sheetLinkAction alone (a refused link has no href), decoding a path once. References are keyed and disclosed by entry, not hash. - The reference types narrow properly; the workarounds are gone. The preview's container is the card's own box, and the compact chevron turns. - ESLint refuses a dynamic import of the app's renderer paths in the sheet, proven by test/sheet/boundary.test.ts. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ey the secret scan read as a key renamed The reference schemas, written out per variant, render sheet.read's output with its properties in another order and the same shape (wire.test.ts's own verdict); rewritten with MAWS_WIRE_MANIFEST_WRITE=rebase pnpm wire:manifest. The hidden-line test's invented key `maws-fixture-0009` matched gitleaks' generic-api-key rule; it is `maws-k-0009` now, as memory.test.ts's. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… run without a record, one budget per put The task review's findings, as the plan at 180e5aa rules them (§C, §E, §F): - the sheet's root, while it does not exist, is looked for every 250 ms, so a home's first record shows within a second - a put to a session with no state.json answers no-sheet with nothing located or run; an upload is served only from a record - the door's exit 0 is taken only when it names the session asked for and holds one result for each line sent, by key - a read answers without waiting on the probe, the door's state as it stands; a put's probe and door share its one 25 s budget - the window's store lists again at every new connection to the machine's host, applies held changes after it, and reads every watched session again - the poll is not installed once the service has stopped during its first scan Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ws, and the door's bound holds against SIGTERM - when the locator moves the door's state, the service announces every record it holds, its summary as it was, to the windows only (not the service's own listeners): a window re-reads what it watches and takes the new door, and the next sheet.list carries it; no wire shape moves - runSminos answers timed out at its bound whatever the command does, sends SIGTERM and SIGKILL after 500 ms, so a launcher that ignores SIGTERM holds neither a put nor the shared locator past its budget Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…h, the link seam, the conflict's words, headers) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…a whole memory (M3 re-review) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… completions owned by their session - SessionSheet's onMemory takes an update (§G, be13240): every transition, a Send's start and its answer, an edit, a note closed, a late image, reconcile, is a function of the memory as it is when applied, so two mounts' completions in one batch both stand. - A Send's answer lands once, through the update the Send was made with, whether or not a mount still shows the session; the registry keeps only the attempts in the air, and forgets each when it lands. settle acts only on a hold still sending, so a busy answer settles once. A host whose send throws before returning is a failed Send. - A pasted image is handed to the onAttach the card had when it was pasted, carrying that session and question. - A reference view is keyed by its place and its capture's hash, and draws a body only for the capture it was fetched for. - A revision without a header forgets the remembered one. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…M3's second fix round) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… lines were built from startSend takes the drafts the person saw when they pressed Send, and each answer's act records that draft, not the one in memory when the update is applied. An image whose update lands between the press and the Send's update changes the draft, which then stays a draft when the model shows the answer queued, instead of being dropped as sent. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…t) into question sheet C3 Tail-first took WIRE_MINOR 63; the sheet's namespace moves to 64 and the pinned manifest and fingerprint are regenerated over master's. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…C3a, and what X5 and X2 are as built Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS 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. |
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
- put refuses, before anything runs, a record whose inbox.jsonl is a link or not a regular file (answered `refused`), and a line no surface writes (SheetLineSchema at the service's own boundary, for a caller in the process too). - One Send holds the shared memory at a time: a press takes the slot through its update (`startSend` applies only where nothing is held, or, sent again, over the very hold it was drawn for), and its call is made once, by the first mount to show the hold, so two presses before either is applied make one call. - QuestionCard's onDraft takes an update of the draft as it stands when applied: a field's edit keeps an image or an edit applied first; Discard and the queued answer's Edit replace it whole. - reconcile: a stale verdict restores the sent draft only where no newer answer stands, and still marks the card; the first verdict seen, a retracted one included, retires the draft the act sent and no newer one. - The targets of a take back are a Map, so a queued key named `__proto__` keeps its question. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… takes an update; §E put refuses a linked inbox and a non-surface line; one Send decided by the memory) Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
- A card's act leaves untouched a draft newer than its own question: an edit from a card behind a rewrite may confirm an older carried draft up to its revision, never move a newer one back; the memory is left as it was. - put writes the lines SheetLineSchema parsed, checked again by lineError, on the first try and on a retry, not the caller's array, which may change across its awaits. - The inbox preflight counts only ENOENT as an absent inbox; any other failure to look at it refuses, as a link does. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Prestart took WIRE_MINOR 64; the sheet's namespace moves to 65, the pinned manifest and fingerprint regenerated over master's, and sheet.changed joins prestart's engine.prestart in the link surface's client rules. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…rt; WIRE_MINOR 65 Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 24, 2026
…2 and C4 stand Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
This was referenced Nov 24, 2026
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.
Part of #868 (the first of C3's two landings; C3b, M4 to M6, follows, so this does not close the ticket).
The question sheet in the MAWS app, landing C3a: milestones M1 to M3 of
docs/doperpowers/plans/2026-11-23-question-sheet-c3-maws-app.md, a child (C3) ofdocs/doperpowers/specs/2026-11-23-question-sheet-design.md. Nothing here is reachable by a person in the app: no store is connected to a surface, nothing is mounted, and every path is inert until a record exists under the sminos home. The landing holds what C4 (the local page) consumes.test/fixtures/sheet/set/is the published set, copied byte for byte from doperpowers2594002af(pull request sessions.test: the 4,000-upsert CPU bound is the least of three runs #628; sminos 1.57.0; set version 1), withPROVENANCE.mdand a test that fails if one byte moves.src/shared/sheet/computes the model sminos's ownshow --jsonprints, for every fixture of the set, and reads a stored call's entries and ids (callEntries) and a delivery's block, with no record.src/services/sheet/reader.tslists and reads records under a given home, confined and with a verified pair.src/services/sheet/on the spine: following records (watch and poll), the join to the index, bodies and uploads under confinement, the locator of thesminoscommand (a named one, or an enabled user-scope plugin install; never a project's, never a barePATH), and the door (sminos sheet put). Thesheetnamespace on the wire (WIRE_MINOR65), refused to every remote caller until C6.SpineRoot.sheetfor C4's page.R/stores/sheet.ts, not yet connected to a surface. The stand-in doortest/support/fake-sminos-cli.mjsand the live gate's barrier.R/sheet/:QuestionCard,OutcomeCard,SessionSheet,SheetOverview,ReferenceView,SheetMarkdownwith its link policy, the memory andreconcile, built to the owner's drawn example and held by an ESLint boundary that keeps stores, IPC and Electron out. The harness has a#sheetpage; desk-web's test project renders the components through the import path a consumer uses.Validation Evidence
4ec4cd3f3(masterbfe82b411merged in):scripts/ci-gate.sh <worktree> --gates static,unit,probes,e2e:lane-a,e2e:supervisor-daemon,e2e:desk-web, run 45430022494: green (static, static-local, unit 1/4 to 4/4, probes, e2e:lane-a, e2e:supervisor-daemon, e2e:desk-web, e2e:cross-build).e53946b44andc88e62ee7, each with a test that failed on the head before it. The wave's own task review is clean. Gates were green one53946b44(run 45420103349) and onc88e62ee7(run 45425809595).96b7b5eb9was green too (run 45412938027).d5b09d5c7(run 45369925862).e28ea1b6e(run 45409302136).d2436f373(run 45402719247).show(G1):src/shared/sheet/read.test.tsandsrc/services/sheet/reader.test.tswalk all 21 fixture directories of the pin (no case named) and comparebeforeandafterwithshow.before.jsonandshow.after.json(toStrictEqual). They are in the unit gate above.listRecordsover every fixture side, and over a scratch home holdingsurfaces,.staging, locks, a non-session name, a link and a directory withoutstate.json(reader.test.ts).callEntriesover the pin's stored call that partly succeeded pairs entry 1 with q7, entry 2 with q3 at revision 2, entry 3 refused with anotDonenaming its reference, and entry 4 with q8 (call.test.ts).R/sheet/fixtures.test.tsxrendersSessionSheetfrom every fixture side with a record (one card per listed question in order, one accepted card per pending outcome, the hidden line) andSheetOverviewfrom every summary. The five card states (open, updated since seen, queued, accepted, refused as stale) are pinned from the named fixtures under both renderer projects (rendererandrenderer-compiled).fixtures/references/before, with sminos taken bygit archiveof the pin's merge commit:sheet putprinted{"session": "5eed0000-…", "results": [{"key": "maws-demo-0001", "state": "queued"}]};sheet show --session 00000000-0000-4000-8000-000000000000printedno sheet: …with exit 3, the locator's proof;execFilepath.#sheetharness page has not been seen in Electron: the machine at hand could not carry a local Electron run. The owner sees the built surfaces at M6's built look.Unresolved Review Findings
Deferred by the task reviews, each with where it is and why it was left:
src/services/sheet/service.ts(body): a reference or text body is authorized against the service's cached model, so a file that a question stopped naming can still be served within the ~50 ms debounce before the record is read again. Bounded to the record's own files, and rare.src/services/sheet/files.ts(bodies and uploads):refs/,uploads/andtexts/are checked as directories by path, then the leaf is opened by path, withO_NOFOLLOWon the leaf only. If one of those directories were swapped for a link between the check and the open, confinement would be escaped. Node has noopenat, and the record is the owner's own tree.src/services/sheet/service.ts(following records): a sheet root that is removed and recreated after its watch is armed falls back to the 2 s poll. A first root is noticed within a second as the plan promises; this second appearance is about a second slower, and rare.src/services/sheet/door.ts(runSminos): its own deadline answers on time and kills the child (SIGTERM, then SIGKILL), but does not destroy the parent's pipes, so a launcher's surviving grandchild can keep them open after the reply has settled. The caller is not held.src/renderer/src/sheet/QuestionCard.tsx: the code comment onQuestionCardProps.busykeeps its earlier wording ("an act of this surface on this question is in flight"). The plan's §G has the accurate one: a held Send of the surface, or an act on this question still sending.src/renderer/src/sheet/SessionSheet.tsx(the Send's launch, from the branch review wave's own review). A press reserves the Send through the consumer's memory update, and the first mount that sees the hold makes the call. If a consumer that defers updates commits the reservation after the session's last sheet has unmounted, in the same batch as the press, the Send waits until a sheet of that session is shown again. Nothing is lost, and it is sent then. A person cannot press and close within one batch.Residue
showprints fields its schema refuses (doperpowers, C2). At2594002af,model()copiesidandtargetfrom any queued inbox line that has them, andline_errorallows both on every kind. So a queued answer with atarget, a retract with anid, or adeliveredline with either is printed with the extra field, which the show schema's closed queued variants refuse. MAWS projects by kind, so MAWS andshowwould differ on such a line. No fixture holds one.R/sheet, and the harness has no Mac-lane case that photographs#sheet, so they wait for M6's built look (pnpm shots:words). A small e2e case in the harness's spec on the Mac lane would give them earlier.Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)