Repository navigation
fix(ci): preserve automatic policy for hourly main validation - #157751
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 3:57 AM ET / 07:57 UTC (Revision 3). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherGitHub 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +96, Docs +9, Config -47. Total +58 across 8 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
c7013ac to
283051b
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…aw#157751) * fix(ci): preserve automatic policy for hourly main validation * test(ci): type scheduled validation fixtures * test(ci): align scheduled validation contracts
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:rootpassed. Exact candidate source and dependency hashes were verified before execution; the installed workspace dependency document matches the frozen lock.Targeted formatting and
pnpm check:workflowspassed, 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.