openclaw-ci-limits
OpenClaw CI Limits
Use this skill for CI capacity changes, not ordinary test failure triage. The
goal is to keep OpenClaw fast while distinguishing runner registration, runner
availability, provider control-plane health, and downstream queue drains.
Resolve the active backend
Read the configured OPENCLAW_CI_RUNNER_BACKEND and the affected job's actual
runner before applying provider-specific guidance. The
runner routing guide
owns Boat's rollout, physical labels, and hosted fallbacks. Boat uses the hybrid
logical plan; a logical Blacksmith label alone does not identify the actual VM.
The owner rollout admits only
the documented human source authors and starters on same-repository first
attempts. Boat's public-user allowlist is a separate provider check; allowing a
bot there does not admit bot-started ordinary CI through the workflow.
Fork PRs use GitHub-hosted runners,
including first attempts without repository variables. Preserve their coverage.
The Blacksmith measurements below apply when a job actually selects Blacksmith.
Core Facts
- Full main-tier CI runs hourly; ordinary main pushes run
security-fast.
A green push is not evidence that the full suite passed. Ordinary PRs defer
Windows, macOS Node/Swift, iOS build/simulator, real-Gateway UI, published-driver
update, Knip, and most architecture proof. Import-cycle and Kysely guards
remain blocking. Use docs/ci/scope-and-routing/selection.md and the current
manifest for exact event, owner, and release-fallback selection; do not restore
deferred lanes while tuning capacity. Android screenshots remain release-only.
- Do not assume the scarce resource. Prove whether pressure is runner
registrations, eligible runner availability, Blacksmith capacity/control
plane, workflow dependencies, test runtime, or a downstream queue writer.
- GitHub runner registrations for
openclawcurrently report a 10,000 per
5-minute bucket in actions_runner_registration. Verify the live bucket
before each tuning pass because GitHub can change it. The openclaw
organization shares one bucket.
- Core REST quota does not draw down this bucket. Check
actions_runner_registration separately; core quota can be healthy while
runner registration is throttled.
- Use about 60% of the live bucket as the operating target. With the current
10,000-registration bucket, keep planned Blacksmith burst load under 6,000
registrations per 5 minutes and leave the rest for other repos, retries, and
burst overlap.
- Jobs that route, notify, summarize, choose shards, or run short CodeQL quality
scans should stay on GitHub-hosted runners unless measured evidence says
Blacksmith is required.
Runner Cost Policy
- Use the smallest runner that completes the required workload reliably. Keep
short control jobs hosted and ordinary trusted development proof local.
- Treat physical 8-vCPU and larger runners as exceptions, not a default or generic retry. Record the
command and measured peak memory, a smaller-runner OOM, or a controlled
comparison showing lower total billed cost. Low CPU use alone does not prove
a memory-heavy job can move down. Preserve resource-based worker limits.
- Routine OpenClaw Testboxes use the 4-class with a 60-minute total-job
default, including hydration. Keep the 15-minute idle ceiling. Shorter
deadlines are welcome for known short commands; do not request four hours
automatically or upsize only to obtain more time. Select
.github/workflows/ci-check-high-memory-testbox.yml explicitly only for a
named memory-heavy command; see docs/reference/test/remote-proof.md.
That workflow has at most four concurrent leases inside the shared 32-slot
Testbox pool. The high-memory profile uses 8 vCPUs; both profiles preserve
their pre-November 3 physical CPU and RAM. All Testbox profiles cap idle time at 15 minutes.
- Allocate through the current OpenClaw wrapper with workflow ref
main;
the source capsule preserves the checkout being tested. Do not dispatch an
old workflow ref to bypass spending limits. Queue age is checked before
checkout; an admitted lease keeps its job and idle deadlines.
- Do not promote an entire workflow family because one command needs more RAM.
Keep proven high-memory CI rows scoped to their owning planner and evidence;
remeasure before changing their allocation. A 32-class label is not proof of
32 available CPUs. Compare observed resources and total billed job cost.
Rejected Experiments
- UI blobless sparse checkout (2026-10-16): Excluding native mobile/macOS
app trees removed 48.31 MiB of logical tracked content, but did not qualify as
a runner-cost improvement. In
the Blacksmith UI E2E checkout took 56s and the hosted browser checkout 58s;
same-run full UI checkouts took 22–38s. These are small, unpaired samples,
not a measured billing delta. Keep the full source checkout. Reconsider only
with lower complete checkout time and billed cost, including filtered fetch,
lazy materialization, and trusted-harness export; fewer logical bytes alone
do not establish savings.
- Declaration-fixture owner selection (2026-10-02):
test/scripts/tsdown-declaration-fixture.ts derives real source copies from its runtime
entrypoint closures, so produc
