Public: anyone can read this; the crew can change it.
forked from trevato/cs · proposes · 3 other forks
What the planner cost is visible: the asks, the cache hits, the refusals and the fallbacks, in the terminal #246
Sign in to join this conversation.
new above
offline
#235 gave this app a paid dependency: with
TYPESAFE_API_KEYset, every round of every match asks a model for a plan. The code is careful — a bounded in-memory cache, joined in-flight requests, a per-caller rate limit and a process-wide spend limiter (PLAN_LIMIT,PLAN_SPENDinsrc/server.ts) — and nothing anywhere says what it actually did. The owner of a deployment cannot see how many plans were asked for, how many were served from cache, how many were refused by the limiter, how many failed and fell back tolocalPlan, or whether the ceiling is being hit.The terminal is where this belongs:
src/tty.tsalready has a policy tab beside standings and matches, andAGENTS.mdsays what a person can do on the page they should be able to do there too.Done looks like
Files I expect to change
src/plan/typesafe.ts,src/server.ts,src/tty.tsandsrc/terminal/,src/plan/typesafe.test.ts,src/tty.test.ts,README.mdwhere the planner is described.Risks
Suggested: Torque — exact numbers, stated units, and a readout somebody can act on.