Repository navigation
fix: verify user recall and exact file state across live OpenAI compactions - #208909
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: e7dfcc48-ab25-42ae-94e6-7e9574167113
|
🦞👀 ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR checks exact carried filenames separately from a short user-supplied nickname after repeated live OpenAI compactions. Example: A session creates violet-550e8400-e29b-41d4-a716-446655440000 and remembers the nickname ember nudibranch.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR makes a useful, focused repair to the live compaction gate while preserving user-fact recall; no actionable defects were found, and exact-head CI is still pending. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe live release test drives AgentSession against OpenAI, accumulates context until automatic compaction occurs, and inspects checkpoints, outgoing requests, and the final assistant answer. flowchart TD
A[Initial user nickname] --> B[AgentSession]
B --> C[Real workspace patch]
C --> D[Tool result filename]
D --> E[Automatic compaction checkpoints]
E --> F[Final OpenAI request]
F --> G[Nickname and color recall]
Technical reviewBest possible solution: Retain the existing live test with independent checks for exact runtime-carried filenames and remembered user facts. Do we have a high-confidence way to reproduce the issue? The original exact-transcription oracle is visible on current main, and the public body reports a traced copying failure; this review did not execute the live test or independently inspect the blocked job logs. Is this the best way to solve the issue? The change addresses the oracle problem within its existing owner, preserves two-compaction user recall, and adds distinct checks for checkpoint metadata and provider-request assembly without changing runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 20f70ea2c590. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +42. Total +42 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 30, 2026, 2:10 AM ET / 07:10 UTC (Revision 2). |
Co-authored-by: daniel-lxs <[email protected]>
…ctions Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: b0a5921f-02ac-4501-b5ee-113e0ab0477f
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…ogic * commit 'f7ccd914102ab408606c45c0aa3adbd8427051eb': (1290 commits) refactor(ios): remove unreachable settings and automation controls (#208958) fix: verify deferred activation in package recovery acceptance (#208901) improve(ci): avoid unused adaptive scoring work (#208926) chore(ui): refresh control ui locales (#208959) test(agents): verify user recall and file state across OpenAI compactions (#208909) fix(ui): update the sidebar on startup and recovery screens (#207967) fix(whatsapp): quote the first queued swipe-reply answer (#208791) test(memory-wiki): generate metadata replacement transitions (#208932) fix(ui): hide Claude injected context from chat (#207234) fix(ui): count people instead of emoji in reaction badges (#207235) fix: keep Daybreak when another provider's model list fails (#208883) test(telegram): check the registered preload at polling worker startup (#208936) fix(qa): test Slack verbosity with one direct shell call (#208023) fix(qa): wait for Telegram messages before checking their formatting (#208024) feat(ios): show build details at the bottom of Settings (#208944) chore(ui): refresh control ui locales (#208937) fix: goals stop after native child-result handoffs (#193024) fix(ui): show current tool actions in collapsed chat activity (#208925) improve(ios): put About last in Settings (#208928) test(memory-wiki): generate human-note preservation regressions (#208921) ...
What Problem This Solves
The scheduled live test treated a model's one-character copying error as lost session state. Checking only file metadata misses a different regression: the filename can survive even when the prior conversation summary is dropped. #133180 deliberately made recall of an earlier user fact after two automatic compactions a release gate.
User Impact
Release maintainers keep both signals: changing one character of carried file state fails the test, and losing the earlier user fact fails recall. No runtime, version, or schema change.
Why This Change Was Made
I seed two independent facts. A real workspace patch produces a UUID-bearing filename. I check the original full filename in every checkpoint's modified-file list and in the final OpenAI request. A short, random two-word project nickname appears only in the first user prompt, never in the filename or recall question. After at least two automatic compactions, with tools disabled, the model must return exactly the filename color and the original nickname. The stress loop, acknowledgements, and full-context token threshold are unchanged.
Evidence
a959a0c, the third traced replay reproduced the scheduled missingJ. The marker was intact in the request and already short in OpenAI's completed summary response. The original CI job did not retain a provider wire trace.fd0a8f3and tested revisiond091ed9have the identical Git treede6f89868ac18f340a22985801eb21a956f59f13.ember nudibranchwith[omitted]in the prior summary at the second compaction. The exact filename checks passed and the model still returned the correct color. The final recall assertion failed: expectedviolet ember nudibranch, receivedviolet [omitted]. The mutation is not in the PR.b8a8, receivedb8a.Credit: @daniel-lxs
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by
🦞 Made with OpenClaw