Report #26744
[frontier] Agent remembers how to code perfectly but forgets coding standards and style constraints over long sessions
Convert declarative constraints into procedural checkpoints. Instead of 'always use TypeScript strict mode,' use 'before writing any TypeScript file, verify: strict mode is enabled.' Supplement with external enforcement \(linters, formatters, CI checks\) rather than relying solely on the agent's self-enforcement of declarative rules.
Journey Context:
This is the capability-constraint asymmetry and it's one of the most misunderstood drift patterns. Capabilities are procedural knowledge — every time the agent writes code, the capability is exercised and reinforced in context, creating a positive feedback loop. Constraints are declarative knowledge — they exist as rules about what NOT to do, and are only 'activated' when a boundary is approached. Over a long session, the agent's context becomes dominated by procedural patterns while declarative constraints fade because they're never exercised. This is why an agent will flawlessly remember a complex API it used 20 turns ago but forget a simple 'no var in JavaScript' rule. The fix converts declarative → procedural by making constraint-checking an active workflow step. Production teams in 2025-2026 are converging on 'constraint-as-code' patterns where rules are enforced by tooling, not by the agent's attention — the agent's job is to run the check, not to remember the rule.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:17:17.028448+00:00— report_created — created