Skip to content

docs(adr): decide one workflow per concern, each called workflow judged by a verdict job (ADR-0102) - #239

Merged
aRustyDev merged 1 commit into
mainfrom
docs/adr-0102-called-workflows
Nov 16, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
docs/adr-0102-called-workflows

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What

Stage 0.1 of Phase 0 of the CI split (plan): ADR-0102, which records the shape the
split takes and how gate judges a called workflow. Docs only; nothing in .github/ changes.

Merging this accepts the judging design (A+). The orchestrator, the name verdict, the mutant driver and actionlint are
your recorded decisions of 2026-11-16, and the spike's results (#236) were merged; but A+ itself was chosen by the spike's
measurements, and this is the first place it is written as a decision. The ADR is accepted, as the phase plan's acceptance
criterion says, so reading it is the moment to disagree.

The decision

  • ci.yml stays ci and holds changes, one calling job per concern workflow, and gate. The ruleset, deploy.yml's
    workflow_run trigger and the name gate do not change.
  • Every called workflow ends with a verdict job (if: always(), needs every job of its workflow). It runs the one
    judging script, and only if that passes does it set the output verdict=pass.
  • gate requires, for each expected callee, result == success and outputs.verdict == pass. The output is the point of
    the +: without it, a verdict job that is itself skipped leaves the callee green.

Five designs against seven scenarios (research 0018): the calling job's result alone was wrong on 3, the same without the
output on 1, re-actors/alls-green on 2, A+ on 0.

What else is in it

  • Six conventions for a called workflow, each tied to the measured fact behind it: route by an input (F1, F2); no
    workflow-level concurrency, because it deadlocks the run (F3); ask for no permission the caller did not grant, or the run
    does not start (F8); the lint rules it already satisfies (F10); an if that errors skips its job (F9); depth.
  • Five options weighed, including a gate in every workflow, which ADR-0100 had already named and rejected.
  • A Confirmation that names the check for each convention. The checks of stages 0.3 and 0.4 are in place when those stages
    merge; conventions 3 and 6 are enforced by GitHub itself.
  • Costs stated, including the one that stays: nothing judges the judge of a callee run alone.
  • ADR-0100 gets a dated note; the ADR index gets a row; the plan's status records the stage as written.

Verification

  • plan-ci.py on this diff, run locally: 0 jobs, 0 of 25 cells, so only changes and gate should run.
  • All 94 relative links in the six changed documents resolve.

Next: stages 0.3 (the planner, the gate and the mutant driver) and 0.4 (the lint rules, actionlint and the indexes); they can
run side by side.

🤖 Generated with Claude Code

…ed by a verdict job (ADR-0102)

ADR-0102 records the shape the CI split takes and the design the spike chose
(research 0018): a thin ci.yml keeps the planner, one calling job per concern
workflow and the one required gate; every called workflow ends with a `verdict` job
that runs the one judging script and sets the output `verdict=pass`; gate requires
each expected callee's result to be success and that output to be pass. Five designs
against seven scenarios: the calling job's result alone was wrong on three, the
same without the output on one, re-actors/alls-green on two, this one on none.

It states six conventions for a called workflow, each tied to the fact that
justifies it (it routes by an input, sets no workflow-level concurrency, asks for no
permission its caller does not grant, and so on), and a Confirmation that names the
check for each: the ones of stages 0.3 and 0.4 are in place when those merge, and two
are enforced by GitHub itself. The five options are weighed, including a gate in
every workflow, which ADR-0100 already named and rejected.

ADR-0100 gets a dated note and the ADR index a row. The plan's status records stage
0.1 as written.

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

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev
aRustyDev merged commit 125ac44 into main Nov 16, 2026
14 checks passed
@aRustyDev
aRustyDev deleted the docs/adr-0102-called-workflows branch November 16, 2026 22:10
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