sampleThis is the real RUN_REPORT.html from python crucible.py --demo: real worktrees and real gates, a scripted critic, no API calls.← back to the CRUCIBLE site
CRUCIBLE runsimulated · demo mode, no API calls

CLI expense tracker: add <amount> <category>, list, summary (totals per category). JSON file storage. Python stdlib + pytest.

run 2026-10-21_0244_demo_cli-expense-tracker-addstarted 2026-10-21T02:44:38crucible 2.1.0
pass

The winner cleared every gate and scored at least 8/10 on all five dimensions, with nothing left to fix.

rounds
3/ 5
completed / cap
candidates
3
forked per round
went green
8/ 9
passed every gate
best round
R3
min score 8/10
total cost
$3.45
of $5.00 cap · 69% · simulated

Score progression

0246810PASS 8R1R2R3Round 1, c2: min 3/10Round 1, c3: min 4/10Round 2, c1: min 5/10Round 2, c2: min 5/10Round 2, c3: min 6/10Round 3, c1: min 6/10Round 3, c2: min 6/10Round 3, c3: min 8/10BEST
candidate min scoreround winnerpass threshold (8)

Cumulative cost

$0.00$2.50$5.00Round 1: $0.9700 this round, $0.9700 so far$0.97R1Round 2: $1.1820 this round, $2.1520 so far$2.15R2Round 3: $1.2960 this round, $3.4480 so far$3.45R3CAP $5.00
this roundearlier roundsbudget cap

Tournament

Round 1

base 67a02b0e · 3 candidate(s) · 2 green · $0.9700 · winner c3
c1straight readred
gates 1/2cost $0.2240commit 5f94f57b

gates red — not reviewed

c2Bias toward the simplest design that fully satisfies the ideagreen
gates 2/2cost $0.3560commit d2e2a56e
correctness5
completeness6
robustness3
code quality7
test quality4
min3/10REVISE
critique

Gates are green, but green is not done: 6 blocking issue(s). Weakest dimension is robustness at 3/10.

must fix · 6
  • expenses.py: add() accepts negative and zero amounts, so add -5 food silently lowers the food total — reject anything that is not > 0 with a clear error
  • test_expenses.py: no test exercises bad input at all — add cases for -5, 0, nan and an empty category, asserting the specific error
  • expenses.py: add() stores a blank category (' ' becomes ''), which summary() then reports as an unnamed line — validate it
  • expenses.py: load() lets json.JSONDecodeError escape on a corrupt expenses.json, so every command dies with a traceback instead of an actionable error
  • expenses.py: save() truncates expenses.json before writing, so an interrupt or a full disk mid-write destroys every recorded expense — write a temp file and os.replace() it
  • expenses.py: json.dumps() keeps the default allow_nan=True and can emit NaN, which no strict JSON parser will read back — pass allow_nan=False
c3Bias toward robustnessgreenwinner
gates 2/2cost $0.3900commit c483d440
correctness6
completeness8
robustness4
code quality7
test quality5
min4/10REVISE
critique

Gates are green, but green is not done: 5 blocking issue(s). Weakest dimension is robustness at 4/10.

must fix · 5
  • expenses.py: the amount <= 0 guard does not reject NaN or Infinity (every NaN comparison is False and inf <= 0 is False), so add nan food is accepted — use math.isfinite()
  • expenses.py: add() stores a blank category (' ' becomes ''), which summary() then reports as an unnamed line — validate it
  • expenses.py: load() lets json.JSONDecodeError escape on a corrupt expenses.json, so every command dies with a traceback instead of an actionable error
  • expenses.py: save() truncates expenses.json before writing, so an interrupt or a full disk mid-write destroys every recorded expense — write a temp file and os.replace() it
  • expenses.py: json.dumps() keeps the default allow_nan=True and can emit NaN, which no strict JSON parser will read back — pass allow_nan=False

Round 2

base c483d440 · 3 candidate(s) · 3 green · $1.1820 · winner c3
c1straight readgreen
gates 2/2cost $0.3600commit 0d334b71
correctness7
completeness8
robustness5
code quality7
test quality6
min5/10REVISE
critique

Gates are green, but green is not done: 3 blocking issue(s). Weakest dimension is robustness at 5/10.

must fix · 3
  • expenses.py: load() lets json.JSONDecodeError escape on a corrupt expenses.json, so every command dies with a traceback instead of an actionable error
  • expenses.py: save() truncates expenses.json before writing, so an interrupt or a full disk mid-write destroys every recorded expense — write a temp file and os.replace() it
  • expenses.py: json.dumps() keeps the default allow_nan=True and can emit NaN, which no strict JSON parser will read back — pass allow_nan=False
c2Bias toward the simplest design that fully satisfies the ideagreen
gates 2/2cost $0.3940commit dc7b4073
correctness7
completeness7
robustness5
code quality7
test quality6
min5/10REVISE
critique

Gates are green, but green is not done: 3 blocking issue(s). Weakest dimension is robustness at 5/10.

must fix · 3
  • expenses.py: load() lets json.JSONDecodeError escape on a corrupt expenses.json, so every command dies with a traceback instead of an actionable error
  • expenses.py: save() truncates expenses.json before writing, so an interrupt or a full disk mid-write destroys every recorded expense — write a temp file and os.replace() it
  • expenses.py: json.dumps() keeps the default allow_nan=True and can emit NaN, which no strict JSON parser will read back — pass allow_nan=False
c3Bias toward robustnessgreenwinner
gates 2/2cost $0.4280commit 5d9ab472
correctness8
completeness9
robustness6
code quality8
test quality7
min6/10REVISE
critique

Gates are green, but green is not done: 2 blocking issue(s). Weakest dimension is robustness at 6/10.

must fix · 2
  • expenses.py: save() truncates expenses.json before writing, so an interrupt or a full disk mid-write destroys every recorded expense — write a temp file and os.replace() it
  • expenses.py: json.dumps() keeps the default allow_nan=True and can emit NaN, which no strict JSON parser will read back — pass allow_nan=False

Round 3

base 5d9ab472 · 3 candidate(s) · 3 green · $1.2960 · winner c3
c1straight readgreen
gates 2/2cost $0.3980commit 613ee009
correctness8
completeness9
robustness6
code quality8
test quality7
min6/10REVISE
critique

Gates are green, but green is not done: 2 blocking issue(s). Weakest dimension is robustness at 6/10.

must fix · 2
  • expenses.py: save() truncates expenses.json before writing, so an interrupt or a full disk mid-write destroys every recorded expense — write a temp file and os.replace() it
  • expenses.py: json.dumps() keeps the default allow_nan=True and can emit NaN, which no strict JSON parser will read back — pass allow_nan=False
c2Bias toward the simplest design that fully satisfies the ideagreen
gates 2/2cost $0.4320commit c028ccba
correctness8
completeness8
robustness6
code quality8
test quality7
min6/10REVISE
critique

Gates are green, but green is not done: 2 blocking issue(s). Weakest dimension is robustness at 6/10.

must fix · 2
  • expenses.py: save() truncates expenses.json before writing, so an interrupt or a full disk mid-write destroys every recorded expense — write a temp file and os.replace() it
  • expenses.py: json.dumps() keeps the default allow_nan=True and can emit NaN, which no strict JSON parser will read back — pass allow_nan=False
c3Bias toward robustnessgreenwinner
gates 2/2cost $0.4660commit ab81a64f
correctness9
completeness9
robustness9
code quality9
test quality8
min8/10PASS
critique

Small, honest and finished: input is validated at the boundary, a corrupt or half-written store cannot lose data, and the tests pin real behaviour including every failure path. Nothing blocking.

must fix · none

The idea

CLI expense tracker: `add <amount> <category>`, `list`, `summary` (totals per category). JSON file storage. Python stdlib + pytest.

Getting the best version

best points at round 3, the highest-scoring round (min score 8/10) — not necessarily the last one.

cd runs/_site-demo/2026-10-21_0244_demo_cli-expense-tracker-add/workspace
git checkout best                   # the highest-scoring round, not the last
git branch --list 'cand-*'          # every candidate, winners and losers
git diff round-3 cand-r3-1   # what a losing attempt did differently