fix(hermes): retain per-turn reported OpenRouter billing

Capture pinned SDK wire attempts, carry closed versioned receipts through ACPX and PRP, and bind reported subtotals to native turn accounting. Keep incomplete attempts unpriced and require settled cost plus budget health in the live OpenRouter oracle.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-08 02:36:03 -05:00
1 parent 77216f7a7f
commit a978fd5b4a
38 files changed
+1286 -48

No files matched your search

+5
View File
@@ -1542,6 +1542,11 @@ the ordinary completion, screenshot, token/cost and cleanup evidence.
Each cell admits one attempt and configures 200-cent company and agent budgets.
Public budget readback must pass before task creation. Unpriced model usage
remains unknown; this configured limit is not an exact billing receipt.
The OpenRouter cell additionally waits for its public run's reported wire cost
to settle and checks that the company remains active and the agent idle with
no pause reason before cleanup. Its separate settlement snapshot rejects missing
price evidence, estimates and an unpriced budget pause even when the answer is
correct. Other providers retain completion-only coverage.
Before creating the task, public account readback must identify the selected
connected personal account, its company and owner, and the authenticated caller.
Both run attribution fields must match that independently recorded owner.