Repository navigation
fix(operator): parked reconciliation surfaces skip reasons - #1117
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 11:46 PM ET / August 11, 2026, 03:46 UTC. ClawSweeper reviewWhat this changesThis PR adds bounded, sanitized per-target skip reasons and samples to dead-letter and parked-review reconciliation summaries, with regression tests and operator proof artifacts. Merge readinessKeep open: current main still omits per-target skip diagnostics, while this PR adds them with focused regression coverage and sufficient real-boundary proof. Likely related people: steipete — introduced the parked reconciliation surface and is the recent area contributor (high confidence). Priority: P2 Review scores
Verification
How this fits togetherThe reconciliation operator reads parked or dead-letter inventory, checks canonical GitHub targets, and reports outcomes to scheduled recovery workflows. This change preserves recovery behavior while making inspection failures visible in the emitted summary. flowchart LR
A[Parked and dead-letter inventory] --> B[Reconciliation operator]
B --> C[GitHub target inspection]
C --> D[Skip reason classification]
D --> E[Bounded JSON summary]
E --> F[Scheduled operator logs]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the additive diagnostics while preserving all existing summary fields and recovery behavior. Do we have a high-confidence way to reproduce the issue? Yes—current-main source proves inspection failures only increment a counter, and the PR supplies a current-source real HTTP/process trace for the corrected behavior. Is this the best way to solve the issue? Yes—the per-target, bounded, sanitized diagnostics preserve the existing recovery path and directly address the missing operator visibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c145b4599285. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
not_inspected_abortAccepted review findings
inspected_before_abortto already-inspected targets, andnot_inspected_abortto untouched targets. Two first-of-three 403 regression tests prove exactly onehttp_403and twonot_inspected_abortresults at each serial boundary, with no recoveries or resolutions. This also disposes the later revalidation finding from the current ClawSweeper comment.docs/proof/parked-reconcile-skip-reasons/. The current-head operator ran as a separate read-only process against a real127.0.0.1HTTP listener selected throughGITHUB_API_URL, using the immutable 20-row artifact from https://github.com/openclaw/clawsweeper/actions/runs/31449984643.Real Behavior Proof
Claim: current-head parked reconciliation attributes GitHub issue-read failures per target through the real HTTP/process boundary. The scenario uses production inventory artifact
9085971968, SHA-2561187c6042803b5ba98048d64157cb98a5399c1cbde76b69ce25f18dffe23b88f, and runs without--executeor a mutation endpoint.All-403 summary, verbatim:
{"action":"reconcile-parked","dry_run":true,"inventory_complete":true,"queue_pressure":"idle","inspected_targets":20,"terminal_targets":0,"repository_gone_targets":0,"resolved_targets":0,"open_targets":0,"recovered_targets":0,"skipped_targets":20,"skip_reasons":{"http_403":20},"skip_samples":[{"target":"steipete/codexbar#2367","reason":"parked review target check failed for steipete/codexbar#2367 with 403"},{"target":"steipete/codexbar#2407","reason":"parked review target check failed for steipete/codexbar#2407 with 403"},{"target":"steipete/codexbar#2469","reason":"parked review target check failed for steipete/codexbar#2469 with 403"}]}Mixed summary, verbatim (two unique targets return 200-open; the remaining 18 return 403):
{"action":"reconcile-parked","dry_run":true,"inventory_complete":true,"queue_pressure":"idle","inspected_targets":20,"terminal_targets":0,"repository_gone_targets":0,"resolved_targets":0,"open_targets":2,"recovered_targets":2,"skipped_targets":18,"skip_reasons":{"http_403":18},"skip_samples":[{"target":"steipete/codexbar#2469","reason":"parked review target check failed for steipete/codexbar#2469 with 403"},{"target":"steipete/codexbar#2471","reason":"parked review target check failed for steipete/codexbar#2471 with 403"},{"target":"steipete/codexbar#2473","reason":"parked review target check failed for steipete/codexbar#2473 with 403"}]}The committed proof directory contains both summaries, a 46-request redacted socket trace, the listener/runner script, artifact and operator hashes, response counts, behavior contract/report, and limits. The earlier base-SHA personal-token replay remains clearly labeled in the README as the diagnosis record, not the after-fix trace.
Limits: inventory came from the immutable production artifact; queue pressure and GitHub responses were deterministic loopback HTTP responses. Explicit artifact
excluded_reason: nullvalues were omitted to restore the Worker's optional-field wire shape. No production credentials or queue mutations were exercised.Validation
pnpm run build:all— passedpnpm run test:no-build— 3,318 tests; 3,309 passed, 9 skipped, 0 failedpnpm run lint— passedpnpm run format:check— passedpnpm run check:active-surface— passedorigin/mainCodex autoreview — clean, no accepted/actionable findings5f1eab20dff5eecc5ff0c3c7708dbb391a86622a—provider=aws, leasecbx_9ab4867051c4(coral-shrimp-cc88), runrun_f218ee24cde5; fresh checkout via--fresh-pr openclaw/clawsweeper#1117; nestednode:24-bookwormon Docker 29.7.1; Corepack installed pinned pnpm 11.10.0; jq 1.8.1 verified against the officialjq-linux-amd64SHA-256 manifest; 59/59 focused tests passed in 11.58s; run exit 0; lease stopped automaticallyBay impact
None. This changes operator-only diagnostic attribution and proof artifacts. It does not change lifecycle publication, dashboard data, or the observer-only OpenClaw Bay surface.