Skip to content

fix(ci): preserve automatic policy for hourly main validation - #157751

Merged
vincentkoc merged 3 commits into
mainfrom
fix/ci-hourly-hybrid-admission-20260925
Sep 25, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/ci-hourly-hybrid-admission-20260925

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes hourly main CI selecting manual-dispatch runner and translation policies, which adds hosted queue pressure and treats expected asynchronous translation drift as a failure.

User Impact

Hourly validation uses the configured automatic-main runner policy and retains complete main-tier coverage. Manual, PR, release, untrusted-source, and retry policies remain intact; manual main-tier runs still require strict translation parity. No repository settings or worker-count increase is required.

Why This Change Was Made

CI now owns its native hourly schedule. Removing the dispatch shim makes GitHub's event identity authoritative instead of trusting a caller-supplied hourly marker. Docs Agent accepts verified scheduled CI completion through its existing exact-attempt and aggregate evidence checks.

The single non-canceling hourly group, Android parallelism of two, full iOS tests, serial macOS execution, and mandatory translation source verification remain. Scheduled protocol/lockfile consumers receive the exact checkout as their comparison base. The manual SDK API diff report stays manual-only because a scheduled tip has no change range. Workflow production code decreases by 47 lines.

Evidence

  • Current-main overlap with fix(ci): scope narrow PR checks to their inputs #157740 was reviewed without rebasing. Eight combined-tree scenarios pass (five scheduled backends, manual, release, narrow PR); scheduled validation retains full matrices with the PR-only planner skipped. CI run 36111599824 checks out merge 5bb0cf6c48acbf199757ef3a4f1c2fdf9fb48c96, whose tree exactly matches that proof.

  • Before/after execution of the actual workflow expressions reproduces the reviewed manual-marker spoof on the previous implementation: both translation parity gates become nonblocking. The revised manual run keeps both blocking; native scheduled runs remain advisory.

  • Blacksmith Linux / Node 24.19 / Vitest 5.0.1: the complete six-file workflow contract batch passed 875 tests: 21 hourly, 420 planning, 322 guards, 46 Docs Agent, 20 plugin prerelease, and 46 release routing. Single-worker wrapper wall time: 217.04s.

  • pnpm tsgo:test:root passed. Exact candidate source and dependency hashes were verified before execution; the installed workspace dependency document matches the frozen lock.

  • Targeted formatting and pnpm check:workflows passed, including actionlint, zizmor, Git-owner, and input guards. Independent owner review, a complete sibling-contract audit, and fresh scoped review of the final test corrections found no remaining actionable issue.

  • Hosted CI exposed stale literal expectations in sibling workflow tests. Those expectations now include scheduled policy, and the Apple release-gate assertions execute scheduled, ordinary manual, and changed-scope release cases.

The first production scheduled event can only run after merge. Pre-merge evidence covers the native event contract, complete planner selection, final runner/cache/locale decisions, and Docs Agent admission; hosted PR checks remain required.

Follow-up: hybrid hosted-health sampling currently observes push runs only, excluding both the previous hourly dispatch and the native scheduled path. This pre-existing sampling limitation is unchanged and belongs in a separate health-policy update.

@vincentkoc vincentkoc self-assigned this Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 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.

@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. 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. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 3:57 AM ET / 07:57 UTC (Revision 3).

ClawSweeper review

What this changes

The branch moves hourly validation into CI’s native schedule, updates scheduled runner and translation policies and Docs Agent admission, and revises the related docs and tests.

Merge readiness

✅ Ready for maintainer review

Current main still routes hourly validation through a manual dispatch. This PR addresses that mismatch and the earlier caller-controlled hourly-marker concern; the reviewed head has no identified blocking defect.

Priority: P2
Reviewed head: 4844a167c17dc2496613b6dff936824ce51dc5ef

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has focused policy and admission coverage with no identified blocking defect; native schedule observation remains a post-merge check.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member-authored PR is exempt from ordinary contributor proof. Source-level workflow and Docs Agent tests cover scheduled versus manual admission, while the first native scheduled GitHub event can occur only after merge; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from ordinary contributor proof. Source-level workflow and Docs Agent tests cover scheduled versus manual admission, while the first native scheduled GitHub event can occur only after merge; no stored-data contract changes.
Evidence reviewed 8 items Current main still uses a dispatcher: The separate hourly workflow dispatches ci.yml with main-tier inputs; current main does not give ci.yml a native hourly schedule.
Scheduled entry point: The PR places the hourly trigger in ci.yml and uses the GitHub event name for scheduled concurrency and canonical-main admission.
Complete scheduled scope: Scheduled preflight requests the main validation tier and full platform selection; its comparison base is the exact checkout revision.
Findings None None.
Security None None.

How this fits together

GitHub Actions starts OpenClaw CI from scheduled, manual, push, and pull request events. CI selects validation jobs and produces an aggregate result that can admit the Docs Agent’s documentation update job.

flowchart TD
  A[GitHub event] --> B[CI preflight]
  B --> C{Scheduled or manual}
  C --> D[Runner and validation policy]
  D --> E[Validation jobs]
  E --> F[CI aggregate]
  F --> G[Docs Agent admission]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +96, Docs +9, Config -47. Total +58 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 159 63 +96
Docs 2 38 29 +9
Config 3 39 86 -47
Generated 0 0 0 0
Other 0 0 0 0
Total 8 236 178 +58

Review metrics

None.

Technical review

Best possible solution:

Keep one event-derived hourly CI path with complete main-tier coverage, strict manual validation, and exact-attempt Docs Agent admission; observe its first native scheduled aggregate after merge.

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

Yes, at source level: current main’s hourly workflow dispatches CI as a manual event, which selects manual policy. This read-only review did not execute a scheduled run.

Is this the best way to solve the issue?

Yes. GitHub’s scheduled event supplies the policy identity directly, while manual runs keep their strict checks and Docs Agent retains exact-run admission.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a bounded mismatch in hourly main validation policy.
  • merge-risk: 🚨 automation: The PR changes the scheduler and downstream Docs Agent admission; a native scheduled run can first be observed after merge.
  • 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. Not applicable: The member-authored PR is exempt from ordinary contributor proof. Source-level workflow and Docs Agent tests cover scheduled versus manual admission, while the first native scheduled GitHub event can occur only after merge; no stored-data contract changes.

Evidence

What I checked:

  • Current main still uses a dispatcher: The separate hourly workflow dispatches ci.yml with main-tier inputs; current main does not give ci.yml a native hourly schedule. (.github/workflows/ci-hourly.yml:27, 3932ca0ac7cc)
  • Scheduled entry point: The PR places the hourly trigger in ci.yml and uses the GitHub event name for scheduled concurrency and canonical-main admission. (.github/workflows/ci.yml:4, 4844a167c17d)
  • Complete scheduled scope: Scheduled preflight requests the main validation tier and full platform selection; its comparison base is the exact checkout revision. (.github/workflows/ci.yml:1388, 4844a167c17d)
  • Manual policy boundary: Manual non-release runs retain strict native and Control UI translation outputs. Tests evaluate an hourly-shaped manual dispatch through the final parity conditions and scheduled concurrency selection. (test/scripts/ci-hourly.test.ts:129, 4844a167c17d)
  • Docs Agent write admission: The verifier accepts a GitHub-reported scheduled CI event only with the canonical workflow, successful exact attempt, current main SHA, aggregate gate, and revision-confirmation evidence. The write job depends on its allowed output. (.github/workflows/docs-agent.yml:52, 4844a167c17d)
  • Prior review concern: The earlier review flagged caller-controlled hourly-marker admission. The current tests reject that marker for Docs Agent admission and preserve blocking manual locale checks. (test/scripts/docs-agent-workflow.test.ts:395, 4844a167c17d)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (2 earlier review cycles)
  • reviewed 2026-09-25T00:36:01.348Z sha c7013ac :: needs real behavior proof before merge. :: [P1] Verify scheduler origin before relaxing manual locale checks
  • reviewed 2026-09-25T07:40:48.646Z sha 283051b :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the fix/ci-hourly-hybrid-admission-20260925 branch from c7013ac to 283051b Compare September 25, 2026 07:34
@vincentkoc vincentkoc changed the title fix(ci): keep hourly main validation on hybrid runners fix(ci): preserve automatic policy for hourly main validation Sep 25, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 25, 2026 07:35
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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: 🚨 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 Sep 25, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M labels Sep 25, 2026
@vincentkoc
vincentkoc enabled auto-merge (squash) September 25, 2026 08:01
@vincentkoc
vincentkoc disabled auto-merge September 25, 2026 08:03
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc
vincentkoc merged commit 79399a6 into main Sep 25, 2026
339 of 342 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-hourly-hybrid-admission-20260925 branch September 25, 2026 08:46
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…aw#157751)

* fix(ci): preserve automatic policy for hourly main validation

* test(ci): type scheduled validation fixtures

* test(ci): align scheduled validation contracts
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

1 participant