Files
Theo BrowneandClaude Fable 5 0eaeb94564 Address macroscope + cursor follow-up review findings
- ClaudeAdapter: dedupe workflow agents/phases by index (last write wins)
  before applying entry caps, so repeated slot updates cannot exhaust the
  cap and freeze later agents stale; restrict sessionUrl to http(s) so a
  hostile tool result cannot smuggle a javascript: href
- workflowUi: guard sessionUrl scheme again at both anchor render sites
  (defense in depth for payloads persisted before the adapter filter)
- Ingestion: JSON-encode the (threadId, taskId) tuple in stable workflow
  activity ids to remove delimiter-ambiguity collisions
- workflow-logic: order same-timestamp activities by provider sequence
  then lifecycle rank so task.completed can never apply before its
  task.started
- WorkflowPanel/Card: scope phase and agent row keys by taskId so
  switching runs remounts rows instead of leaking expanded transcript
  state and cursors across runs
- workflowUi: phase progress counter counts settled (done + error)
  agents instead of reporting 0/1 for an errored terminal phase
- client-runtime: readJournal query polls every 4s while mounted so the
  Logs tab picks up new results during a live run
- mobile: keep workflow task.completed rows (only per-tick progress is
  suppressed) — with no workflow card on mobile it is the only signal a
  workflow finished or failed

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-02 05:14:52 -07:00
..

Client Runtime

Shared client behavior for web and mobile. Public APIs are organized by package subpath. The package intentionally has no root export.

Public subpaths

Subpath Responsibility
authorization Bearer and DPoP authorization plus token persistence contracts
connection Targets, catalog, supervision, retries, registry, and onboarding
environment Environment identity, descriptors, endpoints, and scoped keys
errors Shared client error inspection
operations Multi-step application workflows
operations/projects Multi-step project creation workflows
platform Platform capability and persistence service contracts
relay Managed relay API and environment discovery
rpc HTTP/RPC clients, protocol, sessions, and subscriptions
state/<domain> Focused shared state, retention, reducers, and Atom constructors

Dependency direction

Platform applications provide platform services. connection composes those capabilities with authorization, relay, and rpc to supervise environment sessions. Independent state modules consume the connection registry and expose focused state or Atom constructors to application-owned runtimes.

Applications should import the narrowest relevant subpath. There is no broad state export: use domain paths such as state/shell, state/threads, state/terminal, or state/vcs. Subpath indices and explicitly exported domain files are public API boundaries; all other files remain implementation details.