Skip to content

ci: one PR workflow, one change detection — every required context is one always-run gate job (#18208) - #19621

Merged
mrveiss merged 84 commits into
mainfrom
issue-18208-one-ci-workflow
Nov 12, 2026
Merged

mrveiss merged 84 commits into
mainfrom
issue-18208-one-ci-workflow

Conversation

@mrveiss

@mrveiss mrveiss commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

What Changed

Verification

  • actionlint v1.7.12 over every workflow: clean.
  • Local, against the branch merged with main: filters_moved_intact_18208_test.py, python_filter_covers_its_guards_test.py, required_context_complements_test.py and migration_gate_filter_covers_what_its_tests_import_test.py: 90 passed. reach_declarations_test.py: 885 passed. docker_smoke_required_context_17126_test.py and reach_allowance_verdicts_17914_test.py: 11 passed. Pre-push (fast gate): passed at 5d0a878.
  • After the 2026-10-30 merge: filters_moved_intact_18208_test.py, required_context_complements_test.py, ci_shard_count_message_test.py, python_filter_covers_its_guards_test.py, filter_keys_are_unique_18208_test.py, gate_verdict_18208_test.py, one_paths_filter_job_15360_test.py and glob_declared_reads_15900_test.py: 142 passed. actionlint was not re-run, and CI has not been read.
  • Fail demo at a8c3d7c, on a scratch copy of the tree, by removing if: always() from the code-quality gate: required_context_complements_test.py went from 17 passed to 1 failed, test_every_required_context_has_one_always_reporting_publisher; reverted, 17 passed. This shows the guard catches it. No CI run was made with the mutation.
  • Draft run at the same head: the python-suite, code-quality, api-wiring, migration-matrix and Unit & Integration Tests gates report failure, as D4 intends (the other four were not read). 58 check rows, above the queue tool's 40-row floor; a ready PR adds the shards.
  • Local tooling reviewed for the cutover. ci-gate now reports DRAFT for a draft and no longer waits on a bare migration-tests row. The pr-queue-gate logic needed no change; only a note was added. Both still work with today's workflows. The real non-draft run of these has not happened.
  • Still owed before the solo train: the owner's settings steps D6/D7, asked 2026-10-30, and the solo slot.
  • Merge bar: all 11 required contexts must be shown reporting on THIS PR's own head (9 gates from ci.yml plus the two governance workflows), each concluding success, none skipped.
  • Revert plan: one git revert -m 1 <merge commit> restores python-required-context.yml, backend-required-context.yml, code-quality-required-context.yml, frontend-required-context.yml, docker-smoke-required-context.yml, _changes.yml, code-quality.yml, startup-import-smoke.yml, frontend-test.yml, docker-smoke-test.yml, api-wiring.yml, migration-gate.yml, verify-generated-types.yml, enforce-precommit.yml, security.yml, codeql.yml, ai-security-review.yml, npm-package-tests.yml, slm-frontend-check.yml, the old ci.yml, and the old filters and guards. Branch protection needs no change either way because the 11 names are identical. In-flight PR runs started under the merged workflow need a re-push after a revert.

Model Used

Claude Opus 5.5

Issue Link

Refs #18208 (AC 1, 2, 4; AC 3 is proven later by two proof PRs). Closes #15360 only after the proof PRs. Refs #18191 (fixed by this PR, D9), #18558 (workflow rows only), #18106, #17391, #14922.

🤖 Generated with Claude Code

Main merge, 2026-11-08 (this push)

Conflicts with main resolved on top of the cutover, keeping every job and context:

  • migration-gate.yml and codeql.yml (deleted here, edited on main): main's 7 migration path entries are in .github/filters/gate-paths.yml migrations; fakeredis[lua] is in _gate-migration.yml; codeql-action v4.39.2 pins are in _gate-codeql.yml and _gate-security.yml; the redis ACL step is in _gate-docker-smoke.yml.
  • changes_job_equivalence_15360_test.py stays retired; main's **/pyproject.toml, docs/DEPENDENCIES.md and docker/write-redis-acl.sh entries are in .github/filters/python-paths.yml.
  • _gate-slm-frontend.yml: main's relocated locale step kept once, with the reusable inputs.slm_frontend condition. _gate-precommit.yml: main's comment wording kept.
  • ISSUE_17822_COUNT re-measured by running filters_moved_intact_18208_test.py against the merged gate-paths.yml: 37, equal to main after security(auth): admin status can't be changed, and the role routes don't affect it #20670 (30 at the earlier merge; the 24 once seen was an intermediate value); it passes.
  • File count against main: 99 at this push (limit 100), no split.

#18208 acceptance criteria

AC Evidence
Design note Issue #18208 body and comment 6381928126 (D1-D10, accepted by the owner)
Change detection runs once per PR one changes job, ci.yml:76-80 (name: Detect changed paths); .github/workflows/_changes.yml deleted; filter_keys_are_unique_18208_test.py, one_paths_filter_job_15360_test.py pass
Docs-only and Python-only PR outcomes equal today's, proven by a CI run on each NOT MET. Needs the two proof PRs after this lands (see Issue Link)
No required context can be skipped without an always-reporting publisher, enforced by a guard required_context_complements_test.py:232 (test_every_required_context_has_one_always_reporting_publisher), controls at :284-324, :356; gates at ci.yml:797,904,979,1017,1054,1092,1133,1174
Merge queue (merge_group) keeps running the gates; #18191 ci.yml:36 trigger; `base: ${{ github.event.merge_group.base_sha

Operational impact

  • Required contexts: the 11 names are unchanged (the 9 gates in ci.yml plus the two governance workflows). No branch-protection edit is needed on the critical path, because contexts match by check-run name. python-suite is pinned to the GitHub Actions app; it stays published by ci.yml, so that pin still matches.
  • Jobs whose start condition changed: every former per-workflow changes job and the five *-required-context.yml shims are gone; their gated work now starts from the one changes job in ci.yml. The scheduled and dispatch runs of the moved gates move to the five scheduled-*.yml callers.
  • Security, CodeQL, docker-smoke, migration and the AI review now also run on stacked PRs (PRs whose base is not main or release). This is deliberate: it drops the per-workflow branches: [release, main] filter from ci: stacked PRs get no Python testing, and will hard-block once python-suite is required #14747, so the AI review (OAuth token, pull-requests: write) runs there too.
  • CodeQL check names move to ci.yml as run-codeql / Analyze (<lang>), and the analysis key moves with them. The first PRs after merge may have no base analysis to compare with until a main push completes. Post-merge check: run the alert ceiling script on the first main push and confirm the alerts re-key.
  • Secrets: _gate-code-quality.yml and _gate-ai-security-review.yml declare on.workflow_call.secrets (CONVENTIONS_DENYLIST, CLAUDE_CODE_OAUTH_TOKEN) and ci.yml passes exactly those names; no secrets: inherit remains in .github/workflows/, and gate_verdict_18208_test.py fails on one (with a planted control).
  • verify-generated-types now applies when the main or the SLM generated-types job applies, and fails if either one failed. python-suite also waits on provision-packages, so a cancelled provision ends the gate cancelled.
  • Draft PRs now fail the gates with "mark ready for review" (D4), except pre-commit.
  • Local checks this push: 222 passed (workflow/filter guards listed above plus docker_smoke_required_context_17126_test, codeql_alert_ceiling_is_wired_15333_test, compose_exposure_and_credentials_17500_test, gate_verdict_18208_test); YAML parse of 28 changed workflow/filter/action files OK; actionlint is unavailable locally (not on PATH, ~/.local/bin or go/bin), so CI's own actionlint workflow is the check for this push; the 2026-10-30 run in this body is the last local one. shell_lib_test.py::test_shell_suite_passes[scripts/pr-preflight_test.sh] times out under machine load; it is a known non-blocker and this PR does not touch it.
  • Refs, not Closes: the proof PRs for AC 3 are still owed.

Main merge, 2026-11-12

Plain merge of main (no rebase, no force-push). Details and tables are in the PR comment and in the design note docs/developer/CI_SINGLE_PIPELINE_18208.md (new; AC 1).

Verification, 2026-11-12 (what is NOT proven)

  • Nothing was run locally except the push hooks (fast guards and reach floors passed on the pushed head). The tests edited here (filters_moved_intact_18208_test.py, python_filter_uncovered_reads.py) have not been run; YAML of every touched workflow and filter file loads.
  • AC 3 (docs-only and Python-only PR outcomes equal today's, proven by CI runs) is owed; Refs #18208 stays.
  • Required-context behaviour on a real run, and merge-queue behaviour, are unobserved.
  • The branch has 101 changed files against main, one over the train limit of 100; the design note is the file that tipped it.

…s carried into the new homes (#18208)

Carried: #17764's cancel action on the three shim gates (wired into every ci.yml gate in the next
commit), 85b's workspace_lease.py migration-filter entry into gate-paths.yml migrations, the #17822
pinned-entry check into filters_moved_intact_18208_test.py, #18123's CODEQL_CHECK_SHA into the
ceiling count with the #18208 anchored names, and the pending-wait pattern anchored the same way.
…r scan, specific baseline reasons for the moved gate workflows, ALWAYS_RUN names the filters-moved test (#18208)
…module instead of trimming text to the 600-line ceiling (#18208)
…rkflow

# Conflicts:
#	.github/workflows/codeql.yml
…lters-moved test, docker-smoke scan's root recorded and floor repinned (#18208, #19472)
…rkflow

# Conflicts:
#	repo_tests/changes_job_equivalence_15360_test.py
#	tools/git-hooks/pre-push
…rkflow

# Conflicts:
#	.github/workflows/migration-gate.yml
#	repo_tests/changes_job_equivalence_15360_test.py
#	repo_tests/python_filter_uncovered_reads.py
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review
Walkthrough

CI path detection is centralised in ci.yml and uses shared filter files. Reusable workflows run check bodies. Always-running gates publish required-context verdicts. Scheduled workflows call reusable checks, and tests and guards validate the filter and gate structure.

Changes: CI gate consolidation

Layer / File(s) Summary
Central path detection and filter contracts
.github/filters/*, .github/workflows/ci.yml, pipeline-scripts/*, repo_tests/*filter*
Path detection now runs in ci.yml through shared filter files. Merge-group base handling and filter coverage checks are centralised.
Verdict action and required-context gates
.github/actions/gate-verdict/*, .github/workflows/ci.yml, repo_tests/gate_verdict_18208_test.py, repo_tests/required_context_complements_test.py
Required contexts use always-running gates that evaluate detection, applicability, draft state, work results and cancellation.
Reusable checks and scheduled callers
.github/workflows/_gate-*.yml, .github/workflows/scheduled-*.yml
Event-specific workflows become reusable bodies with caller inputs and completion outputs. Scheduled workflows invoke the reusable bodies.
Validation and workflow references
repo_tests/*, pipeline-scripts/*, docs/*, CONTRIBUTING.md, README.md, autobot-infrastructure/*
Tests, guards, documentation and workflow references now target the centralised filters and renamed reusable workflows.
Merge Risk: Low · previous review b0be6

The migration job still retains checkout credentials while tests run. Its permissions are read-only, but owners should assess this exposure before merging.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Linked Issues check Warning [#18191] The coding change is present. Every dorny/paths-filter@v4.0.3 step in ci.yml sets base: ${{ github.event.merge_group.base_sha || '' }}. one_paths_filter_job_15360_test.py checks this … For [#15360], retain or replace .github/workflows/_changes.yml with a workflow_call workflow that emits all required filter outputs. Convert every consumer to use that workflow. Keep the merge-group base handling and the canonical filte…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the central change: PR CI is consolidated into one workflow with one change-detection job, and each required context becomes one always-run gate job. The raw summary and objectives con…
Out of Scope Changes check Passed The changes support the stated CI consolidation. The central changes job, top-level required-context gates, reusable gate bodies, scheduled callers, filter moves, workflow renames, and related guard…
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the central change: PR CI is consolidated into one workflow with one change-detection job, and each required context becomes one always-run gate job. The raw summary and objectives confirm this: ci.yml gains a single changes job, nine top-level gate jobs use if: always(), and the reusable _gate-*.yml workflows replace the former standalone workflows. The title also cites #18208, which the test files reference. It is specific and descriptive. It does not mention the reusable-workflow conversion or the deleted _changes.yml, but it does not need to cover every detail. The title is long at 102 characters, which is slightly above the concise ideal, but it stays on topic and is readable.

Full details: Out of Scope Changes check

Explanation

The changes support the stated CI consolidation. The central changes job, top-level required-context gates, reusable gate bodies, scheduled callers, filter moves, workflow renames, and related guard and test updates implement or protect the consolidation and merge-group filter handling. Documentation, baseline, and tooling updates follow those workflow moves. The summary does not establish a concrete unrelated feature change.

Full details: Linked Issues check

Explanation

[#18191] The coding change is present. Every dorny/paths-filter@v4.0.3 step in ci.yml sets base: ${{ github.event.merge_group.base_sha || '' }}. one_paths_filter_job_15360_test.py checks this wiring. The reported merge-queue proof is operational evidence, not a coding requirement.

[#15360] The core reusable-workflow requirements are not met. The PR deletes .github/workflows/_changes.yml and places the seven filter steps in the non-reusable changes job in ci.yml. The updated guard explicitly requires ci.yml to be the only direct dorny/paths-filter host and requires _changes.yml to be absent. Therefore, the PR does not provide one workflow_call workflow that emits all outputs, and it does not convert consumers to use that reusable workflow. The single detection job and the absence of direct filter use in other workflows address only part of the issue.

Resolution

For [#15360], retain or replace .github/workflows/_changes.yml with a workflow_call workflow that emits all required filter outputs. Convert every consumer to use that workflow. Keep the merge-group base handling and the canonical filter check. Provide the required docs-only and Python run/skip equivalence evidence before closing the issue.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@github-actions

Copy link
Copy Markdown
Contributor

Auto-sync: main not merged into issue-18208-one-ci-workflow

The merge is clean, but it changes workflow files, and GitHub refuses a GITHUB_TOKEN push that does. The sync uses GITHUB_TOKEN only (#19548), so that a sync never starts CI, and so it pushed nothing:

  • .github/workflows/wiki.yml

This branch catches up on the author's next push (merge main in first) or in its train. The label clears on the first run that finds it 0 behind.

@github-actions github-actions Bot added the sync-needs-workflow-token Set by the branch sync (#19548) label Oct 26, 2026
@mrveiss

mrveiss commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Verdict: CHANGES @ 3f85ed8

Delta review of the three commits since 569b001 plus the merged result against current main (merge base equals main at the time of review; main has since moved by one unrelated file, .github/duplication-pins.json, no overlap). One Medium finding (a guard rule that main enforced is no longer enforced for seven keys); everything else holds. Nothing was run; all of this is read from git and the API.

Severity File:line Finding Required fix
Medium repo_tests/filters_moved_intact_18208_test.py (the MIGRATIONS_KEY tests, ~lines 100-150) Main's changes_job_equivalence_15360_test.py judged EVERY inline filter by rules 1-3 (snapshot kept in order, each added entry cites an issue, no base entry dropped without a tombstone). Inline filters on main: migration-gate (migrations), npm-package-tests (browser_worker, mcp, sdk_ts, structured_thinking), slm-frontend-check (slm_frontend), verify-generated-types (slm_types, types). The port applies rules 2 and 3 only to migrations. The other seven keys, now types, slm_types, slm_frontend, npm_* in gate-paths.yml, are covered only by test_every_pattern_a_changes_job_read_is_still_read, which is set inclusion of the snapshot. A new entry with no issue citation, or a base entry dropped without a tombstone, passes for those seven keys. Rule 3 is also vacuous for migrations on this very PR (the file is new, so base_text is None); I compared by hand, see below. Run the same two rules (cites-in-place against the snapshot, removal-needs-tombstone against base_text) over every key that came from INLINE_KEY_MOVES, with a per-key section reader and the key-name mapping, as _file_snapshot does for the five files.
Low repo_tests/docker_smoke_required_context_17126_test.py:48 Comment says "69 workflow files at #18208"; the declaration's population on the tip is 74 (74 .yml files directly under .github/workflows). Make the comment say 74.
Low pipeline-scripts/check_gating_precommit_hooks.py:6, pipeline-scripts/check_precommit_hooks_executed.py:6, tools/lint/check_code_quality_guard_reach.py:29,31,68, .github/filters/python-paths.yml:460,476 and others Docstrings and comments still name workflows that no longer exist (enforce-precommit.yml, code-quality.yml, *-required-context.yml). Only strings and messages; nothing opens those files (checked _WORKFLOW in check_code_quality_guard_reach.py: message only). Repoint on touch; no gate depends on it.
Info PR comment 6835311051 The round summary does not give a tombstone count. The tip carries 20 # retired #18208: lines for 16 distinct workflow files (backend 5, code-quality 2, docker 2, frontend 3, python 8). All 16 are absent from the tip (8 deleted, 8 renamed to _gate-*.yml), and no other entry is missing from any of the five filter files. If "13" is expected anywhere, it does not match. State the real count.
Info PR size 101 changed files, one over the train cap; the PR lands alone. Not a finding. None.

Verified

  1. Nothing main landed is reversed. Tip is byte-identical to main for dispatch-preboard-guards.yml, clean-install.yml, .github/actions/setup-python-suite/action.yml, constraint-drift.yml. ci.yml carries -q -rs (lines 692, 760). dependabot.yml differs by one comment line (security.yml renamed to _gate-security.yml).
    • python-paths.yml: main 158 distinct entries, tip 154. Main has and tip lacks exactly 8: _changes.yml, ai-security-review.yml, codeql.yml, docker-smoke-test.yml, migration-gate.yml, python-required-context.yml, security.yml, verify-generated-types.yml (all workflow files absent on the tip, each tombstoned). Tip adds 4: _gate-*.yml, _gate-generated-types.yml (cites ci(codegen): the generated workflow.ts has no required or self-healing gate; only the non-required check-drift sees it #16568), .github/actions/gate-verdict/**, .github/filters/gate-paths.yml (the block cites ci: merge the PR-triggered workflows so change detection runs once per PR #18208). Same comparison for the other four filter files: only deleted workflow files missing.
    • migrations: main's inline migrations filter has 49 entries; main's on.push.paths has those 49 plus _changes.yml (50). Tip gate-paths.yml migrations has 48. Missing from the tip: migration-gate.yml and _changes.yml only (the self-references). Nothing added on the tip. (So "49 minus the self-reference" is right for the filter; the push list was 50.)
  2. Rules, side by side: rules 1 (order), 2 (cited in place), 3 (tombstone) are ported with the same shared helpers (uncited, removed_without_tombstone) and the same base_text merge-base helper, so the base is the same notion on a PR run and on a push run. Rule 4 (mirror in on.push.paths) has no subject left (no paths: in ci.yml). The port adds a non-vacuity test. The five filter files and migrations are covered; the gap is the seven keys above. On the tip the rules should pass as written: the four non-python filter files gained only comments (no new entries), python-paths' new entries cite issues, and every removed entry has a tombstone. No file in the tree references issue_17822_migration_gate_entries.json or its count pin; the only mentions of the deleted test are prose in RATCHET_BASELINES.md and the new test's docstring.
  3. python_filter_uncovered_reads.py: set 30 on main, 27 on the tip, MAX_UNCOVERED_READS = 27, equality-checked by python_filter_covers_its_guards_test.py (line ~306) and not above base's 30. The three removed entries (code-quality-required-context.yml, code-quality.yml, frontend-test.yml) are absent from the tip. The gated-job matcher was moved to outputs.run_python_suite, and the contrast row code-quality.yml was swapped for actionlint.yml (not named by the filter).
  4. Reach floor: _bounds(74) with skips from the declaration and growth 6 gives window (68, 74) and mid-window 74 - 3 = 71, which is the declared floor; population is 74 (.yml files directly in .github/workflows on the tip).
  5. Required contexts: all 11 in branch protection are published as bare names by top-level jobs in ci.yml, or by two unchanged workflows. The nine gates are if: always(), verdict via gate-verdict (not affected passes, draft fails, cancelled upstream ends cancelled). Work jobs report as run-<x> / <job>, so no required name is prefixed. python-suite is pinned to the GitHub Actions app and is published from ci.yml. Every needs.changes.outputs.* used in ci.yml is defined (23 of 23). No workflow_run triggers exist; ci-dispatch-watchdog, dispatch-generated-types, train-content-gate do not reference removed workflow or job names (their test fixtures use frontend-test.yml only as a string).
  6. Design note: job graph, both tables, and the migration order match the tip. enforce-precommit.yml was renamed to _gate-precommit.yml, as stated. No internal hosts or paths in it. It states AC3, required-context behaviour and merge-queue behaviour as unproven.
  7. Static: no ast.parse, randomness or clock use in the added repo_tests lines; the new frontend_filter_entries_16260.json replaces the mirror comparison (its five entries equal what the old comment says the mirror lost).
  8. Threads: 2 review threads, 0 unresolved. PR body has Refs #18208 (AC3 owed) and the required headings.

Not verified

No run of this head was observed; the check names above are derived from the files. Nothing was executed (no tests, no workflows). I did not read the bodies of the _gate-*.yml files line by line, only their trigger, output and job-name wiring. Merge-queue and real-run required-context behaviour are unobserved.

Merge condition

An APPROVE here would not be a merge go-ahead: the PR's own CI must be green on the final head with all 11 required contexts reported. A guard-lane run on the branch is pending. Re-review after the Medium fix is a delta of the one test file.

@mrveiss

mrveiss commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE @ 8f4b2bb

Delta verdict on top of comment 6835486781 (Verdict: CHANGES @ 3f85ed867d). The delta is 825f74b / f9a8d38 (merges of main), 058d6e1, 11282de + d1c1e83 (sweep and its revert), a2c139c, and the final docs-restore commit 8f4b2bb. Nothing was executed: no tests, workflows or repo code. Everything below was read from git and the API, and recomputed with standalone text scripts.

Severity File:line Finding Status
Medium (previous round) repo_tests/filters_moved_intact_18208_test.py Rules 2 and 3 ran for migrations only Resolved: all 8 INLINE_KEY_MOVES keys are judged, each against the base it came from (table below)
Low (previous round) repo_tests/docker_smoke_required_context_17126_test.py:48 "69 workflow files" Resolved: now says 74 (74 .yml files directly under .github/workflows on the tip)
Low (previous round) comments naming removed workflows Prose only Open by design: the 69-file sweep was reverted (its commit and the revert cancel exactly) and the nine docs moved to a follow-up (#21424); nothing opens those names (see sweep below)
Info (previous round) tombstone count Not stated Stated below
Info PR size 94 changed files (gh pr view and the three-dot diff agree) Under the 100-file cap

Per-key rules (merge base 95511a1; gate-paths.yml does not exist there, so the base is each source workflow's inline filters: block)

key (source workflow) base tip added removed tombstoned in that key's own section
migrations (migration-gate) 49 48 0 its own workflow file yes
types (verify-generated-types) 11 10 0 its own workflow file yes
slm_types (verify-generated-types) 9 8 0 its own workflow file yes
slm_frontend (slm-frontend-check) 5 4 0 its own workflow file yes
npm_browser_worker (npm-package-tests) 2 1 0 its own workflow file yes
npm_mcp (npm-package-tests) 2 1 0 its own workflow file yes
npm_sdk_ts (npm-package-tests) 2 1 0 its own workflow file yes
npm_structured_thinking (npm-package-tests) 2 1 0 its own workflow file yes

Rule 1 (snapshot kept, in order) holds for all eight; rule 2 reports no uncited entry; rule 3 finds no untombstoned removal.

Test mechanics, read against the helpers:

  • The section reader takes the last key (a sentinel key is appended) and keys with comments and blank lines; gate-paths.yml has no anchors or aliases, so parsing one section alone is sound.
  • Base resolution is as stated: gate-paths.yml on the base when it exists, else the source workflow's inline block. After this PR lands the base has gate-paths.yml, so rule 3 compares tip against base and stays non-vacuous; the non-vacuity test fails if neither exists.
  • On a push-to-main run the base is AUTOBOT_RATCHET_BASE_SHA or HEAD^1; for the landing commit itself that base still has the source workflows, so the fallback applies. A base that cannot be read raises, never passes. Main's test returned no findings when the base file was absent; this one is stricter.
  • The three control tests do make each rule fail (section reader, uncited addition / dropped snapshot entry, unmarked removal) when read against uncited and removed_without_tombstone. Parametrize ids are unique (8 cases), and every fixture the new tests load exists.
  • Functions are at most 20 lines; the file is 274 lines.

Apt tests

docker-smoke-test.yml is gone on the tip (renamed to _gate-docker-smoke.yml); leaving the old name would raise FileNotFoundError at test time. Both tests assert only absences for that file (no bare apt call, no restated retry-timeout variable, no second copy of the fallback mirror), and the file has no apt call, as the main version had none. The timeouts moved with it (45 minutes). Python-filter coverage of the new read path is the existing _gate-*.yml entry in .github/filters/python-paths.yml.

Class sweep (independent)

  • Deleted or renamed workflow files (7 deleted, 11 renamed): 107 remaining mentions of old names across repo_tests tools scripts pipeline-scripts .github autobot-* docker, excluding the frozen fixture and tombstones. None is opened at runtime: they are prose, absence assertions (required_context_complements_test.py, code_quality_guard_reach_test.py, one_paths_filter_job_15360_test.py), fixture strings (the dispatch-watchdog tests), a message-only constant in tools/lint/check_code_quality_guard_reach.py, or frozen data (repo_tests/secrets_baseline_legacy_keys.json).
  • Reverse sweep, per-file rules re-implemented as text scripts and applied to ci.yml, the 13 _gate-*.yml and the 5 scheduled-*.yml files (and the whole tree where the rule is tree-wide): action pins (261 pins; every SHA pin carries a version comment, no label disagreement, no tag older than the standard), repo-Python-needs-the-floor (none missing), service images mirrored with credentials (9 services, none offending), draft-gate reaches aggregators (none), company-os naming (none), accusing-name jobs run one step (4 jobs, 1 run step each), errexit-captures (410 blocks on base and tip, 0 offenders), no python-version literal (47 python-version-file references on base and tip), no file:line citations in the new files, no write permission on a pull_request workflow, concurrency on every pull_request workflow, and no concurrency block in a _gate-* body. Populations against floors: pull_request workflows 54 to 36 (floor 20), job-parse sweep 110 to 108 (growth 10), workflow files 75 to 74, gate bodies 13 (floor 10).

Nine docs restored (8f4b2bb)

Each of the nine has an empty git diff origin/main against the tip, and that commit touches exactly those nine files. docs/developer/ENV_VARS.md line 8 is outside the autogenerated block (its marker is at line 46), and no test or tool asserts that a doc names a _gate-*.yml file.

Main

Main is unchanged since the merge base (0 commits behind). .github/duplication-pins.json is byte-identical to main; tools/git-hooks/fast_guard_tests.txt and tools/lint/prepush_selection.py differ from main by this PR's own two-line rename each. Nothing main landed is reversed. The merges after 3f85ed8 carry only main's .github/duplication-pins.json change.

Tombstones (# retired #18208:)

28 lines across six filter files (backend-python-paths.yml 5, code-quality-paths.yml 2, docker-paths.yml 2, frontend-paths.yml 3, gate-paths.yml 8, python-paths.yml 8), naming 18 distinct workflow files; none exists under .github/workflows on the tip.

Other guards

No workflow file changed in the delta (nothing for actionlint). No commit trailers in origin/main..HEAD. Reach floor: 74 files, unchanged by the delta. MAX_UNCOVERED_READS = 27 is unchanged and the two apt tests' read path is covered by an existing filter entry. Test files are outside the symbol-fork roots. PR body has Thinking Path, What Changed, Verification, Model Used and Refs #18208; 2 review threads, 0 unresolved.

Verified

All items above, from git objects and the API.

Not verified

  • No run of this head completed. The PR's own CI has not yet run to completion on this head; the checks visible at review time were queued, running or cancelled by the repo's cancel tool, so no check result is evidence for or against this head.
  • The ~100 other tests that read workflow files by literal path were not each traced, only the globbing and tree-scanning ones and the literal-path tests that mention removed names.
  • Pytest collection and the symbol-fork and size baselines were evaluated by reading the code, not by running them.
  • Real-run behaviour of required contexts and the merge queue.

Nothing was executed. This APPROVE is not a merge go-ahead: the PR's own CI must be green on the final head with all required contexts reported, and AC3 of #18208 stays owed.

@mrveiss

mrveiss commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE @ 39d811e

Delta review of 39d811e only, on top of the earlier verdict (comment 6836308451, APPROVE @ 8f4b2bb).

What the lane run showed. Pre-board guard run 43308434557 on the previous head: guards shard 2/6 failed, shards 1, 3, 4, 5, 6, types and pin base succeeded (result failure follows from shard 2). The failing test was repo_tests/guard_reach_floor_window_17818_test.py::test_the_floor_sits_inside_its_window, reporting window_complaint(330, 330, 380): "must be in (330, 380] -- re-pin to 380".

# Check Result
1 Scope One file, repo_tests/_guard_reach_census.py, +2/-1: MIN_GUARDS_EXAMINED = 330 to 380 plus one #: history line. Nothing else. No commit trailers.
2 Value vs the file's rules narrowed < floor <= full with (330, 380]: 380 is legal (equals full, strictly above narrowed). The #16147 rule (pin at full reach) applies; the #17870 AC2 "do not leave equality after a population TIGHTENING" rule does not, because the three-line diff of this file against main shows _ENUMERATOR and _EXEMPT_NON_SCANNING untouched. This is ordinary guard growth, matching the precedent line "RE-PINNED train 85l ... re-pinned to 288 as the guard instructs".
3 Text count (below) Branch matches CI exactly. Main's own pin is inside main's window.
4 Consumers MIN_GUARDS_EXAMINED is read in guard_reach_meta_test.py:353 as >= (equality at full reach passes) and in the window test; no other record repeats 330 in repo_tests, tools, scripts, pipeline-scripts, docs. No _guard_reach_census.py:<n> line-keyed entry anywhere. File is 222 lines and is not in scripts/python_file_size_known_large.py.
5 Next Treadmill, not a finding: once this merges, other open PRs take main before CI so their full reach is at least 380 unless they delete a matching guard test; one that does must re-pin in the same PR.
6 PR state Head 39d811e, 95 changed files (under the 100 cap), MERGEABLE, 0 unresolved review threads.

No blocking findings, no non-blocking findings.

Text count (regex re-implementation of _ENUMERATOR and its no-.glob( form over tracked repo_tests/*_test.py at each ref, minus the three _EXEMPT_NON_SCANNING members):

Tree tracked guards narrowed full pin pin in (narrowed, full]?
branch head 729 330 380 380 yes (equals full)
origin/main 727 326 376 330 yes

The branch count equals CI's (330, 380] exactly. Main's pin 330 sits inside main's (326, 376], so the failure is explained by this PR's growth (+4 matching guards, +2 tracked files from the branch's merges of main and its own new guards), not by a stale main.

Verified: diff scope; the window rule and which pinning rule applies; the lane run's job conclusions; text counts on both trees; consumer greps; PR state.

Not verified: nothing was executed. I did not run the census, reach_pair(), the tests or any workflow. The text count replicates the regexes and the exemption set only; the module's file read/skip rules are mirrored but not run. The PR's own CI has not completed on this head. This APPROVE is not a merge go-ahead: the guard lane and full CI must be green on 39d811e, and AC3 of #18208 stays owed.

@mrveiss

mrveiss commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Queue note: the branch sync after #21399 landed put an automatic [skip ci] merge of main on top (3644e80), which starts no checks. b2119c2 is an empty commit on top of it (same tree as 3644e80 — git rev-parse <sha>^{tree} is identical for both) whose only purpose is to make the full suite run on the synced head. Nothing reviewable changed after the verdict at 39d811e: the commits past it are that merge of main and this empty commit.

@mrveiss

mrveiss commented Nov 12, 2026

Copy link
Copy Markdown
Owner Author

Verdict: APPROVE @ 6f37c27

Delta review on top of the earlier verdict (comment 6837644898, APPROVE @ 39d811ea99). Three commits since: 3644e80c8b (automatic [skip ci] merge of main), b2119c2435 (CI trigger), 6f37c27248 (doc fix). No blocking finding.

Commits

  • b2119c2435 is empty: git diff 3644e80c8b b2119c2435 --stat prints nothing and both commits have tree 49321bd9b72d77c175391ad280cf751ed2968a50.
  • 6f37c27248 is one file, one line (+1/-1) in docs/developer/CLAUDE_WORKFLOW.md: the token code-quality.yml becomes _gate-code-quality.yml. Line count unchanged, no trailers, subject docs(ci): ... (#18208).
  • The edited sentence says the local preflight runs black/isort/flake8/bandit with the same flags as that workflow, bandit with no severity floor. True on the branch: .github/workflows/_gate-code-quality.yml runs black --check --line-length=120, isort --check-only --settings-path=. --line-length=120, flake8 --config=.flake8, and bandit -c .bandit -r ... with no -ll/-l. ci.yml calls the file (run-code-quality -> uses: ./.github/workflows/_gate-code-quality.yml).

The first-run failure it answers
run-code-quality / Code Quality Audit, step "Check developer docs reference existing files (#3425)": docs/developer/CLAUDE_WORKFLOW.md: stale reference 'code-quality.yml'.

Independent re-implementation of pipeline-scripts/check-doc-references.py
Same CHECKED_DOCS (9), same extraction regex, same fallback to filename search across SOURCE_TREES; existence decided from git ls-tree -r --name-only of the ref.

ref references found unresolved
branch tip 6f37c27248 118 none
control b2119c2435 118 exactly one: docs/developer/CLAUDE_WORKFLOW.md -> code-quality.yml

118 matches the CI count. The control reproduces exactly the one failure CI reported, so the snippet measures the same thing.

Same class elsewhere
Important context: the first run stopped at that step, so every later step of the Code Quality Audit job (env-var sweep through the CodeQL ceiling) had never run on this PR. I read all of them.

check scope verdict
check-doc-references.py 9 canonical docs passes (above)
check_env_var_registry.py ENV_VARS.md autogenerated region between its BEGIN/END markers only passes: the only old workflow name in that doc (code-quality.yml, line 8) is outside the markers; the registry is unchanged
check_code_quality_guard_reach.py _WORKFLOW constant passes: _WORKFLOW = ".github/workflows/code-quality.yml" is used only inside a message string, never read; the 7 guarded checkers' GUARD_INPUT_PATHS name no workflow file
check_docs_no_fleet_addressing.py, check_fleet_addressing_uncovered.py fleet-range literals in docs and unscanned kinds passes: per-file fleet-range counts identical to origin/main for the whole tree
check_runner_watchdog_schedule.py, check_ci_system_package_provisioning.py, check_composite_action_step_keys.py, check_requirements_*, check_flake8_exclude_anchoring.py, check_bandit_exclude_anchoring.py, check_undefined_names.py, check_no_shell_placeholder_paths.py, check_mcp_tool_permission_coverage.py, check_extension_import_boundaries.py inputs are requirements files, ansible tasks, actions, inventory, python sources passes: the old workflow names occur only in docstrings or comments; none is read
check_python_file_size.py / shell / frontend --audit-ceilings file sizes passes: the one changed file over the ceiling, phase_validation_system.py, is 1102 lines on both main and branch
check_workflow_path_filters.py (precommit gate) workflow paths: copies and filter keys not re-derived; the PR edits it and its test for the rename. It is a different job (run-precommit), whose checks are SUCCESS so far
check_script_exec_bits.py, lint-conventions.sh, check_nosec_format.py ran before the failed step in the first run passed there; the new commit adds no script invocation, link or denylist name; subject format fine
repo_tests/comment_line_number_citations_test.py line-number citations (name.ext:NN) in comments of workflows and tests; baseline of 25 entries passes: 0 citations in either workflow set (main 75 files, branch 74); the two baseline entries naming old workflows (frontend-test.yml:132, verify-generated-types.yml:216) live in files whose docstrings still carry them, so they are not stale; sweep floor 465 vs 1162 files
repo_tests/one_paths_filter_job_15360_test.py, code_quality_guard_reach_test.py assert the removed workflows do not exist passes: they assert absence
deleted repo_tests/changes_job_equivalence_15360_test.py referenced anywhere only .test_durations timing keys; no guard, doc or script cites it
ci_dispatch_watchdog*_test.py, scope_box_artefact_drift_test.py, secrets_baseline_legacy_keys.json consumers old workflow paths passes: used as opaque data strings, not read from disk
README badge, phase_validation_system.py renamed targets README test reads only the onboarding labels; the script's existence checks were repointed to _gate-* names in this PR
the 9 docs left on old names (follow-up #21424) any test/script naming them none asserts their workflow-name content; only ENV_VARS.md is read (marker region, above) and check-doc-references.py does not check the other 8
doc-reading repo_tests (docs_liquid_tags, python_version_declaration_drift, install_and_code_sync_modes, others in the docs//.md grep) liquid tags, version declarations, install text passes: none keys on a renamed workflow filename; docs_liquid_tags check is already SUCCESS

Verified
Commit scope, emptiness and tree equality; the sentence's truth; the 118/0/1 counts; the table rows above from reading source at the branch tip and text re-implementations over git show / git ls-tree output.

Not verified

  • Nothing from the repository was executed: no tests, workflows or repo scripts. Only standalone text snippets over git output.
  • check_workflow_path_filters.py's full rule set and the guard-reach floor window (330, 380] were not re-derived; run-code-quality's later steps will exercise them for the first time.
  • The several hundred other repo_tests that mention .md/docs/ were narrowed by grep to those touching workflow names or the changed docs, not each read.

State
Head 6f37c27248, 96 files (under the 100 cap), mergeable, 0 unresolved review threads. CI on this head is in progress: no FAILURE so far (19 SUCCESS, 16 IN_PROGRESS, 7 QUEUED, 3 SKIPPED); run-code-quality / Code Quality Audit is IN_PROGRESS. An APPROVE is not a merge go-ahead: all required contexts must be green on this head, and AC3 of #18208 stays owed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

1 participant