Skip to content

fix(gateway): prevent stale session owner and sharing changes - #148951

Merged
steipete merged 18 commits into
mainfrom
codex/swarm-session-metadata-admission-20260915
Oct 2, 2026
Merged

steipete merged 18 commits into
mainfrom
codex/swarm-session-metadata-admission-20260915

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #130741

What Problem This Solves

Queued owner, member, and suggestion changes could outlive a session-store switch or caller revocation. Accepting a suggestion could persist and dispatch new input after the caller changed profiles or cancelled during message approval.

User Impact

Metadata writes reject stale sessions, physical stores, and authority before committing. Suggestions reject revoked requests before input acceptance, retain settlement custody for already accepted or uncertain input, and require host authority for later effects. No schema migration or configuration change is required.

Why This Change Was Made

Owner assignment and suggestion add/claim/release/finalization use the existing collaboration writer, with original-session and current-policy checks at transaction and commit admission. Dispatch preserves logical agent/session identity while binding chat authorization to the validated physical store. Edit and dismiss retain authority through finalization.

The existing sharing projection now retains initialization, provider-review pauses, recovery state, model-selection locks, incognito creation time, and pending workspace facts. Nested records are cloned. This lets queued add/edit operations observe newly committed restrictions while preserving dismissal and accepted-input settlement exemptions.

The refresh keeps main’s visibility/resident authority (#155349, #158833), membership workers (#155620), reactions (#162434), row publication (#163030), and exact incognito actor ownership (#163403). Superseded visibility/membership wrappers were removed. Main also supersedes the declaration export repair (0a188c4f038) and the incidental error-copy/roster fixture repairs (95c6f3b51983, 4ee88721f043, e07172ef9092, 883013b44dd3, #163475, e939bef0a842). Those main versions are retained unchanged. The temporary projection-test relocation was removed because main now keeps the corrected cases in their original file.

Evidence

  • Real SQLite/Gateway regressions cover queued admission, profile/request revocation, physical-store ownership, incognito identity, exact claims, and accepted-input custody. Restoring main’s old suggestion handler makes both pre-acceptance revocation cases fail. Restoring the old sharing projection makes queued add and edit accept after a provider-review pause; the fixed projection passes both denials and all three dismissal/settlement exemptions.
  • Completed focused/sibling proof includes 177 earlier cases; 61 Gateway cases on Testbox run 36985418623; 49 lifecycle/publication cases; and 38 cases after the actor-contract integration (13 binding/custody/provider-review, 10 incognito side-data, 15 collaboration-worker).
  • The six standalone Testbox measurements below all passed, including the paired suggestions baseline/head run. The runtime authority paths and these regression files remain unchanged by subsequent conflict resolutions.
  • Full changed-file checks passed, including types, formatting, declarations, export scans, lint and storage/runtime guards. The roster fixture repair also passed all five affected type graphs. Fresh isolated full-delta review against main e939bef0a842 is clean through P2. The database-worker ratchet passes against that merge base with no T1 growth; the final-head Madge check reported zero cycles.
  • Final CI run 37003433044 passed in full on a1ab3d676250bc274ba47274dcfe0931c1b8aa19, including runtime fixtures and built-CLI TUI canaries. The earlier CI run 37000419637 also passed before the final equivalent-fixture conflict refreshes. ClawSweeper reviewed the final head with no findings and marked it ready.

During refresh, CI exposed stale expectations after #163381’s intentional public error-copy changes and stale persisted rosters after #162612 moved their normalization into Doctor. Those repairs were reviewed and tested without changing production behavior, assertions, model restrictions, guards, or timeouts; main has since absorbed the superseded portions. The remaining small fixture fixes use canonical sole-main entries.

One earlier CI attempt failed the memory-reclamation test with an empty foreground-write outcome. Its existing deletion-result assertion now runs before the outcome assertion so any original deletion error is visible. An isolated Testbox replay and the later full green CI did not reproduce the failure; the assertion reorder is diagnostic, not a claimed root-cause fix. The isolated replay used Node 24.19.0, while the original CI used 24.21.0.

An additional Testbox integration attempt queued and then timed out while polling provider status, before executing its payload. It supplies no passing evidence; its owned lease was subsequently stopped successfully. Earlier completed Testbox proof is retained for unchanged inputs, and final exact-head CI passed the integration. These are correctness tests, not a live-provider performance claim.

Per-file Gateway test-cost record

Paths are under src/gateway/server-methods/. Each standalone command was pnpm test <file> --maxWorkers=1, measured with Linux /usr/bin/time -p on the same four-vCPU Blacksmith Testbox (Node 24.19.0, pnpm 12.5.1). These are actual process wall times, including the test wrapper. All six invocations passed.

Changed test file Before / baseline wall After-fix standalone wall CI seconds
sessions-suggestions.test.ts 31.48 s, 21 cases at merge base 09edac23fcba37988fb404dff23969f9e4f21420. 56.11 s, 29 cases; +24.63 s with eight added cases. Per-file timing unavailable in retained CI evidence.
session-metadata.admission.test.ts New file; no historical baseline. 45.01 s, 14 cases. Per-file timing unavailable in retained CI evidence.
sessions-suggestions.custody.test.ts New file; no historical baseline. 31.92 s, 4 cases. Per-file timing unavailable in retained CI evidence.
sessions-suggestions.store-binding.test.ts New file; no historical baseline. 23.97 s, 4 cases. Per-file timing unavailable in retained CI evidence.
sessions-suggestions.provider-review.test.ts New file; no historical baseline. 27.62 s, 5 cases. Per-file timing unavailable in retained CI evidence.
sessions-suggestions.test-support.ts, sessions-suggestions.test-mocks.ts Support modules, not standalone test files. Cost included in consuming files. Not independently measurable.

The paired suggestions measurements ran consecutively on the same lease. The exact baseline had its own frozen dependency install; the refreshed source tree was a93964872fdc0a6a4a55a75ef88f4101daa21797. Both commit snapshots and all 25 original PR paths were independently verified, including each benchmark test before and after execution. The source HEAD and tracked patch stayed unchanged. These single observations are test-cost records, not statistical performance claims; setup/cache state can affect walls. The baseline worktree was removed natively after measurement. Testbox run 36993934156 hosted the lease; the native wrapper reported success for all six commands before lease cleanup.

The earlier provider-review negative control used the old projector on the same lease: two expected failures and three passes, 32.13 s runner wall; the fixed five cases passed in 28.82 s. This is a correctness control with an intentionally failing baseline. The tests exercise real SQLite reservations/transactions, Gateway authority, and persisted input effects; replacing those owners with mocks would remove the races being protected.

CI run 36975540984, head 4a870a461c2677f662a5243177458cc4bdfba263, passed its runtime jobs but failed an unrelated lint check. Retained evidence provides no reliable per-file CI timing or filename-to-job mapping. Whole-job walls and summed case times are not substituted for file walls, and no CI was rerun solely to populate this record.

@clawsweeper

clawsweeper Bot commented Sep 15, 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 size: XL maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 7:59 AM ET / 11:59 UTC (Revision 15).

ClawSweeper review

What this changes

The PR rechecks session ownership, sharing, and suggestion authority before queued writes and chat input acceptance while preserving settlement of already accepted input.

Merge readiness

✅ Ready for maintainer review

The central repair remains necessary on current main. The final integration resolves the previous conflict blocker, preserves the reviewed authority paths, and has no actionable correctness finding.

Priority: P2
Reviewed head: a1ab3d676250bc274ba47274dcfe0931c1b8aa19

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong boundary coverage, failing baseline controls, and coherent reuse of existing owners support an above-average review rating.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): Retained Testbox evidence exercises the changed Gateway and SQLite owners through queued revocation and real chat-input persistence, including pre-custody rejection and post-custody host invalidation. Source inspection confirms the final merge preserves those paths and regressions; proxy-blocked log retrieval is a reviewer limitation. No stored-data contract changes require migration proof.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): Retained Testbox evidence exercises the changed Gateway and SQLite owners through queued revocation and real chat-input persistence, including pre-custody rejection and post-custody host invalidation. Source inspection confirms the final merge preserves those paths and regressions; proxy-blocked log retrieval is a reviewer limitation. No stored-data contract changes require migration proof.
Evidence reviewed 11 items Pinned introduction reviewed: Reviewed the introduced delta from e939bef to the exact original head. Raw commit records confirm its two recorded parents; fetched main and the stale test merge were kept separate.
Repair still absent from current main: Current main still invokes suggestion chat dispatch without forwarding the original request authorization or commit guard, and its sharing projection omits the lifecycle facts added here. The related merged worker, resident-authority, and publication PRs do not supersede this remaining repair.
Live write admission: Owner and suggestion operations reuse the existing collaboration writer, whose backend requests transaction and commit admission. The new handler guards retain original physical store identity, session identity, current caller authority, and committed sharing policy.
Findings None None.
Security None None.

How this fits together

Gateway session collaboration handles ownership, membership, and suggestions from connected users. It authorizes changes against current session facts, writes through the SQLite collaboration owner, and forwards accepted suggestions into chat.

flowchart TD
  A[User collaboration request] --> B[Current session and caller facts]
  B --> C[Transaction and commit checks]
  C --> D[SQLite collaboration writer]
  C --> E[Reject stale request]
  D --> F[Suggestion chat admission]
  F --> G[Accepted input settlement]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +703, Tests +1298, Docs +11. Total +2012 across 28 files.

View PR surface stats
Area Files Added Removed Net
Source 16 1228 525 +703
Tests 11 1313 15 +1298
Docs 1 11 0 +11
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 28 2552 540 +2012

Review metrics

Metric Value Why it matters
Production versus regression growth production net +696 lines; tests/support net +1305 lines The stated production growth carries worker admission and input-custody guards through existing owners.
Suggestion test cost 31.48 → 56.11 seconds; 21 → 29 cases The paired standalone measurement exposes the added recurring regression cost without claiming a runtime performance improvement.

Technical review

Best possible solution:

Keep one collaboration writer enforcing current authority through commit and chat admission, with exact settlement custody for accepted input.

Do we have a high-confidence way to reproduce the issue?

Yes: queued metadata writes and suggestion approval provide concrete revocation schedules, with recorded failing baseline controls and real SQLite effects. This review verified the source paths without executing them locally.

Is this the best way to solve the issue?

Yes: the patch extends the existing collaboration writer and chat admission contracts rather than creating a competing authority owner, and preserves accepted-input settlement.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against baa26a6ad512.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs bounded session-collaboration races with concrete authority and persistence coverage; pending CI does not change its priority.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): Retained Testbox evidence exercises the changed Gateway and SQLite owners through queued revocation and real chat-input persistence, including pre-custody rejection and post-custody host invalidation. Source inspection confirms the final merge preserves those paths and regressions; proxy-blocked log retrieval is a reviewer limitation. No stored-data contract changes require migration proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Retained Testbox evidence exercises the changed Gateway and SQLite owners through queued revocation and real chat-input persistence, including pre-custody rejection and post-custody host invalidation. Source inspection confirms the final merge preserves those paths and regressions; proxy-blocked log retrieval is a reviewer limitation. No stored-data contract changes require migration proof.

Evidence

What I checked:

  • Pinned introduction reviewed: Reviewed the introduced delta from e939bef to the exact original head. Raw commit records confirm its two recorded parents; fetched main and the stale test merge were kept separate. (a1ab3d676250)
  • Repair still absent from current main: Current main still invokes suggestion chat dispatch without forwarding the original request authorization or commit guard, and its sharing projection omits the lifecycle facts added here. The related merged worker, resident-authority, and publication PRs do not supersede this remaining repair. (src/gateway/server-methods/sessions-suggestions.ts:160, baa26a6ad512)
  • Live write admission: Owner and suggestion operations reuse the existing collaboration writer, whose backend requests transaction and commit admission. The new handler guards retain original physical store identity, session identity, current caller authority, and committed sharing policy. (src/config/sessions/session-sharing-store.worker.ts:116, a1ab3d676250)
  • Authority reaches chat input custody: Suggestion dispatch binds chat authorization to the prepared physical source and composes original request checks. The production chat handler checks these guards during approved-input staging; subsequent accepted-input effects retain the admitted host authority. (src/gateway/server-methods/sessions-suggestions-dispatch.ts:140, a1ab3d676250)
  • Retained final-effect proof: The captured PR body records completed Testbox coverage and negative controls. The inspected custody harness uses the real Gateway router, profile writes, chat admission, SQLite pending inputs, and transcript recorder: profile/request revocation before custody leaves no input or dispatch; accepted input survives later profile selection; closing the original host prevents subsequent transcript acceptance. Mocked execution pauses after admission, rather than supplying the authorization or persistence result. (src/gateway/server-methods/sessions-suggestions.custody.test.ts:28, a1ab3d676250)
  • Previous lifecycle finding resolved: The sharing projection now retains provider review, initialization, recovery, model locks, incognito creation time, and pending workspace facts. Queued provider-review coverage checks persisted add/edit denial while preserving dismissal and accepted-input settlement. The body records an old-projector negative control with two expected failures and three exemptions passing. (src/config/sessions/session-accessor.sqlite-entry-cache.types.ts:54, a1ab3d676250)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-02T07:49:24.539Z sha 0d37f90 :: blocked before merge. :: [P2] [P2] Preserve lifecycle pause facts in queued suggestion checks
  • reviewed 2026-10-02T09:07:37.565Z sha dbe9ec0 :: needs changes before merge. :: none
  • reviewed 2026-10-02T09:26:15.915Z sha ada6c76 :: needs changes before merge. :: none
  • reviewed 2026-10-02T09:49:37.318Z sha 89888be :: needs changes before merge. :: none
  • reviewed 2026-10-02T10:51:00.988Z sha ba854b3 :: needs changes before merge. :: none
  • reviewed 2026-10-02T11:06:51.718Z sha 4399b8d :: needs maintainer review before merge. :: none
  • reviewed 2026-10-02T11:25:40.875Z sha 2175e6d :: blocked before merge. :: none
  • reviewed 2026-10-02T11:47:01.811Z sha 908b855 :: blocked before merge. :: none

@steipete
steipete marked this pull request as ready for review September 15, 2026 09:16
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 15, 2026
steipete added a commit that referenced this pull request Sep 17, 2026
Separate Active Memory circuit-breaker cooldown recovery from success-based reset. Supply usable memory transcript evidence, assert returned context, advance the unchanged 25 ms test deadline deterministically, and join recall cleanup. Remove the unused testing re-export and simplify equivalent filesystem assertions.

Validation: baseline timing failure reproduced; success-reset negative and restoration checks verified; 252 owner/sibling tests and complete changed checks passed. Independent P0-P2 review and exact-head ClawSweeper review found no actionable issues. Published-head CI and its aggregate gate passed.

Refs #149443, #148951.
@fuller-stack-dev fuller-stack-dev self-assigned this Sep 18, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
Separate Active Memory circuit-breaker cooldown recovery from success-based reset. Supply usable memory transcript evidence, assert returned context, advance the unchanged 25 ms test deadline deterministically, and join recall cleanup. Remove the unused testing re-export and simplify equivalent filesystem assertions.

Validation: baseline timing failure reproduced; success-reset negative and restoration checks verified; 252 owner/sibling tests and complete changed checks passed. Independent P0-P2 review and exact-head ClawSweeper review found no actionable issues. Published-head CI and its aggregate gate passed.

Refs openclaw#149443, openclaw#148951.
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Match the concise recovery guidance introduced by #163381 while retaining
redaction, provider-hook, input-custody, and replay assertions. Move the
existing error-projection cases into their owner test file to avoid growing
the oversized server-methods suite.

Check the collected memory-deletion result before its foreground-write
outcome so a future failure exposes the original deletion error. The
isolated replay passes; the original CI failure remains unexplained.
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head ba854b3c180ff1457f61c789bef0e31affb34398 includes the reviewed CI expectation repair. The PR body now records actual standalone wall times for all five Gateway test files and the paired baseline/head suggestions measurements (31.48 s / 56.11 s), all passing on the same Testbox. Unavailable per-file CI timing remains explicit. The isolated review is clean through P2 and the changed-file checks passed. The memory-reclamation replay and unresolved original cause remain documented without claiming a fix.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the agents Agent runtime and tooling label Oct 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 2, 2026
Keep the reviewed owner and suggestion writer guarantees, preserve main roster normalization, and take main’s equivalent adopted-failure and worker-artifact copy tests unchanged.
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review head 4399b8d215b00d00d17b3a32aae8abfc220fa5c8. This merges main through 93625aa3d10d, taking main’s two equivalent copy-test repairs unchanged. The PR runtime delta is unchanged and fresh isolated review is clean through P2. The requested standalone and paired Gateway test timings remain recorded in the body. Exact-head CI is running; targeted roster/store-binding proof is in progress.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Use canonical sole-main entries or the existing Doctor-backed roster fixture helper after #162612 moved legacy ownership migration out of normal config reads. Preserve renamed owner, recovery, sharing, plugin-session and built-CLI PTY assertions without changing model restrictions.
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 2175e6d8b3e81ce25b5747e54463f7051f6fa1f4 repairs the seven invalid-roster fixtures diagnosed in CI run 36998461247 after main #162612. The existing canonical-roster helper preserves named/default owners; assertions, model restrictions, and the previously reviewed runtime authority code are unchanged. The complete candidate is clean through P2 in isolated review, and formatting, affected type graphs, lint and line-cap checks pass. The PR body records the Testbox provider timeout honestly; the new exact-head CI gates the runtime and built-CLI PTY proof.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Take main’s canonical recovery, sharing-cache, and TUI fixtures unchanged, removing equivalent local repairs. Preserve the reviewed runtime authority delta and remaining canonical roster fixtures.
@openclaw-barnacle openclaw-barnacle Bot removed the agents Agent runtime and tooling label Oct 2, 2026
Take main’s side-question and history tests unchanged, including the diagnostic-log assertion. Drop the equivalent local copy repairs while preserving the reviewed authority implementation.
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review head 908b8551fc24c2e8e626715daffd05ebc4260556. Main’s equivalent roster and error-copy fixtures have been taken unchanged, so those repairs are now absent from the remaining PR delta. The runtime authority implementation is unchanged; fresh full-delta review is clean through P2. The pre-push merge check against main 7fbcd486 passed. CI run 37000419637 passed in full on the preceding fixture-repair head, including built-CLI TUI; the refreshed head remains subject to normal exact-head CI.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Take main’s corrected projection and canonical roster fixtures unchanged, preserving their assertions in the original owner files. Remove the superseded projection-test relocation and retain the reviewed session authority delta.
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head a1ab3d676250bc274ba47274dcfe0931c1b8aa19 incorporates main’s remaining equivalent projection-copy and roster repairs. Those local repairs and the temporary projection-test relocation are removed; main keeps the corrected cases in their original files. The remaining 28-file delta is clean through P2 in fresh isolated review, and the pre-push merge check against main 0c1714d2 passed. The authority implementation and its regression files are unchanged. Earlier full CI 37000419637 is green; normal exact-head CI gates this final integration.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete
steipete merged commit ef27c1f into main Oct 2, 2026
166 checks passed
@steipete
steipete deleted the codex/swarm-session-metadata-admission-20260915 branch October 2, 2026 12:07
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…aw#148951)

* fix(gateway): guard session metadata writes across admission

* fix(gateway): reject revoked suggestions before input custody

* fix(sessions): reuse incognito facts in metadata guards

* fix(gateway): bind suggestion dispatch to prepared session stores

Validate physical source identity while retaining the prepared row locator and
logical agent for chat authorization. Preserve native incognito store guards.
Restore typed suggestion handler validation and cover aliased and incognito
send/queue paths alongside worker-clock claim recovery and retired-store admission.

* test(gateway): queue provider review after suggestion preparation

* test(gateway): observe the registered suggestion writer mock

* test: align gateway assertions with current error copy

Match the concise recovery guidance introduced by openclaw#163381 while retaining
redaction, provider-hook, input-custody, and replay assertions. Move the
existing error-projection cases into their owner test file to avoid growing
the oversized server-methods suite.

Check the collected memory-deletion result before its foreground-write
outcome so a future failure exposes the original deletion error. The
isolated replay passes; the original CI failure remains unexplained.

* test: normalize persisted agent roster fixtures

Use canonical sole-main entries or the existing Doctor-backed roster fixture helper after openclaw#162612 moved legacy ownership migration out of normal config reads. Preserve renamed owner, recovery, sharing, plugin-session and built-CLI PTY assertions without changing model restrictions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants