Skip to content

Bump libhegel to 0.43.4: rule weights and engine-owned settings variables - #24

Merged
esauro merged 1 commit into
mainfrom
libhegel-0.43.4
Sep 28, 2026
Merged

esauro merged 1 commit into
mainfrom
libhegel-0.43.4

Conversation

@esauro

@esauro esauro commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

The engine's hegel_new_state_machine takes a rule_weights array, exposed as @rule(weight = ...) and validated in Stateful; every existing machine passes NULL for the old all-equal behaviour.

hegel_settings_new now applies HEGEL_TEST_CASES, HEGEL_DATABASE, HEGEL_SEED, HEGEL_DERANDOMIZE and HEGEL_PRINT_BLOB and can fail on a malformed one, so Libhegel.settingsNew returns the raw code (E_INVALID_ARG becomes an IllegalArgumentException) and the runner only sends settings the user set. That also fixes hegel.toml's test_cases being overridden by the Java default of 100. The Java-side CI detection goes away in favour of the engine's ci profile, printBlob defaults to the engine's value (on), and @HegelTest.printBlob becomes an OptBoolean so it can still be turned off.

EnvironmentTest launches a child JVM to cover the variables and hegel.toml, since the engine reads its own process environment.

…bles

The engine's hegel_new_state_machine takes a rule_weights array, exposed as
@rule(weight = ...) and validated in Stateful; every existing machine passes
NULL for the old all-equal behaviour.

hegel_settings_new now applies HEGEL_TEST_CASES, HEGEL_DATABASE, HEGEL_SEED,
HEGEL_DERANDOMIZE and HEGEL_PRINT_BLOB and can fail on a malformed one, so
Libhegel.settingsNew returns the raw code (E_INVALID_ARG becomes an
IllegalArgumentException) and the runner only sends settings the user set.
That also fixes hegel.toml's test_cases being overridden by the Java default
of 100. The Java-side CI detection goes away in favour of the engine's ci
profile, printBlob defaults to the engine's value (on), and
@HegelTest.printBlob becomes an OptBoolean so it can still be turned off.

EnvironmentTest launches a child JVM to cover the variables and hegel.toml,
since the engine reads its own process environment.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@esauro
esauro merged commit df4c0c3 into main Sep 28, 2026
10 checks passed
@esauro
esauro deleted the libhegel-0.43.4 branch September 28, 2026 09:38
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