Skip to content

fix(macos): timestamp hash-pinned Developer ID signatures - #118989

Merged
steipete merged 1 commit into
openclaw:mainfrom
harjothkhara:oss-find/118740-codesign-timestamp
Aug 26, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
harjothkhara:oss-find/118740-codesign-timestamp

Conversation

@harjothkhara

@harjothkhara harjothkhara commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Closes #118740.

Fixes an issue where macOS developers signing an OpenClaw app with a Developer ID certificate selected by its SHA-1 hash produced an app without the trusted timestamp required for notarization. Signing appeared successful and displayed a local signing time, so the failure surfaced only at notarization.

Why This Change Was Made

Apple codesign explicitly accepts a 40-character certificate SHA-1 hash as a signing identity. Hash selection is necessary when certificates share a common name, but the previous automatic timestamp policy classified the selector text rather than the certificate it selected.

Resolve hash selectors against the existing security find-identity -p codesigning -v contract before applying the existing Developer ID timestamp policy. Name-selected identities retain their existing fast path, non-Developer-ID and ad-hoc identities remain untimestamped, and explicit timestamp settings continue to win. Unknown hashes remain unclassified and still fail in the real signing tool.

The existing timestamp retry policy handles transient Apple timestamp-service failures. Operators who intentionally require an offline, non-notarizable build retain the documented CODESIGN_TIMESTAMP=off override.

User Impact

Developer ID certificates now produce the same notarizable signature whether selected by name or hash, without changing iOS signing, ordinary development identities, ad-hoc signing, or explicit timestamp overrides.

Evidence

Maintainer proof used the same real Developer ID certificate, selected by its real SHA-1 hash, to sign isolated throwaway macOS app bundles through the production signing script. Certificate details were redacted.

BEFORE — current main
proof=main developer_id_authority=yes trusted_timestamp=ABSENT local_signed_time=present

AFTER — this repair
proof=fixed developer_id_authority=yes trusted_timestamp=present local_signed_time=absent

The after result was produced by the actual security and codesign tools contacting Apple's trusted timestamp service, not by mocked signing tools.

Focused owner-boundary regression coverage first failed on unmodified main for both uppercase and lowercase Developer ID hashes; after the repair, all 24 signing tests pass. The seven-case table also covers Developer ID names, Apple Development hashes, unknown hashes, ad-hoc signing, and explicit timestamp opt-out.

Test Files  1 passed (1)
Tests       24 passed (24)

The maintainer rewrite preserves @harjothkhara's original fix and contributor credit while reducing production growth from +16 to +6 lines and regression-test growth from +178 to +82 lines.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos scripts Repository scripts size: S labels Aug 3, 2026
@harjothkhara
harjothkhara marked this pull request as ready for review August 3, 2026 22:02
@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 backlog priority with limited blast radius. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 1:22 PM ET / 17:22 UTC.

ClawSweeper review

What this changes

The PR resolves 40-character signing-certificate hashes through the macOS keychain before applying the existing automatic Developer ID timestamp policy, documents hash selectors, and adds a regression matrix.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This PR remains necessary: current main still bases automatic timestamps on the raw identity string, so a SHA-1 selector cannot match Developer ID text. The branch repairs that owner boundary, and its updated body supplies before/after real-signing evidence rather than mock-only proof.

Priority: P2
Reviewed head: 0e0a06e3e6d9288c1397227e14c486d909e0bf74

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with behavioral regression coverage and credible real-signing before/after evidence.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR body provides after-fix live output from the production signing script, real keychain tooling, and Apple’s timestamp service; redact certificate details in any future attached evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body provides after-fix live output from the production signing script, real keychain tooling, and Apple’s timestamp service; redact certificate details in any future attached evidence.
Evidence reviewed 6 items Current-main defect remains: Current main only enables the automatic timestamp when the raw signing selector contains Developer ID Application, which a 40-character hash cannot contain.
Focused repair: The branch recognizes a strict 40-hex selector, finds its matching keychain identity case-insensitively, and retains the existing name-based policy and explicit overrides.
Behavioral regression coverage: The table drives the actual shell script with keychain listings and checks timestamp arguments for upper/lowercase Developer ID hashes, non-Developer hashes, ad-hoc signing, and explicit opt-out.
Findings None None.
Security None None.

How this fits together

The macOS packaging script receives either a certificate name or hash and selects timestamp flags before invoking Apple’s signing tool. That signature metadata determines whether a Developer ID app can be notarized.

flowchart LR
  A[Signing environment] --> B[Mac packaging script]
  B --> C[Certificate name or hash]
  C --> D[Timestamp policy]
  D --> E[Apple signing tool]
  E --> F[Notarizable app signature]
Loading

Before merge

  • Resolve merge risk (P1) - GitHub reports the branch as clean but behind main; exact resulting-head CI must be green after rebase or merge refresh.
  • Complete next step (P2) - The submitted branch already contains the bounded repair; it needs normal exact-head rebase and CI validation, not a separate repair job.
Agent review details

Security

None.

PR surface

Tests +82, Docs +1, Other +6. Total +89 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 82 0 +82
Docs 1 2 1 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 1 7 1 +6
Total 3 91 2 +89

Review metrics

Metric Value Why it matters
Production versus test delta production +6, docs +1, tests +82 The small production increase is the direct keychain lookup needed to classify a hash selector; the remaining growth is focused regression coverage.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #118740
Summary: This PR is the focused candidate repair for the open hash-selected timestamp bug.

Members:

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

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Rebase the narrow repair onto current main, retain the hash-policy regression matrix, and land once exact-head validation is green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Rebase the narrow repair onto current main, retain the hash-policy regression matrix, and land once exact-head validation is green.

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

Yes. Current main’s raw-string check establishes the failing path, and the PR body records a real before/after Developer ID signing run using the same hash-selected certificate.

Is this the best way to solve the issue?

Yes. Resolving only strict hash selectors through the existing keychain listing preserves name selection, non-Developer behavior, ad-hoc signing, and explicit timestamp settings.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix live output from the production signing script, real keychain tooling, and Apple’s timestamp service; redact certificate details in any future attached evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body provides after-fix live output from the production signing script, real keychain tooling, and Apple’s timestamp service; redact certificate details in any future attached evidence.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.
  • remove merge-risk: 🚨 security-boundary: Current PR review selected no merge-risk labels.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded macOS notarization repair affecting hash-selected Developer ID signing, without evidence of a broader runtime outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body provides after-fix live output from the production signing script, real keychain tooling, and Apple’s timestamp service; redact certificate details in any future attached evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix live output from the production signing script, real keychain tooling, and Apple’s timestamp service; redact certificate details in any future attached evidence.

Evidence

What I checked:

  • Current-main defect remains: Current main only enables the automatic timestamp when the raw signing selector contains Developer ID Application, which a 40-character hash cannot contain. (scripts/codesign-mac-app.sh:164, 447895981826)
  • Focused repair: The branch recognizes a strict 40-hex selector, finds its matching keychain identity case-insensitively, and retains the existing name-based policy and explicit overrides. (scripts/codesign-mac-app.sh:166, 0e0a06e3e6d9)
  • Behavioral regression coverage: The table drives the actual shell script with keychain listings and checks timestamp arguments for upper/lowercase Developer ID hashes, non-Developer hashes, ad-hoc signing, and explicit opt-out. (test/scripts/codesign-mac-app.test.ts:483, 0e0a06e3e6d9)
  • History and ownership: Blame attributes the changed timestamp block to the current PR-head commit; history identifies the same area’s notarization flow as originating with the same feature owner. (scripts/codesign-mac-app.sh:166, 0e0a06e3e6d9)
  • Real behavior proof: The PR body reports a real Developer ID certificate selected by its actual hash through the production script: current main had no trusted timestamp and the repaired branch had one. (0e0a06e3e6d9)
  • Release status: No checked-out release tag contains the PR head; the repair is neither released nor present in current main. (0e0a06e3e6d9)

Likely related people:

  • steipete: Authored the original notarization flow, the current PR-head rewrite, and most recorded history for the signing script. (role: feature owner and recent area contributor; confidence: high; commits: 02787b567467, 04c9924c45b3, 0e0a06e3e6d9; files: scripts/codesign-mac-app.sh, docs/platforms/mac/signing.md, test/scripts/codesign-mac-app.test.ts)

Rank-up moves

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

  • Rebase or refresh the branch and obtain green CI for the exact resulting head.

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 (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-06T11:38:03.359Z sha 4d09189fcc8523e373c3f40755b2d86a508a2b64 :: needs real behavior proof before merge. :: none
  • reviewed August 8, 2026, 8:44 AM ET / 12:44 UTC sha unknown :: needs real behavior proof before merge. :: none
  • reviewed August 9, 2026, 12:51 PM ET / 16:51 UTC sha unknown :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-13T21:20:14.225Z sha a1d668ed88c5f45257ca21dfc5680a72048bb81d :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-15T05:28:26.730Z sha 824bdf741e4366b0045649583880492d8b85831b :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-15T06:33:31.418Z sha 3451b96501c264136f856b64df161101f5ebf457 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-19T15:03:29.670Z sha 3451b96501c264136f856b64df161101f5ebf457 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-21T17:40:41.741Z sha b1e3afcbadf324d9427320d77284ad49438ef23c :: needs real behavior proof before merge. :: none

@harjothkhara

Copy link
Copy Markdown
Contributor Author

@steipete — two things here need someone with repo access or a Developer ID cert, and I have neither. Flagging rather than letting the PR sit.

1. The proof gate wants a capture I can't produce. ClawSweeper cleared the patch (diamond, no findings, best-fix affirmed) but blocked on proof: it wants a real codesign -dvvv showing a trusted timestamp. That needs an Apple-issued Developer ID certificate. This machine reports 0 valid identities found, so the keychain is stubbed in my harness.

If you have a Developer ID cert handy, the capture is short. On this branch:

# hash of any Developer ID Application cert
security find-identity -v -p codesigning | grep "Developer ID Application"

# sign a throwaway bundle by HASH (not by name)
SIGN_IDENTITY=<40-hex-hash> bash scripts/codesign-mac-app.sh /path/to/Some.app

codesign -dvvv /path/to/Some.app 2>&1 | grep -E "^(Timestamp|Authority)"

The same three commands on main are the "before" — there the Timestamp= line is absent, because auto only matches the literal string Developer ID Application in $SIGN_IDENTITY and a hash never contains it. Redact the CN, team ID, and hash however you like; only the presence or absence of Timestamp= matters.

2. macos-swift is red for an unrelated reason and I can't rerun it. It was cancelled, not failed — 20m25s against a 20-minute cap, killed mid-compile at step 1365/1416. No test ran, and the log has no .swift compile error, only ##[error]The operation was canceled. ci-gate then fails because it lists macos-swift as required.

Fork PRs are routed to the hosted macos-26 runner but keep the timeout tuned for Blacksmith. #118530 gave build-artifacts a fork-aware budget for exactly this; macos-swift didn't get one. A rerun lands on run_attempt > 1, which raises the cap to 30 minutes — gh run rerun refuses for me (Must have admin rights to Repository), and pushing again just produces another attempt 1. Happy to send a separate PR extending #118530's pattern to macos-swift if that's wanted; 21 of 22 fork-downgraded jobs currently lack a fork-aware timeout.

For context on the defect itself: the auto branch came in with 02787b56746 ("build(mac): add notarize flow for release artifacts"), which is why the hash-pinned case is worth closing — pinning by hash is the documented way out of ambiguous (matches ...) when two Developer ID certs share a common name, and it currently produces a build that looks correct locally and is rejected at notarization.

If you'd rather not spend a cert on this, say so and I'll note the limitation as permanent — the harness evidence and the docs contract may be enough on their own, and that's your call to make, not mine.

@harjothkhara

Copy link
Copy Markdown
Contributor Author

macos-swift is red on 4d09189 (run 30863402064), and ci-gate follows it. Evidence that it isn't this diff:

1. The failures are nondeterministic within a single job. The Swift test step self-retries 3×. Same commit, same runner, same job — the failing set changes each time:

attempt failing suites issues
1/3 7 — AppStateVoiceEarsTests, BoundedCommandTests, BoundedProcessTests, DashboardWindowSmokeTests, MacNodeModeCoordinatorTests, QuickChatPowerFeaturesTests, RemoteGatewayProbeTests 11
2/3 4 — BoundedCommandTests, BoundedProcessTests, DashboardWindowSmokeTests, RemoteGatewayProbeTests 6
3/3 5 — the four above plus MacNodeModeCoordinatorTests 6

AppStateVoiceEarsTests, QuickChatPowerFeaturesTests and MacNodeModeCoordinatorTests drift in and out. A code defect reproduces; this doesn't.

2. They're wall-clock deadline assertions, missed by fractions of a second:

BoundedProcessTests.swift:32:9:  Expectation failed: (ContinuousClock.now - startedAt → 2.357511334 seconds) < (.seconds(2) → 2.0 seconds)
BoundedProcessTests.swift:195:9: Expectation failed: (ContinuousClock.now - startedAt → 2.497009708 seconds) < (.seconds(2) → 2.0 seconds)
BoundedProcessTests.swift:121:9: Expectation failed: (ContinuousClock.now - startedAt → 3.970232792 seconds) < (.seconds(3) → 3.0 seconds)
RemoteGatewayProbeTests.swift:35:9: Expectation failed: (result → .failed("Remote gateway check timed out after 1000ms"))

3. It reproduces on an unrelated diff. #119008 touches a different function in the same script and its macos-swift failed the same way (run 30863288585), with the same ContinuousClock overruns and a partly different suite set — 11 suites including PortGuardianRecordStoreTests, RemotePortTunnelTests, GatewayChannelConnectTests.

4. This diff can't reach those surfaces. It changes scripts/codesign-mac-app.sh, its vitest harness, and a docs line. The failing suites are macOS app runtime tests — process bounding, window smoke, gateway probe, port tunnels. codesign-mac-app, SIGN_IDENTITY and platforms/mac/signing appear 0 times in either job log; the script is not invoked by swift test.

Root cause is the same one behind the earlier cancellation on 1893f7c: fork PRs are routed to the hosted macos-26 runner while these deadlines were tuned for blacksmith-12vcpu-macos-26. #119017 addresses the budget half of that.

I haven't touched the Swift tests, and won't — a test-only diff making a red suite pass is auto-close material here. If you'd like these tracked, I'm happy to file flaky(macos-swift): wall-clock deadline assertions fail on hosted runners with the per-attempt failure rates, rather than change them in this PR.

Caveat on my sampling: #119008 touches the same script, so it is not a fully independent sample. The within-job retry divergence in point 1 does not depend on it. macos-swift is gated by preflight and ran on none of the 30 most recent CI runs, so an unrelated sample was not available to compare against.

@harjothkhara

Copy link
Copy Markdown
Contributor Author

Filed the flake as #119026 — the per-attempt suite divergence and the ContinuousClock overruns from the comment above are recorded there, so this PR doesn't have to carry that history.

Nothing changed here as a result: #119026 covers the timing assertions themselves, and #119017 covers the fork-runner budget that makes them fire. This diff still stands on the harness evidence in the body.

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Aug 4, 2026
@harjothkhara
harjothkhara force-pushed the oss-find/118740-codesign-timestamp branch from 4d09189 to a1d668e Compare August 13, 2026 18:07
@harjothkhara
harjothkhara force-pushed the oss-find/118740-codesign-timestamp branch from a1d668e to 824bdf7 Compare August 15, 2026 05:22
@harjothkhara
harjothkhara force-pushed the oss-find/118740-codesign-timestamp branch from 824bdf7 to 3451b96 Compare August 15, 2026 06:26
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. label Aug 19, 2026
harjothkhara added a commit to harjothkhara/openclaw that referenced this pull request Aug 21, 2026
runs-on falls back to hosted macos-26 for several cases: workflow_dispatch,
run_attempt > 1, fork pull requests, and (as of the runner-backend circuit
breaker landed on main the same day this PR was authored) breaker-routed
GitHub-hosted fallback. timeout-minutes did not cover the fork-PR case, so
fork PRs ran on the slow hosted runner with the Blacksmith-tuned 20-minute
budget.

Measured on PR openclaw#118989 (a fork PR): macos-swift was cancelled after 20m25s,
killed mid-compile at step 1365/1416. No test executed, and the log has no
swift compile error - only 'The operation was canceled.' ci-gate then fails
because it lists macos-swift as required, so the PR reads red for a reason
unrelated to its diff, and a contributor cannot rerun it.

Make the budget follow the runner instead of the trigger: every hosted path
gets 30 (folded into the same budget the circuit breaker's own hosted-fallback
timeout extension already established for this job), so this doesn't
reintroduce a second, competing hosted-timeout value. Blacksmith paths keep
20 unchanged. Replaces the single pinned-string guard with a table-driven
test covering runs-on and timeout-minutes together across every trigger
context that can route to a hosted runner.
@harjothkhara
harjothkhara force-pushed the oss-find/118740-codesign-timestamp branch from 1b7cb9e to b1e3afc Compare August 21, 2026 17:34
steipete added a commit that referenced this pull request Aug 26, 2026
* ci(macos): budget macos-swift by runner so fork PRs finish

runs-on falls back to hosted macos-26 for several cases: workflow_dispatch,
run_attempt > 1, fork pull requests, and (as of the runner-backend circuit
breaker landed on main the same day this PR was authored) breaker-routed
GitHub-hosted fallback. timeout-minutes did not cover the fork-PR case, so
fork PRs ran on the slow hosted runner with the Blacksmith-tuned 20-minute
budget.

Measured on PR #118989 (a fork PR): macos-swift was cancelled after 20m25s,
killed mid-compile at step 1365/1416. No test executed, and the log has no
swift compile error - only 'The operation was canceled.' ci-gate then fails
because it lists macos-swift as required, so the PR reads red for a reason
unrelated to its diff, and a contributor cannot rerun it.

Make the budget follow the runner instead of the trigger: every hosted path
gets 30 (folded into the same budget the circuit breaker's own hosted-fallback
timeout extension already established for this job), so this doesn't
reintroduce a second, competing hosted-timeout value. Blacksmith paths keep
20 unchanged. Replaces the single pinned-string guard with a table-driven
test covering runs-on and timeout-minutes together across every trigger
context that can route to a hosted runner.

* chore: refresh PR head (keep open for maintainer review)

* ci(macos): track main's author-association runner routing

Main now routes macos-swift by pull_request author_association rather than
fork-ness, so the timeout predicate and its guard scenarios follow it.

* ci(macos): tighten hosted runner budget coverage

Co-authored-by: harjoth <[email protected]>

* docs(ci): document hosted macOS budgets without merge conflicts

Co-authored-by: harjoth <[email protected]>

---------

Co-authored-by: Peter Steinberger <[email protected]>
@steipete
steipete force-pushed the oss-find/118740-codesign-timestamp branch from b1e3afc to 0e0a06e Compare August 26, 2026 16:37
@steipete steipete closed this Aug 26, 2026
@steipete steipete reopened this Aug 26, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 26, 2026
@steipete
steipete merged commit 3be7baa into openclaw:main Aug 26, 2026
595 of 685 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…119017)

* ci(macos): budget macos-swift by runner so fork PRs finish

runs-on falls back to hosted macos-26 for several cases: workflow_dispatch,
run_attempt > 1, fork pull requests, and (as of the runner-backend circuit
breaker landed on main the same day this PR was authored) breaker-routed
GitHub-hosted fallback. timeout-minutes did not cover the fork-PR case, so
fork PRs ran on the slow hosted runner with the Blacksmith-tuned 20-minute
budget.

Measured on PR openclaw#118989 (a fork PR): macos-swift was cancelled after 20m25s,
killed mid-compile at step 1365/1416. No test executed, and the log has no
swift compile error - only 'The operation was canceled.' ci-gate then fails
because it lists macos-swift as required, so the PR reads red for a reason
unrelated to its diff, and a contributor cannot rerun it.

Make the budget follow the runner instead of the trigger: every hosted path
gets 30 (folded into the same budget the circuit breaker's own hosted-fallback
timeout extension already established for this job), so this doesn't
reintroduce a second, competing hosted-timeout value. Blacksmith paths keep
20 unchanged. Replaces the single pinned-string guard with a table-driven
test covering runs-on and timeout-minutes together across every trigger
context that can route to a hosted runner.

* chore: refresh PR head (keep open for maintainer review)

* ci(macos): track main's author-association runner routing

Main now routes macos-swift by pull_request author_association rather than
fork-ness, so the timeout predicate and its guard scenarios follow it.

* ci(macos): tighten hosted runner budget coverage

Co-authored-by: harjoth <[email protected]>

* docs(ci): document hosted macOS budgets without merge conflicts

Co-authored-by: harjoth <[email protected]>

---------

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codesign-mac-app.sh: pinning SIGN_IDENTITY by cert hash silently disables the trusted timestamp, breaking notarization

2 participants