Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 2:15 PM ET / 18:15 UTC. ClawSweeper reviewWhat this changesCentralizes long-term-memory defaults around session scope so private workspace memory is not automatically injected into shared group, channel, delegated, scheduled, and provider-runtime sessions. Merge readiness⛔ Blocked until real behavior proof is added - 12 items remain Keep this draft, maintainer-protected PR open. Current Priority: P1 Review scores
Verification
How this fits togetherWorkspace bootstrap files feed agent harnesses, context engines, plugins, and provider runtimes before each model turn. Session classification and persisted session metadata determine whether private long-term memory may enter that turn, including after continuation or transcript reuse. flowchart LR
A[Channel or scheduled turn] --> B[Session key and chat metadata]
B --> C[Session memory policy]
C --> D[Bootstrap and memory tools]
C --> E[Context engines and plugins]
C --> F[Provider thread runtime]
D --> G[Model context]
E --> G
F --> G
G --> H[Shared or private response]
Decision needed
Why: This is a privacy-default decision with a direct upgrade consequence for external plugins; source review cannot determine whether maintainers accept losing existing shared-session engine behavior as the safer default. Before merge
Findings
Agent review detailsSecurityNeeds attention: The privacy goal is sound, but the new context-engine gate is a security-boundary upgrade decision that can silently alter installed plugin behavior. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Mantis proof suggestionA Telegram Desktop proof can directly compare direct-session availability of a redacted memory fact with its absence from a group-session bootstrap. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one canonical session-memory policy, but make the context-engine transition an explicit, versioned compatibility decision: either preserve existing engines while they receive restrictive scope inputs, or fail closed with a documented upgrade path, diagnostics, and focused direct/shared regression coverage before merge. Do we have a high-confidence way to reproduce the issue? Yes, from current source: Is this the best way to solve the issue? Unclear — centralizing the decision at the session-memory boundary is the right direction, but immediately bypassing legacy context engines without an approved migration or compatibility contract is not the best complete solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ac5cdddb2c54. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
fb16e9a to
f9ef9c8
Compare
|
Rebased onto current main (post #99816/#99817 and the soft-resume work). Textual conflicts (15 files) were mostly both-sides-added import/code anchors, resolved keep-both; plus regenerated config/plugin-SDK baselines and the 7 prompt-snapshot fixtures ( Semantic reconciliation with main's soft-resume CLI-session contract (the interesting part):
Local proof on head f9ef9c8: Remaining before merge per prior review: rerun/repair the Mantis Telegram Desktop proof workflow on this head, redacted live Discord/Telegram shared-channel proof, and security/privacy + session-state owner review. The upgrade behavior (existing shared sessions rotate transcripts and lose default MEMORY.md injection on first post-upgrade turn) still needs an explicit owner decision on release-notes handling. |
|
Thanks, Peter Steinberger (@steipete). Your authorship and credit for identifying the shared-memory privacy issue are preserved in the focused landing. The owner-boundary repair landed via #119198 at d06fc25. This draft is being closed because its uneditable, conflicted 273-file branch includes much broader context-engine and session-policy work, while the landed diff intentionally differs by narrowing the scope to the bootstrap privacy boundary. The focused landing closed #84466. |
Closes #84466
What Problem This Solves
Fixes a privacy boundary bug where shared group, channel, scheduled, or delegated team-operation sessions could receive private long-term workspace memory by default when their session key or persisted metadata looked like a private/direct session.
Why This Change Was Made
The change centralizes the long-term memory default policy around canonical session classification and persisted policy stamps, then routes bootstrap loading, memory tools, transcript rotation, compaction, ACP/MCP/plugin tool contexts, scheduled/continuation runs, media/context-engine paths, and memory promotion through that boundary.
Private/direct agent use keeps the documented default include behavior. Shared surfaces default to explicit-only memory unless they reach an allowed on-demand path.
Non-goals: no new config knob, no version/release/changelog change, and no UI or visual changes.
Owner review: this is security/privacy-sensitive session and memory behavior; please include the normal security/privacy and session-state owner review before taking it out of draft.
User Impact
Private long-term memory is no longer injected into shared/group/channel/team-operation sessions by default.
Shared transcripts keep their restrictive stamp through reset, compaction, continuation, tool inventory/invocation, MCP attach lifecycle, and scheduled/operator reconstruction paths. A later private/direct turn rotates to a fresh private transcript instead of mixing private memory into an explicit-only transcript.
Direct/private sessions retain the existing documented behavior, including default long-term memory inclusion and explicit on-demand memory interactions where allowed.
Evidence
AI-assisted under maintainer direction.