Repository navigation
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 changes before merge. What this changesStore-change notifications identify the affected agent and database files so creating another agent’s first session does not invalidate an unrelated pending creation. Example: Create sessions for main and ops while main’s sharing read is paused.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: the prior custom-store finding remains unresolved. Current main has a newer scoped registry implementation, but no formally linked replacement establishes grounds to close this maintainer-owned work. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Gateway prepares session storage and access facts before creating a session. Database registration notifications determine whether those prepared facts remain valid until the creation commits. flowchart LR
A[Authenticated session creation] --> B[Discover agent stores]
B --> C[Prepare access facts]
D[Database registration] --> E[Check affected agent and files]
E --> C
C --> F[Validate captured sources]
F --> G[Create session or return unavailable]
Technical reviewBest possible solution: Reuse main’s shared registry witness and preserve focused concurrent-creation coverage for canonical and custom store layouts. Do we have a high-confidence way to reproduce the issue? No current-main failing run was established. The supplied held-read Gateway regression defines the original failure, while inspected main now uses a source-scoped registry witness. Is this the best way to solve the issue? No, the pinned implementation is incomplete: filtering notifications leaves custom discovery’s global registry assertion unchanged. Main’s shared registry owner provides the narrower integration path. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 24ca81d55bce. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +65, Tests +141. Total +206 across 8 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label 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 (2 earlier review cycles)
Reviewed October 9, 2026, 11:29 AM ET / 15:29 UTC (Revision 3). |
|
Superseded by #163030 (9fc095c) and #169249 (b1cadee). Current main scopes both registry notifications and retained discovery assertions to the captured sources, including physical aliases/custom-store families, rather than only filtering notifications. Existing preparation/creation tests cover unrelated agent creation/deletion through persisted session and transcript creation; retained-read tests cover unrelated registry changes. The exact overlapping WebSocket fixture remains useful optional coverage, but the production repair is already owned by main. This conclusion is source/test inspection, not a fresh runtime replay. |
Closes #158379
What Problem This Solves
Fixes session creation returning “session access facts unavailable” when another agent opens its first store concurrently.
User Impact
Users can create sessions for different agents concurrently without unrelated store registration discarding an in-progress creation's prepared access facts.
Why This Change Was Made
Committed store notifications now identify the affected agent and database paths. Prepared session facts can retain their existing reads when that publication is unrelated to every captured source. Same-agent changes, overlapping files or store families, unknown changes, and existing lifecycle and registry guards still invalidate those facts.
No schema, stored data, permissions, or update migration changes are required.
Evidence
UNAVAILABLE.