Skip to content

Question sheet C6.1: the endpoint carries the sheet (M1 to M3) - #915

Merged
SSFSKIM merged 32 commits into
masterfrom
question-sheet-c6-1
Nov 30, 2026
Merged

SSFSKIM merged 32 commits into
masterfrom
question-sheet-c6-1

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Part of #899. C6.1 of the question sheet's remote composite (docs/doperpowers/specs/2026-11-28-question-sheet-c6-remote-design.md, parent pin 6adb5c54f), milestones M1 to M3 of its execution document docs/doperpowers/plans/2026-11-28-question-sheet-c6-1-endpoint.md. M4, the live run, follows in a second pull request from question-sheet-c6-1-live.

What this range holds

  • The view, the wire and the service's remote side (M1). src/shared/sheet/view.ts (a sheet as pages of items, a stub for an item too large, takePage, modelOfView, RemoteSheetBody); src/services/sheet/remote.ts (sheet.view, sheet.lookup, sheet.session, byOf, admitPut); attention.snapshot; machine.op's claim gains clientClass and sheet; a remote sheet.put is stamped from the claim's class and refused for any class but a native device's; sheet.read and sheet.upload answer a remote context nothing; the components draw a body, a question and an outcome too large to send. WIRE_MINOR 66 to 67, additions only.
  • The resolver, the standing check, the rows, the act and its query (M2). One target rule, sheet, over one pure function (sheetPlacement); the index's bindings read synchronously in the step of every hand-over (src/endpoint/sheet-standing.ts, src/mawsd/sheet-seam.ts); the five rows sheet.view, sheet.lookup, sheet.body, sheet.put, sheet.list, endpoint-only until C6.2 (SHEET_ENDPOINT_ONLY).
  • The feeds and the capability (M3). The sheet feed; every sheet item on the attention feed and in attention.list admitted by the resolver on its own engine session; where both sides listed rl2.sheet, a terminal session's sheet items and the silent ids; rl2.sheet in the endpoint's h2, RL2_PROTOCOL.minor 18 to 19; sheetOffered for a device. The app lists no rl2.sheet and sends none of the names until C6.2.
  • The branch review's fixes (high rung, three reads): nothing a caller below the floor observes depends on a sheet it may not view, refusals, failures, timing and order included.
  • Two merges of master: 115ccfa46 before M1 (the composite's later commits, the local sheet page on by default, UX wave: the owner's observation set 4 (model menu, Bypass, Auto card, fold on click) #893's launch flags) and 6f8ee16c7 before the landing (master at ad9b85fb6). Neither moved a pinned wire file, a capability list or org-protocol; the minors are this branch's own.
  • The execution document kept current: Progress, the "As built" paragraphs, the coordinator's rulings in §P5 and §P7, Outcomes & Retrospective.

Validation Evidence

All gates on GitHub Actions; nothing run on the authoring machine.

claim command result
M1 green scripts/ci-gate.sh <wt> --gates static,unit,probes,e2e:sheet-page,e2e:transcript on f8f68151d run 46203428304, success (e2e:cross-build added by the plan)
M2 green --gates static,unit,probes,e2e:remote,e2e:lane-a,e2e:desk-web on 9266df3ad run 46223495430, success
M3 green the same set on a5561ad42, then static,unit,probes,e2e:remote on 85cf83e39 runs 46234254994, 46237307442, success
branch-review fixes green the M2 set on f2916f4a2; static,unit,probes,e2e:remote on 014fa54da runs 46283012748, 46285733086, success
each fix's test fails without it throwaway commits on no branch runs 46202536107 (M1), 46218434474 and 46223501337 (M2), 46227550261 and 46229020968 (M3, A13 first), 46241836707, 46280365580, 46285738026 (branch review)
class 1a on the landing head --gates static,unit,probes --class1a linux on acdac8280 (the pool is down) run 46292180810: static, probes, unit 1/4 and 2/4, e2e:cross-build green; unit 3/4 and 4/4 red as listed below
the whole set on the landing head --gates all on acdac8280 run 46288661096: its Linux jobs queued behind the pool; Mac groups as the hand-over names them

Reds in those runs that are not this branch's, read as the landing architect reads them:

  • run 46288661096, packaged 2/2: setup failed in a minute, Homebrew's libreoffice cask reported a different checksum (it depends on the mirror the download is redirected to).
  • run 46288661096, packaged 1/2: one of 145, e2e/dashboard.spec.ts:554 (the owner's words typed after the chart's caption never reach the paragraph), the tracker's hosted-Mac signature 22, logged at :548; the branch touches nothing under the dashboard or the document editor.
  • run 46292180810, unit 3/4: src/renderer/src/transcript/surface/assistant-ink.test.tsx "derives every turn once…", Test timed out in 5000ms: the hosted runner's unit speed, by the outage rule.
  • run 46292180810, unit 4/4: src/engine-host/tool-server/artifact-tools.test.ts:425 expected the Spaces "Launch", "Plain" and got "Plain", "Launch". The case creates both back to back, and the store lists Spaces ORDER BY createdAt, id (src/engine-host/documents/store.ts:727, createdAt in milliseconds), so a tie in the same millisecond falls to the random id. The branch changes nothing under src/engine-host or the artifact stores. It was red again on the one rerun allowed (attempt 2, the same assertion); master's hosted run 46292021496 passed the file once. It is with the landing architect as a probable master flake on the hosted route.
  • run 46292180810 attempt 2, unit 4/4: src/mawsd/daemon-handover.test.ts:504 ("a deliberate stop during the drain > Settings' stop-all … reaches the old host") answered host_unavailable ("engine-host handed its sessions over before answering host.stopAll"); it passed in attempt 1. The branch's one line in src/mawsd/daemon.ts hands the sheet's bindings to the endpoint and nothing of the supervisor's handover.
  • test/endpoint/org-recovery.local.test.ts's fork case missed its 5 s wait in runs on f9979fd8b and passed on the same runtime tree (568265adf) side by side: the timing case already in docs/tech-debt-tracker.md.

Unresolved Review Findings

Minor findings recorded rather than fixed:

  • src/shared/sheet/view.ts, cutPages: an item over a small custom pageBytes can sit alone on a page above the bound; the production bound (512 KiB) and the bounded queued and hidden entries never reach it.
  • src/shared/ipc/wire.test.ts: the wire is checked against the newly committed manifest, not classified against master's; the reviewer compared the entries and found additions only.
  • src/renderer/src/sheet/memory.test.ts: the pre-queue view of the lookup case keeps q1.queued from the fixture; the case still isolates the draft's retirement.
  • test/endpoint/attention-feed.test.ts, the stale-ask case: the old ask is released before recovery is asserted, so the stale completion's settle could pass it without the generation guard.
  • test/endpoint/feeds.test.ts grew to about 1,280 lines; the sheet cases could be a suite of their own.

Residue

  • A device with no open channel misses a terminal session's question until it reconnects. Nothing outside the spine watches the sheet's records, and a closed channel lets the spine be released. The coordinator places it in C6.3, with the count and the push: an observation outside the spine that wakes it.
  • test/support/sheet-device.ts does not answer the endpoint's pings, so a suite that holds a channel idle for more than about 15 s is closed by the endpoint (M4's rig answers them). C6.2's and C6.3's suites will meet it.
  • The question sheet's fixtures pin a doperpowers revision (2594002a) without sminos sheet surfaces; a live run needs f89c328d. test/fixtures/sheet/PROVENANCE.md could name both.

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

… sheet)

The plan for child C6.1 of the composite for the phone and other machines,
written against the worktree at 4f231cf: four milestones (the shapes, the
wire and the service's remote side; the resolver, the rows, the act and its
query; the sheet feed, the attention feed's placement and silence, the
capability; live on a Mac), the shapes of contracts Y1 and Y2, the acceptance
cut into sixteen clauses, and ten entries for the composite's writer.

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

Twelve findings and one correction of a stated fact, all taken; each was
checked against the code first and none was wrong. The composite's writer
ruled on those that turned on the design (the composite at 9641ccc), and
the document is rewritten to read as it stands now. What it said before:

- N5 held that a stale index word was harmless and kept no check of it. Now
  the binding is part of standing: a standing check, whose index read is the
  last thing awaited, is evaluated at every admission and every hand-over
  (a call's result, an act's acceptance and its done, a query's reply, a
  feed's message), and an unavailable index is `unavailable`, never a miss.
- A done and a query's reply were sent unchecked. Each now takes a check of
  `view` as it is sent; a caller below it gets `unknown`/`grade`.
- The wire changed two existing shapes (sheet.body's output, OpTargetSchema).
  Now additions only: the too-large body is the remote result's variant, and
  the act's session rides as claim.sheet, stored as the target by the spine.
- N20 held that a device that did not list rl2.sheet is sent master's bytes
  and that master's cut equals the resolver's. Now every sheet item sent to
  anyone is admitted by the resolver on its own engine session; shapes and a
  terminal session's items hang on both sides' listing.
- New: the five offered names are endpoint-only until C6.2 (N21, with the
  offer-coverage suite's exemption and its own case); nothing below the
  floor depends on a hidden sheet (N23: the list's neutral door, the index
  read for every request, unchanged-summary announcements, deferred reads);
  every bounded read gets past an oversized entry (N24: a lookup's too-large
  entries, a pending outcome's stub); a stub is its item's discriminant and
  a set beside the model, left out of a Send with its draft kept (N16).
- The suites claim of a resend only what the stand-in door shows; applied
  once is M4's, whose recipe is repaired (one daemon over the terminal's
  homes, the registration checked, the below-floor caller by a record
  change, the door waited for, the lookup's session, one put as one
  observation).
- The description of the `record` rule is corrected (placeRecord prefers
  the member RL10's join places the app session on).
- The ten entries for the composite's writer are in the composite and leave
  the list; eight new ones replace them.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Eight findings of the re-check, all taken, each checked against the code;
the composite's writer's rule behind the first two: no standing predicate is
held across a wait. What the document said before:

- The standing check read the index's word through `sheet.session` last
  before the hand-over, and a queued feed message carried that word; a full
  stream window or a second batch of a list could send under a word read
  before the wait, and a one-turn residual was logged. The index is in the
  endpoint's process while the spine is loaded (`spine.root()`, which the
  endpoint's seam already reads for the channel journal and the projects),
  so the binding is now read synchronously in the step of every admission
  and hand-over, through a seam `mawsd` hands the endpoint; the step captures
  only the ranks, may be called at any later moment, and is the predicate a
  waiting message carries. The residual, the batches, the credit accessor
  and the hold-and-prepare release are gone; `sheet.session` answers one
  session's binding for a decision and loads the spine.
- `sheet.session`'s readiness was reached only through a named session; the
  registration now asks the bindings' readiness before its input, and M1
  tests the real registration.
- A view answered the machine's door for any sheet; now the neutral door
  unless the sheet can be answered.
- The check answered holds or not; it now says the kind it admitted, so an
  older peer's cut refuses a terminal session's item in the same step.
- A8's query test held the ledger's answer, which comes before the binding
  is judged; it holds the standing check's own read.
- A pending outcome's stub lacked fields its schema requires.
- M4: a wrapper for the enrolment CLI with standard input; the caller below
  the floor is listed and not viewed, not private; the resend is timed.
- The entry on the residual leaves the list for the composite's writer; the
  proposal now is to replace that sentence, with four smaller entries.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… the sheet page on by default, #893)

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…r after the merge; its writer's list taken

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The view of a sheet a remote caller reads in place of the model (src/shared/sheet/view.ts: its
items, pages cut by encoded size with a stub for an item too large, takePage, modelOfView,
RemoteSheetBody), sendOf's skip, sheet.view, sheet.lookup and sheet.session, attention.snapshot,
machine.op's claim's clientClass and sheet, the service's remote handlers (src/services/sheet/
remote.ts) with the put stamped from the claim's class and the model and an upload refused to a
remote context, the index's bindings on the spine's root, and the components' too-large states.
No offer row: no remote caller reaches any of it. WIRE_MINOR 67; the pinned manifest follows.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…two test fixes

The wire manifest's new and changed entries (sheet.view, sheet.lookup, sheet.session,
attention.snapshot, machine.op's claim) at WIRE_MINOR 67, taken from the generator's own output
on Actions; the fingerprint is unchanged (no engine-host shape moved). The addressing snapshot
gains the two outputs that carry an app session or attention id, and the lookup's closed map is
reviewed as the model's is. The spine-root case asks sheet.session as main, which it is; the
greedy-fill case cuts items large enough to need two pages.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ncile, sheet.session's outage reply, the stubs' bounds

- memory.test: an act a remote view says nothing of stays unresolved; a lookup naming its key reads it accepted, kept
  while it awaits delivery, and retires the draft it carried
- remote.test: sheet.session's reply while the index is not ready, through the bus as main asks it, for no session and
  a named one
- view: a stub's header, agent name, agent id and call id are refused past the bounds stubOf cuts them to, so a stub
  that parses stands in a model SheetModelSchema takes (refinements: the wire's JSON Schemas are unchanged)

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…he act and its query

The `sheet` target rule and its one resolver (`sheetPlacement`), asked of the index through
`sheet.session` for every id; the standing check (`prepareSheetStanding`) judged in the step of
every hand-over: a call's result, an act's admission and its `done`, a query's reply. The five
rows offered to a native device (`SHEET_ENDPOINT_ONLY`, which the app does not send), every
`machine.op` claiming the device's class and a sheet act its session; mawsd hands the endpoint
the index's bindings through `sheet-seam.ts`.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… them; laneB.handles takes a command name

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…rs, stated as built

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ad the machine never answered, the wide pending outcome over the channel, one bound for a body

A binding read that fails after the index said it was ready is the standing step's `unavailable` (and no binding is read
for no session); a step that throws reaches the call's failure. A rejected sheet read is a failure judged as any other,
so a caller who lost `view` hears `grade`; the list tells its machine's failure after the bindings' readiness, and a
summary whose binding cannot be read makes the list `unavailable`. M1's pending outcome of 4,000 options is read over
the channel and the card after its stub answered. A body past the bound is `too-large` from execute's one guard.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…e read is withheld, not the list's unavailable

Only the source-wide readiness answers the whole list `unavailable`; a summary whose own binding read fails is withheld
as one not viewed, so a caller who views nothing is answered alike by an empty machine and by one with a sheet they
cannot view (N23).

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… machine lists the sheet it withholds

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…silence by the resolver, the capability

The machine's `sheet` feed (sheet-feed.ts) and the hand-over helper both feeds use (sheet-handover.ts); every sheet
item on the attention feed and in `attention.list` admitted by the resolver on its own engine session, a terminal
session's and the silent ids only where both sides listed `rl2.sheet`; `rl2.sheet` listed, RL2 1.19; the table
without the sheet while the name is withheld; `sheetOffered`, and the test device's capability gate.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…, readiness recovered after a failed prepare

The standing check is made over the ranks when the spine cannot answer `sheet.session`, so a later read of the
bindings judges; a session announced twice while one output waits is told once.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…the coordinator's ruling)

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ws it stays loaded

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ead, resent or numbered; one retry that loads

A session that lists only sheet items is never placed (the attention feed and `attention.list`), so a sheet the
caller cannot view costs no read and fails none (N23). What the device holds is compared as it went on the wire, so
a fresh copy of the same items is no change. A change taken back before it left gives its `seq` to the next. Each
feed's retry is one entry point that prepares a check it lacks, and asks `sheet.session` again while the bindings
cannot be read, which is what loads a cold spine after a refusal or a yield.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…per read of the ranks

An ask of older ranks still out no longer swallows the current ranks' retry, and its completion works out what is
deferred without replacing the check. One tech-debt row: the order of coalesced attention changes under backpressure.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ends on a sheet it may not view

- A sheet's announcement (and an attention change of one app session) works out that session alone and checks a queued
  output again only where it names it; a change of access, a new head, a binding hint and the snapshot's read still work
  out every session. So a private sheet's activity no longer ends another subscriber's feed.
- A sheet change still waiting for credit is replaced by the latest summary under its seq.
- The attention snapshot, the coalesced changes and the attention.list call order their sessions by app session id, not
  by the order the machine first heard of them (the order side channel; its tracker row removed).
- A phone's query of a sheet put is refused `class` (another member's `grade`) before the session is placed.
- A sheet act refused past the floor (`read-only`) is judged again as it is sent: `grade` once the binding moved.
- A sheet read is admitted in the step it goes to the machine, and judged again at the send.
- An id the sheet's resolver places nowhere is refused after the floor's owners read, as a placed one is.
- A sheet put whose machine.op dispatch rejects is held to its completion's check.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…waits on a sheet it was not given

- sheet feed: an announcement heard while an output waits for credit stays told when the
  output is taken, so it is worked out next (R1); a replacement queued without credit is
  held to the backlog bound (R5).
- attention feed: a change confined to sheets the device was not given marks its session
  unheld rather than told; while the check cannot judge such a session it ends nothing and
  republishes nothing, and the backoff works it out again (R2). A session a full scan finds
  with an item withheld is kept for the retry (R3).
- attention order (the composite owner's ruling, R4): the snapshot's sessions, competing due
  changes and attention.list are ordered by the earliest createdAt among the items the
  caller is sent, ties by app session id; an emptied session keys on what the device holds.
  The sheet feed keeps engine session id order.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…read's admission, a refusal past the floor, the order of sessions)

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…lds back nothing judged beside it

An unheld session (worked out for sheets the device was not given alone) skips publication
only when an item the device holds cannot be judged (heldUnjudged), where replacing its list
is unsafe. With only a not-given item withheld (deferred), what was judged goes as for any
session, and the session stays unheld for the withheld item, so a visible sheet's first
question beside a sheet whose own binding read fails is sent at once, as without it.

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

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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 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-29T23:04:39.780618Z acdac82 PR opened
ℹ️ About Codex in GitHub

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

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

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

@SSFSKIM

SSFSKIM commented Nov 30, 2026

Copy link
Copy Markdown
Owner Author

Landed on master as ae747ca: merged with master 56ed390 and the Spaces-order test fix 3e6922f. Class 1a on hosted Linux 46337330065 ran on the merged tree; the owed e2e (sheet-page, desk-web, cross-build) is 46337331782 on acdac82's tree.

SSFSKIM added a commit that referenced this pull request Nov 30, 2026
…attention's order for every device

- The C6 composite: C6.1's status and tracking row say it landed (#915 at
  ae747ca, #916 at 95f3cbf) and what its review and retrospective found.
  Section 3's attention paragraph gains the order C6.1 built: sessions in the
  order of the earliest item sent to that caller. Before, the composite was
  silent on order and its Acceptance 7 implied today's order held exactly;
  C6.1's branch review showed today's order (the endpoint map's insertion
  order) is moved by hidden items, so the composite's writer ruled the new
  order and states its exception (2026-11-29).
- The parent composite: section 8.2 says the page server also serves the Task
  Board (its B2 landed at a1fbca7), held to the same checks and rules; the
  tracking map's C6 row moves on.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
@SSFSKIM
SSFSKIM deleted the question-sheet-c6-1 branch November 30, 2026 03:52
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