Repository navigation
chore(ci): diagnose session facts read failures - #200472
vincentkoc wants to merge 4 commits into
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 adds diagnostic logging around session-facts invalidation and rejected database-registry transitions. Example: A committed database-registration upsert invalidates facts retained for chat.send.
Review scores
ProductKind: Maintenance · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep open as a maintainer-owned diagnostic investigation and honor its explicit do-not-merge instruction; no actionable defect was found in the introduced tracing. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway session preparation captures storage and sharing facts, checks registry publications, and supplies retained authority to session mutations; the added logs describe existing rejection paths. flowchart TD
A[chat.send request] --> B[Session facts preparation]
B --> C[Database registry witness]
C --> D[Source mutation filter]
D --> E[Existing authorization result]
B --> F[Diagnostic output]
C --> F
D --> F
Technical reviewBest possible solution: Use the diagnostic results to identify the rejected registration, then replace temporary tracing with a focused repair through the existing registry and session-facts owners. Do we have a high-confidence way to reproduce the issue? CI annotations confirm the target authorization error on this candidate; no current-main reproduction was run, and this diagnostic PR claims no repair. Is this the best way to solve the issue? The tracing is appropriately scoped for investigation: it observes existing checks without adding filesystem probes, weakening assertions, or changing authorization decisions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 96763b979fed. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +41, Tests +4. Total +45 across 6 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. 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 Reviewed November 17, 2026, 3:08 AM ET / 08:08 UTC. |
Diagnostic only — do not merge
Linux CI intermittently rejects
chat.sendwithSESSION_MUTATION_AUTHORIZATION_CHANGEDbefore returning its run ID. The latest reproduction tested merge383b8ce6e74e9c386572d5651734341679158262from this candidate and main. xAI failed after 26.647 seconds; all five recovered-output cases passed.The trace identifies a known committed upsert with the current schema. Its registry filter had entries but no prepared source, and never evaluated physical generation. This is not evidence of a replacement file or unknown settlement. A local control confirms that forwarding first-use registration through the retained authorization preserves absent facts; a later local origin probe traced the direct registrations to nonempty model catalog saves. Catalog persistence can create the same agent database after the fixture captures its absence, so invalidation is legitimate.
The probe records rejected registry-transition categories and mutation kinds, plus booleans describing existing physical-generation and prepared-source checks. It observes those checks without repeating filesystem calls. Existing invalidation reasons and the two incident tests' entry markers remain.
Authorization, guard order, invalidation assignment, waits, fixtures, assertions, and error propagation remain unchanged. Logs contain no paths, identities, configuration, or message content.
Validation: targeted lint, formatting, file-size ratchet, core typecheck, diff checks, and complete independent review with both full owner modules passed. This remains temporary diagnostic code, not a production fix.
The fixture repair is tracked in #200495: settle all 18 scenario catalogs before subscription and send, using the existing owner contract. Local exact-case proof and static checks pass; exact Linux CI confirmation is pending.