Repository navigation
chore(sessions): add bounded delivery generation refusal diagnostics - #196724
Conversation
OpenClaw-Publication: fae28452-2afe-4d5c-ace2-ee303156771c
|
🦞👀 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 records one bounded diagnostic warning for the first unavailable refusal of each file-backed session-generation lease. Example: A row invalidation causes two consecutive assertions on the same lease to fail.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: the bounded diagnostics are useful, and review found no actionable defect in the introduced diff. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe session-generation owner checks retained session authority before delivery and file effects; this change projects its refusal state into the existing logger without changing admission decisions. flowchart TD
A[Session consumers] --> B[Generation lease owner]
C[Committed session changes] --> B
D[Database resource lifecycle] --> B
B --> E[Existing authority assertions]
B --> F[Bounded diagnostic projection]
F --> G[Existing logger]
Technical reviewBest possible solution: Retain the bounded instrumentation in the existing lease owner and use its observations to investigate any later refusal without claiming an incident fix. Do we have a high-confidence way to reproduce the issue? The refusal paths are source-verifiable, but the historical incident and its producer remain unknown, as the PR explicitly states. Is this the best way to solve the issue? The existing lease owner remains authoritative, and the sibling helper contains the bounded projection without adding another admission path or persistence model. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against afaaa8d287a3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +193, Tests +393, Other +2. Total +588 across 4 files. Added test files: 1. 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: 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 (3 earlier review cycles)
Reviewed November 10, 2026, 1:17 PM ET / 18:17 UTC (Revision 4). |
OpenClaw-Publication: 775a5933-1a27-4e7d-a6f4-b07379dac8bb
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
OpenClaw-Publication: 9592e248-501b-4614-a6e0-d467efe01dc7
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
OpenClaw-Publication: 30b268b2-02db-4e65-8397-a7ab4e37aa1b
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Why
Identify the first delivery-generation refusal without exposing session content in the diagnostic payload. The missing first-refusal and invalidating-producer link prevents a causal fix. This diagnostic-only change is not a verified incident fix; the historical root cause remains unknown.
What changed
Scope
_metacan include a hostname and absolute logger callsite, and complete log lines can exceed 1,024 bytes. This change does not alter logger-envelope collection or egress redaction.Tradeoffs
Bounded, best-effort evidence can distinguish refusal paths without process-wide deduplication or producer tracing. It does not establish historical causality, and accepted positions can contain only observer frames.
Blast Radius
File-backed session-generation leases gain a one-shot diagnostic warning and bounded state-change capture. Logging or capture failures do not replace the original refusal; normal release and genuine generation revocation do not emit this warning.
Verification
42869355624on68e4f7d7db88970019a8b097d4dae88b8748e56dcompleted successfully: 36 jobs passed, 27 conditionally skipped, none failed or pending. Core lint, all five core test-type stripes, production types, source contracts, changed-node lanes, build artifacts with generated-asset and CLI smoke checks, and all three PostgreSQL conformance shards passed. The aggregate CI check and applicable dependency/security-review statuses also passed.130017200797passed the unchanged checker at comparison basecd6abdb94c5eae55c2e676a0309497ec1b3382dfand merge95c157d0c75bb815b73a753bd2eb18962ef5dcb6: 6,633,622 lines, ceiling 6,633,649, 27 slack. The shared baseline and checker are unchanged. The allocation-only update leaves all production and test bytes identical todd12d9a18b3e1bac31bd9446eca4cc605e14771e.42872921671, revision 4, also reviewed that exact head and found no actionable defect. Earlier paired API/privacy evidence and later projector/sink verification retain their original revision labels; they are not historical incident reproduction. The earlier broad API review timeout remains historical, not a passing verdict.pathToFileURL; Node's Windows conversion control rejects the original drive-less URL and round-trips corrected paths, but the current Windows suite was skipped. CodeQL's aggregate annotation is neutral because 17 main-branch configurations were absent; the selected CodeQL workflows completed successfully, without establishing full configuration coverage. The standalone focused type attempt remains blocked before analysis by canonical dependency containment; passing hosted types do not retroactively make that attempt pass. Full declaration qualification remains incomplete. No shipped Gateway refusal trace or historical-incident reproduction is claimed.