### 1. empty ledger
$ node /work/repo/bin/100x.mjs verify status
The ledger is empty. No rule covers this code, so start the verification procedure: run `100x ref properties` and follow it. Extract what can exist (state), how it changes (transitions), when a step is allowed (preconditions), what is true after it (postconditions), what always holds (invariants) and what must eventually happen under stated assumptions (liveness). Check them with the property checker from the 100x skill (skills/100x/assets/property-checker.mjs) or a tool that fits, show each fail on a seeded defect, then 100x verify add. Code with no rule to extract, such as layout or copy, gets 100x verify waive with the reason.
[exit 1]
$ node /work/repo/bin/100x.mjs verify cover src/order.mjs
NO RULE  src/order.mjs

No rule covers this code, so start the verification procedure: run `100x ref properties` and follow it. Extract what can exist (state), how it changes (transitions), when a step is allowed (preconditions), what is true after it (postconditions), what always holds (invariants) and what must eventually happen under stated assumptions (liveness). Check them with the property checker from the 100x skill (skills/100x/assets/property-checker.mjs) or a tool that fits, show each fail on a seeded defect, then 100x verify add. Code with no rule to extract, such as layout or copy, gets 100x verify waive with the reason.
[exit 2]
### 2. add the property and run it
$ node /work/repo/bin/100x.mjs verify add order-workflow --kind invariant --property Refunded never exceeds paid, paid never exceeds the total, and every started order settles --covers src/order.mjs,verify/check.mjs --command node verify/check.mjs --level exhaustive
added order-workflow. Next: save a failing run in verify/red/order-workflow.txt, then 100x verify run order-workflow
[exit 0]
$ node /work/repo/bin/100x.mjs verify status
unchecked  order-workflow  invariant, exhaustive  never run
[exit 1]
$ node /work/repo/bin/100x.mjs verify run order-workflow
$ node verify/check.mjs
pass  order-workflow. invariant, exhaustive, exit 0
needs  order-workflow. unproven. no failing run in verify/red/order-workflow.txt. Seed one defect in a throwaway copy of the covered code, run the check, and save the failing output there
[exit 0]
$ node /work/repo/bin/100x.mjs verify status
unproven   order-workflow  invariant, exhaustive  no failing run in verify/red/order-workflow.txt. Seed one defect in a throwaway copy of the covered code, run the check, and save the failing output there
[exit 1]
### 3. the failing run on a planted bug
[planted-bug run exit 1]
FAIL  inv:money-in-bounds. refunded <= paid <= total broke (and 199986 more). Steps: !pay(4).
FAIL  guard:pay. the model forbids pay(4) but the implementation accepted it and changed the state to {"total":3,"status":"open","paid":4,"refunded":0} (and 266673 more). Steps: pay(4).
FAIL  live:every-started-order-settles. not decided. The exploration stopped at a bound, so a state that looks stuck may only be unexplored. Raise MAX_STATES and MAX_DEPTH, or shrink the model.
$ node /work/repo/bin/100x.mjs verify status
holds      order-workflow  invariant, exhaustive  Refunded never exceeds paid, paid never exceeds the total, and every started order settles
[exit 0]
### 4. change the covered code: partial payment now cancels the order (surviving mutant 32)
 1 file changed, 1 insertion(+), 1 deletion(-)
$ node /work/repo/bin/100x.mjs verify status
stale      order-workflow  invariant, exhaustive  the covered code changed after the last sync. Read what changed, run the check, then sync
[exit 1]
$ node /work/repo/bin/100x.mjs verify run order-workflow
$ node verify/check.mjs
pass  order-workflow. invariant, exhaustive, exit 0
needs  order-workflow. stale. the covered code changed after the last sync. Read what changed, run the check, then sync
[exit 0]
$ node /work/repo/bin/100x.mjs verify status
stale      order-workflow  invariant, exhaustive  the covered code changed after the last sync. Read what changed, run the check, then sync
[exit 1]
$ node /work/repo/bin/100x.mjs verify sync order-workflow --note read the change
synced order-workflow to the code as it is now
[exit 0]
$ node /work/repo/bin/100x.mjs verify status
holds      order-workflow  invariant, exhaustive  Refunded never exceeds paid, paid never exceeds the total, and every started order settles
[exit 0]
### 5. a property that checks nothing, with a hand-written red file
$ node /work/repo/bin/100x.mjs verify add always-true --kind invariant --property The order workflow is correct --covers src/order.mjs --command node -e 0 --level sampled
added always-true. Next: save a failing run in verify/red/always-true.txt, then 100x verify run always-true
[exit 0]
$ node /work/repo/bin/100x.mjs verify run always-true
$ node -e 0
pass  always-true. invariant, sampled, exit 0
[exit 0]
$ node /work/repo/bin/100x.mjs verify status
stale      order-workflow  invariant, exhaustive  the covered code changed after the last sync. Read what changed, run the check, then sync
holds      always-true  invariant, sampled  The order workflow is correct
[exit 1]
### 6. ledger and history
id	kind	command	level	red	status
order-workflow	invariant	node verify/check.mjs	exhaustive	verify/red/order-workflow.txt	holds
always-true	invariant	node -e 0	sampled	verify/red/always-true.txt	holds
ts	id	event	commit	hash	note	result
2026-11-30T17:35:09Z	order-workflow	add	3976c7c	3a4e4b3b33dc265d	Refunded never exceeds paid, paid never exceeds the total, and every started order settles	unch
2026-11-30T17:35:09Z	order-workflow	run	3976c7c	3a4e4b3b33dc265d	exit 0, 0.1 s	holds
2026-11-30T17:35:18Z	order-workflow	run	c2839d5	963af66001fd6e7e	exit 0, 0 s	holds
2026-11-30T17:35:18Z	order-workflow	sync	c2839d5	963af66001fd6e7e	read the change	holds
2026-11-30T17:35:18Z	always-true	add	c2839d5	c78f8d8ac962c05e	The order workflow is correct	unchecked
2026-11-30T17:35:18Z	always-true	run	c2839d5	c78f8d8ac962c05e	exit 0, 0 s	holds
