Skip to content

feat(remote): contract rev 19 host feed, run streams, control and paging (multi-host PR 2/9) - #313

Merged
sambitcreate merged 31 commits into
mainfrom
feat/multi-host-pr2-host-contract
Oct 4, 2026
Merged

sambitcreate merged 31 commits into
mainfrom
feat/multi-host-pr2-host-contract

Conversation

@sambitcreate

@sambitcreate sambitcreate commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

This PR moves the Aiden Remote contract to revision 19. With it, a paired desktop can follow one host's whole sidebar, observe and control any run on that host, and page through long transcripts. Phones behave exactly as they do today.

Host feed: GET /host/events

  • Needs the host:events grant. Event ids look like <epoch>:<sequence>.
  • The stream opens with a snapshot carrying {epoch, sequence, summaries, workspaces, bots}.
  • After that it sends chat.*, workspace.* and bot.* upsert and remove events, plus run.state {chatId, runId, state, unread}, with a 15 s heartbeat.
  • If the client's cursor falls more than 1,000 events or 8 MiB behind, or comes from another epoch, is malformed, or is ahead of the host, it gets a fresh snapshot instead.
  • The feed is built only from the existing notify hooks and HostRunRegistry. It never scans transcripts.

Run streams: GET /runs/{runId}/events and GET /chats/{chatId}/runs/current/events

  • Need the runs:observe grant.
  • Clients can resume with Last-Event-ID or ?after=. A gap produces a snapshot.
  • The stream emits run.started and run.ended. An unknown run gets 404 run_gone.
  • Approval details are stripped for callers without runs:control.

Run control: POST /runs/{runId}/cancel, /approvals/{id}/respond, /questions/{id}/respond and /inputs

  • Need runs:control plus an Idempotency-Key.
  • The first responder wins. Losers get 409 approval_resolved or 409 question_already_resolved carrying the winning decision and resolvedAt.
  • Replaying a key returns the original outcome, including an original 409.

Paging: GET /chats/{chatId}/messages?before=&limit=

  • Advertised as feature chat-messages-window-v1.
  • Each page is at most 1 MiB and reports hasOlder accurately. An unknown anchor returns 409 revision_conflict.

/health?detail=host: adds instanceId, displayName, platform, contractRevision and pairingRequests. None of these is secret. The plain /health body is unchanged.

Repository identity: host-feed workspaces carry an optional repository {canonicalKey, relativePath}. It is built from cached Git data, and credentials and local paths are stripped.

Grants:

  • Issued only to mac and linux devices: at pairing, when the device opts into the progress vocabulary, or later through POST /device/capabilities.
  • Phones get 403. Host grants persisted on a phone record are stripped when the record is loaded.

Revocation: drains the revoked device's subscriptions and refuses its controls. It never cancels a run.

Revision 19 updated together in: docs/aiden-remote-api-v1.md, openapi.json, the TS constant, both byte-identical fixtures, and the iOS and Android decoders and tests.

The decisions taken where the plan left a choice open are recorded in docs/plans/desktop-multi-host-pr2-host-contract.md (decisions 1 to 23). Points that matter for PR 3:

  • run.ended repeats the sequence of the terminal event it follows. Clients must not drop it as a duplicate.
  • Run control still requires chat-level write access.
  • The /health descriptor is opt-in, because the strict iOS decoder rejects unknown keys.

Stack note

This PR is stacked on #310, PR 1 of 9 (the run observer bus and persistence). Its base is #310's branch, feat/multi-machine-control-plan, so the diff shows only PR 2. Please merge #310 first. When that branch is deleted on merge, GitHub retargets this PR to main.

Test plan

  • npm run type-check
  • npx eslint on every touched TypeScript file
  • npm run test:aiden-remote, including these new suites:
    • aiden-remote-host-feed.test.ts
    • aiden-remote-host-runs.test.ts
    • repository-identity.test.ts
    • the extended router, pairing, state, chats, protocol and summary suites
  • npm run test:ci-policy, with the new suites registered in package.json and scripts/ci-test-registry.json
  • iOS: AidenRemotePhase0Tests and AidenBotContractTests
  • Android: the contract and Bot contract unit tests

Flaky test record

  • tests/e2e/chat-message-queue.spec.ts:372 "Steer on a queued message adds it to the running response once" failed on its first attempt and passed on retry, so --fail-on-flaky-tests failed Electron E2E (3/3) at head 5881e1e3f: run 37233112895, job 111528326302. Symptom: after completions were released, the second queued row ("Stay queued for later") produced no provider request within the 10 s poll at line 406. The steered row was delivered. The Playwright artifact was empty. This PR does not change steering, the message queue or run completion; its run-path changes are to approval/question settlement and journal paging. The job was rerun once.

🤖 Generated with Claude Code

sambitcreate and others added 24 commits October 2, 2026 18:49
Record the 2026-10-02 decisions (symmetric peers, full chat parity
including host-started runs, Tailscale one-click pairing, revision 19
grants, sidebar organizations, Bots, no tour tile) and replace the
delivery sequence with a nine-PR breakdown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extract the generation-notification-to-wire-event projection from the
remote stream service so a host-wide run journal can produce identical
events. Mobile stream behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Streaming content events are journaled at most every 250 ms instead of
cloning and writing the whole device journal on every delta. Terminal,
prompt, cancel, snapshot, first-event and state-change events still
write immediately, and settlePersistence flushes any pending write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HostRunRegistry keeps a bounded, epoch-stamped, in-memory journal of
every generation run on the host. It projects notifications through the
shared run content projection, tracks pending approvals and questions,
fails runs that settle without an outcome, and wakes subscribers so a
behind cursor gets snapshot_required instead of a silent gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
llm-client now feeds HostRunRegistry from the same seams as the chat
activity registry: run begin, every generation notification (before the
owner check, so runs whose window closed keep journaling), delivered
approval and question prompts, their resolution, and settle. Recorder
faults are logged and never break a generation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Approval details carry unbounded caller-supplied text such as workspace
names. A prompt can be a run's only retained event, which per-run and
total trimming never drop, so oversized details could push the journal
past both byte budgets. Details over 64 KiB are now omitted and the
event is marked detailsOmitted; the prompt itself stays pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fixed 64 KiB allowance could still exceed smaller configured budgets
when several runs each retain only a prompt. The allowance is now the
smallest of 64 KiB, half the per-run budget, and half an equal share of
the total budget across the run cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Approval details were measured alone, so a long summary plus details
could exceed the derived allowance. Details are now kept only while the
complete prompt fits, and the options document that the parser-bounded
prompt a run keeps as its sole event sets a floor under small budgets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… control

Adds the host-wide feed, run stream and run control services, the chat
messages window, desktop-only host grants and the opt-in host health
descriptor. Wiring, docs, fixtures and tests follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add change hooks for the summary index, workspaces and renderer
broadcasts, a credential-free repository identity cached from ordinary
Git status reads, and construct the host feed and host-run services in
the desktop Remote runtime. Revocation drains both without cancelling
runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Document the host feed, run streams, run control routes, the messages
window and the opt-in host health descriptor in OpenAPI, add revision
19 samples to both byte-identical fixtures, and validate them fail-closed
in the shared fixture parser, including credential-free repository keys
and the run.ended sequence rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both native decoders learn run_gone and approval_resolved and the winning
decision, outcome and resolvedAt details, and the API reference documents
the host feed, run streams, run control and message paging routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… descriptor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ow feature

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@very-hermes-bot

very-hermes-bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Hermes Review Bot

Confidence: 5

Engine: agy/gemini-3.8-flash-high
Review mode: full
Head: 5881e1e3fee4f51454e6932ead523960f479d505
Generated: 2026-10-04T21:08:34+00:00
Reviews: 1

Summary

Protocol revision 19 introduces the host-side contract primitives for the desktop multi-host experience, establishing the transcript-free host feed (/host/events), run event streaming (/runs/:runId/events and /chats/:id/runs/current/events), run control with idempotency tracking, and cursor-based chat message pagination. The implementation maintains transport security and mobile isolation by fencing desktop-only capabilities (host:events, runs:observe, runs:control) away from phone clients while establishing first-responder resolution semantics for tool approvals and user questions across paired devices. Repository identities sanitize credential-bearing URLs into deterministic canonical keys, while gap-snapshotting ensures disconnected controllers recover pending prompts without missing state transitions. Comprehensive unit, integration, and protocol conformance tests accompany the changes across desktop, iOS, and Android surfaces.

Confidence Score: 5/5

Deep behavioral trace completed across all changed services, router endpoints, SSE streaming mechanics, mobile contract models, OpenAPI specifications, and integration test suites.

📁 Important Files Changed
  • main/services/aiden-remote-sse.ts: Reusable SSE stream pump with cursor tracking, backpressure draining, disconnect monitoring, and keep-alive heartbeats.
  • main/services/aiden-remote-host-feed.ts: Emits chunked snapshots and diff events for chats, workspaces, bots, and active runs without sending message transcripts.
  • main/services/aiden-remote-host-runs.ts: Coordinates run event streaming, terminal snapshot delivery, idempotency-tracked first-responder approvals, question answers, cancellation, and steer inputs.
  • main/services/host-run-registry.ts: Tracks active and recently completed runs, pending tool approvals and questions, and resolution history with LRU caching.
  • main/services/aiden-remote-router.ts: Implements routing, permission gating, and error mapping for host feed, run event, and control endpoints.
  • main/services/repository-identity.ts: Derives privacy-safe canonical repository keys by stripping credentials from remote URLs before broadcasting to peers.
  • protocol/aiden-remote/v1/openapi.json & protocol/aiden-remote/v1/fixtures/contract.json: Updates protocol specification and fixtures to revision 19.

Findings

[P2] Chat access authorization bypassed before terminal state check in cancel and submitInput

In AidenRemoteHostRunService.cancel (main/services/aiden-remote-host-runs.ts:381-382) and AidenRemoteHostRunService.submitInput (main/services/aiden-remote-host-runs.ts:500-501), this.liveRun(runId) is evaluated before the access(summary.chatId, ...) authorization callback is entered:

// main/services/aiden-remote-host-runs.ts:380-382
async cancel(runId: string, access: RunAccessCheck): Promise<HostRunCancelResult> {
  const summary = this.liveRun(runId);
  return access(summary.chatId, async () => {
    // ...

this.liveRun(runId) checks isTerminalState(summary.state) and throws staleRun(runId, summary.state) (HTTP 409 operation_stale) if the run has already finished or been cancelled. Because this check precedes access(summary.chatId, ...), a caller holding the runs:control capability who lacks write permission for summary.chatId (such as a restricted workspace or bot chat) will receive HTTP 409 operation_stale instead of HTTP 403 forbidden (or HTTP 404 not_found). This prematurely confirms the run's existence and completion state prior to enforcing chat-level authorization.

By comparison, decideApproval (main/services/aiden-remote-host-runs.ts:429-441) and respondQuestion (main/services/aiden-remote-host-runs.ts:465-477) use the recommended pattern: they look up this.runs.getRun(runId) solely to retrieve summary.chatId, invoke access(summary.chatId, ...), and only evaluate isTerminalState(run.state) inside the authorized callback.

Recommendation: Align cancel and submitInput with decideApproval and respondQuestion by looking up the run without terminal state validation prior to access(), deferring liveRun or isTerminalState validation to the inner authorized callback:

async cancel(runId: string, access: RunAccessCheck): Promise<HostRunCancelResult> {
  const summary = this.runs.getRun(runId);
  if (!summary) {
    throw notFound("run", runId);
  }
  return access(summary.chatId, async () => {
    const run = this.liveRun(runId);
    // ...
📊 Sequence Diagram
sequenceDiagram
    autonumber
    participant Controller as Paired Desktop (Controller)
    participant Router as Aiden Remote Router
    participant Feed as Host Feed Service
    participant Runs as Host Run Service & Registry
    participant Coord as Tool Approval Coordinator

    Note over Controller, Router: 1. Host Feed Subscription
    Controller->>Router: GET /host/events (scope: host:events)
    Router->>Feed: openCursorSse(cursor)
    Feed-->>Controller: 200 OK (text/event-stream)
    Feed-->>Controller: event: feed.snapshot (chunk 1/1, partial: false)

    Note over Controller, Router: 2. Observe Active Run & Prompts
    Controller->>Router: GET /runs/:runId/events (scope: runs:observe)
    Router->>Runs: streamRunEvents(runId, cursor)
    Runs-->>Controller: event: run.snapshot (state: "running")
    Runs-->>Controller: event: prompt.opened (callId: "call-1", kind: "tool_approval")

    Note over Controller, Router: 3. First-Responder Decision & Idempotency
    Controller->>Router: POST /runs/:runId/approval (decision: "approve", callId: "call-1")
    Router->>Runs: decideApproval(runId, "call-1", "approve", accessCheck)
    Runs->>Coord: decideAsHost(callId, "approve")
    Coord-->>Runs: resolved
    Runs->>Runs: Record in ResolutionLedger
    Runs-->>Controller: 200 OK { outcome: "approved", decision: "approve" }
    Runs-->>Controller: event: prompt.resolved (callId: "call-1", outcome: "approved")

    Note over Controller, Router: 4. Duplicate Submission via Idempotency Ledger
    Controller->>Router: POST /runs/:runId/approval (decision: "approve", callId: "call-1")
    Router->>Runs: decideApproval(runId, "call-1", "approve", accessCheck)
    Runs->>Runs: Lookup callId in ResolutionLedger
    Runs-->>Controller: 200 OK { outcome: "approved", decision: "approve" } (cached result)
Loading

Machine-Readable Findings

[
{
"file": "main/services/aiden-remote-host-runs.ts",
"line": 381,
"title": "Chat access authorization bypassed before terminal state check in cancel and submitInput",
"severity": "P2",
"type": "logic",
"confidence": 0.95,
"description": "In AidenRemoteHostRunService.cancel (line 381) and submitInput (line 500), this.liveRun(runId) is invoked prior to entering access(summary.chatId, ...). liveRun evaluates isTerminalState and throws HTTP 409 operation_stale before the caller's write access to summary.chatId is verified. If an authenticated controller lacks authorization for that chat, it receives a 409 operation_stale instead of 403 forbidden or 404 not found, revealing run existence and terminal status prior to authorization. By contrast, decideApproval and respondQuestion resolve summary.chatId, enter access(), and only then validate run staleness."
}
]


Last reviewed commit: 5881e1e3fee4
Reviews (1) · Comment /hermes review to trigger a new review · /hermes review full for full re-review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

A revoked device can open a host subscription after revocation cleanup has completed and continue receiving data. Two additional feed-recovery defects are detailed inline.

Reviewed changes: Reviewed the revision 19 host contract across the server, desktop peer pairing, protocol artifacts, and both native clients.

  • Host feed: Transcript-free sidebar snapshots, epoch-based replay, change notifications, Bot filtering, and cached repository identity.
  • Run observation: Host-wide resumable streams, pending-prompt recovery, approval-detail filtering, and terminal run.ended events.
  • Run control: First-responder approval/question resolution, cancellation, mid-flight inputs, and idempotent outcome replay.
  • Grants and compatibility: Desktop-only grant issuance/negotiation, revocation cleanup, opt-in host health, bounded transcript paging, and unchanged mobile grant vocabulary.
  • Contract coverage: Updated documentation, OpenAPI, shared fixtures, Swift/Kotlin error decoders, and registered behavioral suites.

Validation: npm run test:aiden-remote, npm run type-check, npm run test:ci-policy, and the focused Android Remote/Bot contract tests passed. Three independent feed reproductions fail on the invariants described inline. iOS tests could not execute locally because this Linux runner has no xcodebuild.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol | 𝕏

Comment thread main/services/aiden-remote-host-feed.ts Resolved
Comment thread main/services/aiden-remote-host-feed.ts Resolved
Comment thread main/services/aiden-remote-host-feed.ts Resolved
…pshots

Re-check the device authorization immediately before a host-feed or
run-stream subscription registers, so a revocation that completes while
the feed's opening read is suspended refuses the subscription with
credential_revoked instead of leaving a stream the cleanup missed.

Split host snapshots larger than 256 KiB into partial frames without SSE
ids, followed by a final frame carrying the id, so no frame approaches
the 1 MiB peer limit and an interrupted snapshot is resent whole.

Reschedule a pending invalidation after the first subscriber registers,
so a change signalled during the opening read reaches it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: Reviewed 4ece706c against the prior Pullfrog review at a3b70980, with the full PR diff checked for context.

  • Fenced subscription admission with a fresh synchronous device-authorization check after asynchronous feed refresh or run chat authorization.
  • Rescheduled opening-read invalidations so a change signalled before the first subscriber registers reaches that subscriber without another signal.
  • Chunked large host snapshots with partial: true on intermediate frames and an SSE cursor only on the final frame, preserving complete reassembly and interrupted-snapshot recovery.
  • Added behavioral coverage and contract documentation for revocation during admission, pending invalidation delivery, and 4,000-summary snapshots through the actual bounded peer reader.

Validation: npm run test:aiden-remote passed (617 passed, one skipped in the main aggregate, plus the peer-host and LAN suites), as did npm run type-check, npm run test:ci-policy, and the focused Android Remote/Bot contract tests. The first Android invocation reached the shell tool's 120-second timeout; one subsequent invocation completed successfully. iOS tests could not run locally because this Linux runner has no xcodebuild.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

@very-hermes-bot very-hermes-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline review — 1 finding(s) anchored to the diff. See the pinned summary comment for the overview.

Comment thread protocol/aiden-remote/v1/openapi.json Resolved
The router reads every run-control body as application/json and the
cancel route accepts only {}, so the OpenAPI requestBody for
POST /runs/{runId}/cancel is required, not optional.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: Reviewed 15911ad2 against the prior Pullfrog review at 4ece706c, with the full PR diff checked for context.

  • Corrected the cancel request contract by marking the OpenAPI request body required and documenting application/json with {}, matching the router's existing enforcement without changing runtime behavior.

Validation: The focused protocol and router suites passed all 81 tests. Prior Pullfrog threads remain resolved; the separate cancel-schema finding is substantively addressed, with its thread left to its originating reviewer. Native clients are unchanged by this delta, so native suites were not rerun.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

…ost-contract

Main now holds the squashed PR 1, whose tree this branch already contains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ost-contract

Resolve against main's run-journal follow-ups:
- host-runs.ts takes main's createHostRunRecorders shape;
  recordRunAttentionResolved keeps the optional HostRunPromptResolution
  so losing responders learn the winning decision.
- The hostRunRegistry singleton is imported from host-runs-main.ts.
- host-run-registry.ts keeps both the resolution bounds and
  deltaCoalesceMs.
- git.ts keeps both import sets.
- The Android contract fixture copy is gone; the revision 19 changes
  already live in protocol/aiden-remote/v1/fixtures/contract.json.

Host-run tests now use allowlisted scheduled-task approval details, since
the journal drops unrecognised kinds, and the retention-gap test turns
delta folding off so each delta is its own event.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found in the merge integration.

Reviewed changes: Reviewed 1f1e819a since the previous run at e40c530d, focusing on merge resolutions and their integration with the previously reviewed revision 19 contract.

  • Integrated upstream journal changes, preserving delta folding, bounded replay, winning prompt outcomes, and the shared runtime journal singleton.
  • Updated host-run tests to use allowlisted approval details and disable folding where retention-gap recovery must be exercised.
  • Preserved router and Git integration, retaining response negotiation and credential redaction alongside the host contract.
  • Adopted the canonical Android fixture, with contract tests reading the shared resource instead of a duplicate copy.

Source review concentrated on merge resolutions and their callers because unchanged contract code was already reviewed; the complete Remote suite was rerun to check integration.

Validation: npm run type-check, npm run test:aiden-remote (627 passed, one skipped, plus 19 peer-host and seven LAN tests), the 29 focused journal tests, npm run test:ci-policy (55 tests), and all 24 focused Android Remote/Bot contract tests passed. iOS tests could not run on this Linux runner because xcodebuild is absent.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

…ost-contract

Main's durable chat store (#324) replaced the operation tail with index
locks. Keep the host feed's index observers and notify them once the
in-memory index matches the committed file. A store test now covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found in the merge integration.

Reviewed changes: Reviewed a837947e against the prior Pullfrog review at 1f1e819a, with the complete authoritative incremental and full PR diffs checked for context.

  • Integrated durable chat-store locking, preserving main's per-chat and index locks alongside the host-feed observer API.
  • Moved index-change notifications after durable installation and publication of the matching in-memory index and file stamp, while retaining best-effort listener isolation.
  • Added observer behavior coverage, checking committed summary changes for creation, rename and deletion, plus unsubscribe behavior and callback-initiated summary reads.

Validation: npm run type-check, npm run test:aiden-remote (630 passed, one skipped, plus 19 peer-host and seven LAN tests), the 51-test chat-store suite, npm run test:ci-policy (55 tests), and all 24 focused Android Remote/Bot contract tests passed. The initial Android shell invocation hit the tool's 120-second deadline; one retry completed successfully. iOS tests could not run because this Linux runner has no xcodebuild.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

sambitcreate and others added 2 commits October 4, 2026 16:41
…tion tests

Espresso.pressBack waits up to 10 s for the test window to hold focus, and
CI emulators intermittently withhold it, so all three navigation tests
failed with RootViewWithoutFocusException before reaching the host. Back
now goes through the activity's OnBackPressedDispatcher, where the host's
predictive handler and in-screen handlers are registered, so the tests
still check handler priority and pop order without depending on focus.
With the notification shade held open, the old tests fail 3/3 and the new
ones pass 3/3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ost-contract

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/plans/README.md

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: Reviewed a837947e..5881e1e3 against the prior Pullfrog review, with the complete authoritative incremental and full PR diffs checked for context.

  • Replaced Android navigation-test back injection with the activity's real back dispatcher, preserving assertions for handler priority, one-screen pops, and restored screen state without depending on window focus.
  • Integrated the latest main changes, retaining the PR 2 plan status and Remote test registrations alongside the merged sidebar suites; verified that renderer delta batching still leaves host journaling and remote delivery intact.

Validation: npm run type-check, npm run test:aiden-remote (630 passed, one skipped, plus 19 peer-host and seven LAN tests), npm run test:sidebar (59 tests), npm run test:ci-policy (55 tests), and the focused delta-coalescer/host-run suites (35 tests) passed. Android instrumentation sources compiled and all 24 focused Remote/Bot JVM tests passed. The first Gradle invocation reached the shell tool's 120-second deadline; one retry completed successfully. The three changed Android UI tests could not execute locally because no device or emulator is attached; their dispatcher behavior was checked against the host implementation and AndroidX source. Exact-head hosted CI was still running when inspected.

Pullfrog  | View workflow run | Using gpt-6.1-sol | 𝕏

sambitcreate added a commit that referenced this pull request Oct 4, 2026
PR #313 claims contract revision 19 for the host feed, run streams, run
control and message paging, and it reaches main before this branch. The
desktop pairing-request additions (pairing-requests-v1, the
/pairing/requests* routes and their fixture section and match-code
vectors) therefore move to revision 20, as the API doc planned.

- Bump AIDEN_REMOTE_CONTRACT_REVISION, the shared fixture and its host
  health descriptor to 20, and gate the fixture's pairingRequests section
  on revision 20.
- Mark the pairing-request routes and schema as revision 20 in OpenAPI and
  the API doc. The host descriptor, feed, run streams and run control stay
  attributed to revision 19.
- A revision-19 host already carries pairingRequests in its descriptor but
  serves no /pairing/requests* route, so the docs now tell requesters to
  also require contractRevision 20 or newer.
- Move the iOS and Android fixture revision assertions to 20 together.
  Neither client caps the revision it accepts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sambitcreate
sambitcreate merged commit b4f296c into main Oct 4, 2026
65 of 69 checks passed
@sambitcreate
sambitcreate deleted the feat/multi-host-pr2-host-contract branch October 4, 2026 22:43
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.

2 participants