@yaks/kernel 0.0.0-stage → 0.2.36

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.
Files changed (65) hide show
  1. package/Comments.tsx +300 -0
  2. package/LICENSE +202 -0
  3. package/README.md +332 -2
  4. package/_dist/cites.d.ts +18 -0
  5. package/_dist/cites.d.ts.map +1 -0
  6. package/_dist/comment-host.d.ts +30 -0
  7. package/_dist/comment-host.d.ts.map +1 -0
  8. package/_dist/comments.d.ts +20 -0
  9. package/_dist/comments.d.ts.map +1 -0
  10. package/_dist/graph.d.ts +3 -0
  11. package/_dist/graph.d.ts.map +1 -0
  12. package/_dist/keywords.d.ts +9 -0
  13. package/_dist/keywords.d.ts.map +1 -0
  14. package/_dist/mod.d.ts +26 -0
  15. package/_dist/mod.d.ts.map +1 -0
  16. package/_dist/plugin.d.ts +6 -0
  17. package/_dist/plugin.d.ts.map +1 -0
  18. package/_dist/tools.d.ts +6 -0
  19. package/_dist/tools.d.ts.map +1 -0
  20. package/_dist/views.d.ts +8 -0
  21. package/_dist/views.d.ts.map +1 -0
  22. package/_dist/vocab.d.ts +16 -0
  23. package/_dist/vocab.d.ts.map +1 -0
  24. package/cites.js +61 -0
  25. package/cites.js.map +1 -0
  26. package/cites.ts +63 -0
  27. package/comment-host.js +11 -0
  28. package/comment-host.js.map +1 -0
  29. package/comment-host.ts +35 -0
  30. package/comments.js +51 -0
  31. package/comments.js.map +1 -0
  32. package/comments.ts +59 -0
  33. package/completion.js +33 -0
  34. package/completion.js.map +1 -0
  35. package/completion.ts +33 -0
  36. package/component-views.tsx +34 -0
  37. package/decision.js +17 -0
  38. package/decision.js.map +1 -0
  39. package/decision.ts +14 -0
  40. package/deno.json +1 -0
  41. package/graph.js +7 -0
  42. package/graph.js.map +1 -0
  43. package/graph.ts +8 -0
  44. package/keywords.js +31 -0
  45. package/keywords.js.map +1 -0
  46. package/keywords.ts +29 -0
  47. package/meta/kernel.vocab.json +20 -0
  48. package/mod.js +26 -0
  49. package/mod.js.map +1 -0
  50. package/mod.ts +26 -0
  51. package/package.json +56 -4
  52. package/plugin.js +33 -0
  53. package/plugin.js.map +1 -0
  54. package/plugin.ts +31 -0
  55. package/tools.js +34 -0
  56. package/tools.js.map +1 -0
  57. package/tools.ts +30 -0
  58. package/views.js +29 -0
  59. package/views.js.map +1 -0
  60. package/views.ts +29 -0
  61. package/views.tsx +3 -0
  62. package/vocab.js +34 -0
  63. package/vocab.js.map +1 -0
  64. package/vocab.json +765 -0
  65. package/vocab.ts +34 -0
package/vocab.json ADDED
@@ -0,0 +1,765 @@
1
+ {
2
+ "$id": "urn:uuid:23a698c6-89f3-4a64-95af-a04fa6a6db8f",
3
+ "$vocabulary": {
4
+ "https://yak.sh/vocab/core": true,
5
+ "https://yak.sh/vocab/id": true,
6
+ "https://yak.sh/vocab/edge": true
7
+ },
8
+ "title": "kernel",
9
+ "$defs": {
10
+ "about": {
11
+ "$id": "urn:uuid:0d9318a9-9f83-4070-8f42-a7bcc9ff3cb6",
12
+ "component": true,
13
+ "type": "object",
14
+ "edge": "about",
15
+ "reversed": "subject of",
16
+ "properties": {},
17
+ "description": "edge tag: this entity is about that one"
18
+ },
19
+ "archived": {
20
+ "$id": "urn:uuid:491c831d-6b4c-49e6-8225-b0d0ef02fad1",
21
+ "component": true,
22
+ "type": "object",
23
+ "properties": {
24
+ "at": {
25
+ "$id": "urn:uuid:bf4b0c9f-a8e1-4602-9599-1ab9b946f17f",
26
+ "type": "string",
27
+ "format": "date-time",
28
+ "stamped": true,
29
+ "description": "when it was archived"
30
+ },
31
+ "by": {
32
+ "$id": "urn:uuid:0e6101a9-257c-40dd-a7db-4fde7338935e",
33
+ "type": "string",
34
+ "ref": "entity",
35
+ "death": "keep",
36
+ "stamped": true,
37
+ "description": "who archived it — kept as history when that entity is deleted"
38
+ },
39
+ "via": {
40
+ "$id": "urn:uuid:32eae0a4-5ea5-42c0-9a2c-4118904175d0",
41
+ "type": "string",
42
+ "ref": "entity",
43
+ "death": "keep",
44
+ "stamped": true,
45
+ "description": "what the write was made through — the session or client it came in on"
46
+ }
47
+ },
48
+ "description": "Hidden from ordinary listings, without stopping execution or deleting history."
49
+ },
50
+ "broken": {
51
+ "$id": "urn:uuid:5de7ccbb-28c5-4955-bb7d-2531d479f924",
52
+ "component": true,
53
+ "type": "object",
54
+ "properties": {
55
+ "at": {
56
+ "$id": "urn:uuid:5d44ef1b-29cd-4f45-b9a3-74bcf83faf4f",
57
+ "type": "string",
58
+ "format": "date-time",
59
+ "stamped": true,
60
+ "description": "when it was found broken"
61
+ },
62
+ "by": {
63
+ "$id": "urn:uuid:5593df17-d046-4258-a7fd-4141bc72c6c0",
64
+ "type": "string",
65
+ "ref": "entity",
66
+ "death": "keep",
67
+ "stamped": true,
68
+ "description": "who found it broken — kept as history when that entity is deleted"
69
+ },
70
+ "via": {
71
+ "$id": "urn:uuid:4262b9e3-18f2-4fbd-b91f-6948190a711e",
72
+ "type": "string",
73
+ "ref": "entity",
74
+ "death": "keep",
75
+ "stamped": true,
76
+ "description": "what the write came in through — the session or client that made it"
77
+ },
78
+ "code": {
79
+ "$id": "urn:uuid:fa10e5b7-32ff-434e-9b2d-a798f8f6f0f1",
80
+ "type": "string",
81
+ "description": "the other side's word for what broke: an OAuth error code, a hostname check's status"
82
+ }
83
+ },
84
+ "description": "Something outside the graph stopped honoring what this entity holds: a connection whose grant was revoked, a hostname whose check failed. It is a standing condition of a long-lived thing, not one refusal. Removing the mark says it holds again."
85
+ },
86
+ "comment": {
87
+ "$id": "urn:uuid:ca88d3f6-7480-4b59-a138-5b6e6c4467c9",
88
+ "component": true,
89
+ "type": "object",
90
+ "properties": {
91
+ "target": {
92
+ "$id": "urn:uuid:f75ee188-cd00-45c4-a776-23696eb81926",
93
+ "type": "string",
94
+ "ref": "entity",
95
+ "death": "cascade"
96
+ },
97
+ "reply_to": {
98
+ "$id": "urn:uuid:d2f9ff7d-de3c-43af-ac4e-4f7802907045",
99
+ "type": "string",
100
+ "ref": "comment",
101
+ "death": "detach",
102
+ "description": "the comment this answers, on the same target; absent starts a branch"
103
+ }
104
+ },
105
+ "description": "a comment on a thread: target is the entity it hangs on, reply_to the comment it answers; doc holds the text"
106
+ },
107
+ "cites": {
108
+ "$id": "urn:uuid:47c279b3-a2fb-4256-b84f-4cf332ba9789",
109
+ "component": true,
110
+ "type": "object",
111
+ "edge": true,
112
+ "reversed": "cited by",
113
+ "properties": {
114
+ "hash": {
115
+ "$id": "urn:uuid:08e902ad-2cb0-419c-b2ae-429be776edd4",
116
+ "type": "string",
117
+ "description": "the cited entity's content hash when this citation was verified"
118
+ }
119
+ },
120
+ "description": "this entity cites that one; its hash says whether the cited content still holds"
121
+ },
122
+ "completed": {
123
+ "$id": "urn:uuid:dc8d75d8-b158-4b33-bdf7-937ad3747fad",
124
+ "component": true,
125
+ "type": "object",
126
+ "index": [
127
+ [
128
+ "at"
129
+ ]
130
+ ],
131
+ "properties": {
132
+ "at": {
133
+ "$id": "urn:uuid:9d597217-ae02-4bbf-badc-862301a7983b",
134
+ "type": "string",
135
+ "format": "date-time",
136
+ "stamped": true,
137
+ "description": "when it was finished"
138
+ },
139
+ "by": {
140
+ "$id": "urn:uuid:fcb7c484-38b7-4f19-b11b-f6e429480009",
141
+ "type": "string",
142
+ "ref": "entity",
143
+ "death": "keep",
144
+ "stamped": true,
145
+ "description": "who finished it — kept as history when that entity is deleted"
146
+ },
147
+ "via": {
148
+ "$id": "urn:uuid:1f3820bc-ca13-4ae1-858f-9328b8838b4f",
149
+ "type": "string",
150
+ "ref": "entity",
151
+ "death": "keep",
152
+ "stamped": true,
153
+ "description": "what the write came in through — the session or client that made it"
154
+ }
155
+ },
156
+ "description": "The work this entity records was finished: a task done. Who finished it is kept across later writes of the mark. Removing the mark reopens the work."
157
+ },
158
+ "decided": {
159
+ "$id": "urn:uuid:f380d329-da28-49cf-905b-771df67d7a17",
160
+ "component": true,
161
+ "type": "object",
162
+ "properties": {
163
+ "at": {
164
+ "$id": "urn:uuid:c7712977-2917-409d-89cd-9ade2ddb69d8",
165
+ "type": "string",
166
+ "format": "date-time",
167
+ "stamped": true
168
+ },
169
+ "by": {
170
+ "$id": "urn:uuid:74cc3f60-1322-47e4-9c82-e4ed276e9467",
171
+ "type": "string",
172
+ "ref": "entity",
173
+ "death": "keep",
174
+ "stamped": true
175
+ },
176
+ "verdict": {
177
+ "$id": "urn:uuid:8e5187c9-ba63-4068-829f-2bbab66e99ee",
178
+ "type": "string",
179
+ "enum": [
180
+ "approved",
181
+ "declined"
182
+ ]
183
+ },
184
+ "via": {
185
+ "$id": "urn:uuid:767b7144-1bf9-4186-8bdb-01f6468c1976",
186
+ "type": "string",
187
+ "ref": "entity",
188
+ "death": "keep",
189
+ "stamped": true
190
+ },
191
+ "choice": {
192
+ "$id": "urn:uuid:3e5181c4-6d71-4ab3-ad1d-11c1ced17c02",
193
+ "type": "string",
194
+ "minLength": 1,
195
+ "description": "The chosen label or custom answer to a decision question."
196
+ }
197
+ },
198
+ "description": "A verdict or chosen answer, by whom and when."
199
+ },
200
+ "delegates": {
201
+ "$id": "urn:uuid:6cec3aca-74eb-44b6-b603-af989636f483",
202
+ "component": true,
203
+ "type": "object",
204
+ "edge": "delegates",
205
+ "reversed": "delegated by",
206
+ "properties": {},
207
+ "description": "edge tag: this entity handed work off to that one"
208
+ },
209
+ "entity": {
210
+ "$id": "urn:uuid:1873db7d-db02-4c9f-af07-5b7111afdaa5",
211
+ "component": true,
212
+ "type": "object",
213
+ "wire": false,
214
+ "properties": {
215
+ "archetype": {
216
+ "$id": "urn:uuid:a489a545-4328-4754-8b28-84d19b391a5f",
217
+ "type": "string",
218
+ "ref": "archetype",
219
+ "death": "keep",
220
+ "stamped": true,
221
+ "description": "the archetype entity describing this one's set of components, not a type name"
222
+ }
223
+ },
224
+ "description": "every entity has one: the identity row, carrying the archetype its set of components adds up to and whatever else a plugin keeps beside every entity"
225
+ },
226
+ "failed": {
227
+ "$id": "urn:uuid:d80cb068-2311-4eb3-a796-3743a6d5c20e",
228
+ "component": true,
229
+ "type": "object",
230
+ "properties": {
231
+ "at": {
232
+ "$id": "urn:uuid:2df9ddf5-ff7a-4dbb-aafc-442beb658221",
233
+ "type": "string",
234
+ "format": "date-time",
235
+ "stamped": true,
236
+ "description": "when it failed"
237
+ },
238
+ "by": {
239
+ "$id": "urn:uuid:14995d73-f8fb-4395-9838-29605f6654ba",
240
+ "type": "string",
241
+ "ref": "entity",
242
+ "death": "keep",
243
+ "stamped": true,
244
+ "description": "who gave up on it — kept as history when that entity is deleted"
245
+ },
246
+ "via": {
247
+ "$id": "urn:uuid:2fd1c68a-cd91-4162-bc5c-c71a87f1adc3",
248
+ "type": "string",
249
+ "ref": "entity",
250
+ "death": "keep",
251
+ "stamped": true,
252
+ "description": "what the write came in through — the session or client that made it"
253
+ },
254
+ "reason": {
255
+ "$id": "urn:uuid:b29df1b4-ec4a-4809-96dd-e2933b9a1bb3",
256
+ "type": "string",
257
+ "description": "why it failed, in the words of whatever refused"
258
+ }
259
+ },
260
+ "description": "The work this entity records was tried and given up on, and is not tried again on its own: a checkout that could not be made. Removing the mark says it is being tried again."
261
+ },
262
+ "favorite": {
263
+ "$id": "urn:uuid:bc3c8b57-c713-484a-a3f5-07baa17b24db",
264
+ "component": true,
265
+ "type": "object",
266
+ "properties": {
267
+ "at": {
268
+ "$id": "urn:uuid:905a9e6e-9d16-4fed-873f-eefa5bb82d8a",
269
+ "type": "string",
270
+ "format": "date-time",
271
+ "stamped": true
272
+ }
273
+ },
274
+ "description": "somebody marked it a favorite"
275
+ },
276
+ "image": {
277
+ "$id": "urn:uuid:4ec30e56-9253-4156-827e-f3535357d0d1",
278
+ "component": true,
279
+ "type": "object",
280
+ "properties": {
281
+ "w": {
282
+ "$id": "urn:uuid:29db71dd-69e3-43fe-9319-0bf18c3deff8",
283
+ "type": "number"
284
+ },
285
+ "h": {
286
+ "$id": "urn:uuid:ac66e432-02b1-40a8-b30c-c16a7f5851b5",
287
+ "type": "number"
288
+ }
289
+ },
290
+ "description": "this entity is an image, with its pixel dimensions"
291
+ },
292
+ "opened": {
293
+ "$id": "urn:uuid:14844cbd-a5e0-40e7-b5fb-65add8650400",
294
+ "component": true,
295
+ "journal": false,
296
+ "type": "object",
297
+ "properties": {
298
+ "at": {
299
+ "$id": "urn:uuid:043006c1-018d-4415-82fd-6632bd8e1fa4",
300
+ "type": "string",
301
+ "format": "date-time",
302
+ "stamped": true
303
+ },
304
+ "by": {
305
+ "$id": "urn:uuid:8bb3b899-d0e6-4e12-863b-8124fc3ed386",
306
+ "type": "string",
307
+ "ref": "entity",
308
+ "death": "keep",
309
+ "stamped": true
310
+ },
311
+ "via": {
312
+ "$id": "urn:uuid:f636d273-7cce-4bd5-addc-9168b85f6543",
313
+ "type": "string",
314
+ "ref": "entity",
315
+ "death": "keep",
316
+ "stamped": true
317
+ }
318
+ },
319
+ "description": "somebody looked at it"
320
+ },
321
+ "proposed": {
322
+ "$id": "urn:uuid:ec61e732-ac4a-4d95-8d82-e90659e676fb",
323
+ "component": true,
324
+ "type": "object",
325
+ "properties": {
326
+ "at": {
327
+ "$id": "urn:uuid:7cf4b8f1-089d-4839-af47-22236f5c717c",
328
+ "type": "string",
329
+ "format": "date-time",
330
+ "stamped": true
331
+ },
332
+ "by": {
333
+ "$id": "urn:uuid:1d874079-9aa8-4ed8-8cdb-8aa71b72a6b0",
334
+ "type": "string",
335
+ "ref": "entity",
336
+ "death": "keep",
337
+ "stamped": true
338
+ },
339
+ "via": {
340
+ "$id": "urn:uuid:624e66f8-b036-42a2-86b6-0538f98f006f",
341
+ "type": "string",
342
+ "ref": "entity",
343
+ "death": "keep",
344
+ "stamped": true
345
+ }
346
+ },
347
+ "description": "put forward for a decision, by whom and when"
348
+ },
349
+ "quarantined": {
350
+ "$id": "urn:uuid:1ed224e6-b368-454c-bfbd-d2771958a009",
351
+ "component": true,
352
+ "type": "object",
353
+ "found": false,
354
+ "properties": {
355
+ "at": {
356
+ "$id": "urn:uuid:8dcff296-51d4-4bdf-b39e-c770ce38577b",
357
+ "type": "string",
358
+ "format": "date-time",
359
+ "stamped": true
360
+ },
361
+ "by": {
362
+ "$id": "urn:uuid:85a6b2d3-1d46-455c-8150-9f0f5c7aa17d",
363
+ "type": "string",
364
+ "ref": "entity",
365
+ "death": "keep",
366
+ "stamped": true
367
+ },
368
+ "via": {
369
+ "$id": "urn:uuid:e18e748d-316c-4154-9398-02b67343f97d",
370
+ "type": "string",
371
+ "ref": "entity",
372
+ "death": "keep",
373
+ "stamped": true
374
+ }
375
+ },
376
+ "description": "set aside as harmful to act on: readable, never handed out as guidance"
377
+ },
378
+ "reads": {
379
+ "$id": "urn:uuid:9f48bee1-e295-4b73-8645-0169fed999c5",
380
+ "component": true,
381
+ "type": "object",
382
+ "edge": "reads",
383
+ "reversed": "read by",
384
+ "properties": {},
385
+ "description": "edge tag: this entity reads that one"
386
+ },
387
+ "redaction": {
388
+ "$id": "urn:uuid:6bc9a147-7b84-4981-8951-beb721ba8df5",
389
+ "component": true,
390
+ "type": "object",
391
+ "properties": {
392
+ "target": {
393
+ "$id": "urn:uuid:294fa4eb-0164-4570-8e8d-0adffa998ea7",
394
+ "type": "string",
395
+ "ref": "entity",
396
+ "death": "keep",
397
+ "stamped": true
398
+ },
399
+ "prop": {
400
+ "$id": "urn:uuid:6a30a758-3327-419f-b85b-6d225962832c",
401
+ "type": "string",
402
+ "enum": [
403
+ "title",
404
+ "body"
405
+ ],
406
+ "stamped": true,
407
+ "description": "which property was replaced"
408
+ },
409
+ "hash": {
410
+ "$id": "urn:uuid:b3ca62be-28c1-4dfb-a5ab-5d09844566b6",
411
+ "type": "string",
412
+ "stamped": true,
413
+ "description": "the digest of what was there, so a claim about it can still be checked"
414
+ }
415
+ },
416
+ "description": "one property of one entity, replaced — the hash proves what was there without keeping it"
417
+ },
418
+ "references": {
419
+ "$id": "urn:uuid:68bd829a-d8e3-420d-ab0f-24470b58156e",
420
+ "component": true,
421
+ "type": "object",
422
+ "edge": "referenced",
423
+ "reversed": "referenced by",
424
+ "properties": {},
425
+ "description": "edge tag: this entity refers to that one"
426
+ },
427
+ "resolved": {
428
+ "$id": "urn:uuid:bd7af9f9-3ecb-420b-9187-303236795552",
429
+ "component": true,
430
+ "type": "object",
431
+ "properties": {
432
+ "at": {
433
+ "$id": "urn:uuid:49d8f582-d336-47f7-a98a-3fb8938d847f",
434
+ "type": "string",
435
+ "format": "date-time",
436
+ "stamped": true,
437
+ "description": "when it was resolved"
438
+ },
439
+ "by": {
440
+ "$id": "urn:uuid:49263c9d-2052-44ab-ab15-62d9bc156f79",
441
+ "type": "string",
442
+ "ref": "entity",
443
+ "death": "keep",
444
+ "stamped": true,
445
+ "description": "who resolved it — kept as history when that entity is deleted"
446
+ },
447
+ "via": {
448
+ "$id": "urn:uuid:b27c1ece-4962-4408-aaec-a40fc2f5ce1d",
449
+ "type": "string",
450
+ "ref": "entity",
451
+ "death": "keep",
452
+ "stamped": true,
453
+ "description": "what the write was made through — the session or client it came in on"
454
+ }
455
+ },
456
+ "description": "The problem this entity records is over: a bug whose fix is live, a settled comment thread, a finished conflict between two sessions. It is not `completed`, which says a piece of work was finished; a problem can stop with no task done. Removing the mark says the problem is back."
457
+ },
458
+ "supersedes": {
459
+ "$id": "urn:uuid:6b323137-b3c4-4e31-a525-3188e6955cc7",
460
+ "component": true,
461
+ "type": "object",
462
+ "edge": "supersedes",
463
+ "reversed": "superseded by",
464
+ "properties": {},
465
+ "description": "edge tag: this entity replaces that one"
466
+ },
467
+ "supervises": {
468
+ "$id": "urn:uuid:a1e2a570-cbcf-4031-9be4-bcc5b8057cb1",
469
+ "component": true,
470
+ "type": "object",
471
+ "edge": "supervises",
472
+ "reversed": "supervised by",
473
+ "properties": {},
474
+ "description": "edge tag: this entity oversees that one"
475
+ },
476
+ "verified": {
477
+ "$id": "urn:uuid:2b7437a2-23c5-4649-8eca-a7646dec2b21",
478
+ "component": true,
479
+ "type": "object",
480
+ "properties": {
481
+ "at": {
482
+ "$id": "urn:uuid:008cba61-3c17-4c56-9e90-05cf539401d3",
483
+ "type": "string",
484
+ "format": "date-time",
485
+ "stamped": true
486
+ },
487
+ "by": {
488
+ "$id": "urn:uuid:c12f3c20-fb07-435f-9ff8-eff12f6f8aeb",
489
+ "type": "string",
490
+ "ref": "entity",
491
+ "death": "keep",
492
+ "stamped": true
493
+ },
494
+ "via": {
495
+ "$id": "urn:uuid:d6cb140c-2324-48c8-a9d5-0df8bcebd839",
496
+ "type": "string",
497
+ "ref": "entity",
498
+ "death": "keep",
499
+ "stamped": true
500
+ }
501
+ },
502
+ "description": "somebody checked this entity against what it claims and found it holds; only the act of checking writes it, never an edit to the entity"
503
+ },
504
+ "wants": {
505
+ "$id": "urn:uuid:dde65506-dd1b-4897-995c-8055f6db0914",
506
+ "component": true,
507
+ "type": "object",
508
+ "edge": "wants",
509
+ "reversed": "wanted by",
510
+ "properties": {},
511
+ "description": "edge tag: this entity wants that one"
512
+ },
513
+ "worked": {
514
+ "$id": "urn:uuid:8bd96111-9933-481c-993a-e62f3c3c25b4",
515
+ "component": true,
516
+ "type": "object",
517
+ "edge": "worked",
518
+ "reversed": "worked on by",
519
+ "properties": {},
520
+ "description": "edge tag: this entity worked on that one"
521
+ },
522
+ "comment_new": {
523
+ "tool": true,
524
+ "destructive": false,
525
+ "noun": "comment",
526
+ "verb": "new",
527
+ "title": "Comment on an entity",
528
+ "description": "Comment on any entity, attributed to the caller. reply_to answers a comment on that target; omitted starts a branch. Returns applied bundles.",
529
+ "input": {
530
+ "target": {
531
+ "type": "string",
532
+ "ref": "entity",
533
+ "description": "the entity the comment is about; pass its id or registered name"
534
+ },
535
+ "body": {
536
+ "type": "string",
537
+ "description": "the comment, as markdown: steps a numbered list, several items a bulleted list"
538
+ },
539
+ "reply_to": {
540
+ "type": "string",
541
+ "ref": "comment",
542
+ "description": "the comment this answers on the target thread; omit to start a branch"
543
+ }
544
+ },
545
+ "required": [
546
+ "target",
547
+ "body"
548
+ ],
549
+ "positional": [
550
+ "target",
551
+ "body"
552
+ ]
553
+ },
554
+ "admitted": {
555
+ "$id": "urn:uuid:b630b3b0-8ec8-48ac-af10-b2b99d2040a0",
556
+ "component": true,
557
+ "journal": false,
558
+ "type": "object",
559
+ "index": [
560
+ [
561
+ "at"
562
+ ]
563
+ ],
564
+ "properties": {
565
+ "at": {
566
+ "$id": "urn:uuid:74a57112-45db-4810-b360-30dacc9fb270",
567
+ "type": "string",
568
+ "format": "date-time",
569
+ "stamped": true,
570
+ "description": "when the child took a place"
571
+ },
572
+ "by": {
573
+ "$id": "urn:uuid:dabfdc44-b10d-4837-bea3-72657b30e1dd",
574
+ "type": "string",
575
+ "ref": "entity",
576
+ "death": "keep",
577
+ "stamped": true,
578
+ "description": "who wrote the mark — kept as history when that entity is deleted"
579
+ },
580
+ "via": {
581
+ "$id": "urn:uuid:72ce64ca-2298-4f51-8a2b-1368b11925ed",
582
+ "type": "string",
583
+ "ref": "entity",
584
+ "death": "keep",
585
+ "stamped": true,
586
+ "description": "what the write came in through — the session or client that made it"
587
+ }
588
+ },
589
+ "description": "A child holds a place under the concurrency bound. Removing the mark gives up that place."
590
+ },
591
+ "waiting": {
592
+ "$id": "urn:uuid:97c10ecf-f97f-43d0-b01f-019d84015ae2",
593
+ "component": true,
594
+ "journal": false,
595
+ "type": "object",
596
+ "index": [
597
+ [
598
+ "at"
599
+ ]
600
+ ],
601
+ "properties": {
602
+ "at": {
603
+ "$id": "urn:uuid:4cb4f63c-0155-467c-a44a-809c397ede87",
604
+ "type": "string",
605
+ "format": "date-time",
606
+ "stamped": true,
607
+ "description": "when the child began waiting"
608
+ },
609
+ "by": {
610
+ "$id": "urn:uuid:b4780b8d-ceca-4cea-bb36-cc78c5d716eb",
611
+ "type": "string",
612
+ "ref": "entity",
613
+ "death": "keep",
614
+ "stamped": true,
615
+ "description": "who wrote the mark — kept as history when that entity is deleted"
616
+ },
617
+ "via": {
618
+ "$id": "urn:uuid:8b0a2e06-7aea-481d-8f7d-eb38d5aac11a",
619
+ "type": "string",
620
+ "ref": "entity",
621
+ "death": "keep",
622
+ "stamped": true,
623
+ "description": "what the write came in through — the session or client that made it"
624
+ }
625
+ },
626
+ "description": "A child has stepped aside while it waits for its own children. Removing the mark queues it again."
627
+ },
628
+ "pending": {
629
+ "$id": "urn:uuid:feda8d55-e3f1-48d1-a8a4-8aba67bd664a",
630
+ "component": true,
631
+ "journal": false,
632
+ "type": "object",
633
+ "properties": {
634
+ "at": {
635
+ "$id": "urn:uuid:f26696cb-304c-46e1-b05c-61280edf5008",
636
+ "type": "string",
637
+ "format": "date-time",
638
+ "stamped": true,
639
+ "description": "when it began awaiting confirmation"
640
+ },
641
+ "by": {
642
+ "$id": "urn:uuid:e2b52583-63a3-41d4-9480-ae38785963a3",
643
+ "type": "string",
644
+ "ref": "entity",
645
+ "death": "keep",
646
+ "stamped": true,
647
+ "description": "who requested confirmation"
648
+ },
649
+ "via": {
650
+ "$id": "urn:uuid:5c16850f-e531-4c02-830c-c555244e2d4b",
651
+ "type": "string",
652
+ "ref": "entity",
653
+ "death": "keep",
654
+ "stamped": true,
655
+ "description": "what the write was made through — the session or client it came in on"
656
+ }
657
+ },
658
+ "description": "Awaiting its first successful answer or confirmation."
659
+ },
660
+ "interrupted": {
661
+ "$id": "urn:uuid:6da31ba4-b2b4-4b1e-b3eb-61423f3e0579",
662
+ "component": true,
663
+ "journal": false,
664
+ "type": "object",
665
+ "properties": {
666
+ "at": {
667
+ "$id": "urn:uuid:4a4d6a1f-17d5-47ba-8ffe-cc91fdec4e85",
668
+ "type": "string",
669
+ "format": "date-time",
670
+ "stamped": true,
671
+ "description": "when it was found broken"
672
+ },
673
+ "by": {
674
+ "$id": "urn:uuid:b2bd7b34-a682-4b7b-8062-9885ceddc1e7",
675
+ "type": "string",
676
+ "ref": "entity",
677
+ "death": "keep",
678
+ "stamped": true,
679
+ "description": "who found it broken — kept as history when that entity is deleted"
680
+ },
681
+ "via": {
682
+ "$id": "urn:uuid:7edab9ff-7bed-4482-97ba-d31dce83253b",
683
+ "type": "string",
684
+ "ref": "entity",
685
+ "death": "keep",
686
+ "stamped": true,
687
+ "description": "what the write came in through — the session or client that made it"
688
+ },
689
+ "code": {
690
+ "$id": "urn:uuid:36ac541d-af64-4e7c-839a-d759dc2881e4",
691
+ "type": "string",
692
+ "description": "why the work was interrupted: transport, restart, superseded or a signal"
693
+ }
694
+ },
695
+ "description": "A request or call was cut off before it finished. Removing the mark allows a deliberate retry; its code records why it was interrupted."
696
+ },
697
+ "cancelled": {
698
+ "$id": "urn:uuid:91105b77-de14-4974-abc6-5dccf4e6a04c",
699
+ "component": true,
700
+ "type": "object",
701
+ "description": "the mark on something that was called off",
702
+ "properties": {
703
+ "at": {
704
+ "$id": "urn:uuid:8360e935-1530-4a05-a137-db8db8e6ce49",
705
+ "type": "string",
706
+ "format": "date-time",
707
+ "description": "when it was called off",
708
+ "stamped": true
709
+ },
710
+ "by": {
711
+ "$id": "urn:uuid:63e19a00-887f-4f59-bfe7-bbc43d085c5a",
712
+ "type": "string",
713
+ "ref": "entity",
714
+ "death": "keep",
715
+ "description": "who called it off — kept as history when that entity is deleted",
716
+ "stamped": true
717
+ },
718
+ "reason": {
719
+ "$id": "urn:uuid:557b5e7b-9aa3-4318-8d98-1926fcc9ba12",
720
+ "type": "string",
721
+ "description": "why it was called off"
722
+ },
723
+ "via": {
724
+ "$id": "urn:uuid:786c3acd-403a-45bf-b595-74157b8dd501",
725
+ "type": "string",
726
+ "ref": "entity",
727
+ "death": "keep",
728
+ "stamped": true,
729
+ "description": "what the write came in through — the session or client that made it"
730
+ }
731
+ }
732
+ },
733
+ "unchecked": {
734
+ "$id": "urn:uuid:90a5bfeb-60cc-42b4-99b6-fde216018a6d",
735
+ "component": true,
736
+ "type": "object",
737
+ "properties": {},
738
+ "description": "an entry awaiting a check against its sources; remove this mark once it has been checked"
739
+ }
740
+ },
741
+ "kinds": {
742
+ "comment": {
743
+ "$id": "urn:uuid:ca88d3f6-7480-4b59-a138-5b6e6c4467c9",
744
+ "description": "a comment on a thread: target is the entity it hangs on, reply_to the comment it answers; doc holds the text",
745
+ "with": {
746
+ "doc": true
747
+ },
748
+ "prefix": "C",
749
+ "examples": [
750
+ {
751
+ "comment": {
752
+ "target": "7c1e1f0a-3b5d-4c2e-9a41-2f6d8b0e5a13"
753
+ },
754
+ "doc": {
755
+ "body": "Done in the commit beside it"
756
+ }
757
+ }
758
+ ]
759
+ },
760
+ "redaction": {
761
+ "$id": "urn:uuid:6bc9a147-7b84-4981-8951-beb721ba8df5",
762
+ "description": "one property of one entity, replaced — the hash proves what was there without keeping it"
763
+ }
764
+ }
765
+ }