fix(memory): harden dreaming diary pipeline#70332
Conversation
Co-authored-by: Copilot <[email protected]>
Greptile SummaryThis PR hardens three aspects of the dreaming diary pipeline: managed dream blocks are now stripped correctly even when they contain nested subheadings (the boundary check is now heading-level-aware); request-scoped fallback fragments are converted into poetic diary prose instead of being written as raw Confidence Score: 5/5Safe to merge; all changes are well-tested and the single finding is a minor variable-shadow style issue with no runtime impact. Three targeted bug fixes each covered by a dedicated regression test. The only finding (variable shadowing of No files require special attention.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4a2e288824
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| if (line.startsWith("*") && line.endsWith("*") && line.length > 2) { | ||
| continue; |
There was a problem hiding this comment.
Preserve italic diary lines when fingerprinting duplicates
Skip logic in normalizeDiaryBlockFingerprint now drops every *...* line, not just the timestamp line. When a generated entry contains an italicized standalone sentence, that content is removed from the fingerprint, so distinct diary entries can collapse to the same fingerprint and appendNarrativeEntry/dedupeDreamDiaryEntries may silently skip or delete valid entries.
Useful? React with 👍 / 👎.
|
Related work from PRtags group Title: Open PR candidate: Dream Diary duplicate/raw fallback cleanup
|
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open for now: this PR still contains a useful memory-core nested-heading stripping fix, but the branch is not merge-ready because it regresses fallback privacy, changes diary dedupe in a way that can drop valid content, targets a stale memory-host SDK path, and still lacks real behavior proof. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes for the review blockers: source inspection shows the PR builds fallback prose from staging fragments, drops all italic lines from diary fingerprints, and patches a stale SDK path. I did not run tests or a live dreaming flow because this review is read-only. Is this the best way to solve the issue? No. The nested-heading strip direction is useful, but this branch is not the best fix until it preserves fallback secrecy, keeps valid diary body text in fingerprints, targets the active runtime path, and supplies real behavior proof. Security review: Security review needs attention: The diff introduces a concrete fallback privacy regression by deriving user-readable DREAMS.md fallback text from raw staging snippets and promotions.
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against c21dcfc7c272. |
Co-authored-by: Copilot <[email protected]>
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Reflections:fragmentsValidation