Repository navigation
ci: bound the six uncached jobs — four ceilings derived per job, two 360s accepted on the record - #8129
Conversation
objectui#7270 bounded the three CACHED jobs that ran under GitHub's 360-minute default. These six cache nothing, so its specific hazard (a runner-generated cache-save post step no workflow syntax can bound) is absent; what they carried was the generic exposure. Re-measured on the `main` ruleset: none of the six produces a required status check, so #7270's shared-serial-queue stakes do not carry over. Each ceiling is derived from that job's OWN run distribution over the Actions API, never inherited: changeset-release.yml::lane n=300 max 43s -> 20 check-links.yml::check-links n=5 max 31s -> 20 cross-repo-issue-closer.yml:: close-foreign-issues n=300 max 12s -> 20 labeler.yml::label n=300 max 13s -> 20 The four coincide because #7270's rule (smallest round number that is both >= 3x max and >= max + 15min) is dominated by its additive term for any job under 7.5 minutes. Their maxima differ; the arithmetic converges. Two jobs have no distribution that measures them doing their work, so they keep the 360 default with the reason recorded beside the job rather than an invented number: changelog.yml::changelog 0 runs, ever; dispatch-only, never dispatched stale.yml::stale 234 runs, 0 successful; every one fails in `Set up job` before actions/stale starts `changeset-release.yml::release`'s 40 is untouched. The pin in scripts/__tests__/workflow-cache-save-bound.test.ts holds both halves: the four ceilings, and the two deliberate absences plus their record. Part of objectui#7956 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
|
Standing down on
Every other check on Generated by Claude Code |
|
Armed — squash auto-merge enabled and the PR is in the merge queue,
On MERGED: content probe on re-fetched Generated by Claude Code |
|
LANDED — merged at 2026-09-06T18:12:16Z as Content probe on re-fetched
#7956 closed by the Generated by Claude Code |
Fixes #7956
objectui#7270 bounded the three cached jobs that ran under GitHub's 360-minute default. The six here cache nothing, so its specific hazard — a runner-generated cache-save post step that no workflow syntax can bound — is absent, exactly as the card argued. What they carried is the generic exposure.
Four now carry a ceiling derived from that job's own measured distribution. Two carry none, on purpose, with the reason written beside the job. Both halves are pinned.
Precondition ① — the required contexts, re-measured
Re-run rather than inherited, per the dispatch.
GET /repos/objectstack-ai/objectui/rules/branches/mainat 2026-09-06T17:20Z (readable with the session token; the legacybranches/main/protectionendpoint answers 403 — verified again here):None of the six jobs produces one of those. Job display names checked per job, not per file:
changelog,Decide lane,check-links,Close issues referenced in other repositories,label,stale.⇒ The consequence, stated so nobody re-derives it later: objectui#7270's stakes argument — two of its three jobs being required contexts on a shared serial queue, so a wedge holds the queue for six hours — does not apply here. Nothing in this pull request blocks a merge, before or after. What these six carry is only the generic 360-minute exposure: a wedged job occupies a runner for six hours and then reports
cancelled.Precondition ② — every ceiling derived per job, none inherited
The rule is objectui#7270's, written beside
lint.yml::lint: the smallest round number that is both at least 3x that job's max and at least that job's max + 15min. Per-job wall clock throughout, from/actions/runs/ID/jobs(completed_atminusstarted_at), never the run's total. Channel: repo-scoped Actions REST with the session token (no MCP fallback needed; assumption A1 holds).changeset-release.yml::lane→ 20The tail is worth naming because it is not work: on the three slowest runs the step conclusions sum to 3 seconds while the job's wall clock is 41-43s. It is runner overhead no step reports — still wall clock the ceiling must cover, which is why the max above is the job's and not the steps'.
release'stimeout-minutes: 40directly below is untouched — verified structurally, see Gates.check-links.yml::check-links→ 20⭐ The obvious sample is the wrong one.
?status=successanswers with atotal_countof 217, which reads like a healthy history — and every one of those runs is from 2026-01-24 .. 2026-01-28, onpushandpull_request, triggers this workflow no longer declares, under the scan scope it had before objectui#3449. They measure a different job wearing this job's name. Deriving from them (max 12s) would have put the ceiling under today's honest slowest run — the hazard objectui#7048 fenced. They are recorded in the comment and not used.?event=schedule,total_count5 — the entire population since the cron landed, window 2026-08-09T04:43Z .. 2026-09-06T04:28ZAll five ended
failure, and that does not make them unusable: step conclusions show Lychee running 9s .. 24s and the job reaching its post steps every time, so the failure is the sweep's own verdict (fail: true), not an abort partway through. It is also the conservative side — an unresolvable link is retried (max_retriesinlychee.toml), so a red sweep does strictly more work than a clean one.The residual is named in the comment rather than hidden:
lychee.tomldeclares a per-requesttimeoutandmax_retriesat amax_concurrencyof 10, so a whole-run worst case scales with how much this workflow sweeps — and that size is exactly the number the file's header forbids writing down, because it rots (objectui#7448, objectui#7825). The additive 15 minutes absorbs it; it is not a proof against it. If network weather ever does hit this ceiling, the cost is acancelledweekly sweep that blocks nobody, which the header already accepts as this workflow's failure currency.cross-repo-issue-closer.yml::close-foreign-issues→ 20pull_request_targetOne declared term does not appear in the sample: the github-script step sets
retries: 3, so a transiently-answering target is asked up to four times with backoff, and no sampled run spent that budget. Same reasoningchangeset-release.yml::releaseapplies to its declared wait cap — except that there the declared bound exceeded the multiplier and had to be added explicitly, and here it does not come close, so the additive 15 minutes absorbs it. Written into the comment.labeler.yml::label→ 20pull_requestThe most frequently started of the six (every push to every open pull request), so the cheapest place for the exposure to be paid repeatedly.
Precondition ② forbids one number for six jobs. These four coincide because the rule's additive term dominates its multiplicative one for any job whose slowest run is under 7.5 minutes, so it lands every sub-minute job on the same rung. Their measured maxima differ — 43s, 31s, 13s, 12s — and each derivation stands beside its own key on its own sample. objectui#7270's pin says the same thing about its own two 25s: "two of them being equal is a coincidence of the arithmetic."
The two jobs with no distribution to derive from — 360 accepted, on the record
Ruling 2's other branch. A number invented for either would look derived and be a guess, and a ceiling under a job's honest slowest run converts a working job into a permanently red one — objectui#7048's fence, with objectstack#16173 as the live counter-example (a distribution mis-estimated by ~2.6x killed a test shard while the rollup read green).
changelog.yml::changelog— accept 360GET /actions/workflows/changelog.yml/runs, no status filter, whole retained history ⇒total_count: 0. Re-measured 2026-09-06T17:22Z.Control, so the zero is a reading rather than a broken query: the identical call against
changeset-release.ymlanswers with 5010 completed runs. The file's own header already recorded this same zero once, measured before 2026-08-23 while removing its deadreleasetrigger — it has not moved. Dispatch-only, never dispatched.changelog.ymlto be schedule-driven. It declaresworkflow_dispatchonly.stale.yml::stale— accept 360schedule?status=successtotal_count: 0— never once succeeded in the whole retained historySet up job, conclusionfailure— withactions/stalenever starting. The distribution measures how fast the job fails to begin. Its real cost has never been observed, and it is the kind that grows with the repository, so a 20-ish minute ceiling derived from a 4-second maximum would have the look of provenance and none of the substance.The failure is a separate defect from the exposure this card is about, and bounding a job that cannot start would fix nothing while hiding the louder problem behind a tidy diff. Filed on its own card — see below.
The pin
scripts/__tests__/workflow-cache-save-bound.test.ts. A3 partly falsified: it holds no "exactly N unbounded jobs remain" count, so no count had to move. It is a table extension plus one new kind of assertion.bounds the four jobs objectui#7956 derived a ceiling for— presence and not-raised, the same shape as objectui#7270's own entry, kept as a sibling rather than folded into it (that one's failure text says "two of them are required contexts and one is the publish lane", which is false for these four).keeps the two jobs objectui#7956 could not measure UNBOUNDED, with their reason recorded— asserts the absence of a ceiling, plus two stable tokens (360and the card reference) in the workflow's comments so the decision is readable at the job and not only in a merged pull request. It is deliberately not a pinned wording. The failure mode it catches is a future tidy-up that copies20off the four jobs onto these two — the inherited ceiling objectui#7048 fences. Its message says what to do instead: derive from runs that did the work, write the derivation beside the key, and move the entry up into the table above in the same commit.The file's header gained a section saying why job ceilings live beside cache rules rather than in a new file — both are "a key whose deletion is invisible in every run", and splitting them would give the next reader two places to look for one rule.
Reverse verification — three legs, each proved on disk and restored
Run against the committed implementation, restore leg
git checkout HEAD -- PATH, trap onEXIT INT TERM, mutation confirmed by an occurrence count in both directions before the run, and byte-identity confirmed after by comparinggit hash-objectagainst the HEAD blob.labeler.yml::label(1 → 0occurrences)these jobs declare no job-level ...20ontostale.yml::stale(0 → 1)these jobs were deliberately left at the 360-minute default ...changelog.yml(3 → 0)these jobs run under the 360-minute default with nothing ...Three distinct messages, so each leg exercises a different branch. Final state:
git diff HEADempty; all three blobs hash-equal to HEAD.Gates
All pinned to final HEAD
b422e650d, exit codes captured by redirect-then-capture (never across a pipe).pnpm exec vitest run scripts/__tests__/pnpm type-check:scriptspnpm check:control-bytesgrep -naPcontrol-byte self-scan over the 7 changed pathsnode scripts/check-changeset-presence.mjsnode scripts/check-governed-queue-guard.mjs --test(7 changed paths)The YAML check is structural, not cosmetic. For each of the six it parses the file before (at base
cf1d29e2f) and after, stripstimeout-minutesfrom every job on both sides, and deep-compares:pre-existing-changed=[]onchangeset-release.ymlis the machine-checked form of "ruling 5 honoured":release's 40 did not move.Lint, narrowed and the narrowing measured. One
.tsfile changed; ESLint does not read.yml(its config declares no YAML processor).npx eslint --no-inline-config --format jsonon it: 1 file linted (from the JSON array length), 0 errors, 0 warnings. Invariance for untouched files:eslint.config.jsextendstseslint.configs.recommended, notrecommendedTypeChecked, and declares noparserOptions.projectorprojectService— type-aware linting is off, so this diff cannot move the verdict on any file it does not contain. The repo-wide run stays CI's.Live E2E (informational)is red on every branch today for an upstream reason (#7990, objectstack#16186) — not this change.Out-of-scope findings, filed separately and ⛔ not touched here
Both surfaced while choosing samples; neither is a defect this change may fix without hiding it.
stale.ymlhas never succeeded: 234 scheduled runs, 234 failures, every one inSet up job. Every automation that file declares has been inert for at least eight months.check-linkssweep since the cron landed is red (5 of 5), and the last green run predates objectui#3449's scope fix. The sweep is working; its answer reaches nobody.Neither is closed or altered by this pull request; both remain open. Dedup: the delta of cards updated since 2026-09-06T16:01Z was read over repo-scoped REST (28 cards, no match), plus one MCP semantic search per finding, each validated by a known-hit control query on the same channel in the same session.
Scope
Seven files: the six workflows (job-level
timeout-minutesand its derivation comment, nothing else — proved above) and the one pin. Nothing underpackages/,content/docs/,scripts/*.mjs, or the governed surface.Generated by Claude Code