Repository navigation
Description
What is wrong
A GitHub Actions step with no timeout-minutes has no bound. If the command it runs
hangs — a clone that never finishes, a generator waiting on a lock, a wrangler upload
that stalls — the step runs until the runner's own six-hour limit, and the job never
reports WHICH step died. The run goes red with a timeout that names the job and no
step, and the reader has to guess from the log where the time went.
The org's workflows are full of unbounded steps. This is not one repo's defect: the
check that detects it has been built, proven and landed for one repo
(opencharly/docs#162, opencharly/docs PR for the step-deadline checker), and it
reports 174 findings across 27 workflow files in 8 repos when pointed at the org.
Measured - 2026-10-25, against main in 8 repos
| repo | workflow files | steps with no deadline | jobs with no total deadline |
|---|---|---|---|
| opencharly/.github | 13 | 70 | 11 |
| opencharly/charly | 4 | 26 | 5 |
| opencharly/marketplace | 3 | 20 | 5 |
| opencharly/plugin-task | 2 | 13 | 5 |
| opencharly/spec | 2 | 7 | 3 |
| opencharly/layer-charly-internals | 1 | 1 | 2 |
| opencharly/opencharly | 1 | 1 | 2 |
| opencharly/plugin-check | 1 | 1 | 2 |
| total | 27 | 139 | 35 |
Every sampled file carries at least one finding. The 8 repos are the ones with a
materialized checkout in this working set; the org has ~400 repos, so this is a LOWER
bound on the org's exposure, not a census.
Two further facts from the same measurement:
- Zero steps carry a deadline equal to or longer than their job's. So the "dead
bound" defect — a step bound that the job's deadline pre-empts, so the step's own
failure message is never what the reader sees — is not present in the org today. It
is a rule the checker enforces, and it is currently free. - The org's own reusable
tag-on-mergeworkflow (opencharly/.github/.github/workflows/tag-on-merge.yml)
carries no deadline of its own: neither its job nor either of its steps. It is
called from every repo, so it is the highest-leverage single file in the org for this
defect.
RCA
Mechanism. GitHub Actions applies timeout-minutes per step, and a job-level
timeout-minutes is the job's total deadline. A step that omits the key inherits
nothing: the runner's own limit applies, and the runner's limit is a job-level
failure. The property a step bound exists for — that the failure message says which
step died — is therefore exactly the property an unbounded step loses.
Missed control. Nothing in the org checks for it. The org's workflow checks live in
opencharly/.github/.github/scripts/ and cover action runtimes
(check-action-runtimes.py) and org-ruleset coherence; there is no control that reads a
workflow's structure and asserts a deadline per step. The docs repo now has one
(opencharly/docs/.github/scripts/check_step_timeouts.py, dependency-free, with a
--self-test mode, a committed mutation harness, and a PyYAML cross-check over a
defined, re-gatherable file set — this repo's two workflows and the opencharly/.github
repo's own 13, fetched fresh: 15 files / 0 mismatches) — and it is
repo-local, because this repo owns the org ruleset and the org's workflow policy, so
this is where the canonical copy belongs.
Blast radius. The table above: 139 unbounded steps and 35 unbounded jobs in the 27
sampled workflow files, and the org has roughly 400 repos behind that sample. The
failure mode is silent by construction — a workflow that has never hung looks
perfectly healthy — so nothing surfaces these until the one job that does hang, which
is by definition the one whose failure message is least informative.
Root fix. Three parts, and this issue owns the first two.
-
The canonical checker lives in this repo (
opencharly/.github/.github/scripts/),
next to the org's other workflow controls, so that every repo consumes ONE
implementation (R2) instead of each writing its own. -
Every workflow in the org carries a deadline per job and per step, with a step's
bound strictly SHORTER than its job's — otherwise the job's deadline fires first
and the step's is dead. This is a cutover across the repos in the table, and it
lands repo by repo. -
The consumption mechanism is a design question this issue should decide before
the cutover starts, and the two candidates are different in kind:- the org's required workflow (the same file that already defines
charly/pr-validatorand the required checkvalidate / validate) gains a
workflow-lint job that reads the checked-out repo's.github/workflows/and
fails on an unbounded step — one place, every repo, no per-repo wiring; or - each repo's own workflow gains a step that runs the canonical checker, the way
opencharly/docsnow does.
The first is org-wide by construction and cannot be forgotten by a repo that does not
know the rule exists. The second is per-repo, and a repo that never adds the step
keeps its unbounded steps forever. The trade-off is the first option's cost: a
required check that reads a repo's workflows needs the checkout and the script to be
available in the org's own reusable-workflow space, which is a shape this repo does
not have today. - the org's required workflow (the same file that already defines
Why this is not a one-repo fix. The 174 findings are in 8 repos, and each repo
lands its own cutover with its own PR and its own gate. A single PR cannot honestly
prove 8 repos' workflows, and this org's rulebook requires that the gate for a change
class runs on the changed tree. So the generalization is a sequence, and this issue
tracks it.
Where the first instance already lives. opencharly/docs carries the rule for its
own two workflows today (the deploy job and the tag-on-merge dispatcher), proven by a
--self-test that fails on the pre-change files. When the canonical copy lands here,
that repo-local copy is deleted in the same cutover (R5), not left beside it.
Related
opencharly/docs#162— the instance this was found in, and the repo-local checker.opencharly/.github#243— runner labels mix vCPU classes, so a heavy job is
cancelled by scheduling rather than by failure. A different mechanism, and a
complementary one: a deadline turns a hang into a named failure, and that only helps
if the runner is big enough to start the job.opencharly/.github#244— a runner lost mid-step leaves a red required check with no
log artifact. Also a different mechanism, and also complementary: a deadline names
the step, so a lost runner is distinguishable from a hung step.
Activity
aitrawog commentedon Oct 25, 2026
STATUS — new evidence for the template's own bound, a correction to this issue's cross-check figure, and the measured demonstration that a hand-added deadline in a copy is the wrong place to put it.
Agent: docs-step-deadlines
1. The template's bound can be sized from data, not guessed
This issue says the org's reusable
tag-on-mergeworkflow is the highest-leverage single file in the org, because it is called from every repo. Here is the measurement for the caller that invokes it, from this repo's own 141 successful runs ofopencharly/docs/.github/workflows/tag-on-merge.yml:The whole caller run's maximum is 5.55 min; the
tag / tag-and-changelogjob's maximum is 1.88 min; thewait-for-mergejob's maximum is 5.23 min over the 124 runs that have one. A bound in the template sized from these would be an order of magnitude above the observed maxima, and it would still fire far sooner than the runner's own six-hour limit.The population's limit, stated: this is one repo's 141 runs, not the org's. The org-wide population is this issue's own sweep to gather — the bound should be sized from the whole population, and the numbers above are what one repo's copy shows.
2. A deadline in a COPY is the wrong place, and that is now measured, not argued
opencharly/docs#184(the PR that installs the deadline rule in this repo) first added a deadline to this repo's copy of the caller —.github/workflows/tag-on-merge.yml. That was wrong twice over, and the round-2 commit undid it:scripts/reconcile-tag-on-merge-callers.sh verify(read-only, run today over the whole org) reports 418 repos examined, 415 prose-drifted, 3 canonical, 408 pin-mutable and 10 pin-pinned. A bound that the org's own tooling can silently revert is not a bound.So the copy is restored byte-identical to
main, the checker reports the copy (naming this issue and the copy-to-template binding) instead of asserting it, and the bound belongs here, in the template that 418 repos read.3. A correction to this issue's body
The body says the docs repo's checker has "a PyYAML cross-check at 29 files / 0 mismatches". The cross-check was re-run against a defined, re-gatherable file set — this repo's two workflows and the opencharly/.github repo's own 13, fetched fresh over HTTPS — and the figure is now 15 files / 0 mismatches, with the negative control still firing (1 mismatch, exit 1) on the
mutBmutant. The tool is author-side and is pasted in full in the PR body, so the claim is reproducible; the old 29-file figure named a set that was not defined anywhere and is gone.Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)
fix(ci): keep the deadline rule on the workflows this repo owns (#162)
fix(ci): bound every job and step in this repo's workflows, and keep …