Templates that prove themselves.
One point in your stack, one rule, one check, one release. Each template pins a published rule, runs against the live record, and writes its own test leaf: ALLOW on try-me, REFUSE on a stranger. A broken template loses standing where anyone can see it: the leaf is written by the template's own key and linked on its card.
The second ledger of the economy · Value moves on proof · Prove · Authorize · Account
- Pickfilter
Filter by your stack and your role. Every template touches exactly one point: release, listing, allocation, promotion or hire.
/templates/?stack=fastapi&role=rail - Adoptone call
One POST claims a key if you have none, pins or cites the rule, runs the template's check and release against try-me, registers you on /built-on/, and returns the paste lines for your stack.
POST https://studio.mizan.market/api/adopt {template, name, what, url, stack, point} - Verifyoffline
What comes back is entry indices, a receipt and the lines to paste. Every entry recomputes against the signed head in your own browser or shell.
GET https://studio.mizan.market/api/log/proof/{index}
Four shapes. One point each.
Each card is built from the template's own folder: its rule as written and as hashed, the snippet for its first stack, its README. "Use this template" is the adopt call, shown in full before anything is sent.
The self-proof is one leaf, written by the template's own key right after the template produced ALLOW on try-me and REFUSE on a stranger; each card links that leaf, and a template that stops producing both loses its standing where anyone can read it.
escrow-release-gate
one point · releaseEscrow release gateHold a payment. Release it only on a signed ALLOW against your pinned rule; the release is complete only with a receipt that verifies offline.
- For
- venue · escrow · payout
- Stacks
- fastapiexpressnextjsshell
- Doors
- read · write · require
adopt · the one working callcurl -s -X POST https://studio.mizan.market/api/adopt -H 'content-type: application/json' \ -d '{"template": "escrow-release-gate", "name": "\u2026", "what": "\u2026", "url": "https://\u2026", "stack": "fastapi", "point": "release"}' # add -H 'authorization: Bearer $MIZAN_API_KEY' to adopt under a key you already hold; without it a key is claimed and returned once # reply { "key": "mzn_… (shown once; absent when you sent your own)", "key_hash": "…", "bar": {"ref": "req_…@1", "hash": "…", "log_index": N}, # your bar's entry (pinned, or citing the template's) "check": {"decision": "ALLOW", "subject": "try-me", "token": "mzv1.…"}, "receipt": {"receipt_id": "rcpt_…", "leaf": N}, # the release, receipted "register": {"leaf_index": N}, # your /built-on/ entry, "via escrow-release-gate" "paste": {"fastapi": "the lines to paste at your release point"}, "test": {"path": "…", "content": "sixty seconds against the live record"} }copies the call above · nothing is sent until you send itthe release point · fastapi · pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whlfrom mizan.client import Mizan # pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl · key from ./.mizan.json m = Mizan(); bar = m.publish_bar(open("bar.txt").read(), "escrow bar") # your words, one leaf, pinned v = m.check(payee, rule=bar["ref"], payee=payee) # signed verdict, verified offline here if v.allow: my_escrow.release(hold_id) # your release step; a REFUSE keeps the hold + v.next = proof request receipt = m.release(v, amount=amount, currency="USD", payer=me, payee=payee, bar=bar["hash"], external_ref=hold_id) assert receipt["_verified"]["ok"] # complete only with a receipt that verifies offlineRun it in ten minutes · what it is, what comes back, how to verify
Hold a payment. Release it only on MIZAN's signed ALLOW against the rule *you* pinned, and treat the release as complete only when the release receipt verifies offline against the published key. Promoted from the
escrow_releasestarter kit; now runs the public SDK end to end against the live record.What it proves. Your rule is on the record in your words (one leaf). Every release decision is a signed verdict you verified yourself, bound to the payee you are about to pay. Every release leaves a receipt that anyone can verify with no call to MIZAN. The template itself carries a
PROOF.json: the leaf indices and receipt id its last test run produced; a template that stops producing ALLOW on try-me and REFUSE on a stranger loses standing publicly.What MIZAN never holds. Your escrow, your money, the hold itself, your payee's method. MIZAN sees the rule's words, the subject checked, and the release amount/refs you choose to record (payer and payee are hashed in the receipt).
The one point it touches.
release— the line where your code moves a held payment. Nothing upstream changes.Ten-minute run
The run is the adopt call above. Its reply carries
paste(the lines for your fastapi release point) andtest(sixty seconds against the live record: ALLOW on try-me, REFUSE on a stranger). Paste, run the test, done; every entry it names recomputes against the signed head.Verify
verify the receipt · offline, the published key · three linesfrom mizan.client import verify_receipt # pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl · offline, published key, no call to MIZAN r = verify_receipt(open("receipt.json").read()) # the JSON POST /api/release returned ({receipt, signature}) assert r["ok"], r["reason"]; print("release complete:", r["receipt_id"], "leaf", r["leaf_index"])or with curl · the {receipt, signature} the release returnedcurl -s -X POST https://studio.mizan.market/api/release/receipt/verify -H 'content-type: application/json' -d @receipt.json | jq .valid
marketplace-listing-filter
one point · listingMarketplace listing filterWrite your listing rule in plain words. Show only candidates that meet it; everyone else stays hidden with the proof request that gets them listed.
- For
- marketplace · directory · job board
- Stacks
- fastapiexpressnextjsshell
- Doors
- read · write · require
adopt · the one working callcurl -s -X POST https://studio.mizan.market/api/adopt -H 'content-type: application/json' \ -d '{"template": "marketplace-listing-filter", "name": "\u2026", "what": "\u2026", "url": "https://\u2026", "stack": "fastapi", "point": "listing"}' # add -H 'authorization: Bearer $MIZAN_API_KEY' to adopt under a key you already hold; without it a key is claimed and returned once # reply { "key": "mzn_… (shown once; absent when you sent your own)", "key_hash": "…", "bar": {"ref": "req_…@1", "hash": "…", "log_index": N}, # your bar's entry (pinned, or citing the template's) "check": {"decision": "ALLOW", "subject": "try-me", "token": "mzv1.…"}, "receipt": {"receipt_id": "rcpt_…", "leaf": N}, # the release, receipted "register": {"leaf_index": N}, # your /built-on/ entry, "via marketplace-listing-filter" "paste": {"fastapi": "the lines to paste at your listing point"}, "test": {"path": "…", "content": "sixty seconds against the live record"} }copies the call above · nothing is sent until you send itthe listing point · fastapi · pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whlfrom mizan.client import Mizan # pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl · key from ./.mizan.json m = Mizan(); bar = m.publish_bar(open("bar.txt").read(), "listing bar") # your words, one leaf, pinned verdicts = {s: m.check(s, rule=bar["ref"], payee=s) for s in candidates} # one signed verdict each, verified offline here listing = [s for s, v in verdicts.items() if v.allow] # shown hidden = {s: v.next for s, v in verdicts.items() if not v.allow} # not shown · v.next = the proof request that gets them listedthe honest second example · a candidate with no record · read live at build{ "decision": "REFUSE", "subject": "dns:candidate-91233.example", "reason": "no_record", "rule": { "id": "req_e71f05638b9e@1", "hash": "sha256:2123063791b910090390ba270484d0c920262cb5355ce17ff0955beec4016739" }, "next": { "proof_request": { "method": "POST", "url": "https://studio.mizan.market/api/proof-requests", "body": { "subject": "candidate-91233.example" }, "returns": "a private link to forward to the party; when it proves the rule, the next check returns ALLOW" } } }Hidden, with the proof request that gets it listed: when the candidate proves the rule, the next check answers ALLOW.
Run it in ten minutes · what it is, what comes back, how to verify
Write your listing rule in plain words. Show only the candidates that meet it. Everyone else stays hidden — with the proof request that gets them listed the moment they prove. Promoted from the
proven_listingstarter kit.What it proves. The rule is on the record in your words (one leaf). Every listed name met it under a signed verdict you verified offline. The first payout to a listed seller leaves a receipt anyone can verify with no call to MIZAN.
PROOF.jsoncarries the leaf indices and receipt id of the template's own last test run.What MIZAN never holds. Your catalogue, your ranking, your fees, the hidden names' methods. MIZAN sees the rule's words, the subjects checked, and the payout amount/refs you choose to record (payer and payee hashed in the receipt).
The one point it touches.
listing— the filter between "candidate" and "shown". Nothing else in your marketplace moves.Ten-minute run
The run is the adopt call above. Its reply carries
paste(the lines for your fastapi listing point) andtest(sixty seconds against the live record: ALLOW on try-me, REFUSE on a stranger). Paste, run the test, done; every entry it names recomputes against the signed head.Verify
verify the receipt · offline, the published key · three linesfrom mizan.client import verify_receipt # pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl · offline, published key, no call to MIZAN r = verify_receipt(open("receipt.json").read()) # the JSON POST /api/release returned ({receipt, signature}) assert r["ok"], r["reason"]; print("release complete:", r["receipt_id"], "leaf", r["leaf_index"])or with curl · the {receipt, signature} the release returnedcurl -s -X POST https://studio.mizan.market/api/release/receipt/verify -H 'content-type: application/json' -d @receipt.json | jq .valid
vault-allocation-gate
one point · allocationVault allocation gateA vault allocates to a strategy only on a signed ALLOW against its published rule; every allocation leaves a receipt bound to the strategy that was checked.
- For
- vault · allocator · fund of agents
- Stacks
- fastapishellgithub-action
- Doors
- read · write · require
adopt · the one working callcurl -s -X POST https://studio.mizan.market/api/adopt -H 'content-type: application/json' \ -d '{"template": "vault-allocation-gate", "name": "\u2026", "what": "\u2026", "url": "https://\u2026", "stack": "fastapi", "point": "allocation"}' # add -H 'authorization: Bearer $MIZAN_API_KEY' to adopt under a key you already hold; without it a key is claimed and returned once # reply { "key": "mzn_… (shown once; absent when you sent your own)", "key_hash": "…", "bar": {"ref": "req_…@1", "hash": "…", "log_index": N}, # your bar's entry (pinned, or citing the template's) "check": {"decision": "ALLOW", "subject": "try-me", "token": "mzv1.…"}, "receipt": {"receipt_id": "rcpt_…", "leaf": N}, # the release, receipted "register": {"leaf_index": N}, # your /built-on/ entry, "via vault-allocation-gate" "paste": {"fastapi": "the lines to paste at your allocation point"}, "test": {"path": "…", "content": "sixty seconds against the live record"} }copies the call above · nothing is sent until you send itthe allocation point · fastapi · pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whlfrom mizan.client import Mizan # pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl · key from ./.mizan.json m = Mizan(); bar = m.publish_bar(open("bar.txt").read(), "vault bar") # the vault's bar, one leaf, pinned v = m.check(strategy, rule=bar["ref"], payee=strategy) # signed verdict, verified offline here if v.allow: vault.allocate(strategy, amount) # your allocation step; a REFUSE allocates nothing (v.next = proof request) receipt = m.release(v, amount=amount, currency="USD", payer=vault_id, payee=strategy, bar=bar["hash"], external_ref=alloc_id)Run it in ten minutes · what it is, what comes back, how to verify
A vault allocates to a strategy only on MIZAN's signed ALLOW against the rule the vault published. Every allocation leaves a release receipt bound to the strategy that was checked. Promoted from the
pay-on-allowexample and the/allocate/allocate-check flow.What it proves. The vault's rule is on the record in its words (one leaf). Each allocation decision is a signed verdict the vault verified offline, resting on a record entry it can point to. Each allocation is receipted; anyone verifies the receipt with no call to MIZAN.
PROOF.jsoncarries the leaf indices and receipt id of the template's own last test run.What MIZAN never holds. The vault's capital, its weights, its investors, the strategy's method. MIZAN sees the rule's words, the strategy checked, and the allocation amount/refs you record (payer and payee hashed in the receipt).
The one point it touches.
allocation— the line where capital is assigned. The vault's own accounting is untouched.Ten-minute run
The run is the adopt call above. Its reply carries
paste(the lines for your fastapi allocation point) andtest(sixty seconds against the live record: ALLOW on try-me, REFUSE on a stranger). Paste, run the test, done; every entry it names recomputes against the signed head.Verify
verify the receipt · offline, the published key · three linesfrom mizan.client import verify_receipt # pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl · offline, published key, no call to MIZAN r = verify_receipt(open("receipt.json").read()) # the JSON POST /api/release returned ({receipt, signature}) assert r["ok"], r["reason"]; print("release complete:", r["receipt_id"], "leaf", r["leaf_index"])or with curl · the {receipt, signature} the release returnedcurl -s -X POST https://studio.mizan.market/api/release/receipt/verify -H 'content-type: application/json' -d @receipt.json | jq .valid
x402-seller-with-verdict
one point · releasex402 seller with verdictThe 402 payment requirement carries MIZAN's signed verdict on the payee (accepts[i].extra.mizan). A facilitator running the kit settles only when it verifies offline, bound to payTo and the rule; every settlement leaves a receipt.
- For
- x402 seller · facilitator · payer agent
- Stacks
- expressfastapishell
- Doors
- read · write · require
adopt · the one working callcurl -s -X POST https://studio.mizan.market/api/adopt -H 'content-type: application/json' \ -d '{"template": "x402-seller-with-verdict", "name": "\u2026", "what": "\u2026", "url": "https://\u2026", "stack": "express", "point": "release"}' # add -H 'authorization: Bearer $MIZAN_API_KEY' to adopt under a key you already hold; without it a key is claimed and returned once # reply { "key": "mzn_… (shown once; absent when you sent your own)", "key_hash": "…", "bar": {"ref": "req_…@1", "hash": "…", "log_index": N}, # your bar's entry (pinned, or citing the template's) "check": {"decision": "ALLOW", "subject": "try-me", "token": "mzv1.…"}, "receipt": {"receipt_id": "rcpt_…", "leaf": N}, # the release, receipted "register": {"leaf_index": N}, # your /built-on/ entry, "via x402-seller-with-verdict" "paste": {"express": "the lines to paste at your release point"}, "test": {"path": "…", "content": "sixty seconds against the live record"} }copies the call above · nothing is sent until you send itthe release point · express · npm install https://mizan.market/skill/mizan-agent-tools.tgzfrom mizan.client import Mizan, verify_verdict # pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl m = Mizan(); v = m.check(pay_to, rule=bar_ref, payee=pay_to) # SELLER: signed verdict on the payee requirement["extra"]["mizan"] = {"token": v.token, "kid": v.get("kid")} # carried in the 402 → accepts[i].extra.mizan r = verify_verdict(requirement["extra"]["mizan"]["token"], payee=requirement["payTo"], rule=bar_hash) # FACILITATOR: offline settle = r["ok"] and r["claims"]["decision"] == "ALLOW" # settle only then; afterwards m.release(v, …) → receiptRun it in ten minutes · what it is, what comes back, how to verify
The seller's 402 payment requirement carries MIZAN's signed verdict on the payee —
accepts[i].extra.mizan = {token, kid}. A facilitator running the kit settles only when that token verifies offline, is bound to thispayTo, and names this rule. Every settlement leaves a release receipt. Promoted from thex402-facilitatorandhttp-checkoutstarter kits.What it proves. The seller's rule is on the record (one leaf). Each 402 carries a verdict any payer can verify with no call to MIZAN. The facilitator never settles to a payee without a record: a stranger
payTogets HOLD and the proof request.PROOF.jsoncarries the leaf indices and receipt id of the template's own last test run.What MIZAN never holds. The payment, the wallet, the resource sold, the facilitator's books. MIZAN sees the rule's words, the payee checked, and the settlement amount/refs you record (payer and payee hashed in the receipt).
The one point it touches.
release— the facilitator's settle step. The 402 shape is x402's own; one field is added.Ten-minute run
The run is the adopt call above. Its reply carries
paste(the lines for your express release point) andtest(sixty seconds against the live record: ALLOW on try-me, REFUSE on a stranger). Paste, run the test, done; every entry it names recomputes against the signed head.Verify
verify the receipt · offline, the published key · three linesfrom mizan.client import verify_receipt # pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl · offline, published key, no call to MIZAN r = verify_receipt(open("receipt.json").read()) # the JSON POST /api/release returned ({receipt, signature}) assert r["ok"], r["reason"]; print("release complete:", r["receipt_id"], "leaf", r["leaf_index"])or with curl · the {receipt, signature} the release returnedcurl -s -X POST https://studio.mizan.market/api/release/receipt/verify -H 'content-type: application/json' -d @receipt.json | jq .valid
Every card is built from the template's own folder at publish time: its rule compiled live for its hash, its snippet, its proof leaf. Nothing on a card is a count.
The one-point integration, written for the stack you name.
Diff-ready file and test. No model in the path.
Choose a stack and the point it guards; name a rule or leave it to the template's. The reply is generated from the template library, deterministically, with your rule pinned: the file to add and the sixty-second test that runs it against the live record.
POST https://studio.mizan.market/api/adopt/plan {stack, point, rule?} → {files[], test, rule{words, hash}}. The same call is in the SDK (pip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl) as Mizan().adopt(plan=True).
The adopt call, the plan call, the folders.
- AdoptPOST https://studio.mizan.market/api/adopt {template|rule, name, what, url, stack, point}
- PlanPOST https://studio.mizan.market/api/adopt/plan {stack, point, rule?}
- SDKpip install https://mizan.market/skill/mizan_sdk-0.11.3-py3-none-any.whl · npm install https://mizan.market/skill/mizan-agent-tools.tgz
- Rules to pin or cite/rules/
- Register of apps/built-on/
- What a template shipsits rule · its snippet per stack · its sixty-second test · its own proof leaf
For agents: llms.txt · SKILL.md · the adopt tool at https://studio.mizan.market/mcp.
Next: Require →