Skip to content

ci(hypatia-scan): fix unresolvable setup-beam version pins - #63

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/fix-hypatia-dogfooding-pins
May 15, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
claude/fix-hypatia-dogfooding-pins

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

The Hypatia Neurosymbolic Analysis (Dogfooding) job (hypatia-scan.yml, job scan) has been failing on 100% of runs across the estate, independent of PR content — red on already-merged PRs (#58, #60) and every new PR (#62).

Root cause (inferred from a consistent ~12s fast-fail + workflow logic; the scan step uses --exit-zero and the only gate is "warn but don't fail"): the Setup Elixir step pinned elixir-version: '1.19.4' / otp-version: '28.3', which are not present in the setup-beam version index, so the step errored immediately and failed the whole job for everyone.

This pins to currently-published, resolvable loose major/minor versions (elixir 1.18 / otp 27) so patch availability cannot re-break it.

Changes

  • hypatia-scan.yml: corrected setup-beam Elixir/OTP pins + rationale comment.

Test plan

  • Hypatia Neurosymbolic Analysis (Dogfooding) goes green on this PR (unrelated no-op change → proves the failure was environmental, not finding-driven).
  • Confirm 1.18 / 27 actually build Hypatia's scanner (mix escript.build); bump deliberately if the scanner needs newer.
  • Follow-up (tracked in companion issue): publish a supported-toolchain matrix in hyperpolymath/hypatia + a smoke job there so a bad pin fails at the source, not estate-wide.

https://claude.ai/code/session_01GTo7dz32ZgxuHXefv8BGqn


Generated by Claude Code

elixir 1.19.4 / otp 28.3 are not in the setup-beam version index, so
the "Setup Elixir" step failed fast on every run, making the Hypatia
dogfooding job red estate-wide regardless of PR content. Pin to
currently-published loose major/minor versions instead.

https://claude.ai/code/session_01GTo7dz32ZgxuHXefv8BGqn
@hyperpolymath
hyperpolymath marked this pull request as ready for review May 15, 2026 20:57
@hyperpolymath
hyperpolymath merged commit ce5517b into main May 15, 2026
21 of 24 checks passed
@hyperpolymath
hyperpolymath deleted the claude/fix-hypatia-dogfooding-pins branch May 15, 2026 20:57
hyperpolymath added a commit that referenced this pull request May 15, 2026
**Throwaway verification PR — do not merge.**

One-line no-op comment in `hypatia-scan.yml` to run the `Hypatia
Neurosymbolic Analysis (Dogfooding)` job in a PR context (which can be
read from the agent environment) and confirm the corrected `elixir 1.18`
/ `otp 27` pins (merged via #63) actually make the job green.

Will be closed once the result is observed. Permanent upstream hardening
tracked in #64.

https://claude.ai/code/session_01GTo7dz32ZgxuHXefv8BGqn

---
_Generated by [Claude
Code](https://claude.ai/code/session_01GTo7dz32ZgxuHXefv8BGqn)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
hyperpolymath added a commit that referenced this pull request Sep 20, 2026
…not see GitHub-generated checks

The five contexts this census flagged as unsatisfiable are all published: every one
reports in the check-run history of the repository that requires it, as a job of a
GitHub-generated workflow (code scanning default setup and friends) that no file in
the repository mentions.

Evidence, gathered 2026-09-20 from check-runs on the default branch:

  awesome-gleam  Analyze (actions)               8 of the last 8 commits, and PR #12's head
  awesome-gleam  Adjust Configuration            reports on main (intermittent)
  casket-ssg     Analyze Code (actions)          15 of the last 30 commits
  coord-tui      CodeQL Analysis (actions, none)  5 of the last 8 commits, and PR #63's head
  vext           CodeQL Analysis (actions, none) 12 reports over 8 commits, and PR #51's head

The previous commit stated that all five were re-checked and are "live defects".
That re-check answered the wrong question: it confirmed the *rules* were live
(active enforcement, ~DEFAULT_BRANCH, integration_id 15368) and never asked whether
a *publisher* exists. The publisher is the platform.

This matters beyond the ledger: merged guidance to go and patch four repositories'
required-status-check lists would have deleted working gates on false evidence, and
the deleted names would have been the ones nothing could see — the checks GitHub
generates itself.

Changes:

* the audit's results now read 0 unsatisfiable, with the five candidates and their
  evidence; the residues table becomes the refuted-candidates table;
* the method note becomes the operational rule: a file-based pass may only produce
  candidates; an unsatisfiable verdict becomes a finding only after check-run
  history confirms the name never reports; a required context is never deleted on a
  file-based verdict alone;
* the gate carries the same limit in its header, in its warning and error text,
  and in --print-commands, so the person reading a finding is told to confirm it
  before acting;
* the census caveats section cites this as the worked example rather than a
  hypothetical.

The class remains real — tropical-types#17 was a genuine mis-named requirement.
What changes is the confidence level a file-based census may claim.
hyperpolymath added a commit that referenced this pull request Sep 20, 2026
…not see GitHub-generated checks (#876)

## What

Withdraws the five "unsatisfiable required contexts" this census
reported, because all five are published.

Each one reports in the **check-run history** of the repository that
requires it — as a job of a GitHub-generated workflow (code scanning
default setup and friends) that no file in the repository mentions:

| Repository | Context | Evidence (check-runs, default branch,
2026-09-20) |
| --- | --- | --- |
| `awesome-gleam` | `Analyze (actions)` | 8 of the last 8 commits, and
PR #12's head |
| `awesome-gleam` | `Adjust Configuration` | reports on `main`
(intermittent) |
| `casket-ssg` | `Analyze Code (actions)` | 15 of the last 30 commits |
| `coord-tui` | `CodeQL Analysis (actions, none)` | 5 of the last 8
commits, and PR #63's head |
| `vext` | `CodeQL Analysis (actions, none)` | 12 reports over 8
commits, and PR #51's head |

## Why the previous pass got it wrong

The verification in the previous commit asked whether the *rules* were
live — active enforcement, `~DEFAULT_BRANCH`, `integration_id: 15368`.
It never asked whether a *publisher* exists. For these five the
publisher is the platform itself, not the repository, so a census over
repository files cannot see it.

That is not a footnote. Acting on the previous version would have meant
patching four repositories' required-status-check lists to delete
working gates, on false evidence, and the names deleted would have been
the ones nothing in the repository can see.

## What changes

* results read **0 unsatisfiable**; the five are recorded as refuted
candidates with their evidence;
* the operational rule is stated where a reader will meet it: a
file-based pass may only produce *candidates*; an `unsatisfiable`
verdict becomes a *finding* only after check-run history confirms the
name never reports; a required context is never deleted on a file-based
verdict alone;
* the gate says this in its header, in its warning and error text, and
in `--print-commands`, next to the remediation it prints;
* the census caveats section cites this as the worked example instead of
a hypothetical.

## Verification

* `bash scripts/tests/check-required-contexts-test.sh` — 5/5 pass.
* `bash scripts/check-canonical-names.sh origin/main` — clean.
* The refutation is reproducible: for each context, compare `GET
/repos/{r}/commits/{default}/check-runs` and the check-runs on a recent
PR head.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants