Skip to content

A positive mark of the text a person typed, so an outside save rests on an allowlist and not on recognising MAWS's own forms #724

Open

Description

@SSFSKIM

What

Outside a session's folders, a file may be saved only when the person's own text names it (the UX wave's landing U6e, ticket 675). No route carries a positive mark of which text the person typed: a row of the engine's transcript is marked only by its origin, which the host writes on every message it composes as the person's, and a block carries no provenance. So U6e's rule is the nearest truthful one: an allowlist by position (only a content's string or its first text block can be the person's own) and an exclusion list by content (that text counts only if no form MAWS writes claims any part of it), closed by a guard test that enumerates every place that sends as the person. Its stated limit: content assembled at run time is outside what the guard can see. Its stated bound: text a plugin fills or suggests into the composer's draft, which the person then sends, is the person's by adoption.

What this ticket asks for

The positive mark. The composer says which text the person typed (a key on the send and the steer, per range where a draft mixes typed and filled text); the host records it per message; the daemon's reader of the transcript reads that record, and only marked text counts for a save. Then the rule is an allowlist in full: a new writer of a person's-origin message is read-only without anyone listing its form, and filled or suggested draft text can be told from typed text.

Needs design

  • The wire: a new field on the send and the steer, and what an older window sends (nothing: fail closed, a save then needs the path named again by a newer window).
  • The stored record: where the host keeps the mark per message uuid so that the file route reads what the live route knew, and what a session recorded before it reads as (unmarked: read-only).
  • The composer: what counts as typed (keys, a paste, a dictated text, a chip the person picked) and what does not (a plugin's fill or suggestion, an agent's draft, a prefill), and whether an edit of filled text makes it the person's.
  • A registry of send kinds that the type checker enforces, which would close the guard's blind spot for content assembled at run time.
  • The two cross-build runs a wire and stored-form change owes.

The survey (from U6e's execution document, as built)

The person's own text, kind by kind (ticket 675; 2026-11-16 (UTC))

Line 1 counts a person's message for a save only by the person's own text. No route carries a positive mark of the typed text: the transcript row the daemon reads (rowClaim's one caller, src/services/files/named.ts:111) holds the same blocks as the frame the host sent, and its only mark is the row's origin: {kind:'human'}, which the host writes on every user frame it composes (src/engine-host/queue.ts:309, :528, :757; session-clear.ts; bash-mode.ts). So the rule reads position and content, at one place (ownTexts and personClaim, src/shared/files/named.ts), used for a user row and for a queued prompt alike, inside a row that is the person's by origin (Decision Log 22):

  • By position. Only the content when it is a string, or its first text block, can be the person's own (the composer writes a string, or its images and documents then one text). Every later block names a path for a read only, whatever its kind: a block kind added later reads only with nobody touching the function.
  • By content. That text counts for a save only when no reader of a form MAWS, the engine host or a plugin writes claims any part of it, anywhere in it; each reader shares its constant with its writer, and each pass is charged to the step meter (Decision Log 24). A joined block fails closed whole: the person's own words in a block that also holds an envelope or a grant name a path for a read only.
  • The limit: the rule is an allowlist by position and an exclusion list by content; content assembled at run time is outside what the guard can see.
  • A bound by adoption: text that an engine plugin fills or suggests into the composer's draft, and that the person then sends, is the person's by adoption, the same class as text they pasted. Only the person's press sends it: a fill carries no submit (src/shared/wire/control.ts:455, src/engine-host/normalizer-controls.ts:135-138, src/renderer/src/engine-surface/asks.ts:51-52), a suggestion enters the draft only by Tab (src/renderer/src/composer/editor/controller.ts:350-354), and the one send MAWS makes by itself, a spawned session's first message, refuses a fill or a suggestion until it has gone (firstSendPending, src/renderer/src/sessions/remote-spawn.ts). Only a mark per range of the draft could tell such text apart; that is the positive mark's ticket.
kind in a person's row or queued prompt who writes it (file) a model can shape its text names a path for the form that recognises it the test that pins it (src/shared/files/named-own.test.ts unless named)
the typed text (composer, quick reply, a card thread's reply, a notification's reply, the docked draft) the person (composer/editor/serialize.ts) no; a plugin's fill by adoption (above) a save position named.test.ts, the person's typed prompt and queued message
an artifact's read the host attaches the engine host (withLinkedReads, src/engine-host/linked-reads.ts) yes a read position; LINKED_READ_OPENING "a path only the attached read links …"; service.test.ts, the save refused (ticket 675)
a paste's frame and body the composer frames the clipboard (wrapPasted) yes a read (the typed words around it count) PASTED_BLOCK "A: a paste's frame and body …"
an anchored comment's lead, passage and tag main (commentsContent, src/shared/anchor/content.ts) yes a read (the comment texts the person typed count) ANCHOR_TAG_OPENING, readAnchoredMessage "B: an anchored comment's tag and lead …"
a side question promoted to a thread the window and the sessions service (promotionMessage) yes a read PROMOTION_HEAD "a side question promoted to a thread …"
MAWS's answer envelope, either form the engine host (askSteerText, src/engine-host/session-maws.ts) the earlier form: yes a read, anywhere in a block ASK_STEER_OPENING "an earlier build's envelope …", "the person's words and an envelope in one block …"
a grant sentence MAWS (consentMessage) yes (its subject) a read, on any line of a block quotesGrant "a grant sentence on its own line inside other words"
two messages the engine joined into one row the engine as their parts a read for every block past the first, and for a block holding an envelope or a grant position; the readers above "two messages the engine joined into one row …"
the plan handed back at a clear the engine host (planPrompt, src/shared/engine/host-prompts.ts, called by session-clear.ts) yes a read PLAN_LEAD "the plan handed back after a clear …"
the bash echo, its command and its output the engine host (bashEcho, same file, called by bash-mode.ts) yes (the output) a read, the typed command included BASH_INPUT_OPENING "the bash echo fails whole …"
an owner question's answer line the window (answerText, src/shared/owner/answer.ts; owner/report/answering.ts) yes (the head, a picked option) a read answersOf "an owner question's answer line …"
a relay to an agent or a peer the window (relayText, tools/agents/model/relay.ts) yes (a name) a read RELAY_CONTINUE "a relay to an agent or a peer …"
a typed slash command and its arguments the person, wrapped by the engine no a read TYPED_COMMAND, COMMAND_NAME_OPENING "C: a typed slash command's arguments …"
any block kind this table does not list anyone assume yes a read position "a text block after the person's, of no form MAWS writes …"

Routes closed by the API. A plugin's own message carries the plugin's origin (src/shared/engine/sminos-delivery.ts:9-10; surface-rows.ts:13), and only human is the person's (personsOwn, src/shared/files/named.ts); lane A's deliveries come back with that origin; a hook's added context is an attachment or a meta row, which the reader does not count; the tool server sends as the person only the answer envelope; the maws command line has no message verb (src/mawsd/maws-cli.ts); MAWS's built-in mods expose no send (src/services/owner/mods.ts). A remote member's typed message (src/endpoint/actions.ts:395) is the person's by the transcript's stated bound (the table of evidence above).

The guard. test/support/person-sends.test.ts reads every source file of src/ and apps/ and lists each site that hands content to a send, a steer or the queue as a person's message (the window, main, the services, the daemon, the engine host), classified as the person's typed text, as MAWS-composed with the form that recognises it, or as a carrier; an unclassified site fails it, and its own case plants one. What it cannot see: content assembled at run time and handed through a carrier, a command named at run time, a plugin's text in the draft, another machine's build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P2status:ready-for-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions