You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@hashintel/petrinaut@0.0.19
Patch Changes
Updated dependencies:
@hashintel/petrinaut-core@0.0.4
@hashintel/petrinaut-core@0.0.4
Patch Changes
Fix stochastic transition firing statistics: fire with the memoryless per-frame probability 1 - e^(-rate * dt), advance the RNG state on every evaluation instead of discarding non-firing draws, and compute the seeded LCG with exact integer arithmetic. Firing counts now match Poisson expectations. Identical seeds produce different sequences than earlier releases. (@kube, #9329)
Medium Risk
Changes core stochastic simulation and RNG semantics; reproducibility across versions is intentionally broken, which can affect optimization runs and tests that depend on fixed seeds.
Overview
Automated Changesets release that publishes @hashintel/petrinaut-core@0.0.4 and bumps @hashintel/petrinaut@0.0.19 to pick up that dependency.
The core patch (from #9329) corrects stochastic transition firing in the simulation engine: numeric rates use the memoryless per-frame probability 1 - e^(-rate * dt), the RNG advances on every enabled evaluation (including non-fires), and the seeded LCG uses exact Math.imul integer arithmetic in seeded-rng.ts. Firing counts should align with Poisson expectations, but the same seed no longer reproduces prior release sequences.
Reviewed by Cursor Bugbot for commit 8d2febc. Bugbot is set up for automated code reviews on this repo. Configure here.
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
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@hashintel/petrinaut@0.0.19
Patch Changes
@hashintel/petrinaut-core@0.0.4
Patch Changes
1 - e^(-rate * dt), advance the RNG state on every evaluation instead of discarding non-firing draws, and compute the seeded LCG with exact integer arithmetic. Firing counts now match Poisson expectations. Identical seeds produce different sequences than earlier releases. (@kube, #9329)