Skip to content

[core-shrink] upstream: cost ledger module (types, period budgets, reports) in tinyagents-harness #88

Open

Description

@senamakel

New module tinyagents-harness/src/cost/ledger/ beside turn_cost/model_budget:

Rows (from the tinyhumansai/openhuman#7390 audit)

Paths are relative to crates/openhuman-core/src/ in tinyhumansai/openhuman.

File Lines Verdict Target
platform/cost/types.rs 297 UPSTREAM tinyagents-harness cost/ledger/types.rs
platform/cost/budget.rs 225 UPSTREAM tinyagents-harness cost/ (new ledger/budget.rs)
platform/cost/report.rs 399 UPSTREAM tinyagents-harness cost/ledger/report.rs
platform/cost/tracker.rs 608 KEEP host; split
platform/cost/rpc.rs 539 KEEP host (Outcome handlers)

Blocked by

None.

Definition of done

  • The capability lands in this repo with the tests that covered it in OpenHuman (moved, not copied), and is released/tagged so OpenHuman can pin it.
  • This repo's own CI is green (build, tests, clippy).
  • The OpenHuman host-adoption leaf can then delete the rows above (gitlink bump, plus digest re-pin for a loadable module).

Agent brief

  • Files to consider: the rows above (OpenHuman side) and the target crate named in the description.
  • Research: the gaps and decisions listed in the description; read each row's file before changing it.
  • Workflow: one implementing-an-epic step on the epic branch. Follow openhuman's .claude/skills/migrate-to-submodule: upstream PR here first, then release/tag, then the OpenHuman gitlink bump (and digest re-pin) in the host leaf.
  • Subagent: tdd-implementer.
  • Dependencies: the Blocked by list above.

Parent: tinyhumansai/openhuman#7390

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions