Repository navigation
fix: skip discussion probes without read access - #160980
Patrick-Erichsen merged 0 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 1, 2026, 1:31 AM ET / 05:31 UTC (Revision 6). ClawSweeper reviewWhat this changesThe Control UI skips discussion requests without read access and prevents saved discussion tabs from using stale loaders after reconnect. Merge readiness✅ Ready for maintainer review The repair remains necessary on current main and the latest release. No introduced correctness or security defect was found, and the related discussion-panel work addresses a distinct failure. Priority: P2 Review scores
Verification
How this fits togetherThe chat pane uses the Gateway’s advertised methods and granted scopes to load plugin-provided session discussions. Those results determine discussion controls and sidebar content. flowchart TD
A[Gateway connection and scopes] --> C[Chat discussion controls]
B[Selected session or saved tab] --> C
C --> D{Method and scope available?}
D -->|No| E[Suppress discussion requests]
D -->|Yes| F[Gateway discussion request]
F --> G[Discussion sidebar content]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +27, Tests +107. Total +134 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep discussion presentation aligned with the existing Gateway scopes and invalidate retained loaders across connection changes while preserving saved tab placement. Do we have a high-confidence way to reproduce the issue? Yes, from source: a connected session-only operator with the discussion method advertised reaches a request requiring operator.read on current main. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. Reusing the existing method-and-scope helper and checking retained callbacks immediately before requests is a focused repair that preserves the server contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 504d2905d69c. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
8683373 to
161df93
Compare
82ffb48 to
3703df1
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* fix: prevent publication scope errors in session-only chat Co-authored-by: Patrick-Erichsen <[email protected]> * test(ui): advertise GitHub options in publication flows Co-authored-by: Patrick-Erichsen <[email protected]> * fix: stop PR status reads for session-only viewers Co-authored-by: Patrick-Erichsen <[email protected]> * fix(ui): retire saved PR indicators when read access ends Co-authored-by: Patrick-Erichsen <[email protected]> * fix: skip discussion probes without read access Co-authored-by: Patrick-Erichsen <[email protected]> * fix: gate saved Discussion tab reads after reconnect Co-authored-by: Patrick-Erichsen <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]>
…on (#160978) * fix: prevent publication scope errors in session-only chat Co-authored-by: Patrick-Erichsen <[email protected]> * test(ui): advertise GitHub options in publication flows Co-authored-by: Patrick-Erichsen <[email protected]> * fix: stop PR status reads for session-only viewers (#160979) * fix: prevent publication scope errors in session-only chat Co-authored-by: Patrick-Erichsen <[email protected]> * test(ui): advertise GitHub options in publication flows Co-authored-by: Patrick-Erichsen <[email protected]> * fix: stop PR status reads for session-only viewers Co-authored-by: Patrick-Erichsen <[email protected]> * fix(ui): retire saved PR indicators when read access ends Co-authored-by: Patrick-Erichsen <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]> * fix: skip discussion probes without read access (#160980) * fix: prevent publication scope errors in session-only chat Co-authored-by: Patrick-Erichsen <[email protected]> * test(ui): advertise GitHub options in publication flows Co-authored-by: Patrick-Erichsen <[email protected]> * fix: stop PR status reads for session-only viewers Co-authored-by: Patrick-Erichsen <[email protected]> * fix(ui): retire saved PR indicators when read access ends Co-authored-by: Patrick-Erichsen <[email protected]> * fix: skip discussion probes without read access Co-authored-by: Patrick-Erichsen <[email protected]> * fix: gate saved Discussion tab reads after reconnect Co-authored-by: Patrick-Erichsen <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]> * fix(ui): compose read gates with shared publication --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
…on (openclaw#160978) * fix: prevent publication scope errors in session-only chat Co-authored-by: Patrick-Erichsen <[email protected]> * test(ui): advertise GitHub options in publication flows Co-authored-by: Patrick-Erichsen <[email protected]> * fix: stop PR status reads for session-only viewers (openclaw#160979) * fix: prevent publication scope errors in session-only chat Co-authored-by: Patrick-Erichsen <[email protected]> * test(ui): advertise GitHub options in publication flows Co-authored-by: Patrick-Erichsen <[email protected]> * fix: stop PR status reads for session-only viewers Co-authored-by: Patrick-Erichsen <[email protected]> * fix(ui): retire saved PR indicators when read access ends Co-authored-by: Patrick-Erichsen <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]> * fix: skip discussion probes without read access (openclaw#160980) * fix: prevent publication scope errors in session-only chat Co-authored-by: Patrick-Erichsen <[email protected]> * test(ui): advertise GitHub options in publication flows Co-authored-by: Patrick-Erichsen <[email protected]> * fix: stop PR status reads for session-only viewers Co-authored-by: Patrick-Erichsen <[email protected]> * fix(ui): retire saved PR indicators when read access ends Co-authored-by: Patrick-Erichsen <[email protected]> * fix: skip discussion probes without read access Co-authored-by: Patrick-Erichsen <[email protected]> * fix: gate saved Discussion tab reads after reconnect Co-authored-by: Patrick-Erichsen <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]> * fix(ui): compose read gates with shared publication --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: Patrick-Erichsen <[email protected]> Co-authored-by: Patrick Erichsen <[email protected]>
What Problem This Solves
Fixes: Session discussion probes silently fail for session-only operators, leaving the action hidden without explanation.
User Impact
User impact: The chat no longer makes the doomed discussion-info read; authorized readers keep the existing action.
Why This Change Was Made
Gate the probe and action by the declared
operator.readcontract; keep the open action on its separate write contract.Evidence
operator.readreturns. Server descriptor remainsoperator.read./chat/main/scope-proof-session, light theme, 1180×800, synthetic session-only scopes; deterministic mock Gateway for rendering and independent isolated real-Gateway authorization proof. Baseline6f4c801c18f9→ original candidate82ffb48edb1f; repaired head3703df1a8360. The visible publication-card difference comes from an earlier layer; this pair proves the original discussion wire-count reduction, while the later saved-tab regression proves the reconnect repair.Before

After

session.discussion.info1 → 0 requests; the real Gateway returnedFORBIDDENwithoutoperator.read. Further route/request receipts are retained in task proof metadata.3703df1a8360in exact-head CI, includingopenclaw/ci-gate. The GitHub stack grouping was removed without changing this head; individual guarded landing is in progress.Contributor credit: Patrick requested the audit-backed repair.
Work sessions