Repository navigation
fix(memory): complete Phase 1C read isolation - #121945
galiniliev wants to merge 42 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 20, 2026, 1:55 AM ET / 05:55 UTC. ClawSweeper reviewWhat this changesThis draft introduces identity-aware memory read isolation across selected memory tools, worker execution, persistent policy state, channels, operator commands, and the Control UI. Merge readiness⛔ Blocked by patch quality or review findings - 9 items remain Keep open for human review: the prior P1 worker-isolation flaw remains at the current PR head, and this protected draft is not merge-ready. Current-main source could not be materialized from the partial checkout, so redundancy against main is not claimed. Priority: P1 Review scores
Verification
How this fits togetherMemory reads normally flow from an agent session into a selected memory plugin and then into model tools or automatic recall. This branch adds a per-agent authorization posture intended to stop legacy memory, filesystem, transcript, and worker paths from bypassing that boundary. flowchart LR
A[Incoming session] --> B[Per-agent identity]
B --> C[Memory isolation posture]
C --> D[Authorized memory runtime]
D --> E[Model tools and recall]
C --> F[Worker tool surface]
C --> G[Operator and transcript paths]
Decision needed
Why: The branch changes the product’s trusted-operator memory model, Plugin SDK surface, persistent state, and operator controls; maintainers must choose the intended rollout and review boundary. Before merge
Findings
Agent review detailsSecurityNeeds attention: The worker’s default-agent lookup creates a concrete bypass of the proposed per-agent memory isolation boundary. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Repair the worker lookup to use the assigned agent, prove both cross-agent directions, then restack narrowly on reviewed prerequisite phases before reevaluating the security rollout. Do we have a high-confidence way to reproduce the issue? Yes, from source: mark worker-agent cut over while main remains legacy, then launch a descriptor assigned to worker-agent; the current default-agent lookup leaves raw worker tools enabled. The inverse direction is likewise masked by the existing test. Is this the best way to solve the issue? No: the branch is not yet the best delivery shape because it bypasses the declared prerequisite sequence and retains a wrong owner-boundary lookup; a repaired, staged per-agent slice is safer. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0a8226c3db52. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
75580e5 to
e256e9b
Compare
e256e9b to
7349106
Compare
1bc740c to
b7f746a
Compare
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This 28k-line draft has had no commits since August 19, is waiting on the author, and is far beyond the reviewable size limit. Memory read isolation would need to land as small, separately reviewable slices; please open fresh focused PRs if you continue. If this change is still needed, please open a fresh PR against current |
What Problem This Solves
Memory read isolation requires a single trusted authorization boundary across selected memory plugins, automatic recall, transcript replay, operator surfaces, and model-facing tools. A partial conversion is unsafe: a legacy read, raw file path, transcript row, or worker invocation can widen access even when one read path is correctly gated.
Why This Change Was Made
This is a broad, in-progress integration draft exploring the Phase 1C read/policy boundary and adjacent enforcement work. The diff includes selected-runtime authorization, exposure and transcript-policy storage, plugin and channel paths, and tool/file controls. It also touches filesystem/tool paths associated with Phase 1D, transcript compaction/write paths associated with Phase 2B, and dreaming/backfill paths associated with Phase 2C.
It is therefore not a discrete, merge-ready Phase 1C slice. Those later-neighborhood touches do not represent completed Phase 1D, 2B, or 2C work. Likewise, checked Phase 1C boxes in this branch's copy of the implementation plan are not completion evidence; the plan requires current-head proof for every definition-of-done item.
User Impact
This draft ships nothing and changes no supported production boundary. It is available for architecture and security review only. Users and operators should continue to rely on the current documented trusted-operator model.
Stack and Review Scope
This branch currently targets
maindirectly. It is not stacked on the Phase 0 sequence #121421 → #121422 → #121423, and its required Phase 1A/1B parents are not published as reviewable predecessors.Use it to review the intended end-to-end ownership boundaries, not to approve a finished implementation. In particular, follow the selected-memory runtime, worker launch, transcript transaction, model tool, CLI/status, and supplemental-plugin paths together.
Evidence
b7f746a01d72142a7120f51259b9939ebd0ffa72.+28696/-457(net+28239), spanning docs, core, plugins, gateway, channels, UI, SDK, scripts, and tests.descriptor.assignment.agentId. GitHub also reports the branchDIRTYagainstmain.Remaining Gates
No full memory-permissions rollout, two-subject pilot, tenant isolation, durable-write cutover, process isolation, or live provider/channel proof is claimed.