Skip to content

Computer Use: post-foundation roadmap for state, lifecycle, and real-model reliability #836

Closed

Description

@hqhq1025

Context

PR #699 and PR #777 establish the first Maka Computer foundation:

  • all target providers use the provider-neutral maka_computer function harness;
  • actions bind to a fresh app/window observation and capture-local coordinate frame;
  • semantic targets use identity-preserving refetch and fail closed on missing, ambiguous, moved, occluded, or page-changed targets;
  • successful mutations return a fresh observation and model-visible screenshot;
  • cursor/PiP-style presentation is downstream of targeting and cannot change execution coordinates;
  • presentation waits only for readyForInteraction, fails open after 1 second, and never blocks on animation completion;
  • cua-driver maka.2 is provenance-pinned to the source tree merged upstream in fix(cua-driver): target page JavaScript exactly trycua/cua#2166.

This issue tracks the remaining work derived from the current Codex Computer Use reproduction lab, especially:

  • docs/10-real-cua-behavior-harness.md
  • docs/12-native-function-callgraph.md
  • docs/13-policy-error-state-machine.md
  • docs/14-screenshot-pip-skysight-telemetry.md
  • docs/16-service-process-lifecycle-and-retention.md

Non-goals

This sequence does not attempt to reproduce private Sky IPC, Locked Use/Guardian, Skysight, Event Stream, persistent approval storage, or provider-native Computer Use protocols. Those remain separate compatibility or product decisions.

Planned PRs

PR 1: Explicit Computer Use session and intervention state machine

Implement explicit host states and recovery transitions for:

  • active_observed;
  • physical user_intervened debounce;
  • reobserve_required;
  • blocked URL terminal state;
  • screen lock/manual unlock recovery;
  • user-stopped turn and stale observation invalidation.

Acceptance:

  • content/AX changes never synthesize user_intervened;
  • physical intervention invalidates old observation and action claims;
  • no old action is replayed after debounce, unlock, URL termination, or user stop;
  • only a successful fresh observation returns the session to actionable state.

PR 2: Executor service lifecycle and recovery

Add bounded lifecycle ownership around the cua-driver process:

  • exact executable/version/hash health check;
  • lazy spawn and dead-process recovery;
  • owner/session teardown;
  • no orphan overlay, pending request, or keyboard ownership after termination;
  • bounded restart attempts and explicit degraded/unavailable capability state.

Acceptance:

  • dead or mismatched child is never reused;
  • restart cannot duplicate an action whose outcome is unknown;
  • process exit clears session-local targeting and presentation state;
  • no launchd/private Sky dependency is introduced.

PR 3: Real-model layered evaluation and telemetry

Run the real provider loop through maka_computer for Claude, GPT, Kimi, and MiniMax with the L1-L4 scenario matrix.

Record separately:

  • model latency;
  • presentation-ready latency;
  • tool dispatch latency;
  • fresh-observation latency;
  • display lag;
  • retry count and stop reason.

Acceptance:

  • L1 single action, L2 controls, L3 multi-window/stale/occlusion, and L4 concurrent-user scenarios are represented;
  • focus steal and real pointer movement remain zero;
  • reports contain no screenshots, typed text, coordinates, secrets, or raw AX content;
  • transport success cannot satisfy a business-effect oracle.

PR 4: Model selection, retry, and effect-verification policy

Improve model-driven behavior without weakening executor guarantees:

  • prefer semantic element IDs over pixels;
  • retry only after a fresh observation;
  • distinguish unsupported, stale, ambiguous, no-effect, intervention, and terminal session failures;
  • use action-specific business oracles;
  • stop repeated clicks after a confirmed effect;
  • bound model retries and action budgets.

Acceptance:

  • no blind retry of an old action or coordinate;
  • no pixel fallback after a supported semantic path fails;
  • confirmed effects are not repeated;
  • uncertain transport outcomes produce re-observation, not success;
  • provider-specific image scaling preserves the original capture coordinate authority.

Dependency order

#699 execution foundation
  -> #777 presentation lifecycle
  -> PR 1 session/intervention state
  -> PR 2 service lifecycle
  -> PR 3 real-model evaluation
  -> PR 4 model policy optimization

PR 1 and PR 2 may be developed in parallel after #699/#777 merge. PR 3 depends on their observable state and lifecycle signals. PR 4 depends on the metrics and failure taxonomy from PR 3.

Release gate

The roadmap is complete when:

  • every provider uses maka_computer on the default Desktop path;
  • no action moves the real pointer or steals foreground focus;
  • each action targets the exact observed window/page/frame;
  • intervention and terminal states require re-observation;
  • successful mutations return fresh visual and semantic state;
  • real-model reports separate model, execution, observation, and display latency;
  • all retries are bounded and oracle-driven.

Activity

  1. Astro-Han commented on Aug 2, 2026

    @Astro-Han
    Contributor

    All four roadmap PRs shipped through the #892/#893/#913/#918 series: the cua session state machine, executor lifecycle, real-model evals, and model policy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions