Repository navigation
ci: one PR workflow, one change detection — every required context is one always-run gate job (#18208) - #19621
Conversation
…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)
…tree instead of raising (#18208)
…rkflow # Conflicts: # .github/workflows/codeql.yml
…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
…wth, with its verdict recorded (#18208)
…ged tree's 68 workflow files (#18208)
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Walkthrough
Merge Risk:
|
Auto-sync:
|
|
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,
Verified
Not verifiedNo 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 Merge conditionAn 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. |
|
Verdict: APPROVE @ 8f4b2bb Delta verdict on top of comment 6835486781 (
Per-key rules (merge base 95511a1;
|
| 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.ymlhas no anchors or aliases, so parsing one section alone is sound. - Base resolution is as stated:
gate-paths.ymlon the base when it exists, else the source workflow's inline block. After this PR lands the base hasgate-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_SHAorHEAD^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
uncitedandremoved_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 intools/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-*.ymland the 5scheduled-*.ymlfiles (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), nopython-versionliteral (47python-version-filereferences on base and tip), nofile:linecitations 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.
|
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:
No blocking findings, no non-blocking findings. Text count (regex re-implementation of
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, |
|
Queue note: the branch sync after #21399 landed put an automatic |
|
Verdict: APPROVE @ 6f37c27 Delta review on top of the earlier verdict (comment 6837644898, Commits
The first-run failure it answers Independent re-implementation of
118 matches the CI count. The control reproduces exactly the one failure CI reported, so the snippet measures the same thing. Same class elsewhere
Verified Not verified
State |
Thinking Path
Detect changed pathsrows on a docs-only PR, 17 on a train), and each required context was published by two same-named jobs in two workflows (a real job plus a "shim"). ci(perf): collapse 15 duplicate paths-filter jobs into one reusable workflow #15360 asked for 8 -> 1; ci(guards): the required-context complement guard covers 1 of 5 shim pairs — two workflows already publish conflicting conclusions for one context #17391, ci: the frontend required-context shim is created AFTER the real suite, so a red frontend suite may be masked #14922 and CRITICAL(ci): re-running a draft-era run replays draft:true, so python-suite settles as skipped and the merge gate accepts a PR with zero tests #18106 are the same root defect measured three ways: a skippable job publishing a required name.if: always()top-level job per context, named exactly as today, needs no branch-protection edit (D5). A job in a called workflow reports as<caller> / <job>, so gates must be top-level and bodies reusable (D2).What Changed
ci.ymlis the one PR workflow: onechangesjob (7 dorny steps, one per.github/filters/file,base= merge-group base on every step, which closes ci: ci.yml path filters take no merge_group base, unlike every other merge-queue workflow #18191),run_<gate>outputs defined once, work jobs, and 9 top-level gate jobs.if: always(), verdict from.github/actions/gate-verdict):python-suite,code-quality,startup-import-smoke,Unit & Integration Tests,smoke-test,api-wiring,migration-matrix,verify-generated-types,verify-precommit-config. Verdict order: detection failed -> fail; draft PR -> fail "draft: mark ready for review" (D4; precommit exempt, ci(queue): gate CI on ready-for-review so an open PR does not start runs automatically #17957); not affected -> pass; work verified -> pass; else fail._gate-*.yml(git renames); theirchangesjobs, triggers, concurrency blocks and aggregator/same-name jobs are removed. Five thinscheduled-*.ymlcallers reuse the same bodies for the schedules/dispatch.python-required-context.yml,backend-required-context.yml,code-quality-required-context.yml,frontend-required-context.yml,docker-smoke-required-context.yml,_changes.yml.backend-python-paths.yml:python->static_analysis,backend->startup_smoke;ci.yml's inlinefrontendmerged intofrontend-paths.yml); newgate-paths.ymlholds the former inline sets and trigger path lists.required_context_complements_test.pyrewritten for AC4 (onealways()publisher per context; controls prove it fails); newgate_verdict_18208_test.py,filter_keys_are_unique_18208_test.py,filters_moved_intact_18208_test.py;check_workflow_path_filters.py,one_paths_filter_job_15360_test.pyand about 20 path-reading tests updated;changes_job_equivalence_15360_test.pyreplaced byfilters_moved_intact_18208_test.py(same fixture).check_codeql_alert_ceiling.sh: the "did CodeQL run" matcher no longer counts the skippedrun-codeqlcaller..secrets.baselinefile keys renamed with their workflows.ci.ymlplus a guard that bodies declare none..github/actions/cancel-run-on-cancelled-upstreambeforegate-verdict, so a parked or cancelled upstream ends the gatecancelled, not failed. G5 inrequired_context_complements_test.pypins the wiring.tools/git-hooks/fast_guard_tests.txtnamesfilters_moved_intact_18208_test.pyin place of the retiredchanges_job_equivalence_15360_test.py. The hook now reads the list from the pushed commit, so each branch is judged by its own list.llc/services/company.pyandcompany_ceo.py, bug(company-os): every CEO agent provisioned by 088 is unschedulable — heartbeat_enabled defaults false #15907) go intogate-paths.ymlmigrations, and the security(secrets): the #16982 wiring guard passes on a docstring, and the scope pre-check loads legacy rows and 403s a missing secret #17822 fixture holds 37 entries, the same count as main. The codeql-action v4.39.2 pin bump (Dependabot) is carried onto_gate-codeql.yml;_gate-security.ymltook it by rename detection..github/workflows, floor mid-window, growth 6, ABSOLUTE verdict) and records in the scope and roots files. The moved gate workflows'.secrets.baselineentries get specific reasons inrepo_tests/secrets_baseline_reason_workflows.py, split out of the 600-line reasons table._gate-codeql.ymltakes main's comment; the mirror workflow is gone with infra(git): rename Dev_new_gui to main and main to release, without breaking the live updater #16461's removal, and noDev_new_guireference remains in.github; records of the retired equivalence guard are dropped from_glob_declared_uncovered.pyandpython-paths.yml; thecollectable-modules-inert-on-importfloor is repinned.codeql.ymlandsecurity.ymlare renamed here; if chore(deps): bump the all-dependencies group with 4 updates #19311 lands first, the rebase carries its pin bumps onto_gate-codeql.yml/_gate-security.yml(git rename detection), and the equal-pin check must be re-run.Verification
filters_moved_intact_18208_test.py,python_filter_covers_its_guards_test.py,required_context_complements_test.pyandmigration_gate_filter_covers_what_its_tests_import_test.py: 90 passed.reach_declarations_test.py: 885 passed.docker_smoke_required_context_17126_test.pyandreach_allowance_verdicts_17914_test.py: 11 passed. Pre-push (fast gate): passed at 5d0a878.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.pyandglob_declared_reads_15900_test.py: 142 passed. actionlint was not re-run, and CI has not been read.if: always()from thecode-qualitygate:required_context_complements_test.pywent 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.ci-gatenow reportsDRAFTfor a draft and no longer waits on a baremigration-testsrow. Thepr-queue-gatelogic 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.ci.ymlplus the two governance workflows), each concluding success, none skipped.git revert -m 1 <merge commit>restorespython-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 oldci.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.ymlandcodeql.yml(deleted here, edited on main): main's 7 migration path entries are in.github/filters/gate-paths.ymlmigrations;fakeredis[lua]is in_gate-migration.yml; codeql-action v4.39.2 pins are in_gate-codeql.ymland_gate-security.yml; the redis ACL step is in_gate-docker-smoke.yml.changes_job_equivalence_15360_test.pystays retired; main's**/pyproject.toml,docs/DEPENDENCIES.mdanddocker/write-redis-acl.shentries are in.github/filters/python-paths.yml._gate-slm-frontend.yml: main's relocated locale step kept once, with the reusableinputs.slm_frontendcondition._gate-precommit.yml: main's comment wording kept.ISSUE_17822_COUNTre-measured by runningfilters_moved_intact_18208_test.pyagainst the mergedgate-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.#18208 acceptance criteria
changesjob,ci.yml:76-80(name: Detect changed paths);.github/workflows/_changes.ymldeleted;filter_keys_are_unique_18208_test.py,one_paths_filter_job_15360_test.pypassrequired_context_complements_test.py:232(test_every_required_context_has_one_always_reporting_publisher), controls at:284-324,:356; gates atci.yml:797,904,979,1017,1054,1092,1133,1174merge_group) keeps running the gates; #18191ci.yml:36trigger; `base: ${{ github.event.merge_group.base_shaOperational impact
ci.ymlplus the two governance workflows). No branch-protection edit is needed on the critical path, because contexts match by check-run name.python-suiteis pinned to the GitHub Actions app; it stays published byci.yml, so that pin still matches.changesjob and the five*-required-context.ymlshims are gone; their gated work now starts from the onechangesjob inci.yml. The scheduled and dispatch runs of the moved gates move to the fivescheduled-*.ymlcallers.mainorrelease). This is deliberate: it drops the per-workflowbranches: [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.ci.ymlasrun-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._gate-code-quality.ymland_gate-ai-security-review.ymldeclareon.workflow_call.secrets(CONVENTIONS_DENYLIST,CLAUDE_CODE_OAUTH_TOKEN) andci.ymlpasses exactly those names; nosecrets: inheritremains in.github/workflows/, andgate_verdict_18208_test.pyfails on one (with a planted control).verify-generated-typesnow applies when the main or the SLM generated-types job applies, and fails if either one failed.python-suitealso waits onprovision-packages, so a cancelled provision ends the gate cancelled.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;actionlintis unavailable locally (not on PATH,~/.local/binorgo/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.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).python-paths.yml(kept this branch's structure plus every entry main gained, each with its citation),python_filter_uncovered_reads.py(main's set and ceiling, minus the three workflows that no longer exist: 27),migration-gate.yml(stays deleted; main's one new entry,last_platform_admin.pysecurity(auth): nothing stops the last platform admin being demoted, deactivated or deleted, or an admin demoting themself #21018, and its issue-grouped ordering are ingate-paths.ymlmigrations),changes_job_equivalence_15360_test.py(stays deleted; main's test(ci): changes_job_equivalence_15360 fixture is a shared per-PR edit point that conflicts across PRs #21205 filter-entry rules now run infilters_moved_intact_18208_test.py, and the removed workflow files carry# retired #18208:tombstones in the filters that listed them).ISSUE_17822_COUNT(deleted on main) are replaced by those rules, so the "37 entries" figure above no longer applies.Verification, 2026-11-12 (what is NOT proven)
filters_moved_intact_18208_test.py,python_filter_uncovered_reads.py) have not been run; YAML of every touched workflow and filter file loads.Refs #18208stays.