Repository navigation
Conversation
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]>
Owner
Author
|
Closed unmerged: its run (44006550457) has been read. Result: the real gate went red, for this fault and no other.
This is the case the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE: a probe of #254, closed once its run is read
The step that sets the
verdictoutput is skipped (if: inputs.plan == 'a plan nobody gives', false for every real plan; a constantif: falseis refused byactionlint).docsruns and passes,verdictpasses, the workflow issuccess, and its output is empty:what a skipped
verdictjob looks like togate. The text checks all pass (test_workflow_wiring.py, lint,actionlint), soonly the real
gatecan object. Expected, in this run:documentation / docsanddocumentation / verdict: success;documentation: success;gate: red, sayingdocumentation succeeded but its verdict output is 'missing', not 'pass';gatereachesdocumentation).This is the case design A+ exists for (research 0018: design
a, without the output rule, passes it). A real skip of the job itselfcannot be planted without breaking
if: always(), which the wiring test checks, and a redci-scriptswould come first in thegate's
needsand hide the message.