Skip to content

fix(ci): prevent contributor-fork artifact checks from timing out - #118530

Merged
steipete merged 1 commit into
mainfrom
codex/ci-fork-artifact-timeout
Aug 3, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/ci-fork-artifact-timeout

Conversation

@steipete

@steipete steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Related: #117992

What Problem This Solves

Contributor pull requests from forks fail the required CI gate when artifact validation exceeds its 20-minute budget on lower-capacity GitHub-hosted runners.

Why This Change Was Made

Give only cross-repository pull-request build-artifacts jobs 35 minutes while preserving the existing 20-minute limit for same-repository PRs, pushes, and manual runs. Add an assertion to the existing workflow-policy guard; runners, permissions, secrets, caches, and concurrency are unchanged.

User Impact

External contributors can land otherwise healthy fixes without deterministic artifact-validation timeouts; trusted maintainer and main-branch CI behavior is unchanged.

Evidence

  • Original contributor PR fix(config): stop plugin schemas rejecting the channel key core writes #117992 exceeded the existing 20-minute artifact-job limit twice despite a successful distribution build.
  • Trusted remote Testbox: workflow guard 97/97 passed.
  • Parsed event truth table: fork PR 35; same-repository PR, push, and workflow_dispatch 20.
  • Targeted formatting/lint and independent high-depth review passed.
  • AI-assisted.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 3, 2026
@steipete
steipete marked this pull request as ready for review August 3, 2026 06:11
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 2:55 AM ET / 06:55 UTC.

ClawSweeper review

What this changes

The PR changes the required build-artifacts GitHub Actions job to allow 35 minutes for cross-repository pull requests while retaining the existing 20-minute limit for same-repository pull requests, pushes, and manual runs.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 3 items remain

The fork-only timeout expression is a focused, technically correct repair and the workflow guard pins the intended policy. This PR remains open because it carries the protected maintainer label and does not yet include an observed after-fix contributor-fork run; the recorded CI-policy decision explains the exception but does not itself demonstrate the changed runtime branch.

Priority: P2
Reviewed head: 966966649f95b366cfad5029a3438b3cfa2cd77d

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and correctly guarded, but the decisive fork-only runtime branch remains unobserved.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: The PR has successful workflow and guard evidence plus a documented CI-owner policy decision, but it does not yet show a completed after-fix contributor-fork run for the only branch whose timeout changes. Redact private endpoints, IPs, tokens, and other sensitive details in any posted run evidence. 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 stronger real behavior proof before merge: The PR has successful workflow and guard evidence plus a documented CI-owner policy decision, but it does not yet show a completed after-fix contributor-fork run for the only branch whose timeout changes. Redact private endpoints, IPs, tokens, and other sensitive details in any posted run evidence. 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 owner boundary: Current main defines build-artifacts as a required preflight-dependent job, uses GitHub event and fork metadata for runner selection, and presently applies a fixed 20-minute timeout at the changed boundary.
Patch scope: The proposed commit changes only the build-artifacts timeout expression and adds a matching workflow-policy assertion; permissions, runner selection, caches, and concurrency are untouched by the diff.
Policy guard coverage: The guard parses the CI workflow and now asserts the exact fork-only timeout expression, preventing an accidental return to an unconditional 20-minute value.
Findings None None.
Security None None.

How this fits together

The CI workflow uses GitHub event and repository metadata to select job infrastructure and limits before artifact validation runs. build-artifacts produces the distribution checked by downstream required CI gates, so its timeout policy affects whether contributor pull requests can complete validation.

flowchart LR
  Event[GitHub event] --> Scope[Repository and fork check]
  Scope --> Timeout[Select timeout]
  Timeout --> Build[Build artifacts]
  Build --> Checks[Artifact checks]
  Checks --> Gate[Required CI gate]
  Gate --> Result[PR merge readiness]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR has successful workflow and guard evidence plus a documented CI-owner policy decision, but it does not yet show a completed after-fix contributor-fork run for the only branch whose timeout changes. Redact private endpoints, IPs, tokens, and other sensitive details in any posted run evidence. 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) - A same-repository run cannot exercise the fork-only 35-minute branch, and the added guard is an exact-expression assertion rather than an observed contributor-fork execution; merging therefore relies on the documented CI-owner acceptance of post-merge verification.
  • Complete next step (P2) - The patch has no discrete code defect to repair automatically; the protected maintainer label and fork-only proof exception require a maintainer-facing merge decision.
Agent review details

Security

None.

PR surface

Tests +3, Config 0. Total +3 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 0 +3
Docs 0 0 0 0
Config 1 1 1 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 4 1 +3

Review metrics

Metric Value Why it matters
Production versus test delta workflow production +1/-1 (net 0), tests +3 The production change is net-neutral and directly implements the stated CI policy; the test addition pins that policy.

Merge-risk options

Maintainer options:

  1. Capture a contributor-fork run before merge (recommended)
    Use a disposable fork pull request carrying this workflow change and attach a redacted completed build-artifacts result that proves the 35-minute branch.
  2. Accept the documented post-merge verification plan
    Land the focused change under the recorded CI-policy decision, then trigger a fresh contributor-fork event and verify its completed job before relying on the new budget operationally.

Technical review

Best possible solution:

Keep the narrowly scoped expression and guard, then obtain and retain a redacted completed contributor-fork build-artifacts result showing the 35-minute budget before treating the proof gate as fully satisfied.

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

Yes, at source level: current main hard-codes a 20-minute build-artifacts timeout, while the supplied discussion records two contributor-fork runs that exceeded it. A current after-fix fork execution has not been observed from this PR.

Is this the best way to solve the issue?

Yes for the code path: the expression reuses existing GitHub event and fork metadata and preserves the trusted 20-minute policy everywhere else. The remaining gap is behavioral proof of the fork-only branch, not an alternative implementation design.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: The issue is a bounded contributor-CI reliability problem without evidence of a production runtime outage.
  • merge-risk: 🚨 automation: The patch changes timeout behavior for a required GitHub Actions artifact-validation job.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR has successful workflow and guard evidence plus a documented CI-owner policy decision, but it does not yet show a completed after-fix contributor-fork run for the only branch whose timeout changes. Redact private endpoints, IPs, tokens, and other sensitive details in any posted run evidence. 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 owner boundary: Current main defines build-artifacts as a required preflight-dependent job, uses GitHub event and fork metadata for runner selection, and presently applies a fixed 20-minute timeout at the changed boundary. (.github/workflows/ci.yml:1061, 5bcebc3267ea)
  • Patch scope: The proposed commit changes only the build-artifacts timeout expression and adds a matching workflow-policy assertion; permissions, runner selection, caches, and concurrency are untouched by the diff. (.github/workflows/ci.yml:1070, 966966649f95)
  • Policy guard coverage: The guard parses the CI workflow and now asserts the exact fork-only timeout expression, preventing an accidental return to an unconditional 20-minute value. (test/scripts/ci-workflow-guards.test.ts:2975, 966966649f95)
  • Current-main provenance: git blame attributes the current workflow and policy-test region to the current-main import/refactor commit, making Shakker the visible recent source-history contact for both surfaces. (.github/workflows/ci.yml:1069, 5bcebc3267ea)
  • Observed CI and policy evidence: The supplied PR context records successful build-artifacts, check-guards, and Real behavior proof checks, plus a CI-policy-owner comment that preserves 20 minutes for trusted paths and explains why the fork-only branch cannot be exercised by this same-repository PR. (966966649f95)

Likely related people:

  • Shakker: Current-main blame and the available history attribute both the relevant workflow block and its CI policy test region to the same current-main commit. (role: recent workflow and guard contributor; confidence: medium; commits: 5bcebc3267ea; files: .github/workflows/ci.yml, test/scripts/ci-workflow-guards.test.ts)
  • steipete: The PR commit and supplied discussion attribute the fork-only timeout proposal and the stated CI policy boundary to this contributor. (role: CI policy decision author; confidence: high; commits: 966966649f95; files: .github/workflows/ci.yml, test/scripts/ci-workflow-guards.test.ts)

Rank-up moves

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

  • Attach redacted evidence from a completed contributor-fork build-artifacts job that exercises the 35-minute branch.
  • After adding proof, update the PR body so ClawSweeper can refresh the review automatically; if it does not, ask a maintainer to comment @clawsweeper re-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 (1 earlier review cycle)
  • reviewed 2026-08-03T06:18:01.297Z sha 9669666 :: needs real behavior proof before merge. :: none

@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

CI policy-owner approval: a maximum 35-minute budget is acceptable only for untrusted external pull-request build-artifact jobs on the existing GitHub-hosted runner; trusted/same-repository jobs remain at 20 minutes, with no changes to permissions, secrets, runner selection, sticky caches, concurrency, or test coverage. A same-repository maintainer PR cannot truthfully exercise the fork-only branch: exact-head remote workflow tests passed 97/97, the parsed event truth table confirms fork=35 and same-repo/push/manual=20, and the affected real contributor PR already demonstrated the old 20-minute timeout twice. The real fork execution will be verified by triggering a new pull-request event for #117992 after this policy fix lands; rerunning its existing workflow would retain the old merge-ref snapshot. This explicitly records the CI-owner decision and why pre-merge fork-runtime proof cannot be produced by this same-repository PR.

@steipete steipete closed this Aug 3, 2026
@steipete steipete reopened this Aug 3, 2026
@steipete
steipete merged commit 9f5f55b into main Aug 3, 2026
264 of 271 checks passed
@steipete
steipete deleted the codex/ci-fork-artifact-timeout branch August 3, 2026 07:00
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
steipete added a commit that referenced this pull request Aug 16, 2026
Fork pull requests were pinned to GitHub-hosted runners while maintainer
PRs rode Blacksmith. That split arrived with ci.yml's first commit
(f4f990a) and was never a reasoned posture -- no rationale in docs,
commit bodies, or the ci-limits skill -- and this week's Blacksmith
tranches widened the gap: maintainer walls are ~3:36 while the last fork
PR I measured (#124633) took 13m0s. We already paid for it once in
#118530, which raised the cross-repo artifact budget to 35 minutes
because contributor PR #117992 timed out twice on hosted capacity.

Runner choice now follows author_association: OWNER, MEMBER, COLLABORATOR,
and CONTRIBUTOR get Blacksmith; FIRST_TIME_CONTRIBUTOR, FIRST_TIMER, NONE,
and MANNEQUIN stay on hosted runners, which are free for public repos, so
an unreviewed author cannot spend Blacksmith capacity. Earning the fast
path requires a landed commit, which requires a maintainer merge.

Note for anyone tempted to trim that list: maintainers report CONTRIBUTOR
here, not OWNER/MEMBER, because org membership is concealed -- steipete's
74 sampled PRs are all CONTRIBUTOR. Dropping CONTRIBUTOR would move
maintainer PRs to hosted.

Scope is deliberately runner-only: 27 runs-on clauses. The 34
dependency-cache/use-actions-cache conditions and 6 job ifs stay
fork-gated, because cache poisoning is a different risk from runner
choice -- a fork run still never writes an archive a trusted run restores.

Verified by evaluating all 25 configurable runs-on expressions: maintainer
PR 12/25 Blacksmith, returning-contributor fork 12/25 (identical), unknown
author 0/25, FIRST_TIME_CONTRIBUTOR 0/25, push to main 12/25 unchanged.
Guard tests gained trusted/untrusted fork cases; 119 pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 17, 2026
Fork pull requests were pinned to GitHub-hosted runners while maintainer
PRs rode Blacksmith. That split arrived with ci.yml's first commit
(25270d3) and was never a reasoned posture -- no rationale in docs,
commit bodies, or the ci-limits skill -- and this week's Blacksmith
tranches widened the gap: maintainer walls are ~3:36 while the last fork
PR I measured (openclaw#124633) took 13m0s. We already paid for it once in
openclaw#118530, which raised the cross-repo artifact budget to 35 minutes
because contributor PR openclaw#117992 timed out twice on hosted capacity.

Runner choice now follows author_association: OWNER, MEMBER, COLLABORATOR,
and CONTRIBUTOR get Blacksmith; FIRST_TIME_CONTRIBUTOR, FIRST_TIMER, NONE,
and MANNEQUIN stay on hosted runners, which are free for public repos, so
an unreviewed author cannot spend Blacksmith capacity. Earning the fast
path requires a landed commit, which requires a maintainer merge.

Note for anyone tempted to trim that list: maintainers report CONTRIBUTOR
here, not OWNER/MEMBER, because org membership is concealed -- steipete's
74 sampled PRs are all CONTRIBUTOR. Dropping CONTRIBUTOR would move
maintainer PRs to hosted.

Scope is deliberately runner-only: 27 runs-on clauses. The 34
dependency-cache/use-actions-cache conditions and 6 job ifs stay
fork-gated, because cache poisoning is a different risk from runner
choice -- a fork run still never writes an archive a trusted run restores.

Verified by evaluating all 25 configurable runs-on expressions: maintainer
PR 12/25 Blacksmith, returning-contributor fork 12/25 (identical), unknown
author 0/25, FIRST_TIME_CONTRIBUTOR 0/25, push to main 12/25 unchanged.
Guard tests gained trusted/untrusted fork cases; 119 pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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