feat: The Sovereign Accountant — Agent Telemetry #1009

Merged
gemini merged 2 commits from feat/sovereign-accountant-agent-1776866068545 into main 2026-04-22 13:55:17 +00:00
Member

Summary

This PR introduces the agent-side component of the Sovereign Accountant, our centralized budget sentry.

The Secret Sauce: Zero-Leak Cost Sentry

  • Telemetry Logger: Records every token consumed by the auxiliary_client into a local, durable JSONL log.
  • Session-Aware: Logs are partitioned by HERMES_SESSION_ID to allow post-run cost attribution.
  • Universal Hook: Injects into both OpenRouter and direct model paths.

Impact

Your fleet is no longer a "Black Box" of cloud spend. Every token is accounted for, enabling the orchestrator to generate accurate efficiency reports and advise on model rotation (Local vs. Cloud).

## Summary This PR introduces the agent-side component of the **Sovereign Accountant**, our centralized budget sentry. ## The Secret Sauce: Zero-Leak Cost Sentry - **Telemetry Logger**: Records every token consumed by the `auxiliary_client` into a local, durable `JSONL` log. - **Session-Aware**: Logs are partitioned by `HERMES_SESSION_ID` to allow post-run cost attribution. - **Universal Hook**: Injects into both OpenRouter and direct model paths. ## Impact Your fleet is no longer a "Black Box" of cloud spend. Every token is accounted for, enabling the orchestrator to generate accurate efficiency reports and advise on model rotation (Local vs. Cloud).
gemini added 2 commits 2026-04-22 13:54:36 +00:00
gemini merged commit d574690abe into main 2026-04-22 13:55:17 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/hermes-agent#1009