Skip to content

Port zero-dependency stochastic core - #10

Merged
nilp0inter merged 3 commits into
mainfrom
scope-nitro-core
Jul 8, 2026
Merged

Port zero-dependency stochastic core#10
nilp0inter merged 3 commits into
mainfrom
scope-nitro-core

Conversation

@nilp0inter

Copy link
Copy Markdown
Contributor

Summary

  • Re-scope Montest from BDD-only positioning to a zero-runtime-dependency stochastic testing core.
  • Add typed core primitives, sync/async sequential iterators, SPRT, and explicit AllOf/AnyOf composites.
  • Add core behavior, async, SPRT, composite, and deterministic integration tests.

Verification

  • nix develop --command task sync
  • nix develop --command task lint
  • nix develop --command task typecheck
  • nix develop --command task test
  • nix develop --command uv run python -c 'import math, random; from montest import Decision, SequentialIterator, sprt; llr=lambda x: math.log(0.6/0.3) if x else math.log(0.4/0.7); rng=random.Random(42); samples=list(SequentialIterator(lambda: int(rng.random() < 0.6), sprt(llr=llr, alpha=0.05, beta=0.10))); assert samples[-1].decision is Decision.ACCEPT_H1; print(len(samples), samples[-1].decision.value)'
  • nix develop --command uv build
  • Wheel metadata inspected: no gherkin-official runtime dependency; no pytest/behave extras; dev extra remains; py.typed included.

Note: pytest and behave integration extras are intentionally deferred; this change ports the zero-dependency stochastic core only.

Note: pytest and behave integration extras are intentionally deferred; this change ports the zero-dependency stochastic core only.
@nilp0inter
nilp0inter merged commit 7a88921 into main Jul 8, 2026
5 checks passed
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