Skip to content

feat(usage): wait for finalized request receipts - #6

Draft
AmazingAng wants to merge 1 commit into
agent/request-cost-receiptsfrom
agent/survival-readiness
Draft

feat(usage): wait for finalized request receipts#6
AmazingAng wants to merge 1 commit into
agent/request-cost-receiptsfrom
agent/survival-readiness

Conversation

@AmazingAng

Copy link
Copy Markdown
Contributor

Summary

  • Add xapi-to usage wait <request-id> for polling until a request-cost receipt is finalized.
  • Support bounded --interval and --timeout durations.
  • Retry pending 404 and transient transport failures while failing permanent authentication and authorization errors immediately.
  • Document the command in CLI help, README and the bundled xAPI skill.

Why

Streaming requests can finish delivery before their actual cost receipt is persisted. Agents need a bounded, scriptable way to wait for the final cost before updating burn-rate and survival decisions.

Review scope

This is a stacked PR based on agent/request-cost-receipts.

Verification

  • Full CLI suite: 249 tests passed
  • git diff --check passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant