Skip to content

docs(plans): plan Phase 1 of the CI split, the migration - #251

Merged
aRustyDev merged 1 commit into
mainfrom
docs/ci-phase-1-migration
Nov 17, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
docs/ci-phase-1-migration

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What

Phase 0 of the CI split is done (#223, #225, #230, #236, #239, #245, #249). This is the plan for Phase 1, the migration:
phases/0002-migration.md, plus the plan's status table rewritten for the present. Docs only; nothing in .github/ changes.

The phase in short

A refactor is only a refactor if something shows it, so every stage's pull request carries: a parity table; a mechanical
check
of it (a script that compares the steps of two sets of workflows, treating a job as the same job wherever it lives,
with a control: a dropped step and a changed command must each be reported); a full run and an affected-only run, both green;
and two probes (draft pull requests closed unmerged) that make the real wiring fail: a planned job skipped inside the new
workflow, and the new workflow's verdict job skipped. Each must turn the real gate red.

M1 is written out in full; M2 to M6 are listed with why they sit where they do and are planned when they start.

What reading the files found, and what it changes

Found Consequence
flake-hunt.yml has a workflow-level concurrency: and reads an empty inputs as "a scheduled run" Folding it into test.yml breaks R8 and sits on the edge of R9, the rules this very plan added in #249
Renaming a job id costs ~20 to 40 lines of the planner, gate, tests and mutants, and 20 to 40 of docs, per job; ci-scripts is not one-to-one with bash (it also runs the planner's Python tests and the mutants) My plan's "rename where the layout names the same job" was an assumption
docs is one job: no matrix, no cell markers, no secrets, no Docker It is the best first callee; test.yml is the worst (the matrix call and the markers)
VERDICT_JOBS must not come from the planner's workflows output A planner bug that dropped a workflow from that output would switch off the check for it; ci.yml sets it as a static list, and a test holds it equal to the keys of WORKFLOWS

Four questions for you

Each has a recommendation, in the document; none blocks writing M1, and each changes what M1 contains.

  1. The order. documentation.yml first and test.yml fifth (recommended), or test.yml first as the plan listed it?
  2. The job ids. Keep docs, ci-scripts, lint, deny through the migration and rename them in the phase that owns the
    workflow (recommended), or rename as each moves?
  3. flake-hunt.yml. Fold it into test.yml in M5 as planned; keep it as it is and make it a stage of the Test phase
    (recommended); or leave it a workflow of its own for good?
  4. The workflows' name:. The repository's convention is lowercase (documentation, security, test), which is what the
    check list and workflow_run's workflows: show (recommended); your tree has them capitalised.

Also by your rule, and not a question: the verdict composite action is made in M2, where the same steps stand in two files
(M1 has one callee, and an action drawn from one example guesses its inputs). The verdict job of test.yml also downloads the
cell markers, so it is not an exact copy; I will ask about it when M5 starts, with the two side by side.

Verification

  • plan-ci.py on this diff, run locally: 0 jobs, 0 of 26 cells, so only changes and gate should run.
  • Every relative link in the three files resolves.
  • The counts in the document (the deps job's 16 steps, the web job's two job-level variables, the lines a rename touches)
    were taken from main at f263ab4 on 2026-11-17.

🤖 Generated with Claude Code

phases/0002-migration.md plans the refactor-only move of today's jobs out of ci.yml: what
"the same" means and how each pull request proves it (a parity table, a script that compares
the steps of two sets of workflows with a control, a full and an affected-only run, and two
probes that must turn the real gate red), what exists today, the order of the stages, the
first stage in detail, and four questions for the owner.

Reading the files for it found three things the first plan did not know, each stated in the
document with its evidence:

- flake-hunt.yml cannot be folded into test.yml without bending two of ADR-0102's own rules:
  it sets a workflow-level concurrency (R8) and tells a scheduled run by an empty `inputs`
  (R9).
- Renaming a job id (docs, ci-scripts) costs about 60 lines of the planner, the gate, the
  tests and the mutants and 20 to 40 of documentation per job, and ci-scripts is not
  one-to-one with the owner's `bash` job.
- The first real callee should be the simplest job (docs: one job, no matrix, no markers), so
  that whatever the spike could not show is found where there is least to move; test.yml,
  with its matrix and cell markers, moves fifth.

PLAN.md's status table is rewritten for the present: Phase 0 done, Phase 1 planned and waiting
on the owner. The README map gains the phase document.

Docs only: plan-ci.py plans no job for this diff.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev
aRustyDev merged commit 7229c93 into main Nov 17, 2026
14 checks passed
@aRustyDev
aRustyDev deleted the docs/ci-phase-1-migration branch November 17, 2026 02:38
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