Skip to content

Feature/bug hunting toolkit - #22

Merged
Echways merged 9 commits into
mainfrom
feature/bug-hunting-toolkit
Nov 10, 2026
Merged

Echways merged 9 commits into
mainfrom
feature/bug-hunting-toolkit

Conversation

@Echways

@Echways Echways commented Nov 10, 2026

Copy link
Copy Markdown
Owner

No description provided.

Custom differ on System.Text.Json.Nodes: JSON diff libraries emit patch
documents instead of path/before/after tuples.
8.0.0 pulls Microsoft.Build.Tasks.Git with a known vulnerability (NU1902),
which fails the warnings-as-errors build.
bisect prints the field diff between the last good tick and the first
violating tick plus the events of that tick, and stores statediff.txt in
the minrepro directory. verify-run diffs the snapshot against the replay
when a snapshot exists at the mismatch tick.
Runs the simulation over a range of seeds and reports invariant
violations, exceptions and non-determinism with the failing seed, tick
and a field-level state diff. Results are sorted by seed so they do not
depend on Parallelism. Includes JobQueue and StaticCounter samples that
exhibit a rare seed-dependent bug and a non-deterministic system.
Framework-agnostic assertions over Epoch.Fuzz: IsDeterministic,
InvariantsHold, NoFailures and MatchesGolden for fingerprint regression
checks. Packed and published alongside the other packages.
Reports wall-clock time, unseeded randomness, concurrency, process-dependent
hashing, external I/O and (hidden by default) hash-collection enumeration
inside simulation code: AddSystem/OnCommand lambdas and method groups,
ISystem/ICommandHandler/IInvariant implementations and [Deterministic]
members. ESIM002 has a code fix to ctx.Rng.

The code fix lives in a separate assembly because analyzers must not
reference Microsoft.CodeAnalysis.Workspaces (RS1038). Both assemblies ship
in EpochSim.Analyzers and are embedded in the EpochSim package: NuGet drops a
DevelopmentDependency project reference from the dependency list, so a
dependency on EpochSim.Analyzers would never be emitted. Roslyn is pinned to
5.0.0 to match the Roslyn in the .NET 10 SDK.
@Echways
Echways merged commit c1a73e3 into main Nov 10, 2026
1 check passed
@Echways
Echways deleted the feature/bug-hunting-toolkit branch November 10, 2026 09:13
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