• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ferric-AI / ferric / 25284311469
100%

Build:
DEFAULT BRANCH: main
Ran 03 May 2026 04:20PM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 May 2026 06:16AM UTC coverage: 100.0%. Remained the same
25284311469

push

github

nimar
add deterministic random variables with = syntax

Variables defined with `let x : T = expr` are treated as deterministic
random variables (functions of stochastic parents) rather than
stochastic ones. They can be queried or observed in both the model DSL
and in rejection sampling.

For weighted sampling, only querying deterministic variables is valid.
Observing a deterministic variable suppresses generation of
weighted_sample_iter / WeightedWorld / WeightedSample because there is
no distribution from which to compute a log-likelihood; calling
weighted_sample_iter on such a model produces a clear compile error
that suggests sample_iter as the alternative.

Changes:
- parse: StmtAst gains is_stochastic, supports ~ (stochastic) or =
  (deterministic) separator
- analyze: VariableIR gains is_stochastic propagated from the AST
- codegen: stochastic variables get eval_<v> + evaldist_<v> as before;
  deterministic variables get only eval_<v> (direct expression, cached
  in FeOption); reset_for_weighted pins only stochastic observed vars;
  weighted sampling infrastructure is omitted when any observed variable
  is deterministic
- tests: deterministic_rv.rs covers rejection sampling with a
  deterministic observation and weighted sampling with a deterministic
  query; semantic_err_06 is the negative UI test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

128 of 128 new or added lines in 3 files covered. (100.0%)

1609 of 1609 relevant lines covered (100.0%)

48993.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25284311469.1 03 May 2026 04:20PM UTC 21
100.0
GitHub Action Run
Source Files on build 25284311469
  • Tree
  • List 21
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25284311469
  • f07e2bfc on github
  • Prev Build on main (#25240677841)
  • Next Build on main (#25288841741)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc