Skip to content

fix: stabilize workflow status publishing - #278

Merged
momothemage merged 2 commits into
mainfrom
codex/stabilize-clawsweeper-workflows
Jun 11, 2026
Merged

momothemage merged 2 commits into
mainfrom
codex/stabilize-clawsweeper-workflows

Conversation

@momothemage

Copy link
Copy Markdown
Contributor

Summary

  • route spam-comment intake through a dedicated repository_dispatch event instead of subscribing it to every github_activity run
  • let exact-item review comment sync publish before any Codex setup needed only for immediate safe-close apply work
  • prune stale bare command-router ack comments when shared automerge status comments are updated

Root Cause

  • GitHub creates workflow runs before job-level if conditions are evaluated, so spam-comment-intake subscribing to broad github_activity events still queued/skipped a run for unrelated activity.
  • Exact-item publish/comment sync did not need Codex, but Codex setup ran before comment sync; a setup/auth/model failure could strand completed review artifacts before they reached the target PR.
  • Shared automerge status updates reused the durable automerge status comment, while fresh per-command ack comments could remain behind forever saying the router would update them later.

Validation

  • pnpm run build:repair
  • pnpm exec oxlint src/repair/comment-router.ts test/clawsweeper.test.ts --deny-warnings --report-unused-disable-directives -D correctness
  • node --test test/repair/spam-comment-intake.test.ts test/repair/notify-github-activity.test.ts
  • pnpm run build
  • node --test test/clawsweeper.test.ts
  • pnpm run test:repair

Notes

This is aimed at the infrastructure symptoms seen on ClawHub PRs where command-router acks or review status publication became inconsistent. It reduces storm amplification and makes terminal status publication more reliable, but it does not attempt to resolve target-repository merge conflicts, Vercel authorization failures, or genuine Codex review execution failures.

@momothemage
momothemage requested a review from a team as a code owner June 11, 2026 08:07
@clawsweeper

clawsweeper Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed June 11, 2026, 4:33 AM ET / 08:33 UTC.

Summary
Review failed before ClawSweeper could summarize the requested change.

Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path.

Review metrics: none identified.

Merge readiness
Overall: 🌊 off-meta tidepool
Proof: 🌊 off-meta tidepool
Patch quality: 🌊 off-meta tidepool
Result: rating does not apply to this item.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Risk before merge

  • [P1] No close action taken because the review did not complete.

Maintainer options:

  1. Decide the mitigation before merge
    Retry the Codex review after fixing the execution failure.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] Review did not complete, so no work-lane recommendation was made.
Review details

Best possible solution:

Retry the Codex review after fixing the execution failure.

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

Unclear. The review failed before ClawSweeper could establish a reproduction path.

Is this the best way to solve the issue?

Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction.

AGENTS.md: unclear because the file could not be read completely.

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

Label changes

Label justifications:

  • rating: 🌊 off-meta tidepool: Overall readiness is 🌊 off-meta tidepool; proof is 🌊 off-meta tidepool and patch quality is 🌊 off-meta tidepool.
Evidence reviewed

What I checked:

  • failure reason: codex execution failed.
  • codex failure detail: Codex review failed for this PR with exit 1.
  • codex stdout: Per-item Codex failure; continuing with the rest of the shard.

Likely related people:

  • unknown: Codex failed before it could trace repository history. (role: review did not complete; confidence: low)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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

@clawsweeper clawsweeper Bot added the rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. label Jun 11, 2026
@momothemage

Copy link
Copy Markdown
Contributor Author

Updated with a focused diagnostics fix for the prior Codex execution failure path.

Real behavior proof:

  • Reproduced a failing Codex subprocess locally with a fake codex executable that exits 1 without writing a decision, while emitting stdout/stderr containing a GitHub token-shaped value and an OpenAI key-shaped value.
  • Verified runCodex now preserves exit status plus separate stderr/stdout tails, and redacts token/key-shaped secrets before those fields can appear in review evidence.
  • Verified codexFailureDecision now publishes separate codex stderr and codex stdout evidence and classifies 429/TPM rate-limit text as a retryable Codex transport failure.

Local checks run:

  • pnpm exec oxfmt --write src/clawsweeper.ts test/clawsweeper.test.ts
  • pnpm exec oxlint src/clawsweeper.ts test/clawsweeper.test.ts --deny-warnings --report-unused-disable-directives -D correctness
  • pnpm run build
  • node --test test/clawsweeper.test.ts (375/375 passing)

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@momothemage
momothemage merged commit 429a73b into main Jun 11, 2026
7 checks passed
@momothemage
momothemage deleted the codex/stabilize-clawsweeper-workflows branch June 11, 2026 08:39
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
* fix: stabilize clawsweeper workflow status publishing

* Preserve Codex failure diagnostics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant