Add PR 674 review reliability observability#693
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex review: needs maintainer review before merge. Reviewed July 19, 2026, 3:20 AM ET / 07:20 UTC. Summary Reproducibility: not applicable. This PR proposes new observability and rollout capability rather than fixing a reported current-main bug. The supplied tests and validation describe expected behavior, but no bug reproduction is the decision basis. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Adopt the passive telemetry and observer only if maintainers sponsor it as the supported foundation for the item-shard rollout, then validate it against a fresh main rebase and an isolated two-generation canary before enabling required enforcement. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes new observability and rollout capability rather than fixing a reported current-main bug. The supplied tests and validation describe expected behavior, but no bug reproduction is the decision basis. Is this the best way to solve the issue? Unclear: the passive, warning-only rollout is a thoughtful safety direction, but whether this durable schema and observer should become the platform contract for the related sharding work requires maintainer approval before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8bc5e3a0de48. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
Summary
Adds the review-reliability observation layer that must land before #674.
This PR intentionally starts from
mainand does not copy PR 674's generation-bound queue protocol or producer implementation. It establishes the backward-compatible storage, observer, aggregate API, dashboard card, health rules, and rollout contract that PR 674 can produce into after rebasing.What ships
workflow_runobserver for completedClawSweeperwaves, including plan/item/publication job evidence and conservative terminal reconciliation.refreshingattempts. It lists orphans and rolls them into health; it only terminalizes when the workflow is confirmed terminal and no valid lease remains.GET /api/review-observability?range=6h|24h|7d&repo=all|owner/repowith bounded outcome, coverage, percentile, lane, recovery, and anomaly aggregation.Review reliabilitydashboard card between Work execution and Exact Review, with hero roll-up throughreview_execution_degraded/review_execution_critical.docs/pr-674-observation-runbook.md.Passive rollout and PR 674 integration
Before v2 producers are enabled, the card deliberately displays
Awaiting v2 producers; it does not claim green health from absent data.After this PR lands, #674 should:
main.trigger_lane,trigger_origin, and terminal reason (superseded/generation_supersededversus unexpectedcancelled/workflow_cancelled).The observer remains independent of producer finalizers so plan failures, whole-workflow cancellation, and missing item telemetry remain visible. Normal backfill is evaluated separately and cannot be masked by exact-event or hot-intake success.
Validation
v24.15.0pnpm run check/data/code/openclaw/openclaw/.agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-outputworkflow_runcheckout to the trusted default branch with persisted credentials disabledactions/checkout@v7availability claim because this repository explicitly requires v7 and its checkout guard test passesSafety
This change does not pause the live sweep, run apply/close, mutate foreign pull requests, or enable PR 674's producer enforcement.