Skip to content

feat: Bump libhegel to 0.37.6 - #20

Merged
esauro merged 1 commit into
mainfrom
bump-libhegel-0.37.6
Sep 10, 2026
Merged

esauro merged 1 commit into
mainfrom
bump-libhegel-0.37.6

Conversation

@esauro

@esauro esauro commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The jump from 0.32.5 crosses three breaking C ABI changes:

  • Single-test-case mode is gone (engine 0.35). Mode, Settings.mode and @HegelTest(mode) are removed; testCases = 1 is the replacement.
  • Times are nanosecond-precise (engine 0.36). hegel_time_t carries nanoseconds in both bindings and the time/datetime generators no longer snap bounds to microseconds.
  • Stateful testing uses the engine's round protocol (engine 0.33-0.37), driven sequentially as in hegel-rust: next_group opens each round, next_rule hands out rules until the join point, rule_rejected reports a failed assumption, and should_check_invariant samples invariants between the unconditional initial and final checks. @invariant gains alwaysRun for invariants that must see every step. STATE_MACHINE_DONE is INT64_MIN, and the machine handle is now freed.

Abi gains E_RETRY and RUN_STATUS_FAILED_NONDETERMINISTIC (the latter is an internal error here, since this binding never declares a run nondeterministic). FakeLibhegel plays the new protocol so the shared suite covers every new path; 100% coverage holds on both modules. RELEASE.md carries the minor-release notes.

The jump from 0.32.5 crosses three breaking C ABI changes:

- Single-test-case mode is gone (engine 0.35). Mode, Settings.mode and
  @HegelTest(mode) are removed; testCases = 1 is the replacement.
- Times are nanosecond-precise (engine 0.36). hegel_time_t carries
  nanoseconds in both bindings and the time/datetime generators no
  longer snap bounds to microseconds.
- Stateful testing uses the engine's round protocol (engine 0.33-0.37),
  driven sequentially as in hegel-rust: next_group opens each round,
  next_rule hands out rules until the join point, rule_rejected reports
  a failed assumption, and should_check_invariant samples invariants
  between the unconditional initial and final checks. @invariant gains
  alwaysRun for invariants that must see every step. STATE_MACHINE_DONE
  is INT64_MIN, and the machine handle is now freed.

Abi gains E_RETRY and RUN_STATUS_FAILED_NONDETERMINISTIC (the latter is
an internal error here, since this binding never declares a run
nondeterministic). FakeLibhegel plays the new protocol so the shared
suite covers every new path; 100% coverage holds on both modules.
RELEASE.md carries the minor-release notes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@esauro
esauro merged commit 90750d5 into main Sep 10, 2026
10 checks passed
@esauro
esauro deleted the bump-libhegel-0.37.6 branch September 10, 2026 10:48
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.

1 participant