Skip to content

engine: cost accounting lives in one module #7

Description

@shitianfang

"What one step cost" passes through three homes today: accumulation in the guard,
projection into events in the round driver, persistence in the loop. Understanding or
fixing a budget bug crosses three files. Fold the three into one Ledger module with one
testable interface: feed it a usage sequence, assert spent total, emitted events, and the
persisted Record agree.

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

    ready-for-agentspecified enough for an agent session

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions