Skip to content

ci: refuse cells given to a level that names no cell job - #290

Merged
aRustyDev merged 1 commit into
mainfrom
ci/no-cells-without-a-cell-job
Nov 18, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
ci/no-cells-without-a-cell-job

Conversation

@aRustyDev

@aRustyDev aRustyDev commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

What

A follow-up to M5b (#281), which you asked for after it merged. One rule in assert-gate.sh: a level that names no cell job and is given
cells is refused (cells are planned but no cell job is named (CELL_JOB)). Plus a note in the plan's Test phase about what #279 left for it.

Why

#281 made the default cell job none, because ci.yml's gate no longer judges cells, and said plainly what that cost: a verdict job that
forgets its cell job judges no cells and passes. Only the wiring test held test.yml to name it. But the verdict action passes cells
to the judge whatever cell-job says, so a forgotten cell-job reaches assert-gate.sh as a level with no cell job and a non-empty
PLANNED
. That is the case this rule refuses, so a forgotten cell job now fails in the run, on every run that plans a cell, as it did
before M5b, and not only in the wiring test.

What does not change: only an unset PLANNED or an empty array counts as "no cells". ci.yml's gate passes no PLANNED, and the four
workflows without cells get the action's default [], so neither judges differently. test.yml names contract, so the rule never applies to it.

The tests

  • test-ci-scripts.sh, 201 cases (were 196). ci: move the contract cells and the judging of their markers into test.yml (migration M5b) #281 had a case saying the opposite: the gate given PLANNED='{}' ignores it and passes.
    That case is replaced by five: two cells, an object, and text that is not JSON are each refused; [] and [ ] pass. And a verdict job that
    forgot CELL_JOB and is given cells is refused. The one that forgot it and is given none still passes, as the four workflows without cells do.
  • mutate_gate.py, 229 hand mutants, each killed, three of them new: the rule removed, the empty array compared by its text and not
    its JSON value ([ ] would be refused), and PLANNED not read at all. The 9 that change nothing survive.
  • Locally, under dash: every command of deps (21, from lint.yml, the OpenAPI diff among them) and of ci-scripts (43, from test.yml): 64 of 64 exit 0. The planner and the workflows are not touched.

This PR's own run

Full, because it edits assert-gate.sh (run 44187852413, head 94bd1e0): 42 jobs, all success. gate printed ok: 5 expected jobs passed, the rest were skipped; test / verdict found 53 artifacts and printed ok: 5 expected jobs passed, the rest were skipped; 26 of 26 planned cells reported success, so the rule does not touch a level that names its cell job. In test / ci-scripts: the gate's cases passed=201 bad=0, and
mutants=229 killed=229 survived=0 broken=0 equivalent-wrong=0 under the runner's dash.

No probe on the real files. The only way to forget the cell job in them is to drop cell-job: contract from test.yml, which the wiring test
reads, so a probe would fail ci-scripts first and show nothing of the rule. The rule is shown by its six cases and three mutants instead.

The note for the Test phase

PLAN.md's row for phase 2 now says what #279 (the preview control plane, merged after M5a) left for it:

  • preview-control-tests.yml runs on every pull request outside gate. It repeats five ci-scripts commands and the provisioner's step of
    pg-adapter, and the provisioner's tests, which hermetic runs too.
  • It is the only place the provisioner's wasm32 build is checked, so no check gate waits for covers that build.
  • plan-ci.py plans infra/preview/, infra/cloudflare/ and thrust-preview-provisioner in a branch before RULES, not as rules. So the
    one-sample-per-rule check and the rule-effect mutants don't reach that code.

This PR changes none of that: it is a note for the phase that reworks test.yml.

🤖 Generated with Claude Code

Since M5b (#281) assert-gate.sh's default cell job is none, so a
verdict job that forgot its cell job judged no cells and passed; the
wiring test was the only thing that held test.yml to name it. The
verdict action passes `cells` through whatever `cell-job` says, so a
forgotten `cell-job` arrives here as a level with no cell job and a
non-empty PLANNED. That is now refused ("cells are planned but no cell
job is named"): only an unset PLANNED or an empty array is no cells.
The four workflows without cells are given the action's default `[]`
and ci.yml's gate none, so neither changes.

- test-ci-scripts.sh: the gate case that ignored a PLANNED it was given
  is replaced by five (two cells, an object, not JSON: refused; `[]`
  and `[ ]`: passed), and a verdict job that forgot CELL_JOB and is
  given cells is refused (201 cases, were 196).
- mutate_gate.py: three mutants of the rule (removed, compared by text,
  reading no PLANNED), each killed.
- PLAN.md: the Test phase's row records what #279 left for it: an
  ungated workflow that repeats test.yml's preview commands and is the
  only check of the provisioner's wasm32 build, and planner paths
  handled before RULES.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@aRustyDev
aRustyDev merged commit 388dddc into main Nov 18, 2026
46 checks passed
@aRustyDev
aRustyDev deleted the ci/no-cells-without-a-cell-job branch November 18, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant