Skip to content

docs(plans): plan Phase 0 of the CI split, the foundation - #225

Merged
aRustyDev merged 1 commit into
mainfrom
docs/ci-workflows-phase-0
Nov 16, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
docs/ci-workflows-phase-0

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What

Adds .agents/plans/ci-workflows/phases/0001-foundation.md, the detailed plan for Phase 0 of the CI split (#223), and
corrects PLAN.md where reading the code for it showed the first plan was wrong. Docs only; nothing in .github/
changes.

The phase in short

Five stages, in the order 0.5, 0.2, 0.1, 0.3, 0.4:

  • 0.5 baseline: runner-minutes and wall clock per job on today's ci, so later passes have something to be measured against.
  • 0.2 spike (a draft pull request, closed unmerged): chooses how gate judges a job inside a called workflow, by running
    two designs (a verdict per callee; the callee reports and the one gate judges) and re-actors/alls-green on seven
    must-fail scenarios, and by measuring eight facts the plan assumes.
  • 0.1 ADR-0102 records the choice. 0.3 changes the planner and the gate with no change in behaviour. 0.4 adds
    lint rules for the conventions and the two index READMEs.

What reading the code changed in PLAN.md

Found Change
GitHub reports 0 billable minutes here (gh api .../actions/runs/43942132459/timing: total_ms: 0, run_duration_ms: 51000) Passes 5 to 7 and the baseline use runner-minutes and wall clock
plan-ci.py runs everything for ci.yml and contract-cell.yml only; any other workflow file plans just ci-scripts and deps Stage 0.3 names the new workflow files, with a test over the real directory, so a change to test.yml cannot skip the tests
lint-workflow.sh accepts local uses: and lint-all-workflows.sh gives an unnamed workflow the strictest policy Stage 0.4 is no longer a credentials registry; it adds rules R8 and R9 for the conventions
The 34 hand mutants of the planner and the gate are documented in cicd.md as "verified locally; not yet in CI", and the driver was a session scratchpad file Invariant 6 says so; stage 0.3 commits the driver
The plan assumed a gate per callee Now one of two candidates, decided by the spike

Questions for the owner (also at the end of the phase document)

  1. Name for a callee's final job: proposed verdict.
  2. Commit the mutant driver and run it in ci-scripts, or by hand? Recommended: in CI.
  3. Add actionlint as a pinned check? It validates the with: contracts the split creates; it is not in CI today.

Verification

  • plan-ci.py on this diff, run locally: 0 jobs, 0 of 25 cells, so only changes and gate should run.
  • Every relative link in the three files resolves.
  • Line references in the phase document were read from main at b8702d3.

🤖 Generated with Claude Code

phases/0001-foundation.md plans stages 0.1 to 0.5 in detail: the baseline, a
spike that chooses how gate judges a called workflow, the ADR that records it,
the planner and gate changes, and the lint conventions. Reading the scripts
for it changed the plan in four places, which PLAN.md now says:

- GitHub reports 0 billable minutes on this public repository, so passes 5 to
  7 and the baseline measure runner-minutes and wall clock.
- plan-ci.py runs everything for ci.yml and contract-cell.yml only, so a
  change to a new test.yml would plan just ci-scripts and deps. Stage 0.3
  names the new workflow files, with a test over the real directory.
- lint-all-workflows.sh needs no change for called workflows (a workflow it
  does not name gets the strictest policy); stage 0.4 adds rules for the
  conventions instead.
- The driver for the 34 hand mutants of the planner and the gate is not in the
  repository, so invariant 6 could not be checked by anyone; stage 0.3 commits
  it.

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

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev
aRustyDev merged commit 9804f68 into main Nov 16, 2026
14 checks passed
@aRustyDev
aRustyDev deleted the docs/ci-workflows-phase-0 branch November 16, 2026 20:15
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