Skip to content

ci(security-review): reconcile ci-gate statuses when CI completion delivery is lost - #155392

Merged
steipete merged 4 commits into
mainfrom
steipete/loving-mendel-542785
Sep 27, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/loving-mendel-542785

Conversation

@steipete

@steipete steipete commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The required openclaw/ci-gate commit status is published by the Security Review workflow. It goes pending on pull_request_target and is expected to flip when the workflow_run (CI completed) event arrives. GitHub does not guarantee that delivery. When it is dropped, the status stays stale and the PR cannot reliably reflect its completed CI until another Security Review event arrives.

Since #156293, PR title and body edits no longer rerun the guard, so the accidental recovery that unstuck #155085 is gone. A lost delivery now requires a new push, an approval-command comment, or a manual rerun. This PR restores automatic recovery with a small scheduled reconciler inside security-review.yml, reusing the existing run-to-PR resolver and enforcement job.

Every ten minutes, the resolver lists completed pull-request CI runs in a contiguous window and schedules normal Security Review for current PR heads whose gate is missing, older than CI completion, or pending. The existing enforcement script still verifies CI and applicable security approvals before publishing the final status.

Evidence

Observed on #155085 on September 21, 2026 (head 7ff70a1cc297): CI run 35637803422 completed successfully at 18:35:31Z, but no Security Review completion event ran afterward. The required commit status stayed pending until a PR body edit at 19:13:59Z triggered review and recovery. That edit path no longer triggers the guard on main.

A September 26 census of 166 PR heads whose CI finished one to eight hours earlier found no currently stuck gate. Over six hours, 766 CI completions produced 792 Security Review completion runs; delivery loss is rare. Completed PR CI runtime over one day was p50 13 minutes, p99 57 minutes, and maximum 119 minutes, supporting the three-hour creation margin.

Design notes

  • Reconciliation runs only on schedule, from default-branch workflow code. Manual Security Review dispatch is removed because a branch-selected dispatch could execute branch workflow code with status-write permission. The event script rejects it before any API request. Existing automatic events, CI release-gate completion handling, and resolve.if are unchanged.
  • The completion window starts five minutes before the previous successful scheduled pass started and ends five minutes ago, with a sixty-minute fallback and twelve-hour cap. After an outage longer than twelve hours, older lost completions need a new push or a Security Review rerun.
  • Listing uses inclusive creation ranges from three hours before the window through now. A range reporting more than GitHub's 1,000-result limit is bisected at whole-second boundaries. An overfull range shorter than ten minutes fails closed. Each leaf is read until a short page; ten full pages or fewer distinct run IDs than its first-page total fail before status publication and matrix output. This also covers growth during paging without trusting a stale page count. Run IDs are deduplicated across slices.
  • Status history is read newest first from /commits/{sha}/statuses, paging until the newest case-insensitive openclaw/ci-gate entry from github-actions[bot] with creator type Bot is found. Other publishers are ignored entirely. This uses the same publisher identity trusted by unchanged readSecurityReviewHistory.
  • A head is settled only when that Actions-owned status is non-pending and was created at or after CI completion. Missing, older, and every pending status remain eligible, including waits published after a pre-completion CI read. The shared guard and enforcement scripts remain identical to pinned main f6974fb3550f.
  • Each pass selects at most 100 PR heads in ascending CI-completion order, then run ID, and stops reading statuses at the cap. It publishes pending statuses only for those selected entries. If candidates remain, truncated=true causes the permissionless reconcile-backlog job to fail after the review jobs finish. That preserves the successful-window anchor; fresh statuses on reviewed heads let the next scheduled pass select the remainder. An untruncated pass emits truncated=false.
  • Reruns retain their original creation time. A rerun created more than three hours before the window depends on its completion delivery; if that is lost, a new push or Security Review rerun recovers it. The documented limitation avoids scanning roughly a day of runs every ten minutes for a doubly rare case.
  • Scheduled resolvers retain one non-canceling concurrency group and existing per-head review serialization. Cost is one hosted resolver, run-list and status-history reads, at most 100 review entries, and a small backlog job only on truncation. There are no Blacksmith registrations or PR-code checkouts.

Review responses

  • Round 4 — verify the gate publisher: fixed by using reverse-chronological status history and selecting only the newest Actions-owned gate entry. Regressions cover newer foreign successes ahead of pending/older Actions results, a newer Actions success, and the trusted status on page two.
  • Round 4 — account for the listing total: fixed by reading through the short page and validating distinct run IDs against the initial total. A 201 total with 100/100/0 now fails before any POST or matrix output. A listing growing from 150 to 100/100/5 succeeds; ten full pages fail closed.
  • Round 4 — bound the review matrix: fixed with the 100-entry cap, oldest-completion-first selection, no status read for candidate 101, and the failing backlog job retaining the anchor after selected reviews finish. Tests cover 99, 100, and 101 candidates and the workflow's output/dependency/failure contract.
  • Previous rounds: manual dispatch remains removed; stale rerun results and pending-read races remain eligible; creation-range slicing handles the API result cap; the twelve-hour outage limit and older-rerun recovery remain documented.
  • Production-path proof: GitHub schedules run only from the default branch. The first scheduled passes after merge are the production proof and will be verified. The real-API, read-only entry-point run below is the pre-merge transport proof. Synthetic entry-point tests cover foreign-status rejection, publication, incomplete-list failure, and backlog truncation. No production stale state or status writes were created for proof.
  • SecOps: unchanged: the author is an active openclaw-secops member and team maintainer, and the SecOps maintainer directs this landing under the team ruleset exemption. This work order stops after push, CI, and re-review; no merge or admin bypass is authorized.

Proof

All focused test commands use pnpm test <file> --maxWorkers=1:

Suite Result Local command wall Local test time CI test time
test/scripts/security-review-event.test.ts 96 passed 51.96 s 38.640 s 3.882 s
test/scripts/security-review-workflow.test.ts 41 passed 10.66 s 3.184 s 0.548 s
test/scripts/security-review-script.test.ts 147 passed 72.36 s 64.689 s 12.711 s

The twelve selected round-4 regression cases failed against the previous implementation (8.40 s wall), then passed after the repair. No new test files or production test hooks were added. Existing subprocess fixtures preserve the real CLI's environment/event routing, API requests, status publication, and matrix output; those contracts explain the event suite's local cost above thirty seconds. The unchanged enforcement suite retains its existing coverage and cost.

Actionlint, the configured zizmor hook, pnpm check:workflows, scoped oxlint, oxfmt, and git diff --check passed. The backlog job's permissions: {} passed workflow validation. resolve.if and the prohibited files remain unchanged. The diff against f6974fb3550f for guard-shared.mjs and security-review.mjs is empty.

Live read-only proof, September 27, 2026, 19:44:52–19:45:32 UTC:

Entry point: node --import <temporary-preload> scripts/github/security-review-event.mjs
Repository: openclaw/openclaw; event: schedule; run ID: 0
GET requests: 84, all HTTP 200, passed unchanged to real fetch
Previous successful schedule list: 1 page, 0 runs; 60-minute fallback used
CI listing: 4 pages, 1 creation range, reported total 385, 385 runs read
Completed heads considered: 71
Current heads selected: 0 (missing: 0; stale-older: 0; pending: 0)
Intercepted status POSTs: 0, equal to selected PR count
Matrix: {"include":[]}
Outputs: has-prs=false; truncated=false
Manual dispatch: exit 1; requests 0; intercepted writes 0
Error: Security review requires an automatic pull request or CI event.

The temporary preload passes every GET's arguments and response unchanged to real fetch and intercepts every non-GET without sending it. Its trace records only method, path with twelve-character SHA prefixes, and HTTP status; summary counters record selection. No current PR was selected, so no selected-head stale-state verification was needed. This proves live listing and Actions-owned status-history transport, not an observed production recovery publication. Recursive splitting and capped backlog behavior are covered by the entry-point regressions.

Autoreview (Codex engine, local candidate against f6974fb3550f, maximum priority P2) returned scoped-clean, with no accepted/actionable P0–P2 findings. The line-cap ratchet also passed.

Round-4 head: ca8bf2172c33, one new commit on top of ee1928aab9bc; no amend or rebase. Exact-head results are recorded below. No merge or auto-merge is authorized.

Round-4 CI and ClawSweeper result

CI run 36346309604 completed success on head ca8bf2172c33: 63 jobs completed, no failures or pending jobs. The native openclaw/ci-gate check run 108698444620 succeeded at 20:12:44 UTC, and the Actions-owned openclaw/ci-gate commit status 55037636894 succeeded at 20:13:25 UTC with “CI and applicable security review requirements passed” (Security Review run 36347188949). No manual CI reruns were needed. The prior head's transient core test-type failures did not recur.

The event and workflow suites passed in checks-node-compact-small-1 (job 108696894650); enforcement passed in checks-node-compact-small-2 (job 108696894654). Their measured CI times are in the table above.

ClawSweeper automatically started the exact-head review at 20:05:15 UTC and reviewed at 20:09:17 UTC; its published review was updated at 20:10:30 UTC. It reports Findings: None for code and says the prior findings appear resolved, but its overall verdict remains needs-human / blocked, with five checklist items covering two remaining themes:

  • Unproven authority at the gate-status effect: the real read-only run selected zero heads and made no status POST. ClawSweeper requests real-transport final-effect evidence for allowed recovery and foreign-publisher or stale-authority rejection.
  • Recorded independent SecOps review: ClawSweeper states that the PR body's team-direction statement does not itself establish independent code-owner review.

These requests are reported without another fix or proof round. The coordinator's production-proof and team-exemption decisions remain recorded above. No manual re-review comment was needed. The PR remains open and unmerged, with auto-merge disabled.

@steipete
steipete requested a review from a team as a code owner September 22, 2026 03:21
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 22, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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. labels Sep 22, 2026
@clawsweeper

clawsweeper Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 27, 2026, 4:26 PM ET / 20:26 UTC (Revision 10).

ClawSweeper review

What this changes

Adds a ten-minute Security Review pass that finds completed CI runs with missing, stale, or pending gate statuses, schedules the existing review, and documents and tests that recovery.

Merge readiness

⛔ Blocked before merge - 8 items remain

Current main has no scheduled recovery for lost CI-completion delivery, so this PR remains useful. The new scheduled path can publish a pending gate status after its selected PR closes or moves; final-effect proof and independent SecOps review also remain outstanding.

Priority: P2
Reviewed head: ca8bf2172c3317537d5b9deeaa7dcfd805a2fa6f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The bounded implementation and regressions are useful, but a stale-authority status race and missing final-effect proof limit merge confidence.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: The real GitHub read-only trace exercised scheduled listing but selected zero heads and made zero status POSTs; synthetic entry-point tests cover writes and foreign statuses. Provide a redacted real-transport trace of eligible recovery and rejection for a foreign publisher and a closed or reassigned PR before the final write. Remove credentials, IP addresses, phone numbers, and private endpoints; updating the PR body should trigger re-review, or a maintainer can comment @clawsweeper re-review if it does not. No stored-data contract changes. 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 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: The real GitHub read-only trace exercised scheduled listing but selected zero heads and made zero status POSTs; synthetic entry-point tests cover writes and foreign statuses. Provide a redacted real-transport trace of eligible recovery and rejection for a foreign publisher and a closed or reassigned PR before the final write. Remove credentials, IP addresses, phone numbers, and private endpoints; updating the PR body should trigger re-review, or a maintainer can comment @clawsweeper re-review if it does not. No stored-data contract changes. 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 9 items Current-main gap: The fetched main resolver accepts CI-completion events but has no scheduled reconciliation path.
Introduced scheduled selection: The scheduled resolver verifies a PR while selecting it, then retains its number and head for later publication without another live PR check.
Final pending effect: After selection, the resolver publishes pending statuses for its saved entries; the shared publisher's pending path posts directly to the commit without checking whether that PR still owns the head.
Findings 1 actionable finding [P2] Revalidate a scheduled PR before publishing its pending status
Security Needs attention Stale PR authority can reach a required status write: The new schedule can write a gate status after its selected PR closes or changes head; a shared commit lets that stale effect cross into another PR's required gate.

How this fits together

Security Review turns PR events and CI results into a required commit status. Its resolver selects PR heads, and the review job checks CI and security approvals before publishing the final gate result.

flowchart LR
  A[Completed CI runs] --> C[Scheduled resolver]
  B[PR heads and status history] --> C
  C --> D{Review needed?}
  D -->|Yes| E[Security review job]
  E --> F[Required commit status]
  D -->|No| G[Keep settled status]
Loading

Decision needed

Question Recommendation
After the stale-head write is repaired and final-effect evidence is recorded, does an independent SecOps code owner approve adding this scheduled status-writing path? Approve verified recovery: Review the repaired status authority path and approve it if the final-effect evidence covers eligible and forbidden cases.

Why: The protected workflow requires independent code-owner judgment; the PR body's account of team direction is not a recorded approval.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: The real GitHub read-only trace exercised scheduled listing but selected zero heads and made zero status POSTs; synthetic entry-point tests cover writes and foreign statuses. Provide a redacted real-transport trace of eligible recovery and rejection for a foreign publisher and a closed or reassigned PR before the final write. Remove credentials, IP addresses, phone numbers, and private endpoints; updating the PR body should trigger re-review, or a maintainer can comment @clawsweeper re-review if it does not. No stored-data contract changes. 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.
  • Revalidate a scheduled PR before publishing its pending status (P2) - The new scheduled path saves a PR number and head here, then later posts pending without another PR read. If the PR closes or moves meanwhile, a close-event refresh may settle another PR on the same commit before this stale pass overwrites its gate with pending. Check the live PR identity immediately before the POST. This is a late discovery on the unchanged previously reviewed head.
  • Resolve security concern: Stale PR authority can reach a required status write - The new schedule can write a gate status after its selected PR closes or changes head; a shared commit lets that stale effect cross into another PR's required gate.
  • Resolve merge risk (P1) - A scheduled pass can publish pending for a PR that closed or moved after selection, potentially leaving another PR sharing that commit with a stale required status.
  • Resolve merge risk (P1) - The available real-API trace selected no head, so allowed recovery and rejection of stale or foreign authority remain unobserved at the final status effect.
  • Resolve merge risk (P1) - No independent SecOps code-owner approval is recorded for the changed protected workflow and resolver.
  • Complete next step (P2) - Revalidate each scheduled PR immediately before publishing pending, provide allowed and forbidden real-transport final-effect proof, and obtain independent SecOps code-owner approval.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P2] Revalidate a scheduled PR before publishing its pending status — scripts/github/security-review-event.mjs:221-233
  • [medium] Stale PR authority can reach a required status write — scripts/github/security-review-event.mjs:221
Agent review details

Security

Needs attention: The scheduled resolver adds no third-party execution, but its pending status write can outlive the PR authority checked during selection.

PR surface

Tests +550, Docs +91, Config +22, Other +187. Total +850 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 560 10 +550
Docs 2 93 2 +91
Config 1 23 1 +22
Generated 0 0 0 0
Other 1 227 40 +187
Total 6 903 53 +850

Review metrics

Metric Value Why it matters
Production and test delta production +250/−41 lines; tests +560/−10 lines The production growth implements bounded recovery, while the larger test addition exercises event routing, status selection, and failure cases.

Merge-risk options

Maintainer options:

  1. Repair and prove the status boundary (recommended)
    Recheck each selected PR before its pending write, then record real-transport allowed and nearest-forbidden final effects and obtain independent SecOps review.
  2. Pause scheduled recovery
    Leave this PR open without enabling the scheduled writer while its authority and code-owner requirements remain unresolved.

Technical review

Best possible solution:

Keep reconciliation in the existing Security Review owner, revalidate each selected PR immediately before its status write, and land only with final-effect evidence and independent SecOps approval.

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

No deterministic current-main reproduction of a dropped GitHub event is available. The documented stale gate on #155085 and current main's event-only resolver establish the failure path.

Is this the best way to solve the issue?

The existing Security Review owner is the right place for recovery. The proposed path needs a live-PR check immediately before each new status write.

Full review comments:

  • [P2] Revalidate a scheduled PR before publishing its pending status — scripts/github/security-review-event.mjs:221-233
    The new scheduled path saves a PR number and head here, then later posts pending without another PR read. If the PR closes or moves meanwhile, a close-event refresh may settle another PR on the same commit before this stale pass overwrites its gate with pending. Check the live PR identity immediately before the POST. This is a late discovery on the unchanged previously reviewed head.
    Confidence: 0.88
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a rare but real maintainer CI-gate stall with limited user-facing blast radius.
  • merge-risk: 🚨 automation: The new scheduled writer can leave a required gate pending after a PR changes state.
  • merge-risk: 🚨 security-boundary: A status-writing job can use a previously selected PR identity without rechecking live authority at the write.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: The real GitHub read-only trace exercised scheduled listing but selected zero heads and made zero status POSTs; synthetic entry-point tests cover writes and foreign statuses. Provide a redacted real-transport trace of eligible recovery and rejection for a foreign publisher and a closed or reassigned PR before the final write. Remove credentials, IP addresses, phone numbers, and private endpoints; updating the PR body should trigger re-review, or a maintainer can comment @clawsweeper re-review if it does not. No stored-data contract changes. 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

Security concerns:

  • [medium] Stale PR authority can reach a required status write — scripts/github/security-review-event.mjs:221
    The new schedule can write a gate status after its selected PR closes or changes head; a shared commit lets that stale effect cross into another PR's required gate.
    Confidence: 0.88

What I checked:

Likely related people:

  • joshavant: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Revalidate the selected PR and head immediately before the scheduled pending status write.
  • Add final-effect proof for an eligible stale head and the nearest unauthorized status writer; show that closing or reassigning the PR prevents the stale write.
  • Obtain recorded independent SecOps code-owner review.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-27T05:14:43.188Z sha 4dc0a04 :: blocked before merge. :: [P2] Retry heads left with only a provisional resolver status | [P2] Do not advance the window after an incomplete run listing
  • reviewed 2026-09-27T05:27:46.254Z sha 4dc0a04 :: blocked before merge. :: [P2] Retry resolver-only pending statuses until review handoff | [P2] Keep the window open when run listing is incomplete
  • reviewed 2026-09-27T05:41:56.053Z sha 4dc0a04 :: blocked before merge. :: [P2] Retry provisional statuses until review handoff | [P2] Keep the window open when run listing is incomplete
  • reviewed 2026-09-27T07:01:48.387Z sha 86aac00 :: needs real behavior proof before merge. :: [P1] Restrict manual dispatch to trusted default-branch code | [P2] Retry settled statuses from an earlier CI attempt | [P2] Retry waits published from a pre-completion CI read
  • reviewed 2026-09-27T07:20:59.990Z sha 86aac00 :: needs real behavior proof before merge. :: [P1] Restrict manual dispatch to protected workflow code | [P2] Retry settled statuses from an earlier CI attempt | [P2] Retry waits published after a pre-completion CI read
  • reviewed 2026-09-27T19:16:28.660Z sha ee1928a :: needs real behavior proof before merge. :: [P2] Verify the gate publisher before treating a status as settled | [P2] Reject run listings that do not account for the reported total | [P2] Bound selected heads before publishing the review matrix
  • reviewed 2026-09-27T19:31:38.450Z sha ee1928a :: needs real behavior proof before merge. :: [P2] Verify the gate publisher before accepting a settled status | [P2] Reject incomplete CI run listings | [P2] Bound selected heads before publishing the review matrix
  • reviewed 2026-09-27T20:09:17.786Z sha ca8bf21 :: needs real behavior proof before merge. :: none

…livery is lost

Recover lost CI completion deliveries through scheduled and manual trusted reconciliation. Overlap completion windows with the five-minute grace period, use a three-hour creation margin and ten-page warning ceiling, and serialize reconciliation resolvers. Paginate combined statuses before treating a ci-gate context as missing. Preserve main's event filters, checkout recovery, and status loop breaker.
@steipete
steipete force-pushed the steipete/loving-mendel-542785 branch from ff465bd to 4dc0a04 Compare September 27, 2026 05:05
…s and provisional statuses

Fail scheduled reconciliation before publishing when the CI listing hits its page ceiling, preserving the last successful window for retries. Keep provisional pending heads eligible until review publishes a settled result or its exact wait status, with CLI regressions and reconciler documentation.
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 27, 2026
…hout manual dispatch

Restrict reconciliation to scheduled events and retry missing, older, or pending gate statuses after CI completion. Slice the twelve-hour recovery window by creation range to stay below GitHub search limits, failing closed on overfull small slices. Document recovery for older reruns and prolonged outages, with entry-point regressions and live read-only API proof.
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Sep 27, 2026
…nciliation passes

Use the newest Actions-owned gate status and reject incomplete or capped CI listings before publishing review work. Select at most 100 oldest PR heads per pass and fail truncated workflows after review so scheduled reconciliation retains its anchor and continues the backlog.
@steipete
steipete merged commit 9726512 into main Sep 27, 2026
112 checks passed
@steipete
steipete deleted the steipete/loving-mendel-542785 branch September 27, 2026 21:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
…livery is lost (openclaw#155392)

Lost CI-completion deliveries can leave the required ci-gate status pending after CI finishes. Add scheduled reconciliation through the existing trusted Security Review resolver and enforcement job.

Preserve overlapping completion windows, reject incomplete listings before publication, keep provisional statuses eligible, and trust only Actions-owned gate statuses. Bound each pass to the oldest 100 heads and retain the successful window anchor while a backlog remains.

Reruns whose original creation time predates the three-hour listing margin retain the documented existing recovery path through a push or Security Review rerun.

Validation: exact-head CI passed, focused entry-point and workflow regressions passed, and live read-only GitHub transport proof completed. Production scheduled recovery remains post-merge proof.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: L 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