iOS app¶
The native client lives in ios/. It is a SwiftUI app that reaches a daemon through the relay, sends as the human through POST /conversation, and renders the human inbox as the ios surface, plus a Swift package with everything that does not need UIKit.
| Path | Contents |
|---|---|
ios/RepowireKit/ |
Swift package: models, RelayAPI, the SSE event stream, Keychain credentials, and FixtureMesh |
ios/Repowire/ |
App target: App/ (model, push), Design/ (tokens and shared components), Features/ (screens) |
ios/RepowireUITests/ |
FlowTests (functional) and ScreenshotTour (design review captures) |
ios/Config/ |
Base.xcconfig (signing defaults) and your gitignored Local.xcconfig |
ios/scripts/ |
check.sh, live-relay-e2e.sh, design-lint.py, contact-sheet.py, montage.swift, mark-dots.py, render-icon.swift |
Requirements: Xcode 26 or later with an iOS simulator runtime. The project uses folder-synchronized groups, so new Swift files under ios/Repowire/ join the target without editing the project file.
Interrupted messages¶
The app retains sent-message display records, not a persistent outgoing payload or attachment store. A failed message whose original in-memory payload is unavailable offers Review saved message, not a reconstructed Retry. Review and its explicit Copy action never send, upload, answer a question, or move text into the composer. The review warns that delivery is unconfirmed, files are not recovered, original destination details may be missing, and sending again could duplicate the instruction. Copy preserves the saved display text; attachment labels are not files.
Existing explicit retries while the original payload remains in memory are separate. A failed request does not prove the daemon or agent never received it. The daemon's conversation idempotency cache is time-limited and in memory, so neither retry nor a restored record promises duplicate prevention across daemon restarts. Before manually composing another message, verify the recipient, machine, files and whether the composer is answering an open question. Recovery does not grant approval or automatically reuse a reply link.
Install on your iPhone¶
- In Xcode, add your Apple ID under Settings → Accounts. A free Apple ID works; push notifications need a paid Apple Developer account.
- Copy
ios/Config/Local.xcconfig.exampletoios/Config/Local.xcconfigand setDEVELOPMENT_TEAM. With a free Apple ID, also uncomment the two lines that drop the push entitlement and give the app a bundle id of your own. - On the iPhone, turn on Settings → Privacy & Security → Developer Mode, then connect it to the Mac and trust the computer.
- Open
ios/Repowire.xcodeproj, pick your iPhone as the run destination, and press Run. The first launch asks you to trust the developer under Settings → General → VPN & Device Management.
Builds signed with a free Apple ID expire after 7 days; run again from Xcode to renew. For a build that lasts, use TestFlight (paid account).
TestFlight¶
ios/scripts/testflight.sh archives a Release build, signs it for distribution, and uploads it for internal TestFlight testing only (testFlightInternalTestingOnly: it cannot reach external testers or the App Store). App Store Connect assigns the next build number on upload. Internal testers in a group with access to all builds get it once processing finishes, usually within minutes.
One-time setup, all free with a paid Apple Developer account:
- An App Store Connect team API key (App Manager role), its
.p8in~/.appstoreconnect/private_keys/. - The explicit bundle id
io.repowire.appwith Push Notifications, and an app record for it (Apps → + → New App). The API can register the bundle id but not create the app record. - An Apple Distribution certificate whose private key lives in a dedicated keychain with codesign pre-approved in its partition list (
security set-key-partition-list -S apple-tool:,apple:,codesign:), so signing never waits on a keychain prompt. The script adds that keychain to the search list for its own run only. - An
IOS_APP_STOREprovisioning profile for the bundle id and that certificate. ios/Config/testflight.envfromtestflight.env.example, andDEVELOPMENT_TEAMinLocal.xcconfigwithout the free-Apple-ID lines.
The app declares ITSAppUsesNonExemptEncryption = NO (it uses only the system's HTTPS/WSS and the Keychain), so builds skip the export compliance question.
Run it¶
Open ios/Repowire.xcodeproj and run the Repowire scheme. To work without a relay, enable the -fixtures launch argument in the scheme: the app then serves FixtureMesh, a deterministic in-memory mesh whose answers and sends behave like a daemon's. With -fixtures -onboarding, any key ending in demo connects.
From a terminal:
--fast runs only the package tests and the lint. IOS_SIM_DEVICE picks the simulator (default iPhone 18 Pro).
How it talks to the mesh¶
All traffic goes through the relay tunnel with Authorization: Bearer <relay key>. The relay strips the key before forwarding, so the daemon never sees it.
| Need | Route |
|---|---|
| Roster, transcript, jobs | GET /peers, GET /peers/{name}/transcript, GET /jobs |
| Live updates | GET /events/stream (SSE), with GET /events?since=<id> to recover gaps after a reconnect |
| Send, reply, forward | POST /conversation with surface: "ios" and an idempotency key (forward names the item; Forward shows only when GET /conversations has capabilities.forward); a daemon without the route gets POST /ask. Crash reports go to the orchestrator as POST /notify |
| Conversation | GET /conversation and GET /conversations |
| Answer a question | POST /answer with option_id, outcome, or text |
| Inbox | GET /inbox, POST /inbox/{id}/read and POST /inbox/{id}/reply with surface: "ios"; reloaded on inbox_item and inbox_updated events |
| Push registration | POST /push/devices (tunneled to the daemon), then POST /push/devices/verify (answered by the relay) with the nonce from the relay's background push |
Open questions are derived from the event log with the same rule the web dashboard uses: an ask carrying a question opens one, an ack with the same correlation id closes it. The Messages list is the inbox minus those questions.
Agents and Inbox message rows put the identity first, the recorded question or message next, and state, machine or time below. Normal-size previews use at most two lines; accessibility text sizes wrap naturally. Agent runtime details remain in About → Runtime and in the row's accessibility value. Unread styling, question priority, grouping and tap destinations are unchanged. The opt-in -fixtures -rowSamples data adds long friendly labels and an offline timestamp for focused row review without changing peer identities or questions.
Push is the daemon's ios inbox surface (daemon-go/push). When an item is stored, the inbox calls the surface, which sends one frame through the relay with the alert and the registered tokens. The relay signs the APNs request with its key and answers with the outcome, which becomes the push's trace stage. The alert's repowire payload carries item_id, kind, from, and, for an ask, correlation_id and the question's options; the notification actions use them.
Quality gates¶
check.sh tests three things: whether the app works, whether it stays consistent, and whether it looks right.
Function¶
RepowireKittests (Swift Testing) cover the relay client against aURLProtocolstub: auth header, request bodies, error mapping, lossy event decoding, SSE framing, question derivation, and fixture behavior.-
FlowTestsdrive the app onFixtureMesh: onboarding rejects a bad key and connects with a good one, Allow and Deny clear an approval, choosing an option answers a question, a sent message appears in the conversation, jobs list, and Disconnect returns to onboarding. -
LiveRelayTestsrun the app against a real relay and daemon.ios/scripts/live-relay-e2e.shstarts both under a temporaryHOME(your own daemon, config, and bots are untouched), raises a blocking tool-permission question on the daemon, and checks that it streams to the app, that tapping Allow resolves it on the daemon, and that the daemon's push frame reaches the relay. Outside that script the test skips.
Consistency¶
swift format lint --strict (the formatter in the Swift toolchain, configured by ios/.swift-format) enforces layout and safety rules: no force unwraps, no try!, no implicitly unwrapped optionals, ordered imports, early guard exits. Run swift format format -i -r <paths> to apply the layout. A deliberate exception is marked inline with // swift-format-ignore: <Rule> and a reason. Builds in check.sh also treat compiler warnings as errors.
The app's code runs on the main actor by default. Types that SwiftUI uses for identity (Identifiable, Hashable, Equatable) are declared nonisolated: SwiftUI reads ids, hashes and equality while rendering off the main thread, and main-actor code inside them traps there (build 18 crashed in Entry.id). design-lint.py enforces it (isolated-identity).
scripts/design-lint.py fails when feature code bypasses the design system:
| Rule | Catches |
|---|---|
raw-color |
Color(red:…), UIColor(…), Color.blue, .foregroundStyle(.red) |
raw-space |
numeric padding, spacing, radii, frame sizes, and stroke widths |
raw-font |
.font(.system(size:)), custom fonts |
raw-motion |
animations that are not Theme.Motion |
emoji, exclamation, title-case |
copy that breaks the Repowire voice |
isolated-identity |
an Identifiable, Hashable or Equatable type not declared nonisolated (whole app) |
Tokens live in ios/Repowire/Design/Theme.swift and mirror Design system: warm-paper neutrals, one cobalt accent, a 4pt grid, 10pt control and 14pt card radii, monospaced type for technical chrome (peer names, ids, timestamps, eyebrows). Add a token instead of a literal.
ScreenshotTour also checks consistency across variants: it captures every screen in light, dark, and accessibility-large text, and contact-sheet.py lays them out as ios/build/design-review/index.html with screens as rows and variants as columns, so a screen that drifts in one variant stands out.
Agent threads use EndScrollPosition to select an explicit newest-message target before writing the scroll position. Measured content that fits targets its inset-adjusted origin; overflowing or unmeasured content keeps the bottom edge. Geometry publishes these facts without rewriting requests. The existing reading, following, initial-load lifecycle, and question-ID navigation remain unchanged.
AccessibilityAuditTests run Apple's accessibility audit on every screen in light and dark: contrast, hit regions, element descriptions, and clipped text. Exemptions are explicit in the test and each states its reason: text under translucent bars, disabled controls, the system search field, hostnames read as written, and Dynamic Type sizing, which the large-text screenshot variant checks instead.
Rendering screens without a simulator¶
Debug builds take -fixtures -tourScreen <screen> -tourOut <name> (home, inbox, peers, peer with -tourPeer <name>, jobs, settings, onboarding; add -onboarding for the last, -tourAnchor top to open a conversation at its start). The app opens that screen, draws its own window, writes it to stdout as TOUR <name> <base64 png> and quits (Repowire/App/DesignTour.swift). On an Apple silicon Mac the app runs as "Designed for iPad", so a design review needs no simulator: build for platform=macOS,variant=Designed for iPad with a development profile that includes the Mac, wrap the product as Repowire.app/Wrapper/Repowire.app with a WrappedBundle link, register it with lsregister, then open -g -n -W --stdout <file> Repowire.app --args … and decode the line. Stdout rather than a file, because the app's sandbox container is not readable from outside without a privacy prompt.
Live client check¶
ios/scripts/live-client-e2e.sh <peer_id> runs the app's own client code (RepowireKit, through ios/LiveE2E) against the live relay and daemon in ~/.repowire/config.yaml, before every TestFlight build:
image: uploads a JPEG the app's way (POST /attachments, then the ask withattachmentsand an[Attachment: path]line) and waits for the daemon's trace to show it delivered;notify: a notify is accepted;roundtrip: an ask is delivered, acked by the recipient and closed in the daemon's trace, which is what clears "Waiting for a reply" in the app; it also reports whether the message reached the recipient's transcript (a message that arrives mid-turn never does, so the app shows what it sent from its own record);nudge: an ask the echo peer leaves open (no[e2e]mark) shows open in the daemon's wire view, which the app reads for Sent, Delivered and Not answered yet; a nudge is accepted and a second one within 10 minutes is refused;resync: the live stream is cut mid-thread and a message is sent while it is down; the gap is recovered from/events?since=the last seen id, and the thread re-fetched and merged by turn id has no repeated turns and stays in order;stream: holds the app's live stream for 70 s (E2E_STREAM_HOLD) and reports how and when it ended, then checks a reopened stream delivers; a proxy in front of the relay may cut streams on a timer, which the app reopens quietly;since: a stream resumed from the 5th-newest event id replays only what followed it, not the daemon's whole window;provenance: every user turn in the target's transcript carries the daemon'sprovenance, with a count by sender kind and how many are verified;messages: the daemon's record of what the human sent the peer lists, and bodies read back;paging: transcript pages are each older than the last.frontdoor(rehearsal daemons only, named explicitly):POST /conversationrefuses a send in the every agent view while there is no orchestrator (409), sends to an agent as the human's item with surfaceapp, returns the first result markedduplicatefor a retry with the same key, sends from the every agent view to the orchestrator, and answers an agent's open ask with a reply from that view;forward(rehearsal daemons only, named explicitly):GET /conversationsofferscapabilities.forward; an agent's open ask is forwarded to a second agent and comes backdelegated, out of the inbox's needs-reply; a message of the human's own is forwarded and comes backsent, quoted ("Forwarded from") in the second agent's conversation, with its outboundstatewhere the daemon offers it;machines(a rehearsal relay with two daemons only, never the hosted relay with a real key): the registry lists home first; another machine's agents load only throughX-Repowire-Machine, withcircle_sharedfalse on a tmux session's circle; spawn config andPOST /spawnreach that machine; its agent's pane is read there; an unknown machine ismachine_offline; withE2E_STOP_HOMEandE2E_START_HOME(commands that stop and restart home), home answershome_offlinenaming the online machines while the other machine's agents still load. Run it against a local relay (repowire relay startwithREPOWIRE_RELAY_STATE_DB, a key fromPOST /api/v1/register) and two daemons with different hostnames, for example containers:repowire-e2e <relay> <key> none machines;conversation(rehearsal daemons only, named explicitly): registers an agent of its own and holds its socket, has it ask the human, sends the human's notify and ask, answers the ask by a reply within_reply_to, then readsGET /conversationat every zoom,around,peer=*andGET /conversations, checking placement, the answer folded under its ask, and thatopen_asksmatches the inbox'sneeds_reply.pane: the target's terminal snapshot reads (/peers/{id}/pane), or the daemon answers why not; a daemon from before the pane view reports as needing an update, which the app shows as "Needs a laptop update".reply: a notify that replies to the target's newest message carriesin_reply_to, and the daemon's record keeps the link (schema 22).share: a read-only share link to the target's conversation through the daemon's/shares(as the app's Share link makes it), with its expiry, then revoked.
Point it at a disposable echo peer: spawn a session told to ack every ask that starts with [e2e], run the check, then retire the peer. With E2E_SELF_ACK=1 the check acks on the target's behalf, for a target that is your own session. Before a daemon switch, it can run straight at a rehearsal daemon instead of the relay: E2E_URL=http://127.0.0.1:<port> E2E_BEARER_FILE=<that daemon's auth token file> sends the token as Authorization: Bearer. Anything that sends as the human or answers the human belongs on a rehearsal daemon: against the live daemon, the human's real inbox and Telegram receive it, so run only read checks there. On a rehearsal daemon the target standin registers an agent of the check's own and holds it online for the run. Run images notify roundtrip nudge stream since messages reply against it with E2E_SELF_ACK=1 (image waits for a delivery receipt, which only a real agent's hook sends); ask and resync need a real agent, provenance, dump, order and paging its transcript, pane tmux, and share the relay.
Simulator screenshots in CI¶
.github/workflows/ios.yml runs ios/scripts/check.sh on a GitHub macOS runner with the newest iPhone simulator: the RepowireKit tests, lint, the UI flows, the accessibility audit, and the screenshot tour in light, dark and a large text size. The ios-screens artifact holds the contact sheet; judge the look from it, since a "Designed for iPad" render on a Mac is not what an iPhone draws.
Taste¶
Taste is reviewed against the contact sheet, not asserted in code. Score each screen 0 to 2 on every criterion. A screen passes at 14 of 16 with no zeros. Record scores and fixes in the PR.
| Criterion | 2 means |
|---|---|
| Purpose | The screen's main job is the most prominent thing on it. In the Inbox, what needs you comes first. |
| Hierarchy | Weight, size, and spacing make the reading order clear without help from color. |
| Restraint | One accent, used only for primary actions, selection, and links. Status colors only for status. |
| Rhythm | Spacing follows the 4pt grid. Related things are closer together than unrelated things. Edges line up. |
| Type | System text for prose, mono for identifiers. Large text wraps instead of truncating the important parts. |
| Feedback | Every action responds on press, shows progress while busy, and shows an inline error when it fails. |
| Wayfinding | You can tell where you are, what is tappable, and how to get back. Empty states say what to do next. |
| Platform | Native navigation, lists, search, and sheets. Nothing a native app would not do. Dark mode reads as warm dark, not inverted. |
Onboarding mark¶
The onboarding screen shares the relay landing page's dotted R and its one-time orb-to-mark reveal (Repowire/Design/RelayMark.swift). The dots are generated from daemon-go/relayserver/assets/landing.html; after changing the landing mark, run ios/scripts/mark-dots.py.
Push notifications¶
The daemon decides what deserves a push and the relay sends it. See Relay for relay configuration. In the app, notifications are requested from Settings, not at launch, and APPROVAL and QUESTION notifications can be answered from the lock screen.
Jobs on iOS¶
The Agents destination includes the home machine's scheduled and delegated work. It keeps recurring templates separate from their individual runs, using calendar_id and a run's explicit source_kind=calendar / source_id relationship. A repeated title never merges work. Past runs retains the daemon's attention and closed groups; each group pages independently, without totals inferred from loaded pages. Calendar records in every page's recurring array are retained. Cancelled templates keep their recorded history under History.
Opening a recurring job reads its existing /jobs/{id}/status and follows last_occurrence_work_id for its latest recorded run. The recurring title, schedule status and valid next-run local time share one orientation row before the latest outcome, with separate accessible status text. Raw cron/UTC semantics remain in Technical details. The history footer keeps a short newest-first, retained-only and non-time-spacing qualifier; the existing About run history disclosure explains occurrences, attempts and absent records. Partial-history limitations are in About run history. A recurring detail also keeps its loaded active runs reachable, including concurrent occurrences other than the latest pointer. Run detail lazily reads the existing status and result routes: the agent's report, recorded progress, attempts and output names, with missing reports and read failures stated explicitly. Acquired and finished timestamps are shown only when recorded; they are not presented as model execution duration. Completion means the daemon recorded structural completion, not an independent quality check. Recurring detail reads /jobs/{calendar_id}/runs in daemon order, preserving opaque cursors and one work ID per occurrence (including retries). Selectable recorded-run marks open the existing run detail; accessibility text sizes use vertical rows. Time follows the daemon’s scheduled/created basis, with invalid times labeled unknown. History includes retained records only, without inferred gaps, counts or missed-run claims. An unavailable history route (including older daemons) leaves latest-run detail available. Jobs does not currently create, pause or run recurring templates; /schedules message scheduling is a different model.
The UI fixtures cover a recurring job with a latest run, one waiting for its first run, and completed one-off work. JobsTests cover stable source identity, same-title templates, recurring-only/older responses and the existing lazy detail routes. The screenshot and accessibility tours enter through Agents, with past runs under History.
Compact actual-recipient cue¶
The composer displays its actual effective destination beside the draft, separately from the conversation's viewing scope. A written question answer names the question's sender; a quoted reply or message with files names the message recipient. This read-only presentation does not select or freeze routing. Existing per-agent draft persistence, attachment ownership and send rules are unchanged.
The native footnote cue keeps action, name and machine in separate compact segments. Long names or machines may truncate, including at accessibility text sizes; simultaneous full visual disambiguation is not promised on a narrow canvas. The cue's accessibility name remains complete, and the directly accessible Recipient details button opens the existing selectable, untruncated text sheet with name, known machine/address and peer ID captured at opening. Unknown values remain explicit. Dismissing Info returns to the current cue; it is not a picker, send confirmation or authorization.
This compact presentation explicitly replaces the held #929 requirement to show an unbounded full identity simultaneously with the keyboard and input. Historical full-caption/overflow results remain recorded as failures or scoped evidence, not reclassified as passing. The compact port preserves the standard Reply sheet and MessageField sizing and imports none of the experimental height-budget, keyboard-hosting or geometry-probe code. Send-label footprint investigation #936 is separate and has no fix in this change.
Compact-cue native validation uses a default-off DEBUG -fixtures -compactRecipientEntry conversation|quote entrance. One entry owner waits for the existing model load, validates the unique alias-backed fixture item and canonical peer, then opens the actual conversation or standard Reply sheet once. It fails visibly on bad entry, load failure or missing/ambiguous identity. The quote entrance keeps the actual aggregate view underneath so same-friendly-name destinations on studio and build-box can be compared by their canonical details. Fixture labels and records are opt-in; -compactRecipientSampleFile seeds one bound throwaway file only for the remote question entrance. The test removes it with the normal control. These entrances prove component branches, not Agents/menu navigation reliability, send delivery, file-clear policy or cross-sheet live synchronization.
Job detail read states¶
Schedule, latest-run status, report and retained history reads have separate failures. A confirmed missing latest run removes its link; an unavailable report preserves a valid run status and last-read data. Transient connection/machine failures are not interpreted as deleted records. Report not_ready is a valid state, not a read error.
Reports show a three-line preview with the complete selectable Markdown under Full agent report. Recurring instructions and run history are collapsed by default. Opening Run history loads retained runs; an unavailable/error state remains named on its collapsed label, with details and retry inside. Only a successful empty history page says no retained runs. Existing exact identities, ordering, cursors and per-run attempts remain unchanged.
Unified Agents home¶
Agents contains current Live sessions and Scheduled · Home machine responsibilities in one native list. Scheduled rows keep exact calendar IDs, with runs and attempts nested in their existing detail views. Cancelled schedules, terminal runs (including recent failed/unavailable records) and offline agents are under History. The old Jobs tab is removed; its debug tour entry selects Agents. Inbox and Conversation keep their destinations and behavior.
An assigned worker is not exclusive ownership: peers remain visible, and no title/path-based worker or schedule merging occurs. Active work whose calendar is missing or cancelled stays in Other work in progress. A recent terminal failure is history, not an invented unresolved human task; actual open human asks still drive Inbox. Jobs remain scoped to the home machine, while the live roster keeps its existing machine/circle context.
Agents owns job visibility/event refresh. Peer and jobs reads retain independent error presentation, so failed job reads do not hide a successfully loaded roster. Calendar records from later active/closed pages are retained alongside work, with independent cursors and refresh/source generation guards. Valid timestamps resolve newer calendar state; contradictory equal/unknown timestamps stay visible as uncertain rather than silently moving to cancelled History. Search covers loaded live peers and schedules; explicit load-more controls retain partial-page truth. Execution target/lifetime/session-policy values, when present on the existing wire, remain optional Technical details instead of agent types.
Calendar conflicts conservatively remain marked until a full successful refresh; a later same-group page does not alone erase that uncertainty. This is a presentation warning to refresh, not a permanent lifecycle state or an unresolved human-action claim.
Schedule status and run context¶
Agents distinguishes the current execution state from the schedule's active, paused or cancelled lifecycle and its last recorded outcome. Status uses the existing semantic symbol, color and text; a linked run with an unavailable state remains visible as unknown. Navigation chevrons lead to details without extra “Open for…” hint lines.
The schedule sort menu offers Name and Latest run created. The latter uses the existing calendar last_materialized_at paired with last_occurrence_work_id, ordered by absolute timestamp and then calendar ID; missing or invalid dates sort last. This means occurrence creation/materialization, not completion time, schedule due time or the calendar's last edit. The current daemon sends the complete matching recurring set on the group's first work page; sorting adds no per-row requests. Cached/read-failure and old-daemon missing-field states remain explicit.
Run context identifies the run's executor once. An attempt with that identical recorded executor refers to Run context; different or unknown attempt executors remain independently visible. Comparison uses recorded peer IDs within the same owning work record, never friendly names or live aliases. Technical details preserve each attempt's own ID and executor reference under its numbered attempt, along with the run executor ID.
Command activity uses the same-root ReceivedMeshEvent wrapper: ordinary event
and cursor decoding survives unsupported/malformed typed payloads. The scoped
projection requires an unrequested active binding response, including empty-turn
metadata; it never picks a session from an event or the first turn. Authenticated
connection generation and owning-machine scope are captured at reads/streams.
Typed observations advance replay cursors but do not enter transcript reload,
read-mark or inbox reconciliation paths. The device window is capped at 512 KiB,
500 observations and 256 subjects with whole-subject eviction and clipping state.
No duplicate command preview is retained in the generic event array.
-fixtures -commandActivityFixture completed|running|conflict|readUnavailable supplies synthetic
source-contract examples on an empty transcript. They are not provider recordings
or live execution proof. Pure tests cover event isolation, lifecycle/result order,
conflict replay, scope separation, bound eviction, metadata and held-read account
replacement. Dedicated renderer tests are prepared separately; a static fixture
pass alone cannot claim intermediate-update pixels, native VoiceOver or complete
history. No timers, provider calls, commands or human messages are generated.
References-only daemon conflict markers require unknown lifecycle/outcome and a started/completed conflict phase. Inconsistent duplicate IDs are bounded local evidence, never fabricated daemon events. Once a retained window clips evidence, outcomes remain conservatively unknown; a fresh successful retained read can replace that uncertainty. Pending reconciliations do not publish rows, and per-scope read tokens reject older concurrent snapshots. Auth failures still clear all private typed data. Whole-subject eviction never leaves a known success while discarding its conflict marker.
The transcript-to-activity handoff carries the generation captured before the transcript read across the existing landing suspension, and preparation validates that original token before binding installation. A stale completed-page test covers this later boundary separately from the in-read fence. A failed retained read removes pending private rows and shows an explicit read-only Retry; it does not poll, execute a command or silently remain loading.
Files from loaded conversation messages¶
At Direct zoom, an agent’s About inspection offers Files in loaded messages; a message with supported file metadata also has a source-attached Files action. The list describes only the accepted loaded window, with explicit unsupported or limited metadata states. Recorded names, type and size do not verify storage origin or grant file access, so this slice offers no Open or Download action. Show source returns only to the exact original item still in the same authenticated connection and view scope.
Conversation pages accept items, metadata capability and cursors together against the captured connection generation, peer, zoom and filters. Replacement reads invalidate older pagination; older/newer page reads are serialized and duplicate cursor completions cannot merge twice. A mixed-capability window remains limited until full replacement. Metadata from unsupported pages never contributes file references. Reconnect/account changes hide the prior scope rather than publishing its late response. Existing composer routing and draft/attachment ownership are unchanged.
Peer recall uses the existing About sheet navigation, canonical machine/peer
scope and existing read-only timeline/search routes. -fixtures -recallFixture
available|degraded|degradedEmpty|unavailable|offline|missing|sessionChanged selects
synthetic responses without live traffic. The same-friendly-name home/remote
fixtures retain distinct machines; search includes an older item absent from the
recent window. Session bindings are confirmed only by unrequested returned
metadata, never an echoed requested session. Query/read generations are local;
late or cancelled reads cannot publish after scope changes. No global index,
raw history logs, live-thread scroll policy, send or resume behavior is added.
Recall additionally fences reads by the authenticated connection generation,
advanced on attach and sign-out. A deterministic held-read test completes after
replacement with identical peer IDs and verifies rejection. Only returned
active binding snapshots can pin a runtime; detached/resumable/archived/lost/
superseded or unknown statuses are not current-session confirmation. Returned
query metadata is checked where supplied. Canonical peer routes reject segment
escape characters. No account history survives in the recall view after a
connection-generation change.
Metadata tool activity uses a sealed kind-first observation payload:
command/codex-command-0.172.0-v1 retains its existing schema and IDs;
mcp/codex-mcp-v1 and dynamic/codex-dynamic-v1 validate the exact 17 metadata
keys, explicit nullable facts, literal omission flags, bounded UTF-8 labels and
recomputed per-observation state. There is no second raw JSON parser: duplicate
member rejection is the authenticated daemon-admission boundary, followed by
canonical typed-journal serialization; native keyed decoding does not claim
independent byte-level duplicate rejection. Unsupported typed data still keeps
its ordinary event and cursor.
All families share the existing 512 KiB / 500 observation / 256 subject window,
account/binding generation, read retry and whole-subject clipping uncertainty.
Source inconsistency is sticky row evidence, distinct from journal conflict and
local duplicate-ID or native-identity conflict. Same-subject records with different known native kind/turn/item preserve the first call instead of fusing previews; item-less markers do not invent an item mismatch. It forces outcome unknown without manufacturing a
journal marker or persisting a second ledger. There are no new streams, polling,
execution, parent/child inference, Files links or legacy-name deduplication.
-commandActivityFixture metadata is an opt-in synthetic mixed renderer fixture;
the canonical 30 decoder examples in testdata/runtime-activity are source-derived,
not provider recordings or installed-capture proof. Command activity's existing
fixture modes and wire encoding remain unchanged.