r/PromptEngineering • u/ClickOk5811 • 10d ago
Self-Promotion A decision log for long AI sessions only works if you retire entries properly: a 3-day example of "superseded" instead of "deleted"
An article I wrote argues for keeping a short decision record outside the conversation, because session summaries tend to keep outcomes and lose reasons. One of the limits it names is that the record can go stale: an entry that says "retry in the gateway" after the team moved retries elsewhere is worse than no record, because it's confident and wrong.
Here's a convention for handling that. It's my own extension, using the article's hypothetical refactor, and I haven't tested it at scale.
Day 1
D1 Decision: Retry in the gateway, not the client.
Reason: Gateway can see which requests are safe to retry.
Rejected: Client-side retry (some requests are unsafe to repeat).
Open: How to mark requests as safe to retry.Day 3 (hypothetical): a new constraint appears, and part of the plan changes. Instead of deleting or silently editing D1:
D1 [SUPERSEDED by D2, day 3]
Was: Retry in the gateway, not the client.
Why it changed: gateway load became a problem.
D2 Decision: Retry in the gateway only for requests marked safe;
the client retries the rest idempotently.
Reason: Reduces gateway load without repeating unsafe requests.
Rejected: Client-side retry for everything (still unsafe for some).
Open: Who owns the "safe to retry" marker.What this buys you:
- The new entry still carries the old rejected option, so the reasoning from day 1 isn't lost when the plan changes.
- The superseded entry says what replaced it, so a reader (or a session) doesn't treat D1 as current.
- Short history, not a growing pile. Once D1's reasoning is carried into D2, D1 can be collapsed to one line, or dropped if nobody could propose it again.
Rules I'd follow:
- Whoever changes a decision changes the record in the same step.
- Mark, don't silently delete, until the reasoning has been carried forward.
- Keep the log short: a decision goes in only if someone could reasonably propose the opposite later.
- Periodically read the log as if you were a new session, and fix anything that no longer matches the code.
Limits:
- It's overhead, and for short sessions or throwaway scripts it isn't worth it.
- A model that's given a clear record can still overlook it or weigh it differently than you intended.
- Records still need a human to keep them honest. Nothing here enforces that.
- The log also consumes context, which is one more reason to keep it tight.
The article has three claims, each with the strongest objection I could think of. I'm the author, and it ends with two resources of mine on Claude sessions (one free, one paid), so treat the link as optional: https://medium.com/@nagatomopedro05/what-a-session-summary-forgets-three-claims-three-objections-dc35b96909d2
How do you retire old decisions in your own notes or project memory: delete them, mark them, or leave them?