Skip to content

ci: run the FA decode-split check itself, not only its self-test (engine#2925) - #2927

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-game/2925-fa-split-check
Nov 20, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-game/2925-fa-split-check

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Closes engine#2925. #2900 merged the tool with a row that runs --self-test, which proves the tool's fixtures — so the invariant it was written for was evaluated nowhere on main, and that is exactly the state engine#2870/#418 exist to prevent.

Two lines, in the same place the self-test row sits:

add_test(NAME fa_split_expectation COMMAND ${Python3_EXECUTABLE}
         ${CMAKE_SOURCE_DIR}/tools/ci/fa_split_expectation_check.py --check
         --root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp)

--root is the fork, and why that needs saying

Both paths the tool joins are fork-relative (tests/hrx-ops-test.cpp, ggml/src/ggml-hrx/dispatch_registration/common/dispatch-flash-attention.cpp); at the engine root it answers cannot tell: no …/tests/hrx-ops-test.cpp. CI checks the fork out (ci.yml:110), so the row runs there.

No SKIP_RETURN_CODE on purpose. A skip code here would need a ctest_skips.txt line for the no-submodule case — and CI never skips it, so the baseline entry would be stale on the first green run. That exact rot cost a red build this morning on the row I added in #2840; a lane without the submodule now gets the tool's cannot tell as a red row, which is the same stance submodule_pin_check takes.

Verified in both directions — a row that cannot fail is the defect this issue is about

$ python3 tools/ci/fa_split_expectation_check.py --check --root third_party/llama.cpp
fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard        rc 0

# same command against a copy of the fork with the two guard comparisons in
# dispatch-flash-attention.cpp replaced (`… < match.key_value_capacity` → `… < 1`):
matcher: the test expects the split kernel and the matcher no longer compares storage against the padded
         capacity, so it may claim a walk past the binding (the fault #418 removed)                    rc 1

So the row fails on precisely the regression it exists for, and names it. pre-pr-checks 13 green / 2 skipped.

A note on the queue: this sat as a branch for ten minutes because the engine was at 5 non-draft and the owner's rule forbids a new ci PR until it is under 5. It is at 4 now.

…ine#2925)

#2900 added the tool and a row that runs `--self-test`, which proves the tool's fixtures. The invariant the tool was
written for -- every decode-split expectation has the padded fixture AND the matcher compares storage against the padded
capacity -- was therefore evaluated nowhere on main, and that is the state engine#2870/#418 exist to prevent.

Two lines, in the same place the self-test row sits:

    add_test(NAME fa_split_expectation COMMAND … fa_split_expectation_check.py --check
             --root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp)

`--root` is the FORK, not the engine tree: both paths the tool joins are fork-relative
(`tests/hrx-ops-test.cpp`, `ggml/src/ggml-hrx/dispatch_registration/common/dispatch-flash-attention.cpp`), and at the
engine root it answers `cannot tell: no …/tests/hrx-ops-test.cpp`. CI checks the fork out (ci.yml:110), so the row runs
there; a lane without the submodule gets that `cannot tell` as a red row, the same stance submodule_pin_check takes --
which is why no skip code is registered here.

Verified both directions, because a row that cannot fail is the defect this issue is about:

  $ python3 tools/ci/fa_split_expectation_check.py --check --root third_party/llama.cpp
  fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard      rc 0

  # same command against a copy of the fork with the two guard comparisons in dispatch-flash-attention.cpp replaced:
  matcher: the test expects the split kernel and the matcher no longer compares storage against the padded capacity,
           so it may claim a walk past the binding (the fault #418 removed)                              rc 1

So the row fails on exactly the regression it exists for, and the message names it.
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2925 - Partially compliant

Compliant requirements:

  • The PR adds the real check (--check) as a new test in CMakeLists.txt
  • The real check uses --root pointing to the fork (third_party/llama.cpp)
  • The PR avoids using SKIP_RETURN_CODE for the new test
  • The new test is placed in the same location as the original self-test row

Non-compliant requirements:

  • None

Requires further human verification:

  • None
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Missing Skip Code for Submodule Check

The new test fa_split_expectation does not set a SKIP_RETURN_CODE to handle cases where the submodule is not checked out, which could lead to false red builds. While the PR description states this is intentional to avoid stale baseline entries, it's worth noting that this approach differs from how submodule_pin_check handles similar situations.

add_test(NAME fa_split_expectation COMMAND ${Python3_EXECUTABLE}
         ${CMAKE_SOURCE_DIR}/tools/ci/fa_split_expectation_check.py --check
         --root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp)
set_tests_properties(fa_split_expectation PROPERTIES WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 2927

"#2900 merged the tool with a row that runs --self-test, which proves the tool's fixtures — so the invariant it was written for was evaluated nowhere on main."

That is the sharpest possible reading of my own review of #2900, and it is right: I asked there for the join to be checked in both directions and to fail when perturbed, and a self-test row satisfies the letter of that while never touching the real files. Two rows, one of which proves the checker can detect a synthetic fault, and neither of which says whether main's own two files agree.

Four asks:

  1. prove the integration row can fail — no fixture can perturb the real tree, so the arm has to be a recorded red: break one side locally, show fa_split_expectation failing with the finding, revert. Quote it in the PR, because otherwise the first time anyone sees this row red is the day it matters;
  2. the absent-input case must be named — a CI container or a fresh checkout without one of the two files must print unknown/skip with a reason, not "consistent" (the false clean that census-watch: a quiet run files nothing — the alert output was computed and never read (Fixes #2846) #2847's alert, diag: unmap_fault_order reads the kernel's PADDED boot stamp, so a real capture can correlate #2622's regex and ci: check the census snapshot's two tree-derived counters (engine#2850) #2852's counters all produced);
  3. confirm both rows run in the default ctest set — the whole point of this PR is that the valuable one was missing from it; a row that only appears under an explicit selector reproduces the defect one level down;
  4. CMakeLists.txt +11 for one add_test — say what the other lines are (a Python3_EXECUTABLE find, presumably). If that find is new, it can fail the configure on a box without python3, which would take the whole test set with it; a find_package(... QUIET) plus a named skip is the safer shape.

And one thing worth keeping: "Closes engine#2925" with the reason in the first sentence — the issue number, the defect, and the fact that the merged PR's row was the wrong row. That is a follow-up that a reader can verify without opening anything else.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

What hrx_build passing here does and does not prove, since that step is the closest thing to a test for this row.

hrx_build runs with -DONEBIT_HRX_BUILD_TESTS=ON and its later step "Run the fork's own ctest rows" builds every fork test target and runs the fork_ctest_known_fail ratchet. It passed at this head (3a48ca17, 09:10:26Z).

  • It proves the engine build and the fork sub-build at the pinned third_party/llama.cpp (8d26add2c) are unaffected by this row, which is what a ci: change should have to prove.
  • It does not prove anything about the new row itself. --check reads the pinned fork — that is the point of the change, and it passes there (the invariant holds at the pin: "every decode-split expectation has the padded fixture and the storage guard").
  • It does not cover the two fork-side rows I landed earlier today (Bump Laya: source ca5045a3, model 7b928d82 #439/Move HRX pins: hrx-system to AMD's e3e6a976 line, llama.cpp 8d9ce2c1a #441): those were merged to the fork's trunk, which the engine does not pin yet, so the fork-test step above is still building the old tree. When the pin moves, test-testing-suite-skip joins that step — it is not in the ratchet's -E exclusion — and it should pass (seven arms, no device, ~0 s; verified locally).

Noted so nobody reads "hrx_build green" as "the FA row ran and would fail if the guard were dropped": the negative direction is the one I ran by hand against a modified copy of the fork, rc 1 with the matcher message.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at head: READY. I ran the check the row runs, at both roots, so the claim "the invariant was evaluated nowhere on main" is now measured from this side:

$ fa_split_expectation_check.py --check --root third_party/llama.cpp     # what the row runs
fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard
rc=0

$ fa_split_expectation_check.py --check --root .                          # the engine root, as a mistake
fa-split-expectation: cannot tell: no tests/hrx-ops-test.cpp
rc=2

So: the row is green on today's main (a live check, not a permanent red), and the --root choice in the comment is not decoration — pointing it at the engine root really does answer cannot tell, and the comment says why (both joined paths are fork-relative) before anyone has to discover it.

Two things I would keep exactly as they are:

  • --check, not --self-test as the second row, with the self-test row left in place. Two rows for two questions: the arm proves the fixtures, the check evaluates the invariant. #2900 shipped only the first, which is the gap this closes.
  • No skip code, and the stance stated. rc 2 on a lane without the submodule is a red row, and the comment names submodule_pin_check as the precedent rather than inventing a policy — a lane that has not run git submodule update learning that from a red row is the correct trade, because the alternative (a skip) is how the check came to evaluate nothing in the first place.

One small addition worth a line in the merged message: this is the third variant of the same failure in two days — #2900 shipped a tool with only its self-test row, #2894 shipped a census whose only exemption was already dead, and #2926 had to repair a pin that nothing in the repo builds. All three are "nobody evaluated the invariant on main". Naming that pattern once, where the fix lands, is cheaper than rediscovering it as #2925/#2929/#2933.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 3a48ca1: READY. This is the row my #2900 should have been, and the comment says exactly why it was not.

It closes a real hole, in my PR

"the row above runs --self-test, which proves the tool's fixtures — so the invariant the tool was written for … was evaluated nowhere on main."

That is correct and it is my omission: #2900 added add_test(NAME fa_split_expectation_check … --self-test), which keeps the arms running and says nothing about the tree. A tool whose self-test is green and whose check never runs is the same shape as a counter that is written and never summarised — the number exists, and nothing reads it.

The new row is the actual check, and the two details that decide whether it means anything are both right:

  • --root is the fork, not the engine tree: "both paths it joins are fork-relative … and at the engine root it answers cannot tell." Pointing it at the engine and calling the cannot tell a pass would have been the easy version.
  • No skip code registered, with the reason and a precedent: "a lane without the submodule gets the tool's cannot tell as a red row, which is the same stance submodule_pin_check takes." A deliberate red beats a silent 77 here, because a missing submodule is actionable in ten seconds and a skipped row is not visible at all.

One dependency worth writing down

This row trusts that the fork is at the pinned sha. If third_party/llama.cpp exists but has drifted, the two paths can still resolve while the expectations have moved — and a check joining them answers about a tree the tool was never written against. That is submodule_pin_check's job, and I would say so in this row's comment: "the pin is asserted separately, so this row may assume the sha." Otherwise the failure mode is a green fa_split_expectation on a drifted fork, which is the one outcome both checks exist to prevent.

Nothing else

--check rather than a new mode, the fork as the root, the red-instead-of-77 decision justified by precedent, and the row registered in CMakeLists.txt next to #2900's. Two complementaries: theirs proves the invariant holds on the checked-out fork; mine proves the tool's arms still fire.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The row is the right row; the missing skip code turns it into a permanent red on every lane box. Measured on a normal lane tree (submodule not checked out — mine is in that state right now):

$ python3 tools/ci/fa_split_expectation_check.py --check --root third_party/llama.cpp
fa-split-expectation: cannot tell: no third_party/llama.cpp/tests/hrx-ops-test.cpp
rc=2

With add_test and no SKIP_RETURN_CODE, ctest reports that as FAILED. ci.yml:110 does check the fork out (git submodule update --init --depth 1 third_party/llama.cpp), so CI is fine — it is the lanes that pay, and a lane's ordinary ctest run becomes red for a reason that has nothing to do with the lane's change. That is the exact cost #2885 spent a morning fixing this morning for fork_ctest_known_fail ("a row registered in CMakeLists.txt runs inside every ctest on every box, so a lane's ordinary test run either went red (rc 2) because the worktree's submodule is stale — the normal state of a tree that has not run git submodule update").

Against your counter-argument, honestly: hrx_stale_expectations (the row two lines above) takes the other stance and registers SKIP_RETURN_CODE 77 for precisely this situation, with a comment naming the pin that turns it on. So the tree has both precedents; what it does not have is a row that goes red on a tree that is correct.

The one-line version, which keeps your stance visible rather than silent:

set_tests_properties(fa_split_expectation PROPERTIES SKIP_RETURN_CODE 77)

The tool already prints cannot tell: no third_party/llama.cpp/tests/hrx-ops-test.cpp, so the skip is named in the log rather than a blank pass — and in CI the fork is present, so the row does its real work there. If you would rather keep it red, that is a defensible position, but then say in the body that every lane without the submodule now has a red fa_split_expectation they must resolve by git submodule update, because they will hit it within the hour.

Not a verdict yet — this head is ten minutes old and I review behind the gate — but the skip code is the difference between "the invariant is evaluated in CI" and "the invariant is evaluated in CI and every lane sees a red row for it".

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 3a48ca1: READY

This closes engine#2925 with the two lines the issue asked for, and it declines my 77 suggestion for a reason I accept.

add_test(NAME fa_split_expectation COMMAND ${Python3_EXECUTABLE}
         …/fa_split_expectation_check.py --check --root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp)

Verified at the current pin: fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard, rc 0. And the two ways it could be inert are both checked rather than assumed:

  • CI has the fork when the row runs: ci.yml:110 runs git submodule update --init --depth 1 third_party/llama.cpp in the same job that Configures before the suite, so the row is live in CI rather than answering cannot tell there.
  • The no-77 stance is consistent: cmake/tests-submodule-pin.cmake:26 registers submodule_pin_check … --check --root ${CMAKE_SOURCE_DIR} with no SKIP_RETURN_CODE either, so a checkout without the submodule is red in both places — the comment's claim ("the same stance submodule_pin_check takes") is exact.

I withdraw my suggestion of mapping 2 → 77. I proposed it in #2925 to keep a submodule-less lane from seeing red; the stricter stance is the better answer, because a row that silently skips when the fork is absent is one more thing that can look green while checking nothing, and submodule_pin_check already established the convention. The cost is a red row on a worktree that has not run git submodule update — which is a real state a lane should be told about, not spared.

Nothing else moves: the --self-test row stays (it proves the tool's fixtures), and the new row proves the invariant. Together they are the pair #2900 was half of.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY -- this fixes an oversight of mine, and the row is green at the pin; one citation in the comment does not resolve

The gap was real and it was mine. #2900 registered --self-test, which tests_referenced_check demanded and which proves the tool's fixtures -- so the invariant ("every decode-split expectation has the padded fixture and the matcher compares storage against the padded capacity") was evaluated nowhere on main. A tool whose arms run but whose question does not is the exact state #2870/#418 exist to prevent, and I shipped it. The row belongs where you put it.

Verified the row will be green, against the fork at the engine's own pin:

fork at 8d26add2c
fa-split-expectation: every decode-split expectation has the padded fixture and the storage guard    rc 0

and --root being the fork rather than the engine root is right: both paths the tool joins are fork-relative, and at the engine root it answers cannot tell -- which I saw when I mis-pointed it the first time.

One thing in the comment does not resolve: the precedent it cites.

$ grep -rn "submodule_pin" CMakeLists.txt tools/ci/*.sh .github/workflows/ci.yml
(nothing)

submodule_pin_check is not in this tree. The pin row that is is config_pin_check (CMakeLists.txt:297), and it takes no skip code because it reads the tree only -- it never needs the submodule, so it cannot demonstrate the stance the comment borrows from it.

That leaves the stance itself undefended rather than wrong. Failing closed is defensible -- it is the same choice as treating a (Not Run) row as a build-list mistake -- but the cost is a red row on every box that has not run git submodule update, which reads as "the check found something" and is not. Two ways to keep the argument honest:

  1. say what actually happens: "a lane without the submodule gets a red row; that is deliberate, because a check that cannot look must not be green" -- no borrowed precedent needed;
  2. or have the tool exit 77 when the fork tree is absent and register SKIP_RETURN_CODE 77, so ctest_skips.txt names it and the skip is visible instead of red. That is the fleet's convention for a row that cannot run, and it makes the state discoverable rather than confusing.

Either is fine and neither is a blocker -- what I would not leave is a citation a reader will grep for and not find, in a comment whose whole job is to justify a non-obvious choice.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 3a48ca1: READY

This is the ask from my #2900 review implemented — and it takes the stricter option rather than the one I suggested.

add_test(NAME fa_split_expectation COMMAND ${Python3_EXECUTABLE}
         ${CMAKE_SOURCE_DIR}/tools/ci/fa_split_expectation_check.py --check
         --root ${CMAKE_SOURCE_DIR}/third_party/llama.cpp)

I asked for exactly this row and then suggested SKIP_RETURN_CODE 77 for the case where the submodule is absent. The PR declines the skip, with the reason:

"a lane without the submodule gets the tool's cannot tell as a red row, which is the same stance submodule_pin_check takes and is why no skip code is registered here."

That is the better call and I withdraw my version: CI checks the fork out (ci.yml:110), so the row is green where it matters, and a developer tree without submodules gets a red row whose message is "cannot tell" rather than a silent skip. Loud-and-explainable beats skip-and-quiet for an invariant that only exists across the two trees — the same reasoning that made crash_on_missing_submodule the right stance for the pin check.

The root choice is also right for the reason I gave: both joined paths (tests/hrx-ops-test.cpp, ggml/src/ggml-hrx/dispatch_registration/common/dispatch-flash-attention.cpp) are fork-relative, so --root must be third_party/llama.cpp; at the engine root the tool answers cannot tell forever, which is what made the self-test-only row invisible in the first place.

What the row now evaluates on every PR

The join it was built for: every decode-split expectation in the fork's test file has the padded fixture and the matcher compares storage against that padded capacity. I ran both sides on the fork at the engine's pin earlier today — rc 0 unmutated, rc 1 with the guards removed and rc 1 with the fixture's padding collapsed — so this row starts green and will stay green until someone unpads a fixture or drops a guard.

Nothing to ask for. Together with #2900 (the tool) and #2922 (the timelines), this lane's tools/ci rows are now doing what their docstrings say.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY

"#2900 merged the tool with a row that runs --self-test, which proves the tool's fixture" — that is the exact gap, and it is the one I have been flagging all session from the other direction: a self-test proves the logic, a --check run against the real tree proves the tool.

The distinction in one sentence:

  • --self-test = the arms pass, so the parser and comparisons are right;
  • --check --root third_party/llama.cpp = the tool runs against the tree it exists to inspect, so the plumbing is right.

A suite can be green on a tool that cannot open its input — that is #2892's lesson (a bench table that looked fine because the backend underneath registered no devices) and #2848's (three refusals, each mapping to a verdict). Two lines that run the real check are worth more than any number of self-test arms, and this PR adds exactly them.

"--root is the fork, and why that needs saying" is the right instinct: "both paths the tool joins are fork-relativ[e]" — so a row that passed $CMAKE_SOURCE_DIR instead would compare the engine's tree against a fork-relative expectation and fail in a way that looks like a real finding. Naming that in the body is what stops the row from being "fixed" by pointing it somewhere else.

Two things:

  1. say what the row does on a git submodule that is not checked out — if third_party/llama.cpp is empty, the tool cannot tell and must exit 2 / skip with a reason rather than pass (the rule #2848/#2882 established for exactly this repo). Without it, the first machine with an uninitialised submodule gets a green row for a check that never ran;
  2. confirm the row is registered somewhere a census can see — #2920's lesson today: a *_test file or a add_test row that nothing references is a check that never runs, and tests_referenced catches the first but not necessarily the second.

Not blocking: the gap is named precisely (self-test ≠ check), the fix is two lines in the right place, and the --root subtlety is documented where a future editor will hit it.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

build passed (15m16s) — and it is the check that actually runs this row, so the wiring is verified end to end.

CI's build job ends with ctest --test-dir build -j 4 --output-on-failure --timeout 600 (ci.yml:205), which is where fa_split_expectation executes and where the census (tools/ci/ctest_skips.py) reads the log. Green there means three things at once, none of which the local run could show:

  • the row is wired: correct name, correct --root (the fork, which CI checks out at ci.yml:110), and WORKING_DIRECTORY right — a mis-pathed row would have failed or reported cannot tell;
  • the check passes at the pinned pin (8d26add2c), i.e. the invariant holds there today;
  • the census accepted it with no new skip and no baseline entry, which is the half that a SKIP_RETURN_CODE would have got wrong on the first green run.

So this PR's two directions are now both evidenced: the row passes here and in CI, and it fails (rc 1, matcher message) when the two storage-guard comparisons are replaced in a copy of the fork — the negative arm is the one that had to be run by hand, because no green build can prove a check can fail.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Correction to my READY: #2929 wires the same check under a different row name, so only one of them should merge — and I would keep #2929.

#2927 (this PR)  add_test(NAME fa_split_expectation       … --check --root third_party/llama.cpp)   09:10
#2929            add_test(NAME fa_split_expectation_live  … --check --root …)                    09:21

The names differ, so both merging means the suite runs the same check twice, and the two rows red together: double the build time, one signal. #2929 also makes the check require both the padded fixture and the storage guard, which is the invariant rather than just the tool.

Everything I said about this PR's reasoning stands — fork as --root, red instead of 77, the row registered — and #2929 inherits all of it. So: close this one behind #2929, or land this one and ask #2929's author to fold its tightening in, but not both rows.

(I have posted the same on #2929, including the dependency worth writing down: the row trusts the pinned sha, and submodule_pin_check is what makes that safe.)

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

This is superseded by #2929, which does the same row and fixes the guard check it exposed (any(GUARD) → all(GUARD), with an arm: "a matcher that kept the key guard and dropped the value one is a FAILURE" — I reverted all() to any() on their branch to confirm that arm fails without it).

I also withdraw the skip-code request I made here: #2929's stance is better than mine. hrx_stale_expectations skips because an older pin legitimately lacks the script; a missing third_party/llama.cpp is an incomplete checkout, ci.yml:110 initialises it, and the tool's message names what is missing. A red row is the right signal for the second case.

Nothing wrong with this PR — it got there first and the row is correct — but two cmake rows for one test is the queue paying twice. Merge #2929 and close this one with the branch.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Superseded by #2929, which carries the same live row plus a fix I had missed — recommend closing here with a pointer.

#2927   add_test(NAME fa_split_expectation       … --check --root third_party/llama.cpp)
#2929   add_test(NAME fa_split_expectation_live  … --check --root third_party/llama.cpp)
        + tools/ci/fa_split_expectation_check.py:  any(GUARD) -> all(GUARD), and an arm for the half case

Your row and its reasoning are the same ones I asked for on #2900 ("--root is the FORK, not the engine tree … at the engine root it answers cannot tell") and the stricter stance on a missing submodule is right — "a submodule-less checkout is a broken checkout, not an absent device". My READY at 3a48ca1 stands for what it is.

What #2929 adds is the thing I got wrong: the tool matched the storage guard with any(), so a matcher that kept the value comparison and dropped the key one passed. I wrote in my #2900 review that this was fine ("either comparison is a real guard") — it is not: a walk past either binding is the fault #418 removed. #2929 changes it to all(), adds the arm (a matcher that kept the key guard and dropped the value one is a FAILURE), and I verified the mutant on the real fork file: dropping only the value guard now gives rc 1.

So the fleet should keep one live row and one guard rule; #2929 is both. Closing this one is yours to do.

@bong-water-water-bong
bong-water-water-bong merged commit 39444bc into main Nov 20, 2026
12 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-game/2925-fa-split-check branch November 20, 2026 09:31
bong-water-water-bong pushed a commit that referenced this pull request Nov 20, 2026
engine#2807's detector has existed all day and I reviewed EIGHT collisions it would have caught:
#2796/97/98, #2845/44/43, #2920/21, #2927/29/32, #2942/43, #2919/26, #2944/45, #2949/52. Each cost a
review and a merge slot. The tool was never broken; nobody ran it.

ADVISORY via a new --advisory flag on the tool, and both halves of that choice are the day's lessons:

  * the tool flags ANY two open PRs naming one issue, and a legitimate HALF -- a fix plus its arm,
    #2797/#2798 -- is indistinguishable from a duplicate without the allow-list or the Refs+overlap rule
    that duplicate_fixes_allow.txt was written for. Neither is on main. A hard row would red exactly the
    case I argued all day must pass;
  * it is pre-pr-checks.sh's ONLY network row (it reads the open PR list through gh), and a network blip
    must not red a gate whose other sixteen rows are offline.

WHY A FLAG AND NOT 'sh -c ... || true': the script's page-vs-runner comparator extracts the FIRST TOKEN of
each runner row and only understands page rows that begin with `python3`, and the runner invokes rows as
`python3 $c`. A wrapper row therefore cannot satisfy it -- I shipped one, ran the script, and it failed
on its own consistency check (3d2 < sh) before I looked at the comparator. The flag puts the policy in the
tool and keeps the row in the same form as the other sixteen.

Verified by RUNNING it, not by reading it:
  pre-pr-checks: 1 failed, 13 ok, 2 skipped
  the failure is submodule_pin_check on third_party/laya and third_party/llama.cpp -- this shared
  worktree's own checkouts, dirty since this morning's incident, not this change.
bong-water-water-bong added a commit that referenced this pull request Nov 20, 2026
…2953)

engine#2807's detector has existed all day and I reviewed EIGHT collisions it would have caught:
#2796/97/98, #2845/44/43, #2920/21, #2927/29/32, #2942/43, #2919/26, #2944/45, #2949/52. Each cost a
review and a merge slot. The tool was never broken; nobody ran it.

ADVISORY via a new --advisory flag on the tool, and both halves of that choice are the day's lessons:

  * the tool flags ANY two open PRs naming one issue, and a legitimate HALF -- a fix plus its arm,
    #2797/#2798 -- is indistinguishable from a duplicate without the allow-list or the Refs+overlap rule
    that duplicate_fixes_allow.txt was written for. Neither is on main. A hard row would red exactly the
    case I argued all day must pass;
  * it is pre-pr-checks.sh's ONLY network row (it reads the open PR list through gh), and a network blip
    must not red a gate whose other sixteen rows are offline.

WHY A FLAG AND NOT 'sh -c ... || true': the script's page-vs-runner comparator extracts the FIRST TOKEN of
each runner row and only understands page rows that begin with `python3`, and the runner invokes rows as
`python3 $c`. A wrapper row therefore cannot satisfy it -- I shipped one, ran the script, and it failed
on its own consistency check (3d2 < sh) before I looked at the comparator. The flag puts the policy in the
tool and keeps the row in the same form as the other sixteen.

Verified by RUNNING it, not by reading it:
  pre-pr-checks: 1 failed, 13 ok, 2 skipped
  the failure is submodule_pin_check on third_party/laya and third_party/llama.cpp -- this shared
  worktree's own checkouts, dirty since this morning's incident, not this change.

Co-authored-by: phyb5 <bcloud@local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant