@openvtc/trust-tasks 0.18.3 → 0.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +193 -0
- package/dist/_shared/components.d.ts +56 -0
- package/dist/_shared/components.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/process-attestation/0.1/payload.d.ts +1190 -0
- package/dist/process-attestation/0.1/payload.d.ts.map +1 -0
- package/dist/process-attestation/0.1/payload.js +660 -0
- package/dist/process-attestation/0.1/payload.js.map +1 -0
- package/dist/rooms/_shared/0.1/room.d.ts +1 -1
- package/dist/rooms/_shared/0.1/room.d.ts.map +1 -1
- package/dist/rooms/create/0.1/payload.d.ts +58 -2
- package/dist/rooms/create/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/create/0.1/payload.js +32 -0
- package/dist/rooms/create/0.1/payload.js.map +1 -1
- package/dist/rooms/epoch/commits/0.1/payload.d.ts +506 -0
- package/dist/rooms/epoch/commits/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/epoch/commits/0.1/payload.js +268 -0
- package/dist/rooms/epoch/commits/0.1/payload.js.map +1 -0
- package/dist/rooms/epoch/mint/0.1/payload.d.ts +20 -0
- package/dist/rooms/epoch/mint/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/epoch/mint/0.1/payload.js +5 -0
- package/dist/rooms/epoch/mint/0.1/payload.js.map +1 -1
- package/dist/rooms/epoch/prune/0.1/payload.d.ts +423 -0
- package/dist/rooms/epoch/prune/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/epoch/prune/0.1/payload.js +229 -0
- package/dist/rooms/epoch/prune/0.1/payload.js.map +1 -0
- package/dist/rooms/keys/browse/0.1/payload.d.ts +20 -0
- package/dist/rooms/keys/browse/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/browse/0.1/payload.js +24 -0
- package/dist/rooms/keys/browse/0.1/payload.js.map +1 -1
- package/dist/rooms/keys/read/0.1/payload.d.ts +20 -0
- package/dist/rooms/keys/read/0.1/payload.d.ts.map +1 -1
- package/dist/rooms/keys/read/0.1/payload.js +24 -0
- package/dist/rooms/keys/read/0.1/payload.js.map +1 -1
- package/dist/rooms/owner/anchor/0.1/payload.d.ts +537 -0
- package/dist/rooms/owner/anchor/0.1/payload.d.ts.map +1 -0
- package/dist/rooms/owner/anchor/0.1/payload.js +291 -0
- package/dist/rooms/owner/anchor/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_shared/components.ts +56 -0
- package/src/index.ts +4 -0
- package/src/process-attestation/0.1/payload.ts +794 -0
- package/src/rooms/_shared/0.1/room.ts +1 -1
- package/src/rooms/create/0.1/payload.ts +42 -2
- package/src/rooms/epoch/commits/0.1/payload.ts +341 -0
- package/src/rooms/epoch/mint/0.1/payload.ts +15 -0
- package/src/rooms/epoch/prune/0.1/payload.ts +289 -0
- package/src/rooms/keys/browse/0.1/payload.ts +24 -0
- package/src/rooms/keys/read/0.1/payload.ts +24 -0
- package/src/rooms/owner/anchor/0.1/payload.ts +353 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/rooms/epoch/prune/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { AuthorityPresentation, Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* TODO: what the request payload of rooms/epoch/prune carries. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface RoomsEpochPrunePayload {
|
|
13
|
+
/**
|
|
14
|
+
* The room to prune.
|
|
15
|
+
*/
|
|
16
|
+
roomId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Drop every rung *below* this epoch, so the chain walks back no further than it.
|
|
19
|
+
*
|
|
20
|
+
* `minimum: 2` because pruning below epoch 1 would drop nothing and asking to is a caller that has misunderstood the direction — the chain walks backwards, and epoch 1 is where it ends.
|
|
21
|
+
*/
|
|
22
|
+
beforeEpoch: number;
|
|
23
|
+
/**
|
|
24
|
+
* Must confer `admin` at this room's scope. Not `curate`, and not `write`: pruning is not a statement about any record, and every member who can write can curate. It ends the room's ability to open a span of its own history, for everyone, which is the same class of act as advancing the epoch.
|
|
25
|
+
*/
|
|
26
|
+
presentation: AuthorityPresentation;
|
|
27
|
+
/**
|
|
28
|
+
* Why, for the room's audit trail. A prune is irreversible and unattributable after the fact — the rungs are simply gone — so the only record of intent is the one made at the time.
|
|
29
|
+
*/
|
|
30
|
+
reason?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
33
|
+
*/
|
|
34
|
+
ext?: Ext;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Success response to rooms/epoch/prune. Type https://trusttasks.org/spec/rooms/epoch/prune/0.1#response.
|
|
38
|
+
*/
|
|
39
|
+
export interface RoomsEpochPruneResponsePayload {
|
|
40
|
+
roomId: string;
|
|
41
|
+
/**
|
|
42
|
+
* How many rungs were dropped. `0` is a success: the chain already went back no further, and a caller that read it as a failure would retry an operation that has nothing left to do.
|
|
43
|
+
*/
|
|
44
|
+
pruned: number;
|
|
45
|
+
/**
|
|
46
|
+
* The lowest epoch the chain still reaches, after pruning. **Not a restatement of `beforeEpoch`**: a chain with a gap in it already stopped somewhere, and a prune below that gap changes nothing about how far back a member can actually walk. Reporting the request back would tell an operator they had achieved something they had not.
|
|
47
|
+
*/
|
|
48
|
+
earliestRung: number;
|
|
49
|
+
ext?: Ext;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
53
|
+
export type { AuthorityPresentation, Ext };
|
|
54
|
+
|
|
55
|
+
/** Trust Task type URI. */
|
|
56
|
+
export const TYPE_URI = "https://trusttasks.org/spec/rooms/epoch/prune/0.1" as const;
|
|
57
|
+
|
|
58
|
+
/** Stable alias for this specification's request payload shape. */
|
|
59
|
+
export type Payload = RoomsEpochPrunePayload;
|
|
60
|
+
|
|
61
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
62
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/rooms/epoch/prune/0.1#response" as const;
|
|
63
|
+
|
|
64
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
65
|
+
export type Response = RoomsEpochPruneResponsePayload;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* This specification's payload schema, as a value.
|
|
69
|
+
*
|
|
70
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
71
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
72
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
73
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
74
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
75
|
+
*/
|
|
76
|
+
export const PAYLOAD_SCHEMA = {
|
|
77
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
78
|
+
"$id": "https://trusttasks.org/spec/rooms/epoch/prune/0.1",
|
|
79
|
+
"title": "Rooms Epoch Prune — payload",
|
|
80
|
+
"description": "TODO: what the request payload of rooms/epoch/prune carries. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": [
|
|
84
|
+
"roomId",
|
|
85
|
+
"beforeEpoch",
|
|
86
|
+
"presentation"
|
|
87
|
+
],
|
|
88
|
+
"properties": {
|
|
89
|
+
"roomId": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "The room to prune."
|
|
92
|
+
},
|
|
93
|
+
"beforeEpoch": {
|
|
94
|
+
"type": "integer",
|
|
95
|
+
"minimum": 2,
|
|
96
|
+
"description": "Drop every rung *below* this epoch, so the chain walks back no further than it.\n\n`minimum: 2` because pruning below epoch 1 would drop nothing and asking to is a caller that has misunderstood the direction — the chain walks backwards, and epoch 1 is where it ends."
|
|
97
|
+
},
|
|
98
|
+
"presentation": {
|
|
99
|
+
"$ref": "#/$defs/AuthorityPresentation",
|
|
100
|
+
"description": "Must confer `admin` at this room's scope. Not `curate`, and not `write`: pruning is not a statement about any record, and every member who can write can curate. It ends the room's ability to open a span of its own history, for everyone, which is the same class of act as advancing the epoch."
|
|
101
|
+
},
|
|
102
|
+
"reason": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"maxLength": 512,
|
|
105
|
+
"description": "Why, for the room's audit trail. A prune is irreversible and unattributable after the fact — the rungs are simply gone — so the only record of intent is the one made at the time."
|
|
106
|
+
},
|
|
107
|
+
"ext": {
|
|
108
|
+
"$ref": "#/$defs/Ext",
|
|
109
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"$defs": {
|
|
113
|
+
"Response": {
|
|
114
|
+
"$anchor": "response",
|
|
115
|
+
"type": "object",
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"required": [
|
|
118
|
+
"roomId",
|
|
119
|
+
"pruned",
|
|
120
|
+
"earliestRung"
|
|
121
|
+
],
|
|
122
|
+
"description": "Success response to rooms/epoch/prune. Type https://trusttasks.org/spec/rooms/epoch/prune/0.1#response.",
|
|
123
|
+
"properties": {
|
|
124
|
+
"roomId": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"pruned": {
|
|
128
|
+
"type": "integer",
|
|
129
|
+
"minimum": 0,
|
|
130
|
+
"description": "How many rungs were dropped. `0` is a success: the chain already went back no further, and a caller that read it as a failure would retry an operation that has nothing left to do."
|
|
131
|
+
},
|
|
132
|
+
"earliestRung": {
|
|
133
|
+
"type": "integer",
|
|
134
|
+
"minimum": 1,
|
|
135
|
+
"description": "The lowest epoch the chain still reaches, after pruning. **Not a restatement of `beforeEpoch`**: a chain with a gap in it already stopped somewhere, and a prune below that gap changes nothing about how far back a member can actually walk. Reporting the request back would tell an operator they had achieved something they had not."
|
|
136
|
+
},
|
|
137
|
+
"ext": {
|
|
138
|
+
"$ref": "#/$defs/Ext"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"title": "Rooms Epoch Prune — response payload"
|
|
142
|
+
},
|
|
143
|
+
"Ext": {
|
|
144
|
+
"title": "Ext",
|
|
145
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
146
|
+
"type": "object",
|
|
147
|
+
"minProperties": 1,
|
|
148
|
+
"additionalProperties": true,
|
|
149
|
+
"propertyNames": {
|
|
150
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"AuthorityPresentation": {
|
|
154
|
+
"title": "AuthorityPresentation",
|
|
155
|
+
"type": "object",
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"required": [
|
|
158
|
+
"membership",
|
|
159
|
+
"authority"
|
|
160
|
+
],
|
|
161
|
+
"description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.",
|
|
162
|
+
"properties": {
|
|
163
|
+
"membership": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile."
|
|
166
|
+
},
|
|
167
|
+
"authority": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"minItems": 1,
|
|
170
|
+
"maxItems": 8,
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "string"
|
|
173
|
+
},
|
|
174
|
+
"description": "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent."
|
|
175
|
+
},
|
|
176
|
+
"subjectBinding": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"description": "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this."
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
} as const;
|
|
184
|
+
|
|
185
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
186
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
187
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
188
|
+
"$ref": "#/$defs/Response",
|
|
189
|
+
"$defs": {
|
|
190
|
+
"Response": {
|
|
191
|
+
"$anchor": "response",
|
|
192
|
+
"type": "object",
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"required": [
|
|
195
|
+
"roomId",
|
|
196
|
+
"pruned",
|
|
197
|
+
"earliestRung"
|
|
198
|
+
],
|
|
199
|
+
"description": "Success response to rooms/epoch/prune. Type https://trusttasks.org/spec/rooms/epoch/prune/0.1#response.",
|
|
200
|
+
"properties": {
|
|
201
|
+
"roomId": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"pruned": {
|
|
205
|
+
"type": "integer",
|
|
206
|
+
"minimum": 0,
|
|
207
|
+
"description": "How many rungs were dropped. `0` is a success: the chain already went back no further, and a caller that read it as a failure would retry an operation that has nothing left to do."
|
|
208
|
+
},
|
|
209
|
+
"earliestRung": {
|
|
210
|
+
"type": "integer",
|
|
211
|
+
"minimum": 1,
|
|
212
|
+
"description": "The lowest epoch the chain still reaches, after pruning. **Not a restatement of `beforeEpoch`**: a chain with a gap in it already stopped somewhere, and a prune below that gap changes nothing about how far back a member can actually walk. Reporting the request back would tell an operator they had achieved something they had not."
|
|
213
|
+
},
|
|
214
|
+
"ext": {
|
|
215
|
+
"$ref": "#/$defs/Ext"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"title": "Rooms Epoch Prune — response payload"
|
|
219
|
+
},
|
|
220
|
+
"Ext": {
|
|
221
|
+
"title": "Ext",
|
|
222
|
+
"description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
|
|
223
|
+
"type": "object",
|
|
224
|
+
"minProperties": 1,
|
|
225
|
+
"additionalProperties": true,
|
|
226
|
+
"propertyNames": {
|
|
227
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"AuthorityPresentation": {
|
|
231
|
+
"title": "AuthorityPresentation",
|
|
232
|
+
"type": "object",
|
|
233
|
+
"additionalProperties": false,
|
|
234
|
+
"required": [
|
|
235
|
+
"membership",
|
|
236
|
+
"authority"
|
|
237
|
+
],
|
|
238
|
+
"description": "What a party presents to act on a room. Carries the whole authority chain: a host MUST NOT dereference an authority credential's `parent` to fetch a link it was not given. Resolving over the network would make verification depend on availability, turn every identifier into a request the host can be induced to make against an address the holder chooses, and signal credential use to whoever hosts the identifier. A host MUST bind the presenter to the chain's leaf. A chain that verifies is evidence that authority was conferred on somebody; it is not evidence that the party presenting it is that somebody. The leaf's subject MUST equal the party the host authenticated for this request — an identity the transport established or a document `proof` proved, never one named in a payload. A host that omits this check authorizes every captured presentation, and the omission is silent, because the chain still verifies.",
|
|
239
|
+
"properties": {
|
|
240
|
+
"membership": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"description": "The presenter's membership credential for this room, or — on a `private` room — a zero-knowledge presentation of it. Serialized per the governing profile."
|
|
243
|
+
},
|
|
244
|
+
"authority": {
|
|
245
|
+
"type": "array",
|
|
246
|
+
"minItems": 1,
|
|
247
|
+
"maxItems": 8,
|
|
248
|
+
"items": {
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"description": "The authority chain, LEAF FIRST: the first element is the credential being relied on and the last MUST be one issued by the room itself. Every link the presenter relies on is present, because the host will not fetch one. Capped at 8: verification is linear in chain length and runs on every operation, so an unbounded chain is a denial-of-service surface against the host. The known uses need 2 to 3 — a person attenuating to an agent, and that agent to a sub-agent."
|
|
252
|
+
},
|
|
253
|
+
"subjectBinding": {
|
|
254
|
+
"type": "string",
|
|
255
|
+
"description": "REQUIRED on a `private` room, where the subject identifier is withheld: a proof that the membership credential and the authority chain's leaf describe the SAME subject. Without it two parties pool credentials — one contributes membership, the other authority — and the combination verifies as a single party holding both. A host MUST refuse a private-room presentation that omits this."
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
} as const;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
264
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
265
|
+
* per-specification and cannot be derived from the document alone, and
|
|
266
|
+
* item 2 needs the schema this carries.
|
|
267
|
+
*/
|
|
268
|
+
export const SPEC = {
|
|
269
|
+
typeUri: TYPE_URI,
|
|
270
|
+
isBearer: false,
|
|
271
|
+
isProofRequired: true,
|
|
272
|
+
isRecipientRequired: true,
|
|
273
|
+
isIssuedAtRequired: true,
|
|
274
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
275
|
+
} as const;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
279
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
280
|
+
* parties (§7.3 item 5).
|
|
281
|
+
*/
|
|
282
|
+
export const RESPONSE_SPEC = {
|
|
283
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
284
|
+
isBearer: false,
|
|
285
|
+
isProofRequired: true,
|
|
286
|
+
isRecipientRequired: true,
|
|
287
|
+
isIssuedAtRequired: true,
|
|
288
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
289
|
+
} as const;
|
|
@@ -194,6 +194,18 @@ export const PAYLOAD_SCHEMA = {
|
|
|
194
194
|
],
|
|
195
195
|
"description": "Whether this root matches what the agent has seen from this host for this room **at this `headVersion`**.\n\nThis is the comparison a member cannot make for themselves. A tab does not outlive itself and a CLI holds nothing; the agent is the only party on the member's side of the boundary that saw both reads.\n\n - `agree` — seen at this head before, same root.\n - `conflict` — seen at this head before, **different root**. A host caught: there is no write to attribute the difference to, because a write would have moved the head.\n - `noneHeld` — first read at this head. Not evidence of anything; a memory of one is not a comparison.\n - `notChecked` — this agent keeps no root history. An honest answer for an agent that cannot make the comparison, and **not** a synonym for `noneHeld`: one says nothing was found, the other says nothing was looked for.\n\nREQUIRED, so that an agent which does not check has to say so rather than omit the question."
|
|
196
196
|
},
|
|
197
|
+
"anchor": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"enum": [
|
|
200
|
+
"agrees",
|
|
201
|
+
"ahead",
|
|
202
|
+
"behind",
|
|
203
|
+
"conflict",
|
|
204
|
+
"none",
|
|
205
|
+
"notChecked"
|
|
206
|
+
],
|
|
207
|
+
"description": "How what the host served compares with the room's own **witnessed anchor** (`EpochAnchor`).\n\nThis is the comparison that needs neither a gossip channel rooms deliberately lack nor durable state in an agent: every member resolves the same room DID and reads the same entry, co-signed by witnesses. It is the only one of the three a first-time reader can make.\n\n - `agrees` — the host served the anchored state, and its root matches.\n - `ahead` — the room has moved past the anchor. The ordinary case; an anchor describes a moment, not the present, and says nothing about records written since.\n - `behind` — **the host is serving a state older than the room's own witnessed statement.** A rollback, and a detection nothing else in this family can make: a member with no history, no peer and no prior read still catches it.\n - `conflict` — same `headVersion` as the anchor, different root. The host has contradicted a value its own room published and witnesses co-signed.\n - `none` — the room has published no anchor. Not a fault; anchoring costs a witnessed update and a key rotation, and a room may reasonably decline.\n - `notChecked` — the consumer did not resolve the room. An honest answer, and **not** a synonym for `none`: one says the room published nothing, the other says nobody looked."
|
|
208
|
+
},
|
|
197
209
|
"count": {
|
|
198
210
|
"type": "string",
|
|
199
211
|
"enum": [
|
|
@@ -389,6 +401,18 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
389
401
|
],
|
|
390
402
|
"description": "Whether this root matches what the agent has seen from this host for this room **at this `headVersion`**.\n\nThis is the comparison a member cannot make for themselves. A tab does not outlive itself and a CLI holds nothing; the agent is the only party on the member's side of the boundary that saw both reads.\n\n - `agree` — seen at this head before, same root.\n - `conflict` — seen at this head before, **different root**. A host caught: there is no write to attribute the difference to, because a write would have moved the head.\n - `noneHeld` — first read at this head. Not evidence of anything; a memory of one is not a comparison.\n - `notChecked` — this agent keeps no root history. An honest answer for an agent that cannot make the comparison, and **not** a synonym for `noneHeld`: one says nothing was found, the other says nothing was looked for.\n\nREQUIRED, so that an agent which does not check has to say so rather than omit the question."
|
|
391
403
|
},
|
|
404
|
+
"anchor": {
|
|
405
|
+
"type": "string",
|
|
406
|
+
"enum": [
|
|
407
|
+
"agrees",
|
|
408
|
+
"ahead",
|
|
409
|
+
"behind",
|
|
410
|
+
"conflict",
|
|
411
|
+
"none",
|
|
412
|
+
"notChecked"
|
|
413
|
+
],
|
|
414
|
+
"description": "How what the host served compares with the room's own **witnessed anchor** (`EpochAnchor`).\n\nThis is the comparison that needs neither a gossip channel rooms deliberately lack nor durable state in an agent: every member resolves the same room DID and reads the same entry, co-signed by witnesses. It is the only one of the three a first-time reader can make.\n\n - `agrees` — the host served the anchored state, and its root matches.\n - `ahead` — the room has moved past the anchor. The ordinary case; an anchor describes a moment, not the present, and says nothing about records written since.\n - `behind` — **the host is serving a state older than the room's own witnessed statement.** A rollback, and a detection nothing else in this family can make: a member with no history, no peer and no prior read still catches it.\n - `conflict` — same `headVersion` as the anchor, different root. The host has contradicted a value its own room published and witnesses co-signed.\n - `none` — the room has published no anchor. Not a fault; anchoring costs a witnessed update and a key rotation, and a room may reasonably decline.\n - `notChecked` — the consumer did not resolve the room. An honest answer, and **not** a synonym for `none`: one says the room published nothing, the other says nobody looked."
|
|
415
|
+
},
|
|
392
416
|
"count": {
|
|
393
417
|
"type": "string",
|
|
394
418
|
"enum": [
|
|
@@ -216,6 +216,18 @@ export const PAYLOAD_SCHEMA = {
|
|
|
216
216
|
],
|
|
217
217
|
"description": "Whether this root matches what the agent has seen from this host for this room **at this `headVersion`**.\n\nThis is the comparison a member cannot make for themselves. A tab does not outlive itself and a CLI holds nothing; the agent is the only party on the member's side of the boundary that saw both reads.\n\n - `agree` — seen at this head before, same root.\n - `conflict` — seen at this head before, **different root**. A host caught: there is no write to attribute the difference to, because a write would have moved the head.\n - `noneHeld` — first read at this head. Not evidence of anything; a memory of one is not a comparison.\n - `notChecked` — this agent keeps no root history. An honest answer for an agent that cannot make the comparison, and **not** a synonym for `noneHeld`: one says nothing was found, the other says nothing was looked for.\n\nREQUIRED, so that an agent which does not check has to say so rather than omit the question."
|
|
218
218
|
},
|
|
219
|
+
"anchor": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"enum": [
|
|
222
|
+
"agrees",
|
|
223
|
+
"ahead",
|
|
224
|
+
"behind",
|
|
225
|
+
"conflict",
|
|
226
|
+
"none",
|
|
227
|
+
"notChecked"
|
|
228
|
+
],
|
|
229
|
+
"description": "How what the host served compares with the room's own **witnessed anchor** (`EpochAnchor`).\n\nThis is the comparison that needs neither a gossip channel rooms deliberately lack nor durable state in an agent: every member resolves the same room DID and reads the same entry, co-signed by witnesses. It is the only one of the three a first-time reader can make.\n\n - `agrees` — the host served the anchored state, and its root matches.\n - `ahead` — the room has moved past the anchor. The ordinary case; an anchor describes a moment, not the present, and says nothing about records written since.\n - `behind` — **the host is serving a state older than the room's own witnessed statement.** A rollback, and a detection nothing else in this family can make: a member with no history, no peer and no prior read still catches it.\n - `conflict` — same `headVersion` as the anchor, different root. The host has contradicted a value its own room published and witnesses co-signed.\n - `none` — the room has published no anchor. Not a fault; anchoring costs a witnessed update and a key rotation, and a room may reasonably decline.\n - `notChecked` — the consumer did not resolve the room. An honest answer, and **not** a synonym for `none`: one says the room published nothing, the other says nobody looked."
|
|
230
|
+
},
|
|
219
231
|
"count": {
|
|
220
232
|
"type": "string",
|
|
221
233
|
"enum": [
|
|
@@ -381,6 +393,18 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
381
393
|
],
|
|
382
394
|
"description": "Whether this root matches what the agent has seen from this host for this room **at this `headVersion`**.\n\nThis is the comparison a member cannot make for themselves. A tab does not outlive itself and a CLI holds nothing; the agent is the only party on the member's side of the boundary that saw both reads.\n\n - `agree` — seen at this head before, same root.\n - `conflict` — seen at this head before, **different root**. A host caught: there is no write to attribute the difference to, because a write would have moved the head.\n - `noneHeld` — first read at this head. Not evidence of anything; a memory of one is not a comparison.\n - `notChecked` — this agent keeps no root history. An honest answer for an agent that cannot make the comparison, and **not** a synonym for `noneHeld`: one says nothing was found, the other says nothing was looked for.\n\nREQUIRED, so that an agent which does not check has to say so rather than omit the question."
|
|
383
395
|
},
|
|
396
|
+
"anchor": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"enum": [
|
|
399
|
+
"agrees",
|
|
400
|
+
"ahead",
|
|
401
|
+
"behind",
|
|
402
|
+
"conflict",
|
|
403
|
+
"none",
|
|
404
|
+
"notChecked"
|
|
405
|
+
],
|
|
406
|
+
"description": "How what the host served compares with the room's own **witnessed anchor** (`EpochAnchor`).\n\nThis is the comparison that needs neither a gossip channel rooms deliberately lack nor durable state in an agent: every member resolves the same room DID and reads the same entry, co-signed by witnesses. It is the only one of the three a first-time reader can make.\n\n - `agrees` — the host served the anchored state, and its root matches.\n - `ahead` — the room has moved past the anchor. The ordinary case; an anchor describes a moment, not the present, and says nothing about records written since.\n - `behind` — **the host is serving a state older than the room's own witnessed statement.** A rollback, and a detection nothing else in this family can make: a member with no history, no peer and no prior read still catches it.\n - `conflict` — same `headVersion` as the anchor, different root. The host has contradicted a value its own room published and witnesses co-signed.\n - `none` — the room has published no anchor. Not a fault; anchoring costs a witnessed update and a key rotation, and a room may reasonably decline.\n - `notChecked` — the consumer did not resolve the room. An honest answer, and **not** a synonym for `none`: one says the room published nothing, the other says nobody looked."
|
|
407
|
+
},
|
|
384
408
|
"count": {
|
|
385
409
|
"type": "string",
|
|
386
410
|
"enum": [
|