Skip to content

fix(operator): parked reconciliation surfaces skip reasons - #1117

Merged
steipete merged 4 commits into
mainfrom
steipete/parked-reconcile-skip-reasons
Aug 11, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/parked-reconcile-skip-reasons

Conversation

@steipete

@steipete steipete commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • preserve bounded, sanitized reasons for GitHub inspection skips in dead-letter and parked-review reconciliation summaries
  • attribute a serial canonical-inspection failure only to the target that threw; targets not reached after the abort are classified as not_inspected_abort
  • classify HTTP, timeout, missing-repository, invalid-identity, and other failures with at most three 240-character samples
  • add a reproducible real-socket after-fix trace over the immutable production inventory

Accepted review findings

  1. Per-target attribution: fixed for both initial canonical discovery and later recovery revalidation. A shared aborted-inspection accountant now assigns the thrown class only to the failing target, inspected_before_abort to already-inspected targets, and not_inspected_abort to untouched targets. Two first-of-three 403 regression tests prove exactly one http_403 and two not_inspected_abort results at each serial boundary, with no recoveries or resolutions. This also disposes the later revalidation finding from the current ClawSweeper comment.
  2. After-fix error-path trace: added under docs/proof/parked-reconcile-skip-reasons/. The current-head operator ran as a separate read-only process against a real 127.0.0.1 HTTP listener selected through GITHUB_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-256 1187c6042803b5ba98048d64157cb98a5399c1cbde76b69ce25f18dffe23b88f, and runs without --execute or 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: null values were omitted to restore the Worker's optional-field wire shape. No production credentials or queue mutations were exercised.

Validation

  • pnpm run build:all — passed
  • pnpm run test:no-build — 3,318 tests; 3,309 passed, 9 skipped, 0 failed
  • pnpm run lint — passed
  • pnpm run format:check — passed
  • pnpm run check:active-surface — passed
  • focused operator tests — 59 passed, 0 failed
  • pre-commit local-delta Codex autoreview — clean, no accepted/actionable findings
  • committed branch-vs-origin/main Codex autoreview — clean, no accepted/actionable findings
  • fresh-PR Crabbox proof at 5f1eab20dff5eecc5ff0c3c7708dbb391a86622a — provider=aws, lease cbx_9ab4867051c4 (coral-shrimp-cc88), run run_f218ee24cde5; fresh checkout via --fresh-pr openclaw/clawsweeper#1117; nested node:24-bookworm on Docker 29.7.1; Corepack installed pinned pnpm 11.10.0; jq 1.8.1 verified against the official jq-linux-amd64 SHA-256 manifest; 59/59 focused tests passed in 11.58s; run exit 0; lease stopped automatically

Bay 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.

@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 11:46 PM ET / August 11, 2026, 03:46 UTC.

ClawSweeper review

What this changes

This 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 readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: 5f1eab20dff5eecc5ff0c3c7708dbb391a86622a

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The patch is focused, addresses the prior attribution findings, and is supported by strong regression and real-boundary evidence.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): A committed after-fix trace uses the production operator as a separate process with its real HTTP client, deterministic loopback faults, recorded summaries, and a source hash matching the PR head.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): A committed after-fix trace uses the production operator as a separate process with its real HTTP client, deterministic loopback faults, recorded summaries, and a source hash matching the PR head.
Evidence reviewed 6 items Current main lacks the requested diagnostics: The current-main dead-letter and parked reconciliation summaries contain only skipped target counts; their inspection-error paths increment the count without recording a reason or sample.
Per-target implementation: The PR records a bounded reason class and up to three sanitized samples, and distinguishes a failed target from targets not inspected after an abort.
Regression coverage: The PR verifies that a first serial 403 is attributed only to its target and subsequent targets become not_inspected_abort, including recovery revalidation.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - The scheduled workflow emits the two new summary fields as JSON output; no in-tree strict parser was found, but an undocumented external log consumer could reject additive keys.
  • Complete next step (P2) - No actionable patch defect was found; this PR needs ordinary maintainer merge review rather than an automated repair.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Change composition operator +147/-14, tests +182/-2, proof artifacts +702 The production change is focused, while the unusually large remainder is committed validation and trace evidence.

Merge-risk options

Maintainer options:

  1. Accept the additive operator output (recommended)
    Accept the small compatibility risk because the inspected workflow does not parse the summary and the patch preserves existing fields and mutation behavior.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This is a bounded operational diagnostics repair with limited blast radius.
  • merge-risk: 🚨 automation: The PR extends JSON emitted by a scheduled reconciliation operator used in automation observability.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): A committed after-fix trace uses the production operator as a separate process with its real HTTP client, deterministic loopback faults, recorded summaries, and a source hash matching the PR head.
  • proof: sufficient: Contributor real behavior proof is sufficient. A committed after-fix trace uses the production operator as a separate process with its real HTTP client, deterministic loopback faults, recorded summaries, and a source hash matching the PR head.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored current-main commit 7656448, which introduced parked-review inventory and bounded reconciliation; the same identity authored this operator follow-up. (role: introduced the reconciliation surface and recent area contributor; confidence: high; commits: 765644804756; files: scripts/exact-review-dead-letter-operator.mjs, .github/workflows/exact-review-dead-letter-reconcile.yml)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-08-11T02:56:59.028Z sha 653089f :: needs real behavior proof before merge. :: [P2] Attribute a dead-letter inspection error only to its failing target
  • reviewed 2026-08-11T03:16:13.410Z sha badec42 :: needs changes before merge. :: [P2] Attribute revalidation errors to the failing target only
  • reviewed 2026-08-11T03:40:31.250Z sha badec42 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 11, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit ae04c61 into main Aug 11, 2026
11 checks passed
@steipete
steipete deleted the steipete/parked-reconcile-skip-reasons branch August 11, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant