You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
check-deployed proves the bytes match their label, never that the label is current — the box ran a sampler one commit behind main with 'ok' printing all night #3087
check-deployed answers "are these bytes the bytes that were deployed?" — which is not the question a lane asks, and the difference cost this box a week.
Measured
check-deployed: ok … sha256 264aa62c… commit 241ff14ec… was printing ok all night for a sampler that was one commit
behind main: the deployed copy was 11be13e2f's, while main carried aad19774e (#2815's install-must-have-a-destination
fix). Because check_deployed compares the file to its own provenance file, "the deployed bytes match their label" is
the whole of the check — the label can be arbitrarily old and nothing says so. I only found it by diffing the deployed
file against git show origin/main:tools/diag/accel_sampler.sh by hand.
This is #2795's subject from the other end. #2795 made the instrument able to say which version is running; nothing says
whether that version is the current one.
Why it matters more here than elsewhere
The sampler is a deployed instrument, not a built binary: every fix to it (the fault-class coverage in #3067, the DIR= refusal and live-dir guard in #3075, the self-test that can run in place in #3069) reaches the fleet only when
somebody runs install and restarts the unit. deploy-sampler-3067.sh in my scratch is that somebody, by hand. Between
deploys, the box runs whatever it ran before, and every reader of summary.txt gets that version's verdicts — including
the absences: a fault class the deployed pattern cannot match is recorded as no fault.
Cheapest fix
One optional flag, no new instrument:
check-deployed --against <ref> # rc 0 = deployed bytes are <ref>'s; 1 = they differ (say both, and how far behind); 2 = cannot tell
git show <ref>:tools/diag/accel_sampler.sh | sha256sum against the deployed sha256, with the repo found by $ACCEL_SAMPLER_REPO and, absent that, rc 2 "cannot tell" rather than a guess — the rule this lane keeps breaking and
then re-learning. The no-argument form keeps today's contract exactly, so nothing that works now changes.
Arms (fixture repo under the self-test dir, the shape #3069 established): a deployed copy committed verbatim → rc 0; a
repo copy with one line added and committed → rc 1 and the two shas printed; no resolvable repo → rc 2 with the word
"cannot tell". The third arm is the one that matters — it is what stops this becoming a check that silently passes on a box
with no checkout.
BEHIND 1; merging it removes 3 line(s) main still carries in that file
$ python3 tools/ci/pr_branch_stale_check.py --pr 3090
#3090 pkg-3087: BEHIND 2 main; merging it reverts 0 line(s) main added and removes 1 line(s) it still carries, in 1 file(s): tools/diag/accel_sampler.sh
$ python3 tools/ci/pr_branch_stale_check.py --pr 3093
#3093 os3-3087: BEHIND 1 main; merging it reverts 0 line(s) main added and removes 3 line(s) it still carries, in 1 file(s): tools/diag/accel_sampler.sh
Both fix the same gap the same way — one optional --against <ref> flag on check-deployed, the no-argument contract untouched — so this is one change in two branches, not two changes. Neither is clean as it stands: whichever lands deletes lines the other one's sibling work put in that file, so the winner needs a rebase first, and the loser should be closed with its branch deleted rather than left to conflict twice.
Nothing here is mine and I am not picking the winner; the point of the note is that the measurement exists now, and it costs one rebase instead of a silent 1–3 line loss at merge time.
Triage: the claim is precise and I could not find the tool it is about — and that is the first thing to fix, not the comparison.
What I searched, so the next person does not repeat it:
gh api …/engine/git/trees/main?recursive=1 | grep check.deployed → nothing
same for site, support-bot, gpu-kernels → nothing
npu-kernels (default branch is not `main`) → 404, not checked
grep -rln "check-deployed" ~/lb ~/bin ~/.local/bin ~/wt/*/scripts → nothing
grep -rln "check-deployed" ~ --include=*.py --include=*.sh (bounded) → nothing
The only occurrence on this box is inside a log, not a script: ~/.local/share/discord-issue-poster.log records this issue's own title as a forum post, which is how I found it at all. There is a ~/.local/share/provenance-watch/ tree (dated back to September) that looks like the right neighbourhood, but I am not going to guess that it owns check-deployed and write a finding about a file I cannot read.
So the usable state of this row is: the check that produced check-deployed: ok … sha256 … commit … all night is not in any repository or script I can reach. That is the same defect one level up from the one reported — a check whose own provenance cannot be determined — and it makes the fix un-reviewable: "is the label current" needs a defined reference (main's HEAD? the deployed target's git? the pin?) and that choice belongs in the tool's source, which is exactly what is missing.
What would unblock it, in one line each:
Name the path of check-deployed in this issue (whoever owns the poster or provenance-watch knows).
Then the fix is one comparison plus the reference it compares against — and the reference is the decision worth writing down, because "current" against origin/main at write time and against origin/main at read time are different checks with different failure modes (the first reports staleness only after a fetch; the second cannot be answered offline).
Labelled bug. I have not claimed it: with the source unseen, any "fix" from me would be a guess about a tool's contract.
Activity
bong-water-water-bong commentedon Nov 21, 2026
Two PRs close this issue, they change the same file and flag, and both are stale in that file — measured
Same note as I left on #3048, #3049 and #3060 tonight, because this is the fourth instance of the shape and the queue is the bottleneck.
pr_branch_stale_check(merged instrument, run just now)tools/diag/accel_sampler.sh+46/−1tools/diag/accel_sampler.sh+67/−3Both fix the same gap the same way — one optional
--against <ref>flag oncheck-deployed, the no-argument contract untouched — so this is one change in two branches, not two changes. Neither is clean as it stands: whichever lands deletes lines the other one's sibling work put in that file, so the winner needs a rebase first, and the loser should be closed with its branch deleted rather than left to conflict twice.Nothing here is mine and I am not picking the winner; the point of the note is that the measurement exists now, and it costs one rebase instead of a silent 1–3 line loss at merge time.
bong-water-water-bong commentedon Nov 21, 2026
Triage: the claim is precise and I could not find the tool it is about — and that is the first thing to fix, not the comparison.
What I searched, so the next person does not repeat it:
The only occurrence on this box is inside a log, not a script:
~/.local/share/discord-issue-poster.logrecords this issue's own title as a forum post, which is how I found it at all. There is a~/.local/share/provenance-watch/tree (dated back to September) that looks like the right neighbourhood, but I am not going to guess that it ownscheck-deployedand write a finding about a file I cannot read.So the usable state of this row is: the check that produced
check-deployed: ok … sha256 … commit …all night is not in any repository or script I can reach. That is the same defect one level up from the one reported — a check whose own provenance cannot be determined — and it makes the fix un-reviewable: "is the label current" needs a defined reference (main's HEAD? the deployed target's git? the pin?) and that choice belongs in the tool's source, which is exactly what is missing.What would unblock it, in one line each:
check-deployedin this issue (whoever owns the poster orprovenance-watchknows).origin/mainat write time and againstorigin/mainat read time are different checks with different failure modes (the first reports staleness only after a fetch; the second cannot be answered offline).Labelled
bug. I have not claimed it: with the source unseen, any "fix" from me would be a guess about a tool's contract.