judge-a-flow
/judge-a-flow
Proves a ledger-backed money flow works by writing an independent judge from the spec alone, fixing its fingerprint before the build is read, then testing the service over HTTP (amounts, races, crashes, retries) and posting forbidden entries straight to the ledger, each of which must be refused. Use when the user asks to prove, audit or judge a flow, or whether it is correct. It is not a routine step of building one.
- Author
- fragment-dev ↗
- Repository
- fragment-plugins ↗
- Licence
- MIT
- Last repository change
- 04.11.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 04.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Proves a ledger-backed money flow works by writing an independent judge from the spec alone, fixing its fingerprint before the build is read, then testing the service over HTTP (amounts, races, crashes, retries) and posting forbidden entries straight to the ledger, each of which must be refused. Use when the user asks to prove, audit or judge a flow, or whether it is correct. It is not a routine step of building one.
Original author description
Proves a ledger-backed money flow works by writing an independent judge from the spec alone, fixing its fingerprint before the build is read, then testing the service over HTTP (amounts, races, crashes, retries) and posting forbidden entries straight to the ledger, each of which must be refused. Use when the user asks to prove, audit or judge a flow, or whether it is correct. It is not a routine step of building one.
How it works
SKILL.md has no level-two headings · 27 lines, 287 words
SKILL.md preview
--- name: judge-a-flow description: Proves a ledger-backed money flow works by writing an independent judge from the spec alone, fixing its fingerprint before the build is read, then testing the service over HTTP (amounts, races, crashes, retries) and posting forbidden entries straight to the ledger, each of which must be refused. Use when the user asks to prove, audit or judge a flow, or whether it is correct. It is not a routine step of building one. --- # Judge a money flow A build's own tests share its author's assumptions. The judge doesn't: it is written from the spec alone and attacks both the service and the ledger. 1. **Write the judge from the spec only**, on `../money-flows/kit/fragment_kit/judge_harness.py` (`Harness`: starts and kills the service, a scripted HTTP rail with real in-flight states, `race`, `balances`, and `attack_all`). Subclass it; one method per spec area; a `check(name, ok, detail)` per claim. Cover: every operation's effects and refusals, authority, rounding edges, failed and late rail outcomes, replays and `operation_id_reused`, each race the spec names, and a kill-and-restart. 2. **Pre-register it**: record `shasum -a 256` of the judge before reading the build. If the judge turns out wrong, fix only those mistakes in a v2, document each with evidence, and keep both scores. 3. **The build supplies `MANIFEST.json`** ([MANIFEST.md](MANIFEST.md)): how to start the service, its accounts, and forbidden moves per invariant. `attack_all(fixtures)` posts each forbidden entry with the service's own credentials and requires Fragment to refuse it with a typed code, no watched balance to move, and the entry type to be one the service really uses. 4. **The build supplies `TRUST-BOUNDARY.md`** ([TRUST-BOUNDARY.md](TRUST-BOUNDARY.md)): each invariant marked ledger-enforced (and how) or service-attested (and why). Every ledger row gets attacked. 5. **Run it on a fresh ledger.** With no Fragment account, use `Harness(build, local=True)`: a fresh local ledger from the manifest's schema file, the service started with `--ledger local:<path>`, and the forbidden moves posted to that same database. On Fragment, use a ledger created from the stored schema (`Harness(build, ledger="<ik>")`): shared accounts on a reused ledger carry balances from the last run. The flow passes when every check passes, every forbidden move is refused, and the service-attested rows are honest.
Files in this package (3)
- MANIFEST.md 3 KB
- SKILL.md 2 KB
- TRUST-BOUNDARY.md 1 KB
Versions
The database has no other skills named judge-a-flow.
Database snapshot: 13.11.2026 · package version 16609d1e7cc7 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 86money-flow-spec
Writes the requirements spec for a money flow (credits, wallets, payouts, escrow, lending, spending limits): parties, states, amounts and rounding, time, failure, the invariants a ledger must enforce, and every field of every operation. Use when the user asks for a written spec,… - 100ledger-rules
Designs a Fragment ledger schema whose entry types enforce a money flow's invariants as ledger conditions — no negative balances, settle-once state machines, exact splits, bounded captures and refunds, fees proved on the ledger — using the kit's tested primitives. Use when… - 100commerce-general-ledger
Manage the general ledger, chart of accounts, journal entries, and financial statements. Use when posting transactions, closing periods, or generating trial balance and financial reports.