Governance v0.9.9 on main

What has this project cost me lately?

bursar

Multi-session, per-project budget accounting for the Onlooker ecosystem. Rolls each session's spend into a per-project ledger on SessionEnd and surfaces "this project burned $X this week" at SessionStart. Where governor regulates a single session, bursar is the cross-session rollup: it reads governor.session.complete off the shared event bus, degrades to a session count when governor is absent, and emits bursar.* events for audit. Named for the officer who keeps the accounts. Builds on the Onlooker ecosystem plugin.

Install /plugin install bursar@onlooker-community

Problem

Governor regulates a single session, but the question at the start of the next one is different: not "is this run over budget?" but "what has this project cost me this week?" A per-session signal cannot answer that on its own, and the only place the data lives is the event log, which is not where you are looking at SessionStart. Bursar rolls each session's spend into a per-project ledger and tells you.

How it works

  1. On SessionStart, Bursar derives the project key from the session's cwd, leaves a breadcrumb so SessionEnd can attribute the spend, then sums the project's ledger over the active window and surfaces the total as context.
  2. On SessionEnd, it resolves the project from that breadcrumb and reads the session's spend from the last governor.session.complete event on the shared event log.
  3. It upserts one record per session into the project's ledger, so a SessionEnd that fires more than once replaces the line instead of adding another.
  4. Governor is optional. Without it Bursar still records the session, and the message falls back to a session count.