{
"$comment": "Shared fixtures for crates/techne-sdk: the Rust test (crates/techne-sdk/tests/fixtures.rs) and the TypeScript package (sdk/src/wasm/wasm.test.mjs) must both answer `expect` for every case. Record CIDs were computed with @ipld/dag-cbor, independently of the Rust.",
"cases": [
{
"fn": "eventState",
"name": "the default composition: fields, sources, conflicts, byline, groups",
"args": {
"data": {
"uri": "at://did:plc:curator/community.lexicon.calendar.event/c1",
"cid": "bafyc",
"record": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z",
"locations": [
{
"uri": "at://did:plc:curator/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
],
"uris": [
{
"uri": "https://museum.example"
}
],
"createdAt": "t"
},
"composition": {
"byline": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"ranks": [
{
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"rank": 1
},
{
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"rank": 1
},
{
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"rank": 2
},
{
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"rank": 3
}
],
"fields": [
{
"field": "startsAt",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"conflicts": 2
},
{
"field": "name",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1"
},
{
"field": "uris",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"conflicts": 2
},
{
"field": "locations",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1"
}
]
},
"versions": [
{
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"cid": "m",
"did": "did:plc:mirror",
"name": "Backstreet Museum calendar",
"rank": 1,
"mirror": true,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"locations": [
{
"uri": "at://did:plc:mirror/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
],
"uris": [
{
"uri": "https://museum.example"
}
]
}
},
{
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"cid": "b",
"did": "did:plc:arts",
"name": "Boulder Arts calendar",
"rank": 1,
"mirror": true,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z",
"locations": [
{
"uri": "at://did:plc:arts/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
]
}
},
{
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"cid": "a",
"did": "did:plc:ana",
"name": "Ana R.",
"rank": 2,
"mirror": false,
"verdicts": [],
"verification": {
"uri": "at://did:plc:issuer/pub.techne.draft.verification/did:plc:ana"
},
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T19:00:00Z",
"uris": [
{
"uri": "https://anar.art/talks"
}
]
}
},
{
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"cid": "j",
"did": "did:plc:jt",
"handle": "jt_events",
"rank": 3,
"mirror": false,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z",
"description": " "
}
}
],
"leftOut": 1
},
"picked": null
},
"expect": {
"byline": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"fields": {
"locations": {
"from": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"value": [
{
"name": "Backstreet Museum",
"uri": "at://did:plc:curator/pub.techne.draft.place/p"
}
]
},
"name": {
"from": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"value": "Lunchtime gallery talk"
},
"startsAt": {
"conflicts": 2,
"from": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"value": "2099-10-18T18:00:00Z"
},
"uris": {
"conflicts": 2,
"from": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"value": [
{
"uri": "https://museum.example"
}
]
}
},
"leftOut": 1,
"picked": null,
"uri": "at://did:plc:curator/community.lexicon.calendar.event/c1",
"versions": [
{
"did": "did:plc:mirror",
"differs": [],
"group": "sources",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"record": {
"locations": [
{
"name": "Backstreet Museum",
"uri": "at://did:plc:mirror/pub.techne.draft.place/p"
}
],
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"uris": [
{
"uri": "https://museum.example"
}
]
},
"same": [
"locations",
"name",
"startsAt",
"uris"
],
"showing": true,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
{
"did": "did:plc:arts",
"differs": [],
"group": "sources",
"mirror": true,
"name": "Boulder Arts calendar",
"rank": 1,
"record": {
"locations": [
{
"name": "Backstreet Museum",
"uri": "at://did:plc:arts/pub.techne.draft.place/p"
}
],
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z"
},
"same": [
"locations",
"name",
"startsAt"
],
"showing": false,
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"verified": false
},
{
"did": "did:plc:ana",
"differs": [
"startsAt",
"uris"
],
"group": "verified",
"mirror": false,
"name": "Ana R.",
"rank": 2,
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T19:00:00Z",
"uris": [
{
"uri": "https://anar.art/talks"
}
]
},
"same": [
"name"
],
"showing": false,
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"verified": true
},
{
"did": "did:plc:jt",
"differs": [
"startsAt"
],
"group": "others",
"handle": "jt_events",
"mirror": false,
"rank": 3,
"record": {
"description": " ",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z"
},
"same": [
"name"
],
"showing": false,
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"verified": false
}
]
}
},
{
"fn": "eventState",
"name": "a picked version shows its own fields and byline",
"args": {
"data": {
"uri": "at://did:plc:curator/community.lexicon.calendar.event/c1",
"cid": "bafyc",
"record": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z",
"locations": [
{
"uri": "at://did:plc:curator/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
],
"uris": [
{
"uri": "https://museum.example"
}
],
"createdAt": "t"
},
"composition": {
"byline": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"ranks": [
{
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"rank": 1
},
{
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"rank": 1
},
{
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"rank": 2
},
{
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"rank": 3
}
],
"fields": [
{
"field": "startsAt",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"conflicts": 2
},
{
"field": "name",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1"
},
{
"field": "uris",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"conflicts": 2
},
{
"field": "locations",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1"
}
]
},
"versions": [
{
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"cid": "m",
"did": "did:plc:mirror",
"name": "Backstreet Museum calendar",
"rank": 1,
"mirror": true,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"locations": [
{
"uri": "at://did:plc:mirror/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
],
"uris": [
{
"uri": "https://museum.example"
}
]
}
},
{
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"cid": "b",
"did": "did:plc:arts",
"name": "Boulder Arts calendar",
"rank": 1,
"mirror": true,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z",
"locations": [
{
"uri": "at://did:plc:arts/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
]
}
},
{
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"cid": "a",
"did": "did:plc:ana",
"name": "Ana R.",
"rank": 2,
"mirror": false,
"verdicts": [],
"verification": {
"uri": "at://did:plc:issuer/pub.techne.draft.verification/did:plc:ana"
},
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T19:00:00Z",
"uris": [
{
"uri": "https://anar.art/talks"
}
]
}
},
{
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"cid": "j",
"did": "did:plc:jt",
"handle": "jt_events",
"rank": 3,
"mirror": false,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z",
"description": " "
}
}
],
"leftOut": 1
},
"picked": "at://did:plc:ana/community.lexicon.calendar.event/a1"
},
"expect": {
"byline": {
"did": "did:plc:ana",
"mirror": false,
"name": "Ana R.",
"rank": 2,
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"verified": true
},
"fields": {
"name": {
"from": {
"did": "did:plc:ana",
"mirror": false,
"name": "Ana R.",
"rank": 2,
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"verified": true
},
"value": "Lunchtime gallery talk"
},
"startsAt": {
"conflicts": 2,
"from": {
"did": "did:plc:ana",
"mirror": false,
"name": "Ana R.",
"rank": 2,
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"verified": true
},
"value": "2099-10-18T19:00:00Z"
},
"uris": {
"conflicts": 2,
"from": {
"did": "did:plc:ana",
"mirror": false,
"name": "Ana R.",
"rank": 2,
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"verified": true
},
"value": [
{
"uri": "https://anar.art/talks"
}
]
}
},
"leftOut": 1,
"picked": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"uri": "at://did:plc:curator/community.lexicon.calendar.event/c1",
"versions": [
{
"did": "did:plc:mirror",
"differs": [
"locations",
"startsAt",
"uris"
],
"group": "sources",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"record": {
"locations": [
{
"name": "Backstreet Museum",
"uri": "at://did:plc:mirror/pub.techne.draft.place/p"
}
],
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"uris": [
{
"uri": "https://museum.example"
}
]
},
"same": [
"name"
],
"showing": false,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
{
"did": "did:plc:arts",
"differs": [
"locations",
"startsAt"
],
"group": "sources",
"mirror": true,
"name": "Boulder Arts calendar",
"rank": 1,
"record": {
"locations": [
{
"name": "Backstreet Museum",
"uri": "at://did:plc:arts/pub.techne.draft.place/p"
}
],
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z"
},
"same": [
"name"
],
"showing": false,
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"verified": false
},
{
"did": "did:plc:ana",
"differs": [],
"group": "verified",
"mirror": false,
"name": "Ana R.",
"rank": 2,
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T19:00:00Z",
"uris": [
{
"uri": "https://anar.art/talks"
}
]
},
"same": [
"name",
"startsAt",
"uris"
],
"showing": true,
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"verified": true
},
{
"did": "did:plc:jt",
"differs": [
"startsAt"
],
"group": "others",
"handle": "jt_events",
"mirror": false,
"rank": 3,
"record": {
"description": " ",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z"
},
"same": [
"name"
],
"showing": false,
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"verified": false
}
]
}
},
{
"fn": "eventState",
"name": "an unknown pick shows the composition",
"args": {
"data": {
"uri": "at://did:plc:curator/community.lexicon.calendar.event/c1",
"cid": "bafyc",
"record": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z",
"locations": [
{
"uri": "at://did:plc:curator/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
],
"uris": [
{
"uri": "https://museum.example"
}
],
"createdAt": "t"
},
"composition": {
"byline": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"ranks": [
{
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"rank": 1
},
{
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"rank": 1
},
{
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"rank": 2
},
{
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"rank": 3
}
],
"fields": [
{
"field": "startsAt",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"conflicts": 2
},
{
"field": "name",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1"
},
{
"field": "uris",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"conflicts": 2
},
{
"field": "locations",
"from": "at://did:plc:mirror/community.lexicon.calendar.event/m1"
}
]
},
"versions": [
{
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"cid": "m",
"did": "did:plc:mirror",
"name": "Backstreet Museum calendar",
"rank": 1,
"mirror": true,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"locations": [
{
"uri": "at://did:plc:mirror/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
],
"uris": [
{
"uri": "https://museum.example"
}
]
}
},
{
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"cid": "b",
"did": "did:plc:arts",
"name": "Boulder Arts calendar",
"rank": 1,
"mirror": true,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z",
"locations": [
{
"uri": "at://did:plc:arts/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
]
}
},
{
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"cid": "a",
"did": "did:plc:ana",
"name": "Ana R.",
"rank": 2,
"mirror": false,
"verdicts": [],
"verification": {
"uri": "at://did:plc:issuer/pub.techne.draft.verification/did:plc:ana"
},
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T19:00:00Z",
"uris": [
{
"uri": "https://anar.art/talks"
}
]
}
},
{
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"cid": "j",
"did": "did:plc:jt",
"handle": "jt_events",
"rank": 3,
"mirror": false,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z",
"description": " "
}
}
],
"leftOut": 1
},
"picked": "at://nobody/x/1"
},
"expect": {
"byline": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"fields": {
"locations": {
"from": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"value": [
{
"name": "Backstreet Museum",
"uri": "at://did:plc:curator/pub.techne.draft.place/p"
}
]
},
"name": {
"from": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"value": "Lunchtime gallery talk"
},
"startsAt": {
"conflicts": 2,
"from": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"value": "2099-10-18T18:00:00Z"
},
"uris": {
"conflicts": 2,
"from": {
"did": "did:plc:mirror",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
"value": [
{
"uri": "https://museum.example"
}
]
}
},
"leftOut": 1,
"picked": null,
"uri": "at://did:plc:curator/community.lexicon.calendar.event/c1",
"versions": [
{
"did": "did:plc:mirror",
"differs": [],
"group": "sources",
"mirror": true,
"name": "Backstreet Museum calendar",
"rank": 1,
"record": {
"locations": [
{
"name": "Backstreet Museum",
"uri": "at://did:plc:mirror/pub.techne.draft.place/p"
}
],
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"uris": [
{
"uri": "https://museum.example"
}
]
},
"same": [
"locations",
"name",
"startsAt",
"uris"
],
"showing": true,
"uri": "at://did:plc:mirror/community.lexicon.calendar.event/m1",
"verified": false
},
{
"did": "did:plc:arts",
"differs": [],
"group": "sources",
"mirror": true,
"name": "Boulder Arts calendar",
"rank": 1,
"record": {
"locations": [
{
"name": "Backstreet Museum",
"uri": "at://did:plc:arts/pub.techne.draft.place/p"
}
],
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00Z"
},
"same": [
"locations",
"name",
"startsAt"
],
"showing": false,
"uri": "at://did:plc:arts/community.lexicon.calendar.event/b1",
"verified": false
},
{
"did": "did:plc:ana",
"differs": [
"startsAt",
"uris"
],
"group": "verified",
"mirror": false,
"name": "Ana R.",
"rank": 2,
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T19:00:00Z",
"uris": [
{
"uri": "https://anar.art/talks"
}
]
},
"same": [
"name"
],
"showing": false,
"uri": "at://did:plc:ana/community.lexicon.calendar.event/a1",
"verified": true
},
{
"did": "did:plc:jt",
"differs": [
"startsAt"
],
"group": "others",
"handle": "jt_events",
"mirror": false,
"rank": 3,
"record": {
"description": " ",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z"
},
"same": [
"name"
],
"showing": false,
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"verified": false
}
]
}
},
{
"fn": "eventState",
"name": "one version and no composition: everything is from it",
"args": {
"data": {
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"cid": "j",
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z",
"description": " "
},
"versions": [
{
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"cid": "j",
"did": "did:plc:jt",
"handle": "jt_events",
"rank": 3,
"mirror": false,
"verdicts": [],
"record": {
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z",
"description": " "
}
}
],
"leftOut": 0
},
"picked": null
},
"expect": {
"byline": {
"did": "did:plc:jt",
"handle": "jt_events",
"mirror": false,
"rank": 3,
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"verified": false
},
"fields": {
"name": {
"from": {
"did": "did:plc:jt",
"handle": "jt_events",
"mirror": false,
"rank": 3,
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"verified": false
},
"value": "Lunchtime gallery talk"
},
"startsAt": {
"from": {
"did": "did:plc:jt",
"handle": "jt_events",
"mirror": false,
"rank": 3,
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"verified": false
},
"value": "2099-10-17T18:00:00Z"
}
},
"leftOut": 0,
"picked": null,
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"versions": [
{
"did": "did:plc:jt",
"differs": [],
"group": "others",
"handle": "jt_events",
"mirror": false,
"rank": 3,
"record": {
"description": " ",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-17T18:00:00Z"
},
"same": [
"name",
"startsAt"
],
"showing": true,
"uri": "at://did:plc:jt/community.lexicon.calendar.event/j1",
"verified": false
}
]
}
},
{
"fn": "comparable",
"name": "a datetime is its instant",
"args": {
"field": "startsAt",
"value": " 2099-10-18T18:00:00.000Z"
},
"expect": 4096029600000
},
{
"fn": "comparable",
"name": "the same instant written another way",
"args": {
"field": "startsAt",
"value": "2099-10-18T20:00:00+02:00"
},
"expect": 4096029600000
},
{
"fn": "comparable",
"name": "strings are trimmed",
"args": {
"field": "name",
"value": " Talk "
},
"expect": "Talk"
},
{
"fn": "comparable",
"name": "an event's places by what they say, not which copy",
"args": {
"field": "locations",
"value": [
{
"uri": "at://did:plc:mirror/pub.techne.draft.place/p",
"name": "Backstreet Museum"
}
]
},
"expect": [
{
"name": "Backstreet Museum"
}
]
},
{
"fn": "comparable",
"name": "a record uri outside locations still counts",
"args": {
"field": "uris",
"value": [
{
"uri": "at://did:plc:x/c/1"
}
]
},
"expect": [
{
"uri": "at://did:plc:x/c/1"
}
]
},
{
"fn": "validate",
"name": "a valid event",
"args": {
"collection": "community.lexicon.calendar.event",
"body": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"mode": "community.lexicon.calendar.event#inperson",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"expect": {
"problems": [],
"publicHome": true,
"valid": true
}
},
{
"fn": "validate",
"name": "an event without a name",
"args": {
"collection": "community.lexicon.calendar.event",
"body": {
"$type": "community.lexicon.calendar.event",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"expect": {
"problems": [
"name: required"
],
"publicHome": true,
"valid": false
}
},
{
"fn": "validate",
"name": "a collection with no lexicon",
"args": {
"collection": "x.test.unknown",
"body": {}
},
"expect": {
"problems": [
"x.test.unknown: no record lexicon"
],
"publicHome": false,
"valid": false
}
},
{
"fn": "decide",
"name": "a source record: anyone may publish one",
"args": {
"collection": "community.lexicon.calendar.event",
"author": "did:plc:ana00000000000000000000",
"rkey": "3lversion000a",
"body": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"mode": "community.lexicon.calendar.event#inperson",
"createdAt": "2026-10-18T18:00:00.000Z"
},
"claims": {}
},
"expect": {
"decision": "valid"
}
},
{
"fn": "decide",
"name": "a sameAs by a rule the root vouches for (credential chain)",
"args": {
"collection": "pub.techne.draft.sameAs",
"author": "did:plc:rulededupe0000000000000",
"rkey": "3lversion000a",
"body": {
"$type": "pub.techne.draft.sameAs",
"subject": {
"uri": "at://did:plc:ana00000000000000000000/community.lexicon.calendar.event/3lperson0000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"other": {
"uri": "at://did:plc:stranger000000000000000/community.lexicon.calendar.event/3lother00000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"createdAt": "2026-10-18T18:00:00.000Z"
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "dedupe",
"writes": [
"pub.techne.draft.sameAs"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/dedupebinding00000000000",
"cid": "bafyreihjd5euxkqvze4snh6qdlncxctlgqpcecjgoobn66bomp2kg7wcva",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:rulededupe0000000000000",
"record": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/dedupebinding00000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"decision": "valid"
}
},
{
"fn": "decide",
"name": "a sameAs by an account nobody vouches for",
"args": {
"collection": "pub.techne.draft.sameAs",
"author": "did:plc:stranger000000000000000",
"rkey": "3lversion000a",
"body": {
"$type": "pub.techne.draft.sameAs",
"subject": {
"uri": "at://did:plc:ana00000000000000000000/community.lexicon.calendar.event/3lperson0000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"other": {
"uri": "at://did:plc:stranger000000000000000/community.lexicon.calendar.event/3lother00000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"createdAt": "2026-10-18T18:00:00.000Z"
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "dedupe",
"writes": [
"pub.techne.draft.sameAs"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/dedupebinding00000000000",
"cid": "bafyreihjd5euxkqvze4snh6qdlncxctlgqpcecjgoobn66bomp2kg7wcva",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:rulededupe0000000000000",
"record": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/dedupebinding00000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"decision": "invalid",
"reason": "untrusted: an assertion about others' records by an author the root does not endorse"
}
},
{
"fn": "decide",
"name": "a sameAs by the rule, without the chain records",
"args": {
"collection": "pub.techne.draft.sameAs",
"author": "did:plc:rulededupe0000000000000",
"rkey": "3lversion000a",
"body": {
"$type": "pub.techne.draft.sameAs",
"subject": {
"uri": "at://did:plc:ana00000000000000000000/community.lexicon.calendar.event/3lperson0000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"other": {
"uri": "at://did:plc:stranger000000000000000/community.lexicon.calendar.event/3lother00000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"createdAt": "2026-10-18T18:00:00.000Z"
},
"claims": {
"root": "did:plc:commonsroot000000000000"
}
},
"expect": {
"decision": "invalid",
"reason": "untrusted: an assertion about others' records by an author the root does not endorse"
}
},
{
"fn": "decide",
"name": "another app's own type, with no lexicon: not curated (P18.1)",
"args": {
"collection": "com.example.thirdparty.note",
"author": "did:plc:ana00000000000000000000",
"rkey": "3lversion000a",
"body": {
"$type": "com.example.thirdparty.note",
"text": "Honest walk"
},
"claims": {}
},
"expect": {
"decision": "invalid",
"reason": "not curated: no lexicon"
}
},
{
"fn": "verify",
"name": "a curated record by the root's curator: valid, chain verified",
"args": {
"record": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4",
"value": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"mode": "community.lexicon.calendar.event#inperson",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "dedupe",
"writes": [
"pub.techne.draft.sameAs"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/dedupebinding00000000000",
"cid": "bafyreihjd5euxkqvze4snh6qdlncxctlgqpcecjgoobn66bomp2kg7wcva",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:rulededupe0000000000000",
"record": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/dedupebinding00000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"chainVerified": true,
"problems": [],
"signer": "did:plc:curator00000000000000000",
"valid": true
}
},
{
"fn": "verify",
"name": "a tampered body: no longer its CID",
"args": {
"record": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4",
"value": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk (free beer)",
"startsAt": "2099-10-18T18:00:00.000Z",
"mode": "community.lexicon.calendar.event#inperson",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "dedupe",
"writes": [
"pub.techne.draft.sameAs"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/dedupebinding00000000000",
"cid": "bafyreihjd5euxkqvze4snh6qdlncxctlgqpcecjgoobn66bomp2kg7wcva",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:rulededupe0000000000000",
"record": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/dedupebinding00000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"chainVerified": false,
"problems": [
"cid: the body does not hash to bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
],
"signer": "did:plc:curator00000000000000000",
"valid": false
}
},
{
"fn": "verify",
"name": "a person's own record: valid, no chain",
"args": {
"record": {
"uri": "at://did:plc:ana00000000000000000000/community.lexicon.calendar.event/3lperson0000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4",
"value": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"mode": "community.lexicon.calendar.event#inperson",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "dedupe",
"writes": [
"pub.techne.draft.sameAs"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/dedupebinding00000000000",
"cid": "bafyreihjd5euxkqvze4snh6qdlncxctlgqpcecjgoobn66bomp2kg7wcva",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:rulededupe0000000000000",
"record": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/dedupebinding00000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"chainVerified": false,
"problems": [],
"signer": "did:plc:ana00000000000000000000",
"valid": true
}
},
{
"fn": "verify",
"name": "an invalid body",
"args": {
"record": {
"uri": "at://did:plc:ana00000000000000000000/community.lexicon.calendar.event/3lnameless00a",
"cid": "bafyreidku25rkmydlvtfdkduvgxquoly5s34x4wv6dg4ysj6gacptbmkba",
"value": {
"$type": "community.lexicon.calendar.event",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "dedupe",
"writes": [
"pub.techne.draft.sameAs"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/dedupebinding00000000000",
"cid": "bafyreihjd5euxkqvze4snh6qdlncxctlgqpcecjgoobn66bomp2kg7wcva",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:rulededupe0000000000000",
"record": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/dedupebinding00000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"chainVerified": false,
"problems": [
"name: required"
],
"signer": "did:plc:ana00000000000000000000",
"valid": false
}
},
{
"fn": "verify",
"name": "an edited declaration breaks the curator's chain",
"args": {
"record": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4",
"value": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"mode": "community.lexicon.calendar.event#inperson",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance",
"pub.techne.draft.verification"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"chainVerified": false,
"problems": [],
"signer": "did:plc:curator00000000000000000",
"valid": true
}
},
{
"fn": "verify",
"name": "a revoked credential breaks the curator's chain",
"args": {
"record": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4",
"value": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"mode": "community.lexicon.calendar.event#inperson",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "dedupe",
"writes": [
"pub.techne.draft.sameAs"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/dedupebinding00000000000",
"cid": "bafyreihjd5euxkqvze4snh6qdlncxctlgqpcecjgoobn66bomp2kg7wcva",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:rulededupe0000000000000",
"record": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/dedupebinding00000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"cid": "bafyreib5mwtkyqy7tdps24urhqd5ktqcpld4xblfsbe7lptlos6qzvmuou",
"value": {
"$type": "pub.techne.draft.credentialRevocation",
"reason": "retired",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"chainVerified": false,
"problems": [],
"signer": "did:plc:curator00000000000000000",
"valid": true
}
},
{
"fn": "verify",
"name": "no root: nothing verifies a chain",
"args": {
"record": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4",
"value": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2099-10-18T18:00:00.000Z",
"mode": "community.lexicon.calendar.event#inperson",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"records": [
{
"uri": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "curator",
"writes": [
"community.lexicon.calendar.event",
"pub.techne.draft.provenance"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/curatorbinding0000000000",
"cid": "bafyreiccpc4a6hbrx7zajklmedz6qxdxqsdfk6jbqhfd4ts4t5pdnuu4xy",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:curator00000000000000000",
"record": "at://did:plc:curator00000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreicsluhopmzj4o767bjnf2htbt22mqxsfyry3fegd7m3a7zcrswqjy",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/curatorbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "dedupe",
"writes": [
"pub.techne.draft.sameAs"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credential/dedupebinding00000000000",
"cid": "bafyreihjd5euxkqvze4snh6qdlncxctlgqpcecjgoobn66bomp2kg7wcva",
"value": {
"$type": "pub.techne.draft.credential",
"subject": "did:plc:rulededupe0000000000000",
"record": "at://did:plc:rulededupe0000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigbgl6zyccsbbx4ibiha24cv5mpj5i2vdlzjsgyvjrrvmc7lecjve",
"issuer": "did:plc:commonsroot000000000000",
"notBefore": "2026-10-18T18:00:00.000Z",
"notAfter": "2126-10-18T18:00:00.000Z",
"revocation": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/dedupebinding00000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
}
}
]
}
},
"expect": {
"chainVerified": false,
"problems": [],
"signer": "did:plc:curator00000000000000000",
"valid": true
}
},
{
"fn": "put",
"name": "private first, public last; a derived TID, a given key, a lexicon key",
"args": {
"repo": "did:plc:alicealicealicealicealice",
"now": 1792972800,
"records": [
{
"record": {
"$type": "community.lexicon.calendar.event",
"name": "Lunchtime gallery talk",
"startsAt": "2026-10-25T18:00:00.000Z",
"createdAt": "2026-10-19T12:00:00.000Z"
}
},
{
"record": {
"$type": "pub.techne.draft.event.detail",
"event": {
"uri": "at://did:plc:alicealicealicealicealice/community.lexicon.calendar.event/3m3ndp7kfqo22",
"cid": "bafyreidykglsfhoixmivffc5uwhcgshx4j465xwqntbmu43nb2dzqwfvae"
},
"attendeeDetails": "Door code 4412",
"createdAt": "2026-10-19T12:00:00.000Z"
},
"rkey": "3m3ndp7kfqo22",
"space": "at://did:plc:alicealicealicealicealice/pub.techne.draft.space.event.detail/3m3ndp7kfqo22"
},
{
"record": {
"$type": "pub.techne.draft.attentionPrefs",
"createdAt": "2026-10-19T12:00:00.000Z"
}
}
]
},
"expect": [
{
"cid": "bafyreiedccs3hdzkkaghark2pubkit4qo7ob2yeuf4b7x2qfhequpckpbq",
"collection": "pub.techne.draft.event.detail",
"lexicon": true,
"private": true,
"record": {
"$type": "pub.techne.draft.event.detail",
"attendeeDetails": "Door code 4412",
"createdAt": "2026-10-19T12:00:00.000Z",
"event": {
"cid": "bafyreidykglsfhoixmivffc5uwhcgshx4j465xwqntbmu43nb2dzqwfvae",
"uri": "at://did:plc:alicealicealicealicealice/community.lexicon.calendar.event/3m3ndp7kfqo22"
}
},
"rkey": "3m3ndp7kfqo22",
"space": "at://did:plc:alicealicealicealicealice/pub.techne.draft.space.event.detail/3m3ndp7kfqo22",
"uri": "at://did:plc:alicealicealicealicealice/pub.techne.draft.event.detail/3m3ndp7kfqo22"
},
{
"cid": "bafyreiel24uok2chg5dacqmhhorq2cd2nvsgfleoc3n7723h4utqgp6suu",
"collection": "pub.techne.draft.attentionPrefs",
"lexicon": true,
"private": true,
"record": {
"$type": "pub.techne.draft.attentionPrefs",
"createdAt": "2026-10-19T12:00:00.000Z"
},
"rkey": "self",
"uri": "at://did:plc:alicealicealicealicealice/pub.techne.draft.attentionPrefs/self"
},
{
"cid": "bafyreict2lq3wpf5keov4h3cdhc7uoq53eeby7dzwocb6ah6nlqs4w7u54",
"collection": "community.lexicon.calendar.event",
"lexicon": true,
"private": false,
"record": {
"$type": "community.lexicon.calendar.event",
"createdAt": "2026-10-19T12:00:00.000Z",
"name": "Lunchtime gallery talk",
"startsAt": "2026-10-25T18:00:00.000Z"
},
"rkey": "3mya32hw622ym",
"uri": "at://did:plc:alicealicealicealicealice/community.lexicon.calendar.event/3mya32hw622ym"
}
]
},
{
"fn": "putPlan",
"name": "deletes placed like writes, in the order they go out (public, then private); by uri or by key; with a write",
"args": {
"repo": "did:plc:alicealicealicealicealice",
"now": 1792972800,
"records": [
{
"record": {
"$type": "pub.techne.draft.attentionPrefs",
"createdAt": "2026-10-19T12:00:00.000Z"
}
}
],
"deletes": [
{
"uri": "at://did:plc:alicealicealicealicealice/community.lexicon.calendar.event/3m3ndp7kfqo22"
},
{
"collection": "pub.techne.draft.event.detail",
"rkey": "3m3ndp7kfqo22",
"space": "at://did:plc:alicealicealicealicealice/pub.techne.draft.space.event.detail/3m3ndp7kfqo22"
}
]
},
"expect": {
"writes": [
{
"cid": "bafyreiel24uok2chg5dacqmhhorq2cd2nvsgfleoc3n7723h4utqgp6suu",
"collection": "pub.techne.draft.attentionPrefs",
"lexicon": true,
"private": true,
"record": {
"$type": "pub.techne.draft.attentionPrefs",
"createdAt": "2026-10-19T12:00:00.000Z"
},
"rkey": "self",
"uri": "at://did:plc:alicealicealicealicealice/pub.techne.draft.attentionPrefs/self"
}
],
"deletes": [
{
"uri": "at://did:plc:alicealicealicealicealice/community.lexicon.calendar.event/3m3ndp7kfqo22",
"collection": "community.lexicon.calendar.event",
"rkey": "3m3ndp7kfqo22",
"private": false
},
{
"uri": "at://did:plc:alicealicealicealicealice/pub.techne.draft.event.detail/3m3ndp7kfqo22",
"collection": "pub.techne.draft.event.detail",
"rkey": "3m3ndp7kfqo22",
"space": "at://did:plc:alicealicealicealicealice/pub.techne.draft.space.event.detail/3m3ndp7kfqo22",
"private": true
}
]
}
},
{
"fn": "put",
"name": "an old name past its last day has no lexicon (now 2027-10-27; the old attentionPrefs name closes 2027-10-25)",
"args": {
"repo": "did:plc:alicealicealicealicealice",
"now": 1824595200,
"records": [
{
"record": {
"$type": "coop.lexicon.draft.attentionPrefs",
"createdAt": "2026-10-19T12:00:00.000Z"
}
}
]
},
"expect": [
{
"cid": "bafyreihtq4ab6alx46m3iq4qdcrfskibek5i5gjteyau3v3t4olzgc4gau",
"collection": "coop.lexicon.draft.attentionPrefs",
"lexicon": false,
"private": true,
"record": {
"$type": "coop.lexicon.draft.attentionPrefs",
"createdAt": "2026-10-19T12:00:00.000Z"
},
"rkey": "self",
"uri": "at://did:plc:alicealicealicealicealice/coop.lexicon.draft.attentionPrefs/self"
}
]
},
{
"fn": "putPlan",
"name": "an old name past its last day has no lexicon in a putPlan too (now 2027-10-27)",
"args": {
"repo": "did:plc:alicealicealicealicealice",
"now": 1824595200,
"records": [
{
"record": {
"$type": "coop.lexicon.draft.attentionPrefs",
"createdAt": "2026-10-19T12:00:00.000Z"
}
}
],
"deletes": []
},
"expect": {
"deletes": [],
"writes": [
{
"cid": "bafyreihtq4ab6alx46m3iq4qdcrfskibek5i5gjteyau3v3t4olzgc4gau",
"collection": "coop.lexicon.draft.attentionPrefs",
"lexicon": false,
"private": true,
"record": {
"$type": "coop.lexicon.draft.attentionPrefs",
"createdAt": "2026-10-19T12:00:00.000Z"
},
"rkey": "self",
"uri": "at://did:plc:alicealicealicealicealice/coop.lexicon.draft.attentionPrefs/self"
}
]
}
},
{
"fn": "verify",
"name": "operator (option b): a verdict vouched by an operator's credential, first seen inside its period",
"args": {
"record": {
"uri": "at://did:plc:labeler0000000000000000/pub.techne.draft.verdict/3lverdict000a",
"cid": "bafyreiavwfmemje6tild5s3uva4clljdkokxqg6ga463ugegttuabcs2c4",
"value": {
"$type": "pub.techne.draft.verdict",
"subject": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"values": [
"spam"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:labeler0000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigkq4a4vm2y3juz2n4dyulk3tcrpmlgqujs4uoukz2udn4bymqzai",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "spam labeler",
"writes": [
"pub.techne.draft.verdict"
],
"labels": [
"spam"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:operator000000000000000/pub.techne.draft.credential/labelerbinding0000000000",
"cid": "bafyreif7tlkkds55r6bz2bcfcdmo5k6kmwr6a747sz7rufyhndnuzmrivy",
"value": {
"$type": "pub.techne.draft.credential",
"issuer": "did:plc:operator000000000000000",
"subject": "did:plc:labeler0000000000000000",
"record": "at://did:plc:labeler0000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigkq4a4vm2y3juz2n4dyulk3tcrpmlgqujs4uoukz2udn4bymqzai",
"revocation": "at://did:plc:operator000000000000000/pub.techne.draft.credentialRevocation/labelerbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
},
"firstSeen": "2026-10-20T00:00:00.000Z"
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.operator/did:plc:operator000000000000000",
"cid": "bafyreih4zpxumawjxxasprjyzv2p5uwqvwai2lz6d6jql5cfljb5mesnua",
"value": {
"$type": "pub.techne.draft.operator",
"subject": "did:plc:operator000000000000000",
"validFrom": "2026-10-01T00:00:00.000Z",
"validUntil": "2026-11-01T00:00:00.000Z",
"createdAt": "2026-10-01T00:00:00.000Z"
}
}
]
}
},
"expect": {
"valid": true,
"signer": "did:plc:labeler0000000000000000",
"chainVerified": true,
"problems": []
}
},
{
"fn": "verify",
"name": "operator (option b): the operator's credential first seen after its period ended",
"args": {
"record": {
"uri": "at://did:plc:labeler0000000000000000/pub.techne.draft.verdict/3lverdict000a",
"cid": "bafyreiavwfmemje6tild5s3uva4clljdkokxqg6ga463ugegttuabcs2c4",
"value": {
"$type": "pub.techne.draft.verdict",
"subject": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"values": [
"spam"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:labeler0000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigkq4a4vm2y3juz2n4dyulk3tcrpmlgqujs4uoukz2udn4bymqzai",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "spam labeler",
"writes": [
"pub.techne.draft.verdict"
],
"labels": [
"spam"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:operator000000000000000/pub.techne.draft.credential/labelerbinding0000000000",
"cid": "bafyreif7tlkkds55r6bz2bcfcdmo5k6kmwr6a747sz7rufyhndnuzmrivy",
"value": {
"$type": "pub.techne.draft.credential",
"issuer": "did:plc:operator000000000000000",
"subject": "did:plc:labeler0000000000000000",
"record": "at://did:plc:labeler0000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigkq4a4vm2y3juz2n4dyulk3tcrpmlgqujs4uoukz2udn4bymqzai",
"revocation": "at://did:plc:operator000000000000000/pub.techne.draft.credentialRevocation/labelerbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
},
"firstSeen": "2026-11-05T00:00:00.000Z"
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.operator/did:plc:operator000000000000000",
"cid": "bafyreih4zpxumawjxxasprjyzv2p5uwqvwai2lz6d6jql5cfljb5mesnua",
"value": {
"$type": "pub.techne.draft.operator",
"subject": "did:plc:operator000000000000000",
"validFrom": "2026-10-01T00:00:00.000Z",
"validUntil": "2026-11-01T00:00:00.000Z",
"createdAt": "2026-10-01T00:00:00.000Z"
}
}
]
}
},
"expect": {
"valid": false,
"signer": "did:plc:labeler0000000000000000",
"chainVerified": false,
"problems": [
"untrusted: no commons credential from a trusted issuer vouches for the author's declaration (revoked, issued outside an operator's period, or the declaration changed since)"
]
}
},
{
"fn": "verify",
"name": "operator (option b): an operator's credential with no operator record from the root",
"args": {
"record": {
"uri": "at://did:plc:labeler0000000000000000/pub.techne.draft.verdict/3lverdict000a",
"cid": "bafyreiavwfmemje6tild5s3uva4clljdkokxqg6ga463ugegttuabcs2c4",
"value": {
"$type": "pub.techne.draft.verdict",
"subject": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"values": [
"spam"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:labeler0000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigkq4a4vm2y3juz2n4dyulk3tcrpmlgqujs4uoukz2udn4bymqzai",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "spam labeler",
"writes": [
"pub.techne.draft.verdict"
],
"labels": [
"spam"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:operator000000000000000/pub.techne.draft.credential/labelerbinding0000000000",
"cid": "bafyreif7tlkkds55r6bz2bcfcdmo5k6kmwr6a747sz7rufyhndnuzmrivy",
"value": {
"$type": "pub.techne.draft.credential",
"issuer": "did:plc:operator000000000000000",
"subject": "did:plc:labeler0000000000000000",
"record": "at://did:plc:labeler0000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigkq4a4vm2y3juz2n4dyulk3tcrpmlgqujs4uoukz2udn4bymqzai",
"revocation": "at://did:plc:operator000000000000000/pub.techne.draft.credentialRevocation/labelerbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
},
"firstSeen": "2026-10-20T00:00:00.000Z"
}
]
}
},
"expect": {
"valid": false,
"signer": "did:plc:labeler0000000000000000",
"chainVerified": false,
"problems": [
"untrusted: no commons credential from a trusted issuer vouches for the author's declaration (revoked, issued outside an operator's period, or the declaration changed since)"
]
}
},
{
"fn": "verify",
"name": "operator (option b): the root revokes the operator's credential at the same rkey in its own repo",
"args": {
"record": {
"uri": "at://did:plc:labeler0000000000000000/pub.techne.draft.verdict/3lverdict000a",
"cid": "bafyreiavwfmemje6tild5s3uva4clljdkokxqg6ga463ugegttuabcs2c4",
"value": {
"$type": "pub.techne.draft.verdict",
"subject": {
"uri": "at://did:plc:curator00000000000000000/community.lexicon.calendar.event/3lcurated000a",
"cid": "bafyreihqmazckfmotcirl5zpueuxfz2qal5zcl2tpn22ilgs6gvmirzsx4"
},
"values": [
"spam"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
"claims": {
"root": "did:plc:commonsroot000000000000",
"records": [
{
"uri": "at://did:plc:labeler0000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigkq4a4vm2y3juz2n4dyulk3tcrpmlgqujs4uoukz2udn4bymqzai",
"value": {
"$type": "pub.techne.draft.publisher",
"name": "spam labeler",
"writes": [
"pub.techne.draft.verdict"
],
"labels": [
"spam"
],
"createdAt": "2026-10-18T18:00:00.000Z"
}
},
{
"uri": "at://did:plc:operator000000000000000/pub.techne.draft.credential/labelerbinding0000000000",
"cid": "bafyreif7tlkkds55r6bz2bcfcdmo5k6kmwr6a747sz7rufyhndnuzmrivy",
"value": {
"$type": "pub.techne.draft.credential",
"issuer": "did:plc:operator000000000000000",
"subject": "did:plc:labeler0000000000000000",
"record": "at://did:plc:labeler0000000000000000/pub.techne.draft.publisher/self",
"cid": "bafyreigkq4a4vm2y3juz2n4dyulk3tcrpmlgqujs4uoukz2udn4bymqzai",
"revocation": "at://did:plc:operator000000000000000/pub.techne.draft.credentialRevocation/labelerbinding0000000000",
"createdAt": "2026-10-18T18:00:00.000Z"
},
"firstSeen": "2026-10-20T00:00:00.000Z"
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.operator/did:plc:operator000000000000000",
"cid": "bafyreih4zpxumawjxxasprjyzv2p5uwqvwai2lz6d6jql5cfljb5mesnua",
"value": {
"$type": "pub.techne.draft.operator",
"subject": "did:plc:operator000000000000000",
"validFrom": "2026-10-01T00:00:00.000Z",
"validUntil": "2026-11-01T00:00:00.000Z",
"createdAt": "2026-10-01T00:00:00.000Z"
}
},
{
"uri": "at://did:plc:commonsroot000000000000/pub.techne.draft.credentialRevocation/labelerbinding0000000000",
"cid": "bafyreibpadunrlw2otgosgrtmae3jwd5yp3jfy5s3bbcq4tip3bnls6cjm",
"value": {
"$type": "pub.techne.draft.credentialRevocation",
"createdAt": "2026-10-25T00:00:00.000Z"
}
}
]
}
},
"expect": {
"valid": false,
"signer": "did:plc:labeler0000000000000000",
"chainVerified": false,
"problems": [
"untrusted: no commons credential from a trusted issuer vouches for the author's declaration (revoked, issued outside an operator's period, or the declaration changed since)"
]
}
}
]
}