mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
## Why Memory summaries should preserve task history and the scope of user corrections and preferences without turning task-specific instructions into general claims about the user. ## What changed - Give memory v2 dedicated extraction prompts that emphasize chronological task history, evidence provenance, and uncertainty, with working directory and branch hints. - Require only `rollout_summary` and `rollout_slug` for v2, store an empty raw memory, and redact secrets before truncating summaries with a 9,000-byte budget. - Split v2 input into memory context messages while preserving the v1 prompts and output contract. ## Testing Extend startup tests to check v2 output storage, schema, branch hints, and redaction before truncation. Verify that budgeted input preserves human and agent evidence in order, omits media payloads and lower-priority noise, and keeps message chunks bounded. GitOrigin-RevId: 89e1c797450bd8f8e192fbe7161b5159bff8f931