Records and the weekly review
Chief v2 keeps track of its own work so you can check it, and it improves its rules only with your yes.
Records
Every task gets one record: the task, where it went, the model, the tokens and how it ended. The outcome is landed, needs you, reverted or unknown. melta-chief records lists them. A record also keeps the two cost estimates at the start, append and handoff, and which one Chief chose.
A record also keeps its steps in order: the pack, the worker's start, each receipt, the checks, the review, the PR and the finish. Each step keeps the commit its folder was at then; uncommitted work goes into a snapshot commit, and your own files and index are not touched. In the app, the task's timeline shows these steps. Each step of a finished task has Re-run from here, and on a failed task the last good step has it in colour. Tap it, then Start: a new task starts on its own branch at that step's commit, with the old pack. melta-chief rerun <record> --from <step> [--context FILE] does the same on the computer, with your notes from a file.
Measured cost
When a task finishes, Chief reads the worker's own transcript (Claude Code or Codex) for the time the task ran. The record then keeps what the task really cost: tokens by kind, the cost in the same units as the estimate, the number of requests and tool calls, how many reads and searches came before the first edit, files read twice, files read outside the pack, and questions the worker asked. It keeps counts and file paths only, never a tool's input or output, and never a secret file's name.
The record also keeps the estimate made when the task was routed and the ratio of actual to estimate. The session board, the app's session rows and the task cards show both, such as actual 63k / est 50k. For a handoff, the estimate and the measured cost are the new session's own; the old session's handoff turn is not counted.
STATE.md and the reset
Chief keeps a short ledger, STATE.md, with four parts: open tasks, what is waiting on you, decisions today, and the last 20 records. When Chief's own chat reaches 75K tokens (chief.json thresholds.resetContext changes it), or 60% of its window, or a new day starts, it writes the ledger and clears its chat. The fresh chat gets STATE.md and its last few exchanges in its first message and goes on. Nothing in the ledger is lost.
melta-chief staterewrites the ledger now.melta-chief note "text"adds a line to decisions today.melta-chief reset-selfwrites the ledger and clears Chief's chat now.
The Monday review
On Monday Chief says the weekly review is due. It shows the week's numbers, then proposes changes to its rules, its pack template, your project notes or its settings. Each change comes with a reason and a number it should improve.
The review shows how far off the estimates were in each lane (the median ratio of actual to estimate), and the pack quality: reads before the first edit, files read twice, questions, and the files workers read outside their packs.
Until 20 tasks are measured, the review can propose two settings from the estimates. It lowers the 100K append limit when a handoff was cheaper at smaller contexts. It changes the requests-per-task guess when your tasks really took more or fewer requests.
Settings the review changes by itself
Three settings are tuned from measured cost, with no yes needed: the append limit, the handoff limit and how early a waiting session is warmed. The review changes one only when at least 20 measured tasks support it, and never by more than 25% at a time. It logs each change with the numbers before and after. The change is then on trial for the next 20 tasks. If those cost more per task (median), the review puts the old setting back by itself. You can undo a change yourself with melta-chief rollback <changeId> like any other.
Pack additions still need your yes. When three or more tasks in one area read the same file outside their packs, used the same MCP tool, or read the same secret-like environment variable, the review proposes adding them to that area's packs. Packs then name the file to read first, the tool, and the variable by name only, never its value. The review also proposes removing a skill no pack used for 60 days, or one whose tasks land first try clearly less often than the area's tasks without it; rollback brings it back.
The benchmark
melta-chief bench --init picks five real past task transcripts. melta-chief bench measures each one and compares the measured cost with the old estimate and the new, calibrated one. It is a dry run: it sends nothing. It shows how far off each estimate was. It cannot show what another route would have cost; that needs new tasks.
Approving a change
Chief asks yes or no for each change, one at a time, never as a batch. Each yes applies that one change and keeps the old file as a backup. Chief never edits its own rules any other way.
Rollback
Every applied change has an id, and Chief keeps a list of them. melta-chief rollback <changeId> puts the old file back.
Common questions
Does Chief change its rules on its own?
No. Every rule, pack or project-notes change needs your yes. Only the three measured settings above change by themselves, within 25%, and they go back by themselves when tasks get more expensive.
What if I say no?
Nothing changes. The next review can propose it again.
Can I run the review on another day?
Yes: melta-chief review, or ask Chief.
Does it fine-tune a model?
No. Your records and your yes are the whole loop.