code-review-knowledge
Installation
SKILL.md
Review knowledge: AgentRun
Each section is a path glob, then the invariants that broke before there, with the PR where a reviewer caught it. A
pattern is a lead to check, not a finding: prove it against the change. Built from 2,766 fixed Greptile findings,
our reviewer's threads and the learned review notes, PRs #1-#2328. Keep it under 10 KB; split an area into its own
file under references/ and link it here when it grows.
Money: packages/serve/src/{cap,budget,decision-cap}.ts, packages/serve/src/runner/{metrics,model-route}.ts, packages/run-adapters/src/**
- Unknown spend is
nulland stays unknown:?? 0onspentUsd/bookedUsdbooks it as $0 and lets a capped run go on (#2232 cap.ts, #1952 port.ts, admit.ts). A zero-dollar hold is still booked. - A request sent with no turn yet still counts (#2303). A lost request keeps its bound (#1979). A retried settle after a failed end-mark write books once (#1952). A hold saved before admission is not spend (#1861).
- The DSL's
budget_usdis the host's: no runner enforces it (by design).