Skip to content
Closed
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3a19ee5
feat(memory): guard manual dream tool turns
destire-mio Aug 2, 2026
69b8348
fix(memory): refresh manual dream guard on current main
destire-mio Aug 8, 2026
784a084
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 8, 2026
fc24bae
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 9, 2026
0d5d227
fix(memory): preserve manual dream turn guards
destire-mio Aug 9, 2026
198cdfa
chore: merge origin/main into codex/pinned-memory-manual-dream
qwen-code-dev-bot Aug 12, 2026
39af37f
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 12, 2026
fca5198
fix(memory): harden manual dream turn recovery
destire-mio Aug 12, 2026
82d0857
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 12, 2026
484415b
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 12, 2026
2da2777
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 12, 2026
7eca202
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 12, 2026
49082eb
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 12, 2026
5aebb2a
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 12, 2026
3c4e65e
fix(review): keep repository context within file limit
destire-mio Aug 12, 2026
b987dfc
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 12, 2026
7ef61c2
test(review): pin repository context headroom
destire-mio Aug 12, 2026
fc64852
test(review): make context bound probe robust
destire-mio Aug 12, 2026
4abfdb3
test(review): avoid changed-path exclusion false positive
destire-mio Aug 12, 2026
f77fbc0
test(review): harden manifest policy probes
destire-mio Aug 12, 2026
a0f18cd
test(review): cover all top-level skill sources
destire-mio Aug 13, 2026
3b1fd17
test(review): share repository file walker
destire-mio Aug 13, 2026
4d24802
test(review): normalize walked repository paths
destire-mio Aug 13, 2026
40b4f2f
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 13, 2026
b3da36d
chore(review): drop temporary context CI backport
destire-mio Aug 13, 2026
f0c544d
fix(memory): record headless dreams on completion
destire-mio Aug 13, 2026
99778af
Merge remote-tracking branch 'origin/main' into work/fix-8357-conflict
destire-mio Aug 13, 2026
6e0b1ac
test(cli): update guarded scheduler assertions
destire-mio Aug 13, 2026
dd27945
Merge origin/main into codex/pinned-memory-manual-dream
destire-mio Aug 14, 2026
25c2b36
Merge origin/main and address review feedback
destire-mio Aug 21, 2026
5405f43
Merge remote-tracking branch 'origin/main' into codex/pinned-memory-m…
wenshao Aug 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/design/2026-07-25-pinned-memory-protection.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ planners. This covers post-session extraction, scheduled Dream, and callers of
the workspace-memory Dream endpoint. Explicit remember operations retain their
current behavior.

The visible `/dream` command carries an execution-time tool guard with its
submitted prompt. Interactive, headless, and ACP consumers keep that guard for
the full tool loop, including tool-result and Stop-hook continuations, without
replacing the session-wide permission manager. The guard gives the main-Agent
turn the same bounded tool surface as the forked Dream worker: writes stay
inside project managed memory, pinned paths and symlink aliases are denied,
shell is read-only, and unrelated tools (including sub-Agent delegation) are
unavailable.

## Scope boundaries

- No scanner or indexer production change: recursive discovery already handles
Expand All @@ -52,10 +61,6 @@ current behavior.
pinned files. Automatic memory workers cannot create them with `write_file`
or `edit`, and their read-only shell policy blocks `ln`; a stronger threat
model would require a separate inode-based policy.
- The visible `/dream` slash-command turn receives the shared skip prompt rule,
but does not gain a deterministic tool gate in this change. The slash command
executes on the main Agent, which has no existing per-turn permission
override; adding one would be a separate cross-surface permission design.
- Forked Dream remains project-memory-only because its existing scoped
configuration excludes the global user-memory root.
- Automatic extraction continues to cover both project and global user-memory
Expand All @@ -67,12 +72,7 @@ current behavior.
- `packages/core/src/memory/memory-scoped-agent-config.ts`
- `packages/core/src/memory/dreamAgentPlanner.ts`
- `packages/core/src/memory/extractionAgentPlanner.ts`
- Core/CLI turn-scoped tool-guard plumbing for interactive, headless, and ACP
execution
- Collocated memory permission, prompt, and index tests
- `docs/users/features/memory.md`

## Open question

Whether the visible `/dream` slash command must receive the same deterministic
gate remains a maintainer scope decision. If required, it should be implemented
as a general per-turn permission override rather than by mutating the
session-wide permission manager around one asynchronous tool loop.
11 changes: 5 additions & 6 deletions docs/users/features/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,11 @@ index entries unchanged, while Dream is instructed to skip `pinned/` during
consolidation. Both automatic extraction and forked Dream workers, including
background cleanup, enforce the pinned-file boundary on their write and edit
tools, including paths that resolve through a symlink into `pinned/`; their
existing read-only shell policy blocks command-line deletion. You still control
these files directly and can remove them with an explicit `/forget` request.

> **Note:** The visible `/dream` slash command runs on the main Agent. It
> receives the same skip instruction, but does not yet receive the forked
> worker's deterministic per-turn tool gate.
existing read-only shell policy blocks command-line deletion. The visible
`/dream` command applies the same boundary for its complete interactive,
headless, or ACP tool turn without changing permissions for later prompts. You
still control these files directly and can remove them with an explicit
`/forget` request.

### Periodic cleanup

Expand Down
Loading
Loading