Skip to content

Implement cost.budget + BUDGET_EXHAUSTED #20

@nficano

Description

@nficano

ARCP v1.1 §9.6 introduces cost.budget capability with runtime-enforced counters. Not implemented.

Steps:

  1. Add CostBudget lease capability with max, unit, consumed fields (use bcmath or Brick\Math for precision)
  2. Runtime increments counter on cost-tagged metric events
  3. On exceeding budget, emit BUDGET_EXHAUSTED error
  4. Implement subset enforcement (child ≤ parent)
  5. Add samples/cost_budget/ demo
  6. Tests

Reference: spec §9.6.


Audit reference: ARCP SDK Audit v1.1 (2026-05-19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature implementationv1.1ARCP v1.1 feature work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions