Skip to content

Draft: revert #849 stale publication handoff#850

Closed
brokemac79 wants to merge 1 commit into
mainfrom
codex/revert-849-superseded-handoff
Closed

Draft: revert #849 stale publication handoff#850
brokemac79 wants to merge 1 commit into
mainfrom
codex/revert-849-superseded-handoff

Conversation

@brokemac79

Copy link
Copy Markdown
Contributor

Draft rollback for #849

This is a draft-only rollback of #849, requested as a prepared fallback after #849 merged as a0143ccfd96d on 2026-07-25.

What it reverts

Restores the #836 handling in which an ok: true, deduped: true, superseded: true exact-review publication acknowledgement is visible as a failed workflow outcome rather than a successful handoff.

Current status — do not merge

Codex review found a P1 against this rollback: it can restore retry churn for a stale publication while the newer durable publication owns delivery. This branch is intentionally a draft fallback only; it requires maintainer review and evidence of a bad #849 production outcome before any merge decision.

Validation

  • pnpm run build:all
  • pnpm exec node --test --test-name-pattern "exact review publication enqueue rejects a superseded acknowledgement" test/sweep-workflow.test.ts
  • git diff --check origin/main

The reverted #836 formatting is not accepted by the current formatter check; this draft preserves the exact revert without unrelated reformatting.

References

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 Urgent regression or broken agent/channel workflow affecting real users now. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. labels Jul 25, 2026
@clawsweeper

clawsweeper Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 25, 2026, 3:08 AM ET / 07:08 UTC.

ClawSweeper review

What this changes

This draft changes the exact-review publication workflow and its contract test so a superseded queue acknowledgement fails and retries rather than completing as a terminal handoff.

Merge readiness

Blocked until real behavior proof from a real setup is added - 7 items remain

Close this PR as superseded by #849.

Priority: P1
Reviewed head: 227b65966c3032656dae6f2e2e3492bb81263b60
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The draft is explicit about being a fallback, but its tested behavior deliberately restores a P1 stale-publication retry loop and lacks real evidence that current main fails delivery.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR provides focused workflow-test and build commands, but no after-fix production or realistic queue evidence showing that current-main terminal handoff loses a verdict. Before any merge discussion, provide redacted queue and publisher logs or a reproducible live transcript that demonstrates the claimed delivery failure. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🧂 unranked krab (1/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR provides focused workflow-test and build commands, but no after-fix production or realistic queue evidence showing that current-main terminal handoff loses a verdict. Before any merge discussion, provide redacted queue and publisher logs or a reproducible live transcript that demonstrates the claimed delivery failure. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 3 items linked superseding PR: #849 (Fix stale exact-review publication retry loop) is merged at 2026-07-25T07:01:36Z.
cluster evidence: the durable review links that PR in the work cluster or recommended risk path.
no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.
Findings 1 actionable finding [P1] Keep superseded acknowledgements terminal
Security None None.

How this fits together

The sweep workflow sends completed exact-review artifacts to the durable publication queue, which either accepts, deduplicates, or supersedes an older publication. That acknowledgement controls whether the workflow finishes or retries, and ultimately whether the review verdict is delivered once by the current publisher.

flowchart LR
  A[Completed exact review artifact] --> B[Sweep publication step]
  B --> C[Durable publication queue]
  C --> D{Queue acknowledgement}
  D -->|Queued or ordinary dedupe| E[Complete workflow]
  D -->|Superseded by newer publication| F[Newer publisher owns delivery]
  B -->|Rollback behavior| G[Retry stale publication]
Loading

Decision needed

Question Recommendation
Has current-main handling from #849 produced a verified production delivery failure that outweighs the observed stale-publication retry churn? Retain the terminal handoff: Keep the current-main behavior from #849 and close this fallback if no verified delivery failure is found.

Why: The draft intentionally restores an earlier failure mode as a contingency, but the provided discussion contains no post-merge production evidence that the newer durable publication failed to deliver; choosing retry semantics is an operational policy decision.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR provides focused workflow-test and build commands, but no after-fix production or realistic queue evidence showing that current-main terminal handoff loses a verdict. Before any merge discussion, provide redacted queue and publisher logs or a reproducible live transcript that demonstrates the claimed delivery failure. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Keep superseded acknowledgements terminal (P1) - This changes the documented stale-handoff outcome back into a failed workflow step. When the queue reports superseded: true, the newer durable publication already owns delivery; retrying this stale artifact recreates the churn addressed by Fix stale exact-review publication retry loop #849. Preserve the current terminal notice path unless a real incident proves that the newer publisher does not deliver.
  • Resolve merge risk (P1) - Merging this rollback would turn a documented terminal superseded acknowledgement into failed workflow retries, recreating stale-publication churn while the newer durable publication already owns delivery.
  • Complete next step (P2) - A human must decide whether a verified production delivery failure exists before accepting a rollback that intentionally restores retry churn.
  • Improve patch quality - Provide redacted real queue and durable-publisher evidence of a missing final verdict under current-main handling.
  • Improve patch quality - If such an incident exists, replace the direct revert with a focused recovery design that keeps stale handoffs terminal.

Findings

  • [P1] Keep superseded acknowledgements terminal — .github/workflows/sweep.yml:1159-1165
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Changed surface 2 files affected: 1 workflow and 1 contract test Both edits deliberately reverse the current stale-handoff completion contract, so the behavioral change is compact but operationally significant.

Root-cause cluster

Relationship: partial_overlap
Canonical: #849
Summary: This draft changes the same superseded-publication acknowledgement path as the merged current-main resolution, but proposes the opposite retry policy without evidence of a distinct remaining defect.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Keep the terminal stale-handoff path (recommended)
    Do not merge this revert; preserve the current workflow behavior unless a real durable-publication delivery failure is demonstrated.
  2. Replace the fallback with incident-driven recovery
    If monitoring proves a delivery failure, add a narrow recovery path that verifies the newer publication outcome instead of retrying the stale handoff.

Technical review

Best possible solution:

Close this PR as superseded by #849.

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

No high-confidence reproduction of a bad current-main outcome is provided. The source clearly shows that this branch restores failure-and-retry handling for superseded acknowledgements, but no production evidence shows that the newer publisher failed to deliver.

Is this the best way to solve the issue?

No. A direct revert restores the retry behavior that #849 addressed; the safer path is to preserve terminal handoff and investigate any verified delivery gap separately.

Full review comments:

  • [P1] Keep superseded acknowledgements terminal — .github/workflows/sweep.yml:1159-1165
    This changes the documented stale-handoff outcome back into a failed workflow step. When the queue reports superseded: true, the newer durable publication already owns delivery; retrying this stale artifact recreates the churn addressed by Fix stale exact-review publication retry loop #849. Preserve the current terminal notice path unless a real incident proves that the newer publisher does not deliver.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P1: The draft restores retry churn in the exact-review publication workflow, which can disrupt real review-verdict delivery operations.
  • add merge-risk: 🚨 automation: The changed GitHub Actions control flow alters retry and completion behavior for exact-review publication handoffs.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦪 silver shellfish and patch quality is 🧂 unranked krab.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR provides focused workflow-test and build commands, but no after-fix production or realistic queue evidence showing that current-main terminal handoff loses a verdict. Before any merge discussion, provide redacted queue and publisher logs or a reproducible live transcript that demonstrates the claimed delivery failure. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P1: The draft restores retry churn in the exact-review publication workflow, which can disrupt real review-verdict delivery operations.
  • merge-risk: 🚨 automation: The changed GitHub Actions control flow alters retry and completion behavior for exact-review publication handoffs.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦪 silver shellfish and patch quality is 🧂 unranked krab.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR provides focused workflow-test and build commands, but no after-fix production or realistic queue evidence showing that current-main terminal handoff loses a verdict. Before any merge discussion, provide redacted queue and publisher logs or a reproducible live transcript that demonstrates the claimed delivery failure. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • linked superseding PR: Fix stale exact-review publication retry loop #849 (Fix stale exact-review publication retry loop) is merged at 2026-07-25T07:01:36Z.
  • cluster evidence: the durable review links that PR in the work cluster or recommended risk path.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • brokemac79: Authored the merged current-main stale-publication handoff change and the draft rollback, giving them direct context on the observed retry-loop incident and current behavior. (role: recent area contributor; confidence: high; commits: a0143ccfd96d; files: .github/workflows/sweep.yml, test/sweep-workflow.test.ts)
  • yetval: Authored the earlier merged publication-head ratchet that established the related stale-publication safety boundary. (role: related feature contributor; confidence: high; commits: c875ba748e2f; files: .github/workflows/sweep.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.

@steipete

Copy link
Copy Markdown
Contributor

Thanks @brokemac79 for preparing this contingency. This rollback would turn an explicit superseded-publication acknowledgement back into a failed workflow result, restoring the retry loop while the newer durable publication already owns delivery. There is no incident showing the merged handoff behavior is broken, so we are closing this draft. Please open a fresh revert PR if an actual production incident demonstrates that a rollback is needed.

@steipete steipete closed this Jul 25, 2026
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. P1 Urgent regression or broken agent/channel workflow affecting real users now. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants