·5 min read
The brief warned about a missing guard that the code already had
The morning brief told me that a bulk delete I had just shipped had no confirmation and no undo. I opened the code to fix it and found a confirm dialog that names the number of rows, a 200-row cap in validation, and an audit row written for every record before it is deleted. The warning was wrong, and it was wrong in a way that the pipeline could never have corrected.
- Project
- DailyBrief
- Date
- Aug 2026
- Stack
- PowerShell, Claude CLI, Electron
- Commit
- 784f721
What the brief actually sees
DailyBrief builds a digest of my project folders and hands it to a model in a single headless run. The digest holds commit subjects, dirty file names, open tasks and my own comments. It does not hold source code. The prompt tells the model it reads one digest and no source file.
That constraint is deliberate. But it means the model's knowledge of a commit is one line of text, something like feat(billing): bulk delete. Everything the commit actually did is invisible.
The wrong warning
The warnings field is meant for deadlines, stalled work and risks. One morning it contained a warning that a new bulk delete had shipped with no confirmation and no undo. The reasoning behind it was plain from the wording: it looked at the commit subjects, saw none that mentioned a confirmation, and concluded there was none.
I checked the code. The real implementation had three things the warning said were missing or implied were missing:
- a confirm dialog that names how many rows will go,
- a 200-row cap enforced in validation,
- an audit row written for each record before the delete runs.
So the code was already careful. The brief had sent me to review something that was fine.
Why it could not have been caught
My first instinct was to look for a bug in the digest builder. There was none. The digest was faithful: it carried what it was designed to carry. The failure sat in the instruction. The model was allowed to turn "the digest does not mention X" into "X does not exist", and a digest built from commit subjects is almost never going to mention a guard. Subjects describe what changed, not what was done carefully.
So the pipeline had a structural blind spot, and a model that reasons from what is missing will fall into it every time the blind spot is hit. No change to the digest would fix it short of putting source code in, which would undo the reason for having a digest.
The fix: two prompt rules
The commit touches only two prompt files, core/prompt.md and core/prompt-replan.md, with 3 lines added and 1 reworded. The rule I added to the main prompt:
- **Absence is not evidence.** You read one digest and no source file. Never conclude that
something is missing, unguarded, untested or undocumented because the digest does not
mention it - the digest was never going to mention it. Only what is present in the digest
can support a conclusion.The warnings field description got a stricter line, because that is the field where a wrong claim does the most damage:
- `warnings` - deadlines, stalled work, risks. **Every warning names evidence that is
actually in the digest**: a commit subject, a dirty file, a TODO, a task's own words,
David's own comment. [...] "X was added and I see no guard/test/confirmation for it" is an
inference from silence, and it is **forbidden** as a warning; it goes in `questions`
instead.The replan prompt, which rewrites the plan mid-day and also writes warnings, got the same rule in a shorter form: a warnings entry names something present in the digest, or it is not written.
Why questions instead of silence
I did not want the model to stop noticing things. A missing guard is a legitimate thing to wonder about. The difference is who it is addressed to. A warning says "this is a problem, go look". A question says "I cannot tell from here, do you want to check?" The second one costs me nothing if the answer is that the code is fine, and the first one costs me a trip into correct code.
The commit message puts the tradeoff in one sentence that I still agree with: a wrong warning costs more than a missing one, because it sends me to read code that was already correct.
What I took from it
The tempting lesson is "tell the model to be more careful". The one that held up is narrower. When a system reads a lossy summary, the instructions have to say what the summary cannot show. A model has no way to know that commit subjects are a poor place to look for guards unless the prompt tells it, and it will treat an empty search result as a finding.
I did not measure how often this happened before or after. I have one observed case, the code that disproved it, and a rule that closes the specific inference. For a prompt change that is what I can honestly claim.
#llm#prompt-engineering#debugging#dailybrief
Keep reading
Have a project in mind?