Skip to content

docs(plans): choose how gate judges a called workflow, from the spike (stage 0.2) - #236

Merged
aRustyDev merged 1 commit into
mainfrom
docs/ci-gate-spike
Nov 16, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
docs/ci-gate-spike

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What

Stage 0.2 of Phase 0 of the CI split (plan): what the gate spike (draft #232, closed
unmerged) measured, the design it chose, and the corrections it forced into the plan. Docs only; nothing in .github/ changes.

The choice: A+

Every called workflow ends with a verdict job, and gate requires the callee's result to be success and its
verdict output to be pass. Five designs ran against seven scenarios, in two identical samples:

wrong decisions of 7 why
naive (the calling job's result only; the control) 3 it passes a skipped planned job, an unplanned job that ran, and a skipped judge
a (a verdict job, no output required) 1 a skipped verdict job leaves the callee green and nothing notices
aplus 0
b (the callee reports, gate judges) 0 but a callee run alone is not judged: its result stayed success
allsgreen (re-actors/alls-green as the verdict) 2 it cannot say an unplanned job must not run, nor judge a skipped judge

What measuring corrected in the plan

The plan said Measured
a calling job is success when every job inside was skipped success when one inner job succeeded and a planned one was skipped; skipped when none ran (a valid empty plan, run 43964175381)
a callee's concurrency might cancel or wait on its caller the run starts no job: deadlock was detected for concurrency group 'spike-f3-refs/pull/232/merge' between a top level workflow and 'call'
(not stated) a callee asking for more permission than its caller grants startup_failure: the run does not start, so no gate would report
(not stated) an if that cannot be evaluated skips the job silently
actionlint would check the with: contracts it does, and refuses an undeclared input, a missing one and an undeclared output, but only inside a git repository; in a plain directory it checked nothing

Also: flagship.yml (#229) is added to the inventory, and the test-suites plan (#234) is cross-referenced, since its pull
requests edit commands inside jobs that Phase 1 moves.

Eleven facts in all, each with its run id, in research/0018-gate-spike.md; the 35 legs are appended to it as the runs
reported them.

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 five documents resolves.
  • Four statements were checked against the logs before they went in: aplus's green leg carried verdict=pass, b's carried its
    results, the F3 and F8 messages are from the run pages (the REST API does not expose them), and the second sample's matrix is
    identical to the first.

The spike's branch chore/spike-gate-judging is left in place: its commits are what the results refer to.

🤖 Generated with Claude Code

… (stage 0.2)

research/0018-gate-spike.md records what the spike (draft #232, closed) measured: five
designs against seven scenarios, and eleven facts, in two identical samples. The choice
is A+: every called workflow ends with a `verdict` job, and gate requires the callee's
result to be success and its `verdict` output to be pass. It was right on all seven
scenarios; the control (the calling job's result only) was wrong on three, the same
without the output on one, and re-actors/alls-green on two.

The measurements corrected the plan, and PLAN.md and phases/0001-foundation.md say so:

- A calling job is success when at least one job inside it succeeded, even if a planned
  sibling was skipped; with nothing inside run it is skipped. The plan had said success
  when every job inside was skipped.
- A callee's workflow-level concurrency deadlocks the run and starts no job (the group is
  built from the caller's name), and a permission its caller did not grant stops the run
  from starting, so no gate would report.
- An if that cannot be evaluated skips the job without failing it.
- actionlint refuses a broken call contract, but only inside a git repository.

Also recorded: flagship.yml (#229) on the inventory, and the test-suites plan (#234),
whose pull requests edit commands inside jobs that Phase 1 moves.

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

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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