Skip to content

probe: a planned job of documentation.yml is skipped (DO NOT MERGE) - #255

Closed
aRustyDev wants to merge 3 commits into
mainfrom
probe/documentation-job-skipped
Closed

aRustyDev wants to merge 3 commits into
mainfrom
probe/documentation-job-skipped

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

DO NOT MERGE: a probe of #254, closed once its run is read

docs is planned (this edits a workflow, so every job is) and its if reads contains(fromJSON(inputs.plan), 'docs') && false, so it
never runs. The text still contains the if that test_workflow_wiring.py looks for, and lint-all-workflows.sh and actionlint
pass, so only the real gate can object. Expected, in this run:

  • documentation / docs: skipped; documentation / verdict: failure, saying docs was expected to run and its result is 'skipped';
  • documentation: failure; gate: red, naming documentation;
  • ci-scripts, deps and every other job: green (so that gate reaches documentation).

Invariant 3 of the plan, shown on the real files: a planned job that is skipped inside a called workflow turns gate red.

aRustyDev and others added 3 commits November 16, 2026 21:42
All four were answered as recommended: the simplest callee first (M1 is documentation.yml,
test.yml is fifth), the job ids kept through the migration, flake-hunt.yml left as it is and
made a stage of the Test phase, and lowercase workflow names. PLAN.md's decisions table,
its Phase 1 section (the rules, the stage table in the new order, the done-when list) and its
status, and the phase document's questions section (now decisions), say so; no question is
left open.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rkflow (migration M1)

Phase 1 of the CI split, stage M1 (ADR-0102): the `docs` job leaves ci.yml for a workflow of
its own that ci.yml calls and `gate` judges twice. A refactor: the job keeps its id, its steps,
its pins and its comment, byte for byte.

documentation.yml has the `docs` job, which runs when its `plan` input names it, and a
`verdict` job that judges `docs` against that plan with the one script (assert-gate.sh) and
sets the output `verdict=pass` only after it did. It is called by ci.yml and runs alone by
dispatch (plan defaults to ["docs"]); it sets no workflow-level concurrency and reads no event
name (R8, R9).

ci.yml: `changes` outputs `top` and `plans`, which the planner already printed; a calling job
`documentation` replaces `docs`; `gate` needs it, judges `top` and not every planned job, and
sets VERDICT_JOBS=documentation, a static list and not the planner's output, so a planner
that dropped a workflow could not switch its check off. The planner's WORKFLOWS names the
workflow, and the gate's default list follows.

Proof that it is the same, as the phase plan requires:
- .agents/plans/ci-workflows/scripts/ci-commands.py compares every step of every job on main
  and on this branch, a job being the same job wherever it lives: `docs` moved with its 4
  steps identical, 30 jobs unchanged, and the only differences are the three expected ones
  (changes gains two outputs, gate gains `top` and VERDICT_JOBS, ci-scripts gains test lines)
  and the two new jobs. Its self-test has 24 checks and 13 planted bugs, each caught.
- test_workflow_wiring.py, new, holds ci.yml, the planner and the workflow's file to each
  other (35 checks); the gate's tests now model the real gate, with a `verdict` output on the
  called workflow and the cases for it missing, empty and `fail` (178 cases).
- mutate_gate.py now also mutates ci.yml and documentation.yml: 76 mutants, each killed by
  the check meant for it (checked one by one), and four that change nothing survive.

The planner's test_plan_ci.py pins the map (EXPECTED_WORKFLOWS), so each stage's change to it
shows in that file. ci-baseline.py's default job groups follow the migration; research 0017
now says which names a window before the migration needs.

The book was not built locally (mdbook-mermaid is not installed here): the `docs` job of this
pull request's own run is that check, through the new workflow.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…if (DO NOT MERGE)

A probe of the migration's M1, closed unmerged. `docs` is planned (this edits a workflow, so every job
is) and its `if` reads `... && false`, so it never runs. Its text still contains
`if: contains(fromJSON(inputs.plan), 'docs')`, so test_workflow_wiring.py does not see it: the
point is what the REAL gate does. Expected: the verdict job fails ("docs was expected to run and its
result is 'skipped'"), documentation fails, and gate is red naming documentation.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@aRustyDev

Copy link
Copy Markdown
Owner Author

Closed unmerged: its run (44006542560) has been read.

Result: the real gate went red, for this fault and no other.

  • Failed jobs: documentation / verdict and gate. Every other job was green, so gate reached documentation.
  • documentation / docs: skipped.
  • The verdict job's own log: docs was expected to run and its result is 'skipped'.
  • gate's log: documentation was expected to run and its result is 'failure'.

A planned job skipped inside a called workflow turns gate red on the real files (invariant 3 of the plan), with all the text checks
(test_workflow_wiring.py, lint, actionlint) green. Recorded in #254.

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