fix(memory): skip empty dreaming placeholders#80916
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 11:49 PM ET / 03:49 UTC. Summary PR surface: Source +16, Tests +66. Total +82 across 4 files. Reproducibility: yes. source-level: current main still emits the empty REM placeholder when no candidate truths are selected, and the promotion guard does not recognize that placeholder as contaminated. I did not run executable tests because this review had to keep the checkout read-only. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Resolve this PR against current main while preserving newer memory-core contamination guards, then land the two-sided fix that stops empty REM candidate output and rejects already-written placeholder snippets before promotion. Do we have a high-confidence way to reproduce the issue? Yes, source-level: current main still emits the empty REM placeholder when no candidate truths are selected, and the promotion guard does not recognize that placeholder as contaminated. I did not run executable tests because this review had to keep the checkout read-only. Is this the best way to solve the issue? Yes after conflict resolution: the PR uses the narrow maintainable shape by stopping candidate-like empty REM output and rejecting already-written placeholder snippets through the existing promotion contamination gate. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9d68f877ac3e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +16, Tests +66. Total +82 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper PR egg: ✨ hatched 🌱 uncommon Moonlit Shellbean. Rarity: 🌱 uncommon. Trait: sparkles near resolved comments. DetailsShare on X: post this hatch
About:
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(memory): skip empty dreaming placeholders This is item 1/1 in the current shard. Shard 19/22. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Summary
No strong candidate truths surfacedplaceholder under### Possible Lasting TruthsMEMORY.mdFixes #80858
Real behavior proof
MEMORY.md.fix/80858-dreaming-empty-placeholder.### Possible Lasting TruthsorNo strong candidate truths surfaced; a historical placeholder-shaped promotion candidate applies0entries and does not createMEMORY.md.Validation
node scripts/test-projects.mjs extensions/memory-core/src/dreaming-phases.test.ts extensions/memory-core/src/short-term-promotion.test.tspnpm exec oxfmt --check --threads=1 extensions/memory-core/src/dreaming-phases.ts extensions/memory-core/src/dreaming-phases.test.ts extensions/memory-core/src/short-term-promotion.ts extensions/memory-core/src/short-term-promotion.test.tspnpm check:changedNotes
This is intentionally narrow and does not attempt to replace the broader dreaming-contamination hardening discussed in #68774.