@yaks/session 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 (393) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +1392 -2
  3. package/_dist/admission.d.ts +15 -0
  4. package/_dist/admission.d.ts.map +1 -0
  5. package/_dist/announce.d.ts +17 -0
  6. package/_dist/announce.d.ts.map +1 -0
  7. package/_dist/answer.d.ts +200 -0
  8. package/_dist/answer.d.ts.map +1 -0
  9. package/_dist/append.d.ts +10 -0
  10. package/_dist/append.d.ts.map +1 -0
  11. package/_dist/archive.d.ts +6 -0
  12. package/_dist/archive.d.ts.map +1 -0
  13. package/_dist/asks.d.ts +11 -0
  14. package/_dist/asks.d.ts.map +1 -0
  15. package/_dist/audit.d.ts +15 -0
  16. package/_dist/audit.d.ts.map +1 -0
  17. package/_dist/bounce.d.ts +19 -0
  18. package/_dist/bounce.d.ts.map +1 -0
  19. package/_dist/bus.d.ts +8 -0
  20. package/_dist/bus.d.ts.map +1 -0
  21. package/_dist/cache.d.ts +45 -0
  22. package/_dist/cache.d.ts.map +1 -0
  23. package/_dist/child-notice.d.ts +6 -0
  24. package/_dist/child-notice.d.ts.map +1 -0
  25. package/_dist/children.d.ts +59 -0
  26. package/_dist/children.d.ts.map +1 -0
  27. package/_dist/cli.d.ts +8 -0
  28. package/_dist/cli.d.ts.map +1 -0
  29. package/_dist/comp.d.ts +9 -0
  30. package/_dist/comp.d.ts.map +1 -0
  31. package/_dist/compact.d.ts +19 -0
  32. package/_dist/compact.d.ts.map +1 -0
  33. package/_dist/conversation.d.ts +158 -0
  34. package/_dist/conversation.d.ts.map +1 -0
  35. package/_dist/cost.d.ts +13 -0
  36. package/_dist/cost.d.ts.map +1 -0
  37. package/_dist/deferred.d.ts +79 -0
  38. package/_dist/deferred.d.ts.map +1 -0
  39. package/_dist/ended.d.ts +27 -0
  40. package/_dist/ended.d.ts.map +1 -0
  41. package/_dist/files.d.ts +73 -0
  42. package/_dist/files.d.ts.map +1 -0
  43. package/_dist/fork.d.ts +23 -0
  44. package/_dist/fork.d.ts.map +1 -0
  45. package/_dist/graft.d.ts +33 -0
  46. package/_dist/graft.d.ts.map +1 -0
  47. package/_dist/graph.d.ts +14 -0
  48. package/_dist/graph.d.ts.map +1 -0
  49. package/_dist/handoff.d.ts +29 -0
  50. package/_dist/handoff.d.ts.map +1 -0
  51. package/_dist/imported.d.ts +63 -0
  52. package/_dist/imported.d.ts.map +1 -0
  53. package/_dist/intake.d.ts +43 -0
  54. package/_dist/intake.d.ts.map +1 -0
  55. package/_dist/joined.d.ts +35 -0
  56. package/_dist/joined.d.ts.map +1 -0
  57. package/_dist/lease.d.ts +21 -0
  58. package/_dist/lease.d.ts.map +1 -0
  59. package/_dist/lines.d.ts +13 -0
  60. package/_dist/lines.d.ts.map +1 -0
  61. package/_dist/mod.d.ts +107 -0
  62. package/_dist/mod.d.ts.map +1 -0
  63. package/_dist/naming.d.ts +10 -0
  64. package/_dist/naming.d.ts.map +1 -0
  65. package/_dist/native.d.ts +13 -0
  66. package/_dist/native.d.ts.map +1 -0
  67. package/_dist/parts.d.ts +145 -0
  68. package/_dist/parts.d.ts.map +1 -0
  69. package/_dist/plugin.d.ts +33 -0
  70. package/_dist/plugin.d.ts.map +1 -0
  71. package/_dist/project.d.ts +67 -0
  72. package/_dist/project.d.ts.map +1 -0
  73. package/_dist/prose.d.ts +7 -0
  74. package/_dist/prose.d.ts.map +1 -0
  75. package/_dist/providers.d.ts +36 -0
  76. package/_dist/providers.d.ts.map +1 -0
  77. package/_dist/reach.d.ts +39 -0
  78. package/_dist/reach.d.ts.map +1 -0
  79. package/_dist/react.d.ts +236 -0
  80. package/_dist/react.d.ts.map +1 -0
  81. package/_dist/readers.d.ts +221 -0
  82. package/_dist/readers.d.ts.map +1 -0
  83. package/_dist/reap.d.ts +21 -0
  84. package/_dist/reap.d.ts.map +1 -0
  85. package/_dist/recall.d.ts +32 -0
  86. package/_dist/recall.d.ts.map +1 -0
  87. package/_dist/routes.d.ts +15 -0
  88. package/_dist/routes.d.ts.map +1 -0
  89. package/_dist/run.d.ts +81 -0
  90. package/_dist/run.d.ts.map +1 -0
  91. package/_dist/service.d.ts +131 -0
  92. package/_dist/service.d.ts.map +1 -0
  93. package/_dist/source.d.ts +9 -0
  94. package/_dist/source.d.ts.map +1 -0
  95. package/_dist/start.d.ts +29 -0
  96. package/_dist/start.d.ts.map +1 -0
  97. package/_dist/state.d.ts +75 -0
  98. package/_dist/state.d.ts.map +1 -0
  99. package/_dist/status.d.ts +38 -0
  100. package/_dist/status.d.ts.map +1 -0
  101. package/_dist/tail.d.ts +121 -0
  102. package/_dist/tail.d.ts.map +1 -0
  103. package/_dist/timing.d.ts +9 -0
  104. package/_dist/timing.d.ts.map +1 -0
  105. package/_dist/told.d.ts +17 -0
  106. package/_dist/told.d.ts.map +1 -0
  107. package/_dist/tools.d.ts +41 -0
  108. package/_dist/tools.d.ts.map +1 -0
  109. package/_dist/transcript.d.ts +5 -0
  110. package/_dist/transcript.d.ts.map +1 -0
  111. package/_dist/turn.d.ts +49 -0
  112. package/_dist/turn.d.ts.map +1 -0
  113. package/_dist/unknown.d.ts +6 -0
  114. package/_dist/unknown.d.ts.map +1 -0
  115. package/_dist/views.d.ts +9 -0
  116. package/_dist/views.d.ts.map +1 -0
  117. package/_dist/vocab.d.ts +9 -0
  118. package/_dist/vocab.d.ts.map +1 -0
  119. package/_dist/wait.d.ts +15 -0
  120. package/_dist/wait.d.ts.map +1 -0
  121. package/_dist/wake.d.ts +116 -0
  122. package/_dist/wake.d.ts.map +1 -0
  123. package/_dist/watch.d.ts +52 -0
  124. package/_dist/watch.d.ts.map +1 -0
  125. package/_dist/who.d.ts +84 -0
  126. package/_dist/who.d.ts.map +1 -0
  127. package/_dist/window.d.ts +43 -0
  128. package/_dist/window.d.ts.map +1 -0
  129. package/admission.js +137 -0
  130. package/admission.js.map +1 -0
  131. package/admission.ts +164 -0
  132. package/announce.js +123 -0
  133. package/announce.js.map +1 -0
  134. package/announce.ts +126 -0
  135. package/answer.js +372 -0
  136. package/answer.js.map +1 -0
  137. package/answer.ts +426 -0
  138. package/append.js +125 -0
  139. package/append.js.map +1 -0
  140. package/append.ts +205 -0
  141. package/archive.js +62 -0
  142. package/archive.js.map +1 -0
  143. package/archive.ts +62 -0
  144. package/asks.js +80 -0
  145. package/asks.js.map +1 -0
  146. package/asks.ts +106 -0
  147. package/attempt.js +46 -0
  148. package/attempt.js.map +1 -0
  149. package/attempt.ts +60 -0
  150. package/audit.js +57 -0
  151. package/audit.js.map +1 -0
  152. package/audit.ts +65 -0
  153. package/bounce.js +29 -0
  154. package/bounce.js.map +1 -0
  155. package/bounce.ts +34 -0
  156. package/bus.js +568 -0
  157. package/bus.js.map +1 -0
  158. package/bus.ts +683 -0
  159. package/cache.js +169 -0
  160. package/cache.js.map +1 -0
  161. package/cache.ts +230 -0
  162. package/child-notice.js +128 -0
  163. package/child-notice.js.map +1 -0
  164. package/child-notice.ts +136 -0
  165. package/children.js +937 -0
  166. package/children.js.map +1 -0
  167. package/children.ts +925 -0
  168. package/claude-control.js +8 -0
  169. package/claude-control.js.map +1 -0
  170. package/claude-control.ts +12 -0
  171. package/cli.js +23 -0
  172. package/cli.js.map +1 -0
  173. package/cli.ts +28 -0
  174. package/comp.js +76 -0
  175. package/comp.js.map +1 -0
  176. package/comp.ts +78 -0
  177. package/compact.js +157 -0
  178. package/compact.js.map +1 -0
  179. package/compact.ts +209 -0
  180. package/compact_ask.js +280 -0
  181. package/compact_ask.js.map +1 -0
  182. package/compact_ask.ts +199 -0
  183. package/continue.js +131 -0
  184. package/continue.js.map +1 -0
  185. package/continue.ts +143 -0
  186. package/conversation.js +337 -0
  187. package/conversation.js.map +1 -0
  188. package/conversation.ts +593 -0
  189. package/cost.js +111 -0
  190. package/cost.js.map +1 -0
  191. package/cost.ts +93 -0
  192. package/deferred.js +207 -0
  193. package/deferred.js.map +1 -0
  194. package/deferred.ts +219 -0
  195. package/deno.json +1 -0
  196. package/dependencies.js +114 -0
  197. package/dependencies.js.map +1 -0
  198. package/dependencies.ts +110 -0
  199. package/draining.js +20 -0
  200. package/draining.js.map +1 -0
  201. package/draining.ts +26 -0
  202. package/ended.js +210 -0
  203. package/ended.js.map +1 -0
  204. package/ended.ts +225 -0
  205. package/files.js +285 -0
  206. package/files.js.map +1 -0
  207. package/files.ts +318 -0
  208. package/fork.js +96 -0
  209. package/fork.js.map +1 -0
  210. package/fork.ts +124 -0
  211. package/graft.js +97 -0
  212. package/graft.js.map +1 -0
  213. package/graft.ts +88 -0
  214. package/graph.js +49 -0
  215. package/graph.js.map +1 -0
  216. package/graph.ts +61 -0
  217. package/handoff.js +111 -0
  218. package/handoff.js.map +1 -0
  219. package/handoff.ts +147 -0
  220. package/help.js +432 -0
  221. package/help.js.map +1 -0
  222. package/help.ts +431 -0
  223. package/hooks.js +253 -0
  224. package/hooks.js.map +1 -0
  225. package/hooks.ts +333 -0
  226. package/imported.js +259 -0
  227. package/imported.js.map +1 -0
  228. package/imported.ts +201 -0
  229. package/inspect.js +353 -0
  230. package/inspect.js.map +1 -0
  231. package/inspect.ts +378 -0
  232. package/intake.js +115 -0
  233. package/intake.js.map +1 -0
  234. package/intake.ts +124 -0
  235. package/joined.js +67 -0
  236. package/joined.js.map +1 -0
  237. package/joined.ts +69 -0
  238. package/lease.js +146 -0
  239. package/lease.js.map +1 -0
  240. package/lease.ts +151 -0
  241. package/lifecycle.js +49 -0
  242. package/lifecycle.js.map +1 -0
  243. package/lifecycle.ts +46 -0
  244. package/lines.js +171 -0
  245. package/lines.js.map +1 -0
  246. package/lines.ts +177 -0
  247. package/listen.js +604 -0
  248. package/listen.js.map +1 -0
  249. package/listen.ts +976 -0
  250. package/log.js +78 -0
  251. package/log.js.map +1 -0
  252. package/log.ts +88 -0
  253. package/mod.js +107 -0
  254. package/mod.js.map +1 -0
  255. package/mod.ts +113 -0
  256. package/name.js +51 -0
  257. package/name.js.map +1 -0
  258. package/name.ts +84 -0
  259. package/naming.js +96 -0
  260. package/naming.js.map +1 -0
  261. package/naming.ts +102 -0
  262. package/native.js +17 -0
  263. package/native.js.map +1 -0
  264. package/native.ts +17 -0
  265. package/package.json +133 -4
  266. package/parts.js +334 -0
  267. package/parts.js.map +1 -0
  268. package/parts.ts +383 -0
  269. package/plugin.js +77 -0
  270. package/plugin.js.map +1 -0
  271. package/plugin.ts +98 -0
  272. package/project.js +354 -0
  273. package/project.js.map +1 -0
  274. package/project.ts +407 -0
  275. package/prompt.js +57 -0
  276. package/prompt.js.map +1 -0
  277. package/prompt.ts +92 -0
  278. package/prose.js +43 -0
  279. package/prose.js.map +1 -0
  280. package/prose.ts +63 -0
  281. package/providers.js +279 -0
  282. package/providers.js.map +1 -0
  283. package/providers.ts +306 -0
  284. package/pruning.js +80 -0
  285. package/pruning.js.map +1 -0
  286. package/pruning.ts +147 -0
  287. package/reach.js +923 -0
  288. package/reach.js.map +1 -0
  289. package/reach.ts +1107 -0
  290. package/react.js +2259 -0
  291. package/react.js.map +1 -0
  292. package/react.ts +2864 -0
  293. package/readers.js +956 -0
  294. package/readers.js.map +1 -0
  295. package/readers.ts +1017 -0
  296. package/reap.js +60 -0
  297. package/reap.js.map +1 -0
  298. package/reap.ts +65 -0
  299. package/recall.js +67 -0
  300. package/recall.js.map +1 -0
  301. package/recall.ts +114 -0
  302. package/reopen.js +45 -0
  303. package/reopen.js.map +1 -0
  304. package/reopen.ts +44 -0
  305. package/result-entry.js +32 -0
  306. package/result-entry.js.map +1 -0
  307. package/result-entry.ts +34 -0
  308. package/resume.js +266 -0
  309. package/resume.js.map +1 -0
  310. package/resume.ts +283 -0
  311. package/routes.js +129 -0
  312. package/routes.js.map +1 -0
  313. package/routes.ts +147 -0
  314. package/routine.js +179 -0
  315. package/routine.js.map +1 -0
  316. package/routine.ts +191 -0
  317. package/run.js +932 -0
  318. package/run.js.map +1 -0
  319. package/run.ts +999 -0
  320. package/service.js +806 -0
  321. package/service.js.map +1 -0
  322. package/service.ts +911 -0
  323. package/source.js +26 -0
  324. package/source.js.map +1 -0
  325. package/source.ts +40 -0
  326. package/start.js +197 -0
  327. package/start.js.map +1 -0
  328. package/start.ts +214 -0
  329. package/state.js +247 -0
  330. package/state.js.map +1 -0
  331. package/state.ts +404 -0
  332. package/status.js +1222 -0
  333. package/status.js.map +1 -0
  334. package/status.ts +1555 -0
  335. package/status_bench.ts +50 -0
  336. package/statusline.js +187 -0
  337. package/statusline.js.map +1 -0
  338. package/statusline.ts +232 -0
  339. package/tail.js +748 -0
  340. package/tail.js.map +1 -0
  341. package/tail.ts +815 -0
  342. package/talk.js +58 -0
  343. package/talk.js.map +1 -0
  344. package/talk.ts +51 -0
  345. package/task-context.js +41 -0
  346. package/task-context.js.map +1 -0
  347. package/task-context.ts +53 -0
  348. package/texted.js +65 -0
  349. package/texted.js.map +1 -0
  350. package/texted.ts +65 -0
  351. package/timing.js +37 -0
  352. package/timing.js.map +1 -0
  353. package/timing.ts +52 -0
  354. package/told.js +56 -0
  355. package/told.js.map +1 -0
  356. package/told.ts +54 -0
  357. package/tools.js +595 -0
  358. package/tools.js.map +1 -0
  359. package/tools.ts +633 -0
  360. package/transcript.js +34 -0
  361. package/transcript.js.map +1 -0
  362. package/transcript.ts +41 -0
  363. package/turn.js +47 -0
  364. package/turn.js.map +1 -0
  365. package/turn.ts +68 -0
  366. package/unknown.js +8 -0
  367. package/unknown.js.map +1 -0
  368. package/unknown.ts +9 -0
  369. package/views.js +15 -0
  370. package/views.js.map +1 -0
  371. package/views.ts +21 -0
  372. package/vocab.js +24 -0
  373. package/vocab.js.map +1 -0
  374. package/vocab.json +1573 -0
  375. package/vocab.ts +30 -0
  376. package/wait.js +30 -0
  377. package/wait.js.map +1 -0
  378. package/wait.ts +45 -0
  379. package/wake.js +552 -0
  380. package/wake.js.map +1 -0
  381. package/wake.ts +597 -0
  382. package/watch.js +520 -0
  383. package/watch.js.map +1 -0
  384. package/watch.ts +596 -0
  385. package/who.js +309 -0
  386. package/who.js.map +1 -0
  387. package/who.ts +347 -0
  388. package/window.js +179 -0
  389. package/window.js.map +1 -0
  390. package/window.ts +268 -0
  391. package/woken.js +129 -0
  392. package/woken.js.map +1 -0
  393. package/woken.ts +127 -0
package/vocab.json ADDED
@@ -0,0 +1,1573 @@
1
+ {
2
+ "$id": "urn:uuid:52aeacd1-1165-45d2-aff2-6b8d9836f695",
3
+ "$vocabulary": {
4
+ "https://yak.sh/vocab/core": true,
5
+ "https://yak.sh/vocab/id": true,
6
+ "https://yak.sh/vocab/blob": true,
7
+ "https://yak.sh/vocab/kernel": true
8
+ },
9
+ "title": "session",
10
+ "$defs": {
11
+ "announced": {
12
+ "$id": "urn:uuid:e6c62acc-12ee-4a33-a9f5-8f835ab674d2",
13
+ "component": true,
14
+ "journal": false,
15
+ "wire": false,
16
+ "embed": false,
17
+ "type": "object",
18
+ "description": "A harness hook's pairing of an MCP tool call with the session making it, shared by every serving process until the result is reported.",
19
+ "properties": {
20
+ "call": {
21
+ "$id": "urn:uuid:ece2abdb-5c91-4e9f-a4da-c168929f0f3f",
22
+ "type": "string",
23
+ "identity": true,
24
+ "description": "the harness's tool use id, carried in the MCP message metadata"
25
+ },
26
+ "session": {
27
+ "$id": "urn:uuid:ca1a7405-270f-4ed2-a60a-40003cb88c99",
28
+ "type": "string",
29
+ "ref": "session",
30
+ "death": "cascade",
31
+ "description": "the session making this call"
32
+ }
33
+ }
34
+ },
35
+ "input_context": {
36
+ "$id": "urn:uuid:33ad4b8e-55e6-4b37-8922-c47b6b2c4d00",
37
+ "component": true,
38
+ "journal": false,
39
+ "type": "object",
40
+ "wire": false,
41
+ "embed": false,
42
+ "description": "Historical context snapshot retained beside a transcript input for inspection; excluded from model requests.",
43
+ "properties": {
44
+ "items": {
45
+ "$id": "urn:uuid:661b7b47-cde8-4664-bd27-0a71a4a0e0f5",
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "additionalProperties": true
50
+ },
51
+ "stamped": true,
52
+ "description": "Stored provider-neutral context items; an empty list records that no context was found."
53
+ }
54
+ }
55
+ },
56
+ "ask": {
57
+ "$id": "urn:uuid:48fdd23c-edee-481a-9523-a14d64bac519",
58
+ "component": true,
59
+ "journal": false,
60
+ "type": "object",
61
+ "description": "the model was asked here, from the prefix ending at `through`; what the provider keeps about it is stored in that provider's own component beside this one",
62
+ "properties": {
63
+ "to": {
64
+ "$id": "urn:uuid:7f8f8b43-6aeb-423a-9626-deaed20871a9",
65
+ "type": "string",
66
+ "ref": "model",
67
+ "death": "keep",
68
+ "description": "the model entity asked"
69
+ },
70
+ "served": {
71
+ "$id": "urn:uuid:f4cd8feb-d3a0-416b-9c09-fdd5ebd3acf0",
72
+ "type": "string",
73
+ "ref": "model",
74
+ "death": "keep",
75
+ "description": "the model entity that answered, where its reply names one other than `to`: a Claude Code alias such as `fable` is answered by a release such as `claude-fable-5-2`, and the release is what has a price"
76
+ },
77
+ "through": {
78
+ "$id": "urn:uuid:64ff9232-96ff-4d0c-9265-c9e7e7f8fce6",
79
+ "type": "string",
80
+ "ref": "entry",
81
+ "death": "keep",
82
+ "description": "the last entry of the prefix it was asked with"
83
+ },
84
+ "pruning": {
85
+ "$id": "urn:uuid:d52bd9d5-665a-4bc6-9262-b49626cc6590",
86
+ "type": "string",
87
+ "description": "archive-mark fingerprint of the context sent or summarized; a changed archive or restore invalidates this snapshot"
88
+ },
89
+ "elided_before": {
90
+ "$id": "urn:uuid:db21aa7f-51f4-4b19-b57c-ff563a0b0891",
91
+ "type": "integer",
92
+ "description": "transcript position before which this request omitted old turn context and answered calls and reports after the provider cache expired"
93
+ }
94
+ }
95
+ },
96
+ "context_parts": {
97
+ "$id": "urn:uuid:473dea01-99f7-4202-9c46-82fd61fe4217",
98
+ "component": true,
99
+ "journal": false,
100
+ "wire": false,
101
+ "embed": false,
102
+ "type": "object",
103
+ "description": "where one model request's tokens went, beside its `usage`: each part of its context, and each large entry in it, with its tokens as they were paid (read from the provider cache, written to it, sent fresh, generated). The totals are the provider's; the split across parts is estimated from their sizes. The fixed part every request carries is one part, `fixed`, whose pieces are the session's `fixed`",
104
+ "properties": {
105
+ "parts": {
106
+ "$id": "urn:uuid:408abd5d-a469-4e45-baab-ca2ad2411d48",
107
+ "type": "object",
108
+ "additionalProperties": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "integer"
112
+ },
113
+ "minItems": 4,
114
+ "maxItems": 4
115
+ },
116
+ "stamped": true,
117
+ "description": "tokens by part: `fixed`, `input`, `notice`, `output`, `reasoning`, `checkpoint`, `call <tool>`, `result <tool>`, each as [read, write, fresh, generated]"
118
+ },
119
+ "entries": {
120
+ "$id": "urn:uuid:2296ca4e-fa92-446d-89b4-95cd714c200b",
121
+ "type": "object",
122
+ "additionalProperties": {
123
+ "type": "array",
124
+ "items": {
125
+ "type": "integer"
126
+ },
127
+ "minItems": 4,
128
+ "maxItems": 4
129
+ },
130
+ "stamped": true,
131
+ "description": "the same, for each entry of the context large enough to be named on its own, by its eid"
132
+ }
133
+ }
134
+ },
135
+ "fixed": {
136
+ "$id": "urn:uuid:6ac6fd65-42a9-4697-9135-ff1976dcb89c",
137
+ "component": true,
138
+ "journal": false,
139
+ "wire": false,
140
+ "embed": false,
141
+ "type": "object",
142
+ "description": "what every model request of a session carries before its conversation, piece by piece in prompt order, each sized in characters: the harness's system prompt, each tool's schema, the instructions and each part of the persona, the skills, tools and agents it lists, and `unseen` for what its log never showed",
143
+ "properties": {
144
+ "parts": {
145
+ "$id": "urn:uuid:f860f031-4260-4d99-8f1e-872b352b57b3",
146
+ "type": "object",
147
+ "additionalProperties": {
148
+ "type": "integer"
149
+ },
150
+ "stamped": true,
151
+ "description": "characters by piece: `system`, `tool <name>`, `persona <id>`, `instructions <file>`, `skills`, `mcp instructions`, `deferred tools`, `agent listing`, `unseen`"
152
+ }
153
+ }
154
+ },
155
+ "attempt": {
156
+ "$id": "urn:uuid:4852a227-7f6e-40a1-84ec-85866f124798",
157
+ "component": true,
158
+ "description": "A provider request held while in flight; its state is computed from the holder and interruption mark. An unfinished dispatched request is ambiguous on restart.",
159
+ "properties": {
160
+ "state": {
161
+ "$id": "urn:uuid:1f9f93fc-c969-47c8-ac31-64ee2fe62c4f",
162
+ "type": "string",
163
+ "enum": [
164
+ "inflight",
165
+ "completed",
166
+ "interrupted"
167
+ ],
168
+ "index": true,
169
+ "description": "The lifecycle derived from its interruption mark, holder and recorded answers.",
170
+ "computed": true
171
+ },
172
+ "by": {
173
+ "$id": "urn:uuid:4c40e524-1fc8-4e63-a4f3-ff8d94effb22",
174
+ "type": "string",
175
+ "ref": "entity",
176
+ "death": "keep",
177
+ "description": "the process or server holding the provider request"
178
+ }
179
+ }
180
+ },
181
+ "attention": {
182
+ "$id": "urn:uuid:0b79e5a7-1a6a-467d-97da-e5303b3adc04",
183
+ "component": true,
184
+ "journal": false,
185
+ "type": "object",
186
+ "properties": {
187
+ "worker": {
188
+ "$id": "urn:uuid:0976f00a-47ad-44a7-b1bb-72178b9e8992",
189
+ "type": "string",
190
+ "ref": "session",
191
+ "death": "keep",
192
+ "description": "the session the item this entry says was written through, where this transcript started it (`spawned.parent`): its worker’s report, never a person’s words"
193
+ }
194
+ },
195
+ "description": "an entry to be read before the next ask: what the session bus says to a native transcript"
196
+ },
197
+ "hooked": {
198
+ "$id": "urn:uuid:d66d8918-a257-4923-bacf-d9796cd1e61a",
199
+ "component": true,
200
+ "journal": false,
201
+ "type": "object",
202
+ "properties": {},
203
+ "description": "on a session: its harness reports the tool calls of its own line of work to the hook door (POST /session/hook), where the bus says what the session is owed. Every context the harness runs shares the session’s id, so a tool reply never says it"
204
+ },
205
+ "brief": {
206
+ "$id": "urn:uuid:0c4d918d-783e-45c7-bca8-87299abe5a4c",
207
+ "component": true,
208
+ "type": "object",
209
+ "properties": {
210
+ "text": {
211
+ "$id": "urn:uuid:092146f1-342d-4e37-8cb4-ad1edb348768",
212
+ "type": "string",
213
+ "store": "blob"
214
+ }
215
+ },
216
+ "description": "the session’s own account of itself, written at the end and quoted in the next one"
217
+ },
218
+ "cancel": {
219
+ "$id": "urn:uuid:edbdc48b-3091-4dca-a9ba-05fb1079fb4b",
220
+ "component": true,
221
+ "type": "object",
222
+ "properties": {
223
+ "target": {
224
+ "$id": "urn:uuid:0ab0830e-201f-4c16-8580-7af0a7ab8cd2",
225
+ "type": "string",
226
+ "ref": "entity",
227
+ "death": "keep"
228
+ }
229
+ },
230
+ "description": "an entry that withdraws an earlier one"
231
+ },
232
+ "checkpoint": {
233
+ "$id": "urn:uuid:498f3d99-7619-472b-a72b-034526872233",
234
+ "component": true,
235
+ "journal": false,
236
+ "type": "object",
237
+ "properties": {
238
+ "through": {
239
+ "$id": "urn:uuid:76c6c152-6920-45ae-befa-12b36b30b28e",
240
+ "type": "string",
241
+ "ref": "entry",
242
+ "death": "keep"
243
+ },
244
+ "seq": {
245
+ "$id": "urn:uuid:a937d0d1-9c8a-4b61-95b8-92efaf4d4921",
246
+ "type": "integer",
247
+ "description": "position of the last summarized entry, kept if that imported entry is later trimmed"
248
+ },
249
+ "overflow": {
250
+ "$id": "urn:uuid:59041d5f-5c81-4081-b620-84c18f89dfd4",
251
+ "type": "string",
252
+ "ref": "ask",
253
+ "death": "keep",
254
+ "description": "the request refused for length that forced this checkpoint; only one compacted retry follows it"
255
+ },
256
+ "tasks": {
257
+ "$id": "urn:uuid:53d0cca1-bed9-46e4-952d-2c8007ae3417",
258
+ "type": "object",
259
+ "additionalProperties": {
260
+ "type": "object",
261
+ "properties": {
262
+ "title": {
263
+ "type": "string"
264
+ },
265
+ "body": {
266
+ "type": "string"
267
+ }
268
+ },
269
+ "additionalProperties": false
270
+ },
271
+ "description": "claimed task specifications frozen at this boundary, keyed by entity id"
272
+ },
273
+ "pruning": {
274
+ "$id": "urn:uuid:0237efcf-94f4-441a-914a-de2e2e0ea3a2",
275
+ "type": "string",
276
+ "description": "archive-mark fingerprint of the context sent or summarized; a changed archive or restore invalidates this snapshot"
277
+ }
278
+ },
279
+ "description": "everything through this entry is settled: a compaction boundary"
280
+ },
281
+ "task_context": {
282
+ "$id": "urn:uuid:4984b03b-ba84-4327-8003-ad59ceac3837",
283
+ "component": true,
284
+ "journal": false,
285
+ "type": "object",
286
+ "properties": {
287
+ "checkpoint": {
288
+ "$id": "urn:uuid:f8bf23f6-402a-4f15-af20-ff8879c3bb2f",
289
+ "type": "string",
290
+ "ref": "checkpoint",
291
+ "death": "keep"
292
+ },
293
+ "tasks": {
294
+ "$id": "urn:uuid:4cdf76c6-dced-4cbf-af57-5bd8faae69b9",
295
+ "type": "object",
296
+ "additionalProperties": {
297
+ "type": "object",
298
+ "properties": {
299
+ "title": {
300
+ "type": "string"
301
+ },
302
+ "body": {
303
+ "type": "string"
304
+ }
305
+ },
306
+ "additionalProperties": false
307
+ },
308
+ "description": "claimed task specifications frozen at this boundary, keyed by entity id"
309
+ }
310
+ },
311
+ "description": "an admitted change to claimed task specifications, appended as passive context after its checkpoint; content carries the exact changes"
312
+ },
313
+ "claim": {
314
+ "$id": "urn:uuid:98fb4755-143d-4baa-a124-654f271a2a7c",
315
+ "component": true,
316
+ "journal": false,
317
+ "type": "object",
318
+ "description": "an exclusive claim on the entity it is stored on, held by a harness session or a shared app actor",
319
+ "properties": {
320
+ "session": {
321
+ "$id": "urn:uuid:7b17c220-b6d9-4d24-80e8-36b122b62a21",
322
+ "type": "string",
323
+ "ref": "session",
324
+ "death": "release",
325
+ "description": "the session holding it — when that session’s entity dies the lock goes and the entity lives"
326
+ },
327
+ "by": {
328
+ "$id": "urn:uuid:aa935773-02d6-4bf4-96a1-db5a6d0cb5f6",
329
+ "type": "string",
330
+ "ref": "entity",
331
+ "death": "release",
332
+ "description": "the durable actor holding a shared app claim"
333
+ },
334
+ "until": {
335
+ "$id": "urn:uuid:37045a18-45c0-49a1-921a-47ebc8b1472a",
336
+ "type": "string",
337
+ "format": "date-time",
338
+ "description": "when a shared app claim becomes available again"
339
+ },
340
+ "token": {
341
+ "$id": "urn:uuid:4187688f-9499-47e9-ba79-2e232eab613e",
342
+ "type": "string",
343
+ "description": "a new identifier each time a shared app claim is taken or renewed"
344
+ },
345
+ "at": {
346
+ "$id": "urn:uuid:ade50e9e-f2a6-46c1-b072-3246cf6fb23f",
347
+ "type": "string",
348
+ "format": "date-time",
349
+ "stamped": true,
350
+ "description": "when it was taken — stamped when the lock is new"
351
+ }
352
+ }
353
+ },
354
+ "task": {
355
+ "component": true,
356
+ "extends": true,
357
+ "type": "object",
358
+ "description": "a task a session holds is being worked on: a held claim reads `wip`, below the marks that end it",
359
+ "status": {
360
+ "claim": "wip"
361
+ }
362
+ },
363
+ "conflict": {
364
+ "$id": "urn:uuid:e87275ea-fcfd-4da4-a6b7-1c9d8a7e35de",
365
+ "component": true,
366
+ "journal": false,
367
+ "type": "object",
368
+ "description": "two sessions wanted one thing: written after the refusal, never by a client",
369
+ "properties": {
370
+ "target": {
371
+ "$id": "urn:uuid:4a274cc9-d9d7-4405-a854-d8c5b20f5705",
372
+ "type": "string",
373
+ "ref": "entity",
374
+ "death": "keep",
375
+ "stamped": true,
376
+ "description": "the contested entity"
377
+ },
378
+ "loser": {
379
+ "$id": "urn:uuid:d2e84580-c13b-4ff1-a793-c9008541d29f",
380
+ "type": "string",
381
+ "ref": "session",
382
+ "death": "keep",
383
+ "stamped": true,
384
+ "description": "the session whose write was refused"
385
+ },
386
+ "holder": {
387
+ "$id": "urn:uuid:47d99067-7e21-4156-96c5-c38792c94999",
388
+ "type": "string",
389
+ "ref": "session",
390
+ "death": "keep",
391
+ "stamped": true,
392
+ "description": "the session that already held the lock"
393
+ },
394
+ "at": {
395
+ "$id": "urn:uuid:82950d77-02ba-4174-a5a6-6d0bcc6681f8",
396
+ "type": "string",
397
+ "format": "date-time",
398
+ "stamped": true,
399
+ "description": "when they collided"
400
+ }
401
+ }
402
+ },
403
+ "dispatch": {
404
+ "$id": "urn:uuid:ea9fc4e5-f7d6-4305-ad2c-2f624845dd04",
405
+ "component": true,
406
+ "journal": false,
407
+ "type": "object",
408
+ "description": "a child's place under the concurrency bound; settling removes it",
409
+ "properties": {
410
+ "state": {
411
+ "$id": "urn:uuid:a1e82dcf-a9f3-45d0-9c2c-3fa6b396f213",
412
+ "type": "string",
413
+ "index": true,
414
+ "description": "Legacy compatibility during the dispatch marks expansion; removed after the deferred cutover. Indexed because a settled legacy child keeps its dispatch, and admission seeks past them (./admission.ts)."
415
+ },
416
+ "args": {
417
+ "$id": "urn:uuid:be10ceb7-870b-43a1-88f3-c6cb1fb96a1f",
418
+ "type": "string"
419
+ },
420
+ "order": {
421
+ "$id": "urn:uuid:41540db0-94f7-43a0-b35f-9ed6f8e259e1",
422
+ "type": "number"
423
+ }
424
+ },
425
+ "status": {
426
+ "waiting": "waiting",
427
+ "admitted": "active",
428
+ "default": "queued"
429
+ }
430
+ },
431
+ "entry": {
432
+ "$id": "urn:uuid:ab7e4a3b-0423-4e6c-bc81-294c8a1a838d",
433
+ "component": true,
434
+ "type": "object",
435
+ "notice": true,
436
+ "lazy": true,
437
+ "unique": [
438
+ [
439
+ "session",
440
+ "seq"
441
+ ]
442
+ ],
443
+ "description": "one entry of a transcript; the component stored beside it is its kind; every model-bound message names its source independently of its provider turn role. Only the person’s own words are their user input",
444
+ "search": [
445
+ "content.body"
446
+ ],
447
+ "properties": {
448
+ "session": {
449
+ "$id": "urn:uuid:f0fcc3a6-73f1-429d-9505-f0766e4275fe",
450
+ "type": "string",
451
+ "index": true,
452
+ "ref": "session",
453
+ "death": "cascade",
454
+ "description": "the transcript it belongs to"
455
+ },
456
+ "seq": {
457
+ "$id": "urn:uuid:48d50175-fcaa-4ac7-9765-197b66c5d1b0",
458
+ "type": "number",
459
+ "description": "Positive integer position; omit on append to allocate atomically. Explicit fractional or occupied positions are refused."
460
+ },
461
+ "from": {
462
+ "$id": "urn:uuid:a7f631c0-55c9-4113-a9a6-727a2190a32a",
463
+ "type": "string",
464
+ "description": "Who wrote these words, rendered as From <from> by generic prompt assembly for every provider: the system, checkpoint summarizer, parent session, helper, TaskMaster or named person. Set for injected messages; never impersonate the person through created.by. Older rows infer their source from transcript components and writer stamps."
465
+ }
466
+ }
467
+ },
468
+ "intake": {
469
+ "$id": "urn:uuid:122aa2dc-b415-4881-bb61-517685964ae3",
470
+ "component": true,
471
+ "type": "object",
472
+ "description": "on an input, where its words came from: the request, letter, comment or knock they say. A session takes an item's words once (@yaks/session/intake `take`), and the files they came with are attached to the item. Kept beside the entry, not in it, so a transcript's hot reads stay as narrow as they were",
473
+ "properties": {
474
+ "item": {
475
+ "$id": "urn:uuid:dce8a781-dd49-45b0-915c-543a62d57cd4",
476
+ "type": "string",
477
+ "description": "The item's eid. Not a reference, so `.entries` stays the transcript's reverse name and an item's death keeps its words."
478
+ },
479
+ "source": {
480
+ "$id": "urn:uuid:7d00ca39-cc20-4841-b480-bd75e027a9f8",
481
+ "type": "string",
482
+ "description": "Supplied (an empty string on every new input) when the input body carries its words apart from channel framing. An older input named here the address of a `message.txt` attachment that kept its words a second time."
483
+ }
484
+ }
485
+ },
486
+ "channel": {
487
+ "$id": "urn:uuid:2dedc33e-30cd-44b7-b157-63cea9820689",
488
+ "component": true,
489
+ "type": "object",
490
+ "description": "on an input, how its words came: the channel they came by, and the framing said before them to the model, which a conversation draws as the channel's icon",
491
+ "properties": {
492
+ "name": {
493
+ "$id": "urn:uuid:f842f8e3-2315-40f7-b5c1-9208da2871dd",
494
+ "type": "string",
495
+ "index": true,
496
+ "description": "The channel: chat, email, text, voice, or another the host names."
497
+ },
498
+ "framing": {
499
+ "$id": "urn:uuid:afe2e32f-e15d-4661-b3ef-e0caaf34d1e1",
500
+ "type": "string",
501
+ "description": "What the model reads before the words, saying how they came."
502
+ }
503
+ }
504
+ },
505
+ "fork": {
506
+ "$id": "urn:uuid:2e2c04e1-b569-484d-8f25-1be46c59b452",
507
+ "component": true,
508
+ "type": "object",
509
+ "description": "this session continues another transcript from one of its entries",
510
+ "properties": {
511
+ "from": {
512
+ "$id": "urn:uuid:45cec7f7-4e4f-455d-9e60-ddb49a3930fe",
513
+ "type": "string",
514
+ "ref": "entry",
515
+ "death": "keep",
516
+ "description": "the entry this fork continues from: the parent's entries up to it are this transcript's prefix"
517
+ },
518
+ "request": {
519
+ "$id": "urn:uuid:6c9128a0-aff9-41c4-87a1-050bcf3f6950",
520
+ "type": "string",
521
+ "ref": "entry",
522
+ "death": "keep",
523
+ "description": "the original request this fork is working on"
524
+ },
525
+ "elided_before": {
526
+ "$id": "urn:uuid:135ef309-a37e-4df5-b9b9-c3dddac872c0",
527
+ "type": "integer",
528
+ "description": "The parent's cold elision boundary when this fork was started."
529
+ }
530
+ }
531
+ },
532
+ "transcript": {
533
+ "$id": "urn:uuid:592f4c86-2f6a-4b12-b689-b3f81fbc6cba",
534
+ "component": true,
535
+ "journal": false,
536
+ "type": "object",
537
+ "properties": {
538
+ "session": {
539
+ "$id": "urn:uuid:1ea27454-dad0-4794-b4f2-99ac0c91b7ac",
540
+ "type": "string",
541
+ "ref": "session",
542
+ "death": "release",
543
+ "stamped": true,
544
+ "description": "the session it is read into; when that session dies its transcript goes and the file stays"
545
+ },
546
+ "consumed": {
547
+ "$id": "urn:uuid:1291e91b-b3e6-4c9e-97e6-4006d3c73573",
548
+ "type": "number",
549
+ "stamped": true,
550
+ "description": "how many of its lines the importer has read; where a resume begins"
551
+ },
552
+ "version": {
553
+ "$id": "urn:uuid:309c1fda-b82b-4e36-949e-77f91b1adf61",
554
+ "type": "string",
555
+ "stamped": true,
556
+ "description": "file size and modification time of the immutable source being consumed; a changed version restarts its line cursor"
557
+ },
558
+ "finished": {
559
+ "$id": "urn:uuid:579bfb6b-3b09-448b-95f8-ad54dedbae79",
560
+ "type": "string",
561
+ "stamped": true,
562
+ "description": "the immutable source version fully consumed after successful decoder EOF; its file size and modification time, so changed bytes reopen it"
563
+ }
564
+ },
565
+ "description": "a file that holds a session's transcript, as the harness that ran it wrote it, and how far the importer has read it into the session. It sits on the file (@yaks/file), and each entry read from it wears the line it came from as `lines{file, start}`"
566
+ },
567
+ "system": {
568
+ "$id": "urn:uuid:4e91380f-194d-4c46-a15f-ffb2483ed774",
569
+ "component": true,
570
+ "type": "object",
571
+ "properties": {},
572
+ "description": "on an input: words the platform wrote into the transcript, such as a recovery after an interrupted response or an error to fix, never a person's. The model reads it as any input, labeled as from the system; a conversation draws it as the system's"
573
+ },
574
+ "heard": {
575
+ "$id": "urn:uuid:e7a90dcd-3cf0-4fbf-95d1-fe1b5339f82f",
576
+ "component": true,
577
+ "type": "object",
578
+ "properties": {},
579
+ "description": "on an entry, a tool's result, or a child's report to its parent once any of its own entries carries it: what it brought was written by someone the session does not work for, such as a stranger's letter or rows a visitor wrote, read directly or inside a code_mode script. A host also stamps it on what a turn so steered leaves behind, such as a wake it set, so what that starts is steered too. Until the person speaks again, the turn is steered (steered), and a host has its privileged acts wait for their tap"
580
+ },
581
+ "notice": {
582
+ "$id": "urn:uuid:1ed038b3-d346-4372-af69-826668fe4e06",
583
+ "component": true,
584
+ "journal": false,
585
+ "type": "object",
586
+ "description": "passive transcript context, included in the next ask without requesting one",
587
+ "properties": {
588
+ "child": {
589
+ "$id": "urn:uuid:d93e5aa4-2fd6-4b59-995e-a7b495fcfe4a",
590
+ "type": "string",
591
+ "ref": "session",
592
+ "death": "keep"
593
+ },
594
+ "task": {
595
+ "$id": "urn:uuid:4f3abbd7-1ae1-44c0-95af-3e992cc35cef",
596
+ "type": "string",
597
+ "description": "the task that prompted this notice"
598
+ },
599
+ "own": {
600
+ "$id": "urn:uuid:bd22b257-c16a-45f1-88c7-e6d105ea5de8",
601
+ "type": "boolean",
602
+ "description": "words spoken outside this model's turn by its voice on a call; prompt assembly labels the voice as their source rather than presenting them as this model's output"
603
+ },
604
+ "display_only": {
605
+ "$id": "urn:uuid:93ce1b0d-474b-4b19-9aec-5d843c1142c0",
606
+ "type": "boolean",
607
+ "description": "The entry is visible in chat and omitted from model context."
608
+ },
609
+ "moved_from": {
610
+ "$id": "urn:uuid:2d1f4f67-72ec-4455-a69a-fc36bae5317a",
611
+ "type": "string",
612
+ "ref": "provider",
613
+ "death": "keep",
614
+ "description": "the provider whose plan ran out during this turn"
615
+ }
616
+ }
617
+ },
618
+ "reasoning": {
619
+ "$id": "urn:uuid:f736debe-ea2d-40a3-abf0-953ba382a4fc",
620
+ "component": true,
621
+ "type": "object",
622
+ "properties": {},
623
+ "description": "an entry the model reasoned with rather than returned"
624
+ },
625
+ "resume": {
626
+ "$id": "urn:uuid:30dd5ec0-fc86-4c58-be8b-43fc7afee5d1",
627
+ "component": true,
628
+ "type": "object",
629
+ "properties": {
630
+ "actor": {
631
+ "$id": "urn:uuid:bf98d483-f84f-4aa8-9874-107a1ffbf5d4",
632
+ "type": "string",
633
+ "ref": "entity",
634
+ "death": "keep",
635
+ "stamped": true
636
+ },
637
+ "at": {
638
+ "$id": "urn:uuid:0564ada0-e98b-4991-8d8c-067a3c02ff8e",
639
+ "type": "string",
640
+ "format": "date-time",
641
+ "stamped": true
642
+ },
643
+ "rank": {
644
+ "$id": "urn:uuid:9b6a330d-6c45-4dbb-ad65-3ccefb94f4f2",
645
+ "type": "number",
646
+ "stamped": true
647
+ }
648
+ },
649
+ "description": "set aside by an actor to come back to, with its place in the stack"
650
+ },
651
+ "session": {
652
+ "$id": "urn:uuid:f9e68f04-f407-4bf7-9f03-3c62adc7dcf8",
653
+ "component": true,
654
+ "type": "object",
655
+ "description": "a transcript something reacts to. Its chosen persona is kept here; what it is doing is read off its entries (`status`), where it runs is @yaks/process `process`, and what it was asked for is the `using` on its first entry",
656
+ "properties": {
657
+ "id": {
658
+ "$id": "urn:uuid:8ab19654-e167-4187-bd3c-70475c7771f9",
659
+ "type": "string",
660
+ "index": true,
661
+ "description": "the runner’s own id for it"
662
+ },
663
+ "actor": {
664
+ "$id": "urn:uuid:64bc9e06-a5a1-4c6e-a588-f4d8a9cc3b15",
665
+ "type": "string",
666
+ "ref": "entity",
667
+ "death": "detach",
668
+ "description": "who it speaks as — the identity that survives a /clear, where `created.via` is the run"
669
+ },
670
+ "source": {
671
+ "$id": "urn:uuid:fb88e974-4a5f-4656-b78f-e8797b628c9e",
672
+ "type": "string",
673
+ "ref": "entity",
674
+ "death": "keep",
675
+ "description": "the request that opened this transcript, when it has one"
676
+ },
677
+ "persona": {
678
+ "$id": "urn:uuid:763380f9-715f-4a07-81c1-1d9f99c8258c",
679
+ "type": "string",
680
+ "ref": "persona",
681
+ "death": "keep",
682
+ "description": "the instructions chosen when this session began"
683
+ },
684
+ "transcript": {
685
+ "$id": "urn:uuid:0c541017-ed7c-41ac-8b6c-3efccafa41e1",
686
+ "type": "string",
687
+ "ref": "transcript",
688
+ "death": "detach",
689
+ "stamped": true,
690
+ "description": "the file it was first read from, whose entries are named by session and line alone; an entry read from any other file also names that file's path"
691
+ },
692
+ "operator": {
693
+ "$id": "urn:uuid:16f9799b-5957-40fd-9a9d-8b2c32b10267",
694
+ "type": "boolean",
695
+ "description": "true for a transcript opened and driven by a person; false for an agent or automated opening, even if a person later replies"
696
+ },
697
+ "fallback": {
698
+ "$id": "urn:uuid:d94b4dbc-0cc4-49e8-ba02-e6213c0f37bb",
699
+ "type": "boolean",
700
+ "stamped": true,
701
+ "description": "true for an MCP connection opened by the host's own process fallback, a request that named no caller; it speaks for nobody, and a door that trusts the host's perimeter may read it as the host's person (@yaks/harness conversations)"
702
+ },
703
+ "door": {
704
+ "$id": "urn:uuid:52ec247f-2513-4067-a581-218a3533e071",
705
+ "type": "string",
706
+ "stamped": true,
707
+ "description": "the door (a tunnel) a conversation held in another store reaches this graph through, on the session standing here for it. Who a write through such a session is by is that door's word: it names nobody else as the one a mark is by"
708
+ },
709
+ "person": {
710
+ "$id": "urn:uuid:41788d60-cda2-48e9-ba4c-fb8e9e07b5f5",
711
+ "type": "string",
712
+ "ref": "person",
713
+ "death": "release",
714
+ "stamped": true,
715
+ "description": "the person this graph knows whose conversation, held in another store, this session stands for (`door`), where the door says whose it is: what is news to them reaches that conversation through this session"
716
+ },
717
+ "ended": {
718
+ "$id": "urn:uuid:a1b65b46-3673-40d8-9acd-34b68b3b13cf",
719
+ "type": "boolean",
720
+ "description": "this session is over: its harness ended it, its process is gone, or it came to rest with no process to ask about. What its entries leave unfinished reads stopped; settled, failed and empty read as they are. A resume or a message clears it"
721
+ },
722
+ "standing": {
723
+ "$id": "urn:uuid:3eb3680a-fc03-416d-a338-7ce93844eb28",
724
+ "type": "string",
725
+ "stamped": true,
726
+ "description": "a long-running session: recorded here rather than ended when its work is done"
727
+ },
728
+ "status": {
729
+ "$id": "urn:uuid:2d0ca419-ffa9-49c0-b911-de84446df924",
730
+ "type": "string",
731
+ "enum": [
732
+ "empty",
733
+ "pending",
734
+ "running",
735
+ "settled",
736
+ "stopped",
737
+ "failed",
738
+ "queued"
739
+ ],
740
+ "computed": true,
741
+ "reads": [
742
+ "entry.session",
743
+ "session.ended",
744
+ "dispatch",
745
+ "admitted",
746
+ "waiting",
747
+ "process",
748
+ "exit"
749
+ ],
750
+ "description": "what the newest entry implies: pending is waiting on the model, running is waiting on an answer, settled has nothing to do. A session a process of its own runs (`process` with no `exit`) reads running where its entries say pending"
751
+ },
752
+ "cost": {
753
+ "$id": "urn:uuid:cd701af4-70cb-4e90-9832-3f460bf42a09",
754
+ "type": "number",
755
+ "computed": true,
756
+ "reads": [
757
+ "entry.session",
758
+ "cost.dollars"
759
+ ],
760
+ "description": "the dollars its entries' `cost` records, summed; absent where none records any"
761
+ }
762
+ }
763
+ },
764
+ "spawned": {
765
+ "$id": "urn:uuid:891fbbf5-3815-4389-bcf7-3304126ed537",
766
+ "component": true,
767
+ "type": "object",
768
+ "description": "a child session delegated by a parent; fork independently selects an inherited prefix",
769
+ "properties": {
770
+ "parent": {
771
+ "$id": "urn:uuid:f2d09b57-7876-47e5-99a2-9f9b8b015103",
772
+ "type": "string",
773
+ "ref": "session",
774
+ "death": "keep"
775
+ },
776
+ "notice": {
777
+ "$id": "urn:uuid:f9be6642-91ad-4a9f-9993-fc3162104f2a",
778
+ "type": "boolean",
779
+ "index": true,
780
+ "description": "Report passively, without waking the parent, in one notice per child; later turns update that same notice."
781
+ },
782
+ "quiet": {
783
+ "$id": "urn:uuid:b9da95d7-90d0-45b5-a29c-91f2b0029918",
784
+ "type": "number",
785
+ "description": "For passive reports, milliseconds without new input before a settled chat closes; failure and stop report at once."
786
+ },
787
+ "report": {
788
+ "$id": "urn:uuid:22495627-fbc9-42a2-ab41-ad014c1a3c81",
789
+ "type": "string",
790
+ "enum": ["resume", "record"],
791
+ "description": "Whether a successful report resumes its parent or stays as a notice."
792
+ },
793
+ "call": {
794
+ "$id": "urn:uuid:4a31b518-d99f-4ade-9d5a-52b71f2f53b2",
795
+ "type": "string",
796
+ "ref": "entry",
797
+ "death": "keep"
798
+ }
799
+ }
800
+ },
801
+ "delivery": {
802
+ "$id": "urn:uuid:e9aa62af-8972-4430-9339-21f5752e294b",
803
+ "component": true,
804
+ "type": "object",
805
+ "description": "on a parent's entry, the child session whose end it tells: the receipt deliverChild writes, never words a person wrote, which the model reads labeled as from the system",
806
+ "properties": {
807
+ "child": {
808
+ "$id": "urn:uuid:ca4dd854-23a5-48f4-be3e-a7bcfd7f242c",
809
+ "type": "string",
810
+ "ref": "session",
811
+ "death": "keep"
812
+ },
813
+ "through": {
814
+ "$id": "urn:uuid:08e0b011-d19e-465c-87a0-5b7465ac9c30",
815
+ "type": "string",
816
+ "ref": "entry",
817
+ "death": "keep",
818
+ "description": "The last entry covered by a passive closing notice."
819
+ },
820
+ "outcome": {
821
+ "$id": "urn:uuid:8d3d8beb-7e1f-49ad-b724-6429fcd082cd",
822
+ "type": "string",
823
+ "description": "how the child had ended when it was told: settled, failed or stopped"
824
+ }
825
+ }
826
+ },
827
+ "woken": {
828
+ "$id": "urn:uuid:721d56f9-7579-479e-95f1-faa540d6a800",
829
+ "component": true,
830
+ "type": "object",
831
+ "description": "on a wake's input, the task it woke its transcript for: what finds the run already on a task once its claim was let go",
832
+ "properties": {
833
+ "task": {
834
+ "$id": "urn:uuid:8e790c75-2210-46c2-834b-7a1a850fd865",
835
+ "type": "string",
836
+ "ref": "task",
837
+ "death": "keep"
838
+ }
839
+ }
840
+ },
841
+ "helper": {
842
+ "$id": "urn:uuid:1baa5cfa-5162-494d-bb5b-0ff2245cbecd",
843
+ "component": true,
844
+ "type": "object",
845
+ "description": "on a project: what is addressed to its operator that no person wrote (a knock at the project, or at a session a person opened for it) goes to a helper instead of waking that session: a run of its own wearing `persona`, with nothing in its context but what is waiting. One helper runs at a time and takes everything waiting. Removing it gives what is waiting back to the operator",
846
+ "properties": {
847
+ "persona": {
848
+ "$id": "urn:uuid:8e71a569-2957-423d-9c5e-719a19323b25",
849
+ "type": "string",
850
+ "ref": "persona",
851
+ "death": "detach",
852
+ "description": "the persona a helper wears: the operator's"
853
+ },
854
+ "provider": {
855
+ "$id": "urn:uuid:f9a2ce1f-4bba-4b3e-843b-734bc302f96c",
856
+ "type": "string",
857
+ "ref": "provider",
858
+ "death": "detach",
859
+ "description": "the provider a helper runs on"
860
+ },
861
+ "model": {
862
+ "$id": "urn:uuid:e214ed0d-cc8d-40e8-861a-1d2e01792d9d",
863
+ "type": "string",
864
+ "ref": "model",
865
+ "death": "detach",
866
+ "description": "the model a helper runs; the provider's own where absent"
867
+ },
868
+ "effort": {
869
+ "$id": "urn:uuid:70fcbfb9-a44e-4c77-b492-bf38a2e8502e",
870
+ "type": "string",
871
+ "description": "the reasoning effort, where the model accepts such a setting"
872
+ }
873
+ }
874
+ },
875
+ "helping": {
876
+ "$id": "urn:uuid:cc61cbd3-016a-4694-9c5d-fa8820f10f38",
877
+ "component": true,
878
+ "journal": false,
879
+ "type": "object",
880
+ "description": "on a session: a helper, started to take what waited for this project's operator. A knock written through it is a hand-up, which the operator hears",
881
+ "properties": {
882
+ "project": {
883
+ "$id": "urn:uuid:55e917f4-61d2-4c27-b8e2-eafa816e7766",
884
+ "type": "string",
885
+ "ref": "project",
886
+ "death": "keep",
887
+ "description": "the project whose operator it helps"
888
+ }
889
+ }
890
+ },
891
+ "routine": {
892
+ "$id": "urn:uuid:72afc3a7-f0cb-4134-9ee5-dce17da27c40",
893
+ "component": true,
894
+ "journal": false,
895
+ "type": "object",
896
+ "description": "on a knock: a helper's to take, never said to the operator's session. Written with the knock when it is addressed to the operator of a project wearing `helper` and is neither a person's words nor a hand-up: a knock written through a helper, or through a session opened on a topic",
897
+ "properties": {
898
+ "project": {
899
+ "$id": "urn:uuid:e1de5da4-ba0b-4dd7-b931-37635531ca79",
900
+ "type": "string",
901
+ "ref": "project",
902
+ "death": "keep",
903
+ "description": "the project whose helper takes it"
904
+ }
905
+ }
906
+ },
907
+ "stop": {
908
+ "$id": "urn:uuid:5f305107-049e-4076-832a-bafab8b243b5",
909
+ "component": true,
910
+ "type": "object",
911
+ "description": "on an entry, a marker ending the transcript; on a managed session, a request to stop its process",
912
+ "properties": {}
913
+ },
914
+ "using": {
915
+ "$id": "urn:uuid:23e58889-6a4e-4959-9f5a-9324175eedaf",
916
+ "component": true,
917
+ "journal": false,
918
+ "type": "object",
919
+ "description": "provider, model, effort and account: on an input it sets or switches them, on an ask it records what was served, and on a provider's row its model is what a request naming that provider alone runs",
920
+ "properties": {
921
+ "provider": {
922
+ "$id": "urn:uuid:2bcaebd8-f529-46d6-af63-f85a773a1617",
923
+ "type": "string",
924
+ "ref": "provider",
925
+ "death": "keep",
926
+ "description": "the provider asked — kept as history when that entity is deleted, so a past ask still records what answered it"
927
+ },
928
+ "model": {
929
+ "$id": "urn:uuid:f59259eb-f148-41a8-8948-94083216f170",
930
+ "type": "string",
931
+ "ref": "model",
932
+ "death": "keep",
933
+ "description": "the model asked — kept as history when that entity is deleted, so a past ask still records what answered it"
934
+ },
935
+ "effort": {
936
+ "$id": "urn:uuid:2e2598f9-e2e0-4056-8b54-8a0e3a55b3d2",
937
+ "type": "string"
938
+ },
939
+ "account": {
940
+ "$id": "urn:uuid:e744c111-4afe-4ba0-b60d-d80be4fb65fd",
941
+ "type": "string",
942
+ "ref": "account",
943
+ "death": "keep",
944
+ "description": "on a request a spawn runs, the account its provider's CLI signs in with (@yaks/model `account`): the one named, else the offered one further under its weekly pace, kept so every later run of the session uses it too"
945
+ },
946
+ "why": {
947
+ "$id": "urn:uuid:7cbb8fe7-f931-4ec9-8233-6b87a7889862",
948
+ "type": "string",
949
+ "description": "on the input a router answered (@yaks/model `route`), one line saying why it chose this model, as the plans read then; an ask and a later input record the selection without it"
950
+ }
951
+ }
952
+ },
953
+ "claim_take": {
954
+ "tool": true,
955
+ "destructive": false,
956
+ "noun": "claim",
957
+ "verb": "take",
958
+ "title": "Claim an entity",
959
+ "description": "Claim any entity for a session. Another session’s claim fails the batch; release it first. Reclaiming by the same session is a no-op refresh. Returns applied bundles.",
960
+ "input": {
961
+ "target": {
962
+ "type": "string",
963
+ "ref": "entity",
964
+ "description": "Entity id or name."
965
+ },
966
+ "session": {
967
+ "type": "string",
968
+ "ref": "session",
969
+ "description": "Holder session id/name (default caller)."
970
+ }
971
+ },
972
+ "required": [
973
+ "target"
974
+ ],
975
+ "idempotent": true,
976
+ "positional": [
977
+ "target"
978
+ ]
979
+ },
980
+ "claim_release": {
981
+ "tool": true,
982
+ "destructive": false,
983
+ "noun": "claim",
984
+ "verb": "release",
985
+ "title": "Release a claim",
986
+ "description": "Release any entity’s claim, unguarded to permit handover and recovery of dead sessions. Returns applied bundles.",
987
+ "input": {
988
+ "target": {
989
+ "type": "string",
990
+ "ref": "entity",
991
+ "description": "Entity id or name."
992
+ }
993
+ },
994
+ "required": [
995
+ "target"
996
+ ],
997
+ "idempotent": true,
998
+ "positional": [
999
+ "target"
1000
+ ]
1001
+ },
1002
+ "session_context": {
1003
+ "tool": true,
1004
+ "destructive": false,
1005
+ "noun": "session",
1006
+ "verb": "context",
1007
+ "title": "Read a session’s context",
1008
+ "description": "Find/create a session and return its changes plus content.body identifying it and its claims for context injection. A hook cwd supplies the checkout persona when none is set. UserPromptSubmit instead returns timing from transcript_path, without writes: queued submissions supply sent time, otherwise hook time is labeled observed; unreadable transcripts return nothing. Explicit session overrides hook except for UserPromptSubmit. No session id means no writes or output.",
1009
+ "input": {
1010
+ "session": {
1011
+ "type": "string",
1012
+ "description": "Harness session id, human id or eid; overrides hook."
1013
+ },
1014
+ "hook": {
1015
+ "type": "string",
1016
+ "description": "JSON lifecycle event: hook_event_name, session_id, optional cwd. UserPromptSubmit adds transcript_path, prompt, optional prompt_id. CLI accepts stdin with -; MCP passes JSON text."
1017
+ },
1018
+ "actor": {
1019
+ "type": "string",
1020
+ "ref": "entity",
1021
+ "description": "Persistent actor id or name."
1022
+ }
1023
+ },
1024
+ "idempotent": true,
1025
+ "positional": [
1026
+ "session"
1027
+ ]
1028
+ },
1029
+ "session_wrap": {
1030
+ "tool": true,
1031
+ "destructive": false,
1032
+ "noun": "session",
1033
+ "verb": "wrap",
1034
+ "title": "Wrap up a session",
1035
+ "description": "Save an optional brief and release session claims, except tasks parked on dependencies in managed runs. Returns applied bundles. An absent/unknown session makes no changes.",
1036
+ "input": {
1037
+ "session": {
1038
+ "type": "string",
1039
+ "description": "Harness session id, human id or eid; overrides hook."
1040
+ },
1041
+ "hook": {
1042
+ "type": "string",
1043
+ "description": "JSON lifecycle event with session_id; CLI accepts stdin with -."
1044
+ },
1045
+ "brief": {
1046
+ "type": "string",
1047
+ "description": "Session’s account of its work.",
1048
+ "short": "b"
1049
+ }
1050
+ },
1051
+ "idempotent": true,
1052
+ "positional": [
1053
+ "session"
1054
+ ]
1055
+ },
1056
+ "session_listen": {
1057
+ "tool": true,
1058
+ "surfaces": [
1059
+ "cli"
1060
+ ],
1061
+ "noun": "session",
1062
+ "verb": "listen",
1063
+ "title": "Listen for a session’s work",
1064
+ "description": "Print one line for each thing addressed to an agent work session as it arrives: a comment on a stored record (entity) the session has claimed, or a person-written comment on one it created (the comment’s own created.via is not a session), a knock at the session or at that record, a letter delivered to it, a letter answering one it wrote, and a reply held for its project (also a person-written comment on a record filed there once its creating session ended): one answering a letter another session wrote, sent to the project the listening session works for (its persona’s home, or a project filed under it) after that other session ended. Each item is marked notified once printed, so it is printed once, including anything that arrived while nothing was listening; the session’s own writes are never printed. Meant for a command line under a monitor that reads each printed line as an event, such as Claude Code’s Monitor tool: `yak session listen --session \"$CLAUDE_CODE_SESSION_ID\"`, which does not return while the process is up. With once, it waits until something is addressed to the session, prints it, keeps printing what arrives until nothing new has come for quiet seconds, and ends, so one ending carries everything that was waiting; this is for a harness that wakes its agent when a background command ends, such as Claude Code’s background Bash: `yak session listen --session \"$CLAUDE_CODE_SESSION_ID\" --once`, run again each time it ends. Each line is the item whole, and a knock left at two addresses the session hears is printed once. A managed run’s final report is one line, `knock … on T-… (done)`, with where its task stands. A printed line counts as heard, so its output must reach the agent itself, never a file.",
1065
+ "input": {
1066
+ "session": {
1067
+ "type": "string",
1068
+ "ref": "session",
1069
+ "description": "the session to listen for (default: the caller’s session); pass its id or registered name"
1070
+ },
1071
+ "every": {
1072
+ "type": "number",
1073
+ "description": "seconds between reads (default 2)"
1074
+ },
1075
+ "once": {
1076
+ "type": "boolean",
1077
+ "description": "end once something was printed and nothing new came for quiet seconds, instead of listening until the process stops"
1078
+ },
1079
+ "quiet": {
1080
+ "type": "number",
1081
+ "description": "with once, seconds nothing new must come before it ends (default 5, at most 6 times that after the first line; 0 ends with the first read that prints anything)"
1082
+ }
1083
+ }
1084
+ },
1085
+ "session_handup": {
1086
+ "tool": true,
1087
+ "destructive": false,
1088
+ "noun": "session",
1089
+ "verb": "handup",
1090
+ "title": "Hand something up to the operator",
1091
+ "description": "Hand up what needs the operator’s judgment, as one short line about the entity it concerns. It knocks the operator of the project the calling session works for, or waits at the project until a person opens a session for it. From a helper, or from a session opened on a topic, the operator’s own session hears it; such a session reaches no other session any other way. What needs a person is a decision or a task assigned to them (decision_new, task_new), not a hand-up. Returns the knock.",
1092
+ "input": {
1093
+ "about": {
1094
+ "type": "string",
1095
+ "ref": "entity",
1096
+ "description": "What it concerns: the id of the task, bug, decision or other entity. The line is said after it."
1097
+ },
1098
+ "text": {
1099
+ "type": "string",
1100
+ "description": "One short line: what needs the operator’s judgment."
1101
+ }
1102
+ },
1103
+ "required": [
1104
+ "about",
1105
+ "text"
1106
+ ],
1107
+ "positional": [
1108
+ "about",
1109
+ "text"
1110
+ ]
1111
+ },
1112
+ "session_brief": {
1113
+ "tool": true,
1114
+ "destructive": false,
1115
+ "noun": "session",
1116
+ "verb": "brief",
1117
+ "title": "Record a session’s brief",
1118
+ "description": "Replace a session brief, creating a missing named transcript. session overrides hook.session_id, then defaults to caller. Returns the written bundle; does not inject context elsewhere.",
1119
+ "input": {
1120
+ "session": {
1121
+ "type": "string",
1122
+ "description": "Harness session id, human id or eid; overrides hook."
1123
+ },
1124
+ "hook": {
1125
+ "type": "string",
1126
+ "description": "JSON lifecycle event with session_id; CLI accepts stdin with -."
1127
+ },
1128
+ "text": {
1129
+ "type": "string",
1130
+ "description": "Session brief."
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "text"
1135
+ ],
1136
+ "idempotent": true,
1137
+ "positional": [
1138
+ "text"
1139
+ ]
1140
+ },
1141
+ "session_open": {
1142
+ "tool": true,
1143
+ "noun": "session",
1144
+ "verb": "open",
1145
+ "title": "Open a session in another harness",
1146
+ "description": "Write a session's conversation where another harness resumes it, and answer how to resume it there. in:claude writes Claude Code's transcript under the session's own id (`<account>/projects/<cwd>/<id>.jsonl`), other harnesses' tool calls included: into the file Claude Code already keeps of it, only what was said since its last line, else a new file holding the whole conversation, closed by a note that another harness ran it so far. What Claude Code says after it is read back into the same session. Writes on this machine.",
1147
+ "input": {
1148
+ "session": {
1149
+ "type": "string",
1150
+ "ref": "session",
1151
+ "description": "the session; pass its id or registered name"
1152
+ },
1153
+ "in": {
1154
+ "type": "string",
1155
+ "enum": ["claude"],
1156
+ "description": "the harness to open it in"
1157
+ },
1158
+ "account": {
1159
+ "type": "string",
1160
+ "description": "the Claude Code account directory (`~/.claude-work`); by default this process's own"
1161
+ },
1162
+ "cwd": {
1163
+ "type": "string",
1164
+ "description": "the directory to resume it in (default: where Claude Code already keeps it); needed for a session Claude Code keeps no file of"
1165
+ }
1166
+ },
1167
+ "required": ["session", "in"],
1168
+ "positional": ["session"]
1169
+ },
1170
+ "hooks_install": {
1171
+ "tool": true,
1172
+ "noun": "hooks",
1173
+ "verb": "install",
1174
+ "title": "Install the lifecycle hooks",
1175
+ "description": "Install Claude-compatible lifecycle hooks: session/subagent start reads context, prompt submission adds transcript timing, and session end wraps up. PreToolUse posts MCP calls to the server for session attribution; PostToolUse delivers notifications to the parent agent, and Stop delivers what arrived during its last answer. Transcript import supplies intervening turns. Replaces this install’s hooks, preserving unrelated settings. Also writes this graph's MCP server into Claude Code's config, through the local yak mcp client, which expands local file arguments and names the session behind every call, so a write is stamped with its caller whether or not its hook arrives. Also writes the status line, which shows each plan's room (`POST /session/status`), unless the account has one of its own. Where the account runs the yak@yak Claude Code plugin (plugins/yak), which carries the hooks and the MCP server, points the plugin at this server and takes out the hooks and MCP server an earlier install wrote instead. Writes on this machine; answers the paths written and what to do next. remove uninstalls all of it.",
1176
+ "input": {
1177
+ "account": {
1178
+ "type": "string",
1179
+ "description": "The Claude Code account directory to install into (`~/.claude-teams`); by default every Claude Code account the graph knows (@yaks/model `account`), else this process's own."
1180
+ },
1181
+ "path": {
1182
+ "type": "string",
1183
+ "description": "Settings path (default the account's settings.json)."
1184
+ },
1185
+ "config": {
1186
+ "type": "string",
1187
+ "description": "Claude Code config the MCP server goes in (default $HOME/.claude.json for ~/.claude, else the account's own .claude.json)."
1188
+ },
1189
+ "name": {
1190
+ "type": "string",
1191
+ "description": "MCP server name (default yak); an entry already on this server keeps its own name."
1192
+ },
1193
+ "yak": {
1194
+ "type": "string",
1195
+ "description": "Local yak executable path."
1196
+ },
1197
+ "server": {
1198
+ "type": "string",
1199
+ "description": "Hook server (default: where this graph's yak serve listens, the config's port or 8787)."
1200
+ },
1201
+ "remove": {
1202
+ "type": "boolean",
1203
+ "description": "Uninstall instead."
1204
+ }
1205
+ },
1206
+ "idempotent": true,
1207
+ "positional": [
1208
+ "path"
1209
+ ]
1210
+ },
1211
+ "claim_check": {
1212
+ "tool": true,
1213
+ "noun": "claim",
1214
+ "verb": "check",
1215
+ "title": "Check for stale claims",
1216
+ "description": "Report claims held by missing, stopped or failed sessions in content.body, including warning/failure findings. Does not repair.",
1217
+ "input": {},
1218
+ "readOnly": true
1219
+ },
1220
+ "session_cache": {
1221
+ "tool": true,
1222
+ "surfaces": [
1223
+ "cli"
1224
+ ],
1225
+ "noun": "session",
1226
+ "verb": "cache",
1227
+ "title": "Report prompt-cache observations",
1228
+ "description": "Report input-token-weighted cached share by session, provider, model and derived path. Uses request created.at in [from, until). Share is sum(cached_tokens)/sum(input_tokens) over requests reporting both counts; missing counts are unknown, not zero. Reports unknown coverage and explicit zero-cache requests. No date bounds reads all history. Returns JSON in content.body and output.value; no stored rollup. Imported CLI entries (even with ask) and usage-only entries may be cumulative turn totals: excluded from total and session/provider/model groups, counted in imported_observations and shown separately in groups.path.imported.",
1229
+ "input": {
1230
+ "from": {
1231
+ "type": "string",
1232
+ "format": "date-time",
1233
+ "description": "inclusive time, e.g. 2026-10-01T20:10:00Z or 3 hours ago"
1234
+ },
1235
+ "until": {
1236
+ "type": "string",
1237
+ "format": "date-time",
1238
+ "description": "exclusive time, e.g. 2026-10-01T20:10:00Z or 3 hours ago"
1239
+ },
1240
+ "session": {
1241
+ "type": "string",
1242
+ "ref": "session",
1243
+ "description": "only this session; pass its id or registered name"
1244
+ },
1245
+ "requests": {
1246
+ "type": "boolean",
1247
+ "description": "include individual request ids, times, counts and shares"
1248
+ }
1249
+ },
1250
+ "readOnly": true
1251
+ },
1252
+ "session_check": {
1253
+ "tool": true,
1254
+ "noun": "session",
1255
+ "verb": "check",
1256
+ "title": "Check for stalled sessions",
1257
+ "description": "Report sessions waiting beyond the stall threshold (default two hours) in content.body. Does not repair: the transcripts duty ends a session whose process is gone.",
1258
+ "input": {},
1259
+ "readOnly": true
1260
+ },
1261
+ "session_input": {
1262
+ "effect": true,
1263
+ "created": [
1264
+ "content"
1265
+ ],
1266
+ "target": ".entry !lines !using !output !notice !stop !result !tool_progress !exception !refusal !ask !call !interrupted",
1267
+ "tries": 8,
1268
+ "description": "an input line inherits its transcript's selected model and owes one turn; an entry selecting a model is already owed by session_run"
1269
+ },
1270
+ "session_result": {
1271
+ "effect": true,
1272
+ "created": [
1273
+ "model_result"
1274
+ ],
1275
+ "target": ".ask .entry",
1276
+ "tries": 8,
1277
+ "description": "deliver a saved complete model result on its original request, including passive compaction exchanges, without repeating generation"
1278
+ },
1279
+ "session_run": {
1280
+ "effect": true,
1281
+ "created": [
1282
+ "using",
1283
+ "tool_progress",
1284
+ "attention",
1285
+ "cancel",
1286
+ "stop",
1287
+ "completed",
1288
+ "cancelled",
1289
+ "admitted",
1290
+ "result",
1291
+ "checkpoint",
1292
+ "task_context"
1293
+ ],
1294
+ "changed": [
1295
+ "dispatch.state"
1296
+ ],
1297
+ "removed": [
1298
+ "edge"
1299
+ ],
1300
+ "target": ".entry !lines !ask|.session|.task|.requires|.contains",
1301
+ "tries": 8,
1302
+ "description": "advance a transcript by one independently owed step: a `using` on an entry asks for a turn, a result or a Pending entry (a background call that outlasted its patience) is something new for the model to read, a cancel withdraws the request in flight, a stop ends it (and gives up a child's place), a child is admitted, or a task a transcript holds completes, is cancelled or loses a dependency (a `requires` or `contains` link going, read by the ends it had). A model request the provider failed but may yet answer is asked again after the pool's backoff, eight tries in a row at most"
1303
+ },
1304
+ "session_resume": {
1305
+ "effect": true,
1306
+ "changed": [
1307
+ "inference.receipt",
1308
+ "attempt.by"
1309
+ ],
1310
+ "target": ".entry .ask !lines",
1311
+ "tries": 8,
1312
+ "description": "advance a transcript after a model receipt arrives or an attempt ends"
1313
+ },
1314
+ "session_release": {
1315
+ "effect": true,
1316
+ "changed": [
1317
+ "session.ended"
1318
+ ],
1319
+ "created": [
1320
+ "claim",
1321
+ "stop",
1322
+ "refusal",
1323
+ "exception",
1324
+ "exit",
1325
+ "interrupted",
1326
+ "failed",
1327
+ "completed",
1328
+ "cancelled"
1329
+ ],
1330
+ "description": "release the claim of a task that is done or cancelled, whoever holds it, and the claims held by a transcript that stopped or failed, except those a managed run that ended cleanly is parked on: a task still waiting on a dependency, or any while a request waits for its next run. Runs recorded with terminal marks are claimed by the next worker even when no worker was serving effects"
1331
+ },
1332
+ "session_wake": {
1333
+ "effect": true,
1334
+ "created": [
1335
+ "completed",
1336
+ "cancelled",
1337
+ "claim",
1338
+ "requires",
1339
+ "contains"
1340
+ ],
1341
+ "changed": [
1342
+ "claim.session"
1343
+ ],
1344
+ "removed": [
1345
+ "edge",
1346
+ "claim"
1347
+ ],
1348
+ "target": ".task|.requires|.contains",
1349
+ "description": "resume a resting transcript on its provider when a dependency finishes, loses its worker or changes its links. Unattended runnable dependencies are claimed by the waiting transcript; external decisions and blockers remain waits. A dependency that cannot run is told to the transcript and its parent. Removed links are read by the ends they had"
1350
+ },
1351
+ "session_watch": {
1352
+ "effect": true,
1353
+ "created": [
1354
+ "completed",
1355
+ "cancelled",
1356
+ "decided",
1357
+ "comment",
1358
+ "filed"
1359
+ ],
1360
+ "changed": [
1361
+ "filed.assignee"
1362
+ ],
1363
+ "target": ".task|.comment",
1364
+ "description": "knock the sessions watching a task when it is completed, cancelled or answered, or commented on: the session that filed it, those that mention its id, the people who commented on it and the actors subscribed to watch it. A person hears through the session standing for their conversation with their assistant in another store, and that session hears only news: the task finishing, the task newly assigned to that person (which knocks that session alone), or a comment answering one of the person's own; no other comment knocks it. A session that is over is told through its project's operator. One knock per target and change, none for the writer's own or its subagents', none for what a managed run's receipt tells the session it knocks: the receipt comment itself, and the run completing or cancelling its task, none to the operator a helper writes for, and none for a mark naming nobody who made it, which records another store's act"
1365
+ },
1366
+ "session_start": {
1367
+ "effect": true,
1368
+ "match": ".comment !notified .created.by.person !created.via.session .comment.target.task !comment.target.completed !comment.target.cancelled !comment.target.blocked (!comment.target.claim | .comment.target.claim.session.session.ended=true)",
1369
+ "description": "start a session on a task for a person's comment on it: one not yet said to anyone, on a task that is open, not blocked, and unclaimed or claimed by a session that has ended. The session holds the task and takes the comment as its first input, in one write guarded by what this match saw, so his next comment reaches that session and owes no second start. An agent's comment owes none. At most two sessions started this way are at work at once; a start past that waits in the pool"
1370
+ },
1371
+ "session_texted": {
1372
+ "effect": true,
1373
+ "created": [
1374
+ "text"
1375
+ ],
1376
+ "target": ".text !deliver",
1377
+ "description": "Knock whoever a text that arrived answers: the session that last texted its number while that session can hear, else its project's operator, else the project. A text from a number no session texted is the project's that the number it reached is filed under."
1378
+ },
1379
+ "session_woken": {
1380
+ "effect": true,
1381
+ "created": [
1382
+ "fired"
1383
+ ],
1384
+ "changed": [
1385
+ "fired.at"
1386
+ ],
1387
+ "target": ".wake.target",
1388
+ "description": "Knock whoever attends what a wake is aimed at, once each time it fires, with the wake's note (woken.ts reads what the target is, since @yaks/persona and @yaks/topic may not be in the vocabulary). Aimed at a session: that session, which hears it in its session listen, else once it is over its project's operator, else the project. Aimed at a persona: its operator, the session a person opened wearing it, else its project, where the knock waits for the next session at work. Aimed at a topic, such as a goal that is its own topic: the session opened on it (session.topic) that has not ended. A standing duty, such as a morning standup, is such a wake"
1389
+ },
1390
+ "session_help": {
1391
+ "effect": true,
1392
+ "created": [
1393
+ "routine",
1394
+ "exit"
1395
+ ],
1396
+ "removed": [
1397
+ "helper"
1398
+ ],
1399
+ "target": ".routine|.helping|.project",
1400
+ "description": "start a project's helper when a routine knock waits and none is at work: one session wearing the project's `helper{persona}`, whose first input is every routine knock waiting, each marked notified in the same write, and whose `using` asks for its run the way session spawn does. A helper's `exit` asks again for what came while it ran; one that ended badly, or that said nothing for five minutes or is still going after half an hour and is stopped, is handed up to the operator with what it held. Removing `helper` from a project gives its waiting knocks back to the operator"
1401
+ },
1402
+ "native": {
1403
+ "$id": "urn:uuid:389f8e34-8213-42b3-ad8d-7287faff06fa",
1404
+ "component": true,
1405
+ "journal": false,
1406
+ "description": "A transcript run by the native model/tool loop, not an outside CLI agent."
1407
+ },
1408
+ "drops": {
1409
+ "$id": "urn:uuid:70232ce9-6a42-4993-bb1b-ba4c74132d7d",
1410
+ "component": true,
1411
+ "type": "object",
1412
+ "properties": {},
1413
+ "description": "on a session, or on the persona it wears: its requests leave out what it has replied past. When a request starts after the provider’s cache of the one before has expired, each of its earlier calls with their results, and each worker’s report (`delivery`, `attention{worker}`), that came before the request its newest reply answered is marked `archived`, with no model call; where a summary checkpoint is due while the cache is warm, the same is done first. A person’s words and the session’s own replies always stay, and an archived entry keeps its row"
1414
+ },
1415
+ "tool_async": {
1416
+ "$id": "urn:uuid:dafafece-9011-4204-bd7b-c634715055eb",
1417
+ "component": true,
1418
+ "journal": false,
1419
+ "type": "object",
1420
+ "description": "a native transcript call dispatched by its own durable effect; no session lease waits for it, and a request answers it with a derived Pending until its result lands",
1421
+ "properties": {}
1422
+ },
1423
+ "tool_progress": {
1424
+ "$id": "urn:uuid:f2ee90da-f517-48b8-a528-cee0928bfa39",
1425
+ "component": true,
1426
+ "journal": false,
1427
+ "type": "object",
1428
+ "description": "the Pending entry of a background call that outlasted its patience: an immutable interim result that is something new for the model to read, so it may take a turn while the call runs; older transcripts hold one beside every background call",
1429
+ "properties": {
1430
+ "call": {
1431
+ "$id": "urn:uuid:2c8a1b62-7b58-4146-9d43-08fbf8968704",
1432
+ "type": "string",
1433
+ "ref": "call",
1434
+ "death": "cascade"
1435
+ }
1436
+ }
1437
+ },
1438
+ "session_tool": {
1439
+ "effect": true,
1440
+ "match": ".call&.entry&.tool_async&!results",
1441
+ "target": ".call&.entry&.tool_async",
1442
+ "description": "execute one asynchronous native tool call independently of the session lease; the tools runner owns its execution claim and final result"
1443
+ },
1444
+ "session_recover": {
1445
+ "effect": true,
1446
+ "start": true,
1447
+ "description": "on pool startup, wake each ended child still holding a dispatch place so its receipt is delivered and its place released. Take up asynchronous calls left by a holder that has exited or that the host says is gone, through session_tool's recovery path"
1448
+ },
1449
+ "sending": {
1450
+ "$id": "urn:uuid:46d730e4-6c88-4295-8042-5f66f8d18ba8",
1451
+ "component": true,
1452
+ "journal": false,
1453
+ "type": "object",
1454
+ "description": "what is sent to a model: selected on an input, recorded on an ask",
1455
+ "properties": {
1456
+ "input": {
1457
+ "$id": "urn:uuid:8fb9853f-205c-4045-8ef2-45290b8338e2",
1458
+ "type": "object",
1459
+ "description": "explicit model-native inputs, such as lyrics or duration; validated by the provider, never inferred from the prompt"
1460
+ },
1461
+ "instructions": {
1462
+ "$id": "urn:uuid:dc4bcecc-5a37-4700-aace-fc063e5e3633",
1463
+ "type": "string",
1464
+ "description": "on an input, the system instructions it selects for this transcript"
1465
+ },
1466
+ "told": {
1467
+ "$id": "urn:uuid:853f843e-b090-4a7b-abe7-b0894607d730",
1468
+ "type": "string",
1469
+ "ref": "told",
1470
+ "death": "keep",
1471
+ "description": "on an ask, the system instructions it sent, as the told row named by their sha256"
1472
+ },
1473
+ "scope": {
1474
+ "$id": "urn:uuid:a6934439-63a9-457e-bbbf-5c78cbf9f5cd",
1475
+ "type": "string",
1476
+ "description": "the host instruction scope at this ask; a different scope refreshes instructions even while the provider prefix stays cached"
1477
+ },
1478
+ "window": {
1479
+ "$id": "urn:uuid:9efec021-935b-475a-9b7e-589d64c738ca",
1480
+ "type": "integer",
1481
+ "description": "how many of the transcript's newest entries a turn sends the model, reaching back to the input that began the turn they cut into; the whole transcript where absent"
1482
+ },
1483
+ "from": {
1484
+ "$id": "urn:uuid:3fbb3d19-6d3e-421e-af7b-358c4686151d",
1485
+ "type": "string",
1486
+ "ref": "entry",
1487
+ "death": "keep",
1488
+ "description": "The first input a projected background ask reads."
1489
+ },
1490
+ "tokens": {
1491
+ "$id": "urn:uuid:11ab5a73-1e3b-4772-95b2-4e98d993a513",
1492
+ "type": "integer",
1493
+ "minimum": 1,
1494
+ "description": "the most tokens a turn's reply may write, reasoning included; the provider's own limit where absent"
1495
+ },
1496
+ "tools": {
1497
+ "$id": "urn:uuid:f542ea77-d808-4728-96ec-ef3f13c744a7",
1498
+ "type": "array",
1499
+ "items": {
1500
+ "type": "string"
1501
+ },
1502
+ "description": "the tools a turn is offered, by name: exactly these, from every tool the runner can run; the runner's own set where absent"
1503
+ },
1504
+ "offer": {
1505
+ "$id": "urn:uuid:0ed2c85d-2462-4b75-93aa-6e553ca1048d",
1506
+ "type": "string",
1507
+ "ref": "offer",
1508
+ "death": "keep",
1509
+ "description": "on an ask, the tools it sent the model, as the offer row named by their sha256"
1510
+ },
1511
+ "context": {
1512
+ "$id": "urn:uuid:ab9b5d34-f0e0-40c2-be60-43f84092b441",
1513
+ "type": "array",
1514
+ "items": {
1515
+ "type": "string"
1516
+ },
1517
+ "description": "on an ask, context its provider holds, by the first 16 hex of each item's sha256. Hashes prefixed with turn: describe the current context at this ask. Other hashes include context sent anywhere in the anchor chain"
1518
+ }
1519
+ }
1520
+ },
1521
+ "offer": {
1522
+ "$id": "urn:uuid:cbe6cac9-3402-4c1d-90f8-d871a3fd46aa",
1523
+ "component": true,
1524
+ "type": "object",
1525
+ "description": "the tools an ask sent a model, exactly as sent; its eid is the sha256 of them, so a set many asks send is kept once",
1526
+ "properties": {
1527
+ "tools": {
1528
+ "$id": "urn:uuid:86597dfc-8d47-4c1e-bbc2-cff4421d7734",
1529
+ "type": "array",
1530
+ "items": {
1531
+ "type": "object"
1532
+ },
1533
+ "description": "each tool's name, description and parameters (JSON Schema)"
1534
+ }
1535
+ }
1536
+ },
1537
+ "told": {
1538
+ "$id": "urn:uuid:e7655b44-5255-48fd-8865-33cf75ae8b25",
1539
+ "component": true,
1540
+ "type": "object",
1541
+ "description": "the system instructions an ask sent a model, exactly as sent; its eid is the sha256 of them, so a text many asks send is kept once",
1542
+ "properties": {
1543
+ "instructions": {
1544
+ "$id": "urn:uuid:4b9d0785-4ca7-40a4-8dbc-e5e66cc2ca93",
1545
+ "type": "string",
1546
+ "description": "the instructions' text"
1547
+ }
1548
+ }
1549
+ }
1550
+ },
1551
+ "kinds": {
1552
+ "claim": {
1553
+ "$id": "urn:uuid:98fb4755-143d-4baa-a124-654f271a2a7c",
1554
+ "description": "a session’s lock on the entity it is stored on"
1555
+ },
1556
+ "conflict": {
1557
+ "$id": "urn:uuid:e87275ea-fcfd-4da4-a6b7-1c9d8a7e35de",
1558
+ "description": "two sessions wanted one thing: written after the refusal, never by a client"
1559
+ },
1560
+ "entry": {
1561
+ "$id": "urn:uuid:ab7e4a3b-0423-4e6c-bc81-294c8a1a838d",
1562
+ "description": "one entry of a transcript; the component stored beside it is its kind; every model-bound message names its source independently of its provider turn role. Only the person’s own words are their user input"
1563
+ },
1564
+ "session": {
1565
+ "$id": "urn:uuid:f9e68f04-f407-4bf7-9f03-3c62adc7dcf8",
1566
+ "description": "a transcript something reacts to. Its chosen persona is kept here; what it is doing is read off its entries (`status`), where it runs is @yaks/process `process`, and what it was asked for is the `using` on its first entry",
1567
+ "before": [
1568
+ "process"
1569
+ ],
1570
+ "prefix": "S"
1571
+ }
1572
+ }
1573
+ }