Repository navigation
fix(logging): reject blank diagnostic stability query fields - #145532
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
|
Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 12:44 PM ET / 16:44 UTC (Revision 16). ClawSweeper reviewWhat this changesThe PR rejects empty diagnostic query fields for event limits, sequence filters, and event types, and adds regression coverage. Merge readiness✅ Ready for maintainer review The PR remains useful: current main and the latest release still accept explicit empty fields. No actionable patch defect remains, and the maintainer’s acceptance covers the compatibility change. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s stability recorder collects bounded operational diagnostics. CLI commands, Gateway RPC requests, and saved-bundle queries share a parser that validates filters before returning diagnostic snapshots. flowchart TD
A[CLI query] --> D[Shared query validation]
B[Gateway RPC request] --> D
C[Saved bundle query] --> D
D --> E{Valid fields?}
E -->|No| F[Validation error]
E -->|Yes| G[Filtered diagnostic snapshot]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource 0, Tests +15. Total +15 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep one shared parser that rejects explicit blanks, preserves omitted/null defaults, and reports clear validation errors across diagnostic entrypoints. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that current-main diagnostics.stability requests with empty limit, sinceSeq, or type select defaults instead of rejecting them. This read-only review did not execute that path. Is this the best way to solve the issue? Yes, removing the exemptions in the existing shared parser is the narrowest repair; the maintainer has accepted the resulting external-caller adjustment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 817706084620. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (15 earlier review cycles; latest 8 shown)
|
19bf48f to
712c6f8
Compare
|
@clawsweeper re-review Added exact-head real behavior proof to the PR body (RED→GREEN CLI/Gateway transcripts). Please re-evaluate the needs-proof gate. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Updated the PR body with the additional exact-head real CLI controls you requested. Please re-check the needs-proof gate. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
712c6f8 to
d734dfc
Compare
d734dfc to
b437312
Compare
b437312 to
fef7413
Compare
7a7f561 to
b2607b4
Compare
|
@clawsweeper re-review Exact-head running-Gateway RPC proof added for
Remade onto latest upstream/main ( |
|
🦞👀 Re-review progress:
|
b2607b4 to
9323959
Compare
|
@clawsweeper re-review Remade again onto latest
New exact head: Refreshed running Gateway
Focused vitest |
|
🦞👀 Re-review progress:
|
9323959 to
6e8c092
Compare
|
@clawsweeper re-review Exact-head remade onto upstream/main New product head: Refreshed exact-head running-Gateway |
1 similar comment
|
@clawsweeper re-review Exact-head remade onto upstream/main New product head: Refreshed exact-head running-Gateway |
|
🦞👀 Re-review progress:
|
4dd2654 to
b8e0370
Compare
|
@clawsweeper re-review I reviewed the blank-field compatibility concern and am retaining the validation change. Callers should omit unused The released parser accepted empty placeholders, but the documented numeric/event-type contract does not promise that alias and bundled callers omit unused values. External callers relying on empty strings need that adjustment. Omitted/null fields and valid values keep their behavior. The updated body distinguishes historical Gateway proof from current-head checks and records measured execution time. No merge requested. |
|
🦞👀 Re-review progress:
|
Reject blank diagnostic stability query fields so invalid limit/type/sinceSeq cannot slip through.
b8e0370 to
12a0791
Compare
|
@clawsweeper re-review Rebased onto current main. Independent P0–P2 review is clean; fresh Linux regression tests, formatting, and lint pass. Please review the updated head. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* commit 'c39d9b0692dbaafa5b1bfe02514c9f6411ab5546': (30 commits) fix(ci): clear MCP audit and service-worker test blockers (#166217) test(gateway): wait for steering admission in FIFO fixtures fix(llama-cpp): managed setup crashes and loops on macOS below 13.3 (#163358) perf(worktrees): avoid full session parsing during GC (#166072) fix(update): recover stopped legacy managed services (#166232) perf(gateway): stream bounded link preview metadata (#166195) perf(diagnostics): release completed Git operation state (#166214) chore(deps): update fs-safe to 0.24.1 and clone plugin source captures (#166189) feat(clients): adopt worker-local inference placement (#163647) test: serialize PowerShell completion process suites (#166229) test: stabilize release timing boundaries (#166218) refactor(sessions): persist run outcomes only; liveness comes from the run registry (#165733) test(gateway): prove mention refresh after config retargeting fix(team-reports): keep the missed closed day when catch-up runs after midnight (#165780) test(gateway): join WebChat queue admission and drain completion fix(logging): reject blank diagnostic stability query fields (#145532) fix(agents): report unparseable serialized edit arguments (#163577) improve(anthropic): log Claude Code version probe failures (#157697) fix(agents): clarify prompt-size provider failures (#159712) fix(memory): re-throw non-ENOENT/ENOTDIR errors in root memory file lookup (#107921) ...
…w#145532) Reject blank diagnostic stability query fields so invalid limit/type/sinceSeq cannot slip through.
What Problem This Solves
Explicit blank stability-query fields silently selected defaults.
User Impact
limit,sinceSeq, ortypeCallers using empty placeholders must omit unused fields instead.
Why This Change Was Made
Apply existing validation consistently across CLI, Gateway RPC, and bundle queries.
Evidence
Contributor’s historical running-Gateway proof
Running Gateway RPC proof
Captured against historical revision
6e8c092b743aa4ff3890372899993dca8aa9d6c6through a running isolated Gateway (temp HOME/state, loopback token-auth; token redacted). Method: WebSocket RPCdiagnostics.stabilityviacallGateway/ GatewayClient (bypasses CLI pre-validation so the Gateway parser path is exercised).Outcome: explicit blank
limit/type/sinceSeq→ GatewayINVALID_REQUESTvalidation errors; omitted fields → success snapshot (defaults applied). No stored-data contract changes.