Skip to content

notes: Compact vs Dream 机制卡 - #144

Open
joyehuang wants to merge 1 commit into
mainfrom
0926-compact-vs-dream
Open

notes: Compact vs Dream 机制卡#144
joyehuang wants to merge 1 commit into
mainfrom
0926-compact-vs-dream

Conversation

@joyehuang

@joyehuang joyehuang commented Sep 1, 2026

Copy link
Copy Markdown
Owner

pi compact 源码级拆解 / Claude AutoDream 与 Platform Dreams / 压缩管腾窗口巩固管记什么 / 我们缺的 dream 层。

止步 PR 不合并。bun run check 0 errors。


Summary by cubic

Adds a reference note distinguishing Compact (context-window compression) from Dream (long-term memory consolidation) in agent memory stacks, plus a small Neon query type cast in SiteStats.astro so bun run check stays clean.

  • The note covers pi's compaction flow—20k recent-token retention, structured summary, incremental compaction across sessions, and split-turn handling.
  • It documents Claude's two Dream implementations: AutoDream's background memory-file consolidation and Platform Dreams' async job producing a reviewable new memory store.
  • It positions the two as complementary layers—compact frees the window, dream decides what to keep—and notes their own memory stack (incremental appends + mem0 + recaps) lacks the dream layer.
  • The SiteStats.astro change casts the neon query result explicitly; behavior is unchanged.

Written for commit 56532a3. Summary will update on new commits.

Review in cubic

includes SiteStats.astro neon type fix (same as #118) for clean check on
branches cut from main
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blog Ready Ready Preview Sep 1, 2026 6:35pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/content/notes/0926-compact-vs-dream.md">

<violation number="1" location="src/content/notes/0926-compact-vs-dream.md:15">
P3: The two relatedNote IDs (`0926-akashic-memory-design`, `0926-personamem-v3-mem0-failure-modes`) point to notes that don't exist in src/content/notes. The notes page filters relatedNote against the notes collection (src/pages/notes/[...id].astro:46-54), so these references silently resolve to nothing and the related-notes section renders empty. Either add the planned notes or drop/comment the references until they exist.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

status: ready
source: https://github.com/earendil-works/pi
relatedNote:
- 0926-akashic-memory-design

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The two relatedNote IDs (0926-akashic-memory-design, 0926-personamem-v3-mem0-failure-modes) point to notes that don't exist in src/content/notes. The notes page filters relatedNote against the notes collection (src/pages/notes/[...id].astro:46-54), so these references silently resolve to nothing and the related-notes section renders empty. Either add the planned notes or drop/comment the references until they exist.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/content/notes/0926-compact-vs-dream.md, line 15:

<comment>The two relatedNote IDs (`0926-akashic-memory-design`, `0926-personamem-v3-mem0-failure-modes`) point to notes that don't exist in src/content/notes. The notes page filters relatedNote against the notes collection (src/pages/notes/[...id].astro:46-54), so these references silently resolve to nothing and the related-notes section renders empty. Either add the planned notes or drop/comment the references until they exist.</comment>

<file context>
@@ -0,0 +1,70 @@
+status: ready
+source: https://github.com/earendil-works/pi
+relatedNote:
+  - 0926-akashic-memory-design
+  - 0926-personamem-v3-mem0-failure-modes
+draft: false
</file context>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant