Skip to content

census-watch: a quiet run files nothing — the alert output was computed and never read (Fixes #2846) - #2847

Merged
bong-water-water-bong merged 2 commits into
mainfrom
fix/2846-census-quiet-files-nothing
Nov 17, 2026
Merged

bong-water-water-bong merged 2 commits into
mainfrom
fix/2846-census-quiet-files-nothing

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Fixes #2846 — and the issue itself is the evidence, because it should never have been filed.

What happened

The watch job publishes an alert output. Nothing read it. The alert job branched only on WATCH_RESULT:

env:
  WATCH_RESULT: ${{ needs.watch.result }}
  SIMULATED: ${{ needs.watch.outputs.simulated }}
  # no ALERT
...
if [ "${WATCH_RESULT}" != "success" ]; then   # failure template
  ...
fi
# ...and the coverage-breach body, unconditionally

So every scheduled run whose watch job succeeded assembled the coverage body and posted it, quiet or not. On 2026-11-17 13:42Z (run 44095450498) the watcher found nothing to alert on:

census-watch: 120 newest text-generation models checked, 49 with an architecture, 48 mapped, 1 uncovered class(es), 12 unverifiable …
  . REMOTE-CODE K2HorizonForCausalLM: 1 model(s) from 1 uploader(s), e.g. eyes-ml/K2-Horizon-32B
  -> 34 pack(s) already answered in registry/flm_answers.json (listed, not alerted …)
  -> release(s) v1.0.12, v1.0.10, v1.0.6, v0.9.41 name the Q4NX container format (q4nx, chunk, layout) …

The "1 uncovered class(es)" is K2HorizonForCausalLM, a custom-code class with one uploader, which is quiet by REMOTE_CODE_SPREAD = 3 (tools/census_watch.py:1019) — it prints as . REMOTE-CODE and does not alert. flagged (the release note) does not set the exit code either (return 1 if (unmapped_repos or gaps) else 0). rc was 0 and an issue was filed anyway, with an excerpt of filler rows and two advisory conclusions. That is the #2677 "the issue looks empty" shape made structural: not a truncated excerpt, but a body with no finding because there was no finding.

The fix

env:
  ALERT: ${{ needs.watch.outputs.alert }}      # the output nobody read
...
if [ "${ALERT}" != "true" ]; then
  echo "census-watch: quiet -- no issue filed (alert=${ALERT})"
  exit 0
fi

after the failure branch, so the two paths that should speak are untouched: WATCH_RESULT != success still files the "the watch did not run" issue (that widening exists so a blind watch is never silent), and alert=true still files the coverage breach.

The arm, and that it fails on what shipped

tests/census_alert_job_test.py runs the job's own run: block — extracted from the workflow, not a copy — with a stub gh on PATH, and asserts what it files in each state:

against main's version:
  PASS  a quiet run exits 0
  FAIL  a QUIET run files nothing (engine#2846)  [issue create --title census: new HF model class uncovered by the registry …]
  PASS  an alerting run exits 0
  PASS  an alerting run files exactly one coverage issue
  PASS  a failed watch exits 0 from this step
  PASS  a failed watch still files (the alert output is false there)

with the guard: census_alert_job: ok (6 PASS)

The third state is the one a careless fix breaks: the job was widened to always() precisely so a checkout/network failure files something, and the guard is placed after that branch to keep it.

census_alert_job is a new hermetic ctest row (~0.2 s, no network, no token) and runs in the build job's suite; copyright.py --check rc 0, yaml.safe_load ok, the step's block bash -n clean.

🤖 Generated with Claude Code

The watch job published an `alert` output and **nothing read it**: the alert job branched only on
`WATCH_RESULT`, so every scheduled run whose watch job succeeded assembled the coverage-breach body and
posted it. On 2026-11-17 13:42Z the watcher found nothing to alert on — zero `!!` rows, the "1 uncovered
class(es)" in its summary being K2HorizonForCausalLM, a custom-code class with one uploader and therefore
`quiet` — and an issue was filed anyway, with filler rows and two advisory `->` lines in it. That is the
#2677 "the issue looks empty" shape, made structural: not a truncated excerpt, but a body with no finding
because there was no finding.

  - the step gets `ALERT: ${{ needs.watch.outputs.alert }}`, and after the failure branch a guard: a run
    that succeeded and did not alert exits 0 without posting;
  - `tests/census_alert_job_test.py` runs the job's own `run:` block (extracted, not copied) with a stub
    `gh` on PATH and asserts the three states. Against main's version it fails on the first:

      PASS  a quiet run exits 0
      FAIL  a QUIET run files nothing (engine#2846)  [issue create --title census: new HF model class uncovered …]
      PASS  an alerting run files exactly one coverage issue
      PASS  a failed watch still files (the alert output is false there)

    With the guard: all six arms pass. The failure path is kept honest by its own arm — widening the job to
    `always()` exists so a watch that did not run still speaks, and that must not be lost to this fix.

`census_alert_job` is a new ctest row (hermetic, ~0.2 s) and runs in the build job's suite.

@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 — verified at 8868ff0, both mutants caught by the arm that should catch them.

Built and run (hermetic, 0.05 s, no network, no token, tempfile.TemporaryDirectory for the issue body):

$ python3 tests/census_alert_job_test.py
PASS  a quiet run exits 0
PASS  a QUIET run files nothing (engine#2846)
PASS  an alerting run exits 0
PASS  an alerting run files exactly one coverage issue
PASS  a failed watch exits 0 from this step
PASS  a failed watch still files (the alert output is false there)
census_alert_job: ok

Mutant A — main's workflow, no guard (the version that shipped): FAIL a QUIET run files nothing … [issue create --title census: new HF model class uncovered by the registry …], 1 failure. Mutant B — the guard moved before the failure branch: FAIL a failed watch still files, 1 failure, and the quiet arm still passes. So the placement after the WATCH_RESULT != success branch is load-bearing and the test says so by name, which is the one thing this fix could silently break (that widening exists so a blind watch is never silent).

The output the guard reads is written on all three exit paths of the watch step — 0) alert=false, 1) alert=true, *) alert=false (census-watch.yml:166,167,176) — so a real !! breach cannot reach the guard with an empty ALERT and be dropped, which is the only dangerous direction here. alert is declared in watch.outputs (:8) and yaml.safe_load is clean.

Also checked: copyright.py --check rc 0; the new row sits inside if(Python3_Interpreter_FOUND) beside census_watch_excerpt with WORKING_DIRECTORY set, so it runs in the build job's suite and nowhere that lacks Python; alert and watch are the only two jobs, so nothing downstream depended on a quiet run filing something.

Caveat, not a change request: the guard is != "true", so the next rc branch that forgets to write alert= reads as quiet. Today all three write it; a comment at the switch saying so is all I would add, and the six arms already make the omission visible the day someone adds a fourth path with an alerting run in the test.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 0e26b06)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2846 - Partially compliant

Compliant requirements:

  • The workflow now checks the ALERT output before proceeding to file an issue
  • The fix prevents creation of empty issues when no alerts are generated
  • Added test coverage to verify the behavior in all three states: quiet run, alerting run, and failed watch

Non-compliant requirements:

  • None

Requires further human verification:

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

Quiet Run Issue

The workflow was incorrectly filing coverage breach issues for quiet runs where no alerts were generated. The fix adds a check for the ALERT output before proceeding to file an issue, preventing the creation of empty issues. This addresses the specific case where a watch job succeeded but generated no alerts, yet the coverage body was still assembled and posted as an issue.

# A watch that ran, found nothing and alerted on nothing files NOTHING. Without this guard the body below
# is assembled for a quiet run too, and `post` then creates an issue whose only content is the per-row
# stream (engine#2846).
if [ "${ALERT}" != "true" ]; then
  echo "census-watch: quiet -- no issue filed (alert=${ALERT})"
  exit 0
fi
✅ Resolved findings

.github/workflows/census-watch.yml:263-269

Quiet Run Issue

The workflow was incorrectly filing coverage breach issues for quiet runs where no alerts were generated. The fix adds a check for the ALERT output before proceeding to file an issue, preventing the creation of empty issues.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 2847

"The watch job publishes an alert output. Nothing read it."

That is the fourth instance tonight of one shape, and it is worth naming rather than fixing quietly:

artefact who was supposed to read it
#2847 (this) the alert output of the watch job — the alert job branched only on WATCH_RESULT
#2769 the fold tool — no caller
#99 the self-test arms — no CI row
#2817 the installed gpu-hold — the test read the tree copy

An output nobody consumes is worse than an absence: the producer's log says it published the alert, so every reader of that log concludes the alert was delivered. Here the visible symptom was the opposite of the real one — every successful run posted a coverage breach, because the unconditional fall-through branch was the only one left.

Four asks:

  1. the arm must be a simulated run with alert=false — assert no coverage-breach body. A test that only checks the failure path passes exactly as it does today;
  2. and a second arm with alert=true — the output existing and being ignored is the bug, so the arm that proves it is read is the one that makes it a signal;
  3. SIMULATED and alert are now two flags that must not disagree — say what happens if a run is simulated and alerting (does it post?), because the next person to touch this will find two booleans and no stated precedence;
  4. the issue's own framing should be carried into the YAML — "the issue itself is the evidence, because it should never have been filed" is a comment worth having next to the branch, since a reader in six months will otherwise re-add an unconditional fall-through.

And a note on the workflow itself: this is a .github/workflows/ change, so it can only land over ssh:// (engine docs/ci-runners.md, § Landing a change under .github/workflows/, including its trap about pushes whose commits already exist). Say it was pushed that way — three lanes baselined such changes as blocked before that paragraph existed.

@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

"Fixes #2846 — and the issue itself is the evidence, because it should never have been filed" is the right way to open this, and the diagnosis is a class I would not have looked for: an output was computed, published, and never read.

ALERT: ${{ needs.watch.outputs.alert }}      ← was missing entirely
if [ "${ALERT}" != "true" ]; then echo "census-watch: quiet -- no issue filed"; exit 0; fi

The bug is not that the coverage body was wrong — it is that the job had no condition at all. WATCH_RESULT != success selected the failure template, and the coverage body ran unconditionally after it, so every successful watch filed a coverage issue whether or not anything was breached. On 2026-11-17 13:42Z that produced an issue with 0 alerts and an excerpt whose only content was structural.

The three-state assertion in the body is the part that keeps this fixed: "quiet files nothing, an alert files one coverage issue, a failed watch still files the failure" — three outcomes, three behaviours, stated as one invariant. That is the shape that survives a refactor; "don't file when quiet" alone would not tell the next editor that the failure path must still file.

Two things:

  1. the guard must not swallow a failure: with ALERT unset (because watch was skipped, cancelled, or errored before publishing), [ "${ALERT}" != "true" ] is true and the job exits 0 having filed nothing. That is only correct if the failure template is reached first — the body's ordering says it is, but the diff must guarantee it, and an arm should pin "watch failed → failure issue still filed even though ALERT is empty". An unset output is exactly the case where a guard like this hides a broken watch;
  2. log the three inputs on the quiet path (alert=false watch=success simulated=…), because the value of a quiet run is the evidence that it looked and found nothing — a bare "no issue filed" is indistinguishable from a job that exited early for the wrong reason.

Not blocking: reading the output that was already computed is the minimal fix, and the three-state statement is what makes it checkable.

@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 8868ff0: READY

The bug is the one shape a workflow cannot catch by reading itself: an output that is computed and never consumed, so every quiet run files an issue. The arm is behavioural and the mutant fails it.

Measured, both directions

  tests/census_alert_job_test.py         rc=0, "census_alert_job: ok"

  mutant: delete the `if [ "${ALERT}" != "true" ]` guard
  -> rc=1
  -> FAIL  a QUIET run files nothing (engine#2846)

The test drives the job body, not the YAML text, which is what makes it a check instead of a lint: the mutant fails because the behaviour changed, and the failing row names the case.

Why this is worse than it looks, and worth a PR

"the alert output was computed and never read, so the coverage body below ran on EVERY scheduled run whose watch job succeeded — a quiet run filed a coverage-breach issue whose excerpt was filler rows and advisory -> lines, with no finding in it (the #2677 "issue looks empty" shape, made structural). 2026-11-17 13:42Z is the case: 0 alerts, an issue filed."

An output that exists and is not read is indistinguishable from an output that is not produced — the watch job did its work, published alert=false, and the next step ignored it. Every scheduled run therefore filed an issue, and the issue's content was the per-row stream: rows and -> advice with nothing to act on. That is the alerting system manufacturing the noise it exists to prevent, and it would have gone on filing until someone muted the workflow.

And the fix is one guard at the top rather than a filter at the bottom: "A watch that ran, found nothing and alerted on nothing files NOTHING." The exit 0 with a printed alert=${ALERT} also leaves a trace of the decision in the log, so a reader can tell "quiet" from "the step did not run" — which is the same distinction #2800 and #2815 were built to preserve.

The one thing I would add

The guard covers alert != "true"; it does not cover alert == "". If the watch job fails or is cancelled, needs.watch.outputs.alert is empty and this guard treats that as quiet — "${ALERT}" != "true" is true for the empty string. So a failed watch would silently file nothing, which is the false negative on the other side of the same coin: the run should be red, not quiet.

Three states, and the fix is one more branch:

if [ -z "${ALERT}" ]; then
  echo "::error::census-watch: the watch job did not publish an alert value (failed or cancelled)"; exit 1
fi
if [ "${ALERT}" != "true" ]; then
  echo "census-watch: quiet -- no issue filed (alert=${ALERT})"; exit 0
fi

Not a blocker — today the step only runs when needs.watch succeeded (needs: gates it), so the empty case may be unreachable. But it is worth one line saying why it is unreachable, because the guard as written reads as though empty means quiet, and the next person to relax that needs: will inherit that reading.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

ready for review at 8868ff0 — build pass. The new census_alert_job ctest row runs in this build: quiet files nothing, an alert files one coverage issue, a failed watch still files. It fails on main's version, which is the point. (cl-1077)

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Checked that the new row actually runs in CI rather than being a registered-but-skipped row (the #2789 lesson), from this PR's own build:

        Start 200: census_watch_excerpt
        Start 201: census_alert_job
190/384 Test #200: census_watch_excerpt ... Passed 0.06 sec
191/384 Test #201: census_alert_job ..... Passed 0.06 sec

census_alert_job is not in tools/ci/ctest_skips.txt, ctest reports it Passed (not Skipped), and the suite grew 383 -> 384 with the skip count unchanged — so the three-state arm (quiet files nothing / alert files one / failed watch still files) executes on the runner, against the workflow file in this branch. That is the assertion that would have caught #2846 the day it landed.

@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 -- and the guard is in the right place, which is the whole risk in this fix

I checked the three ways this change could re-introduce the bug it fixes, and it survives all of them.

1. The output is real. watch.outputs.alert is declared (outputs: alert: ${{ steps.watch.outputs.alert }}) and written on all three paths:

rc 0        -> alert=false                       exit 0
rc 1        -> alert=true                        exit 0
rc anything else -> alert=false  AND failure=rc=… exit "$rc"

The third one is the trap: a failed watch emits alert=false, so a guard that only knows about ALERT would swallow it.

2. The guard is below the failure path, which is what keeps this from being the two-week outage the job's own comment describes:

line 53   if [ "${WATCH_RESULT}" != "success" ]; then   … file the failure issue … exit 0
line 77   if [ "${ALERT}" != "true" ]; then             … quiet, nothing filed … exit 0

So a watch that did not run still files ("The old condition (alert == 'true' only) meant a checkout/setup/network failure filed nothing at all - the exact way this workflow failed unnoticed for two weeks"), and only a successful, unalerting run files nothing. Had the guard gone first, this PR would have restored the exact bug.

3. The arms cover the regression direction, not only the fix. tests/census_alert_job_test.py drives three cases: quiet → exit 0 and no issue create/issue comment; alerting → exactly one coverage issue; WATCH_RESULT=failure, ALERT=false → exit 0 from the step and a failure issue. The third is the one that would catch the mis-ordering above, so the test is aimed at the risk and not only at the change.

One naming nit, not a defect: the watch job already has a shell variable called alert (the excerpt's row-prefix regex, '^( !! |census-watch: !! )'), and the alert job now has ALERT (the output). Different jobs, different scopes, and the case difference is doing real work — one clause in the comment saying so would stop the next reader from conflating them, since they are one job apart in the same file.

The finding itself is worth keeping in the issue: an output computed and never read is the same class as a probe that fires and proves nothing — the workflow had the datum and threw it away, and the symptom was an issue with no finding in it.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

READY — and the strongest line in the body is that the issue is its own evidence: "it should never have been filed."

"The watch job publishes an alert output. Nothing read it."

An output nobody consumes is worse than no output: it looks like the pipeline is honouring a decision that no code path reads. The alert job branched only on WATCH_RESULT and on SIMULATED, then built the coverage body unconditionally — so every scheduled run whose watch succeeded posted something, quiet or not. #2846 exists because the file was empty of alerts and the issue was created anyway.

The detail that makes it diagnosable is the body of that false alert, quoted in full: 1 uncovered class(es) where the class is K2HorizonForCausalLM — a custom-code class with one uploader, i.e. exactly the shape the quiet-run rule exists to suppress. So the report was not wrong about the data; it was posted when the policy said don't post. Distinguishing those two is the whole job, and the body does it.

Three things I would pin:

  1. The alert output should be required, not merely read. A step that consumes needs.watch.outputs.alert with no default is a workflow-level assertion; if a future refactor stops publishing it, the consumer fails loudly instead of silently taking the empty branch. One if on emptiness (if [ -z "${ALERT}" ]; then exit 0; fi) is the difference between "quiet" and "unknown", which this repo has now fixed in four other places tonight.
  2. #2846 deserves a closing note with the two facts together — the false alert and the unread output — because the issue's title will read as "a quiet run filed an alert" and the cause is "the pipeline never consulted the decision it computed". Otherwise the next reader fixes the filter and leaves the unread output in place.
  3. The scheduled-run path should be exercised in a test that can fail. The arms here are presumably on the script; the workflow branch (alert empty ⇒ no POST) is the thing that broke, and if it is only verifiable by waiting for the next schedule, say so — a workflow_dispatch run with a forced-empty alert is the cheap arm.

Credited: finding the unread output rather than the symptom; quoting the whole false alert so the "quiet vs wrong" distinction is checkable; and naming the single-uploader custom-code class as the reason the rule exists, which is what stops the fix from becoming a silent filter.

Not verified by me: the workflow run and the arms. The alert-consumption change, the empty-vs-unknown distinction and the workflow-level arm are what I can check, and the first is the bug.

@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 0e26b06: READY

The bug is the sharpest kind: an output that was computed and never read, so a quiet run filed an empty "coverage breach" — and the fix's ordering is what keeps a blind watch filing.

PASS  a quiet run exits 0
PASS  a QUIET run files nothing (engine#2846)
PASS  an alerting run exits 0
PASS  an alerting run files exactly one coverage issue
PASS  a failed watch exits 0 from this step
PASS  a failed watch still files (the alert output is false there)
census_alert_job: ok                                                   rc 0

Registered as a ctest row (CMakeLists.txt:1441), so the arms run in CI, not just here.

The ordering is the part that matters

ALERT is false in two different situations — a quiet run and a failed one — and the second must still file. The new guard is placed after the FAILURE/WATCH_RESULT branch, which posts "The watcher itself failed — this is not a coverage finding, it is the watch being blind" and exits. So:

watch failed   -> the "did not run" issue, as before        (arm: "a failed watch still files")
watch ran, 0 alerts -> nothing filed                         (arm: "a QUIET run files nothing")
watch ran, alerts   -> exactly one coverage issue            (arm: "files exactly one coverage issue")

Had the guard been placed first, the workflow would have gone quiet exactly when it was blind — the failure mode #2677 was about, inverted. An arm pins it, so the ordering cannot be "tidied" later.

Why this is the right framing

"the alert output was computed and never read" is the same defect family as everything else on this fleet's list this week: a value produced and then ignored is a check that cannot fail (#2799 counted lines as events, #2804 took a display warning for a compute fault, #2820 merged two devices into one). Here it was a boolean that decided whether to open an issue, and nobody read it — so the decision defaulted to "always file". The fix reads it in one place and the test asserts the resulting behaviour in all three states.

The observed case is recorded too (2026-11-17 13:42Z: 0 alerts, an issue filed), which is what makes it checkable against the issue history rather than a claim.

Nothing to ask for.

@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 0e26b06: READY

The bug is real and the fix is in the right place, and the test is the shape I would want for a workflow step rather than a library.

The guard has to sit after the failure path, and it does

alert=false is written for two different states — 0) quiet and *) the watch did not run — so a guard keyed on alert != true would also silence the "the watcher itself failed" issue, which the job exists to file. The order in the step is:

if [ "${WATCH_RESULT}" != "success" ]; then
    … "The watcher itself failed — this is not a coverage finding, it is the watch being …"   ; exit 0
fi
… then the coverage body, then the new guard

and the test asserts exactly that state by name: PASS a failed watch still files (the alert output is false there). That arm is the one that makes the guard safe rather than an over-correction, so it is the one I checked hardest.

The arm bites on the version that shipped

mutation: `if [ "${ALERT}" != "true" ]; then` → `… && false; then`      # the guard never fires
  FAIL  a QUIET run files nothing (engine#2846)
        [ --label census-watch --state open --json number --jq .[0].num…      rc 1
restored: census_alert_job: ok, rc 0

Five passes cover the three states plus the exit codes, and the failure message shows the offending gh call rather than just a diff — so a future regression names the behaviour, not the line.

Why the method is worth keeping

The test runs the job's own run: block with a stub gh, hermetic and ~0.2 s. That is the only way to test a workflow step without pushing to a branch and waiting for a scheduled run, and it means the YAML's shell is under test rather than reviewed by eye. The 2026-11-17 13:42Z — 0 alerts, an issue filed measurement is the kind of thing that would otherwise be lost, and it is the reason the #2677 "issue looks empty" shape was structural rather than occasional.

Did not run the workflow itself (that would need a dispatch); the step contract is fully covered by the extracted-block test.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 0e26b06 — READY (mutation-proven; one hardening request that is not blocking)

The fix is real and the arm proves it, measured two ways

The arm extracts the job's own run: block from the workflow (block() reads .github/workflows/census-watch.yml, not a copy), so it cannot drift from the YAML. Against this head:

PASS  a quiet run exits 0
PASS  a QUIET run files nothing (engine#2846)
PASS  an alerting run exits 0
PASS  an alerting run files exactly one coverage issue
PASS  a failed watch exits 0 from this step
PASS  a failed watch still files (the alert output is false there)

and with the workflow reverted to origin/main (i.e. the version that shipped), the quiet arm fails exactly as the incident describes:

FAIL  a QUIET run files nothing (engine#2846)  [ … issue create --title census: new HF model class uncovered by the registry … ]

So this is not "a test that passes"; it is a test that reproduces 2026-11-17 13:42Z. I also checked the value contract the guard depends on: the watch step writes exactly alert=false (rc 0), alert=true (rc 1) and alert=false + failure= (any other rc) at census-watch.yml:87-99, so [ "${ALERT}" != "true" ] is comparing the right two strings, and the guard's position after the failure branch is what keeps "the watch did not run" filing (arm 3 pins that ordering).

The one thing I would still change, and why it is not blocking

${ALERT} unset is indistinguishable from alert=false. With the ALERT: env line dropped — a future refactor, or the output renamed in the watch job — the guard reads empty as "quiet":

$ <same harness, ALERT not set>
census-watch: quiet -- no issue filed (alert=)      rc 0, no gh issue call

That is the blindness this file's own comment says must never happen ("a blind watch is never silent"), and it would be silent in the worst way: every alert suppressed, green run. It is not blocking here because today the only way to get an empty alert output with needs.watch.result == 'success' is to skip the step that writes it, and that step has no if: — the result != 'success' states already go down the failure branch, which arm 3 pins.

If you agree, the strict shape is three lines and one arm:

case "${ALERT}" in
  true)  ;;
  false) echo "census-watch: quiet -- no issue filed"; exit 0 ;;
  *)     echo "::error::census-watch: the watch produced no alert output (alert='${ALERT}') -- not filing, and not assuming quiet"; exit 1 ;;
esac

with run_case({"WATCH_RESULT": "success"}) (no ALERT) asserting rc 1 rather than a silent rc 0. Your call — I am not holding the PR for it, and nothing else from me at this head.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 0e26b06: READY. This is the cleanest instance of tonight's recurring class, and it is fixed in all three of the places it needed to be.

An output that nothing read

env:
  WATCH_RESULT: ${{ needs.watch.result }}
  SIMULATED:    ${{ needs.watch.outputs.simulated }}
  # no ALERT

The watch job computed alert and the alert job never consumed it, so the coverage-breach body ran on every scheduled run whose watch succeeded — including the quiet ones. The proof is the artefact the issue itself is:

"the issue itself is the evidence, because it should never have been filed … 2026-11-17 13:42Z is the case: 0 alerts, an issue filed."

That is the same defect as #2669's unread provenance field and #2675's comment-counted-as-wiring, one layer up: a value computed, published, and ignored — with the difference that this one produced a visible wrong artefact, which is why it was findable at all.

The quiet case now files nothing and says so

if [ "${ALERT}" != "true" ]; then
  echo "census-watch: quiet -- no issue filed (alert=${ALERT})"

That line is the part I would have asked for if it were missing. After the guard, a quiet run produces no issue — which is correct — and if the only visible trace were "no issue", then "nothing found" and "watcher broken" would be the same green tick. Printing quiet -- no issue filed (alert=…) in the job log puts the decision in the artefact, and echoing ${ALERT} means a reader can tell a genuine quiet from a workflow that lost the value.

The test asserts the three states, including the one that must not regress

"quiet files nothing, an alert files one coverage issue, a failed watch still files."

The third is the one a guard like this breaks if it is written carelessly: an if alert != true that also catches failure would silence the failure template, turning the watcher's own breakage into a quiet run. Having it as an explicit arm — and as a ctest row with a WORKING_DIRECTORY — is what makes the guard a decision rather than a filter.

Nothing else

The instance is dated (13:42Z), the mechanism is quoted from the YAML rather than paraphrased, and the row is registered so the three states run in the gate.

@bong-water-water-bong
bong-water-water-bong merged commit 2fb4de6 into main Nov 17, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the fix/2846-census-quiet-files-nothing branch November 17, 2026 14:53
@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 0e26b06

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.

census: new HF model class uncovered by the registry

1 participant