Skip to content

fix(ci): publish review-coverage inventory on audit dispatches - #944

Merged
steipete merged 1 commit into
mainfrom
fix/coverage-inventory-dispatch
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/coverage-inventory-dispatch

Conversation

@steipete

Copy link
Copy Markdown
Contributor

/api/review-coverage reports inventory_status=missing and falls back to the record-only denominator (1,865 records / 75%) instead of the true live-item basis (~5,915), because the inventory publication step is gated on the exact cron string '37 */6 * * *' — operator dispatches of the audit lane skip it, so after a deploy the corrected metric from #943 stays blind for up to six hours. Extends the condition to workflow_dispatch runs with audit_dashboard=true. Workflow tests 80/80, autoreview clean.

@steipete
steipete requested a review from a team as a code owner July 29, 2026 18:15
@clawsweeper clawsweeper Bot added 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. 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. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 2:20 PM ET / 18:20 UTC.

ClawSweeper review

What this changes

The PR changes the sweep workflow so a manually dispatched audit with audit_dashboard=true also publishes the live review-coverage inventory that scheduled audit runs publish.

Merge readiness

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

Keep this PR open for normal review. The one-file workflow change is a narrow, source-consistent fix for the post-deploy audit-dispatch gap, but the PR currently offers only test claims rather than after-fix evidence from a real workflow_dispatch audit run. No discrete correctness defect is evident in the proposed condition.

Priority: P2
Reviewed head: 905402e01e9280ca7834f87860f62a61d36a4583

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is focused and appears correct, but real behavior proof for the changed workflow path is still missing.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR body reports workflow tests and autoreview but does not show an after-fix real manual audit dispatch; add redacted run output, logs, terminal output, or a linked artifact that demonstrates the inventory publication and updated coverage result. Please redact private endpoints, IP addresses, tokens, and other sensitive data; after updating the PR body, a fresh review should run automatically, or a maintainer can comment @clawsweeper re-review. 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 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports workflow tests and autoreview but does not show an after-fix real manual audit dispatch; add redacted run output, logs, terminal output, or a linked artifact that demonstrates the inventory publication and updated coverage result. Please redact private endpoints, IP addresses, tokens, and other sensitive data; after updating the PR body, a fresh review should run automatically, or a maintainer can comment @clawsweeper re-review. 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 5 items Current workflow gate: Current main gates the coverage-summary step on the exact six-hour schedule string, so an otherwise valid manual audit dispatch does not enter this publication path.
Narrow proposed condition: The PR changes only the summary-step condition: it preserves the scheduled trigger and adds workflow_dispatch when the existing audit_dashboard input is true.
Merged feature provenance: The related merged PR #943 introduced the signed live GitHub inventory and explains that the coverage endpoint needs it for its true live-item denominator; this PR addresses its operator-dispatch rollout gap.
Findings None None.
Security None None.

How this fits together

The sweep workflow receives scheduled and operator-dispatched audit requests, then gathers review coverage data and publishes the signed live-item inventory used by the Worker-backed coverage endpoint. That inventory lets the dashboard measure reviewed items against the full eligible GitHub fleet rather than only canonical records already stored by ClawSweeper.

flowchart LR
  A[Scheduled audit] --> C[Audit workflow]
  B[Operator audit dispatch] --> C
  C --> D[Coverage summary decision]
  D --> E[Signed live-item inventory]
  E --> F[Worker coverage endpoint]
  F --> G[Review coverage dashboard]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports workflow tests and autoreview but does not show an after-fix real manual audit dispatch; add redacted run output, logs, terminal output, or a linked artifact that demonstrates the inventory publication and updated coverage result. Please redact private endpoints, IP addresses, tokens, and other sensitive data; after updating the PR body, a fresh review should run automatically, or a maintainer can comment @clawsweeper re-review. 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.
  • Resolve merge risk (P1) - Merging changes when the audit summary writes or publishes inventory; without an after-fix manual dispatch run, reviewers cannot confirm that the operator path succeeds with the intended audit scope and updated coverage result.
  • Complete next step (P2) - Require contributor-supplied real dispatch proof before merge; there is no discrete file-level repair for an automated worker to make.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Workflow surface 1 workflow file; 5 added, 1 removed The change is narrowly limited to one trigger condition, so a single live dispatch proof can directly validate the intended behavior.

Merge-risk options

Maintainer options:

  1. Prove the dispatch path before merge (recommended)
    Run a manual audit with audit_dashboard=true on the PR head and add redacted output showing the summary publishes the live inventory and the coverage response no longer reports it missing.

Technical review

Best possible solution:

Keep the existing scheduled behavior, add the manual-audit condition as proposed, and attach redacted evidence from a real workflow_dispatch audit showing the coverage summary publishes a non-missing live inventory.

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

Yes, in source: a manual audit dispatch with audit_dashboard=true reaches the audit lane, while the current summary condition accepts only the exact scheduled cron value. I did not run a live workflow dispatch during this read-only review.

Is this the best way to solve the issue?

Yes. Reusing the established audit-dashboard input and retaining the existing scheduled condition is the narrowest maintainable fix; the remaining requirement is direct evidence that the dispatch path publishes the intended inventory.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This corrects an operational coverage-metric delay with bounded dashboard and maintenance impact rather than a user-facing runtime outage.
  • add merge-risk: 🚨 automation: The PR changes when a GitHub Actions publication step runs, so an incorrect condition could alter audit automation behavior outside normal scheduled runs.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • 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 body reports workflow tests and autoreview but does not show an after-fix real manual audit dispatch; add redacted run output, logs, terminal output, or a linked artifact that demonstrates the inventory publication and updated coverage result. Please redact private endpoints, IP addresses, tokens, and other sensitive data; after updating the PR body, a fresh review should run automatically, or a maintainer can comment @clawsweeper re-review. 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:

  • P2: This corrects an operational coverage-metric delay with bounded dashboard and maintenance impact rather than a user-facing runtime outage.
  • merge-risk: 🚨 automation: The PR changes when a GitHub Actions publication step runs, so an incorrect condition could alter audit automation behavior outside normal scheduled runs.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports workflow tests and autoreview but does not show an after-fix real manual audit dispatch; add redacted run output, logs, terminal output, or a linked artifact that demonstrates the inventory publication and updated coverage result. Please redact private endpoints, IP addresses, tokens, and other sensitive data; after updating the PR body, a fresh review should run automatically, or a maintainer can comment @clawsweeper re-review. 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:

  • Current workflow gate: Current main gates the coverage-summary step on the exact six-hour schedule string, so an otherwise valid manual audit dispatch does not enter this publication path. (.github/workflows/sweep.yml:2526, 970af34736a6)
  • Narrow proposed condition: The PR changes only the summary-step condition: it preserves the scheduled trigger and adds workflow_dispatch when the existing audit_dashboard input is true. (.github/workflows/sweep.yml:2530, 905402e01e92)
  • Merged feature provenance: The related merged PR fix: harden scaled review scheduling #943 introduced the signed live GitHub inventory and explains that the coverage endpoint needs it for its true live-item denominator; this PR addresses its operator-dispatch rollout gap. (.github/workflows/sweep.yml:2526, 970af34736a6)
  • Repository policy applied: The repository AGENTS.md requires conservative workflow review, focused validation, and real-behavior proof for code-bearing changes; this workflow-only PR has no shown after-fix dispatch evidence. (AGENTS.md:1, 970af34736a6)
  • Validation and proof state: The PR body reports workflow tests and autoreview, and several checks are successful, but it contains no linked run, redacted log, terminal output, recording, or artifact showing that an actual manual audit dispatch publishes the corrected inventory. (905402e01e92)

Likely related people:

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add redacted evidence from a successful workflow_dispatch audit with audit_dashboard=true that shows the coverage-inventory publication path ran.
  • Include the resulting coverage response or summary output showing the live inventory is no longer reported as missing.

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
steipete merged commit 76d0993 into main Jul 29, 2026
18 checks passed
@steipete
steipete deleted the fix/coverage-inventory-dispatch branch July 29, 2026 18:22
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
…penclaw#944)

Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
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. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant