LearnNewsExamplesServices
Frontmatter
id19428
titleADR 0034 §2.3 item 11: moving the seat root is a named broker
stateClosed
labels
documentationenhancementaiarchitectureagent-os
assigneesneo-opus-grace
createdAtOct 6, 2026, 4:01 PM
updatedAtOct 6, 2026, 4:58 PM
githubUrlhttps://github.com/neomjs/neo/issues/19428
authorneo-opus-grace
commentsCount0
parentIssue571
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[ ] 582 System reviews and consents to this installation''s seat move
closedAtOct 6, 2026, 4:58 PM

ADR 0034 §2.3 item 11: moving the seat root is a named broker

Closed v13.2.0/archive-v13-2-0-chunk-24 documentationenhancementaiarchitectureagent-os
neo-opus-grace
neo-opus-grace commented on Oct 6, 2026, 4:01 PM

Context

The FM switch moves every peer's seat from the installed shell's app-data root to the default seat root (neomjs/neo-agent-brain#571, Gap 13). neomjs/neo-agent-institution#573 builds the boot-time transition. Its Out of Scope names the operator's consent surface as a sibling, "a sibling leaf, blocked by this one. It carries the seat-root broker's IPC and preload keys, which amend neomjs/neo's ADR 0034 §2.3 first, as the plane and setup brokers did (items 8 and 10)."

Split on 2026-10-06: @neo-opus-ada owns #573 and handed over the broker contract; @neo-gpt-emmy, as FM-switch lead, builds the Institution consent view (neomjs/neo-agent-institution#582); this ticket is the engine-side declaration.

The Problem

ADR 0034 §2.3 closes the shell's renderer surface. Its falsifier says that "any leaf needing a renderer capability the preload cannot express through a named, allowlisted intent amends THIS section first". The consent view needs three such capabilities (the move's status, the Brain's dry run, a consent that relaunches), and §2.3 names none of them. Until it does, the view has no declared channel to build against.

The Architectural Reality

  • Precedents: §2.3 item 8 (plane attach, #19228) and item 10 (first-run setup broker, #19366). Main-process handlers validate the sender per §2.3.4. Pull-shaped status follows §2.3.7. A consent that changes the shell's boot input relaunches, like attachPlane. Item 10's mutations wrap their answers in {ok}; item 11 answers the transition's own DTOs instead (the consumer's read for #582), and keeps item 10's rule that a view decides on a code, never on a sentence.
  • Producer: neomjs/neo-agent-institution harness/seatRootMove.mjs on ada/573-seat-root-move (3487e02). planSeatMove is the Brain's dry run (moveSeatHomes, neomjs/neo-agent-brain#901 at da5a1bb3) plus a fingerprint. consentSeatMove persists the move's inputs to seat-root-move.json beside the root record. settleSeatRootMove is the boot outcome, which main keeps as seatMoveOutcome. The producer wires no IPC handler; #582 adds them.
  • Root record: harness/seatRootRecord.mjs (seat-root.json under Electron userData). The move's commit is its only writer besides the first launch.

The Fix

Add §2.3 item 11, "moving the seat root is a named broker", with three channels whose answers are the transition's DTOs, unwrapped:

  • shell-seat-root-status is pull-shaped and answers even while the Fleet boot is held: {packaged, root, pending, outcome}.
  • shell-seat-root-plan answers the Brain's dry run with its fingerprint and the two roots it plans between.
  • shell-seat-root-consent({fingerprint}) re-plans and consents only to an unchanged plan. It persists the inputs and relaunches ({state: 'consented'}), or refuses with a code.

Only a consent refusal and the shell's own refusals carry a code. The Brain's plan refusal and the boot's outcome carry reason alone, and an invoke that rejects stays a rejection: the view reads it as unknown and offers no consent. A custody paragraph covers the inputs file, main as its only writer, no credential on these channels, and a renderer that holds nothing it did not receive from main.

Contract Ledger

Target Surface Source of Authority Proposed Behavior Fallback / Edge Case Docs Evidence
New: preload seatRootStatus() → shell-seat-root-status This ticket (ADR 0034 §2.3 item 11); §2.3.7 {packaged, root, pending, outcome}. root is readSeatRootRecord's {root, origin, recordedAt}. pending is readSeatRootMove's inputs as {from, to, archive, rows, outOfScope, consentedAt}; moveId, version and previousRecord stay main's. outcome is main's seatMoveOutcome, {state: 'none'|'committed'|'refused'|'held', reason?, retirement?}, with retirement {state: 'retired', archived} or {state: 'held', reason} Absent record or inputs: null. One the reader throws on: {unreadable: reason}, never absent, and the other fields still answer. A committed move keeps its inputs, and every later boot answers committed again. outcome is null outside a packaged boot. It answers while the Fleet boot is held. An untrusted sender's invoke rejects ADR 0034 item 11 L1 field check against seatRootRecord.mjs / seatRootMove.mjs at 3487e02; #582's broker and held-boot render tests
New: preload seatRootPlan() → shell-seat-root-plan This ticket; planSeatMove at 3487e02 {state: 'planned'|'refused', reason?, from, to, rows, fingerprint}: planSeatMove's answer plus the roots main planned between (from, the recorded root; to, the root the Brain resolves without the recorded override). Each row is {id, seatHome, destination, state, materialized, reason?} The Brain's refusal: reason alone, no consent offered. The shell's own refusal, before the Brain runs: {state: 'refused', code, reason}, with code not-packaged, no-brain-root, no-seat-root (no recorded root) or nothing-to-move (the recorded root already is to; moveSeatHomes throws on equal roots). A dry run that throws, or an unreadable record, rejects the invoke ADR 0034 item 11 L1 against moveSeatHomes at da5a1bb3; #582's plan, refusal and stale-response tests
New: preload seatRootConsent({fingerprint}) → shell-seat-root-consent This ticket; consentSeatMove at 3487e02 Main re-plans with its own roots and, on an unchanged fingerprint, writes seat-root-move.json and relaunches, answering {state: 'consented'} {state: 'refused', code, reason} with code plan-changed, already-consented (also after a committed move, whose inputs remain), no-seat-root, plan-refused, nothing-to-move, or the shell's not-packaged / no-brain-root: nothing written, no relaunch. A malformed request, an unreadable record or inputs file, or a failed write rejects the invoke; nothing retries ADR 0034 item 11 The producer's consent-codes spec arm at 3487e02; #582's concurrent-consent and changed-plan controls
seat-root-move.json custody #573; this ticket Owner-only (0o600), beside seat-root.json, written only through the consent channel. The boot deletes it when it refuses the move (settleSeatRootMove, :281) and keeps it after a commit. No credential crosses the three channels The renderer holds no root, row or fingerprint it did not receive from main; on an unknown status the view offers no consent ADR 0034 item 11 The producer's spec arms "a move that cannot commit … spends the consent" and "a later boot only reads"

Acceptance Criteria

  • ADR 0034 §2.3 carries item 11 in items 8/10's form: the three channels with their payloads, sender validation per §2.3.4, the named refusal codes, and the custody paragraph, with an inline amendment note citing this ticket and neomjs/neo-agent-institution#573.
  • The DTOs match the producer on ada/573-seat-root-move and the Contract Ledger above, and the refusal codes are the ones @neo-opus-ada confirms for consentSeatMove.

Out of Scope

  • The Institution consent view and its preload/ShellPlane forwarding (@neo-gpt-emmy, neomjs/neo-agent-institution#582).
  • The transition itself (neomjs/neo-agent-institution#573).

Related

neomjs/neo-agent-brain#571 (the move epic), neomjs/neo-agent-institution#573, neomjs/neo-agent-institution#582, neomjs/neo-agent-brain#901, #19228 (item 8), #19366 (item 10), #19422 (an ADR-row precedent on the same switch).

Live latest-open sweep: checked the latest 20 open neomjs/neo issues at 2026-10-06T14:01:27Z; no equivalent. A2A claim sweep: @neo-opus-ada (MESSAGE:286441a1) and @neo-gpt-emmy (MESSAGE:47a751a3) assign this declaration to me; no competing claim. Own-assignment sweep: 2 open (#14800, #15000); none overlapping.

Origin Session ID: 40a3c119-6419-4e87-9248-002c686708fe

tobiu closed this issue on Oct 6, 2026, 4:58 PM
tobiu referenced in commit cec2fcc - "docs(adr): ADR 0034 §2.3 item 11 declares the seat-root move as a named broker (#19428) (#19429) on Oct 6, 2026, 4:58 PM