Skip to content

fix(review): fence retries to immutable source - #1374

Merged
roboclaw-bot merged 1 commit into
mainfrom
roboclaw/review-retry-fencing
Sep 3, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
roboclaw/review-retry-fencing

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • bind exact-review retry budgets to immutable review input instead of queue revision
  • allow a fresh budget only after source, retry-policy, or explicit operator-authority change
  • carry compatible source identity through hosted and standalone webhook, dispatch, reconciliation, and lease-expiry paths
  • rotate bounded parked-item scans so eligible records cannot be starved

Worked on by

Proof

  • Exact head: 812cf2d991709443785a35a27e1126f2ad2d4a2a
  • Clean Codex P0-P2 dirty-tree and committed-head reviews
  • Focused queue/operator suite: 275/275 passed; TypeScript builds, formatting, docs, hosted/standalone webhook compatibility, dispatcher, telemetry, and proof-path tests passed
  • Docker-backed Node 24 proof: run_a3edb530224f / lease cbx_4402eca4c138 (released)
{"proof":"review-retry-fencing-v1","source_head":"812cf2d991709443785a35a27e1126f2ad2d4a2a","runtime":{"node":"v24.20.0","queue":"production ExactReviewQueue","transport":"Request/Response","persistence":"SQLite-backed Durable Storage harness"},"observations":{"unchanged_source_recovered":false,"unchanged_budget_preserved":true,"changed_head_recovered":true,"changed_head_revision":2,"policy_epoch_recovered":true,"policy_epoch":"2"},"limits":["Runs the production queue module with SQLite-backed local Durable Storage, not deployed workerd.","Uses synthetic source identities and does not call GitHub or mutate a live queue."]}
  • Full Node 24 clean-main comparison before the final focused guard changes: PR head and clean main had the same 59 container/fixture failures; PR-owned tests added no regression
  • Final host gate: 4,605 passed, 57 failed, 14 skipped; failures are confined to pre-existing host/tooling suites (live-proof.test.ts and setup-codex-action.test.ts), outside this PR's changed files

Review finding dispositions

  • proof output defaults to .artifacts/review-retry-fencing/result.json, not documentation paths
  • review-relevant label, lifecycle, command, head/base/draft, prompt, and policy identity is carried consistently across hosted and standalone paths
  • strictly older issue events cannot reset exhausted budgets; same-second exhausted rows wait for signed live reconciliation, while active same-second successors remain queued

Bay impact

No Bay change is required. This changes the exact-review queue mutation guard and signed operator inventory; it does not change a public Bay projection or browser contract.

@roboclaw-bot
roboclaw-bot requested a review from a team as a code owner September 3, 2026 11:04
@clawsweeper

clawsweeper Bot commented Sep 3, 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 P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. 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 Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 8:40 AM ET / 12:40 UTC.

ClawSweeper review

What this changes

The PR binds exact-review retry recovery to immutable item identity, a retry-policy epoch, or an explicit operator override across queue, webhook, dispatcher, operator, documentation, and tests.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: current main does not contain this branch’s retry-fencing behavior, and the current-head source, focused coverage, and controlled queue proof support retaining it as a landing candidate. No blocking correctness or security defect was identified in this review.

Priority: P2
Reviewed head: 812cf2d991709443785a35a27e1126f2ad2d4a2a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A broad but coherent automation fix with strong focused coverage and inspectable current-head queue proof.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The supplied exact-head terminal trace corresponds to the checked-in runner, which uses the production ExactReviewQueue through its Request/Response boundary with an SQLite-backed local Durable Storage harness; it observes unchanged exhausted input remain parked and changed-head and retry-policy inputs receive a fresh budget. It does not exercise deployed workerd or live GitHub.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The supplied exact-head terminal trace corresponds to the checked-in runner, which uses the production ExactReviewQueue through its Request/Response boundary with an SQLite-backed local Durable Storage harness; it observes unchanged exhausted input remain parked and changed-head and retry-policy inputs receive a fresh budget. It does not exercise deployed workerd or live GitHub.
Evidence reviewed 6 items Introduced behavior is not on current main: The verified PR-introduced range from current main 71e1290 to head 812cf2d adds immutable retry-identity checks and preserves exhausted parked budgets rather than resetting them for an unchanged queue revision.
Retry fence implementation: The queue compares the prior retry-policy epoch and immutable review-input fingerprint before preserving or resetting a retry budget; fresh admissions record the active epoch.
Focused coverage: Current-head tests cover older same-second issue events, unchanged parked-source preservation, source drift, and retry-policy epoch recovery.
Findings None None.
Security None None.

How this fits together

ClawSweeper’s exact-review queue receives GitHub events and dispatches bounded review jobs. It persists retry state and recovery metadata so transient failures can be retried without stale source events resetting exhausted work.

flowchart LR
  A[GitHub item event] --> B[Webhook or dispatcher]
  B --> C[Source identity claim]
  C --> D[Exact-review queue]
  D --> E{Retry identity changed?}
  E -->|No| F[Keep parked budget]
  E -->|Yes| G[Grant fresh bounded retry]
  D --> H[Review workflow dispatch]
Loading

Before merge

  • Resolve merge risk (P1) - This 28-file change alters queue recovery and workflow-dispatch contracts; its controlled proof does not exercise deployed workerd or live GitHub delivery, so queue failure telemetry should be watched after deployment.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Changed surface 28 files; +2,555/-184 lines The retry fence spans queue, ingress, operator, workflow, documentation, and test contracts.
Production versus test delta production/docs/workflows +1,045/-165; tests +1,510/-19 The broad operational change is accompanied by more focused test coverage than implementation growth.

Merge-risk options

Maintainer options:

  1. Merge with production observation (recommended)
    The exact-head proof covers the intended queue transitions; observe exact-review failure and parked-item telemetry after deployment because the harness does not contact deployed workerd or GitHub.
  2. Pause for deployed-path evidence
    Hold the change if maintainers require a staged GitHub-webhook and deployed-Worker trace beyond the controlled local queue harness.

Technical review

Best possible solution:

Land the source-identity fence with its bounded operator escape hatch, then observe exact-review recovery telemetry during the deployed rollout.

Do we have a high-confidence way to reproduce the issue?

Yes—source provides a high-confidence exhausted parked-review scenario, and the current-head proof runner exercises the production queue boundary for unchanged, changed-head, and policy-epoch recovery cases.

Is this the best way to solve the issue?

Yes—the patch extends the existing queue with immutable input fencing rather than adding a parallel recovery path, while retaining a bounded operator override for deliberate resets.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 71e1290f7903.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The supplied exact-head terminal trace corresponds to the checked-in runner, which uses the production ExactReviewQueue through its Request/Response boundary with an SQLite-backed local Durable Storage harness; it observes unchanged exhausted input remain parked and changed-head and retry-policy inputs receive a fresh budget. It does not exercise deployed workerd or live GitHub.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The supplied exact-head terminal trace corresponds to the checked-in runner, which uses the production ExactReviewQueue through its Request/Response boundary with an SQLite-backed local Durable Storage harness; it observes unchanged exhausted input remain parked and changed-head and retry-policy inputs receive a fresh budget. It does not exercise deployed workerd or live GitHub.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded exact-review recovery correction with operational impact but no evidence of an urgent user-facing outage.
  • merge-risk: 🚨 automation: Merging changes durable queue retries, GitHub dispatch payloads, and the signed reconciliation workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The supplied exact-head terminal trace corresponds to the checked-in runner, which uses the production ExactReviewQueue through its Request/Response boundary with an SQLite-backed local Durable Storage harness; it observes unchanged exhausted input remain parked and changed-head and retry-policy inputs receive a fresh budget. It does not exercise deployed workerd or live GitHub.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied exact-head terminal trace corresponds to the checked-in runner, which uses the production ExactReviewQueue through its Request/Response boundary with an SQLite-backed local Durable Storage harness; it observes unchanged exhausted input remain parked and changed-head and retry-policy inputs receive a fresh budget. It does not exercise deployed workerd or live GitHub.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Martin Cleary: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (1 earlier review cycle)
  • reviewed 2026-09-03T11:08:01.268Z sha da07453 :: needs real behavior proof before merge. :: [P2] Keep proof output in the approved artifact area

Keep exhausted review budgets bound to the review input, allow explicit policy and operator resets, and carry source identity through every recovery path.

Worked on by:
- @brokemac79

Co-authored-by: brokemac79 <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/review-retry-fencing branch from da07453 to 812cf2d Compare September 3, 2026 12:34
@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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. labels Sep 3, 2026
@roboclaw-bot
roboclaw-bot merged commit 674841b into main Sep 3, 2026
23 of 28 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/review-retry-fencing branch September 3, 2026 12:46
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: 🐚 platinum hermit Good normal PR readiness with ordinary 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