Skip to content

Finish plane-only ledger+config: drop agent-local SQLite hybrid #32

Description

@susheem-k

Summary

Agents still construct Store("tokenops.db") (or equivalent) and pass it into run scopes / governance paths. That leaks persistence into the integration API and encourages treating the agent as a co-owner of the ledger DB — residual of §4 hybrid local DB when a remote plane is available.

Area: Store constructor on TOKENOPS_DB, scope helpers taking store=, agent examples

Desired behavior

  • Context manager / SDK talks to the control plane via APIs (register, resolve run, fetch governance config, record spend / observe — as appropriate).
  • SQLite (or any backend) stays behind the plane; agents do not open the DB file for governance.
  • Aligns with §4 (no inlined plane): ledger + config only via plane HTTP.

Acceptance sketch

  • No Store(path) in example agent servers for governance.
  • Integration code depends on ControlPlaneClient (or successor), not on SQLite schema.

Reference: docs/notes/2026-07-23-design-fix-notes.md §6 (residual of §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