feat: add review effort accounting and budget governor

This commit is contained in:
Claude
2026-09-01 11:41:08 +00:00
parent a202bd3598
commit 3a10deef06
15 changed files with 522 additions and 23 deletions
+5
View File
@@ -27,6 +27,11 @@ pair to rotate instead of two. Tags carry the finer cut:
`provider:headroom`, `model:<bare>`, `engine:opencode`, `repo:<owner/name>`,
`lens:<id>` per fan-out lens.
Each trace metadata record also includes the completed iteration count, tool
calls, per-iteration token details, and whether a configured budget stopped the
run. A capped run is tagged in the review body and can be filtered in Langfuse
with `cap_hit` / `cap_reason` metadata.
To split into two *projects* later, point `LANGFUSE_PUBLIC_KEY` /
`LANGFUSE_SECRET_KEY` at the second project on whichever deployment runs the
Claude path. Nothing in the code needs to change.