Repository navigation
Bump libhegel to 0.43.4: rule weights and engine-owned settings variables - #24
Merged
Merged
Conversation
…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>
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.
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.