Skip to content

Hypatia backlog: triage & burn down the standing whole-repo findings #34

Closed

Description

@hyperpolymath

Why this exists

.github/workflows/hypatia-scan.yml scans the entire repo on every push/PR and posted the same ~44 pre-existing findings as a PR comment regardless of the PR's diff. Traced and explained in docs/wiki/internals/checker-allocation-investigation.md (§ Hypatia) — the comment was fully decoupled from the diff, and Phase 2/3 (gitbot-fleet submit, robot-repo-automaton autofix) are not implemented, so the backlog never cleared.

This issue is the burn-down list. The companion suppression mechanism (so the noise stops now) is the diff-scoped/baseline-aware comment step + .hypatia-ignore + .hypatia-baseline.json, landed in the accompanying PR.

Disposition of the known findings

Fixed in the accompanying PR

  • lib/common/concurrency.rs — all 13 non-test Mutex/RwLock .lock()/.read()/.write().unwrap() sites converted to poison-tolerant unwrap_or_else(|e| e.into_inner()) (clears lock_unwrap ×8 and most unwrap_without_check there). lib/ is a standalone policy tree not in the Cargo workspace, which is why it was never linted.

Exempted via .hypatia-ignore (with inline rationale)

  • playground/, dialects/ — separate packages, not in the root Cargo workspace members; intentionally rough.
  • .machine_readable/svc/k9/my-lang-metadata.k9.ncl — scanner false positive: the config bans Dockerfile; the rule fires on the substring.
  • src/proptest.rs — deliberate unwrap()/panic! is idiomatic in property-test generators.
  • lib/common/string.rs — char::from_digit(d, radix) is safe-by-construction (d < radix invariant directly above).

Baselined, genuine, still TODO (this issue's real work)

  • proofs/verification/coq/Typing.v — Admitted. leaves a proof hole (CWE-704). Needs the typing lemma actually proved (or downgraded to Axiom with explicit justification). Real proof-engineering task.
  • Regenerate the full baseline from a real scan artifact (current .hypatia-baseline.json is _partial: true): jq -r '.[] | "\(.rule_module)/\(.type):\(.file)"' hypatia-findings.json | sed 's#.*/my-lang/my-lang/##', review each, and either fix / ignore-with-rationale / baseline. Then flip _partial to false.

Definition of done

  • .hypatia-baseline.json is complete (_partial: false) and every entry has a disposition (fix / ignore-with-rationale / accepted-tech-debt with owner).
  • The Coq Admitted is resolved.
  • New findings in changed files surface on PRs (already wired); the standing list only shrinks.

Activity

  1. added
    bug
    on May 15, 2026
  2. added 3 commits that reference this issue on May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginvestigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions