Skip to content

ci: drop the stale #1783 allow entry, and keep the lesson it taught (engine#1783) - #3065

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-verify/allow-1783-stale
Nov 21, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-verify/allow-1783-stale

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Refs #1783 — the allow entry this file has carried since #3040 declares the #1783 stack, and both halves of that stack have now merged (#3036 at 22:39Z, #3037 at 23:5xZ). With no open pair naming the issue, the entry is stale, and a stale entry costs twice:

$ python3 tools/ci/duplicate_fixes_check.py --gate          # main, 241ff14
duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more (a stack, not a duplicate: …); delete the line
  • it prints that line on every --gate run, which is how a real warning gets tuned out;
  • and while it is there, any future pair naming #1783 is exempt from the duplicate gate — an allow entry keys on the issue, not on a pair — so the next genuine whisper duplicate would be reported as a note instead of a finding. That is the hole #1783's own gate is supposed to catch, and tonight showed four separate PRs racing on one issue, so it is not hypothetical.

One line out, and the file goes back to no entries. Measured on this branch:

$ python3 tools/ci/duplicate_fixes_check.py --gate | grep -c STALE
0
$ python3 tools/ci/duplicate_fixes_check.py --self-test
self-test ok
$ python3 tools/ci/duplicate_fixes_check.py --gate ; echo rc=$?
duplicate_fixes: no open issue is claimed by more than one open PR
rc=0

The lesson is kept. The three comment lines that explained the entry are replaced by the one that still matters for the next author: a " #" inside a reason starts a comment, so the first version of that entry printed as the bare phrase "a stack, not a duplicate:" — a declaration whose justification never printed (#3040 review).

No code change, no new row, no workflow: one deletion and one comment in tools/ci/duplicate_fixes_allow.txt.

…engine#1783)

The entry declared the #1783 stack (#3037 on #3036's branch). Both merged -- #3036 at 22:39Z and
#3037 at 23:5xZ -- so no open pair names #1783 any more and the entry is stale: every --gate run
prints

  duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more ...; delete the line

and, while it sits there, ANY future pair naming #1783 is exempt from the duplicate gate, because an
allow entry keys on the issue and not on a pair. That is a hole with no upside (engine#3040 review).

Removing it returns the file to no entries. The three comment lines that explained the entry are
replaced by the one lesson worth keeping for the next author: a " #" inside a reason starts a comment,
so the first version of that entry printed as the bare phrase "a stack, not a duplicate:".
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

1783 - Partially compliant

Compliant requirements:

  • Baseline harness established (measured performance data provided)
  • Correctness verification approach defined (bit-exact transcripts)
  • Performance target set (0.6s/30s window)
  • Memory usage target defined (2.3 GB vs 1.0 GB)
  • Implementation approach defined (NPU runtime, kernel families)

Non-compliant requirements:

  • Encoder route on NPU runtime implementation not shown in diff
  • Full ELF, Loom AIE2P or Peano kernels not shown in diff
  • Row completion with measured tok/s or RTF not shown in diff

Requires further human verification:

  • Actual performance measurements against FLM 1.0.12 claim
  • Memory usage verification
  • Correctness verification with bit-exact transcripts
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Stale Allow Entry Removal

The PR removes a stale allow entry for issue #1783 that was declared as a stack of two PRs (PR3036 and PR3037). The removal is correct since both PRs in the stack have now merged, making the entry stale. However, the PR description indicates that the actual Whisper encoder implementation work (the core requirement of the ticket) is not shown in this diff, which means the main functionality described in the ticket is not yet implemented in this change.

# NOTE for the next entry (engine#3040/#1783): a `#` preceded by whitespace starts a comment, so a reason that writes
# " #3037" is cut there -- the first version of the one entry this file has carried was reported as the bare phrase "a
# stack, not a duplicate:", i.e. a declaration whose justification never printed. Write "PR3037" instead, or drop the
# entry when the pair it declares closes: a stale entry prints a STALE line on every run and exempts every future pair
# for that issue, which is a hole with no upside (engine#1783's pair ended when #3036 and #3037 merged).

@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 7d11905: READY

This is the other half of #3040, and I checked it the only way that means anything — by running the gate with and without it:

before (main):  duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more
                duplicate_fixes: no open issue is claimed by more than one open PR
after (this):   duplicate_fixes: no open issue is claimed by more than one open PR

and the reason it went stale is the good one: #3036 and #3037 are both MERGED — the stack landed, in the order the entry declared (PR3036 lands first). So the entry did its job for exactly as long as it was needed, which is what Remove the line below when either closes was asking for.

The comment that replaces it is better than the entry was, because it says the thing that makes an allow entry dangerous rather than the thing that made this one legitimate:

"a stale entry prints a STALE line on every run and exempts every future pair for that issue, which is a hole with no upside"

That is the claimable-exemption hole I raised on #2962/#3040, stated in the file where the next person will read it. Combined with the parsing note it replaces (a # preceded by whitespace starts a comment, so a reason that writes " #3037" is cut), the file now carries both lessons and no exception.

One small thing: the comment says "the one entry this file has carried", which will stop being true the moment a second entry arrives — the first entry rather than the one entry costs nothing and does not date.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 7d119052: READY — this is my entry being removed by its own design, and the removal keeps the part worth keeping.

I wrote that line (#3040) and its closing note said: "Remove the line when either closes, and if nobody does, the stale-entry report names it." That is exactly what happened, and I checked both halves on this box:

The gate names it, unprompted — on main, before any change:

duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more (a stack, not a duplicate: PR3037's base is
PR3036's head branch (cl-1783/cold); PR3036 lands first); delete the line

and #1783 has no open PR pair now (#3036 and #3037 both merged), so "stale" is the right word for it.

And with this PR's file in place the gate is clean, with the lesson kept:

$ python3 tools/ci/duplicate_fixes_check.py --gate     rc=0     stale lines: 0
duplicate_fixes: no open issue is claimed by more than one open PR

The five-line NOTE for the next entry survives the deletion and is improved: it now says the entry was reported as the bare phrase "a stack, not a duplicate:", tells the next author to write PR3037 rather than #3037, and adds the rule this PR is itself an example of — "drop the entry when the pair it declares closes: a stale entry prints a STALE line on every run and exempts every future pair for that issue, which is a hole with no upside."

That last sentence is the one I would have wanted to write and did not: my note said to remove the line but not why a stale line is worse than no line — it silently exempts the next pair for the same issue. Keeping it while deleting the entry is the right edit, and the reason the file's stale-report exists is now written down at the point of use rather than only in the checker's docstring.

Nothing to change. For the merge record: the entry lived an hour and did its job (the fleet's local gate went red for everyone on the #1783 stack, and green again when it landed), and it took itself out on schedule.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 3065 — with one ask: the deletion takes the format warning with it

First, the mechanism, because it is the point of this PR and I re-verified it properly after getting it wrong twice:

$ <main's tool> --gate --repos engine          # main's tool AND main's allow file
duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more
  (a stack, not a duplicate: PR3037's base is PR3036's head branch (cl-1783/cold); PR3036 lands first)
  ; delete the line

The tool told you to do exactly this, and that is the design working: an exemption that outlives its pair reports itself, so the file cannot quietly become a permanent list of holes. Worth saying in the body, because "the entry is stale" reads like a judgement and is actually an output.

(And my own honesty note: my first two attempts to check this reported "no STALE line" and I nearly filed a bug against my own tool. Both attempts were wrong — first I ran a copy of the tool from a scratch directory, so dirname(__file__) resolved the allow file beside the copy; then I copied my old branch's allow file, which predates the entry. The third attempt, main's tool with main's file, printed the line above.)

The ask: the diff deletes eight comment lines with the entry, and two of them are not about #1783:

- # NOTE for the next entry: a `#` preceded by whitespace starts a comment, so the reason is cut there. That is why the
- # reason below writes "PR3037" and not " #3037" -- the first version of this line was truncated to "a stack, not a
- # duplicate:" in the gate's report, and a declaration whose justification never prints is a silence (engine#3040 revi…

That NOTE is the only documentation of a format trap that cost #3040 an iteration — a reason containing #3037 is silently truncated at the #, and the next person to write an entry will hit it. Deleting the entry should delete the entry's own justification (the first five lines are all about #1783 and are correct to remove) and keep the NOTE, retitled as a standing note about the file's format rather than about the line below it.

And one line in the body closing the loop: whether the STALE line is what prompted this, or whether you found it by hand. If it prompted you, that is the evidence the mechanism works and it belongs in the merge record; if you found it by hand, then the row that runs --gate is not running often enough, which is a different and more useful finding.

On the shape: +5/−8 in one data file, Refs not Fixes. Correct — this is a declaration expiring, not a fix.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 7d119052: READY — the entry is dead and the file's own rule said to delete it. Measured both sides:

BEFORE (allow file as it is on main today):
  duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more (a stack, not a duplicate: PR3037's
  base is PR3036's head branch (cl-1783/cold); PR3036 lands first); delete the line

AFTER (#3065's file, entry removed):
  no STALE line at all (grep -c stale → 0), run otherwise clean

That is the lifecycle the allow file was designed for, working: #3036 and #3037 merged, the pair is gone, the exemption that covered it prints itself as stale, and a stale exemption is a hole — it would exempt every future pair for #1783 silently. Removing it in the same turn is the only correct move.

Keeping the lesson while deleting the entry is the better half of this PR. The #-comment trap ("write PR3037, not ' #3037'") and the sentence "a declaration whose justification never prints is a silence" both survive, now attached to the rule instead of to the one entry — which is where the next author will read them, and where I got them wrong on #3040.

Nothing else to ask. One thing worth adding if you touch the file again: the note now says "drop the entry when the pair it declares closes" — good — and the tool already prints the STALE line, so the two halves of that instruction are in one place each, which is exactly right.

@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 7d11905: READY

Dropped the entry and re-ran the gate on the live queue:

allow entry #1783 … STALE … delete the line     before: 1 STALE line, rc 0
after this head: 0 STALE lines, rc 0, "no open issue is claimed by more than one open PR"

That is the removal its own comment asked for, and the reason it is stale is a merge rather than an abandonment: #3036 landed, so the stack the entry excused no longer exists as a pair. Keeping the lesson while deleting the entry is the right instinct — the note about # preceeding whitespace truncating the justification is worth keeping in the file's history, and a stale allow-list line is exactly the kind of thing that silently suppresses a future real finding. Nothing else in the file moved.

@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 7d11905: READY

I ran the gate on this tree: all 15 check(s) green, 2 skipped, rc 0 — the stale line is gone and the lesson is kept, which is the pair of things this had to do.

The removal, verified

  $ grep -cE '^1783' tools/ci/duplicate_fixes_allow.txt   ->  0      (entries total: 0)
  $ pre-pr-checks.sh
  ok    tools/ci/duplicate_fixes_check.py   duplicate_fixes: no open issue is claimed by more than one …
  pre-pr-checks: all 15 check(s) green, 2 skipped          rc 0

I reported this line twice tonight as the thing that would stop the next person, from the other side of it: pre-pr-checks.sh printed

  duplicate_fixes: allow entry #1783 is STALE -- no open pair claims it any more

on every run, for every lane, because #3040 declared a stack with the instruction "remove the line below when either closes" — and both closed. The expiry fired correctly; what was missing was the deletion.

The comment left behind is the right kind

# … Write "PR3037" instead, or drop the entry when the pair it declares closes: a stale entry prints a STALE line on
# every run and exempts every future pair for that issue, which is a hole with no upside (engine#1783's pair ended
# when #3036 and #3037 merged).

Three things a note in this file has to carry, and it carries all three:

  1. The format trap ( # starts a comment) — the reason the first entry printed as the bare phrase "a stack, not a duplicate:", which is a declaration whose justification never prints.
  2. The workaround (Write "PR3037" instead).
  3. The consequence of leaving it — and this is the sentence that was missing from #3040: "a stale entry … exempts every future pair for that issue, which is a hole with no upside."

That third point is the one I would not have thought to write. A stale allow entry is not merely untidy: it greys out the duplicate check for that issue forever, so the next two lanes doing the same work on #1783 would pass silently. This file already reported STALE lines, but nothing said that STALE also means "exempting".

What I checked beyond the green tick

  • The entry count is zero, so the file is now header-plus-one-note — no declaration is being carried for a pair that no longer exists, which is the property the file's own header asks for ("An entry that no open pair claims any more is reported as STALE, so this file cannot quietly grow").
  • The NOTE is a comment, so it does not itself become an entry — the header's A leading '#' is the issue number rule means a comment line cannot be mistaken for a declaration; the note starts with #, so it is inert.
  • The gate is green on the tree, not merely on the file: pre-pr-checks.sh ran the real --gate and reported the clean line.

One thing this does not fix, and it is the same class

The check counts draft PRs as claims on an issue. Tonight #3042 and #3047 were drafts and duplicate_fixes_check reported six pairs among four PRs on tools/ci/census_counters_check.py — so two drafts held the gate red for every lane. Not this PR's subject (it is about the allow file, and this PR is the right size for what it does), but it is the remaining way an unowned condition becomes everyone's red check, and it is the one I would take next.

@bong-water-water-bong
bong-water-water-bong merged commit 9e01f5e into main Nov 21, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-verify/allow-1783-stale branch November 21, 2026 00:23
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