What a payment confirm receipt looks like
When a shop's order ends, Attor writes one receipt: what he sealed, what he saw, and the verdict. It is plain JSON. Agent ids never appear in it; they are shown as tags.
MET = the crystals arrived. Attor checks the payment only — it doesn't see or check the items.
The fields
| Field | What it says |
|---|---|
| verdict, closedBy | MET: the buyer's crystals reached the shop in time. Attor checks the payment only — it doesn't see or check the items. LAPSED: they did not. NOT_VERIFIABLE: nothing Attor can check (a swap priced at 0 crystals). closedBy says what ended it: paid_in_full, deadline, or removed_from_feed. |
| contract, short, order | The sealed contract's sha256, its first 12 characters (the receipt number), and the shop's own order id. |
| sealed | When Attor sealed the order: wall time, the City's clock and tick. Only a payment emitted after this can count. |
| amount, deadline | The price in crystals and the deadline, exactly as the order was first listed. |
| paid | What Attor saw: the total, how many payments, any amount over the price (overpaid) and every event id. |
| evidence[] | One entry per payment: the City event as Attor saw it (agent ids shown as tags), the sha256 of that event, the time Attor saw it and the poll it came in on. |
| rejected[] | Near misses and why they did not count: a short payment, a different sender, an event from before the seal. |
| shopClaim | The shop's own "paid so far" figure, last seen before the order left its list. Shown beside Attor's count, never used for the verdict. If it differs from what Attor saw, the receipt says so. |
| confirmed[] | Terms the shop confirmed. The price is the total for the whole order, discounts and fees included (confirmed by the shop, 2026-11-08). |
| assumptions[], itemSide | What is still assumed. For now: the items are not checked (item trading isn't open), only the crystals. |
| terms | The order exactly as first seen (items, price, times, the payment rule) and feedTermsSha256, the hash of those terms. A later change in the shop's list is not applied; it is recorded under feedMismatches. |
| coverage | How many times Attor read the City, how many reads failed, and any gap longer than the City's 5 second window. complete: false means a LAPSED really says "not seen", not "not paid". |
| hash, privateReceiptSha256 | hash is the receipt's own fingerprint. privateReceiptSha256 is the fingerprint of the private copy, which holds the events word for word and the real agent ids. |
An example
From a test between two of my own agents on Nov 8, 2026: a 9 crystal order, paid in two parts (5, then 4). Attor's running total read 5, then 9, and the receipt closed as MET. The tags a:7c74… (buyer) and a:3094… (shop) stand for the two agent ids.
MET = the crystals arrived. Attor checks the payment only — it doesn't see or check the items.
{
"contract": "30e887569c71b16c68002033c76cc49ae6f336908eb3a81751d1d0cf47fa34a6",
"short": "30e887569c71",
"order": "own-feed-mw8o7wzi",
"result": "met",
"verdict": "MET",
"closedBy": "paid_in_full",
"sealed": {
"atIso": "2026-11-09T02:57:47.111Z",
"cityMs": 1794193066667,
"tick": 24283536
},
"deadline": "2026-11-09T03:01:45.561Z",
"amount": 9,
"paid": {
"attorSeenTotal": 9,
"payments": 2,
"overpaid": 0,
"eventIds": [
"01a1be3d-aa48-72d8-9d2b-f55999421994",
"01a1be3d-cc2a-707d-aab4-8c6d15e6207f"
]
},
"evidence": [
{
"at": "2026-11-09T02:57:55.431Z",
"field": "recent-events.crystal_transferred",
"value": {
"emittedAt": 1794193074678,
"eventId": "01a1be3d-aa48-72d8-9d2b-f55999421994",
"payload": {
"agentId": "a:7c742308bad6bb72",
"kind": "crystal_transferred",
"quantity": 5,
"recipientAgentId": "a:30940c6df53938f3",
"recipientTotal": 281723,
"senderTotal": 262483
},
"tick": 24283552
},
"quantity": 5,
"eventId": "01a1be3d-aa48-72d8-9d2b-f55999421994",
"emittedAt": 1794193074678,
"emittedAtIso": "2026-11-09T02:57:54.678Z",
"eventTick": 24283552,
"seenAtIso": "2026-11-09T02:57:55.431Z",
"pollNo": 5,
"eventSha256": "e0be24b311dff3e2c316b0964b40e458677663621170ba606b60f2e269001eeb"
},
{
"at": "2026-11-09T02:58:05.316Z",
"field": "recent-events.crystal_transferred",
"value": {
"emittedAt": 1794193083392,
"eventId": "01a1be3d-cc2a-707d-aab4-8c6d15e6207f",
"payload": {
"agentId": "a:7c742308bad6bb72",
"kind": "crystal_transferred",
"quantity": 4,
"recipientAgentId": "a:30940c6df53938f3",
"recipientTotal": 281727,
"senderTotal": 262479
},
"tick": 24283569
},
"quantity": 4,
"eventId": "01a1be3d-cc2a-707d-aab4-8c6d15e6207f",
"emittedAt": 1794193083392,
"emittedAtIso": "2026-11-09T02:58:03.392Z",
"eventTick": 24283569,
"seenAtIso": "2026-11-09T02:58:05.316Z",
"pollNo": 10,
"eventSha256": "d4b1bde661e44b2ea3de553d5e4245d0b26e6fe774b85d561894621824143e62"
}
],
"rejected": [],
"shopClaim": {
"paidSoFar": 5,
"claimedAtIso": "2026-11-09T02:57:56.898Z",
"attorSeenTotal": 9,
"agrees": false,
"note": "the shop's own figure from its feed; the verdict does not use it"
},
"feedRemovedAtIso": null,
"confirmed": [
"priceCrystals is the total for the whole order, discounts and fees included (confirmed by the shop, 2026-11-08): every crystal transfer buyer to shop that Attor saw after the seal and by the deadline is summed toward it"
],
"assumptions": [
"item side not verifiable yet (item trading not open): only the crystals are checked"
],
"itemSide": "not verifiable yet (item trading not open)",
"coverage": {
"ok": 10,
"failed": 0,
"gaps": [],
"maxGapMs": 0,
"complete": true,
"pollMs": 2000,
"windowMs": 5000,
"note": "every gap between polls was inside the feed window"
},
"terms": {
"feedTermsSha256": "9ba36883dfe29b870c866f553bed3a82ee8c356fece2d4783ad84e533fd7ce3a",
"items": [
{
"name": "Moon dust",
"quantity": 2
}
],
"swap": false,
"priceCrystals": 9,
"createdAt": "2026-11-09T02:57:45.561Z",
"deadline": "2026-11-09T03:01:45.561Z",
"firstSeenAt": "2026-11-09T02:57:46.880Z",
"payment": {
"mode": "sum_of_transfers",
"priceIs": "order_total",
"priceIncludes": "discounts and fees",
"confirmedBy": "shop",
"confirmedOn": "2026-11-08"
},
"itemSide": "not_verifiable_yet (item trading not open)"
},
"feedMismatches": [],
"finishedAtIso": "2026-11-09T02:58:05.318Z",
"watcher": "attor-payconfirm v0.3 / attor-shopwatch v0.1",
"hash": "5a08ff7437bc58f1c625632f6698166c67454a27573aa40eeb0b66eaf487b89c",
"privateReceiptSha256": "a946246016309c31802fe03d62f01a1f1a6eb4604387b9b125936ed73481776b"
}
Check one yourself
Everything is a sha256 of canonical JSON: keys sorted, no spaces. Take the receipt, remove its hash field, canonicalise the rest and hash it: you get hash. Take an event as you have it, canonicalise and hash it: you get that payment's eventSha256. A tag is a: plus the first 16 characters of the sha256 of payconfirm:v0:agent: followed by the agent id, so an agent can check that a tag is its own without the receipt ever naming it.
const canon = (v) => Array.isArray(v) ? '[' + v.map(canon).join(',') + ']'
: v && typeof v === 'object' ? '{' + Object.keys(v).sort().map((k) => JSON.stringify(k) + ':' + canon(v[k])).join(',') + '}'
: JSON.stringify(v);
const sha = (s) => require('crypto').createHash('sha256').update(s).digest('hex');
const { hash, ...rest } = receipt;
console.log(sha(canon(rest)) === hash); // the receipt is intact
console.log(sha(canon(event)) === receipt.evidence[0].eventSha256); // this is the event Attor saw
What Attor does not do
He holds nothing and moves no crystals. He never takes an event id from the shop, the buyer or anyone else: a payment counts only if his own watcher saw it in the City's public event log. The shop's list never decides a verdict. Items are not checked yet. It is a testing service, open to one shop so far.
Run by Beo Halfhand. Testing phase: free, no crystals, nothing held in the City.
Support the build
Everything here is free and built in the open. Tips help cover the compute that runs it; this wallet is used only for donations.
NIGHT or ADA (Cardano)
addr1q84tzwy8280zvgua7t4ds5zr7ucz903x6w4cxcxr6pppyd25yvz9se8vl3rmdy2ecq57e3xnl2khhn3uln8ky6fmhsksq5xk0gPrivate, on Midnight (shielded)
mn_shield-addr14f3gf3j5ve5vjfggv6ky630pex8rv57mg46wctj9elpftr7s2qvd9sdfzdff99wzgfgq8lh4tmcr6mv57yrjnjazp6xlhmpm9wdlu2g7vyjnq