Skip to content

fix: hide revoked conversations from session recall - #201502

Merged
roboclaw-bot merged 10 commits into
mainfrom
openclaw/release-divergence-sessions
Nov 21, 2026
Merged

roboclaw-bot merged 10 commits into
mainfrom
openclaw/release-divergence-sessions

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

People using session recall can receive a transcript match after the conversation owner makes it private or removes their membership while the search is running. That can expose content that is no longer shared with them.

User Impact

Recall withholds stale matches and related page metadata. Main's once-at-start authority lifetime for already-admitted agent and automation work is unchanged. If sharing changes again during the bounded retry, the request asks the caller to retry rather than publishing stale content.

Why This Change Was Made

Finalize the response synchronously inside the existing prepared-row owner after the transcript worker completes. Worker filtering and final publication share the existing authorization logic; a changed sharing revision discards hits and metadata together before one retry. Main's candidate-batch preparation and physical-store ownership checks remain intact. No new permission policy, schema, configuration or manager is introduced.

The mechanical refresh integrates main at 2b5f1a88ba81e03d51010065c836f48490ebb498. Main already contains the admitted-role inventory test repair in #201720 and #201697, so that test is accepted byte-for-byte from main instead of retaining the redundant local delta.

Evidence

Both current-main native disclosure regressions remain red: a stale private hit and page-metadata sentinels are returned after sharing changes during the completed worker read. With this repair, all 75 focused search, inventory/admission and embedded-caller/history cases pass.

  • The actual authenticated WSS membership-removal regression passes on a fresh isolated runtime build using Node 24.22.1. Authentication, RPC dispatch, transcript worker reads and sharing writes are real; only the completed-read timing is controlled. No model/provider call is required. The test took 58.15 seconds including transformation; the complete runtime build passed in 186.4 seconds, and container cleanup was confirmed.
  • Core, scripts, Gateway-method test, agent-tool test and root E2E TypeScript checks pass, along with scoped lint, formatting and the PR-range diff check. Current and historical benchmark owner modes complete five-sample, ten-iteration allocation measurements on 300 sessions and 100 transcript keys; this verifies the measurement/caller path, not a speedup claim.
  • Completed independent Codex P0–P2 reviews are reused for byte-identical authored code under the maintainer mechanical-refresh policy. The five recall/caller/test files match the reviewed 3b67c579f6f38f88dfd760b8b5cdb651bc6d410a candidate against 949e51dff17c0e1c4cc37f82af8ac5942c0f67e1; the benchmark matches the reviewed 44db084d25dfc2a12f83fb9ab6db4da224114360 delta against 23b383a0f229b64a4458747efbe4f71f7e24e5b7. Both validated reports are terminal scoped-clean with no findings. No new review assessment or certification is claimed for the mechanical refresh.

The integrated local commit is 88c55aad8f3a4b4fdf432781bbe804a5890dba54, tree 4f793da5227a01be740500e1adb111bfda7276e6. All six authored files remain byte-identical to the previously published 678582e9144fdbdaca2559bb719243a8e62e8cde. Current exact-head CI and landing gates remain pending.

Prior-head CI attribution

The earlier UI asset-guard failure in run 44471100085 was reproduced on both its synthetic CI merge and exact main base: Plugins requested 57 ready-window assets against a limit of 56, with matching asset sets. That evidence remains retained as prior-head attribution only; it is not a waiver for this refresh's exact-head CI. No UI budget, snapshot or expected-failure exception is added here.

Requested by @vincentkoc. Adapts the release-side recall-publication repair by @RomneyDa in 118c56915df3.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 18, 2026 22:47
Publish recall hits and page metadata synchronously through the prepared-row owner. Retry a changed sharing snapshot once and reuse the same visibility decision for candidate filtering and final publication.

Cover native sharing revocation and authenticated WSS recall with next-request denial.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: abf2895e-b068-4fe0-a8b1-a59832a35f1f
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: L labels Nov 18, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 18, 2026 22:55
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 7b1190514ffad1fae3d8d7f790ad25fbfcea42d4, but the PR head is now 678582e9144fdbdaca2559bb719243a8e62e8cde. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-18T23:11:11.019Z sha 7b11905 :: needs maintainer review before merge. :: none

roboclaw-bot and others added 2 commits November 18, 2026 23:28
The old rejection expectation predates #201334. Assert that the admitted inventory completes with its captured role and that a fresh inventory applies the edited role without returning the other owner’s transcript. No production authority change.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 688932d8-c7eb-491e-a1a2-e5f45157dae0
roboclaw-bot and others added 2 commits November 19, 2026 00:14
Integrate main 949e51d to resolve the conflict with #201490. Keep its shared candidate-batch preparation in the existing worker/final-publication authorization owner. Retain current sharing-data checks, synchronous response publication, bounded retries and admitted-role policy.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: d28f1ea8-57c4-4bd6-82f0-b241ffb8ba27
roboclaw-bot and others added 2 commits November 19, 2026 06:16
Supply the required onResult callback and await owner completion. Preserve the documented --owner-ref comparison path for historical owners that returned their result. Keep production publication safeguards unchanged.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 9c352cbd-73bd-4635-9f49-2ab34da7bd1e
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 19, 2026
@clawsweeper clawsweeper Bot removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 21, 2026
roboclaw-bot and others added 2 commits November 21, 2026 08:35
Retain the six already-reviewed authored files byte-for-byte. Main owns the equivalent admitted-role inventory test; accept it unchanged rather than restoring the superseded local expectation. Fresh focused, authenticated WSS, runtime-build and type/lint/format evidence qualify the integrated base. Reuse completed Codex reviews for the unchanged authored code under the maintainer mechanical-refresh policy; do not claim the unavailable fresh review ran.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 9fa203d9-c3e3-4c13-af92-7bb57a1ee287
@roboclaw-bot
roboclaw-bot merged commit b66dc6f into main Nov 21, 2026
132 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime P2 Normal backlog priority with limited blast radius. scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant