How to check whether a coding agent used a saved decision

●1 ●6 ●17
calendar_today ago • schedule2 min read

A coding agent says it read the project’s decision log and finished the change. Those are two different claims. You can check both without reading the whole conversation.

Give the agent one decision with a boundary

Here’s a synthetic example. A report exporter used to reject TSV because the downstream importer only accepted CSV. The importer now has verified TSV support. The new task is to add TSV export, keep CSV as the default, and continue rejecting unknown formats.

Save that as a short note. Include the original reason, the evidence that changed it, and what should stay the same. A decision file is enough for this exercise. If you use Selvedge, the same information can live in the project’s local decision history.

Keep three pieces of evidence

  1. The lookup. Start a fresh agent session without pasting the old discussion. Ask the agent to retrieve the exact decision before editing. Inspect the tool result or file read, including which record came back. A polished paraphrase by itself doesn’t establish what was read.
  2. The diff. Check the actual changed files. In this example, a diff that adds TSV and switches the default to TSV is still wrong.
  3. The behavior. Run separate checks for explicit TSV output, default CSV, and rejection of unknown formats. Include a syntax or build check before behavioral checks. If the code won’t load, report the behavior as untested rather than calling each test a distinct regression.

Check the starting revision too. If it already passes a test, that result by itself doesn’t prove anything about the new edit. For this task, the starting point should reject TSV while preserving the other two behaviors. The finished patch should pass all three.

Keep the conclusion narrow

A matching result before an edit shows consultation. A correct diff and passing tests show the patch satisfied the checks you ran. Neither establishes that the saved note caused the improvement. To compare two memory approaches, give both the same decision facts, use fresh sessions, and judge diffs and test results against the same criteria. Count misses and regressions as well as successes.

Start with one real decision on a disposable branch. If you can produce a short record of what was read, what changed, and what passed, you have something a teammate can review without replaying the chat.

If you have uv, try the smallest version of the lookup for yourself:

uvx --from selvedge==0.3.19 selvedge demo --mcp

It writes to a temporary database, starts two local MCP server processes, and checks that the same decision comes back. It does not test your coding agent or change your project. If that’s useful, save the project on GitHub so you can find the source and setup later.

Disclosure: I maintain Selvedge. This article was drafted with AI assistance; the exporter is an illustrative example, not a customer result.

Want more #testing & #ai-agents deep dives?

Join 6,098+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

Your AI Doesn't Just Write Tests. It Runs Them Too.

Kevin Martinez - May 12

Stop invoking the whole graph to test one node: unit tests and checkpoints for my LangGraph agent

VEACESLAV - Nov 10

Dozens of email accounts: learning AI coding tools as a student

rahuldk1105 - Oct 27

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19

Minimum Weight: Code Coverage Gates in Kotlin Multiplatform with Kover

kmp-bits - Sep 23
chevron_left
1.1k Points • 24 Badges
Southern California, USA • linkedin.com/in/masondelan
9Posts
1Comments
4Connections
Applied Data Science M.S. | Statistics & Data Science B.S.

Related Jobs

View all jobs →

Commenters (This Week)

2 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!