@astrosheep/keiyaku 4.6.27 → 4.6.28

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 (285) hide show
  1. package/README.md +76 -35
  2. package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
  3. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +39 -4
  4. package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +4 -7
  5. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +1 -1
  6. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +39 -15
  7. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +42 -22
  8. package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
  9. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +39 -4
  10. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +4 -7
  11. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +1 -1
  12. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +39 -15
  13. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +42 -22
  14. package/build/plugins/opencode/package.json +1 -1
  15. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +39 -4
  16. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +4 -7
  17. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +1 -1
  18. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +39 -15
  19. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +42 -22
  20. package/build/plugins/pi/README.md +7 -12
  21. package/build/plugins/pi/akuma-tools.ts +3 -18
  22. package/build/skills/keiyaku-akuma/SKILL.md +39 -4
  23. package/build/skills/keiyaku-akuma/references/automation.md +4 -7
  24. package/build/skills/keiyaku-babysit/SKILL.md +1 -1
  25. package/build/skills/keiyaku-bind/SKILL.md +39 -15
  26. package/build/skills/keiyaku-workflow/SKILL.md +42 -22
  27. package/build/src/akuma/akuma-call.d.ts +15 -18
  28. package/build/src/akuma/akuma-call.js +55 -112
  29. package/build/src/akuma/akuma-errors.d.ts +0 -5
  30. package/build/src/akuma/akuma-errors.js +0 -9
  31. package/build/src/akuma/akuma-instance.d.ts +0 -2
  32. package/build/src/akuma/akuma-instance.js +18 -14
  33. package/build/src/akuma/akuma-observe.js +0 -1
  34. package/build/src/akuma/akuma-owner.js +0 -1
  35. package/build/src/akuma/akuma.d.ts +10 -26
  36. package/build/src/akuma/akuma.js +0 -2
  37. package/build/src/akuma/archetype.d.ts +0 -2
  38. package/build/src/akuma/archetype.js +3 -9
  39. package/build/src/akuma/body-launch.d.ts +12 -4
  40. package/build/src/akuma/body.d.ts +2 -5
  41. package/build/src/akuma/body.js +5 -49
  42. package/build/src/akuma/call-initial-tell.d.ts +39 -147
  43. package/build/src/akuma/call-initial-tell.js +0 -48
  44. package/build/src/akuma/caller.d.ts +0 -4
  45. package/build/src/akuma/custody.js +1 -57
  46. package/build/src/akuma/heart/facts.d.ts +0 -39
  47. package/build/src/akuma/heart/facts.js +0 -1
  48. package/build/src/akuma/heart/index.d.ts +1 -2
  49. package/build/src/akuma/heart/index.js +0 -1
  50. package/build/src/akuma/heart/schema.js +0 -26
  51. package/build/src/akuma/heart/soul.d.ts +2 -2
  52. package/build/src/akuma/heart/soul.js +2 -4
  53. package/build/src/akuma/identity.d.ts +0 -1
  54. package/build/src/akuma/identity.js +0 -2
  55. package/build/src/akuma/in-process-body.d.ts +1 -1
  56. package/build/src/akuma/index.d.ts +0 -2
  57. package/build/src/akuma/index.js +0 -1
  58. package/build/src/akuma/projection.d.ts +23 -23
  59. package/build/src/akuma/provider.d.ts +0 -5
  60. package/build/src/akuma/provider.js +0 -1
  61. package/build/src/akuma/providers/acp/core.js +1 -1
  62. package/build/src/akuma/providers/claude/index.js +1 -2
  63. package/build/src/akuma/providers/codex-app-server/index.js +1 -1
  64. package/build/src/akuma/providers/execution-environment.d.ts +1 -3
  65. package/build/src/akuma/providers/execution-environment.js +1 -7
  66. package/build/src/akuma/providers/opencode-sdk/index.js +0 -1
  67. package/build/src/akuma/providers/opencode-sdk/session.d.ts +0 -1
  68. package/build/src/akuma/providers/opencode-sdk/session.js +4 -4
  69. package/build/src/akuma/providers/paseo/index.js +2 -9
  70. package/build/src/akuma/providers/pi/index.js +8 -14
  71. package/build/src/akuma/publication.d.ts +24 -59
  72. package/build/src/akuma/publication.js +29 -64
  73. package/build/src/akuma/selection-observation.d.ts +47 -2036
  74. package/build/src/akuma/selection-observation.js +1 -59
  75. package/build/src/akuma/turn-drive.d.ts +0 -8
  76. package/build/src/akuma/turn-drive.js +19 -103
  77. package/build/src/akuma-body.js +3 -6
  78. package/build/src/body-host.d.ts +8 -2
  79. package/build/src/body-host.js +30 -4
  80. package/build/src/cli/commands/akuma-grammar.d.ts +0 -2
  81. package/build/src/cli/commands/akuma-grammar.js +10 -33
  82. package/build/src/cli/commands/akuma.js +31 -49
  83. package/build/src/cli/commands/contract-grammar.d.ts +7 -1
  84. package/build/src/cli/commands/contract-grammar.js +15 -0
  85. package/build/src/cli/commands/contract-help.d.ts +13 -1
  86. package/build/src/cli/commands/contract-help.js +47 -16
  87. package/build/src/cli/commands/contract.js +27 -26
  88. package/build/src/cli/commands/debt.js +3 -3
  89. package/build/src/cli/commands/whoami.d.ts +0 -2
  90. package/build/src/cli/commands/whoami.js +0 -5
  91. package/build/src/cli/coordinates.js +15 -0
  92. package/build/src/cli/delivery-identity.d.ts +3 -0
  93. package/build/src/cli/delivery-identity.js +23 -0
  94. package/build/src/cli/parse.js +1 -0
  95. package/build/src/cli/render/akuma-activity.d.ts +0 -1
  96. package/build/src/cli/render/akuma-activity.js +1 -4
  97. package/build/src/cli/render/catalog.js +7 -1
  98. package/build/src/cli/render/contract-history.js +16 -38
  99. package/build/src/cli/render/contract-observation.d.ts +23 -10
  100. package/build/src/cli/render/contract-observation.js +9 -6
  101. package/build/src/cli/render/contract-wait.d.ts +2 -0
  102. package/build/src/cli/render/contract-wait.js +18 -0
  103. package/build/src/cli/render/contract.d.ts +2 -2
  104. package/build/src/cli/render/contract.js +57 -39
  105. package/build/src/cli/render/delivery-preview.js +13 -26
  106. package/build/src/cli/render/execution-progress.js +9 -9
  107. package/build/src/cli/render/kanshi.js +4 -11
  108. package/build/src/cli/render/receipt.d.ts +18 -0
  109. package/build/src/cli/render/receipt.js +34 -10
  110. package/build/src/cli/render/reconcile.js +3 -0
  111. package/build/src/cli/render/refusal.js +28 -6
  112. package/build/src/cli/render/whoami.js +1 -4
  113. package/build/src/cli/runtime.d.ts +0 -2
  114. package/build/src/cli/runtime.js +3 -7
  115. package/build/src/cli/selectors.d.ts +1 -2
  116. package/build/src/cli/selectors.js +2 -5
  117. package/build/src/contract-guidance.js +4 -2
  118. package/build/src/contract-worktree.d.ts +3 -3
  119. package/build/src/core/facts/codec.js +38 -5
  120. package/build/src/core/facts/fold.js +1 -0
  121. package/build/src/core/facts/gate.d.ts +10 -4
  122. package/build/src/core/facts/gate.js +56 -39
  123. package/build/src/core/facts/observation.d.ts +7 -1
  124. package/build/src/core/facts/observation.js +15 -0
  125. package/build/src/core/facts/offer.d.ts +2 -2
  126. package/build/src/core/facts/types.d.ts +17 -1
  127. package/build/src/core/facts/types.js +6 -0
  128. package/build/src/core/verbs/amend.js +8 -0
  129. package/build/src/core/verbs/bind.d.ts +3 -1
  130. package/build/src/core/verbs/bind.js +9 -1
  131. package/build/src/core/verbs/deliver.d.ts +2 -1
  132. package/build/src/core/verbs/deliver.js +4 -1
  133. package/build/src/core/verbs/placement.d.ts +2 -1
  134. package/build/src/core/verbs/placement.js +7 -4
  135. package/build/src/core/verbs/reintegrate.d.ts +2 -1
  136. package/build/src/core/verbs/reintegrate.js +4 -1
  137. package/build/src/debt/board.d.ts +10 -10
  138. package/build/src/debt/created-observation.d.ts +3 -3
  139. package/build/src/debt/document.d.ts +1 -1
  140. package/build/src/debt/index.d.ts +2 -24
  141. package/build/src/debt/index.js +11 -71
  142. package/build/src/debt/operation-types.d.ts +44 -3
  143. package/build/src/git/admission.js +18 -6
  144. package/build/src/git/integration.d.ts +4 -4
  145. package/build/src/git/integration.js +7 -1
  146. package/build/src/git/observe.d.ts +6 -4
  147. package/build/src/git/observe.js +18 -17
  148. package/build/src/git/reconcile.d.ts +20 -8
  149. package/build/src/git/reconcile.js +94 -45
  150. package/build/src/git/repository.d.ts +3 -1
  151. package/build/src/git/repository.js +26 -4
  152. package/build/src/git/scratch.d.ts +1 -1
  153. package/build/src/git/scratch.js +19 -18
  154. package/build/src/git/target-placement.d.ts +33 -7
  155. package/build/src/git/target-placement.js +67 -18
  156. package/build/src/git/target.d.ts +32 -0
  157. package/build/src/git/target.js +84 -0
  158. package/build/src/git/terminal-reconcile.d.ts +1 -1
  159. package/build/src/git/terminal-reconcile.js +34 -6
  160. package/build/src/index.d.ts +9 -7
  161. package/build/src/index.js +1 -1
  162. package/build/src/library/address.d.ts +1 -20
  163. package/build/src/library/address.js +3 -24
  164. package/build/src/library/akuma-creation.d.ts +2 -5
  165. package/build/src/library/akuma-creation.js +60 -44
  166. package/build/src/library/akumas.d.ts +3 -9
  167. package/build/src/library/akumas.js +12 -25
  168. package/build/src/library/bind.d.ts +21 -9
  169. package/build/src/library/bind.js +5 -1
  170. package/build/src/library/continuation.d.ts +130 -155
  171. package/build/src/library/continuation.js +1 -4
  172. package/build/src/library/contract-composition.d.ts +4 -9
  173. package/build/src/library/contract-composition.js +8 -12
  174. package/build/src/library/contract-creation.d.ts +1 -3
  175. package/build/src/library/contract-creation.js +2 -3
  176. package/build/src/library/contract-execution.d.ts +3 -5
  177. package/build/src/library/contract-execution.js +55 -96
  178. package/build/src/library/contract-outcomes.d.ts +2 -1
  179. package/build/src/library/contract-types.d.ts +5 -0
  180. package/build/src/library/contract-wait.d.ts +35 -0
  181. package/build/src/library/contract-wait.js +141 -0
  182. package/build/src/library/delivery.d.ts +13 -525
  183. package/build/src/library/delivery.js +1 -12
  184. package/build/src/library/input.js +2 -1
  185. package/build/src/library/invocation.d.ts +5 -1
  186. package/build/src/library/invocation.js +9 -2
  187. package/build/src/library/keiyaku.d.ts +7 -6
  188. package/build/src/library/keiyaku.js +12 -7
  189. package/build/src/library/outcome.d.ts +461 -12586
  190. package/build/src/library/outcome.js +15 -234
  191. package/build/src/library/reconcile.d.ts +12 -0
  192. package/build/src/library/reconcile.js +1 -0
  193. package/build/src/library/refusal.d.ts +251 -34
  194. package/build/src/library/refusal.js +10 -5
  195. package/build/src/library/selection.d.ts +9 -35
  196. package/build/src/library/selection.js +59 -129
  197. package/build/src/plugin/akuma-signals.d.ts +2 -2
  198. package/build/src/plugin/akuma-signals.js +2 -2
  199. package/build/src/plugin/public.d.ts +0 -7
  200. package/build/src/plugin/runtime.d.ts +2 -2
  201. package/build/src/plugin/runtime.js +4 -3
  202. package/build/src/protocol/attempt.js +7 -3
  203. package/build/src/protocol/bind.d.ts +18 -4
  204. package/build/src/protocol/bind.js +102 -35
  205. package/build/src/protocol/completion.d.ts +18 -331
  206. package/build/src/protocol/completion.js +17 -130
  207. package/build/src/protocol/deliver.d.ts +3 -3
  208. package/build/src/protocol/deliver.js +64 -74
  209. package/build/src/protocol/delivery-preview.d.ts +85 -28
  210. package/build/src/protocol/delivery-preview.js +34 -22
  211. package/build/src/protocol/execution-observation.d.ts +12 -9
  212. package/build/src/protocol/execution-observation.js +0 -1
  213. package/build/src/protocol/intent.d.ts +20 -50
  214. package/build/src/protocol/intent.js +37 -44
  215. package/build/src/protocol/operations.d.ts +299 -19
  216. package/build/src/protocol/operations.js +68 -27
  217. package/build/src/protocol/outcome.d.ts +1 -1
  218. package/build/src/protocol/placement.d.ts +2 -2
  219. package/build/src/protocol/placement.js +4 -3
  220. package/build/src/protocol/progress.d.ts +35 -2
  221. package/build/src/protocol/progress.js +12 -1
  222. package/build/src/protocol/read/observation.js +15 -4
  223. package/build/src/protocol/read/status.d.ts +9 -14
  224. package/build/src/protocol/read/status.js +15 -22
  225. package/build/src/protocol/reintegrate.d.ts +4 -3
  226. package/build/src/protocol/reintegrate.js +21 -5
  227. package/build/src/protocol/review.d.ts +9 -15
  228. package/build/src/protocol/review.js +2 -6
  229. package/build/src/protocol/run.d.ts +1 -1
  230. package/build/src/protocol/verify.d.ts +51 -0
  231. package/build/src/protocol/verify.js +128 -0
  232. package/build/src/verification/declaration.d.ts +5 -1
  233. package/build/src/verification/declaration.js +19 -2
  234. package/build/src/verification/execution.d.ts +5 -2
  235. package/build/src/verification/execution.js +48 -53
  236. package/build/src/verification/observation.d.ts +10 -6
  237. package/build/src/verification/observation.js +5 -2
  238. package/package.json +3 -3
  239. package/plugins/paseo/plugin/index.server.ts +3 -0
  240. package/plugins/paseo/plugin/server/attach.ts +42 -0
  241. package/plugins/paseo/plugin/server/mirror-identity.ts +51 -0
  242. package/plugins/paseo/plugin/server/model.ts +26 -0
  243. package/plugins/paseo/plugin/server/provider.ts +4 -6
  244. package/plugins/paseo/plugin/server/reopen.ts +4 -39
  245. package/plugins/pi/README.md +7 -12
  246. package/plugins/pi/akuma-tools.ts +3 -18
  247. package/skills/keiyaku-akuma/SKILL.md +39 -4
  248. package/skills/keiyaku-akuma/references/automation.md +4 -7
  249. package/skills/keiyaku-babysit/SKILL.md +1 -1
  250. package/skills/keiyaku-bind/SKILL.md +39 -15
  251. package/skills/keiyaku-workflow/SKILL.md +42 -22
  252. package/build/src/akuma/allowed.d.ts +0 -23
  253. package/build/src/akuma/allowed.js +0 -63
  254. package/build/src/akuma/call-request.d.ts +0 -308
  255. package/build/src/akuma/call-request.js +0 -175
  256. package/build/src/akuma/heart/request-authority.d.ts +0 -16
  257. package/build/src/akuma/heart/request-authority.js +0 -140
  258. package/build/src/akuma/heart/request-rows.d.ts +0 -18
  259. package/build/src/akuma/heart/request-rows.js +0 -107
  260. package/build/src/akuma/request-lifecycle.d.ts +0 -42
  261. package/build/src/akuma/request-lifecycle.js +0 -197
  262. package/build/src/akuma/request-observation.d.ts +0 -45
  263. package/build/src/akuma/request-observation.js +0 -162
  264. package/build/src/akuma/request-rendezvous.d.ts +0 -32
  265. package/build/src/akuma/request-rendezvous.js +0 -189
  266. package/build/src/akuma/request-serve.d.ts +0 -16
  267. package/build/src/akuma/request-serve.js +0 -188
  268. package/build/src/akuma/request-wire.d.ts +0 -143
  269. package/build/src/akuma/request-wire.js +0 -146
  270. package/build/src/akuma/requests.d.ts +0 -20
  271. package/build/src/akuma/requests.js +0 -72
  272. package/build/src/akuma/selection-owner-port.d.ts +0 -14
  273. package/build/src/akuma/selection-owner-port.js +0 -54
  274. package/build/src/akuma/selection-request.d.ts +0 -305
  275. package/build/src/akuma/selection-request.js +0 -307
  276. package/build/src/body-requests.d.ts +0 -13
  277. package/build/src/body-requests.js +0 -131
  278. package/build/src/cli/square-identity.d.ts +0 -10
  279. package/build/src/cli/square-identity.js +0 -130
  280. package/build/src/debt/mutation-result.d.ts +0 -981
  281. package/build/src/debt/mutation-result.js +0 -109
  282. package/build/src/debt/mutation.d.ts +0 -424
  283. package/build/src/debt/mutation.js +0 -223
  284. package/build/src/library/contract-operations.d.ts +0 -382
  285. package/build/src/library/contract-operations.js +0 -300
@@ -1,5 +1,5 @@
1
1
  import { akumaCallerKey } from "../../akuma/caller.js";
2
- import { abbreviateGitIds, displayGitId, gitIdsInRow, lifecycleWord, progressStrip } from "./contract-observation.js";
2
+ import { abbreviateGitIds, displayGitId, gateRequirementFacts, gitIdsInRow, lifecycleWord, progressStrip, } from "./contract-observation.js";
3
3
  import { ageText, emptyCatalogue, renderBoundedPayload, safeText } from "./terminal.js";
4
4
  import { akumaMark, contractMark } from "./marks.js";
5
5
  import { dispositionText, debtFrameHead, debtMark } from "./debt.js";
@@ -62,6 +62,12 @@ export function renderContractCatalogue(list) {
62
62
  const lines = [
63
63
  `${contractMark(row)} ${safeText(row.id)} · ${formatAge(row.phaseAt, list.observedAt)} · ${safeText(row.title ?? "title unavailable")}`,
64
64
  ` ${terminal ? outcome : progressStrip(row)}`,
65
+ ...(terminal
66
+ ? []
67
+ : row.gates.reports
68
+ .filter((report) => report.gate === "verified")
69
+ .flatMap(gateRequirementFacts)
70
+ .map((fact) => ` ${safeText(fact)}`)),
65
71
  ...(testimony === undefined
66
72
  ? []
67
73
  : renderBoundedPayload({
@@ -1,3 +1,4 @@
1
+ import { targetName } from "../../core/facts/types.js";
1
2
  import { gateDisplayName, lifecycleWord, shortGitId } from "./contract-observation.js";
2
3
  import { receiptPayload } from "./receipt.js";
3
4
  import { renderOpaqueBlock, DEFAULT_CLI_COLUMNS } from "./terminal.js";
@@ -38,7 +39,7 @@ function journalBody(fact, workspace) {
38
39
  const { coordinates, terms } = fact.data;
39
40
  return [
40
41
  ` start commit ${shortGitId(coordinates.start)}`,
41
- ...(coordinates.target === undefined ? [] : [` target ${coordinates.target}`]),
42
+ ...(coordinates.target === undefined ? [] : [` target ${targetName(coordinates.target)}`]),
42
43
  ` ${workspace === undefined ? "worktree" : `worktree ${workspace.path}`}`,
43
44
  ...listFact("gates", terms.gates),
44
45
  ...listFact("after", terms.after),
@@ -66,6 +67,7 @@ function journalBody(fact, workspace) {
66
67
  const snapshot = subjectValue(fact.data.subject, "snapshot");
67
68
  const lines = [
68
69
  ` gate ${fact.data.gate}`,
70
+ ` requirement ${fact.data.requirement}`,
69
71
  ` verdict ${fact.data.verdict}`,
70
72
  ...(snapshot === undefined ? [] : [` snapshot ${shortGitId(snapshot)}`]),
71
73
  ];
@@ -121,7 +123,8 @@ function mark(verdict) {
121
123
  return verdict === "satisfied" ? "✓" : "×";
122
124
  }
123
125
  function bindLine(bind, dispatch) {
124
- const target = bind.data.coordinates.target?.replace(/^refs\/heads\//u, "") ?? "targetless";
126
+ const destination = bind.data.coordinates.target;
127
+ const target = destination === undefined ? "targetless" : targetName(destination).replace(/^refs\/heads\//u, "");
125
128
  const gates = bind.data.terms.gates.map(gateDisplayName);
126
129
  const gateFact = gates.length === 0 ? "" : ` · ${gates.length === 1 ? "gate" : "gates"} ${gates.join(" · ")}`;
127
130
  const caller = dispatch?.source === "dispatch" ? ` · ${dispatch.dispatch.akuId}` : "";
@@ -134,16 +137,6 @@ function bindLine(bind, dispatch) {
134
137
  function foldedPayloadLines(full) {
135
138
  return Math.max(0, full.length - 1);
136
139
  }
137
- /** The latest verification attestation fused into a deliver or reintegration beat. */
138
- function latestVerification(beat) {
139
- let latest;
140
- for (const event of beat.events) {
141
- if (event.source === "journal" && event.fact.kind === "attestation" && event.fact.data.gate === "verified") {
142
- latest = event.fact;
143
- }
144
- }
145
- return latest;
146
- }
147
140
  const lineCount = (count) => `${count} line${count === 1 ? "" : "s"}`;
148
141
  function skeletonBeatLines(beat, history) {
149
142
  const first = beat.events[0];
@@ -163,20 +156,22 @@ function skeletonBeatLines(beat, history) {
163
156
  const dispatch = beat.events.find((event) => event.source === "dispatch");
164
157
  return [`${clock(first)} ${bindLine(fact, dispatch)}`];
165
158
  }
166
- case "deliver": {
167
- const verdict = latestVerification(beat)?.data.verdict;
159
+ case "deliver":
160
+ return [`${clock(first)} delivered ${shortGitId(fact.data.tenderSnapshot)}${evidenceSuffix()}`];
161
+ case "reintegrated":
168
162
  return [
169
- `${clock(first)} delivered ${shortGitId(fact.data.tenderSnapshot)}${verdict === undefined ? "" : ` · ${mark(verdict)} verification`}${evidenceSuffix()}`,
163
+ `${clock(first)} integrated ${shortGitId(fact.data.predecessor)}..${shortGitId(fact.data.snapshot)}${evidenceSuffix()}`,
170
164
  ];
171
- }
172
- case "reintegrated": {
173
- const verdict = latestVerification(beat)?.data.verdict;
165
+ case "attestation": {
166
+ const name = gateDisplayName(fact.data.gate);
167
+ const requirement = fact.data.gate === "verified" || fact.data.requirement !== `gate:${fact.data.gate}`
168
+ ? ` ${fact.data.requirement}`
169
+ : "";
170
+ const snapshot = subjectValue(fact.data.subject, "snapshot");
174
171
  return [
175
- `${clock(first)} integrated ${shortGitId(fact.data.predecessor)}..${shortGitId(fact.data.snapshot)}${verdict === undefined ? "" : ` · ${mark(verdict)} verification`}${evidenceSuffix()}`,
172
+ `${clock(first)} ${mark(fact.data.verdict)} ${name}${requirement}${snapshot === undefined ? "" : ` · snapshot ${shortGitId(snapshot)}`}${evidenceSuffix()}`,
176
173
  ];
177
174
  }
178
- case "attestation":
179
- return [`${clock(first)} ${mark(fact.data.verdict)} ${gateDisplayName(fact.data.gate)}${evidenceSuffix()}`];
180
175
  case "amend": {
181
176
  const changed = [fact.data.gates.length > 0 ? "gates" : "", fact.data.after.length > 0 ? "after" : ""]
182
177
  .filter((value) => value.length > 0)
@@ -231,23 +226,6 @@ function skeletonBeats(history) {
231
226
  consumed.add(next);
232
227
  }
233
228
  }
234
- if (event.source === "journal" && (event.fact.kind === "deliver" || event.fact.kind === "reintegrated")) {
235
- const snapshot = event.fact.kind === "deliver" ? event.fact.data.integration.snapshot : event.fact.data.snapshot;
236
- for (let next = index + 1; next < events.length; next += 1) {
237
- const candidate = events[next];
238
- if (candidate.source !== "journal")
239
- continue;
240
- if (["bind", "deliver", "reintegrated", "amend", "arc", "claimed", "abandoned"].includes(candidate.fact.kind))
241
- break;
242
- if (candidate.fact.kind === "attestation" &&
243
- candidate.fact.data.gate === "verified" &&
244
- (subjectValue(candidate.fact.data.subject, "snapshot") === snapshot ||
245
- subjectValue(candidate.fact.data.subject, "change") === snapshot)) {
246
- grouped.push(candidate);
247
- consumed.add(next);
248
- }
249
- }
250
- }
251
229
  beats.push({ events: grouped });
252
230
  }
253
231
  return beats;
@@ -1,14 +1,20 @@
1
1
  import type { ContractAfterEdge, ContractRow, ContractWorkspaceObservation } from "../../index.js";
2
+ type GateDisplayCurrent = Readonly<{
3
+ kind: "missing";
4
+ } | {
5
+ kind: "stale";
6
+ } | {
7
+ kind: "attested";
8
+ verdict: "satisfied" | "unsatisfied";
9
+ }>;
2
10
  type GateDisplayReport = Readonly<{
3
11
  gate: string;
4
- current: Readonly<{
5
- kind: "missing";
6
- } | {
7
- kind: "stale";
8
- } | {
9
- kind: "attested";
10
- verdict: "satisfied" | "unsatisfied";
11
- }>;
12
+ current: GateDisplayCurrent;
13
+ requirements: readonly Readonly<{
14
+ requirement: string;
15
+ index?: number;
16
+ current: GateDisplayCurrent;
17
+ }>[];
12
18
  }>;
13
19
  export declare function shortGitId(value: string): string;
14
20
  export declare function contractOperationName(operation: string): string;
@@ -20,9 +26,16 @@ export declare function gateDisplayName(gate: string): string;
20
26
  export declare function lifecycleWord(phase: ContractRow["phase"]): string;
21
27
  /** The one readable projection of delivery and current-candidate gate progress. */
22
28
  export declare function progressStrip(row: Pick<ContractRow, "delivery" | "gates">): string;
23
- export declare function gateGlyph(report: GateDisplayReport): string;
29
+ export declare function gateGlyph(report: Readonly<{
30
+ current: GateDisplayCurrent;
31
+ }>): string;
24
32
  export declare function gateFact(report: GateDisplayReport): string;
25
- export declare function verificationFact(status: ContractRow["verification"]): string | undefined;
33
+ export declare function requirementDisplayName(gate: string, requirement: Readonly<{
34
+ requirement: string;
35
+ index?: number | undefined;
36
+ }>): string;
37
+ /** Currentness is supplied by the owner for every requirement; rendering never aggregates testimony. */
38
+ export declare function gateRequirementFacts(report: GateDisplayReport): readonly string[];
26
39
  export declare function afterWording(edge: ContractAfterEdge): string;
27
40
  export declare function mergeSummary(observation: ContractWorkspaceObservation): string | undefined;
28
41
  export declare function abbreviateGitIds(ids: readonly string[]): ReadonlyMap<string, string>;
@@ -41,12 +41,15 @@ export function gateGlyph(report) {
41
41
  export function gateFact(report) {
42
42
  return `${gateGlyph(report)} ${gateDisplayName(report.gate)}${report.current.kind === "stale" ? " · stale" : ""}`;
43
43
  }
44
- export function verificationFact(status) {
45
- if (status === undefined)
46
- return undefined;
47
- if (status.kind === "recorded")
48
- return `verification ${status.verdict}${status.snapshot === undefined ? "" : ` · snapshot ${shortGitId(status.snapshot)}`}`;
49
- return `verification ${status.kind}`;
44
+ export function requirementDisplayName(gate, requirement) {
45
+ const name = gateDisplayName(gate);
46
+ if (gate === "verified")
47
+ return `${name} ${requirement.index ?? requirement.requirement}`;
48
+ return requirement.requirement === `gate:${gate}` ? name : `${name} ${requirement.requirement}`;
49
+ }
50
+ /** Currentness is supplied by the owner for every requirement; rendering never aggregates testimony. */
51
+ export function gateRequirementFacts(report) {
52
+ return report.requirements.map((requirement) => `${gateGlyph(requirement)} ${requirementDisplayName(report.gate, requirement)}${requirement.current.kind === "stale" ? " · stale" : requirement.current.kind === "missing" ? " · missing" : ""}`);
50
53
  }
51
54
  export function afterWording(edge) {
52
55
  if (edge.endpoint.kind === "claimed")
@@ -0,0 +1,2 @@
1
+ import type { ContractWaitResult } from "../../library/contract-wait.js";
2
+ export declare function contractWaitText(result: ContractWaitResult): string;
@@ -0,0 +1,18 @@
1
+ export function contractWaitText(result) {
2
+ return `${result.kind}: ${result.contracts
3
+ .map((member) => {
4
+ const facts = [];
5
+ if (member.present === null)
6
+ facts.push("unobserved");
7
+ else if (!member.present)
8
+ facts.push("missing");
9
+ else {
10
+ if (member.changed)
11
+ facts.push("changed");
12
+ if (member.terminal !== null)
13
+ facts.push(member.terminal === "claimed" ? "accepted" : "abandoned");
14
+ }
15
+ return `${member.contract}${facts.length === 0 ? "" : ` (${facts.join(", ")})`}`;
16
+ })
17
+ .join(", ")}`;
18
+ }
@@ -1,6 +1,6 @@
1
- import type { AbandonOutcome, AmendOutcome, ArcOutcome, DeliveryPreviewOutcome, BindOutcome, DeliverOutcome, ReviewOutcome } from "../../index.js";
1
+ import type { AbandonOutcome, AmendOutcome, ArcOutcome, DeliveryPreviewOutcome, BindOutcome, DeliverOutcome, ReviewOutcome, VerifyOutcome } from "../../index.js";
2
2
  import { type TextRenderContext } from "./terminal.js";
3
- export type ContractOutcome = BindOutcome | AmendOutcome | DeliverOutcome | ReviewOutcome | DeliveryPreviewOutcome | ArcOutcome | AbandonOutcome;
3
+ export type ContractOutcome = BindOutcome | AmendOutcome | DeliverOutcome | ReviewOutcome | VerifyOutcome | DeliveryPreviewOutcome | ArcOutcome | AbandonOutcome;
4
4
  export type AcceptedContractOutcome = Extract<ContractOutcome, {
5
5
  kind: "accepted";
6
6
  }>;
@@ -1,6 +1,7 @@
1
+ import { targetName } from "../../core/facts/types.js";
1
2
  import { effectCleanup, effectExecutionStops, effectLags, effectRecoverySnapshot, effectRetainedCheckouts, effectRetainedWorktrees, effectRetiredWorktrees, effectSettlementLags, } from "./effects.js";
2
3
  import { renderDeliveryPreview } from "./delivery-preview.js";
3
- import { appendHookPayload, executionCleanupLines, executionStopLines, gatesAwaitLines, hookFailureSummary, outcomeLines, receiptPayload, receiptRow, stopLines, titleLines, } from "./receipt.js";
4
+ import { appendHookPayload, executionCleanupLines, executionStopLines, gatesAwaitLines, hookFailureSummary, outcomeLines, standingGateLines, placementLines, receiptPayload, receiptRow, stopLines, titleLines, } from "./receipt.js";
4
5
  import { abbreviateGitIds, displayGitId, lifecycleWord } from "./contract-observation.js";
5
6
  import { renderDiffstat } from "./akuma-tool.js";
6
7
  import { DEFAULT_CLI_COLUMNS, renderOpaqueBlock, safeText, tone } from "./terminal.js";
@@ -12,7 +13,8 @@ function attestationVerdict(facts) {
12
13
  return attestation.data.verdict;
13
14
  }
14
15
  function bindTarget(facts) {
15
- return facts.findLast((fact) => fact.kind === "bind")?.data.coordinates.target ?? null;
16
+ const target = facts.findLast((fact) => fact.kind === "bind")?.data.coordinates.target;
17
+ return target === undefined ? null : targetName(target);
16
18
  }
17
19
  function arcChapter(facts) {
18
20
  const arc = facts.findLast((fact) => fact.kind === "arc");
@@ -53,6 +55,9 @@ function lagRows(lag, columns) {
53
55
  receiptRow(lines, "!", "lag", [{ text: `contract-file-failed ${lag.worktree} ${lag.path}`, opaque: true }], columns);
54
56
  receiptPayload(lines, "reason", lag.diagnostic);
55
57
  }
58
+ else if (lag.kind === "target-workspace-retained") {
59
+ receiptRow(lines, "!", "target workspace unavailable", [{ text: lag.contractId, opaque: true }, { text: lag.reason.replaceAll("-", " ") }], columns);
60
+ }
56
61
  else {
57
62
  receiptRow(lines, "!", "lag", [{ text: `reconcile-failed ${lag.stage}`, opaque: true }], columns);
58
63
  receiptPayload(lines, "reason", lag.diagnostic);
@@ -211,15 +216,7 @@ function landedChangesLines(scope, columns) {
211
216
  receiptRow(lines, " ", "changes", [{ text: `${files} · ${renderDiffstat({ added: scope.insertions, removed: scope.deletions })}` }], columns);
212
217
  return lines;
213
218
  }
214
- /**
215
- * Shared presentation of a completed placement, so a deliver and a review that placed the same candidate read
216
- * identically: one git-shaped target movement row, naming the reference it advanced, then the final lifecycle
217
- * state. Satisfied Verification adds one fact row naming the integrated result; placement made that commit the
218
- * reference's new head, so the movement and integrated-result rows share one sha. The verdict names reuse in the
219
- * standing-evidence vocabulary and carries no qualifier when this command executed declarations. A completion
220
- * without an advanced reference states no movement. Journal ULIDs stay in JSON and `history`, never in ordinary
221
- * receipt text.
222
- */
219
+ /** One Git movement grammar for completion, independent of which operation triggered it. */
223
220
  function completedPlacementLines(result, columns) {
224
221
  const completion = result.value.completion;
225
222
  if (completion === undefined)
@@ -240,14 +237,6 @@ function completedPlacementLines(result, columns) {
240
237
  { text: completion.target, opaque: true },
241
238
  ], columns);
242
239
  }
243
- const verification = result.value.verification;
244
- if (verification?.kind !== "stopped" && verification?.verdict === "satisfied") {
245
- receiptRow(lines, " ", "integration result", [
246
- {
247
- text: `${displayGitId(completion.integration, abbreviations)} · verification ${verification.kind === "reused" ? "reused " : ""}satisfied`,
248
- },
249
- ], columns);
250
- }
251
240
  lines.push(...landedChangesLines(completion.scope, columns));
252
241
  // Placement admission always admits the claim entry beside the movement, so a completed placement is accepted.
253
242
  receiptRow(lines, "✓", lifecycleWord("claimed"), [], columns);
@@ -334,51 +323,40 @@ function deliverIdentityLines(result, abbreviations, columns, kept) {
334
323
  receiptRow(lines, " ", "integration", [{ text: `${displayGitId(reusedIntegration, abbreviations)} reused · commit message kept from first delivery` }], columns);
335
324
  return lines;
336
325
  }
337
- function deliveryIdentityAbbreviations(value, verificationSnapshot) {
326
+ function deliveryIdentityAbbreviations(value) {
338
327
  return abbreviateGitIds([
339
328
  value.tenderSnapshot ?? "",
340
329
  value.integration?.changeId ?? "",
341
330
  value.integration.snapshot,
342
331
  value.contentChange?.previousChange ?? "",
343
332
  value.contentChange?.currentChange ?? "",
344
- verificationSnapshot ?? "",
345
333
  value.completion?.predecessor ?? "",
346
334
  value.completion?.integration ?? "",
347
335
  ]);
348
336
  }
349
337
  function renderAcceptedDeliver(result, columns) {
350
338
  const complete = result.value.completion !== undefined;
351
- const verification = result.value.verification;
352
- const subject = verification?.kind === "stopped" ? undefined : verification;
353
339
  const lines = titleLines("✓", "delivered", result.contract, columns);
354
- const abbreviations = deliveryIdentityAbbreviations(result.value, subject?.snapshot);
340
+ const abbreviations = deliveryIdentityAbbreviations(result.value);
355
341
  lines.push(...deliverIdentityLines(result, abbreviations, columns, !complete));
342
+ if ((result.value.gates?.length ?? 0) > 0)
343
+ receiptRow(lines, " ", "integration result", [{ text: displayGitId(result.value.integration.snapshot, abbreviations) }], columns);
344
+ lines.push(...standingGateLines(result.value.gates, columns));
356
345
  if (complete)
357
346
  lines.push(...completedPlacementLines(result, columns));
358
- else {
359
- if (subject !== undefined)
360
- receiptRow(lines, " ", "integration result", [
361
- {
362
- text: `${displayGitId(subject.snapshot, abbreviations)} · verification ${subject.kind === "reused" ? "reused " : ""}${subject.verdict}`,
363
- },
364
- ], columns);
347
+ else
365
348
  lines.push(...movementLines(result, columns));
366
- }
367
- if (verification?.kind === "stopped")
368
- lines.push(...stopLines(verification.stop, columns, result.contract));
369
349
  if (!complete && result.value.placement !== undefined)
370
- lines.push(...stopLines(result.value.placement, columns, result.contract));
350
+ lines.push(...placementLines(result.value.placement, columns, result.contract));
371
351
  lines.push(...continuationLines(result, columns), ...recordBlock(result, columns), ...worktreeRetirementLines(result, columns), ...gatesAwaitLines(result.value.placement));
372
352
  return lines.join("\n");
373
353
  }
374
354
  function renderAcceptedReview(result, columns) {
375
355
  const lines = titleLines("✓", `review ${attestationVerdict(result.facts)}`, result.contract, columns);
356
+ lines.push(...standingGateLines(result.value.gates, columns));
376
357
  lines.push(...completedPlacementLines(result, columns));
377
- if (result.value.verification?.kind === "stopped") {
378
- lines.push(...stopLines(result.value.verification.stop, columns, result.contract));
379
- }
380
358
  if (result.value.placement !== undefined) {
381
- lines.push(...stopLines(result.value.placement, columns, result.contract));
359
+ lines.push(...placementLines(result.value.placement, columns, result.contract));
382
360
  }
383
361
  lines.push(...continuationLines(result, columns));
384
362
  lines.push(...recordBlock(result, columns));
@@ -386,6 +364,44 @@ function renderAcceptedReview(result, columns) {
386
364
  lines.push(...gatesAwaitLines(result.value.placement));
387
365
  return lines.join("\n");
388
366
  }
367
+ function renderAcceptedVerify(result, columns) {
368
+ const lines = titleLines("✓", "verify", result.contract, columns);
369
+ const abbreviations = abbreviateGitIds([
370
+ result.value.snapshot,
371
+ ...result.value.checks.map((check) => check.snapshot),
372
+ result.value.completion?.integration ?? "",
373
+ result.value.completion?.predecessor ?? "",
374
+ ]);
375
+ for (const check of result.value.checks) {
376
+ receiptRow(lines, " ", `check ${check.index}`, [
377
+ { text: check.kind === "terminal" ? "executed" : "execution stopped" },
378
+ { text: check.requirement, opaque: true },
379
+ { text: `· snapshot ${displayGitId(check.snapshot, abbreviations)}` },
380
+ ], columns);
381
+ if (check.kind === "terminal") {
382
+ receiptRow(lines, check.verdict === "satisfied" ? "✓" : "×", "verdict", [{ text: check.verdict }], columns);
383
+ if (check.summary !== undefined)
384
+ receiptPayload(lines, "summary", check.summary);
385
+ if (check.admission.kind === "stopped") {
386
+ receiptRow(lines, "!", "admission", [{ text: "stopped" }], columns);
387
+ lines.push(...stopLines(check.admission.stop, columns, result.contract));
388
+ }
389
+ else
390
+ receiptRow(lines, " ", "attestation", [{ text: check.admission.kind }], columns);
391
+ }
392
+ else {
393
+ lines.push(...stopLines(check.stop, columns, result.contract));
394
+ }
395
+ if (check.retainedPath !== undefined)
396
+ receiptRow(lines, " ", "scratch retained", [{ text: check.retainedPath, opaque: true }], columns);
397
+ }
398
+ lines.push(...standingGateLines(result.value.gates, columns));
399
+ lines.push(...completedPlacementLines(result, columns));
400
+ if (result.value.placement !== undefined)
401
+ lines.push(...placementLines(result.value.placement, columns, result.contract));
402
+ lines.push(...continuationLines(result, columns), ...recordBlock(result, columns), ...worktreeRetirementLines(result, columns), ...gatesAwaitLines(result.value.placement));
403
+ return lines.join("\n");
404
+ }
389
405
  function renderAcceptedArc(result, columns) {
390
406
  const lines = titleLines("✓", `chapter ${arcChapter(result.facts).seq} opened · ${arcChapter(result.facts).title}`, result.contract, columns);
391
407
  lines.push(...recordBlock(result, columns));
@@ -409,6 +425,8 @@ export function renderAccepted(result, context) {
409
425
  return renderAcceptedBind(result, columns, context?.color === true);
410
426
  case "amend":
411
427
  return renderAcceptedAmend(result, columns, context?.color === true);
428
+ case "verify":
429
+ return renderAcceptedVerify(result, columns);
412
430
  case "review":
413
431
  return renderAcceptedReview(result, columns);
414
432
  case "arc":
@@ -1,7 +1,7 @@
1
1
  import { effectCleanup, effectExecutionStops } from "./effects.js";
2
- import { executionCleanupLines, executionStopLines, receiptPayload, receiptRow, titleLines } from "./receipt.js";
2
+ import { executionCleanupLines, executionStopLines, standingGateLines, receiptPayload, receiptRow, titleLines, } from "./receipt.js";
3
3
  import { renderRefusalFacts } from "./refusal.js";
4
- import { abbreviateGitIds, displayGitId, gateFact } from "./contract-observation.js";
4
+ import { abbreviateGitIds, displayGitId } from "./contract-observation.js";
5
5
  import { DEFAULT_CLI_COLUMNS, gitShortStat, renderTextBlock, safeText } from "./terminal.js";
6
6
  const CHILD = " ";
7
7
  function workspaceEvidence(workspace) {
@@ -21,8 +21,7 @@ function candidateLines(report, columns, addressed, abbreviations) {
21
21
  if (!/^0{40}$/u.test(identity.integration.changeId))
22
22
  lines.push(`${CHILD}content identity ${displayGitId(identity.integration.changeId, abbreviations)}`);
23
23
  lines.push(...workspaceEvidence(candidate.workspace));
24
- for (const report of candidate.requirements.gates)
25
- lines.push(`${CHILD}${gateFact(report)}`);
24
+ lines.push(...standingGateLines(candidate.requirements.gates.filter((report) => report.gate !== "verified"), columns));
26
25
  for (const prerequisite of candidate.requirements.unmetPrerequisites) {
27
26
  receiptRow(lines, "!", "prerequisite", [{ text: prerequisite.contractId }, { text: prerequisite.state }], columns);
28
27
  }
@@ -37,34 +36,22 @@ function candidateLines(report, columns, addressed, abbreviations) {
37
36
  return lines;
38
37
  }
39
38
  function verificationLines(verification, columns) {
39
+ if (verification.kind === "requirements")
40
+ return standingGateLines([{ gate: "verified", requirements: verification.requirements }], columns);
40
41
  const lines = [];
41
- if (verification.kind !== "recorded") {
42
- const text = verification.kind === "undeclared"
43
- ? "none declared"
44
- : verification.kind === "required"
45
- ? "required · not run"
46
- : "not run";
47
- receiptRow(lines, " ", "verification", [{ text }], columns);
48
- return lines;
49
- }
50
- receiptRow(lines, verification.verdict === "unsatisfied" ? "!" : " ", "verification", [{ text: "recorded" }, { text: verification.verdict }], columns);
51
- if (verification.summary !== undefined)
52
- receiptPayload(lines, "summary", previewSummary(verification.summary));
42
+ receiptRow(lines, " ", "verification", [{ text: verification.kind === "undeclared" ? "none declared" : "not run" }], columns);
53
43
  return lines;
54
44
  }
55
- function previewSummary(summary) {
56
- return summary.replace(/\[(\d+) (bash|zsh|pwsh) exit (-?\d+)( output-truncated)?\]/gu, (_, number, executor, exit, truncated) => `declaration ${number} · ${executor} exit ${exit}${truncated ?? ""}`);
57
- }
58
45
  function admittedCandidateLines(report, columns) {
59
- const delivery = report.delivery;
60
- if (delivery === undefined)
61
- return [];
62
- const verification = delivery.verification;
63
- if (verification.kind === "undeclared")
46
+ if (report.delivery === undefined)
64
47
  return [];
65
- const detail = verification.kind === "recorded" ? `${verification.kind} ${verification.verdict}` : verification.kind;
66
48
  const lines = [];
67
- receiptRow(lines, verification.kind === "unrecorded" ? "!" : " ", "admitted verification", [{ text: detail }], columns);
49
+ receiptRow(lines, " ", "admitted candidate", [
50
+ { text: report.delivery.relation },
51
+ {
52
+ text: `· content identity ${displayGitId(report.delivery.changeId, abbreviateGitIds([report.delivery.changeId]))}`,
53
+ },
54
+ ], columns);
68
55
  return lines;
69
56
  }
70
57
  function targetLines(report, columns, addressed, abbreviations) {
@@ -1,3 +1,4 @@
1
+ import { shortGitId } from "./contract-observation.js";
1
2
  import { StatusLine } from "./status-line.js";
2
3
  import { renderOpaqueBlock, safeText } from "./terminal.js";
3
4
  const LIVE_OUTPUT_BYTES = 4 * 1024;
@@ -18,9 +19,10 @@ function elapsed(ms) {
18
19
  return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m${seconds % 60}s`;
19
20
  }
20
21
  function phaseDetail(observation) {
21
- if (observation.phase === "declaration")
22
- return `declaration ${observation.index ?? "?"}/${observation.total ?? "?"}`;
23
- return observation.name === undefined ? observation.phase : `${observation.phase} · ${safeText(observation.name)}`;
22
+ const detail = observation.phase === "declaration"
23
+ ? `declaration ${observation.index}/${observation.total}`
24
+ : `${observation.phase} · check ${observation.index}/${observation.total}${observation.name === undefined ? "" : ` · ${safeText(observation.name)}`}`;
25
+ return `${detail} · snapshot ${shortGitId(observation.snapshot)} · ${safeText(observation.requirement)}`;
24
26
  }
25
27
  function phaseMark(outcome) {
26
28
  if (outcome === undefined)
@@ -127,8 +129,6 @@ export function executionProgressLines(event, context) {
127
129
  return outputLines(event.observation, context);
128
130
  return event.observation.state === "started" ? [] : [phaseFinishLine(event.observation)];
129
131
  }
130
- case "progress-dropped":
131
- return [`progress dropped ${event.count} event${event.count === 1 ? "" : "s"}`];
132
132
  }
133
133
  }
134
134
  /** Consumes witnessed events into either a live TTY line or sparse text. */
@@ -158,8 +158,8 @@ export class ExecutionProgressRenderer {
158
158
  const now = this.input.now ?? (() => performance.now());
159
159
  const duration = elapsed(now() - this.verificationStartedAt);
160
160
  if (this.declarations !== undefined) {
161
- const { passed, total } = this.declarations;
162
- this.status.finish(`verify ${this.finalMark()} ${passed}/${total} · ${duration}`);
161
+ const { passed, finished } = this.declarations;
162
+ this.status.finish(`verify ${this.finalMark()} ${passed}/${finished} checks · ${duration}`);
163
163
  return;
164
164
  }
165
165
  this.status.finish(`verify ${this.finalMark()} · ${duration}`);
@@ -183,9 +183,9 @@ export class ExecutionProgressRenderer {
183
183
  this.phaseFailed ||= mark === "×";
184
184
  this.phaseUnknown ||= mark === "?";
185
185
  if (observation.phase === "declaration") {
186
- const total = observation.total ?? this.declarations?.total ?? 0;
186
+ const finished = (this.declarations?.finished ?? 0) + 1;
187
187
  const passed = (this.declarations?.passed ?? 0) + (mark === "✓" ? 1 : 0);
188
- this.declarations = { passed, total };
188
+ this.declarations = { passed, finished };
189
189
  this.declarationFailed ||= mark !== "✓";
190
190
  }
191
191
  if (this.status.isTTY)
@@ -1,4 +1,4 @@
1
- import { abbreviateGitIds, afterWording, progressStrip, displayGitId, gateFact, gitIdsInRow, lifecycleWord, mergeSummary, targetMovementFacts, verificationFact, } from "./contract-observation.js";
1
+ import { abbreviateGitIds, afterWording, progressStrip, displayGitId, gateRequirementFacts, gitIdsInRow, lifecycleWord, mergeSummary, targetMovementFacts, } from "./contract-observation.js";
2
2
  import { DEFAULT_CLI_COLUMNS, emptyCatalogue, entityLines, elapsedMilliseconds, identityLine, plumbFacts, RECENT_TONE_MS, renderBoundedPayload, renderSectionBlock, safeText, tone, } from "./terminal.js";
3
3
  import { endpointFact, formatAge, NARROW_COLUMNS, renderAkuma, renderAkumaBoard } from "./kanshi-akuma.js";
4
4
  import { contractMark, debtDispositionMark } from "./marks.js";
@@ -128,12 +128,6 @@ function terminalFacts(row, context, abbreviations) {
128
128
  : []),
129
129
  ];
130
130
  }
131
- function staleVerificationFacts(row) {
132
- if (row.verification?.kind !== "recorded" || row.verification.snapshot === row.delivery?.integration.snapshot)
133
- return [];
134
- const fact = verificationFact(row.verification);
135
- return fact === undefined ? [] : [fact];
136
- }
137
131
  function renderSelectedContractRow(row, facts, context, abbreviations) {
138
132
  const title = row.title ?? "title unavailable";
139
133
  const statusTone = contractStatusTone(row, facts.observedAt);
@@ -155,17 +149,15 @@ function renderSelectedContractRow(row, facts, context, abbreviations) {
155
149
  const deniedReview = row.gates.reports.find((gate) => gate.gate === "reviewed" && gate.current.kind === "attested" && gate.current.verdict === "unsatisfied");
156
150
  lines.push(...semanticBlock("ball", [progressStrip(row)], context));
157
151
  lines.push(...semanticBlock("gates", row.gates.reports
158
- .filter((gate) => gate.current.kind !== "missing")
159
152
  .filter((gate) => gate !== deniedReview || gate.current.kind !== "attested" || gate.current.summary === undefined)
160
- .map(gateFact), context));
153
+ .flatMap(gateRequirementFacts), context));
161
154
  lines.push(...semanticBlock("prerequisites", row.after.filter((edge) => edge.endpoint.kind !== "claimed").map(afterWording), context));
162
155
  if (row.delivery !== null) {
163
156
  lines.push(...semanticBlock("candidate", [
164
157
  `candidate ${displayGitId(row.delivery.tenderSnapshot, abbreviations)}`,
165
- `integration result ${displayGitId(row.delivery.integration.snapshot, abbreviations)}${row.verification?.kind === "recorded" && row.verification.snapshot === row.delivery.integration.snapshot ? ` · verification ${row.verification.verdict}` : ""}${row.targetObservation?.drift === true ? " · target moved since" : ""}`,
158
+ `integration result ${displayGitId(row.delivery.integration.snapshot, abbreviations)}${row.targetObservation?.drift === true ? " · target moved since" : ""}`,
166
159
  ...(row.targetObservation?.drift === true ? targetMovementFacts(row, abbreviations) : []),
167
160
  ], context));
168
- lines.push(...semanticBlock("verification", staleVerificationFacts(row), context));
169
161
  }
170
162
  if (deniedReview?.current.kind === "attested" && deniedReview.current.summary !== undefined)
171
163
  lines.push(...payload("review ×", deniedReview.current.summary, context));
@@ -185,6 +177,7 @@ function renderWorldContractRow(row, facts, context, abbreviations) {
185
177
  .slice(0, 1)
186
178
  : [
187
179
  progressStrip(row),
180
+ ...row.gates.reports.filter((gate) => gate.gate === "verified").flatMap(gateRequirementFacts),
188
181
  ...(linkedAkumaSummary(row, facts.akuma) === undefined ? [] : [linkedAkumaSummary(row, facts.akuma)]),
189
182
  ...liveAlarms(row, facts.debts),
190
183
  ];
@@ -14,6 +14,24 @@ export declare function refusalLines(verb: string, facts: readonly string[], col
14
14
  export declare function titleLines(mark: string, title: string, contract: string, columns?: number): string[];
15
15
  export declare function hookFailureSummary(failure: HookFailure): string;
16
16
  export declare function appendHookPayload(lines: string[], failure: HookFailure): void;
17
+ /** Standing evidence is already adjudicated; every requirement keeps its own verdict or absence. */
18
+ export declare function standingGateLines(reports: readonly Readonly<{
19
+ gate: string;
20
+ requirements: readonly Readonly<{
21
+ requirement: string;
22
+ index?: number | undefined;
23
+ current: Readonly<{
24
+ kind: "missing" | "stale";
25
+ }> | Readonly<{
26
+ kind: "attested";
27
+ verdict: "satisfied" | "unsatisfied";
28
+ at: string;
29
+ summary?: string | undefined;
30
+ }>;
31
+ }>[];
32
+ }>[] | undefined, columns: number): readonly string[];
33
+ /** A receipt with standingGateLines has already named gate evidence once. */
34
+ export declare function placementLines(stop: PlacementStop, columns: number, addressed: string): readonly string[];
17
35
  /**
18
36
  * The pending margin statement: the not-yet-happened requirements a refused placement awaits. A gate in stale
19
37
  * state awaits the same event; when every unmet gate already holds a recorded verdict there is nothing pending and