Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
E2E Scenarios: Live Sessions and Remote Control
Part of the E2E test plan. Live Voice, Live Work, speech, and Remote Agent Control. Scenario template, gates, and traceability live in the plan.
E2E-LIVE-VOICE-gemini-work-schema
- Preconditions: Production Gemini adapter with a deterministic transport fixture and a bound work profile; no credentials or hardware devices.
- Steps: Start the call with a work target, accept a valid setup, unmute and send PCM. Reject another setup with close 1007 and a UTF-8 reason. Repeat with a transport error followed by close; cancel and close the adapter.
- Expected: Gemini sends the supported Schema subset and connects; OpenAI's
schema and Host argument validation remain strict. Setup rejection settles
immediately as
LIVE_PROTOCOL_ERROR, transport errors remain network errors, and only one failure is reported. The raw reason reaches only the provider log; even the connect rejection crossing IPC contains only the public code. Cancellation suppresses terminal noise and close removes socket observers. - Specs:
03-runtime/live-voice.md,09-logging-and-observability.md. - Acceptance: C, E, Security, Quality.
- Milestone: Maintenance, issue #1812.
- Automation:
live-voice-gemini-adapter.test.mjs,live-voice-service-lifecycle.test.mjs, and voice-runtimelive/protocol.test.ts. - Status: Adapter/service contract-covered; full Electron/Gemini account and physical microphone acceptance remain separate and are not certified here.
E2E-LIVE-VOICE-public-settings-and-reconnect
- Preconditions: A built production Renderer and real Electron/Main/Host, isolated data/profile/project, developer mode off, a local TLS or loopback HTTP Realtime fixture and synthetic microphone. For TLS, trust only the fixture CA in the child process; do not disable TLS, sender, sandbox or microphone checks.
- Steps: Open Live from Composer while disabled and follow Open settings. Find Voice through settings search, bind the fixture account, enable Live, connect, unmute, receive audio/captions, mute and hang up. Cancel a delayed startup, disconnect the provider and explicitly reconnect. Restart with the same isolated profile, inspect persisted settings and disable Live.
- Expected: Voice is reachable without developer mode. Enabling settings does not capture audio; the real built Renderer passes the exact main-frame owner check. Only the chosen account is used. Mute stops input, every end closes media/socket resources, and failures never trigger an automatic new call. Settings survive restart without reconnecting. Legacy Dictation settings are unchanged; a voice-only call creates no Agent session.
- Coverage:
pnpm test:e2e:live-voicedrives the built app and its concrete Realtime GA adapter against local WSS;pnpm test:e2e:live-voice -- --plain-httprepeats the call flow against a loopbackws://endpoint.live-voice-websocket-endpoint.test.mjsconnects the production transport to a local loopback WebSocket and verifies proxy refusal;live-voice-owner.test.mjsbundles the production owner module and rejects other files/frames. Fixture audio is not physical-device or real-provider acceptance. Commands and results are recorded indocs/implementation/live-voice-public-readiness.md. - Specs: Live Voice.
E2E-LIVE-VOICE-provider-call-lifecycle
- Preconditions: Isolated desktop profile with Live Voice enabled and one fixture provider binding. Use a deterministic local protocol fixture; do not use a real provider account or paid endpoint for automation.
- Steps: Open Voice settings and confirm only Live Voice controls are
visible; legacy Dictation toggles, microphone selection and transcription
model controls are absent. Confirm the enabled Composer shows one Live
preparation entry without a separate Work or old Dictation microphone button.
Bind/select a fixture account for each supported adapter profile. In Settings
→ Shortcuts, customize the Live Voice toggle and use it to start then end a
fixture call. Cancel a pending startup
with the
voiceCancelbinding (defaultEscape) when no popup consumes the key; pressingEscapeduring a connected call must not end it. Restore the default, then explicitly Start from preparation, cancel during permission/startup, connect, mute/unmute, interrupt playback, inspect the in-memory transcript, and end. Repeat with Dictation already holding the microphone, a changed active binding, a provider credential removal, renderer hide/reload, and a rejected playback gesture. - Expected: Live is off by default; persisted Dictation settings remain unchanged but are not exposed in the UI; only the selected Provider ID is used; secrets do not enter Renderer; no Agent, MCP, shell or file action runs; mute gates new input immediately; cancellation stops late media; the transcript is not persisted; every end path releases media and background-throttling leases or quarantines an unconfirmed microphone lease. A new call starts only after explicit user action.
- Specs: 03-runtime/live-voice.md, 03-runtime/20-speech.md, 04-ux/09-interaction-patterns.md.
- Acceptance: Adapter setup and event parsing are local fixtures; Main
lifecycle, owner, lease and settings behavior are covered by targeted tests.
apps/desktop/test/live-voice-shortcuts.test.mjscovers the configurable toggle/cancel actions, including that Escape never ends a connected call. The full Electron flow and real-provider/device compatibility remain unverified until their respective isolated acceptance environments are run.
E2E-LIVE-VOICE-realtime-plaintext-user-endpoint
- Preconditions: Isolated desktop profile with Live Voice enabled and an
OpenAI-compatible API-key Provider whose base URL is a local plain-HTTP
Realtime fixture such as
http://127.0.0.1:<port>/v1. Do not use a real provider account. - Steps: Bind the Realtime adapter to that Provider and start a call with
networkPolicy.modeat its default (relaxed). End the call, switch the mode tostrictand start again. Repeat inrelaxedwith a system proxy that does not bypass the fixture host. - Expected: In
relaxedmode the call connects overws://127.0.0.1:<port>/v1/realtime?model=…and the one-time plaintext notice is raised. Instrictmode, and on a proxied route, the call fails before any socket opens with a network-policy error. Anhttpsbase URL still connects only overwss; Gemini never useswsand Codex SDP stays HTTPS-only. - Specs: Live Voice, ADR 0304.
- Acceptance:
apps/desktop/test/live-voice-websocket-endpoint.test.mjscovers the scheme mapping, the user/third-party split and the refused base URL shapes; the network guard'srelaxed/strictverdict is covered by the existing public-network tests. The full Electron flow remains unverified until its isolated acceptance environment is run.
E2E-LIVE-VOICE-four-stage-ui
- Title: Disabled, preparation, compact call, and deliberate details.
- Preconditions: Isolated Electron profile with Live Voice initially disabled, deterministic local provider/media fixtures, and local work-session fixtures. No real account, microphone, speaker, paid endpoint, or user's running Desktop instance is used.
- Steps:
- Confirm neither Live nor Work Composer icon exists while disabled. Every account card shows only its provider picker until that account is bound. Enable Live Voice only from Settings → Voice; verify exactly one idle voice icon and that the card keeps its Model configuration link on the heading line beside the help mark.
- Open preparation and expand/collapse work options without starting. Verify no prepare request, microphone acquisition, media initialization, provider connection, or work dispatch occurs. Make the selected binding unavailable while another is ready: show the exact selected identity/reason, disable Start, and do not switch providers implicitly.
- With a ready binding, explicitly Start and observe Connecting plus Cancel in the compact bar, without automatically opening Details. Cancel while prepare or media acquisition is pending and deliver the late completion. Repeat Start to connect muted, then unmute/mute and inspect status.
- Open Details, inspect transcript/provider/work state, and dismiss it with Close, outside press, and Escape. Keep the call connected; use the bar to resume blocked sound, observe a rejected resume, and recover explicitly.
- Navigate between chat, Settings, Plugins, and sessions. The call chrome is a docked desktop widget window, so drag it by its own bar, verify the position survives that navigation and is clamped back inside the work area, and verify the main window draws no call bar. End or disable the feature with delayed Main termination and renderer cleanup, in either completion order. Keep Ending visible and prevent another Start until both settle. Exercise unconfirmed release and verify visible blocked recovery.
- Reopen preparation: work access and context consent are unchecked. Merely expanding the section or selecting a session never starts a call; Start without the work opt-in is voice-only. Opt into work explicitly, select a valid local target, and Start; inspect the fixed binding and work results in Details. End and reopen preparation, then change/create the target, opt out, or cancel and verify context consent resets. Ending Live does not stop already accepted work.
- Use the configured toggle to start a voice-only call directly and end it. During startup, a popup consumes Escape to dismiss itself without cancellation; without a consuming popup, the startup-cancel shortcut works. Escape never ends a connected call. Repeat visible controls in English and Simplified Chinese and check catalog coverage for all shipped locales.
- Expected: Four distinct UI states, deliberate startup and work consent, exact-binding readiness, default mute, global cleanup visibility, accessible controls and focus return, and no changed IPC, persistence or permission boundary. Playback and error recovery do not require opening Details.
- Specs: Live Voice, Live Work, Component spec, Settings IA.
- Acceptance: C / E / Security / Quality.
- Milestone: Post-MVP experimental interaction maintenance.
- Coverage: Targeted controller/presentation regression tests and
pnpm test:e2e:live-voice-interactioncover the mounted production controls, controller, store, shortcuts, i18n, cleanup ordering, work consent, and error recovery with simulated shell navigation and fake external edges. This does not mount full AppShell/settings/plugin routes or exercise a real provider, device, permission prompt, or audio output. - Status: Task-candidate fixture passed 48/48 interaction checks. Full AppShell, real-provider, and device compatibility remain unverified.
E2E-LIVE-WORK-session-admission
- Preconditions: Isolated Live provider fixture, Desktop/Native Pi/Remote session catalog fixtures, and a deterministic fake intent resolver. Provider candidates enter through the existing Live adapter callback; do not use a real account or paid endpoint.
- Steps: Start a call from a Composer with an active Desktop session and
verify that session is the default target without a work-access checkbox or
pre-call voice selection. Repeat with Native Pi and Remote Composer sessions.
Start with no current session and verify the call remains unbound until the
user lists sessions and chooses one by voice. Reject missing and duplicate
session identities. With context sharing disabled, submit one work request
and verify no history read; then test the separate bounded-context consent.
Switch targets by voice during a call, submit before and after the switch, and
verify the two operations remain associated with their respective sessions.
Deliver each receipt, route through the classifier, and inspect backend
admission and
voiceOrigin. Exercise backend-specific queue/steer/stop capabilities, approval denial, stale turn, offline Remote Host, and a terminal event arriving before submit resolves. Query an exact terminal result without creating another Host turn. Request project/session lists, verify labels and opaque call-scoped references, then test opening and creating only through their existing panel actions. With a submission waiting on the user, confirm the compact bar keeps a waiting line and Details shows the pending ask question with an action that opens that exact session; verify another session's pending request stays unattributed. Then answer the open asktool question by voice and confirm the session's card resolves through the Host input path; retry with a label the question never offered, with a partial answer, and with two open questions, and confirm each is refused without a write and without being retried. Exercise feedback while generation, user speech, and playback are active; finish by ending Live after Host admission. - Expected: The initial target is the current Composer session when present; voice switching affects subsequent requests only. Main validates each target against a fresh multi-backend catalog, and ambiguity/unavailability fails closed. Context reads occur only after independent consent and remain bounded to the current target. Each backend retains its own admission, permission, approval, and capability rules; unsupported operations and offline targets are reported honestly. Duplicate provider IDs do not dispatch twice, terminal state comes from authoritative backend events, result queries project only the exact operation summary, and ending Live does not cancel accepted work. Selection references expose no raw paths or IDs and remain call-scoped. Automatic feedback and task execution remain separate; a renderer signal is not evidence that a person heard the result.
- Coverage:
apps/desktop/test/live-work-scope.test.mjscovers the fresh Desktop/Native Pi/Remote catalog, source-specific prompt/stop/queue routing, offline Remote failure, initial Native/Remote event subscriptions without a local AgentHost bridge, project/workspace identity, opaque refs, and ambiguous-target rejection.apps/desktop/test/live-voice-ipc-media.test.mjscovers separate target/context consent and rejects raw operation/session/turn IDs.apps/desktop/test/live-voice-service.test.mjscovers owner-scoped stop/cancel routing by call and operation IDs.packages/host-runtime/src/live-work/coordinator.test.tscovers receipt ordering, routing, stale steer, replay, call close, target switching, exact-turn stop and old-session queue cancellation.packages/host-runtime/src/live-work/context.test.tscovers bounded context projection.packages/agent-host/src/agent-host.test.tscovers history-free state, queue insertion, and voice provenance.packages/voice-runtime/src/live/protocol.test.tscovers provider-specific tool declarations and receipts.packages/host-runtime/src/live-work/result-summary.test.tscovers exact-turn summary projection and honest fallbacks. TheLiveWorkFeedbackSchedulertests cover debounce, speech spacing, silent mode, stale downgrade, deduplication, and overflow; desktop service tests cover provider/user/local playback gating and separate delivery status.apps/desktop/test/live-work-scope.test.mjscovers selection reference scope/expiry, andlive-work-operations.test.mjscovers the panel actions.apps/desktop/test/live-work-decision.test.mjscovers the waiting-decision projection, its session scoping, bounded plain-text rendering and the panel action that opens the bound session.packages/host-runtime/src/live-work/ask-answer.test.tscovers the spoken answer intent and its routing (resolved, refused, unknown and never resent), andapps/desktop/test/spoken-answer.test.mjscovers the option-only matching, the bounded read-out and the delivery budget.voice-runtime/src/live/playback-monitor.test.tscovers local audio signal detection. This is targeted automated coverage, not the complete W2-001—W2-096 matrix or real-provider E2E. - Status: Partial; remaining scenarios and the real-device matrix are
tracked in
docs/implementation/live-work-evidence.md. - Specs: live-work-session, live-voice.
E2E-LIVE-WORK-v2.1-reliability
- Preconditions: An isolated local Host session, fixture classifier completion, and fake runtime/provider I/O. No real account, user project, or running Desktop instance is used.
- Steps: Capture a null/active target at provider ingress and delay classification; race a validated stop against ordinary classification; make Host dispatch stay unresolved, then return exact read-only admission evidence; deliver terminal before the write acknowledgement; close Live during dispatch; change the authorized workspace before AgentHost admission; enqueue independent work; delay final assistant persistence; query the task result after a stop control operation.
- Expected: Stale/null targets never become later turns. A stop barrier withdraws earlier writes that have not crossed admission. Explicitly busy ordinary submits do not silently enter the queue. Host uncertainty is shown as unknown and reconciled without a second write. Terminal evidence cannot revive or be overwritten by a late acknowledgement. Workspace mismatch creates no turn or queue item. Idle explicit queue entries drain through AgentHost; restored held entries remain held. A result query returns only an exact task result, not an admission or stop acknowledgement.
- Coverage:
packages/host-runtime/src/live-work/coordinator.test.ts,packages/host-runtime/src/live-work/operation-ledger.test.ts,packages/agent-host/src/agent-host.test.ts,apps/desktop/test/live-work-production-composition.test.mjs, andapps/desktop/test/agent-host-bridge-work-ack.test.mjs. The production composition fixture instantiates the Live Work bridge, AgentHost bridge, registeredagentPrompthandler, and real AgentHost; Host-core persistence, concrete provider adapters/transports, and real device journeys remain outside that test boundary. - Status: Automated coverage is partial and is recorded per case in
docs/implementation/live-work-v21-coverage.md. Real device acceptance is not run. - Specs: live-work-session, live-voice.
Remote Agent Control target scenarios (post-MVP)
The following scenarios require the approved remote harness. They are
documented now so the protocol and security work has an explicit acceptance
target. Do not run them against a local desktop or a production Gateway unless
the request explicitly authorizes that environment. D374 amended every
scenario in this section to the revised contract: { epoch, sequence }
cursors, ephemeral deltas, the Host-owned turn queue, the full local approval
vocabulary, the remote permission ceiling, the Host link relay, and the
browser cookie profile. D375 re-sequenced the milestones: E2E-231 and
E2E-232 are the acceptance targets of the scheduled SSH-tunnel and
integration milestones, while E2E-227 and E2E-228 run when the Gateway and
browser milestones are scheduled.
E2E-221: RACP initialization negotiates capabilities and policy
- Preconditions: A test Agent Host and an authenticated client support
RACP-WSv1. The Host has one visible idle Session and a configuredremoteMaxPermissionModeandapprovalLifetimeMs. - Steps: 1) Connect without initialization and send a request. 2) Send
connection/initializewith supported bindings and theturnQueue,hostEvents, andhistorycapabilities. 3) Sendnotifications/initialized. 4) Repeat with an unsupported major version.- Call
host/liston the direct Host connection.
- Call
- Expected: Pre-initialization requests are rejected; the valid handshake
returns the negotiated protocol, connection id, principal roles, limits
including
maxQueuedTurnsPerSessionandreplayWindowEvents, the advertised capabilities, and the informationalpolicyblock; the unsupported major version returnsPROTOCOL_MISMATCH;host/listreturnsMETHOD_NOT_FOUNDbecause no Gateway is present. - Specs linked:
03-runtime/19-remote-agent-control-protocol.md§3 and §7.7,05-security/02-remote-control-security.md§3 - Acceptance: Security, Quality
- Milestone: Post-MVP
- Status: Draft; remote harness required
E2E-223: Reconnect replays durable events or resynchronizes by epoch
- Preconditions: A turn is producing at least five durable events and a long streaming assistant message; the harness can close and reopen the client connection and restart the Host.
- Steps: 1) Record the last applied cursor. 2) Disconnect in the middle
of a streaming message. 3) Reconnect and subscribe with
after. 4) Repeat after evicting the cursor from the bounded replay window. 5) Restart the Host during an idle period and reconnect with the old cursor. 6) Repeat step 3 overRACP-HTTPusingLast-Event-IDin theepoch:sequenceform. - Expected: A retained cursor replays every later durable event exactly
once and no delta; the snapshot's
activeItemscarry the text streamed before the disconnect; an evicted cursor returnsresync.requiredwith a complete snapshot; a cursor from the previous epoch returnsCURSOR_EXPIREDand a snapshot with a new epoch; a durable gap never causes the client to guess or apply out-of-order state; and the SSE path behaves identically. - Specs linked:
03-runtime/19-remote-agent-control-protocol.md§§5.3, 5.4, 7.2, and 8,02-architecture/05-remote-agent-control.md§8 - Acceptance: Recovery, Quality
- Milestone: Post-MVP
- Status: Draft; remote harness required
E2E-224: Remote approvals carry the local vocabulary and stay host-owned
- Preconditions: A Session policy requires a tool approval; the fixture
Agent submits a Plan and asks one multi-select asktool question in the
same run; Host policy allows remote session grants; a second Session is
configured with
permissionMode: "auto"and the Host ceiling isask. - Steps: 1) Start the turn from a controller. 2) Observe the tool
approval request. 3) Attempt a decision from a viewer, then with a stale
revision. 4) Resolve from an authorized approver with
allow-session.- Attach a third client after the Plan approval is raised and read its
snapshot. 6) Resolve the Plan with
approveand nopermissionMode, then withpermissionMode: "accept-edits". 7) Answer the input request with one multi-select answer and onenull. 8) Repeat step 4 after expiry. - Start a turn on the
autoSession from a controller withoutapprover.
- Attach a third client after the Plan approval is raised and read its
snapshot. 6) Resolve the Plan with
- Expected: The viewer and stale responses fail closed with
FORBIDDENandAPPROVAL_STALE;allow-sessionresumes the turn and a later call of the same tool in that Session needs no approval; the late client's snapshot lists the pending Plan approval; the mode-less approve is rejected and the explicit one queues execution in Agent mode withaccept-edits; the desktop's own approval card closes when the remote decision lands; the asktool answers reach the Agent as the localAskToolResolution; expiry returnsAPPROVAL_EXPIREDand never executes the tool; and theautoSession turn reportseffectivePermissionMode: "ask"and raises an approval while the durable session mode staysauto. - Specs linked:
03-runtime/19-remote-agent-control-protocol.md§§5.5, 7.3, 7.5, and 9,05-security/02-remote-control-security.md§§4 and 7,03-runtime/10-session-state-machine.md - Acceptance: E (tools & permissions), Security, Recovery
- Milestone: Post-MVP
- Status: Draft; remote harness required
E2E-226: Roles, scopes, and revocation are enforced
- Preconditions: One tenant, two Hosts, two Sessions, and principals with viewer, controller, approver, and owner roles exist. A multi-tenant harness profile, when available, adds a second tenant.
- Steps: 1) Try every catalog operation, including
session/history,turn/cancel, and host-scopeevents/subscribe, with each role.- Substitute a Session, Host, and approval id from the other Host, and from the other tenant when the multi-tenant profile is active. 3) Queue a turn as a controller, then revoke that principal and retry its existing connection.
- Expected: The role matrix is enforced, including the
allow-sessionpolicy row; foreign identifiers returnFORBIDDENorNOT_FOUNDwithout existence leakage; revocation closes the connection, blocks new mutations, and cancels the revoked principal's queued turn; and audit records identify the denied principal without recording prompt or secret content. The cross-tenant cases are required only under the multi-tenant profile. - Specs linked:
05-security/02-remote-control-security.md§§3–9 and §11,03-runtime/19-remote-agent-control-protocol.md§§6 and 13 - Acceptance: Security, Quality
- Milestone: Post-MVP
- Status: Draft; remote harness required
E2E-227: The Host link relays clients behind inbound firewall/NAT
- Preconditions: The Agent Host runs behind a test firewall that rejects inbound connections. The Gateway is publicly reachable by two test clients.
- Steps: 1) Enroll the Host with a one-time credential. 2) Establish the
outbound mTLS Host link. 3) Attach both clients and run a turn that raises
a tool approval. 4) Answer the relayed server request from the client that
received it, then attempt to answer it again from the other client.
- Upload an attachment through the Gateway upload target and reference it from a turn. 6) Drop the link and allow it to reconnect. 7) Revoke the Host and attempt re-enrollment with the old credential.
- Expected: No inbound desktop port is opened; the Gateway routes only to
the authenticated Host; the approval request is delivered on exactly one
logical connection and the second answer returns the stored result with
alreadyResolved; attachment bytes cross the link in bounded chunks, the Host verifies the hash, and the Gateway's copy is gone afterattachment/complete; local execution continues across the link interruption and both clients resume from resumable cursors; reconnect does not duplicate the turn; and the revoked credential cannot re-enroll. - Specs linked:
02-architecture/05-remote-agent-control.md§5.3,03-runtime/19-remote-agent-control-protocol.md§§10 and 11.4,05-security/02-remote-control-security.md§§3.2 and 6,06-delivery/07-remote-control-rollout.md§2 - Acceptance: Security, Recovery, Quality
- Milestone: Post-MVP
- Status: Draft; unscheduled until the Gateway milestone is scheduled (D375)
E2E-230: Failure recovery does not replay admitted work
- Preconditions: A deterministic Host, Gateway, and client can inject process, link, and response-loss failures; one turn is running and two are queued.
- Steps: 1) Drop the response after
turn/startis admitted. 2) Retry with the same idempotency key. 3) Crash the Host during the running turn.- Restart the Host and reconnect from the last cursor. 5) Drop an approval response after it is accepted and retry it.
- Expected: The first retry returns the original turn; execution occurs
once; Host recovery marks the interrupted turn according to the local
recovery policy; the reconnect receives a new epoch and a snapshot whose
queue is empty, and neither queued turn is started or replayed; no
completed item is replayed as a new turn; and the retried approval returns
the stored decision with
alreadyResolvedwithout executing twice. - Specs linked:
02-architecture/05-remote-agent-control.md§10,03-runtime/19-remote-agent-control-protocol.md§§7–8 and 9.3,06-delivery/07-remote-control-rollout.md§4 - Acceptance: Recovery, Security, Quality
- Milestone: Post-MVP
- Status: Draft; remote harness required
E2E-REMOTE-MVP: Legacy remote Agent compatibility
- Preconditions: Current Desktop and complete same-platform Host bundle, isolated data/profile, and a loopback mock model. No production credentials.
- Steps: Copy an explicitly selected eligible provider and repeat the copy; pair, register a project, create/open an Agent/Ask session and send text. Drop the client connection while a real Bash approval is pending, reconnect and approve once. Read the resulting transcript/file/diff, reject a path outside the project, remove the host and attempt another prompt.
- Expected: Import preserves the default and is idempotent. The command and turn execute once, in the Host project only; stale routing never falls back locally. Snapshot recovery restores pending requests and clears peer-resolved cards. Local workspace/model state is unchanged.
- Compatibility coverage: Existing remote Agent session routing remains
covered by
remote-mvp-renderer.test.mjs; the Settings inventory exposes no session-list or new-session controls. New projects follow E2E-REMOTE-HOME. - Automation:
scripts/e2e-remote-mvp.mjs(packaged Host, real Rust/Agent runtime and Desktop main routing, mocked model);scripts/e2e-remote-mvp-ui.mjs(real components, mocked IPC). Neither is a full SSH/Desktop acceptance result. - Status: Automated narrow-MVP scenario. Linux
sshd, release download, password authentication and full R2 remain separately gated by E2E-231.
E2E-REMOTE-HOME: Create and continue a remote workspace as a local project
- Preconditions: Isolated Desktop profile, connected Host directory fixtures, a local provider fixture, and local/remote directories with the same basename. No user profile, production host, credentials or paid model calls.
- Steps: Open Settings → Remote Hosts and click New project on the intended host. Confirm the shared Create project dialog has Remote selected and that host preselected. Browse through a separate folder dialog, cancel/reopen, navigate parent/child and confirm a directory. Enter a custom name, create, rename and reopen the project. Start a normal local chat, choose a local model and send a request that invokes Read and Bash remotely. Approve locally, cancel a command, disconnect/reconnect and retry explicitly.
- Expected: Focus and drafts survive picker cancellation. Late host responses cannot replace the current host selection. Project metadata and sessions are local and stable after reload, including name/memory/instructions and ordinary sidebar/archive operations. Model requests and provider secrets never appear in remote transport. Only locally admitted workspace tools execute on Host. Equal paths on two hosts or on Desktop never collide. Failed calls never execute locally or replay automatically. Existing remote histories remain readable.
- Specs:
02-architecture/05-remote-agent-control.md,04-ux/01-ui-ia.md, ADRlocal-agent-remote-workspace-tools. - Acceptance / milestone: Local Agent remote-workspace execution; additive project KV metadata and authenticated workspace-tool endpoints.
- Automation:
remote-project-dialog-user-path.test.mjs,remote-workspace-tools.test.mjs, host-core remote project/relay tests, pi-host workspace-tool tests and Agent runtime remote-workspace tests;PI_HOST_CORE_BINARY=<candidate binary> node scripts/e2e-local-agent-remote-tools.mjsruns a local model fixture through production Desktop relay, WebSocket RACP and real Rust Read/Bash execution, asserting zero remote providers, projects and sessions. Both local and remote Rust Hosts are real; the model service and the fixture's user approval action are controlled test boundaries. - Status: Candidate implementation; real SSH release validation remains the separately provisioned E2E-231 scenario.
E2E-231: The desktop drives a remote Host over an SSH tunnel
- Preconditions: A Linux test machine runs
sshdand holds a project the desktop can reach with the user's SSH key. A GitHub Releases fixture serves thepi-hostbundle for that platform at the desktop's version, a bundle at another version, and a tampered bundle with a wrong checksum. The desktop has one local session open, one user MCP server configured, and one installed plugin whose tool requires workspace access. - Steps: 1) Add the remote machine from the desktop and let the uploaded
bootstrap script download, verify, and start
pi-hostover SSH.- Observe the pairing exchange and the resulting device token. 3) Create a
session under a remote project through
project/listandsession/create. 4) Start a turn whose fixture reads, edits, and runs a command in the remote project, and approve the command from the desktop card. 5) Switch the session to Plan mode and back withsession/configurewhile idle, then attempt it while a turn runs. 6) Open the files tab and the diff tab for the remote session. 7) Advertise relay from the desktop, run a turn that calls the desktop MCP tool, then close the desktop during a second call. 8) Kill the SSH session mid-turn, restore it, and let the desktop reconnect. 9) Inspect the remote tool catalog. 10) Attempt to connect from a non-loopback address on the remote machine, then with a reused pairing token. - Point the bootstrap at the tampered bundle, then at the other version, and reconnect.
- Observe the pairing exchange and the resulting device token. 3) Create a
session under a remote project through
- Expected: Files change only on the remote machine and the command runs
there; the approval card appears in the desktop with the local vocabulary;
the remote host-core binds loopback only;
session/configuresucceeds while idle and returnsCONFLICTwhile running; files and diff come from the remote session root and a path outside it returnsPATH_OUTSIDE_WORKSPACE; the desktop MCP tool executes on the desktop and its result reaches the remote transcript, while the second call fails withTOOL_FAILEDand the turn continues; reconnect resumes by cursor without a duplicate. The remote catalog lists the relayed MCP tool but not the workspace-requiring plugin tool. Non-loopback peers and reused pairing tokens are rejected. Tampered bundles are refused before start; SSH login failures are surfaced safely; version mismatch offers a matching-release recovery. Opening a listed remote session keeps it inside its host project group, because the attach snapshot reports the sameprojectIdas the session list; that group's disclosure collapses and restores its rows exactly like a local project group. Host groups appear below the local ones under their ownRemoteheading, hide it when the host has no group left, and keep their order when a conversation in another host project is opened. The local session is untouched throughout. - Specs linked:
02-architecture/05-remote-agent-control.md§§5.2 and 6.3,03-runtime/19-remote-agent-control-protocol.md§§6.2, 9.4, and 11.1,05-security/02-remote-control-security.md§§3.4, 4.3, 5.1, and 7,06-delivery/07-remote-control-rollout.md§2 - Acceptance: E (tools & permissions), Security, Recovery, Quality
- Milestone: Post-MVP (rollout R2)
- Status: Draft; remote harness with a Linux SSH target required
E2E-REMOTE-SSH-OPTIMIZATION: Verified deployment, local Agent and recovery
- Preconditions: Isolated Desktop profile and a Linux x64/arm64 SSH target
with
sshd, POSIX shell, archive/hash tools and kernelflock; no system Node, systemd, public listener, production credential or paid model. A controlled release fixture serves a matching Host archive and digest. - Steps: Install through SSH with remote download; repeat bootstrap and verify
immutable installed files are reused. In a separate isolated account, block
remote release access and verify one bounded Desktop-download/SSH-upload path.
Corrupt the archive and alter an installed file; verify integrity failures do
not fall back or replace a working install. Reboot/kill the Host and repeat
readiness; rotate Host identity and revoke a device token. Create a local
project bound to the remote workspace, use local model credentials and remote
AGENTS.mdwith local global instructions, then run Read and permissioned Bash. Drop SSH during Write and inspect the remote file before any manual retry. Exercise offline project browsing and the Settings connection status labels. Repoint the fixture release so the paired Host no longer matches the desktop, then select a remote folder and verify the Host is realigned over the same verified install, re-paired in place and connected without removing it. - Expected: Bundled Node starts the Host without a system Node or remote
release access. Reuse validates the external release receipt and installed
manifest; failed staging leaves the previous
currentintact. Daily readiness starts/reuses the same Host without re-pairing, resetting credentials, killing another client’s Host or replaying tools. Identity/authentication failures stop automatic retry. Local model requests, API keys, sessions and permissions stay local; workspace tools/files and root-only repository instructions come from the remote canonical root. A lost mutation reply reportsREMOTE_MUTATION_OUTCOME_UNKNOWNand is not replayed or executed locally. A Host that falls behind the desktop release is realigned over the same verified install and re-paired in place — once per release per host, and again on an explicit user reconnect — while a Host that still cannot serve this desktop keeps the upgrade message instead of looping or dropping the pairing. - Automation:
remote-host-realign.test.mjs,remote-host-supervisor.test.mjs, SSH bootstrap shell, packaging, artifact transfer, concurrent readiness/auth lifecycle and UI contract suites;PI_HOST_CORE_BINARY=<candidate binary> node scripts/e2e-local-agent-remote-tools.mjscovers local model/instructions through real loopback RACP and Rust Read/Bash, but is not SSH qualification. - Acceptance: Security, Recovery, Quality; release remains gated on the real Linux SSH run and a new matching Desktop/Host release. This scenario does not claim reverse-relay, interactive-terminal or complete R2 acceptance.
- Status: Candidate implementation; Linux SSH and release qualification pending.
E2E-REMOTE-HOST-ssh-password-authentication
- Preconditions: Settings → Remote Hosts is available with its Experimental
badge, independently of developer mode. A Linux test machine runs
sshdwithPasswordAuthentication yesandPubkeyAuthentication no, so the login is only reachable with a password; the user's local SSH agent holds no usable key for it. A GitHub Releases fixture serves thepi-hostbundle for that platform at the desktop's version. A second machine accepts the user's key only. - Steps: 1) In Settings → Remote Hosts, open the Add form's SSH tab, choose
a local private-key file in key mode, and confirm its path is displayed. Cancel
a second file selection and confirm the existing choice remains; select the
same file again and confirm it can be reselected. Clear the selection once to
confirm the SSH agent/config fallback is available, then choose the key again.
- Switch the authentication mode to password, confirm the identity-file picker is replaced by a masked password field, and reveal it once.
- Try to submit an empty password. 4) Point the form at the password-only machine, enter the password, and bootstrap it.
- Quit the desktop, relaunch it, and let the host reconnect.
- Change the saved password to a wrong value through a re-pair, then force a reconnect. 7) Bootstrap the key-only machine with a password supplied.
- Inspect the desktop's process arguments and
remote-hosts.jsonwhile a password-authenticated host is connected. 9) Attempt to submit a password containing a newline through the IPC channel directly.
- Expected: Key mode lets the user choose a local identity file; its path
is read-only in the form and is passed to the existing
ssh -iflow. The app never reads or uploads the key contents. Cancel preserves the prior choice, the same file can be selected again, and Clear returns to SSH agent/config lookup. The key-authenticated SSH behavior remains unchanged:BatchMode=yesand no credential file anywhere. In password mode the picker is replaced by a masked password field, the reveal toggle shows and re-hides the value, and an empty password keeps the submit disabled. The password-only machine installs and pairs. After the relaunch the host reconnects with no prompt, proving the saved credential is used. The wrong password yields exactly one failed attempt per connect (no helper-driven retry storm) and the host shows as offline rather than crashing the app or showing a rejected-login dialog. The Settings toast carries ssh's last stderr line (for examplePermission denied), not a bare exit code 255. The key-only machine fails under password mode because that mode setsPubkeyAuthentication=no; a user with a key picks key mode. Nosshargument contains the password, no askpass file or directory remains after the connect completes, and the on-disk record stores the password only as keychain ciphertext — never in cleartext. A password containing a newline is refused withINVALID_ARGUMENTbefore any remote command runs. - Specs linked:
05-security/02-remote-control-security.md§§3.4 and 13 (gate 21),02-architecture/05-remote-agent-control.md§5.2,06-delivery/07-remote-control-rollout.md§2 - Acceptance: Security, D (surfaces), Quality
- Milestone: Post-MVP (rollout R2b)
- Status: Draft; remote harness with a password-only Linux SSH target
required. The chooser control is covered by
apps/desktop/test/settings-remote-hosts.test.mjs; the SSH credential seam is covered offline byapps/desktop/test/remote-host-ssh-password.test.mjs.
E2E-REMOTE-HOST-settings-compact-inventory
- Preconditions: The desktop Settings window can open. No paired remote host is required. Developer mode is off in persisted settings. The isolated renderer harness can return a successful pair result without network access.
- Steps: 1) Open Settings with developer mode off and confirm Remote Hosts and its search hits are available. 2) Open the page and confirm the rail and title carry the Experimental badge. 3) Confirm the SSH and Pair action row is above the inventory and neither dialog is open. Open SSH; verify the dialog is named, modal, and focuses its first field. Cancel and confirm focus returns to SSH. Open Pair, submit the fixture pairing form, and confirm success closes the dialog and clears the draft. Change language and confirm action labels update. Reopen Pair, enter a draft, cancel, and confirm the dialog closes and the draft clears. Open SSH password mode, enter a fixture password, cancel, reopen, and confirm the password is empty. Press Escape and verify the dialog closes and focus returns to SSH. 4) Toggle developer mode and confirm the destination stays selected and available. 5) On a paired SSH host, open the historical sessions browser and verify model-copy and remote-create controls are absent. New workspace creation stays on Home.
- Expected: Experimental availability is consistent across packaged and development builds. Add actions precede inventory; the forms open in the shared modal surface, one at a time. Cancel, Escape, backdrop dismissal, and successful submission close the dialog and clear drafts; focus returns to the initiating action. Existing pairing toasts remain. The inline browser preserves existing remote histories; new SSH workspace projects use the local model and project controls from Home.
- Specs linked:
04-ux/06-settings-ia.md§1, §3,06-delivery/07-remote-control-rollout.md§2 R2,02-architecture/05-remote-agent-control.md§5.2 - Acceptance: D (surfaces), Quality
- Milestone: Post-MVP (rollout R2b)
- Status: Offline coverage in
settings-remote-hosts.test.mjsandremote-mvp-renderer.test.mjs; isolated Electron/Chromium interaction coverage inscripts/e2e-remote-mvp-ui.mjs, including disclosure, success and cancel paths. Real SSH acceptance is separate.
E2E-232: The outbound messaging integration relays events and commands
- Preconditions: A Host runs with the integration adapter configured against a webhook sink and a long-polling bot fixture, with one linked chat and one unlinked chat. No inbound port is open on the Host machine.
- Steps: 1) Run a turn to completion. 2) Start a turn that raises a tool
approval and leave it pending. 3) Send the stop command from the linked
chat during a running turn. 4) Send the same command from the unlinked
chat. 5) Make the webhook sink return errors for one minute, then recover.
- Inspect every payload delivered.
- Expected: The sink and the bot receive redacted summaries of
turn.completedandapproval.requestedwith ids and bounded summary text only; the linked chat's stop maps toturn/stopunder the linked principal's roles and the turn ends at the next boundary; the unlinked chat's command has no effect and is audited; delivery failures are retried within the bound and never delay or block the turn; and the Host opens no listener. - Specs linked:
02-architecture/05-remote-agent-control.md§4,06-delivery/07-remote-control-rollout.md§2 (R3),05-security/02-remote-control-security.md§10 - Acceptance: Security, Quality
- Milestone: Post-MVP (rollout R3)
- Status: Draft; integration fixture required
E2E-REMOTE-FILE-MANAGER: Scoped remote plugin reads
Run node scripts/e2e-remote-file-manager.mjs to validate the shipped copy in
apps/desktop/resources/plugins/pi.file-manager. This is the release acceptance
path: passing against a separate development plugin does not prove the bundled
user path is repaired. The runner records the loaded directory in its output.
An optional <built-file-manager-directory> argument selects the companion
plugin's rebuilt views/ or unpacked official PluginPack artifact for development
validation only. Before accepting #1711, update the bundled release, its upstream
tag/commit and per-file checksums, then rerun the default path on the updated PR
integration candidate.
A development integration may exercise a Desktop hotfix in that actual bundled
directory, with its immutable source commit, local patch and artifact checksums
recorded honestly in UPSTREAM.md. A passing hotfix journey does not claim that
the companion upstream release or the maintainer's final acceptance is complete.
PI_FILE_MANAGER_QA_DIR may point to an existing plugin tests/electron
installation providing Playwright; PI_ELECTRON_BINARY selects an existing
compatible Electron runtime. PI_E2E_ARTIFACTS optionally preserves screenshots.
The isolated production plugin process and file:// view use Desktop's actual
SDK broker, durable-binding reader, loopback RACP transport and Host filesystem
service. Only the fixture's project-record lookup and authentication bootstrap
are supplied by the harness. The remote fixture root is registered explicitly
outside the Host folder picker's browse root. Verify nested listings,
text/image bytes, hidden credentials, read-only editor/save/menu controls,
visible disconnect errors and refresh recovery, rejected late previews and
ancestor opens after a project switch, and restored local
editing/Browser/editor detection. No model, user profile or external SSH server
participates. Real SSH transport and native Windows/Linux behavior require
their separate platform acceptance.
LAN WebUI MVP acceptance
These scenarios qualify the LAN companion,
not the SSH remote Host, a standalone server, or a public Gateway. For all eight:
Milestone: M6+ (WebUI MVP). Status: Partially automated — pairing
guards, HTTP commands and organization merge run in
apps/desktop/test/lan-webui-*.test.mjs against a real listener and fake Desktop.
pnpm test:e2e:lan-webui drives the shipped page in Electron Chromium at phone
size, including on the Electron-equipped CI runner. Real-device steps remain
Draft. Use an isolated Desktop profile, disposable devices and deterministic
fixtures; do not use a user's running instance.
E2E-269: Enable, pair and shut down
- Preconditions: Fresh Desktop profile with projects A and B; a real phone on the selected private LAN. Repeat on iOS Safari and Android Chrome.
- Steps: Start on a private interface. Open Add device, copy the address and code, then try pasting six digits with spaces or full-width digits. Scan a fresh QR with the phone camera and submit the prefilled code. Open a project and a temporary conversation; add project C on Desktop. Repeat with cookies blocked, wrong and expired codes, and rapid duplicate submit. Quit Desktop and launch it again; reopen the same address in the paired browser. Repeat with the saved port in use. Turn off the service in Settings and relaunch.
- Expected: No listener by default and no project data before pairing. A scan opens the bound origin and clears its fragment without submitting; a valid code connects on one submit. The desktop lists the device without extra approval. A, B, C and temporary conversations are available. Invalid, expired or redeemed codes fail, and blocked cookies show a specific error. Desktop restores the exact binding and unexpired pairings, not unused codes. A blocked bind does not fall back and can be retried or disabled. Explicit disable invalidates credentials, releases the port and stays off on relaunch.
- Acceptance: A, E; W01, W06.
E2E-270: Organize projects and sessions without stealing navigation
- Preconditions: Desktop is editing an unsent draft in A. The phone is paired. B is a closed multi-root group with existing sessions, one separately archived. Seed a duplicate display name.
- Steps: Search for B and tap its row. Open a session's action menu, close it, then tap that session to read its history. Pin and rename B and rename, pin, archive and restore an idle session. Archive and restore B through the Archived view. With B archived, send and queue from a B conversation in a second tab that loaded before the archive; restore B and send again. Archive B while a send to one of its sessions is still being admitted, and while work is queued. Make a competing Desktop rename and submit the stale edit.
- Expected: One row per group, stable IDs, correct filtered/recent/pinned lists; both clients show committed changes without reloading. Archive is not deletion and does not cascade; restoring B preserves the separately archived session. A stale writer sees the latest value instead of overwriting it. A closed action menu does not cover the page or intercept taps; test row and menu actions with browser hit testing, not direct calls to the controls. Desktop stays in A with draft, focus and scroll intact. Repeating the archive against a busy target fails without stopping work. While B is archived its history stays readable, the conversation names B as the record to restore and shows no composer after refresh, and the stale send or queue starts no turn and keeps its text. After restoring B a send in an unarchived session runs, while the separately archived session stays read-only. An archive that races an admitted send reports busy; one decided first refuses the send.
- Acceptance: C, D; W02, W03, W05.
E2E-271: Create and continue the same session on phone and desktop
- Preconditions: Desktop is viewing A. The phone is paired. A usable fixture provider has two saved chat models. B has a chat with paged history.
- Steps: Double-tap New session in B, send text, stream a reply, then continue the same session on Desktop. Queue a second message while busy and cancel it; interrupt the named active turn. Reopen the older B chat and load older pages. Delay a history response, switch chats, then release it. Load an older page in the current chat while a live update refreshes it. Create a temporary conversation from its own entry, and one in B from Home's New conversation picker. Reopen B's chat from Home's Recent list. Repeat with no configured model and with a pre-existing eligible empty conversation in B. In a new B chat, type a draft, search for and select the other configured model on the phone, and send. Retry during a running or queued turn and after a competing Desktop model change. From idle, send two different prompts simultaneously from Desktop and the phone, first without queuing and then with explicit queue admission.
- Expected: The initial double-tap/send yields one session and one user message. Work runs in B, not A; the other client continues the same ID/history. Concurrent sends never start two active turns in a session. A losing send is queued only by request; otherwise its client sees busy and keeps the draft. Canceled work never runs and stop preserves partial output. Paging older items keeps position, without wrong-project empty reuse or duplicate creates. A late page from the previous chat leaves the current transcript and cursor intact. A refresh within the current chat still allows its page to load. A temporary session has no project and never inherits A or B. Missing model blocks send, preserves text and points to Desktop setup. The selected model is used for the next turn and is visible on Desktop without changing its active conversation or default model. Draft text survives the switch. Running work and a newer model choice are not overwritten. A sent message shows immediately and is replaced, not duplicated, by the Host record; a failed send returns its text to the draft. Recent rows name their project, and running sessions stay listed.
- Acceptance: B, C, D; W03, W04, W05.
E2E-272: Answer ordinary input but leave privileged decisions on Desktop
- Preconditions: A Chat-capable phone and Desktop are viewing the same test session; fixtures can ask an ordinary choice question and require a tool permission. Provide an existing Plan/Goal session for the read-only case.
- Steps: Submit an ordinary answer, race a second answer from Desktop, then
trigger a gated action. Reload the phone while pending; try a browser approval
and permission change, then deny locally. Repeat with local approval and with
expiry/cancellation. Repeat the gated action with the session stored as
auto(and asinheritwith anautodefault) from a phone send, a queued phone send and a subagent the phone turn delegated, then send the next turn from Desktop. Inspect the special session on the phone. - Expected: One ordinary answer is accepted. The phone reports the pending
request and actual outcome; only Desktop can approve, including on a session
configured for a higher local permission mode. Deny/expiry never executes the
gated action, local allow executes the fixture once, and reload grants nothing.
Under the stored
automode every phone-originated path still waits for Desktop approval, the saved mode is unchanged, and the next Desktop turn runs underautowithout a prompt. A Host that cannot record the ceiling refuses the phone send with a visible reason and keeps the draft. Unsupported sessions do not gain writable controls or change mode. - Acceptance: C, E; W04, W06.
E2E-273: Resume across lost responses, Wi-Fi loss and changed epochs
- Preconditions: Two clients on a running Desktop; fixture can retain or expire cursors, drop a response after admission and pause a streaming turn.
- Steps: Lose a create/send response, background the phone, switch Wi-Fi off/on, refresh and reattach. Exercise same-key retry, a duplicate event, a stale cursor/new epoch and slow-client overflow. Switch sessions while an old history page is outstanding. Separately restart Desktop and reconnect the same paired browser without re-enabling or submitting another code.
- Expected: One original admission per intent, no automatic draft or tool replay. A transient disconnect does not stop the turn. Cursor replay or a replacement snapshot restores committed and partial content, queue and pending input without gaps or duplicates. Late results do not repaint another session. After process restart the phone shows actual host recovery state, not a fabricated completion, continuing stream or automatic new turn.
- Acceptance: C, F; W05.
E2E-274: Enforce the network boundary and device revocation
- Preconditions: Two paired devices, local projects, temporary conversations and an SSH-backed project. Use a controlled clock and a second interface.
- Steps: Exercise catalog, histories, commands and SSE. Check wrong Origin/Host, missing CSRF, the device cap and rejected admin/owner operations. Check that an unpaired device cannot list models, and that a paired device cannot select an unconfigured model or alter mode or permissions via the model endpoint. Check that the picker exposes no credentials or endpoints. Remove one device while a temporary history request and stream are in flight; sign out on the other, restart Desktop and try the old cookies. Re-pair and advance the clock to the pairing expiry; change the desktop address. Inspect the fixture profile, logs and caches.
- Expected: The SSH-backed project remains hidden. Paired devices have the same local WebUI operations, but no generic owner/SSH exemption or raw RPC. Removal closes streams and refuses later requests, in-flight results and cached mutation results for that device. Other devices remain connected. The release also requires canceling revoked devices' not-started queued work. Revoked or expired cookies cannot reconnect across a restart. The profile has verifiers, not bearer cookies or codes, and there are no credentials in logs or authenticated response caches. An unavailable saved address is not replaced automatically.
- Acceptance: D, E; W01, W02, W06.
E2E-275: Preserve an existing desktop profile and disable cleanly
- Preconditions: Upgrade fixture from before the feature with group/legacy project identities, renamed/pinned/archived projects and sessions, partial or missing optional preferences, and transcripts. Keep a pre-upgrade inventory.
- Steps: Upgrade without enabling sharing; check Desktop. Enable, pair, compare the authorized inventory, change organization on each surface, restart, and exercise interrupted/repeated metadata import. Disable and use Desktop alone.
- Expected: IDs, membership, labels, pins, archives, transcript contents and recoverable legacy aliases survive; no duplicate group or empty-profile reset. Old sidebar writes do not overwrite newer organization. Private navigation stays private. Changes made on either client remain on Desktop after disable; no extra writer or listener remains.
- Acceptance: C, D, F; W02, W03, W08.
E2E-276: Phone, keyboard and large-catalog usability
- Preconditions: Real iOS Safari and Android Chrome, desktop Chromium, English and Simplified Chinese. Warm assets, LAN RTT ≤50 ms, fixture data: 100 projects, 1,000 sessions, a 2,000-message conversation. Use no paid model.
- Steps: Run Projects → Sessions → New session → Send → Back. Repeat at 320 CSS px and 200% zoom, in both phone orientations, with the soft keyboard, Chinese IME, keyboard-only navigation and a screen reader. Search for a late page, load older history, and measure catalog readiness and peer edits over 30 runs. Record device/browser/OS and Desktop candidate/base revisions.
- Expected: Reachable labeled actions, ≥44 CSS px targets, no obstructed composer, horizontal page scrolling or accidental IME send. Back restores the prior list position. Screen readers announce important states rather than every token. At p95 the initial usable catalog and committed peer changes each take ≤2 seconds; initial history fetch contains at most 100 items.
- Acceptance: C, D; W07.