Repository navigation
fix(sessions): commit selected invitations with original messages - #184512
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. What this changesThis PR commits authorized selected invitations and involvement watermarks with their original transcript messages. Example: Alice sends “@bob please review” with Bob explicitly selected.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This maintainer-authored PR remains a useful, distinct prerequisite for selected invitations; no actionable introduced defect was found, and exact-head CI passed. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherPrivate human-input custody supplies invitation authority to the existing transcript writer, which updates membership and involvement in SQLite and publishes committed facts to authorization readers. flowchart LR
A[Accepted human input] --> B[Private invitation custody]
B --> C[Transcript writer transaction]
C --> D[Original message]
C --> E[Membership and watermark]
E --> F[Authorization readers]
Technical reviewBest possible solution: Retain this focused transaction prerequisite and complete public invitation activation through the existing stack. Do we have a high-confidence way to reproduce the issue? Source confirms the missing transcript-to-invitation transaction integration on main; this prerequisite does not activate the public producer, and no runtime reproduction was attempted during this read-only review. Is this the best way to solve the issue? The patch uses the existing transcript transaction, membership writer, watermarks, and publication owners while keeping invitation authority outside public SDK options. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a41c7111235f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +307, Tests +468, Docs +26, Other +2. Total +803 across 29 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (7 earlier review cycles)
Reviewed November 12, 2026, 9:26 AM ET / 14:26 UTC (Revision 8). |
d4fa7d6 to
49cba53
Compare
408ed42 to
3abd346
Compare
49cba53 to
ff036af
Compare
5c077f0 to
e899fd1
Compare
ff036af to
24c921a
Compare
24c921a to
583b3fc
Compare
e899fd1 to
524860f
Compare
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
b9b53fd to
21b2518
Compare
3774237 to
14be106
Compare
|
@clawsweeper re-review Current head: The coordination-cleanup prerequisite now places both ACP databases under the canonical fixture owner and verifies that their actual native handles close before directory removal. Both old external-path controls failed; the repaired complete file passes 30/30 under pinned Bun, and both ACP cases pass 2/2 under Node. P0-P3 scoped review is clean. This seven-PR restack preserves all production and downstream source patches; descriptions include current source identities and exact test-line allowances. Please review this current head for remaining findings and required rank-up moves. |
|
🦞👀 Re-review progress:
|
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
Co-authored-by: jalehman <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: jalehman <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Main made this helper private while the landed prefix had no consumer. The invitation transcript commit adds that consumer and must reuse the same native transaction effect. Co-authored-by: jalehman <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Integrate the landed lifetime prerequisite without replacing the invitation slice. Regenerate the worker inventory through its owner and distinguish file-admission closure from native transaction settlement in the callback test. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]>
Preserve current pending-input settlement, keep submitted-input reads with their existing source owner, and refresh the canonical worker inventory. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]>
Integrate the current schema and standalone-validator baseline. Run all five canonical generators and checks, and refresh the worker inventory metadata. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: jalehman <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
A crash between transcript persistence and Inbox work can leave a posted mention without its invitation, or let an old replay restore revoked access.
User Impact
Fresh original messages commit selected invitations and involvement watermarks in the transcript transaction; replay cannot regrant membership.
Why This Change Was Made
Carry a private revalidated invitation plan from pending-input custody. Match the final approved text, defer first-session effects until the row exists, and retain each message's own raw sequence.
Stack step 14/17, based on fix/guest-access-09-membership-commit-20261026. Review and merge in order; each upper PR contains only its own slice against its predecessor.
Previous: commit membership and involvement together.
Next: preserve invitation authority through runtime writes.
Stack order: complete stack.
Evidence
Slice head:
21b25180cbe921f64db24e6ca3061de57637878e, on fixed main5bf0c41a03f1dba03d625460607ed5b959710458. The complete 13-file integration matrix passed 46/46 on pinned Bun atddc49fd63d3b82e41eb6c74af4ad935a56aebc8fbefore this main rebase. Main's canonical fixture repairs are preserved and duplicate prerequisite changes removed. Prefixes are not separately built locally; this prefix's hosted CI and review are recorded below.Six native transaction regressions cover first/existing sessions, reopen/replay, authorization rollback, first-session batch watermarks and hook-removed tokens. The final SessionManager matrix uses real invitation authority and demotes the sender at native commit, proving rollback of transcript events, membership, watermarks and retained readers.
The retention finding is fixed here: settled owners release the invitation closure; collected owners keep source-owner validation without copying the closure. Unknown-outcome custody is preserved. The four-case GC regression showed 2 failures before the fix and 4 passes afterward, including collected inputs. The callback binder moves to the existing live-owner module to keep the pending-input owner within its line cap.
Public SDK append options still exclude invitation authority. The eight-path forged-options regression passed at
979ff80bf2e59f7ea0a10c2ec4ce6ffbb045f6b4; single, strict, batch, sequence, lock and SessionManager append/persist callers cannot grant membership through forged options. Type-only authority shapes avoid the prior import cycle.The stack evidence ledger records runtime results, prior build/upgrade proof and limits. Integration tests are owned by the final activation PR. Current-head hosted CI and review remain required before landing.
Prior-head qualification (original slice)
Required CI passed at
21b25180cbe921f64db24e6ca3061de57637878e. The ClawSweeper review covers the same head and reports no actionable findings or required rank-up moves. Merge in the recorded stack order.Original-slice change size (historical)
Production +343/-54; tests +318/-4; generated +3/-3.
Invitation authority follows original-message persistence, including first-session and replay handling. Private input custody remains separate from transcript metadata.
Original-slice test-line allowance (historical)
config/test-lines-baseline.txt: 6,283,633 → 6,283,946 (+313). Covers native invitation transactions, forged public SDK options and released pending-input custody. The ceiling equals this prefix's measured 6,283,946 test lines; no spare allowance is added. This is a bounded baseline exception under the repository testing workflow, not a functional-test waiver. No runtime assertion, SDK budget or required CI check is weakened. Change-size test counts include the baseline metadata edit.Current-head qualification — November 2
Head:
d0dec5d913cfa7339cce57b5fcdc2d1cb9e320d8. Reviewed main base:68a413a67ab14a569c4a82ff96bf8627e5163f51.Proof scope
This prerequisite owns the canonical transcript transaction and private invitation custody, not the public selected-mention producer. The prefix is qualified with real-store integration tests at that owner, plus a real isolated Gateway comparison using the existing
session.members.addRPC. The Gateway checks cover view/none parity, member versus nonmember access, runtime filesystem effects, next-request revocation, and same-state Gateway stop/start persistence. Provider HTTP is deterministic replay; this is not a live-inference claim. Gateway restart here means awaited kernel/server teardown and new startup in the same test process, with the same config/database files, not crash or cold-process durability.The public selected-invitation flow stays in activation/full-stack step #184515. Earlier isolated Gateway reproductions on main
419d0c53118045c5a48e80c6743454f2726c67fdand the restacked prefix9a20f48ac13cfd01a24bc77adde84d8ea2647414both observedusers.mentionable=[]before membership. The final-head AWS comparison will independently check and record that limitation; it does not pregrant membership and call that an invitation test. No producer/activation cutover was moved into this PR.Integration repairs and current checks
14be1067..21b25180commit, preserving the original credit and stack links. Added real-store regressions for callback settlement/collection after commit and rollback and invitation-created membership flowing throughchat.history, including outsider refusal and next-read revocation.session-turn-fresh-authority.tsto repair the coordinator's line-cap failure. No guard or test was removed and no cap was raised.68a413a6..d0dec5d9range with complete relevant owner sources, P0–P2, one completed pass, scoped-clean and zero actionable findings. Code review is separate from runtime test execution.git diff --checkpass.Ordinary integration plan — expected versus actual
A is the synthetic owner, B the invitee/member and C a nonmember. All Gateway state, profiles, config, ports, provider fixtures and filesystem artifacts are isolated from the operator Gateway.
419d0c53: history case failed at visibility; callback commit/rollback cases failed at missing preparation/refusal. Pinned current-main AWS comparison pendingusers.mentionable=[]before membership on both; activate laterThe shared local-only enum patch is recorded on both disposable checkouts and never pushed:
AWS uses a fresh
openclaw-checkc7a.2xlargelease for this reviewed head after a successful doctor preflight, checking actual type/CPU/RAM before installation. Earlier superseded attempts are not final-head evidence; their task-owned leasescbx_d3cb30593a3fandcbx_ede49cefe710have independently verified complete provider cleanup. The latter completed an older-head build; its receipts were collected before release.Exact-head CI: run 41432197900. No CI reruns were requested. One hosted exact-head re-review will be requested after the final AWS evidence and body are complete. Merge remains gated on the successful exact-head CI gate, clean exact-head ClawSweeper result, CLEAN PR state and verified lease release.
Callback-lifetime qualification — in progress
The published head remains d0dec5d. Its final-head AWS run passed core types, affected-file lint/format, the unchanged test-line ceiling, and the build, but the owner-suite phase failed two new callback-lifetime checks. The exact-head CI gate is also red; no CI rerun was requested.
The initial observer incorrectly required native settlement from file-admission relays. A corrected, uncommitted diagnostic checks that all retained admissions close and that only actual transaction participants publish completed native settlement. It then drops test-owned observation references before collection. The real SQLite commit/rollback checks still expose retained invitation callbacks. A d0-pinned diagnostic with those observer/read-context edits passed 75/77 targeted tests; the two callback-collection cases remain red. Main has no equivalent invitation producer input, so this is not being labeled an inherited CI exception.
Heap-path inspection found request authority reachable through ended writer-read contexts and persistent native admission/generation callbacks. Clearing the ended reader alone was insufficient; the final lifetime repair and independent review are still in progress. No production guard was disabled, no tests were deleted, and no schema or migration change is proposed.
AWS lease cbx_4073ead4e3e4 remains task-owned for this diagnosis. The complete final-head/main Gateway comparison, verified release, one hosted re-review, and successful exact-head CI remain outstanding. No merge or hosted re-review has been requested on this head.
November 12 — refreshed integration and source qualification
This section supersedes the earlier in-progress status while preserving the original body, matrix and stack credit above.
Published head:
b4cf160d2c02d0711878bed1b61607ab6222416c, integrating reviewed main16eb36d69a95d4d2f88e76454955c2aab096b954without replacing the original contributor ancestry. Prerequisite #191197 remains merged asbe44b10335a92c0c15f55e2a9e38a095c38ae1c2.Completed on the reviewed source
The full validator checker passed before and after all five canonical generators on this refreshed input. No validator output, installed dependency, patch, shipped config or protocol schema changed; the canonical inventory alone records current main’s worker-call metadata. The earlier stale-validator CI failure belongs to the older head and is not being waived or relabeled green.
Gateway proof scope
Proof scope: internal-policy proof using a test-only local enum overlay (diff below, never pushed). Membership is created via the existing Gateway member path; the public selected-invitation producer and real config activation land in #184515, where the full invite-flow AWS proof runs.
The fresh published-head/base AWS comparison passed native exit zero and all 27 phases. Both clean full builds passed before applying the overlay: HEAD 375 seconds, BASE 406 seconds. The identical overlay then passed all three unchanged view, none and invited scenarios on each root: 3/3 HEAD + 3/3 BASE, zero failed, pending or skipped cases. Write, deny-before-provider, sibling-scope isolation, next-request and in-flight revocation assertions all remained intact. Twelve real same-process Gateway close/start transitions retained the same config and database files. Both roots still recorded the public-producer limitation before membership.
Full source fences covered 64,417 HEAD and 64,410 BASE tracked entries, including kind, mode, object identity, raw bytes, physical index and refs. Clean build snapshots matched the initial source; each root's explicitly overlaid runtime snapshots matched before and after execution; both overlays were restored to the exact initial source. The owned lease cbx_d331f3110b3d was stopped once, and fresh independent inspection confirmed released, cleanup complete, no host and not ready. All 248 retained-file checksums passed independent verification after release. The 52,198,039-byte archive has SHA-256 5b6f6ffa72c3f52b662a906cedd0d8d67f0ff080366e0f46b0289052572380bd; its required-artifact pairs and manifest entries match. The signed receipt proves self-signed integrity, not independent actor identity. A nonfatal telemetry-append timeout and missing local lookup history remain recorded; native/coordinator completion, captures and archives establish success without retry or fallback.
Remaining landing gates
Exact-head CI run 43225878706 completed successfully, including openclaw/ci-gate and the generated-validator build check. The PR is CLEAN. One current-head ClawSweeper re-review will be requested after this evidence update; its clean exact-head result remains required before the native merge. No CI rerun, approval or admin exception has been submitted.
The public selected-invitation producer remains in #184515. Existing-membership Gateway proof uses real access, denial, revocation and same-state close/start boundaries with deterministic provider replay; it does not establish live inference or cold-process durability.