Skip to content

probe: documentation.yml succeeds and never says verdict=pass (DO NOT MERGE) - #256

Closed
aRustyDev wants to merge 3 commits into
mainfrom
probe/documentation-verdict-missing
Closed

aRustyDev wants to merge 3 commits into
mainfrom
probe/documentation-verdict-missing

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

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

The step that sets the verdict output is skipped (if: inputs.plan == 'a plan nobody gives', false for every real plan; a constant
if: false is refused by actionlint). docs runs and passes, verdict passes, the workflow is success, and its output is empty:
what a skipped verdict job looks like to gate. The text checks all pass (test_workflow_wiring.py, lint, actionlint), so
only the real gate can object. Expected, in this run:

  • documentation / docs and documentation / verdict: success; documentation: success;
  • gate: red, saying documentation succeeded but its verdict output is 'missing', not 'pass';
  • every other job: green (so that gate reaches documentation).

This is the case design A+ exists for (research 0018: design a, without the output rule, passes it). A real skip of the job itself
cannot be planted without breaking if: always(), which the wiring test checks, and a red ci-scripts would come first in the
gate's needs and hide the message.

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]>
… MERGE)

A probe of the migration's M1, closed unmerged. The step that sets the `verdict` output is skipped
(`if: inputs.plan == 'a plan nobody gives'`, false for every real plan; a constant `if: false` is
refused by actionlint). `docs` runs and passes, `verdict` passes, the workflow is `success`, and its
output is empty: what a skipped `verdict` job looks like to ci.yml's gate. A real skip of the job
cannot be planted without breaking `if: always()`, which test_workflow_wiring.py checks, and a red
ci-scripts would come first in the gate's `needs` and hide the message this probe is for. The text
checks all pass (wiring test, lint, actionlint). Expected: gate is red with "documentation succeeded
but its verdict output is 'missing', not 'pass'".

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

Copy link
Copy Markdown
Owner Author

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

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

  • Failed jobs: gate alone. documentation / docs and documentation / verdict both succeeded, and so did documentation.
  • gate's log: documentation succeeded but its verdict output is 'missing', not 'pass': it calls a workflow, and one whose verdict job did not run proves nothing.

This is the case the + of design A+ exists for (research 0018: a design without the output rule passes it), shown on the real files,
with all the text checks 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