@astrosheep/keiyaku 4.6.29 → 4.6.31

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 (400) hide show
  1. package/README.md +5 -5
  2. package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
  3. package/build/plugins/claude/skills/keiyaku/SKILL.md +24 -24
  4. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +44 -168
  5. package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +61 -231
  6. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +47 -58
  7. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +44 -185
  8. package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +40 -89
  9. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +56 -116
  10. package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
  11. package/build/plugins/codex/skills/keiyaku/SKILL.md +24 -24
  12. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +44 -168
  13. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +61 -231
  14. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +47 -58
  15. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +44 -185
  16. package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +40 -89
  17. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +56 -116
  18. package/build/plugins/opencode/package.json +1 -1
  19. package/build/plugins/opencode/skills/keiyaku/SKILL.md +24 -24
  20. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +44 -168
  21. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +61 -231
  22. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +47 -58
  23. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +44 -185
  24. package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +40 -89
  25. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +56 -116
  26. package/build/plugins/pi/README.md +5 -5
  27. package/build/plugins/pi/akuma-tools.ts +17 -23
  28. package/build/skills/keiyaku/SKILL.md +24 -24
  29. package/build/skills/keiyaku-akuma/SKILL.md +44 -168
  30. package/build/skills/keiyaku-akuma/references/automation.md +61 -231
  31. package/build/skills/keiyaku-babysit/SKILL.md +47 -58
  32. package/build/skills/keiyaku-bind/SKILL.md +44 -185
  33. package/build/skills/keiyaku-debt/SKILL.md +40 -89
  34. package/build/skills/keiyaku-workflow/SKILL.md +56 -116
  35. package/build/src/akuma/akuma-call.d.ts +1 -1
  36. package/build/src/akuma/akuma-call.js +9 -9
  37. package/build/src/akuma/akuma-errors.d.ts +5 -5
  38. package/build/src/akuma/akuma-instance.d.ts +355 -12
  39. package/build/src/akuma/akuma-instance.js +20 -20
  40. package/build/src/akuma/akuma-observe.d.ts +11 -12
  41. package/build/src/akuma/akuma-observe.js +34 -26
  42. package/build/src/akuma/akuma-owner.d.ts +32 -11
  43. package/build/src/akuma/akuma-owner.js +35 -16
  44. package/build/src/akuma/akuma-probe.d.ts +3 -3
  45. package/build/src/akuma/akuma-probe.js +2 -2
  46. package/build/src/akuma/akuma-selection-execution.d.ts +985 -1
  47. package/build/src/akuma/akuma-selection-execution.js +42 -18
  48. package/build/src/akuma/akuma-stream.d.ts +2 -2
  49. package/build/src/akuma/akuma-stream.js +1 -1
  50. package/build/src/akuma/akuma-wait.d.ts +5 -5
  51. package/build/src/akuma/akuma-wait.js +52 -14
  52. package/build/src/akuma/akuma.d.ts +245 -271
  53. package/build/src/akuma/akuma.js +98 -46
  54. package/build/src/akuma/archetype.d.ts +19 -6
  55. package/build/src/akuma/archetype.js +25 -9
  56. package/build/src/akuma/body-launch.d.ts +2 -2
  57. package/build/src/akuma/body.js +4 -4
  58. package/build/src/akuma/call-initial-tell.d.ts +60 -44
  59. package/build/src/akuma/call-initial-tell.js +41 -2
  60. package/build/src/akuma/caller.d.ts +26 -17
  61. package/build/src/akuma/caller.js +22 -9
  62. package/build/src/akuma/coordinate.d.ts +9 -0
  63. package/build/src/akuma/coordinate.js +13 -0
  64. package/build/src/akuma/detached-body.js +2 -2
  65. package/build/src/akuma/dispatch-association.d.ts +4 -4
  66. package/build/src/akuma/dispatch-association.js +12 -3
  67. package/build/src/akuma/execution-instructions.js +2 -2
  68. package/build/src/akuma/heart/facts.d.ts +29 -7
  69. package/build/src/akuma/heart/facts.js +13 -0
  70. package/build/src/akuma/heart/index.d.ts +0 -3
  71. package/build/src/akuma/heart/index.js +3 -6
  72. package/build/src/akuma/heart/rows.js +2 -2
  73. package/build/src/akuma/heart/soul.js +5 -5
  74. package/build/src/akuma/identity.d.ts +17 -16
  75. package/build/src/akuma/identity.js +20 -19
  76. package/build/src/akuma/index.d.ts +1 -2
  77. package/build/src/akuma/lineage-cache.d.ts +4 -4
  78. package/build/src/akuma/lineage-cache.js +10 -10
  79. package/build/src/akuma/projection-read.d.ts +2 -5
  80. package/build/src/akuma/projection-read.js +34 -47
  81. package/build/src/akuma/projection.d.ts +659 -569
  82. package/build/src/akuma/projection.js +203 -94
  83. package/build/src/akuma/providers/acp/index.js +1 -1
  84. package/build/src/akuma/providers/execution-environment.d.ts +1 -3
  85. package/build/src/akuma/providers/execution-environment.js +0 -4
  86. package/build/src/akuma/publication.d.ts +2 -2
  87. package/build/src/akuma/publication.js +3 -3
  88. package/build/src/akuma/retention.js +2 -2
  89. package/build/src/akuma/selection-observation.d.ts +507 -43
  90. package/build/src/akuma/selection-observation.js +153 -1
  91. package/build/src/akuma/status-projection.d.ts +288 -0
  92. package/build/src/akuma/status-projection.js +154 -0
  93. package/build/src/akuma/turn-drive.js +0 -3
  94. package/build/src/alias/index.d.ts +9 -4
  95. package/build/src/alias/index.js +11 -9
  96. package/build/src/bounded-list.d.ts +8 -0
  97. package/build/src/bounded-list.js +9 -0
  98. package/build/src/cli/commands/akuma-grammar.d.ts +2 -2
  99. package/build/src/cli/commands/akuma-grammar.js +21 -21
  100. package/build/src/cli/commands/akuma.d.ts +1 -2
  101. package/build/src/cli/commands/akuma.js +115 -251
  102. package/build/src/cli/commands/contract-grammar.d.ts +4 -3
  103. package/build/src/cli/commands/contract-grammar.js +39 -22
  104. package/build/src/cli/commands/contract-help.d.ts +3 -1
  105. package/build/src/cli/commands/contract-help.js +4 -3
  106. package/build/src/cli/commands/contract.d.ts +6 -3
  107. package/build/src/cli/commands/contract.js +203 -434
  108. package/build/src/cli/commands/debt.d.ts +2 -3
  109. package/build/src/cli/commands/debt.js +101 -317
  110. package/build/src/cli/commands/report.js +11 -28
  111. package/build/src/cli/commands/whoami.d.ts +3 -43
  112. package/build/src/cli/commands/whoami.js +8 -121
  113. package/build/src/cli/coordinates.d.ts +4 -35
  114. package/build/src/cli/coordinates.js +13 -129
  115. package/build/src/cli/parse.d.ts +0 -6
  116. package/build/src/cli/parse.js +5 -48
  117. package/build/src/cli/render/akuma-activity.d.ts +31 -16
  118. package/build/src/cli/render/akuma-activity.js +162 -122
  119. package/build/src/cli/render/akuma-tool.d.ts +3 -6
  120. package/build/src/cli/render/akuma-tool.js +20 -14
  121. package/build/src/cli/render/akuma.d.ts +25 -26
  122. package/build/src/cli/render/akuma.js +100 -129
  123. package/build/src/cli/render/catalog.d.ts +4 -7
  124. package/build/src/cli/render/catalog.js +52 -99
  125. package/build/src/cli/render/contract-history.d.ts +3 -1
  126. package/build/src/cli/render/contract-history.js +140 -215
  127. package/build/src/cli/render/contract-observation.d.ts +43 -30
  128. package/build/src/cli/render/contract-observation.js +64 -31
  129. package/build/src/cli/render/contract-wait.js +6 -6
  130. package/build/src/cli/render/contract.d.ts +41 -6
  131. package/build/src/cli/render/contract.js +274 -370
  132. package/build/src/cli/render/debt.d.ts +9 -19
  133. package/build/src/cli/render/debt.js +120 -185
  134. package/build/src/cli/render/delivery-preview.d.ts +4 -3
  135. package/build/src/cli/render/delivery-preview.js +68 -96
  136. package/build/src/cli/render/kanshi-akuma.d.ts +5 -4
  137. package/build/src/cli/render/kanshi-akuma.js +70 -59
  138. package/build/src/cli/render/kanshi.d.ts +4 -4
  139. package/build/src/cli/render/kanshi.js +205 -207
  140. package/build/src/cli/render/marks.d.ts +11 -2
  141. package/build/src/cli/render/marks.js +13 -3
  142. package/build/src/cli/render/nuke.d.ts +3 -3
  143. package/build/src/cli/render/nuke.js +13 -16
  144. package/build/src/cli/render/receipt.d.ts +37 -43
  145. package/build/src/cli/render/receipt.js +313 -236
  146. package/build/src/cli/render/reconcile.d.ts +6 -4
  147. package/build/src/cli/render/reconcile.js +53 -137
  148. package/build/src/cli/render/refusal.d.ts +3 -2
  149. package/build/src/cli/render/refusal.js +73 -54
  150. package/build/src/cli/render/region.d.ts +11 -2
  151. package/build/src/cli/render/region.js +17 -23
  152. package/build/src/cli/render/settings.d.ts +0 -1
  153. package/build/src/cli/render/settings.js +8 -17
  154. package/build/src/cli/render/terminal.d.ts +2 -0
  155. package/build/src/cli/render/verbs.d.ts +4 -0
  156. package/build/src/cli/render/verbs.js +312 -0
  157. package/build/src/cli/render/whoami.d.ts +1 -1
  158. package/build/src/cli/render/whoami.js +24 -31
  159. package/build/src/cli/runtime.d.ts +3 -11
  160. package/build/src/cli/runtime.js +96 -79
  161. package/build/src/cli/scan.d.ts +1 -1
  162. package/build/src/cli/streams.js +1 -0
  163. package/build/src/contract-guidance.js +2 -2
  164. package/build/src/contract-worktree.d.ts +2 -15
  165. package/build/src/contract-worktree.js +35 -36
  166. package/build/src/core/facts/observation.d.ts +4 -5
  167. package/build/src/core/facts/observation.js +7 -9
  168. package/build/src/core/verbs/amend.d.ts +0 -1
  169. package/build/src/core/verbs/amend.js +3 -3
  170. package/build/src/core/verbs/bind.d.ts +0 -1
  171. package/build/src/core/verbs/bind.js +5 -5
  172. package/build/src/core/verbs/deliver.d.ts +3 -2
  173. package/build/src/core/verbs/deliver.js +2 -2
  174. package/build/src/core/verbs/placement.d.ts +0 -5
  175. package/build/src/core/verbs/placement.js +4 -6
  176. package/build/src/core/verbs/reintegrate.d.ts +0 -1
  177. package/build/src/core/verbs/reintegrate.js +2 -2
  178. package/build/src/debt/board.d.ts +132 -116
  179. package/build/src/debt/board.js +138 -94
  180. package/build/src/debt/catalog.d.ts +4 -4
  181. package/build/src/debt/catalog.js +2 -18
  182. package/build/src/debt/context.d.ts +15 -3
  183. package/build/src/debt/context.js +12 -1
  184. package/build/src/debt/created-observation.d.ts +5 -17
  185. package/build/src/debt/created-observation.js +14 -6
  186. package/build/src/debt/document.d.ts +20 -15
  187. package/build/src/debt/document.js +18 -1
  188. package/build/src/debt/index.d.ts +346 -23
  189. package/build/src/debt/index.js +68 -22
  190. package/build/src/debt/input.d.ts +2 -1
  191. package/build/src/debt/input.js +14 -0
  192. package/build/src/debt/lifecycle-operations.d.ts +2 -2
  193. package/build/src/debt/lifecycle-operations.js +14 -22
  194. package/build/src/debt/operation-types.d.ts +188 -66
  195. package/build/src/debt/operation-types.js +113 -1
  196. package/build/src/debt/operations.d.ts +11 -10
  197. package/build/src/debt/operations.js +46 -71
  198. package/build/src/debt/query.d.ts +14 -10
  199. package/build/src/debt/query.js +3 -12
  200. package/build/src/debt/store.d.ts +4 -2
  201. package/build/src/debt/store.js +8 -8
  202. package/build/src/debt/view.d.ts +0 -3
  203. package/build/src/debt/view.js +0 -4
  204. package/build/src/dispatch/index.d.ts +22 -5
  205. package/build/src/dispatch/index.js +46 -37
  206. package/build/src/git/admission.d.ts +2 -2
  207. package/build/src/git/admission.js +2 -1
  208. package/build/src/git/hooks.d.ts +14 -35
  209. package/build/src/git/hooks.js +45 -25
  210. package/build/src/git/integration.d.ts +6 -24
  211. package/build/src/git/integration.js +10 -16
  212. package/build/src/git/observe.d.ts +2 -1
  213. package/build/src/git/observe.js +29 -20
  214. package/build/src/git/private-state-seat.d.ts +2 -2
  215. package/build/src/git/private-state-seat.js +2 -1
  216. package/build/src/git/reconcile.d.ts +17 -79
  217. package/build/src/git/reconcile.js +37 -52
  218. package/build/src/git/scratch.d.ts +3 -3
  219. package/build/src/git/scratch.js +4 -1
  220. package/build/src/git/target-placement.d.ts +23 -31
  221. package/build/src/git/target-placement.js +42 -27
  222. package/build/src/git/target.d.ts +2 -2
  223. package/build/src/git/target.js +2 -1
  224. package/build/src/git/tender.d.ts +7 -39
  225. package/build/src/git/tender.js +21 -54
  226. package/build/src/git/terminal-reconcile.js +15 -18
  227. package/build/src/git/terminal-seal.d.ts +2 -4
  228. package/build/src/git/terminal-seal.js +7 -33
  229. package/build/src/git/workspace.d.ts +65 -41
  230. package/build/src/git/workspace.js +45 -14
  231. package/build/src/identity/selector.d.ts +2 -0
  232. package/build/src/identity/selector.js +13 -3
  233. package/build/src/index.d.ts +48 -54
  234. package/build/src/index.js +31 -43
  235. package/build/src/kanshi/counts.d.ts +42 -8
  236. package/build/src/kanshi/counts.js +13 -2
  237. package/build/src/kanshi/index.d.ts +5 -5
  238. package/build/src/kanshi/index.js +4 -3
  239. package/build/src/kanshi/read.d.ts +489 -6
  240. package/build/src/kanshi/read.js +334 -483
  241. package/build/src/kanshi/report.d.ts +2504 -103
  242. package/build/src/kanshi/report.js +165 -1
  243. package/build/src/kanshi/select.d.ts +0 -8
  244. package/build/src/kanshi/select.js +20 -59
  245. package/build/src/library/address.d.ts +8 -8
  246. package/build/src/library/address.js +7 -7
  247. package/build/src/library/akuma-creation.d.ts +690 -84
  248. package/build/src/library/akuma-creation.js +202 -142
  249. package/build/src/library/akuma-retention.d.ts +2 -2
  250. package/build/src/library/akuma-retention.js +2 -2
  251. package/build/src/library/akumas.d.ts +10 -6
  252. package/build/src/library/akumas.js +24 -7
  253. package/build/src/library/bind.d.ts +28 -54
  254. package/build/src/library/bind.js +6 -4
  255. package/build/src/library/continuation.d.ts +197 -479
  256. package/build/src/library/continuation.js +40 -23
  257. package/build/src/library/contract-address.d.ts +6 -5
  258. package/build/src/library/contract-address.js +5 -7
  259. package/build/src/library/contract-composition.d.ts +18 -12
  260. package/build/src/library/contract-composition.js +55 -47
  261. package/build/src/library/contract-creation.d.ts +3 -2
  262. package/build/src/library/contract-creation.js +38 -32
  263. package/build/src/library/contract-execution.js +77 -38
  264. package/build/src/library/contract-outcomes.d.ts +1877 -27
  265. package/build/src/library/contract-outcomes.js +93 -10
  266. package/build/src/library/contract-settings.d.ts +2 -2
  267. package/build/src/library/contract-settings.js +18 -14
  268. package/build/src/library/contract-types.d.ts +238 -61
  269. package/build/src/library/contract-types.js +131 -1
  270. package/build/src/library/contract-wait.d.ts +38 -17
  271. package/build/src/library/contract-wait.js +40 -10
  272. package/build/src/library/delivery.d.ts +588 -36
  273. package/build/src/library/delivery.js +35 -27
  274. package/build/src/library/input.d.ts +1 -1
  275. package/build/src/library/input.js +1 -2
  276. package/build/src/library/invocation.d.ts +11 -7
  277. package/build/src/library/invocation.js +42 -51
  278. package/build/src/library/kei.d.ts +48 -0
  279. package/build/src/library/kei.js +256 -0
  280. package/build/src/library/keiyaku-attribution.d.ts +11 -0
  281. package/build/src/{cli/delivery-identity.js → library/keiyaku-attribution.js} +12 -1
  282. package/build/src/library/keiyaku-classify.d.ts +11 -0
  283. package/build/src/library/keiyaku-classify.js +146 -0
  284. package/build/src/library/keiyaku-coordinates.d.ts +31 -0
  285. package/build/src/library/keiyaku-coordinates.js +103 -0
  286. package/build/src/library/keiyaku-debt.d.ts +142 -0
  287. package/build/src/library/keiyaku-debt.js +188 -0
  288. package/build/src/library/keiyaku-identity.d.ts +58 -0
  289. package/build/src/library/keiyaku-identity.js +176 -0
  290. package/build/src/library/keiyaku-policy.d.ts +27 -0
  291. package/build/src/library/keiyaku-policy.js +44 -0
  292. package/build/src/library/keiyaku-status.d.ts +1487 -0
  293. package/build/src/library/keiyaku-status.js +92 -0
  294. package/build/src/library/keiyaku-verbs.d.ts +6774 -0
  295. package/build/src/library/keiyaku-verbs.js +458 -0
  296. package/build/src/library/keiyaku.d.ts +871 -38
  297. package/build/src/library/keiyaku.js +677 -127
  298. package/build/src/library/nuke.d.ts +22 -0
  299. package/build/src/library/nuke.js +4 -1
  300. package/build/src/library/outcome.d.ts +706 -692
  301. package/build/src/library/outcome.js +582 -167
  302. package/build/src/library/reconcile.d.ts +464 -116
  303. package/build/src/library/reconcile.js +174 -102
  304. package/build/src/library/refusal.d.ts +113 -577
  305. package/build/src/library/refusal.js +64 -51
  306. package/build/src/library/region.d.ts +5 -24
  307. package/build/src/library/region.js +6 -21
  308. package/build/src/library/selection.d.ts +181 -32
  309. package/build/src/library/selection.js +99 -64
  310. package/build/src/mcp/adapter.d.ts +11 -0
  311. package/build/src/mcp/adapter.js +106 -0
  312. package/build/src/mcp/help.d.ts +1 -0
  313. package/build/src/mcp/help.js +26 -0
  314. package/build/src/mcp/index.d.ts +2 -0
  315. package/build/src/mcp/index.js +37 -0
  316. package/build/src/plugin/public.d.ts +1 -1
  317. package/build/src/plugin/runtime.js +17 -14
  318. package/build/src/protocol/arc.d.ts +4 -1
  319. package/build/src/protocol/arc.js +7 -1
  320. package/build/src/protocol/attempt.d.ts +2 -3
  321. package/build/src/protocol/attempt.js +1 -10
  322. package/build/src/protocol/bind.d.ts +6 -7
  323. package/build/src/protocol/bind.js +9 -5
  324. package/build/src/protocol/completion.d.ts +448 -12
  325. package/build/src/protocol/completion.js +164 -26
  326. package/build/src/protocol/deliver.d.ts +26 -24
  327. package/build/src/protocol/deliver.js +24 -52
  328. package/build/src/protocol/delivery-preview.d.ts +97 -247
  329. package/build/src/protocol/delivery-preview.js +132 -128
  330. package/build/src/protocol/execution-observation.d.ts +146 -123
  331. package/build/src/protocol/execution-observation.js +9 -6
  332. package/build/src/protocol/intent.d.ts +9 -48
  333. package/build/src/protocol/intent.js +32 -46
  334. package/build/src/protocol/operations.d.ts +207 -505
  335. package/build/src/protocol/operations.js +81 -134
  336. package/build/src/protocol/placement.d.ts +0 -1
  337. package/build/src/protocol/placement.js +5 -2
  338. package/build/src/protocol/progress.d.ts +7 -97
  339. package/build/src/protocol/progress.js +7 -55
  340. package/build/src/protocol/read/observation.d.ts +13 -6
  341. package/build/src/protocol/read/observation.js +10 -9
  342. package/build/src/protocol/read/status.d.ts +466 -95
  343. package/build/src/protocol/read/status.js +380 -91
  344. package/build/src/protocol/reconcile.d.ts +2 -0
  345. package/build/src/protocol/reconcile.js +12 -11
  346. package/build/src/protocol/reintegrate.d.ts +0 -1
  347. package/build/src/protocol/reintegrate.js +4 -4
  348. package/build/src/protocol/result-leaves.d.ts +528 -0
  349. package/build/src/protocol/result-leaves.js +195 -0
  350. package/build/src/protocol/result-reasons.d.ts +129 -0
  351. package/build/src/protocol/result-reasons.js +87 -0
  352. package/build/src/protocol/review.d.ts +14 -11
  353. package/build/src/protocol/review.js +30 -14
  354. package/build/src/protocol/run.d.ts +4 -4
  355. package/build/src/protocol/run.js +4 -1
  356. package/build/src/protocol/verify.d.ts +359 -30
  357. package/build/src/protocol/verify.js +118 -28
  358. package/build/src/region.d.ts +26 -0
  359. package/build/src/region.js +28 -0
  360. package/build/src/runtime/proc/diagnostic.d.ts +11 -0
  361. package/build/src/runtime/proc/diagnostic.js +20 -0
  362. package/build/src/runtime/proc/windows-launch.exe +0 -0
  363. package/build/src/settings.d.ts +126 -32
  364. package/build/src/settings.js +107 -34
  365. package/build/src/settlement/settle.d.ts +29 -12
  366. package/build/src/settlement/settle.js +22 -15
  367. package/build/src/verification/declaration.d.ts +1 -3
  368. package/build/src/verification/declaration.js +2 -5
  369. package/build/src/verification/execution.d.ts +7 -19
  370. package/build/src/verification/execution.js +37 -16
  371. package/build/src/verification/observation.d.ts +13 -13
  372. package/build/src/verification/observation.js +9 -7
  373. package/build/src/world.d.ts +8 -0
  374. package/build/src/world.js +7 -0
  375. package/package.json +6 -5
  376. package/plugins/paseo/plugin/server/keiyaku.ts +13 -46
  377. package/plugins/paseo/plugin/server/message.ts +8 -30
  378. package/plugins/paseo/plugin/server/mirror.ts +16 -20
  379. package/plugins/paseo/plugin/server/provider.ts +1 -1
  380. package/plugins/paseo/plugin/server/sdk.ts +14 -6
  381. package/plugins/pi/README.md +5 -5
  382. package/plugins/pi/akuma-tools.ts +17 -23
  383. package/skills/keiyaku/SKILL.md +24 -24
  384. package/skills/keiyaku-akuma/SKILL.md +44 -168
  385. package/skills/keiyaku-akuma/references/automation.md +61 -231
  386. package/skills/keiyaku-babysit/SKILL.md +47 -58
  387. package/skills/keiyaku-bind/SKILL.md +44 -185
  388. package/skills/keiyaku-debt/SKILL.md +40 -89
  389. package/skills/keiyaku-workflow/SKILL.md +56 -116
  390. package/build/src/cli/actor.d.ts +0 -10
  391. package/build/src/cli/actor.js +0 -24
  392. package/build/src/cli/akuma-caller.d.ts +0 -3
  393. package/build/src/cli/akuma-caller.js +0 -31
  394. package/build/src/cli/delivery-identity.d.ts +0 -3
  395. package/build/src/cli/render/effects.d.ts +0 -26
  396. package/build/src/cli/render/effects.js +0 -41
  397. package/build/src/cli/selectors.d.ts +0 -10
  398. package/build/src/cli/selectors.js +0 -42
  399. package/build/src/markdown/diff.d.ts +0 -1
  400. package/build/src/markdown/diff.js +0 -4
@@ -1,65 +1,54 @@
1
1
  ---
2
2
  name: keiyaku-babysit
3
3
  description: >-
4
- Entering babysit mode: supervising parallel work across multiple Akuma and
5
- Contracts as they advance, instead of doing the work yourself.
4
+ Entering babysit mode: supervising parallel work across multiple `Akuma` and
5
+ `Contracts` as they advance, instead of doing the work yourself.
6
6
  ---
7
7
 
8
8
  # Keiyaku Babysit
9
9
 
10
- Babysitting is a method, not a role: no new identity, permission, ledger,
11
- status, id, or lifecycle. It is how whoever holds work in flight schedules
12
- their own attention across it.
13
-
14
- ## Lanes At Any Grain
15
-
16
- A lane is anything you are answerable for that moves without you: a Worker on
17
- an Arc, a Reviewer mid-examination, a whole Contract whose fulfillment loop you
18
- handed to one Aku. Handing work down narrows a lane; it never empties it — you
19
- did not hand off your answerability, you booked yourself for the next question,
20
- the next verify, the next return. When a Contract's whole loop is delegated,
21
- your lane is the holder itself: watch the journaled record — bind, amends,
22
- testimony, placement — verify at the boundaries you kept, and steer through the
23
- holder, never past it. One delegated loop is one lane, however much moves
24
- inside it.
25
-
26
- ## Attention
27
-
28
- **Sweep.** Pass over every lane at natural pause points instead of dwelling on
29
- one; depth goes where the sweep finds movement or silence that should not be
30
- there.
31
-
32
- **Critical path.** The lane the most other lanes wait on gets attention first,
33
- regardless of which lane is loudest.
34
-
35
- **Wait graph.** Know who waits on whom before deciding where to look; a cycle
36
- in that graph is the emergency, everything else is schedule.
37
-
38
- **Blocked lanes.** A blocked lane outranks every healthy one — unblock before
39
- you optimize.
40
-
41
- **Verify returns.** A return is not done because it arrived; it is done when
42
- checked against what was asked. Book the verify when you delegate, not after.
43
-
44
- **Steer early.** The cheapest steer is before divergence compounds: ask the
45
- question at the first doubt, not at delivery.
46
-
47
- **Lightest lane.** Keep each lane as light as it can be; do not babysit what
48
- does not move without you.
49
-
50
- ## Failure Shapes
51
-
52
- | Observed shape | First response |
53
- | --- | --- |
54
- | Silent wedge: initial answer empty and worktree clean | Inspect status and history, then send one steering `tell`. If the worker remains unresponsive, `kill` and call a new Akuma; an empty answer alone is not proof the Contract failed. |
55
- | Verdict record refused | Read the worker's analysis in history. Record the verdict yourself if you did not deliver the candidate, or call a new Reviewer and have it inspect current work and record a fresh verdict. The refused request wrote no Contract testimony. |
56
- | Review stale after changed candidate tender | Normal content-currentness result. Give the same Reviewer the changed diff and current terms with `tell`; have it re-examine and record current testimony. A target move alone does not stale review. |
57
- | Target moved under the appointed worktree | Have the Deliverer inspect target movement and merge the target branch (main when selected) in that worktree when required; resolve conflicts there, then run `deliver --dry-run` again. Do not resolve against a stale integration preview. |
58
- | Typed refusal names its rule | Fix the named input or physical condition, then retry from a fresh observation. Do not repeat the same request blindly. |
59
-
60
- ## What Babysitting Never Owns
61
-
62
- Commands and semantics belong to debt, bind, workflow, and akuma. Acceptance
63
- belongs to the Contract's journal and its Reviewer's testimony. The question
64
- belongs to whoever commissioned it. Babysitting decides only when you look and
65
- what you check next.
10
+ Babysitting is how you drive a fleet of parallel `Contracts` and `Akumas` to
11
+ completion without doing the implementation work yourself.
12
+
13
+ ## 1. Two Lane Grains: Direct Holding vs. Delegated `Holder`
14
+
15
+ - **You hold the `kei` (`@deliverer-x`, `@reviewer-x`):** you dispatch the
16
+ `Deliverer` and `Reviewer` for each chapter and advance `verify`, `deliver`, and
17
+ `review` as each worker returns.
18
+ - **Delegated holder (`@holder-x`):** you handed the entire fulfillment loop for
19
+ that `kei` to one dedicated `Akuma`. Watch the `Contract`'s journaled state
20
+ (`status`, `wait kei/...`) and steer **through** `@holder-x` with `tell` —
21
+ never bypass the holder to micromanage its workers directly.
22
+
23
+ ## 2. The Event-Driven Supervision Loop
24
+
25
+ 1. **Scan the board (`status`):** check which `kei`s are ready to land, which
26
+ are waiting on `after` prerequisites or gates, and which `@alias`es are
27
+ running (`●`), succeeded (`✓`), or failed (`!`).
28
+ 2. **Wait on the fleet (`wait`):** pass all in-flight worker `@alias`es to
29
+ `wait` (wakes as soon as *any* worker settles by default), or pass active
30
+ `kei/...` IDs to wait for journal transitions (do not mix `aku/...` and
31
+ `kei/...` in one `wait`).
32
+ 3. **Act on the waking lane immediately:** inspect its receipt or `history`,
33
+ steer with `tell` or launch the next stage (such as `@reviewer` after
34
+ `@deliverer` tenders), then return to `wait` for the remaining lanes.
35
+
36
+ ## 3. Parallel Landing And Lane Recovery
37
+
38
+ - **When a sibling `kei` lands on the same target branch:** do **not** ask
39
+ other lanes' `Deliverers` to rebase or re-`deliver` preemptively — Keiyaku
40
+ re-integrates clean target movement and ready `after` dependents
41
+ automatically, and standing `review` testimony stays valid when the diff is
42
+ unchanged. Act only on what the receipt asks for:
43
+ - `⧗ awaiting verification ...`: run a fresh `verify` directly (no rebase or
44
+ re-`deliver`).
45
+ - Merge conflict: have the `Deliverer` merge the target branch in the appointed
46
+ worktree, resolve conflicts, and re-`deliver`.
47
+ - **Silent or wedged worker:** if a worker settles with an empty answer and
48
+ clean worktree (or stalls without progress), check `history <aku>`, send one
49
+ steering `tell`, or `kill` it and spawn a replacement assigned to the same
50
+ `@alias`.
51
+ - **Unrecorded review verdict:** if `@reviewer` wrote its analysis in `history`
52
+ without recording `review` testimony, read `history` and record the `review`
53
+ verdict yourself (if you were not the `Deliverer`) or `tell` `@reviewer` to
54
+ record it.
@@ -1,100 +1,40 @@
1
1
  ---
2
2
  name: keiyaku-bind
3
3
  description: >-
4
- Must read before binding a `kei` (Contract). Use when deciding what belongs
4
+ Must read before binding a `kei` (`Contract`). Use when deciding what belongs
5
5
  in one `kei`, how to divide its work, and how to write or run `bind`.
6
6
  ---
7
7
 
8
8
  # Before Binding A Keiyaku
9
9
 
10
- Bind records a Contract whose objective, design, and acceptance boundary are
11
- settled. Do not use it to leave an open design for someone else to decide.
12
-
13
- ## 1. What Must Be Clear Before Binding
14
-
15
- Settle these facts first:
16
-
17
- - objective and intended outcome;
18
- - architecture and module boundaries;
19
- - detailed design and implementation approach;
20
- - public interfaces, behavior, data, and persistence;
21
- - ordering, concurrency, dependencies, and failure behavior;
22
- - acceptance conditions;
23
- - verification and required evidence;
24
- - the affected Region;
25
- - the one holder responsible for the `kei`.
26
-
27
- The Design section is a detailed design document. Use the subsections in the
28
- template below as needed, add others when useful, and record every decision the
29
- implementation must follow. Do not bind while design or acceptance is open.
30
-
31
- ### Contract Shape: Mandatory Acceptance Boundary Check
32
-
33
- Before every bind, identify the independently acceptable outcomes. For each
34
- proposed part, ask whether it can be reviewed and accepted while another part
35
- remains unfinished. If it can, you MUST bind it as a separate `kei`. Do not bind
36
- an aggregate Contract containing independently acceptable outcomes.
37
-
38
- A shared request, audit, theme, product name, worker, verification command, or
39
- overlapping Region does NOT justify combining acceptance boundaries. Worker
40
- assignment and Contract boundaries are separate decisions: one worker may
41
- serve several Contracts, and several workers may contribute to one outcome.
42
- A request to "open a kei" does not by itself instruct you to combine outcomes.
43
-
44
- Keep parts together only when they jointly establish one outcome that cannot
45
- be meaningfully accepted in parts. State that inseparability in Context and
46
- make Criteria judge the same outcome. Do not manufacture inseparability by
47
- writing one broad Objective around unrelated fixes.
48
-
49
- - Use an Arc only for a chapter inside that one acceptance boundary; an Arc is
50
- not separately accepted and MUST NOT substitute for an independent `kei`.
51
- - Use a Debt for confirmed unresolved work and dependencies that must outlive
52
- the current conversation.
53
-
54
- A `kei` owns one independently acceptable outcome and its delivery lifecycle. A
55
- Debt records confirmed unresolved work; it may exist without a `kei`,
56
- and it does not create a second acceptance or lifecycle. Associate a `kei` with
57
- an existing Debt only when the delivery actually settles that unresolved work.
58
- Do not create a Debt just to mirror a `kei`.
59
-
60
- ### Parallel Work
61
-
62
- Parallel work is the default.
63
-
64
- - Bind and advance independent `kei`s in parallel. Each has its own acceptance
65
- boundary and holder.
66
- - Within one `kei`, run independent Debts or Arc chapters in parallel whenever
67
- their work can proceed independently. They converge on the one acceptance
68
- boundary, which the holder owns.
69
-
70
- Region overlap is planning information. It does not prevent parallel work and
71
- is not a lock, ownership claim, exact diff, or dependency. Use `--after` only
72
- when one result must exist before another can proceed because of a real logical
73
- dependency. Do not add `--after` merely because work touches the same Region.
74
-
75
- ## 2. Bind Syntax
76
-
77
- Read the command's help for the complete option grammar:
78
-
79
- ```bash
80
- keiyaku -C <repo> bind --help
81
- ```
82
-
83
- Inspect declared Regions when planning parallel work:
84
-
85
- ```bash
86
- keiyaku -C <repo> region
87
- keiyaku -C <repo> region <kei/...>
88
- keiyaku -C <repo> region --path 'src/**' --path 'tests/**'
89
- ```
90
-
91
- These list active Regions, read one Contract's Region, or show active Regions
92
- overlapping the supplied patterns. Overlap is coordination information only.
93
-
94
- Bind from stdin with a heredoc or a saved Markdown file:
95
-
96
- ~~~~bash
97
- keiyaku -C <repo> bind - <<'KEIYAKU'
10
+ `bind` records a `Contract` whose objective, design, and acceptance boundary are
11
+ closed. Never `bind` a wish list ("support X", "clean up Y") that leaves the
12
+ mechanism for the `Deliverer` to invent — if the design is still open, inspect
13
+ the codebase yourself or send an `Akuma` to settle the approach first (or record
14
+ a `Debt` if deferring the work).
15
+
16
+ ## 1. Boundaries, `Arcs`, And Parallelism
17
+
18
+ - **One independently acceptable outcome per `kei`:** if part of the work can
19
+ be reviewed and accepted while another part remains unfinished, `bind` them as
20
+ separate `kei`s. Shared themes, workers, verification commands, or
21
+ overlapping `Regions` do not justify combining outcomes.
22
+ - **Divide complex `kei`s into `Arcs`:** when one indivisible outcome is still
23
+ large or multi-stage, break its execution into **`Arcs`** (`arc`) so each
24
+ commission tackles one focused chapter (`This Arc: ...`) rather than a
25
+ monolith.
26
+ - **Parallel lanes and `after`:** run independent `kei`s in parallel. Inspect
27
+ active write surfaces with `region` for planning, and declare `after` only
28
+ for true logical prerequisites. Omitting the target selects the current
29
+ branch; targeting another active `kei` stacks on its appointed worktree.
30
+
31
+ ## 2. Authoring The `Contract` Document
32
+
33
+ Put weight on **`### Approach And Flow`**: state the concrete mechanism, data
34
+ and control flow, invariants, and failure handling clearly enough that two
35
+ `Deliverers` would not invent incompatible designs.
36
+
37
+ ~~~~markdown
98
38
  # <Delivery name>
99
39
 
100
40
  ## Context
@@ -114,13 +54,13 @@ keiyaku -C <repo> bind - <<'KEIYAKU'
114
54
  <Data shape, identity, lifecycle facts, and persistence decisions.>
115
55
 
116
56
  ### Approach And Flow
117
- <Implementation approach, dependencies, ordering, concurrency, and failure.>
57
+ <Concrete mechanism, step-by-step flow, ordering, concurrency, and failure handling.>
118
58
 
119
59
  ### Pseudocode
120
- <Algorithms and control flow.>
60
+ <Key algorithms and control flow.>
121
61
 
122
62
  ## Region
123
- <One repository-relative write pattern per nonblank line.>
63
+ <One repository-relative write pattern per nonblank line; trailing / means /**.>
124
64
 
125
65
  ## Criteria
126
66
  ### <observable acceptance condition>
@@ -130,101 +70,20 @@ keiyaku -C <repo> bind - <<'KEIYAKU'
130
70
  ```bash timeout=5m
131
71
  <commands runnable exactly as written>
132
72
  ```
133
- KEIYAKU
134
73
  ~~~~
135
74
 
136
- Use the narrowest justified Region patterns for likely writes. A trailing `/`
137
- is directory shorthand for `/**`. Patterns may be fenced lines, list items, or
138
- bare lines; those forms are combined. Region patterns are planning evidence,
139
- not a prediction of the exact diff.
140
-
141
- Verification is optional. Each declaration is a closed bash, zsh, or pwsh
142
- fence containing commands runnable as written. Separate fences give independent
143
- checks and deadlines. Each check gets its own clean scratch, setup, and cleanup;
144
- put any prerequisite build in that check's script or setup, never in a preceding
145
- fence. Use an explicit timeout for bounded commands; `5m` is the normal baseline.
146
-
147
- Only explicit `verify` executes declarations, and only with the `verified` gate
148
- selected. It captures the exact prospective integration using delivery's clean
149
- worktree rule and explicit dirty-capture authorization, without admitting a
150
- delivery. `deliver`, `review`, `deliver --dry-run`, and dependent completion only
151
- consume existing evidence. Without `verified`, the section is inert and creates
152
- no requirements. `reviewed` independently requires review evidence.
153
-
154
- ```bash
155
- keiyaku -C <appointed-path> verify <kei/...>
156
- keiyaku -C <appointed-path> verify <kei/...> --index 1 --include-dirty
157
- ```
158
-
159
- Omit `--index` to execute all declarations; a positive one-based index selects
160
- one current declaration. Every invocation executes its selection, even when
161
- satisfied testimony already exists. Each terminal check admits testimony before
162
- later checks begin; an identical admission may be reused without skipping
163
- execution. Normal failures and timeouts affect only their requirement and full
164
- verify continues; operational stops admit no verdict for the affected check and
165
- preserve earlier results.
166
-
167
- Every selected gate needs current satisfied testimony for every requirement.
168
- Review and custom gates have a singleton requirement. Verification requirements
169
- follow canonical executor, script, and declared deadline, never declaration
170
- position: reordering preserves evidence, changing one check affects only that
171
- requirement, and exact duplicates share one requirement. Removing a declaration
172
- removes its obligation but preserves historical testimony. Evidence captured
173
- before delivery can satisfy a later delivery of the exact same integration;
174
- changed candidate or target snapshots need applicable evidence. Verify can place
175
- only an already-delivered Contract when all gates and prerequisites pass.
176
-
177
- For an existing Debt that this delivery settles:
178
-
179
- ```bash
180
- keiyaku -C <repo> bind --debt <debt/...> - < CONTRACT.md
181
- ```
182
-
183
- For a real logical dependency between Contracts:
184
-
185
- ```bash
186
- keiyaku -C <repo> bind --after <kei/...> - < CONTRACT.md
187
- ```
188
-
189
- Gate selection is part of binding:
190
-
191
- ```bash
192
- keiyaku -C <repo> bind --gates <name,...> - < CONTRACT.md
193
- keiyaku -C <repo> bind --gates "" - < CONTRACT.md
194
- keiyaku -C <repo> bind --gates reviewed - < CONTRACT.md
195
- ```
196
-
197
- Omitting `--gates` uses `gates.default`, or `reviewed` when no default group
198
- exists. `--gates ""` selects no gates. Gates are named acceptance obligations,
199
- not work assignments. Named gate groups and worktree hooks live in Settings;
200
- see the README Configuration section or `keiyaku settings --help`.
75
+ - **Gates and `verified`:** omitting gates uses `gates.default` if configured,
76
+ otherwise `reviewed`. Without the `verified` gate, `## Verification` serves
77
+ as reference documentation for the `Deliverer` and `Reviewer` rather than a gate
78
+ requirement executed by `verify`.
79
+ - **Independent scratch:** each closed fence in `## Verification` runs in its
80
+ own clean scratch directory; include any required build in that fence or its
81
+ setup hook.
201
82
 
202
83
  ## 3. After Binding
203
84
 
204
- Binding appoints one managed worktree for the `kei`. Read the receipt as the
205
- handoff. Keep the complete `kei/...` identity and note:
206
-
207
- - the holder;
208
- - the appointed worktree path (absent when appointment lagged);
209
- - the target;
210
- - gates and prerequisites;
211
- - whether the `kei` is ready or waiting.
212
-
213
- Work in the appointed worktree. When appointment lags, the receipt carries no
214
- path and the `kei` shows pending reconciliation instead. If the receipt is
215
- waiting, the stated prerequisites remain; do not bind a duplicate Contract.
216
-
217
- The holder now owns the lifecycle:
218
-
219
- 1. Start the work directly or delegate Debts, Arc chapters, Akumas, or Contract roles.
220
- 2. Run independent work in parallel and let it converge on the one acceptance
221
- boundary.
222
- 3. Prepare the candidate and explicitly verify selected declarations when
223
- `verified` is required; deliver those same bytes before or after verification.
224
- 4. Coordinate requirement evidence, review, gates, and prerequisites; inspect
225
- per-check verdicts, admission reuse, stops, and retained diagnostic paths.
226
- 5. Continue until the `kei` is accepted, amend terms while keeping the same
227
- objective and acceptance boundary, or abandon it when either has changed.
228
-
229
- Continue with `keiyaku-workflow` for this lifecycle. For Akuma invocation,
230
- telling, waiting, and history, read `keiyaku-akuma`.
85
+ Every `kei` has **one and only one holder** accountable for driving it to a
86
+ terminal outcome — you by default, unless you explicitly hand the entire holder
87
+ loop to one dedicated `Akuma`. Work and commit inside the appointed worktree path
88
+ from the receipt (run `reconcile` if appointment lagged), advance multi-stage
89
+ work with `arc`, and continue with `keiyaku-workflow`.
@@ -1,96 +1,47 @@
1
1
  ---
2
2
  name: keiyaku-debt
3
3
  description: >-
4
- Must read when recording confirmed unresolved work or dependencies in Debts.
4
+ Must read when recording confirmed unresolved work or dependencies in `Debts`.
5
5
  ---
6
6
 
7
7
  # Keiyaku Debt
8
8
 
9
- A Debt records confirmed unresolved work and its relationships. Debt is an
10
- independent product; it is not a Contract, Arc, Akuma, permission, acceptance
11
- boundary, or fulfillment lifecycle.
12
-
13
- ## 1. When To Use A Debt
14
-
15
- Use a Debt when confirmed unresolved work or a dependency must outlive the
16
- current conversation. Keep plans and execution progress in reasoning or session
17
- notes instead.
18
-
19
- - Use a `kei` for one independently acceptable outcome.
20
- - Use an Arc for a chapter inside one `kei`.
21
- - Use a Debt for confirmed unresolved work and its prerequisites.
22
- - Do not create a Debt just to mirror a `kei`.
23
-
24
- A Debt may exist without a Contract. Associating a Debt with a `kei` does not
25
- transfer the Contract's holder, acceptance, or lifecycle to the Debt.
26
-
27
- ## 2. Relationships And Parallel Work
28
-
29
- Independent work may proceed in parallel when its dependencies allow it.
30
- Debt records no execution-progress state.
31
-
32
- Use the relationships for their actual meanings:
33
-
34
- - `needs` means this Debt must wait for another Debt to become terminal.
35
- - `parent` groups decomposition; it does not create a dependency.
36
- - `supersedes` points to work replaced by this Debt.
37
- - `relates` records a connection without affecting readiness.
38
-
39
- Only `needs` orders work. Do not add it because Debts touch the same Region or
40
- because one Debt is related to another. A terminal Debt releases its dependents.
41
-
42
- ## 3. Debt Commands
43
-
44
- Create and inspect Debts:
45
-
46
- ```bash
47
- keiyaku debt add "<title>"
48
- keiyaku debt add "<title>" --priority 1 --needs <debt/...>
49
- keiyaku debt show <debt/...>
50
- keiyaku debt ls
51
- keiyaku debt ready
52
- keiyaku debt blocked
53
- keiyaku debt tree <debt/...>
54
- keiyaku debt doctor
55
- keiyaku debt query --where 'priority <= 1 and ready' --world
56
- keiyaku debt context # read the default namespace
57
- keiyaku debt context <namespace> # set it; / resets to root
58
- ```
59
-
60
- Use complete Debt IDs for targeted commands. `ls`, `ready`, and `blocked` use
61
- the current namespace; use `--world` to inspect the complete Debt world.
62
-
63
- Close work:
64
-
65
- ```bash
66
- keiyaku debt done <debt/...>...
67
- keiyaku debt drop <debt/...>... --note "<reason>"
68
- ```
69
-
70
- Use `done` when the Debt is complete. Use `drop` when it is no longer owed.
71
- Both terminal states release dependent Debts. Unresolved `needs` appear in
72
- `blocked`; open work with all prerequisites terminal appears in `ready`.
73
-
74
- Update a Debt without changing its lifecycle:
75
-
76
- ```bash
77
- keiyaku debt update <debt/...> --title "<title>"
78
- keiyaku debt update <debt/...> --body "<body>"
79
- keiyaku debt update <debt/...> --needs <debt/...>
80
- keiyaku debt update <debt/...> --parent <debt/...> --relates <debt/...>
81
- keiyaku debt update <debt/...> --drop-needs <debt/...>
82
- ```
83
-
84
- ## 4. After Creating A Debt
85
-
86
- Read the returned Debt identity. Then:
87
-
88
- 1. Add or remove relationships when the confirmed prerequisites change.
89
- 2. Mark completed work `done`, or work no longer owed `drop` with a reason.
90
- 3. Use `ready`, `blocked`, `tree`, or `doctor` to inspect the current ledger.
91
-
92
- Debt records unresolved work. It does not perform the work, claim acceptance,
93
- assign a holder, or decide what a Contract may accept.
94
-
95
- Read `keiyaku-bind` for Contract authoring and `keiyaku-workflow` for Contract
96
- lifecycle.
9
+ A `Debt` records confirmed unresolved work and its relationships (`open`, `done`,
10
+ `drop`). Unlike a `kei`, a `Debt` does not require a closed design — use it to
11
+ capture a confirmed problem or prerequisite that must outlive the current
12
+ conversation, while keeping transient scratch plans in session notes.
13
+
14
+ ## 1. Recording A Useful `Debt`
15
+
16
+ - **Self-contained body:** write enough concrete evidence (files, symbols,
17
+ repro, or why work was deferred) that a future reader can act on the `Debt`
18
+ cold without rediscovering the problem.
19
+ - **Priority (`0..3` ascending):** `0` is highest urgency (`priority <= 1`
20
+ selects high-priority work in queries).
21
+ - **No mirror `Debts`:** never create a `Debt` just to mirror an already-bound `kei`.
22
+
23
+ ## 2. Relationships And Readiness
24
+
25
+ Only `needs` orders work: a `Debt` with unresolved `needs` is `blocked`, and
26
+ becomes `ready` once every prerequisite is `done` or `drop`. Do not add `needs`
27
+ merely because two `Debts` touch the same `Region` or are related.
28
+
29
+ - `needs`: prerequisite that must become terminal first.
30
+ - `parent`: decomposition grouping (does not block).
31
+ - `supersedes`: earlier `Debt` replaced by this one.
32
+ - `relates`: non-blocking link.
33
+
34
+ `show` displays only outbound relations declared on that `Debt`; use `tree`,
35
+ parent-scoped `ready`/`blocked`, or `query` (`blocks`, `under`) to inspect
36
+ reverse links.
37
+
38
+ ## 3. Scope And `Contract` Settlement
39
+
40
+ - **Namespace scope:** an appointed `Contract` worktree scopes its default `Debt`
41
+ context to `debt/<contract>/...`. Select the root namespace `/` when filing a
42
+ repo-wide `Debt` from inside a worktree, and enable world scope on `ls`,
43
+ `ready`, `blocked`, or `query` to inspect across all namespaces. Always
44
+ address a specific `Debt` by its complete `debt/...` ID.
45
+ - **`Contract` settlement:** associating a `Debt` when binding a `kei` holds that
46
+ `Debt`; accepting the `kei` marks it `done`, while abandoning the `kei`
47
+ releases it back to `open`.