Toggle Wars / Track 03 / open-source Flagsmith

Docket

Flagsmith tells you a win probability. Docket tells you whether the release is allowed to proceed, and refuses with the numbers when it is not.

Open the console no signup
Case 2 of 2 failed its guardrail. The belt stops. The release is refused.
  • Clearedexit 0
  • Heldexit 1, needs more data
  • Refusedexit 2, nothing is written

The gate / one case at a time

Every case crosses the same gate.

  1. 01
    Audit

    Eleven wiring checks run before any number is trusted: warehouse, rollout, variation keys, events URL, both arms receiving traffic.

  2. 02
    First case clears

    Its interval excludes zero in the expected direction and the guardrails are clean.

  3. 03
    Second case fails

    It wins on the primary metric, then regresses a guardrail beyond tolerance.

  4. 04
    The release is refused

    One refused case blocks the whole release. Docket writes no flag and exits 2.

  5. 05
    The decision is signed

    One HMAC-SHA256 record holds every interval and the refusal. Edit a digit and it no longer verifies.

Stage 05 / 05Signed

What a dashboard hides

One number is not a decision.

  1. The wiring lies. A variation with no key records no exposures. A mistyped event leaves conversions at zero. The dashboard still looks healthy, so Docket runs 11 audits before it trusts a number.
  2. A point estimate ships on noise. An interval that crosses zero is not a win, whatever colour the number is. Docket gates on the interval.
  3. The decision evaporates. Nothing records who shipped what, on which numbers. Docket signs one record per release.


      

Computed in your browser from the recorded docket. Run your own in the console.

The gate

Seven states. One of them ships.

A gate that cannot tell "not enough data" from "bad data" from "losing" will ship on noise. States are evaluated in this order, and every state carries the numbers that produced it.

The seven gate states, what each means and the exit code it returns
StateMeaningExit
unreachableAPI, auth, or results not computed yet3
brokenSample ratio mismatch, dead arm, or no exposures. The data cannot be trusted.2
collectingBelow 50 identities or 5 conversions per arm. No result yet.1
losingThe treatment loses. Do not ship.2
guardrailThe winner regressed another metric beyond tolerance.2
inconclusiveThe interval still crosses zero. Docket prints how much more traffic it needs.1
winnerInterval excludes zero in the expected direction, win probability above threshold, guardrails clean.0

The record

Edit one digit. Watch it refuse.

Every ship writes one record: every interval, every flag mutation, one HMAC-SHA256 over the canonical JSON. The record below was signed by the Python engine with a published sample key. Your browser verifies it with WebCrypto, byte for byte the same way.

Sample key: docket-sample-key. Change a number in the record, then verify.

Run it

One binary, one Action, one browser tab.

Terminal UI

$ curl -fsSL https://raw.githubusercontent.com/LangerSword/docket/main/install.sh | sh
$ docket-tui

Linux and macOS. It installs the CLI and the terminal UI to ~/.local/bin and checks every download against the release's SHA256SUMS before it writes anything.

CLI

$ pip install "git+https://github.com/LangerSword/docket"
$ docket gate
DECISION: INCONCLUSIVE  (exit 1)
  leading variant: red
  - interval still crosses zero

GitHub Action

- uses: actions/checkout@v4
- uses: LangerSword/docket/action@v1
  with:
    command: release check

Exit 0 is the only status that lets the job pass.

Console

Paste a Flagsmith URL, an environment key and a token. Run a read-only check, read the decision, ship with a typed confirmation, keep the signed record.

No account. Profiles, history and records stay in your browser. The token is encrypted if you choose to keep it.

Open the console

Or run the whole thing locally

$ git clone https://github.com/LangerSword/docket && cd docket
$ make demo
  # self-hosted Flagsmith, a sample shop, traffic, audit, gate