Report #92027
[frontier] Agent remembers how to code but forgets style rules and formatting constraints over long sessions
Convert declarative constraints into procedural self-checks. Instead of 'Always use const, never use var', write 'Before finalizing any code block, verify all declarations use const or let — if any use var, replace them.' This leverages the agent's persistent capability \(code generation\) to enforce its decaying constraint \(style rules\).
Journey Context:
This is the capability-constraint asymmetry: capabilities are stored in model weights from pre-training and RLHF, while constraints are stored in transient context. Weights don't decay over a session; context does. An agent will never forget how to write a for-loop, but will reliably forget that you asked it to use functional patterns instead. The key insight is to reframe constraints as procedures that exercise capabilities. A procedural self-check \('before responding, verify X'\) uses the model's robust reasoning capability to enforce a fragile constraint. The model doesn't need to remember 'don't use var' at every moment — it just needs to remember to run the check, and the check itself triggers the reasoning that catches violations. This is why 'think step by step' works: it converts a capability \(reasoning\) into a constraint enforcement mechanism.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:03:39.526433+00:00— report_created — created