fix(memory): require privileged dreaming config changes#97869
Conversation
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs maintainer review before merge. Reviewed June 29, 2026, 1:14 PM ET / 17:14 UTC. Summary PR surface: Source +14, Tests +19, Docs +7. Total +40 across 7 files. Reproducibility: yes. from source inspection: current main only blocks Gateway callers when Review metrics: 2 noteworthy metrics.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the owner/admin hardening only after maintainers explicitly accept the compatibility impact for non-owner channel callers and the normal merge gates finish. Do we have a high-confidence way to reproduce the issue? Yes, from source inspection: current main only blocks Gateway callers when Is this the best way to solve the issue? Yes with maintainer acceptance: using the existing trusted AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6de357ad4772. Label changesLabel justifications:
Evidence reviewedPR surface: Source +14, Tests +19, Docs +7. Total +40 across 7 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Explain that persistent dreaming toggles require channel owner status or Gateway admin scope, while status and help remain read-only.
|
Behavioral proof at head The Gateway loaded the bundled Memory Core plugin and started normally. The initial persisted value was: Write-scoped client ( The denial came from the assistant entry in Admin-scoped client ( The success came from the assistant entry in This setup exercised Gateway startup, bundled-plugin discovery, command registration, WebSocket scope propagation, central slash-command dispatch, Memory Core authorization, transcript persistence, and config persistence together. It did not call the command handler directly or mock Documentation now states the privilege contract in:
Additional regression validation: |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
* fix(memory): gate dreaming config changes * fix(memory): document dreaming privilege gate Explain that persistent dreaming toggles require channel owner status or Gateway admin scope, while status and help remain read-only.
* fix(memory): gate dreaming config changes * fix(memory): document dreaming privilege gate Explain that persistent dreaming toggles require channel owner status or Gateway admin scope, while status and help remain read-only.
* fix(memory): gate dreaming config changes * fix(memory): document dreaming privilege gate Explain that persistent dreaming toggles require channel owner status or Gateway admin scope, while status and help remain read-only.
* fix(memory): gate dreaming config changes * fix(memory): document dreaming privilege gate Explain that persistent dreaming toggles require channel owner status or Gateway admin scope, while status and help remain read-only.
Summary
Tightens Memory Core
/dreaming on|offso persistent dreaming configuration changes require a privileged caller.Changes
/dreamingcommand into trusted owner-status exposure.operator.adminfor gateway clients, before mutating dreaming config./dreaming statusand help/phase output readable without mutating config.Validation
node scripts/run-vitest.mjs extensions/memory-core/src/dreaming-command.test.ts extensions/memory-core/index.test.tsgit diff --check.agents/skills/autoreview/scripts/autoreview --mode local