Repository navigation
Releases
Releases · eferro/uncertain-bc
v1.1.2
Added
- A Claude Code skill that lets Claude estimate with
ubcon its own whenever an answer rests on guessed numbers, and installsubcwhen it is missing. This repository is its plugin marketplace:/plugin marketplace add eferro/uncertain-bc, then/plugin install ubc@uncertain-bc(ADR 0068).
Fixed
--plainand--jsonprint the same digits on every platform (#43). They printed the full float64, whose last bits depend on the architecture'smath.Expandmath.Log, so Apple silicon and Linux on arm64 printed66.49795720184639where amd64 printed66.4979572018464. Their numbers now have 10 significant figures, like plain numbers in the normal output:66.4979572(ADR 0069).
v1.1.1
Fixed
- Assigning a comparison of uncertain values keeps its samples (#41).
hit = uniform(0, 1) < 0.1used to bind the probability0.1, sohit * (50k to 500k)was a tenth of the impact in every sample andP(hit * (50k to 500k) > 0)was1; nowhitis an event, 1 in the samples where the comparison holds and 0 elsewhere, and that probability is about0.1. An event still prints as a probability (results,--echo,:vars,--json,--plain), so the output of models that do not compute with an assigned comparison is unchanged. The same applies to--set 'hit=...', tolastafter a comparison and to a function whose body is a comparison, which now prints a probability.--samples-outwrites an event as a0/1column,--senscounts it as a driver, and--assert hitchecks it like a comparison.
Added
- Documentation for events that may or may not happen ("if it happens, it costs X"): a section in the modelling guide with a typical mistake, a how-to for risks, incidents and missed dates, and a table in the reference of what a comparison gives in each position.
v1.1.0
Added
- Every scenario ends with the output its run command prints, as a comment checked by the test suite, so you can read the answer without running it.
- Conversion constants in the shared formulas (
minutes_per_hour,hours_per_day,working_days_per_year,weeks_per_year,months_per_year…), each saying whether it counts working or calendar time; the scenarios use them instead of magic numbers, and--setadapts them.ubc --echo --scenario NAMEnow prints them first. - A section on units in the modelling guide:
ubckeeps no units, by decision; name them, keep them consistent and convert with the constants.
Removed
- The idea of a TUI with sliders is dropped from the roadmap (ADR 0064).
v1.0.0
First stable version: from now on the language, flags, REPL commands, --json and --plain output, exit codes and scenario names only change in a backwards-incompatible way with a new major version (ADR 0062).
Added
--set name=exproverrides a model's variables from the command line.--assert CONDchecks a condition after the run and exits with code 4 when it does not hold, for checks in CI.--data NAME=FILEsets a variable to the numbers in a file, one per line, resampled like a list literal.--samples-out FILE.csvexports the raw samples of every variable, for pandas or a spreadsheet.:sens EXPRand--sensrank the variables that drive a result's uncertainty.--interval Wchooses the width of the printed interval.- Exact
poissonandbinomialdistributions. - Every summary shows a nested 98% interval next to the 90% one.
- A scenario catalogue of ready-to-use models for teams, delivery, product, engineering, reliability, cloud costs and risk, with reusable formulas and a source for every assumption. It is built into the binary:
--scenarioslists it,--scenario NAMEruns one and--scenario-source NAMEprints its source. - A tutorial, a modelling guide, a user reference and how-to guides, whose examples the test suite runs against the binary.
- This changelog.
- A documentation website at https://eferro.github.io/uncertain-bc/ with the README, the guides, the reference, the scenario catalogue and this changelog, and a search box.
Changed
- Results are labelled with their variable name or a short form of their expression.
- Narrow intervals keep enough digits to tell their ends apart.
- The README is a short entry point that links to the guides.
Fixed
- Printed numbers no longer show binary floating-point noise.
- The ends of the 98% interval are rounded outwards, so it always contains the 90% one.
- The REPL handles escape sequences in the Windows console.
v0.7.2
Changelog
- 74043e1 fix(build): template the tap token the only way goreleaser accepts
v0.7.1
v0.7.0
Changelog
v0.6.0
Changelog
- bf0a05e feat(cli): draw histograms with --hist and choose percentiles with --quantiles
- 14cc86a feat(cli): evaluate files again whenever they change with --watch
- 5721765 feat(cli): name assignments in the REPL and print them with --echo
- 5d38897 feat(cli): print bash, zsh and fish completion scripts with --completion