Repository navigation
Petri 0.1.3
Added
-
Multiple variants. A ship verdict with two or more variants now says
whether the result also clears a Bonferroni-corrected bar (97.5% for two).
The rule itself is unchanged, as pre-registered. -
Expected loss per arm in the results panel, the copilot's report and
ship verdicts: how much worse than control an arm is on average in the
cases where it is worse, so "98% to win" comes with the size of the
downside. -
petri-checkreadsflagsmith.env, so afterselfhost/bootstrap.mjs
the CLI runs all 12 rules with no flags or variables. -
Approval policy test: every copilot tool runs against a recording
Flagsmith client. A decline means nothing is written, an approval means
exactly the shown request is sent, and an unclassified new tool fails the
build. -
Treatment lock (
PETRI013):petri.lock.jsonrecords each running
experiment's variants, split, metrics and a fingerprint of every code path
serving it (written on start, released on completion; alsopetri-check lock
and Petri: Lock Running Experiments). Changing what a running experiment
serves is flagged in the editor as you type, in CI offline from the committed
lockfile, and against live Flagsmith (variant values, split, metrics). -
Measured comparison (docs/eval.md, harness in
eval/):
with Petri an agent fixed the same 6 planted bugs with 48% fewer tokens,
53% fewer turns and 42% less time; both conditions fixed 6/6. -
Skill cleanup as a pull request: the losing-code removal can be a PR
carrying the verdict line, the numbers, a real-or-simulated traffic note and a
checklist; the agent never merges it. -
Agent Skill
skills/flagsmith-experiment-check: wiring check → verdict →
gated completion with the Flagsmith CLI →flagsmith evaluatecheck →
gated cleanup. -
petri-check experiments(one line per experiment with the verdict,
interval, chance to win, expected loss, SRM and therollout_variantid)
and--format brief(one short line per finding), for agents. -
MCP server:
npx petri-check mcpgives any coding agent three
read-only tools:petri_check,petri_experiments(results, SRM, expected
loss and Petri's verdict) andpetri_rule. No tool changes Flagsmith or
code.
Fixed
petri-checkno longer crashes with a stack trace when Flagsmith is
unreachable: it names the URL and exits 2.