Skip to content

Remove inlining/embedding of the plane; full remote plane only #27

Description

@susheem-k

Summary

Embedded / in-process plane (TOKENOPS_EMBEDDED, no TOKENOPS_URL, mounting /v1/runs on the agent) duplicates control-plane responsibility inside agent processes. Two modes to explain, test, and keep in sync. When TOKENOPS_URL is set, agents should not keep a hybrid local TOKENOPS_DB ledger path.

Area: ControlPlaneClient.from_env, TOKENOPS_EMBEDDED, local Store as plane substitute, should_mount_run_registration

Desired behavior

  • Always talk to a real control plane over its API (TOKENOPS_URL).
  • No embedded Store-as-plane path for product/demos; tests use a plane fixture or test server, not a second mental model.
  • Agents never mount /v1/runs.
  • No hybrid local TOKENOPS_DB for ledger when TOKENOPS_URL is set.

Acceptance sketch

  • TOKENOPS_EMBEDDED removed (or test-only and undocumented).
  • One deployment story: plane process + agents with URL + shared contract via APIs.

Reference: docs/notes/2026-07-23-design-fix-notes.md §4

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions