Repository navigation
Description
Context
mix test is red on main: 73 failures / 1398 tests. That number has been treated as
one undifferentiated problem. It is not — it splits cleanly into two classes with
completely different fixes, and this issue covers the smaller, tractable one.
Measured by running the suspect files in isolation (--seed 0) and then together:
| run | failures |
|---|---|
workflow_audit_test.exs alone |
2 |
rules/cicd_rules_vlang_test.exs alone |
2 |
root_hygiene_test.exs alone |
1 |
dashboard_test.exs alone |
1 |
rules/workflow_audit_chapel_test.exs alone |
1 |
| sum | 7 |
| all five together | 7 |
Identical. These fail alone exactly as they fail in-suite, so they are real deterministic
failures, not test pollution. That distinguishes them from the other ~66 failures, which
concentrate in contract_test / blackboard_test / reflexive_test / kin_test and are
order-dependent — tracked separately in #643.
Splitting these out means 7 bounded, independently-fixable defects stop being hidden behind
a 73-failure wall.
The seven
test/rules/cicd_rules_vlang_test.exs:45—vlang_detecteddoes not exempt Coq
proof scripts (.vis also Coq's extension).test/rules/cicd_rules_vlang_test.exs:64—vlang_detecteddoes not exempt Verilog
and linguist samples.left: %{...},right: nil.test/root_hygiene_test.exs:101—scan_required_missing/1no longer flags a missing
SECURITY.md;assert security != nilgetsnil.test/rules/workflow_audit_chapel_test.exs:126—chapel-find-comm-gasnetnot fired on
the brittleprintchplenvglob.right: []— no recipes at all.test/dashboard_test.exs:39—GET /does not reference every
Hypatia.Telemetry.all_events()name in the JS handler list.test/workflow_audit_test.exs:8—assert length(findings) == 17, actual 6.test/workflow_audit_test.exs:233—assert report.missing_count == 15, actual 4.
Items 1 and 2 are scanner false positives, not merely failing tests. A vlang_detected
rule that fires on Coq and Verilog files emits wrong findings into the estate's own scan
results — the exact failure mode CLAUDE.md § Scanner Hygiene exists to prevent.
Hypotheses — explicitly NOT yet verified
Stated as leads, not conclusions; each needs checking against the rule source before acting.
- 6 and 7 look like drift between rule and test: a hardcoded required-workflow list
shrank (17 → 6, 15 → 4) and the assertions were not updated. If so the fix is to derive
the expected count from the rule's own list rather than hardcode it — otherwise this
recurs on the next change. - 1, 2 and 4 look like genuine rule-logic gaps (missing extension exemptions; a recipe
predicate that no longer matches). - 3 and 5 are unclassified.
Do not assume the counts in 6/7 are "just stale" — if the required-workflow list shrank
unintentionally, the rule is the bug and the test is correct.
Acceptance criteria
- Each of the seven either passes, or is closed with a recorded reason why the
assertion was wrong. -
mix test <the five files> --seed 0reports 0 failures. - Items 1 and 2 are confirmed fixed by a case that would previously have produced a
false positive on a.vCoq file and a Verilog file. - No assertion in 6/7 hardcodes a count that the rule's own data already determines.
Test plan
mix test test/workflow_audit_test.exs test/rules/cicd_rules_vlang_test.exs \
test/root_hygiene_test.exs test/dashboard_test.exs \
test/rules/workflow_audit_chapel_test.exs --seed 0Expect 88 tests, 0 failures (currently 88 tests, 7 failures).
Then confirm the total drops: full mix test should fall from 73 failures to ~66, with the
remainder being the #643 cluster.
Model tier
Sonnet — five independent, well-localised test/rule pairs in one repo, each with a
concrete assertion and no new design required. Items 1 and 2 warrant a little more care as
they change scanner output that feeds the estate.
Related
- test(isolation): 20 reflexive tests fail in the full suite but pass alone — Hypatia.Supervisor is torn down mid-run #643 — the other ~66 failures (order-dependent,
cx/L3) - fix(ci): arangodb probe can never pass (401) + stress-test fake/impossible steps #640 — CI plumbing that had to be fixed before these were visible at all
Activity
hyperpolymath commentedon Aug 3, 2026
Triage note (2026-08-03), item-by-item against the current tree:
lib/rules/root_hygiene.ex:328-332documents that SECURITY.md is intentionally not in the required-at-root list (it's a community-health file that legitimately lives under.github/). Resolution is fixing the test assertion, which is queued in the test-repair pass..v/ Verilog): the tests asserting the exemptions still fail — the exemption never made it into the detector. Queued as a rule fix in the FP-cleanup pass.All verification is local while CI is down (#671).
test: derive workflow-audit counts from standard_workflows/0 (#645)
fix(rules): banned-language path exemptions — adapter/panels (#602) +…
hyperpolymath commentedon Aug 7, 2026
All seven resolved. Re-measured against the current tree rather than taking the original list at face value — two items were wrong assertions, not rule bugs.
vlang_detectedon Coq.v/ Verilogpath_allow_prefixesentries carried a leading slash (/linguist/samples/,/HOL/examples/PSL/,/echidna/examples/,/echidna/tests/live_goals/), whichString.contains?/2can never match against repo-root-relative paths. The exemptions the tests asserted were dead code. Fixed with #602.lib/rules/root_hygiene.exdocuments SECURITY.md as intentionally not required at root — it's a community-health file GitHub recognises in root,.github/, ordocs/, and requiring it here double-reported and false-positived on.github/SECURITY.md. Test now asserts the documented behaviour.== 17,missing_count == 15)@standard_workflows(8 into the governance-reusable bundle, plus instant-sync/jekyll×2 opt-outs). Per this issue's own guidance the counts are now derived fromWorkflowAudit.standard_workflows/0rather than re-hardcoded, so the next membership change can't re-stale them.cross_orgtelemetry events; the WF024chapel?gate skipping workflows that drive Chapel viaprintchplenv/CHPL_*without the literal wordchpl), one test bug (a telemetry handler callingsend(self(), …)inside the closure, so messages landed in the emitting process), and one more frozen literal (74 criteria vs the 75 shipped after #668 — now derived from the SSOT).Suite went from 12 stable failures to 0, verified at four seeds. The seed is now pinned in
test/test_helper.exs, so failure-count deltas are evidence again — see #643.