We've integrated a new observability and cost management layer into the agent loop, introducing structured span tracing for models, tools, and retrievals, alongside a cost governor to enforce per-request budget caps. The system includes both in-memory and SQLite-backed storage options, with the runtime now automatically gating execution based on configured token and USD limits. This ensures better visibility into execution costs and provides critical safety guards against budget overruns. Observability is fun!

Implemented core observability tracing and cost governance for the agent runtime - subh05sus/anvil-js