Repository navigation
fix(agents): preserve invitation custody through transcript writes - #184513
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 carries private invitation authority through recorder and SessionManager transcript persistence. Example: Alice submits “@bob please review” with a host-approved invitation for Bob.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR provides a useful, focused runtime-adapter slice, and source review found no definite introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherAuthenticated input owners prepare invitation authority; recorder and SessionManager adapters carry it to the existing transcript transaction, which commits membership and publishes receipts. flowchart TD
A[Authenticated input owner] --> B[Transcript recorder]
B --> C[Private commit guard]
C --> D[SessionManager adapter]
D --> E[Transcript transaction]
E --> F[Message and membership]
F --> G[Retained reader publication]
Technical reviewBest possible solution: Preserve invitation custody through the existing recorder, pending-input owner, adapters, and atomic transcript transaction. Do we have a high-confidence way to reproduce the issue? The pinned base lacks invitation-plan forwarding through these runtime adapters; this establishes the integration gap in source, without claiming a released-user reproduction or executing target code. Is this the best way to solve the issue? The patch reuses the existing admission and transaction owners, preserves requester projection and replay behavior, and introduces no competing persistence owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9ca7932563ff. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +74, Tests +139, Docs 0, Other +1. Total +214 across 14 files. Added test files: 0. 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, 12:29 PM ET / 17:29 UTC (Revision 8). |
b440e15 to
d2a40b2
Compare
d4fa7d6 to
49cba53
Compare
d2a40b2 to
ab93b5d
Compare
49cba53 to
ff036af
Compare
ff036af to
24c921a
Compare
ab93b5d to
85b2b78
Compare
24c921a to
583b3fc
Compare
85b2b78 to
742c6f2
Compare
|
@clawsweeper re-review Please review current head |
|
🦞👀 Re-review progress:
|
5a48d0c to
b9b53fd
Compare
760011a to
215ebff
Compare
|
@clawsweeper re-review Current head: The worker-preparation prerequisite now excludes its new subscription consumer from the existing negative admission fixture. The full admission and worker-runner files pass 211/211 under pinned Bun; the corrected negative case and positive compiler sibling pass 2/2 under Node. P0-P3 scoped review is clean. This restack preserves the production patches and all assertions; descriptions include updated source identities and exact test-line allowances. Please review this current head for remaining findings and required rank-up moves. |
|
🦞👀 Re-review progress:
|
b9b53fd to
21b2518
Compare
215ebff to
0b47894
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:
|
039b718 to
d0dec5d
Compare
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. |
Carry original-message admission and selected invitation authority through the runtime transcript adapters, retaining private input custody, replay denial and atomic settlement. Port the runtime-adapter slice onto the merged transcript-commit owner without enabling public invitation/config producers. Qualify 102 Node and 102 pinned-Bun cases, scoped types/lint, canonical validators and unchanged worker/test-line ratchets. Preserve the original expected-RED and formatting-failure receipts separately from the successful completion run; apply only the canonical generated inventory update. Final published-head builds and Gateway comparison remain pending. 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
Invitation authority must survive the normal recorder, worker and SessionManager persistence paths without becoming transcript-controlled metadata.
User Impact
Original human input keeps private invitation custody through runtime persistence and publishes committed membership before observers reuse retained reads.
Why This Change Was Made
Connect the canonical transcript commit to existing runtime adapters. Keep notification completion separate from the input owner's lifetime and preserve post-hook approval decisions.
Stack step 15/17, based on fix/guest-access-10-transcript-commit-20261026. Review and merge in order; each upper PR contains only its own slice against its predecessor.
Previous: commit invitations with original messages; release retained authority.
Next: explain invitations and show delivery failures.
Stack order: complete stack.
Evidence
Slice head:
0b478947d426a073d5ced337eed6f2328a1800d6, 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.The final real-invitation matrix exercises actor and non-actor SessionManager writes. Allowed writes publish membership to retained/acquiring readers; sender demotion at native commit rolls back transcript events, membership and watermarks and leaves retained readers denied. It uses the real Inbox preparation and native admission callback. This replaces two synthetic positive-only cases in the final activation PR. Original Gateway chat coverage supplies the non-manager path; input admission precedes adapter selection.
The native PR wrapper inventory includes the imported authority leaf. Worker inventory locations are regenerated without changing classifications.
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.
Current-head qualification
Required CI passed at
0b478947d426a073d5ced337eed6f2328a1800d6. The ClawSweeper review covers the same head and reports no actionable findings or required rank-up moves. Merge in the recorded stack order.Change size
Production +129/-50; tests +92/-1; generated +1/-1.
Runtime adapters preserve host-owned invitation custody; public SDK write options cannot supply invitation authority.
Upstream contract checked directly: Codex turn text elements are display spans, not Gateway profile membership authority (turn protocol, turn processing).
Test-line allowance
config/test-lines-baseline.txt: 6,283,946 → 6,284,037 (+91). Covers invitation custody through SessionManager persistence. The ceiling equals this prefix's measured 6,284,037 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.Maintainer restack and current-head verification — November 12, 2026
This section supersedes the historical slice-head/current-head qualification, change-size and test-line allowance above; the original contributor narrative and stack references are preserved.
Published head:
939a5a026583198e6fc5cef60b20ca4ec19d67bf, single parentbaca36ea403cf681b9ec531c5f27837d0586dcad(#184512). The PR now targets main and contains only the runtime-adapter slice: 14 files, +263/-49. All 64,449 published raw entries match the qualified post-generation source.view,noneandinvitedpassed at both roots: 6/6 cases, zero pending/failures, six same-process Gateway restart markers per root. Both roots' full source, physical index and refs were restored exactly.cbx_d77a8ab10f4dis verified released/cleanup complete/no host/ready false. All 250 retained hashes were independently verified after release; native paired receipt/manifest bytes match the complete archive. All qualification leases are also verified released.939a5a026583198e6fc5cef60b20ca4ec19d67bf. A fresh hosted re-review is being requested after this evidence update; the historical old-head review above is not substituted for it.The original expected-RED run remains native1/classifier1, with four expected failures and eighteen excluded cases. The 204-case run remains native1/format1: its completed passing proof is reused across an independently verified relocation across explicit type-only imports. Neither failed receipt is relabeled successful, and tests/types/generators were not replayed to erase those failures.
Proof scope: internal-policy proof using an identical test-only local enum overlay, restored and never pushed. Membership is created through the existing Gateway member RPC; public selected-invitation producer/config activation stays in #184515. Deterministic HTTP replay is not live inference; same-process Gateway close/start is not cold-crash or general isolation proof. No new database schema, serialized-format migration or public configuration activation is introduced, and #184514/#184515 are unchanged.
Exact unpushed runtime-only overlay
The identical overlay was applied only after both clean builds, used for all three modes at both roots, and fully restored before final source verification.