Skip to content

Releases

v1.1.2

Choose a tag to compare

@github-actions github-actions released this 26 Nov 07:48

Added

  • A Claude Code skill that lets Claude estimate with ubc on its own whenever an answer rests on guessed numbers, and installs ubc when it is missing. This repository is its plugin marketplace: /plugin marketplace add eferro/uncertain-bc, then /plugin install ubc@uncertain-bc (ADR 0068).

Fixed

  • --plain and --json print the same digits on every platform (#43). They printed the full float64, whose last bits depend on the architecture's math.Exp and math.Log, so Apple silicon and Linux on arm64 printed 66.49795720184639 where amd64 printed 66.4979572018464. Their numbers now have 10 significant figures, like plain numbers in the normal output: 66.4979572 (ADR 0069).

v1.1.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 08:40

Fixed

  • Assigning a comparison of uncertain values keeps its samples (#41). hit = uniform(0, 1) < 0.1 used to bind the probability 0.1, so hit * (50k to 500k) was a tenth of the impact in every sample and P(hit * (50k to 500k) > 0) was 1; now hit is an event, 1 in the samples where the comparison holds and 0 elsewhere, and that probability is about 0.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=...', to last after a comparison and to a function whose body is a comparison, which now prints a probability. --samples-out writes an event as a 0/1 column, --sens counts it as a driver, and --assert hit checks 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

Choose a tag to compare

@github-actions github-actions released this 23 Nov 06:58

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 --set adapts them. ubc --echo --scenario NAME now prints them first.
  • A section on units in the modelling guide: ubc keeps 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

Choose a tag to compare

@github-actions github-actions released this 22 Nov 23:35

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=expr overrides a model's variables from the command line.
  • --assert COND checks a condition after the run and exits with code 4 when it does not hold, for checks in CI.
  • --data NAME=FILE sets a variable to the numbers in a file, one per line, resampled like a list literal.
  • --samples-out FILE.csv exports the raw samples of every variable, for pandas or a spreadsheet.
  • :sens EXPR and --sens rank the variables that drive a result's uncertainty.
  • --interval W chooses the width of the printed interval.
  • Exact poisson and binomial distributions.
  • 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: --scenarios lists it, --scenario NAME runs one and --scenario-source NAME prints 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

Choose a tag to compare

@github-actions github-actions released this 21 Nov 20:23

Changelog

  • 74043e1 fix(build): template the tap token the only way goreleaser accepts

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 21 Nov 20:14

Changelog

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 18:27

Changelog

  • 617d1d8 build: publish .deb, .rpm and .apk packages with every release
  • 7f3df85 build: publish a Homebrew cask and a Scoop manifest with every release
  • 6f4e6e0 feat: install with one command through install.sh and install.ps1
  • a29a89d fix(cli): report the module version when installed with go install

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 17:29

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

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 17:04

Changelog

  • a0f4462 feat(domain): define and call user functions with name(params) = expr
  • c0d9638 feat(domain): draw from exponential, gamma and Beta-PERT distributions
  • 3ece10b feat(domain): resample empirical data written as [v1, v2, ...]

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 16:18

Changelog

  • f6e08a6 feat(cli): describe every result as a JSON object with --json
  • 12d00f7 feat(cli): export a histogram to SVG with :plot EXPR FILE
  • 003b356 feat(cli): export the histogram to PNG with :plot EXPR FILE.png
  • 75d125e refactor(cli): separate the chart layout from its SVG rendering