Skip to content

Question sheet C2, M2 to M7: the record, asking, delivery, the terminal, the readers, the manuals - #636

Merged
SSFSKIM merged 96 commits into
mainfrom
question-sheet-c2
Nov 27, 2026
Merged

SSFSKIM merged 96 commits into
mainfrom
question-sheet-c2

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

Question sheet C2, milestones M2 to M7: the sminos side of the question sheet, built on the contract M1 published
(sminos/types/sheet/, unchanged here; the generator prints the same digest).

  • M2, the record. One record per session (state.json, inbox.jsonl, refs, uploads, texts), one writer: the pure
    step behind a lock; the door (sminos sheet put), drain, show, the start nonce and its first receipt.

  • M3, asking. The start's choice between today's ask and the sheet; the tool's schema and validation; staging; the
    early SessionStart; generations; reading today's asks for the import.

  • M4, delivering. The <sheet-delivery> envelope on three routes (idle, a tool result, a prompt), landing,
    flights and their keys, the start's search for what an earlier process landed.

  • M5, the terminal and the import. The band and rows; the import of today's open asks past the floor; the floor's
    search.

  • M6, the other readers and the end of life. The snapshot, the project log's projection, removal on /clear, the
    daemon's sweep. Nothing is deleted without a proven identity (device, inode and the writer's nonce in
    .incarnation).

  • M7. The tool description is description-v3.md word for word; the manuals (mods README's sheet section,
    the CLAUDE.md files, SKILL.md, README, the hooks.json description); TECH-DEBT rows 39 to 50.

  • The branch review's fix wave. Eighteen findings of the high-rung review's triage (the record's removals,
    identity and unclean stops; delivery across forks, reloads and interleaved turns; control characters at every
    human-facing print), each fixed test first, plus a /clear removal that refuses while another process runs the
    session. TECH-DEBT rows 51 to 59 hold what was shipped with. The writer's re-review then added a /clear witness bound to
    the record's count of starts, and a corrective drain for an answer given to a subagent that had stopped.

Main merged in once; sminos 1.58.0 to 1.59.0. The plan
(docs/doperpowers/plans/2026-11-23-question-sheet-c2-sminos.md) records each milestone as built, its Outcomes &
Retrospective, and what this makes false in the composite; the report beside it has the full account.

Validation Evidence

  • All gates on the head: ci-gate (all 24) on 3481c2f06: GREEN https://github.com/SSFSKIM/doperpowers/actions/runs/46068923978. An earlier run, on 47edd3ed2, failed one assertion that assumed how argparse quotes its choices, which differs between Python versions; 2b510a937 fixed the test only.
  • The live acceptance, whole (the plan's Concrete Steps, M7; real engine, haiku), on the last code commit
    (ca058b423; only the plan, the report and the scripts manual change after it): last line live-sheet-check: 52 passed, exit 0. Before
    the wave, at M7, the first full run was 51 of 52: the two-surfaces door verdict took
    1.13 s against a 1 s bound at load average 62; that case alone passed in 0.77 s, and the whole check then passed
    unloaded (TECH-DEBT feat(review-loop): retire confident-ready — confident verdicts merge; wave cap 4 #48).
  • C1's evals on the shipped description (calibration 6/6 first):
    • E1: v3: PASS failures 0/30, repurposed 0/10, runs per scenario {'distinct': 10, 'option_gone': 10, 'premise': 10, 'subagent': 10}
    • E2: v3: PASS essential 44/47 (93%), reader no 0, pii and tz passing 30/32 (93%), cap passing 4/15 (26%) (reported)
  • The frozen set: python3 -B sminos/tests/sheet-contract.gen.py --check →
    sheet-contract: 21 cases, 6 examples, digest 594200ae4e539c0688c67b511968861d8ebf03c87d1c45b512903a538326e277;
    git diff 2594002af -- sminos/types/sheet/ is empty.
  • Suites at the last code change (also in the gates): sminos/tests/mods/run.sh 1,066 pass, 0 fail;
    test_sheet_step 102, test_sheet_log 63, test_sheet_contract 40 passed; tests/mods/typecheck.sh clean.
  • The fix wave's review: a task review of eddab4478..38b8e8268, then re-reviews of 38b8e8268..63cbda1e9 and
    63cbda1e9..c9bf1da9b; the last was clean. The writer's re-review's wave: a task review of 2b510a937..5ed483615
    and a re-review of 5ed483615..ca058b423, clean.
  • Per-milestone gates: M2 run 45375809111, M3 45397387138, M5 45456729517, M6 46041678823, M7 46047674138, all
    GREEN. Each milestone had a task review, converged before the next built on it.

Unresolved Review Findings

Residue

  • The door's 1 s verdict bound is load-sensitive. 1.13 s at load average 62, 0.77 s unloaded. Either measure it
    under the load rule or move the bound; TECH-DEBT feat(review-loop): retire confident-ready — confident verdicts merge; wave cap 4 #48.
  • The floor's rules live twice, in TypeScript and in the perl search the start runs; they must change together.
    A shared fixture of floor cases run against both would hold them.
  • E2's cap matter passes 4 of 15 cards (reported, not gated, by Acceptance 14). A card about the over-cap
    staging run rarely carries its facts on its own; capture is out of this PR's scope, so whether capture or a
    description revision should carry it is the composite's call.

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

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…he terminal row's ruling)

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
`sminos sheet step --session <id>` makes every transition of the plan's
state machine: a shell in sminos_sheet.py (the lock, the staging, the
refs/ and texts/ files, the replace) around sminos_sheet_step.apply, a
pure function, with its composers: the view (I5), the envelope's packing
(I7) and the context at a start (I10). `probe` reads a record for the
start choice without the lock. The command's acts on a sheet: answer (by
the handle show prints), dismiss, retract, remove, and `surfaces`.

Every published fixture replays byte for byte and every published
envelope is composed; sminos/tests/sheet-vectors/ (written by hand by
sheet-vectors.gen.py) holds the 28 vectors for what the set does not
carry: call, settle, landed, reroute, the acknowledgement, the agents
rule, starts and the context. The published set is unchanged (digest
594200ae...). sheet_surface.py is the stand-in surface.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Registrations are ordered `mawsd` first, then by name, never by the
directory's listing; a registered `url` loses one trailing slash, so the
view's `surface.url` is the origin and a link is `<url>/s/<session>`. A
file that vanishes between the listing and the read, a half-written one
and a writer's temporary file are passed over, each pinned by a test.
The stand-in surface writes its file at 0600, as the real writer does.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
- What a replace forgets is made unavailable before it: an acknowledged
  call's staging, and at a start every call's, are renamed aside first,
  so a death on either side of the replace never applies a call twice.
- A start ordered again answers as the first did: its own staged asks
  stay until the next start, and a receipt in the staging (its answer
  and the seq it left) is the evidence; any other step removes it.
- A registration with an impossible date or pid is not alive and masks
  no other. A stored time that is no calendar date is written as stored,
  and the whole answer is composed before anything is written.
- The import summary has a budget of its own; start.before is the first
  200 keys with beforeCount; an event's keys are at most 200; the answer
  is measured as it is printed.
- remove checks liveness again under the lock, detaches by rename, and
  says what it could not delete.
- Closing order breaks ties; --pick places are ASCII digits; show's
  queued entries are projected by kind (M1's reader).
- The concurrency test interleaves and fails on a reader's failure; the
  suite removes its scratch root.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ove's order

- A start is known by start.nonce, the same on each retry of one start.
  The receipt holds only what the record cannot give again (the empty
  sheet the start found, what it imported) under that nonce; `before`
  and the rest are computed again every time. A start with no nonce (a
  shell's) is always new.
- The import summary no longer reads past its last item when the whole
  is over its budget by less than one.
- Each refusal clause's free text is cut (a path at 200, a reason and a
  mod's clause at 500, an asker's name at 200), a shell's inline call
  has at most 20 entries, and the withdrawals' clauses stop at the Not
  done line's bound with a count: a result has a hard maximum, and the
  answer with its view cut away always fits.
- remove detaches the staging before the record, gives the staging back
  when the record cannot be detached, and deletes what an earlier
  removal left once it is a minute old.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The question sheet's mod (sheet.tsx, its pure parts in sheet-model.tsx):
the start choice of I8 at session.start, kept in $.state across a reload
and a /clear; under the sheet, mcp__sminos__AskUserQuestion registered with
C1's description-v3 and the published schema; a call validated whole, each
entry checked and its references read through the engine's own Read,
staged and ordered as one `sminos sheet step`, settled when its step does
not answer; the check of K4 on a timer and every hook; the bridge's
`sheet` op. ask.tsx yields under the sheet.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
At a terminal's launch the engine ran the classic SessionStart while the
sheet's session.start still awaited its choice (2.1.331, seen in the live
check): the start step was never ordered and every call read "the sheet is
still starting". That SessionStart is now kept and ordered once the choice
is the sheet, dropped otherwise.

live-sheet-check.py: M3's cases (many, revise, withdraw, two-surfaces,
secret, fork, no-surface, nested) in scratch homes with the stand-in surface.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
- The ask's SessionStart waits for the sheet's choice before it takes up a
  resumed session's asks: under the sheet it adopts and publishes none,
  keeping what it read for the import (M5); today's path is unchanged.
- A session's work is a generation: a /clear, a /branch or a fork retires
  it, so no late settle, drain or start publishes into the session after it;
  session.end(clear) forgets its start and the removal waits for one in
  flight.
- The start is single-flight per nonce, ordered again only once an attempt
  settled with no answer.
- K4's check runs before the sheet's own tool.call answers; a compaction
  drains through the shared queue, its wait bounded inside the hook's
  budget, a failed one owed.
- The floor reads only the tool's own results, the hooks' contexts and this
  plugin's prompt, and M2's inline New ids forms.
- The running agents are read after staging; the field descriptions are
  checked against C1's stub.
- live-sheet-check: --guard-plugin, grep errors fail, the door's verdict
  timed, the fallback drives a blocking ask.

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

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…no SessionStart held

- The ask's SessionStart returns at once; its adoption of a resumed
  session's asks waits for the sheet's explicit choice (registered as
  awaited when the sheet registers), made then under today or none and
  dropped under the sheet, whatever order or delay.
- The floor reads each sheet text by its place: a start's footer as its
  last line, the fork's and lost record's suffix in those two lines alone,
  an envelope's block as its last line, a notice's first line.
- A tool call's failure binds to the generation it was dispatched in; a
  retired call notifies no one.
- A compaction's drain is queued, never awaited (M4's seam); a /clear's
  removal of the old record runs in the background behind the old start,
  and the new start is kept for a retry before anything is awaited.
- live-sheet-check: the guard case asserts the stored reference and the
  guard's replacement in its body; calls are matched by their references.

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)
The ask's SessionStart checked the yield only before its transcript read; a
sheet choice made while the read was pending found no adoption queued, and
the read was then adopted in a sheet session. The yield is checked again
after the read: yielded, nothing is adopted and the read is kept for M5's
import.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
An answer accepted in a terminal session now reaches the agent. The view's
ready envelope goes as this plugin's prompt when no main turn runs and it
holds a fresh answer (from a clock hop, never inside a dispatch), as
context on the model's next main-loop tool result, or on the next prompt
that enters; a running subagent's goes by a send, rerouted to the main
conversation when not delivered. An envelope lands on the evidence of the
stored row (session.append after next, rows of the routes' kinds only);
one a turn ended without is looked for in the conversation at the end of
the turn it belongs to, and an idle prompt's turn is only the one its own
prompt opened, so a foreign prompt queued ahead settles nothing. A start
searches the transcript for blocks that landed while stopped, lands them
and returns the start's context; a compaction orders its own drain and
returns its context; either rides the next route when no SessionStart can.
A subagent that stops with questions open is named once.

ask.tsx: searchArgs takes the forms to search for (default unchanged).
Tests: sheet-delivery.test.ts on a shared sheet-harness.ts; the block's
parser and the stored rows in sheet-model.test.ts; the real step's start
search and packing in test-sheet-step.sh; M4's live cases.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…check as the engine runs

The engine runs the main loop's Agent in the background and its completion
enters as a prompt a few milliseconds after the SubagentStop, before the
stop's drain answers: the notice is now named from the view held at the
stop (and again from the drain's), so that prompt carries it.

The live check: agent-open waits for the notice before the late answer and
reads it on the next route; a start's context of a copy is read on its
first route when its SessionStart came before the choice; max-send reads a
plugin prompt's head past the engine's frame.

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

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ions checked at the hop

- A turn's end lands only keys found in a route's framing (a hook context of
  tool.call or prompt.submit, this plugin's prompt), the rest ready again; a
  human's quote of a block lands nothing.
- The idle prompt and a send are reserved, then checked again at the hop
  (generation, a turn begun, a stop); a prompt that enters first takes the
  envelope. A notice waiting rides the idle prompt, above the envelope.
- A prompt typed over a turn is marked for the next turn before the turn's
  end reads the conversation.
- The start's search prints compact evidence (a row's kind and keys), newest
  first, each key once; a reload keeps the start's transcript and routes its
  context.
- While a send is in flight its agent is passed as running to every step
  until its receipt's step answers.
- A failed idle prompt is not retried by itself, but a fresh answer still
  wakes the session.
- The prompt route puts back each entry it lost; in a MAWS-run session the
  context alone rides the next prompt.
- A second stop names only questions not named before.
- The live both/subagent checks assert their setup.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…thing written through it

The door (`sheet put`) checks under the lock, by lstat, that the record
directory is a directory and its inbox.jsonl, state.json, refs/, texts/
and uploads/ are what the record keeps there; anything else (a link
included) is refused with exit 1 and nothing appended. The inbox is opened
O_NOFOLLOW and must be a regular file. A step on such a record reads and
writes nothing and answers `bad-record`; `sheet answer --image` refuses too.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…il the receipt answers

- The start's search reads this plugin's row by its origin and its keys from
  the stored content only, never the submission's pluginPrompt record; given
  a complete `before`, it prints those keys alone.
- A key a send handed to a subagent stays that agent's until its receipt's
  landed/reroute step has answered (a retry at a check included); then a
  drain reroutes what a stopped agent was left.
- A fresh answer opens the idle route though a full envelope of failed work
  hides it (from the view's pending, or the answered count past the last
  failure); failed work alone still does not.
- The floor reads the idle prompt's envelope below the notices above it.
- heldKeys matches the api forms 2.1.331 gives (probe): the result route's
  context appended to the tool result's text, the prompt route's a block of
  its own, the idle prompt behind its frame.
- `sheet remove` refuses a record directory that is a link before detaching
  anything; a real one holding a link is removed without following it.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The keys that open the idle route (or the answered count past the last
failure, past what the view lists) spend their wake when the reservation
is made; a reservation let go before the hand-over gives it back, and a
landing clears it. A hidden answer that opened a failed retry no longer
opens another on every later view; a newer answer still does.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Fix wave 3 spent every fresh key at reservation, so a split envelope's
later parts never opened the idle route once the first part landed. Now an
idle reservation records the fresh keys (or the answered count) that opened
it, and only a failed submit spends them (`noIdle`, `idleFailedAt`); a
landing, a release before the hand-over, or a submit that entered spends
nothing.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
The terminal draws the sheet: a band line above the prompt naming the
open questions, the answers owed and the surface to answer on, and the
sheet tool's rows drawn as per-question lines from the call's result,
its view or the conversation's delivery blocks.

A resumed session under the sheet imports the open asks of today's
question tool: ask hands the sheet its read of the transcript, the sheet
stages each open ask beside the start event, and the step imports them
once. An indefinite read imports nothing and a later resume retries; a
fork imports nothing. Wake.answeredCount, no longer read, is dropped.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
`many` and `withdraw` read the line above the prompt and the call's row
from the pane; `import` makes asks of today's tool with the setting off,
resumes under the sheet with a read that cannot be whole (nothing
imported), again (imported once, the agent told), twice more (still
once), and forks it (empty, never importing, also once resumed).

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

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

- The sheet's start reads a resume's asks of today's tool itself, through
  `readTodayAsks` (ask.tsx's read, the caller's reader): no hook waits on
  another's work, so session.start awaits an early start again and a first
  prompt finds the sheet started, its context carried. The yielded ask's
  hand-off is gone.
- A resume's or a copy's start is kept as `preparing` (nonce, source,
  transcript) before anything is awaited; a reload makes it ready again
  under the same nonce.
- No import while the conversation's ids are not known.
- `sminos sheet <verb> <who>` takes a unique prefix (8 or more) of a
  session with a record where no member matches: the band's command works.
- ask.tsx passes a stored sheet-form call on in every session, so a today
  session keeps the engine's head and unfolded view.
- Receipts for drawing also read a steer's block (X3); landing unchanged.
- The band redraws when the session becomes started; a registrations'
  read a newer view overtook sets nothing.
- The question line's sentence follows the plan's ruling; its eleven
  cases are tests.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… line of text

port.notify handed the model's first question to $.ui.notify as written,
a fourth human-facing boundary: a line break or an escape sequence
reached whatever shows the notification. announcement now cleans the
question with the row's and the band's terminalText (a line break and a
tab a space, every other C0, DEL and C1 gone); a question of controls
alone tells nothing. The stored question is unchanged. (Follow-up to
surface review S1.)

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…nder its first

show is where a person reads a question in full when no surface is reached,
so a question's line breaks (LF) stay; a CR is dropped, controls are out as
before, and every line after the first is indented under it, so a line
break inside a question never starts a line that reads as a field or
another question. Headers, labels and receipts stay one line each.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…kipped line (R4)

The R4 test now pins both of the coordinator's conditions: the door's
padding lies below the offset and the step never reads it; and a step run
before any put on an inbox cut below its offset commits the clamped offset
and lands the answer appended after. The second showed a skipped line: the
clamp left a fragment ending at the offset, and the door's newline after
it made an empty line the drain counted. The door adds that newline only
when the unfinished bytes are past the committed offset; below it they are
never read, and the call goes at the offset as it is.

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

The usage text named --cleared --witness --clearing and the witness verb; a
person can supply none of them. The usage line is remove's person form
again, the remove refusal no longer points at --cleared, the hidden verbs'
refusal says they are the sheet's own and not for people, and the scripts'
manual describes witness and the /clear's flags beside step, probe and log,
not among the command's acts. SKILL.md and the mods README never listed
them.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ve match (R5)

The projection's rereads under the lock accepted an identity that could not
be told (same_record None), so a nonce read that failed on a replacement
made on the same inode let it take the new record's owed events off. A live
record is now written only on a match; a detached record, whose path
(.removed-<epoch>-<uuid>) is never made again, is its own case and is still
taken when its nonce was never minted or cannot be read.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ecords itself, failing closed

running_elsewhere read the registry whole but then went through
peer_records, whose glob reads a sessions/ listing that fails as no
records: a live resume's sheet was removed when the listing failed. It now
scans every config dir of the registry read whole, lists each sessions/
now (absent is none) and reads every record; any failure but absence is no
answer, and the sheet stays.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…re before the append (S4)

The rollback caught SystemExit alone: a full disk on the second copy left
the first upload and the second's temporary file, with nothing appended.
A copy that fails removes its temporary file; anything that stops the call
before the door appended takes every upload of it back; once appended (the
door's append is now called directly, its verdicts told after), a failure
of the nudge or the print keeps them, since the line names them.

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

Quoted first, a line break in the text printed as a literal \n or \r. The
picks and the text are cleaned (a line break a space, U+2028 and U+2029
among them), then the text is quoted.

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

The listing test patched scandir (the index's); the reader of a /clear's
note lists project directories with listdir. A test now fails that listing
under an otherwise eligible note and finds the sheet kept; it fails against
the daemon before R2.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… witnessed at the clear (R1)

session.end kept only the left session's id, and the SessionStart retry
witnessed whatever record was there by then: an attempt that detached the
original and exited 1 (its log not written), then a resume that made a
replacement, and the retry took the replacement. The record is witnessed
once, at the session's end, and kept beside the left session in the
clear-path state (SheetKept.leftWitness) across a reload; each retry names
that identity, and one with none kept removes nothing. With no record at
the clear, a record found after the start in flight lands is not proven
the clear's: it is kept, for the daemon's sweep.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ss and the other-process check

scripts/CLAUDE.md said the witnessed identity replaces the liveness check;
--cleared needs both it and no process other than the clearing one running
the session. The mods README's /clear paragraph says the same, and that the
witness is taken once, at the clear, and kept for every retry.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…its prompt can still enter

M2's fix bound a typed-over flight to its turn before next() resolved,
so a queued turn that started and ended while the hooks beneath still
held the prompt failed the flight and opened an idle retry, and the
held prompt could then enter with the same envelope. The turn boundary
is now kept apart from admission: while the prompt is held the flight
is admitting and no turn's end settles it; once it is admitted it is
bound to the turn running then (tentatively), else to the next turn,
which its prompt opens. So after the turn it was typed over and the
next have both ended, it is landed or ready again, and never twice.

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

The command's cleaner reads them as line breaks; the mod's terminalText
left them. Both now become a space, so the two cleaners agree.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… have appended (S4)

The answer took its uploads back on any exception from the door's append,
but the door cuts its write back only on an OSError: an interrupt after the
write left a queued answer naming an image that was deleted. The door now
says (append's progress) from its first byte until it has cut the call
back; the answer takes its uploads back only when the append is known not
to have committed (refused before writing, or written and cut back), and
keeps them when that is not known. A stray upload is harmless; an answer
whose image is missing is not.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
argparse listed every subcommand of sminos sheet in its usage and in an
invalid choice's error, step, probe, log and witness among them. The sheet
subcommands sit in a map that takes the private names but never lists
them, so they still run and a person who mistypes is shown put, show,
answer, retract, remove, dismiss and surfaces.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
terminal_safe dropped a tab, made CR and LF two spaces, and spaced FS, GS
and RS, where the mod's terminalText makes a tab a space, CRLF one break
and drops every other control: A\tB\r\nC printed AB  C from the command and
A B C from the mod. terminal_safe now uses terminalText's expression as
written; show's question text keeps its LF rule.

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

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…rgparse quotes them

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…resume since keeps it (Fix A)

The other-process check protected a resumed record only while the resuming
process lived: a resume keeps the directory and its .incarnation, so a
delayed retry after that process stopped deleted the record, an accepted
answer in it. sheet witness now prints the record's identity and the start
it last had (the nonce of the mod's last start, from its receipt in the
staging; empty for none), and remove --cleared compares both under the
lock: a record started since is kept, and a start that cannot be read is
no witness and keeps. The mod treats the witness as one opaque token.

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

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
… orders one corrective drain

A settle reads the running agents before its subprocess takes the lock,
so a subagent's stop drain can commit in between; the settle then gives
a fresh answer to the stopped agent, deliver() never sends to it, and
nothing rerouted it. Rather than chase that race, every view adopted is
checked: an outcome given to an agent this module saw stop, which owns
no send in flight, orders one drain with the agents as they are now,
whose agents rule moves it to the main conversation, naming the asker.
Once for each outcome and agent, so a view that still gives it there
orders no other.

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

A late replay of the witnessed start's nonce (start X, resume under Y,
stop Y, replay X) restored the receipt the witness named, and the clear's
retry removed a record started since. The start receipt now counts every
start applied (a retry of one nonce and a nonce-less start included; one
past the last, floored by the clock in ms, so a lost or unreadable
receipt restarts above any count read before); the witness carries that
count and the removal compares it under the lock, after the identity
check. A count that cannot be read keeps the record. A nonce-less start
writes a count-only receipt, and the staging's day of expiry no longer
deletes the receipt.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…log past 200

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
…ts read has answered

The corrective drain marked its outcome corrected before it ran; when
its agent lookup failed, the step went without agents, moved nothing,
and the correction was spent, so the answer waited until new inbox
bytes came. An outcome is now corrected only by a view whose step's
agent list left that agent out (no drain moves what such a step still
gives there). Otherwise the correction stays owed: drained at once
after a step that listed the agent running (the settle's race), and at
the next check after a step that carried no list, so a failing lookup
is retried on the timer, never in a loop.

Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
@SSFSKIM
SSFSKIM merged commit 42ab791 into main Nov 27, 2026
27 checks passed
@SSFSKIM
SSFSKIM deleted the question-sheet-c2 branch November 27, 2026 21:28
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