Repository navigation
chore(deps): bump thiserror from 1.0.69 to 2.0.18 - #120
Merged
Merged
Conversation
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.69 to 2.0.18. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](dtolnay/thiserror@1.0.69...2.0.18) --- updated-dependencies: - dependency-name: thiserror dependency-version: 2.0.18 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
hyperpolymath
approved these changes
Mar 25, 2026
This was referenced Sep 22, 2026
hyperpolymath
added a commit
that referenced
this pull request
Sep 22, 2026
…ris2 ABI (#120) (#811) Closes #120. The 16-connector wire contract existed in **five** hand-maintained copies that agreed only by discipline. This makes three of them generated from the normative Idris2 ABI, so drift becomes impossible rather than merely detected. ## What generates what `src/Hypatia/ABI/Gen.idr` + `src/abi/hypatia-abi-gen.ipkg` build an Idris2 executable that **imports `Hypatia.ABI.Types` and evaluates it**. It never parses `.idr` text. Because `Gen` is the `mainfile`, `--total` is genuinely re-checked for it (Idris2 only re-checks `--total` for the mainfile). | Generated | From | |---|---| | `ffi/zig/src/connector_generated.zig` | `src/Hypatia/ABI/Types.idr` | | `clients/rust/hypatia-client/src/connector_generated.rs` | same | | `ffi/connectors.json` | same | `ffi/connectors.json` previously called itself the *"Golden source-of-truth"*, which contradicts the ABI-authority ruling. That claim is gone. `zigIdent` / `rustIdent` live in `Gen`, not in the ABI — the normative module must not know about its consumers. Both are total with one clause per constructor, so **adding a connector without naming it is a build failure**, which is strictly stronger than a CI diff. The hand-written `unified-api-adapter.zig` and `connector.rs` keep their own tests. A generated test re-asserts its own source and proves nothing. `just abi-gen` regenerates. Every generated file carries `// ABI source blob: <git hash-object src/Hypatia/ABI/Types.idr>`. ⚠ Deliberate consequence: **any** byte change to `Types.idr`, comments included, reddens the gate until `just abi-gen` is re-run and committed. Touching the normative ABI should force you to look at what it generated. ## Three things this PR found, stated plainly **1. Before this PR, neither "independent pin" on the wire contract executed anywhere.** - The Zig `comptime` 16-connector assertion and the four tests in `unified-api-adapter.zig` were reachable from **no test root**. `build.zig` rooted `main.zig`, `json_writer.zig`, `file_ops.zig` and `test/integration_test.zig`; none import the adapter. They had never run, locally or in CI. This PR adds the fourth root — `zig build test` goes from **3 tests to 7**. - `cargo test --workspace` is **red on `main`** for an unrelated pre-existing reason: `integration/Cargo.toml` requires `testcontainers ^0.28` **and** `testcontainers-modules ^0.15`, which needs `testcontainers ^0.27`. That is unsatisfiable at the manifest level, so no lockfile can fix it and `hypatia-client` never gets compiled. Its five tests were verified against the generated enum in a standalone crate: **5 passed, 0 failed**. So `abi-codegen-drift` is currently the **only** executing pin on the wire contract, and `zig.yml` makes the `comptime` assertion the second. That is an improvement on nothing rather than "one of three independent pins". **2. The Elixir drift guard was reading a dead file.** It bound its golden to `src/abi/Types.idr` — a byte-identical copy that is compiled by nothing (the live module is `src/Hypatia/ABI/Types.idr`; `src/abi/hypatia-abi.ipkg` sets `sourcedir = ".."`, which resolves to `src/`). The live ABI could drift and the guard would stay green. This is **instance 21** of the guard-asks-a-different- question-than-its-consumer trap. Repointed, and a mutant proves the fix: renaming a connector in the live module reddens the guard while the dead copy is untouched. The guard also gained a **wire-id** check. A mutant showed the name-only version stayed **green** through an id swap — names and their order are unchanged by a renumber, so a name-only guard sleeps through a C ABI break. **3. `zig build test` is red on `main`** for pre-existing reasons unrelated to this PR: three of four roots fail to compile against the Zig 0.16 std — 16 call sites across six removed or relocated symbols (`std.fs.cwd`, `std.posix.getenv`, `std.fs.openFileAbsolute`, `std.fs.createFileAbsolute`, `std.fs.deleteFileAbsolute`, `std.time.timestamp`) plus an `opaque` type declared with fields at `main.zig:46`. `zig.yml` therefore runs the maximal green subset (`zig test` on the adapter), not the whole build. Filed as its own issue rather than folded in here. ## The gate `.github/workflows/abi-codegen-drift.yml`, **no `paths:` filter**, so it fires on every PR and can be made required later without the filter/required deadlock. (`verify-proofs.yml` filters on `src/abi/**`, `src/Hypatia/ABI/**` and `verify/**` and lists **none** of the generated targets, so a hand-edit to a generated file would not have fired it.) It regenerates **into `$RUNNER_TEMP`** and diffs — never in place with `git diff`. Measured, in an isolated repo: a no-op generator + `git diff` produces an **empty diff, rc=0, reads GREEN**. The temp-dir design on the same no-op prints `connectors emitted: 0` / `files compared: 0 of 3` and fails. It prints its denominator and fails on a zero one. It does **not** assert `N == 16` — that would be a sixth hand-written `16`; the count is the proof's job (`connectorCount = Refl`). It reuses `verify-proofs.yml`'s Idris2 install verbatim, including the **same cache key** so it shares that warm cache. ## Mutants — a passing gate proves nothing until one dies Every red below was verified to be a drift or assertion failure, not a compile error. | # | Mutant | Result | |---|---|---| | 1 | hand-edit a generated Zig wire name | gate **RED**, guard **RED** (independently) | | 2 | swap wire ids 3↔4 in the live ABI, do not regenerate | gate **RED** on all 3 files; guard initially **GREEN** → blind spot → guard strengthened → now RED | | 3a | add a 17th connector, do not name it in `Gen` | generator **BUILD FAILS**: `rustFile,variant is not covering` | | 3b | …then name it and regenerate | Zig `comptime` **RED**; Rust `count_is_sixteen` + `from_id_round_trip` **RED** | | 4 | replace the generator with a silent no-op exiting 0 | `connectors emitted: 0` / `files compared: 0 of 3`, **RED** | Positive control, clean tree: gate rc=0 printing `connectors emitted: 16` / `files compared: 3 of 3`; guard 4/4; `zig test` 4/4; `zig build test` 7/7; Rust 5/5; `just abi-gen` byte-identical and idempotent. ## `actions.lock` Hand-edited, **purely additive: 6 insertions, 0 deletions** — two workflow keys in alphabetical position. Both actions already had dependency entries, so none was added. Tags, not SHAs, because that is the format every one of the other 30 workflow entries uses; a lone SHA-pinned workflow would be inconsistent with the lock in use. Fix/rewrite mode was **not** used — it has previously de-pinned 24 SHAs and invented invalid `uses:` refs. `gh actions-lock --verify-local` (offline, writes nothing) goes from `2 of 32 workflows failed: 4 not-pinned` to `All 32 workflows have complete lockfile coverage`. ## This gate lands advisory `rules/branches/main` on this repo returns `[]` — zero effective rules, proven with a positive control (a repo returning 8 rule types) and a 404 negative control. `Optimus-Branch` exists but is `enforcement: disabled`. So nothing here can block anything until a ruleset requires it. Giving it teeth is an owner action, tracked separately. ⚠ Do **not** enable `Optimus-Branch` for this — it carries five required contexts whose reporting on hypatia PRs is unmeasured, and a required context that never reports is how a default branch deadlocks. ## Follow-ups (issues, not blockers) - Delete the six duplicated `src/abi/*.idr` modules and correct the ~15 prose references — the agreed immediately-following PR. - Zig 0.16 std migration (the 16 call sites above). - The `integration/` testcontainers conflict. Note `DEBT-REGISTER CI-1` blames "a stale `dtolnay/rust-toolchain@stable` pin … 13 jobs die at `Set up job`" — **that is now wrong**; the jobs start and die at cargo resolution. - `mise.toml` pins `zig = "latest"` — a floating pin. - `verification/PROOF-STATUS.adoc` is stale. - IDApTIK `docs/abi/ABI-AUTHORITY.md` should repoint to `src/Hypatia/ABI/Types.idr`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV Co-authored-by: Claude Opus 5 <[email protected]>
hyperpolymath
added a commit
that referenced
this pull request
Sep 22, 2026
…#817) ## The gate I shipped in #811 is red on `main` #811 merged with its own new `ABI codegen drift` check failing. This fixes it forward. The gate is loudly red rather than silently green, so it is not a vacuous gate — but a gate that has never passed is not yet evidence of anything, and left red it trains people to ignore it. ### The cause, measured ``` INTERNAL ERROR: Can't find data file chez/support.ss in any of ["/home/runner/.idris2/idris2-0.7.0/support/chez/support.ss", ".../base-0.7.0/data/chez/support.ss", .../contrib-0.7.0/data/chez/support.ss"] ``` Compiling an Idris2 **executable** needs the Chez support tree at `$(idris2 --libdir)/support/chez/support.ss`. Type-checking and building a **library** does not. `verify-proofs.yml` only ever does the latter — `idris2 --check` over the proof files, `idris2 --build` on two library packages — and never links a binary. So the cache this job deliberately shares with it (same key `idris2-${IDRIS2_VERSION}-${runner.os}-2`, chosen so the gate would not repeat a 20-minute bootstrap) was populated **without** that tree. **Sharing a warm cache imports its omissions as well as its contents.** That is the generalisable lesson here, and it is why my local build passed while CI's failed: locally the support tree exists under pack, so the local success was never evidence about CI. ### The fix A step between "Verify Idris is on PATH" and "Build the generator" that: 1. resolves `$(idris2 --libdir)/support` and checks for `chez/support.ss`; 2. if absent, shallow-clones the Idris2 source at the **pinned** `IDRIS2_VERSION` and copies `support/` into place — `support/` is plain data (Scheme and C sources), needs no build, so this costs seconds, not a bootstrap; 3. **asserts the file is present by name** before continuing. Step 3 matters independently of step 2. A missing support tree previously surfaced as an opaque `INTERNAL ERROR` three steps later, inside the generator build, where it read like a generator bug. Now it fails where it is caused. ### Also in this PR `zig.yml` extracted the test count with `grep … || true`, which the `Hypatia` workflow scanner flagged at `zig.yml:99` as swallowing a non-zero exit. `set -o pipefail` already made a genuine `zig test` failure fatal, so nothing was actually masked — but a suppressed exit code is indistinguishable from a masked failure to a reader or a scanner, so this is a rewrite rather than an argument. `grep` exits 1 on no-match, which under `set -e` needs suppressing; **awk exits 0 whether or not it matched**, so the no-match case needs no suppression at all and the count check below it becomes the only thing that can fail the step. Measured, not assumed — the extraction was run against the real `zig test` output and three mutant logs: | Input | Extracted | Gate | |---|---|---| | real run (`All 4 tests passed.`) | `4` | green | | `All 0 tests passed.` | `0` | **red** | | no summary line at all | `0` | **red** | | empty log | `0` | **red** | | `3 of 7 tests passed.` | `7` | green | `awk` returns rc=0 on the no-match cases, which is the whole point of the change. The one remaining `|| true` in `abi-codegen-drift.yml` — a diagnostic `find` inside an already-failing branch — is replaced by a `[ -d ]` guard for the same reason. There is now no `|| true` in either workflow. ### Not caused by this change `governance / Actions lockfile verify` is red on every PR because #810 bumped 7 actions without refreshing `.github/workflows/actions.lock` (`taiki-e/install-action` v2.87.13→v2.87.15, `ruby/setup-ruby` v1.323.0→v1.324.0, `docker/setup-buildx-action` v4.4.0→v4.4.1, and a `github/codeql-action` SHA). Every finding is on a workflow this PR does not touch. Filed separately — folding an unrelated repo-wide fault into this PR would make both harder to review. The `Check` / `Test` / `Clippy` / `Cargo check + clippy + fmt` reds are pre-existing on `main` (the unsatisfiable `testcontainers` constraint, #814), as are the three `governance /` reds. ### Acceptance This PR is not done when it is merged; it is done when `abi-codegen-drift` reports **jobs > 0** and prints its denominator: ``` connectors emitted: 16 files compared: 3 of 3 ``` Refs #120 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV Co-authored-by: Claude Opus 5 <[email protected]>
hyperpolymath
added a commit
that referenced
this pull request
Sep 22, 2026
… pass (#819) ## Why this exists PR #817 was squash-merged at head `c82e9aa`, which carried only the **first half** of the fix. The second commit landed on the branch after the merge and is not in `main`. Measured, not assumed: ``` $ gh api repos/hyperpolymath/hypatia/commits/5060161.../check-runs completed failure abi-codegen-drift ``` `abi-codegen-drift` — the gate #811 shipped — **is still red on `main`**. This PR carries the remainder. ## What was actually wrong Running (not merely building) an Idris2 executable needs two support artefacts, and neither was present under `$(idris2 --libdir)` on the runner: | artefact | when it is needed | symptom | |---|---|---| | `<libdir>/support/chez/support.ss` | compile | `INTERNAL ERROR: Can't find data file chez/support.ss` | | `<libdir>/lib/libidris2_support.so` | run | `(while loading libidris2_support.so) cannot open shared object file` | #817 cured the first by copying `support/` in as data. That is not sufficient — `libidris2_support.so` is a **built C library**, not data, and the Chez backend *copies it into the executable's `_app` directory at link time*. Fixing an incomplete installation file-by-file reveals one layer per CI round trip, which is exactly how the second failure happened. So this uses the tree's own targets, which are complete by construction: ```sh make -C "$src" support make -C "$src" install-support PREFIX="$(idris2 --prefix)" ``` It builds `support/` only, never the compiler — seconds, not a bootstrap. ### ⚠ It corrects the cause #817 recorded #817 says library builds do not need the support tree, so the shared cache never had it. **That is false**, and the evidence was already in the repo. Idris2's top-level Makefile: ``` install: install-idris2 install-support install-libs ``` so `verify-proofs.yml`'s `sudo make install PREFIX=/usr/local` **does** install support — under `/usr/local/idris2-0.7.0/`. The binary resolves `idris2 --libdir` to `/home/runner/.idris2/idris2-0.7.0`, and that job's cache `path:` list names *both* prefixes. It is a **prefix mismatch**. Library work (`--check`, `--build` on the two proof packages) never needs the difference, which is why only a job linking an executable ever noticed. The fix is correct either way because it anchors on `$(idris2 --libdir)` / `$(idris2 --prefix)` rather than on a hard-coded prefix — but the comment in the workflow now says what was measured instead of the tidier story. ## Two further changes **Assert on the consumer's artefact.** #817 asserted the *installer's* output and the job still died at run time. This asserts `build/abi-gen/exec/hypatia-abi-gen_app/libidris2_support.so` — the thing that actually has to load it — because a build missing that copy still exits 0, and the failure then surfaces one step later inside the comparison, where it reads as a drift failure rather than a toolchain fault. Plus a `--help` smoke test: the cheapest proof the binary runs, and it writes nothing, so it cannot mask a drift failure by leaving output behind. **`Gen.idr`: `--help` exits 0.** It exited 1, so under `set -e` the smoke test would have failed and tempted an `|| true` — the exact pattern the `Hypatia` scanner flags and which is indistinguishable from a masked failure. Missing arguments are still a usage error and still exit 1. ## Verification done locally before pushing - `--help` / `-h` → rc=0; no-args and one-arg → rc=1. - Regeneration prints `connectors emitted: 16` / `files written: 3 of 3` with **zero diff** against all three tracked targets. - Mutants, against the gate's own comparison logic: | case | compared | drifted | verdict | |---|---|---|---| | positive control (clean tree) | 3 of 3 | 0 | **green** | | hand-edit generated Zig (`arrow_flight`→`arrowflight`) | 3 of 3 | 1 | **red** | | swap wire ids 3↔4 in the live `Types.idr`, no regen | 3 of 3 | 3 | **red** | | empty output dir | 0 of 3 | 3 | **red on the denominator** | The third is the decisive one: it proves the gate reads the **normative source**, not merely that the generated copies agree with each other. ## Note on caching The repair is deliberately **not persisted** — `Post Cache` is skipped on a cache hit, so this job never mutates the shared entry and redoes the clone+build each run. That is the intended property and should not be "optimised" away; two workflows writing one cache key is how the poisoned `-1` cache happened. ## Not blockers (pre-existing on `main`, per the standing ruling) `governance / Actions lockfile verify` (#818, from #810) · `Check` / `Test` / `Clippy` / `Cargo check + clippy + fmt` (#814) · `governance / {Code quality + docs, Validate Hypatia Baseline, Workflow security linter}` · `CodeQL Security Analysis` startup failure. None are touched by this diff. Refs #120, #811, #817 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV Co-authored-by: Claude Opus 5 <[email protected]>
This was referenced Sep 22, 2026
hyperpolymath
added a commit
that referenced
this pull request
Sep 22, 2026
…erence (#821) Closes #815. Follow-up to #120, as agreed: #120 repointed the Elixir drift guard onto the live module; this PR deletes the dead copies and corrects every reference. ## What was duplicated `src/abi/hypatia-abi.ipkg` sets `sourcedir = ".."`, which resolves to `src/`, so the modules it compiles are `src/Hypatia/ABI/*.idr`. A byte-identical copy of all six sat in `src/abi/`, compiled by nothing — divergence between them was undetectable. That is **DEBT-REGISTER C-4**, marked RESOLVED here. Both `.ipkg` files and `README.adoc` stay, so `src/abi/` still exists and `idris2 --build src/abi/hypatia-abi.ipkg` is unaffected. Verified directly — it builds all 6 modules from `../Hypatia/ABI/`, which is the proof the deleted copies were never compiled: ``` 2/6: Building Hypatia.ABI.RuleEngine (../Hypatia/ABI/RuleEngine.idr) ... 6/6: Building Hypatia.ABI.GraphQL (../Hypatia/ABI/GraphQL.idr) ``` ## Proven lossless before deleting Five of the six blobs were byte-identical across the two directories. `Types.idr` differed, so I checked rather than assumed: the dead blob `40d2ed6c` **is a strict ancestor revision** of the live `788493e6` — the live copy carries #120's authority-direction correction on top. Nothing is lost that the live module's own history does not already contain. ## The one functional consumer — and the vacuous gate behind it `test/zig_ffi_smoke_test.exs` asserted `File.exists?` on five `src/abi/*.idr` modules, so deleting them turned `mix test` **red**. Its sibling test was worse. It listed the directory, filtered for `.idr`, and asserted SPDX headers — after deletion that list is empty, so `Enum.each` over nothing **passes**. It would have gone **vacuous, not red**: a deletion silently disarming a gate while the gate next to it screamed. Both are fixed. `@abi_dir` now points at `src/Hypatia/ABI`; the required-module list gains `RuleEngine.idr` and `Gen.idr` (it named only 5 of 7 — a pre-existing coverage gap); and the SPDX test gets a non-empty denominator assertion. **Mutant-tested.** Pointing `@abi_dir` at an empty directory now gives 2 failures including `no .idr files found in …`, where before it would have given 1: ``` 2) test Idris2 ABI source integrity Idris2 ABI modules have SPDX headers no .idr files found in /…/emptyabi code: assert idr_files != [], "no .idr files found in #{@abi_dir}" 19 tests, 2 failures ``` Worth flagging for future sweeps: this consumer was missed by three earlier searches because it holds the directory (`"../src/abi"`) and the basenames (`~w(Types.idr …)`) as **separate tokens**, so grepping the joined path never matches it — and because I had been searching for code that *reads* those files rather than code that *asserts they exist*. ## Other corrections found on the way - **`.hypatia-exemptions.adoc`** cited an inline marker `-- hypatia:ignore …` that **does not exist** (`git grep hypatia:ignore` → nothing). The real directive is `-- hypatia: allow …`. The prose above it claimed the scanner has no directive recognition — also false; `scanner_suppression.ex` `file_allowed?/4` implements it. Repoint only, no new row: **6 insertions, 6 deletions**, so the Exemption ratchet sees no growth. - **`docs/proofs/HANDOVER-neural-convergence.adoc`** asserted that `src/abi/*.idr` "are the real files" and `src/Hypatia/ABI/*.idr` "are *symlinks* into them" — backwards, and they were never symlinks. - **`.github/CODEOWNERS`** owned `/src/abi/` but nothing owned `/src/Hypatia/ABI/`, leaving the normative ABI unowned. Added. - **`stapeln.toml`** `[layers.abi-verify]` had `cache-key = "src/abi/*.idr"`, which after deletion would match nothing and cache forever. ## Deliberately untouched - **`verification/PROOF-STATUS.adoc`** — #816 ("stale: wrong path, wrong LOC, wrong proofs") owns the path column; two PRs editing the same six rows would collide. Commented on #816 instead. - **`test/unified-api-adapter-contract_test.exs:11`** — a past-tense note explaining why #120 repointed the guard. Still historically true. - **`verify-proofs.yml` `paths:`, CODEOWNERS `/src/abi/`, `Justfile` `compile-abi`/`abi-gen`, `pack.toml`, `src/README.adoc`** — all reference the directory or the ipkgs, both of which survive. ## Verification - `mix test` → **1593 tests, 2 failures**. Both **pre-existing**: proven by running `test/research_extensions_test.exs` at stock `86aa936` content, which gives the same 2. They are harden-runner rule tests, unrelated to ABI paths. - `just abi-gen` → `connectors emitted: 16` / `files written: 3 of 3`, **zero diff** against the tracked generated files. - `tests.yml` dangerous-pattern denominator: **13 → 7**, still non-zero. - The scanner's `-- hypatia: allow code_safety/believe_me structural_drift/SD008` marker survives at **line 19** of the live `RuleEngine.idr`, matching what the exemptions ledger cites. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV Co-authored-by: Claude Opus 5 <[email protected]>
This was referenced Sep 22, 2026
Closed
hyperpolymath
added a commit
that referenced
this pull request
Sep 22, 2026
…OC drift surface (#835) ## What this is `033193c` (#821) deleted the six duplicated `src/abi/*.idr` modules. Its title says it "repointed every reference"; it did not. Eight references to the deleted files survived on `main`. This PR closes that gap and corrects what the references were saying. **Acceptance test, measured both sides:** ``` git grep -nE 'src/abi/[A-Za-z]+\.idr' -- . ':!data/' ``` | | hits | |---|---| | `origin/main` @ `0aa8972` | **8** | | this branch | **1** | The one remaining hit is `test/unified-api-adapter-contract_test.exs:11`, which names the dead path **in the past tense** as a comment explaining why the guard was repointed in #120. That is history and is correct. ## What is deliberately *not* touched * **Every directory-level `src/abi/` reference stays.** The directory legitimately survives — it holds `hypatia-abi.ipkg`, `hypatia-abi-gen.ipkg` and a README. `verify-proofs.yml`'s `src/abi/**` paths filter is therefore still correct, and **no workflow file is modified by this PR**. * `data/verisim/**` telemetry, which records events about a *different* repo and names files that never existed in hypatia. Rewriting event records would falsify them. * The past-tense sites in `docs/DEBT-REGISTER.adoc`, `test/zig_ffi_smoke_test.exs` and `docs/proofs/HANDOVER-neural-convergence.adoc`. ## The four files **`ffi/zig/src/main.zig:4`** pointed at `src/abi/Foreign.idr` — wrong in *two* ways, since no file of that name has ever existed under either directory. Repointed to `src/Hypatia/ABI/FFI.idr`, where `FFIFunction` and `ffiReturnsApiResponse` actually live. **`verification/PROOF-STATUS.adoc`** — the six ABI rows repointed to `src/Hypatia/ABI/`. Each content claim was re-verified against the live module before being carried across, rather than relocated blind: | Row | Claim | Verdict | |---|---|---| | `Types.idr` | "Confidence refined type" | **true** — `{auto prf : So (value >= 0.0 && value <= 1.0)}` | | `Types.idr` | "Severity ordering" | **FALSE** — replaced | | `RuleEngine.idr` | all six properties | **true** — Sections 1, 2, 4, 5, 7, 8 | | `GraphQL.idr` / `GRPC.idr` / `REST.idr` / `FFI.idr` | as written | **true** | The `Types.idr` "Severity ordering" claim is contradicted by that module's own comment at lines 157-159: *"has never existed in this module; `connectorCount` is the real pin."* Replaced with the property the module does prove, `connectorCount : length allConnectors = 16`. **The hand-written LOC column is deleted** from both inventory tables, with the two derived total lines and the duplicate "File Locations" file tree. Every one of the twenty figures was wrong: | File | documented | actual | |---|---|---| | `GRPC.idr` | ~150 | **64** | | `GraphQL.idr` | ~200 | **93** | | `REST.idr` | ~150 | **95** | | `FFI.idr` | ~100 | **66** | | `Types.idr` | 140 | **250** | | `VerisimdbConnector.idr` | ~110 | **175** | | `KinGate.tla` | ~130 | **198** | | …and 13 more | | | Nothing consumes them, so they are pure drift surface. A `NOTE` in the document records why the column is gone, so it is not helpfully restored. **`verification/README.adoc`** had two real bugs: a link to `PROOF-STATUS.md`, which does not exist, and a build line `cd src/abi && idris2 --build hypatia-verify.ipkg` that is wrong in both directory *and* mechanism. Replaced with what CI actually runs — the per-file `idris2 --check` loop at `.github/workflows/verify-proofs.yml:100-107` — plus the three real packages. **`.machine_readable/INTENT.contractile:45`** repointed. Checked first that `SD022` in `lib/rules/structural_drift.ex` tests directory *existence* only and never a content claim, so this edit has no consumer and breaks no test. ## On #816 This **advances #816 on ACs 1-3** and does not close it. * **AC1** asked for LOC re-derived from `wc -l`. Superseded: measuring proved every figure wrong, so the column is deleted rather than re-derived. Rationale in a comment on the issue. * **AC2** (correct paths) and **AC3** (name `connectorCount = Refl`) land here. * **AC4** demands a live CI check and **AC5** a mutant proving it red. Neither can be satisfied in this PR — see the issue comment for the measurement. ## Related findings, filed as issues rather than folded in Per the standing rule that a new finding is an issue, not a merge blocker: 1. hypatia's entire ExUnit suite is dead in CI — the repo's only `mix test` sits in a job whose `needs:` points at a permanently failing one, so it resolves to `skipped`. 2. `tests.yml` is `startup_failure` on `main`, and `governance / Actions lockfile verify` is red there, both since the Dependabot pin bumps in #830. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV Co-authored-by: Claude Opus 5 <[email protected]>
hyperpolymath
added a commit
that referenced
this pull request
Sep 22, 2026
#839) ## The half of the defect a filename regex cannot see PR #835 corrected every reference naming a specific `src/abi/*.idr` **file** — 8 hits, driven down to 1 (past-tense history). But a `.idr`-filename regex is blind to the other half of the same defect: **prose that names the directory and asserts it contains the Idris2 ABI**. Those claims are just as false, and #835 left all eight standing. `src/abi/` holds exactly three files: ``` src/abi/README.adoc src/abi/hypatia-abi-gen.ipkg src/abi/hypatia-abi.ipkg ``` The modules live in `src/Hypatia/ABI/`. The ipkg sets `sourcedir = ".."`, which is why build lines legitimately still name `src/abi/` — and why a naive search-and-replace across the path would have broken the build documentation. ## Corrected — 8 sites, each read in context first | File | Was | |---|---| | `docs/EXPLAINME.adoc:76` | ``src/abi/` — formal specs for GraphQL, gRPC, REST with dependent type proofs` | | `docs/EXPLAINME.adoc:119` | `` `src/abi/` \| Idris2 specs (Types, GraphQL, gRPC, REST, FFI)`` | | `docs/operations/prover-wars-integration.adoc:39` | `Idris2 ABI definitions in `src/abi/` already export` | | `docs/proofs/gap-analysis.adoc:79` | ``+src/abi/+`, `+verify/src/+`` | | `docs/quickstart/llm-warmup-dev.adoc:117` | `==== Idris2 ABI (src/abi/)` | | `docs/quickstart/llm-warmup-user.adoc:47` | `` `+src/abi/+` \| Idris2 ABI definitions`` | | `docs/quickstart/user.adoc:43` | `Idris2 >= 0.7.0 (for ABI definitions in `src/abi/`)` | | `docs/wiki-pages/Architecture.md:102` | `**Idris2 ABI** (`src/abi/`) — `Types.idr`, `GraphQL.idr`, …` | Two **stated counts** were wrong in the same sentences and are fixed with them. The dev warmup said "5 modules" and EXPLAINME/Architecture enumerated five; there are **seven** live modules — `RuleEngine.idr` and `Gen.idr` (added by #120) were missing from every list. ## Correcting an overclaim #835 introduced The `NOTE` #835 added to `verification/PROOF-STATUS.adoc` read *"every one of the twenty previously recorded here had gone wrong."* That is itself false. **Sixteen** were wrong; four tilde-approximations landed within two lines: | File | documented | actual | |---|---|---| | `PageRankInvariants` | ~120 | 120 | | `ESNSpectralScaling` | ~145 | 144 | | `BayesianUpdate` | ~190 | 188 | | `ParserTotality` | ~190 | 191 | The conclusion is unchanged — 16/20 wrong, several by more than double, and nothing consumed the column — but a false count inside a note about false counts is not acceptable in either direction. The NOTE now says sixteen and states what the other four were. ## Deliberately NOT changed — each verified correct as written - **`verify-proofs.yml` paths filters, `Justfile`, `stapeln.toml`, every `idris2 --build src/abi/*.ipkg` line** — `src/abi/` is genuinely where the packages live. - **`docs/DEBT-REGISTER.adoc`, `docs/proofs/HANDOVER-neural-convergence.adoc`, `test/unified-api-adapter-contract_test.exs`** — past-tense records of the deleted duplicates. Correct *precisely because* they name the old path. - **`lib/rules/structural_drift.ex:1130`** — quotes *gitbot-fleet's* INTENT file as measured evidence for an SD022 defect. Not a claim about this repo. - **`.claude/CLAUDE.md`'s "the two `.ipkg` files"** — accurate. There are two in `src/abi/`; the third Idris2 package is `verify/hypatia-verify.ipkg`, elsewhere. ## Acceptance ``` git grep -n 'src/abi/' -- . ':!data/' | grep -iE 'idris|proof|\.idr|module' ``` → 20 hits, every one an ipkg/build reference, past-tense history, or the `src/abi/README.adoc` title. **No false claim survives.** All seven edited AsciiDoc files re-render clean under `asciidoctor --failure-level=WARN`. Refs #816. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0113HQM9LVGkNCzU1WwkJZSV Co-authored-by: Claude Opus 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps thiserror from 1.0.69 to 2.0.18.
Release notes
Sourced from thiserror's releases.
... (truncated)
Commits
dc0f6a2Release 2.0.180275292Touch up PR 4433c33bc6Merge pull request #443 from LucaCappelletti94/master995939cReproduce issue 44221653d1Made clippy lifetime allows conditional45e5388Update actions/upload-artifact@v5 -> v6386aac1Update actions/upload-artifact@v4 -> v5ec50561Update actions/checkout@v5 -> v6247eab5Update name of empty_enum clippy lint91b181fRaise required compiler to Rust 1.68Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)