@jungjaehoon/mama-os 0.51.2 → 0.52.1

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 (228) hide show
  1. package/dist/agent/agent-loop.d.ts +58 -0
  2. package/dist/agent/agent-loop.d.ts.map +1 -1
  3. package/dist/agent/agent-loop.js +503 -142
  4. package/dist/agent/agent-loop.js.map +1 -1
  5. package/dist/agent/claude-cli-wrapper.d.ts.map +1 -1
  6. package/dist/agent/claude-cli-wrapper.js +3 -2
  7. package/dist/agent/claude-cli-wrapper.js.map +1 -1
  8. package/dist/agent/cline-cli-adapter.d.ts +2 -0
  9. package/dist/agent/cline-cli-adapter.d.ts.map +1 -1
  10. package/dist/agent/cline-cli-adapter.js +2 -0
  11. package/dist/agent/cline-cli-adapter.js.map +1 -1
  12. package/dist/agent/code-act/constants.d.ts +1 -1
  13. package/dist/agent/code-act/constants.d.ts.map +1 -1
  14. package/dist/agent/code-act/constants.js +5 -2
  15. package/dist/agent/code-act/constants.js.map +1 -1
  16. package/dist/agent/code-act/host-bridge.d.ts.map +1 -1
  17. package/dist/agent/code-act/host-bridge.js +102 -4
  18. package/dist/agent/code-act/host-bridge.js.map +1 -1
  19. package/dist/agent/code-act/tool-catalog.d.ts +2 -0
  20. package/dist/agent/code-act/tool-catalog.d.ts.map +1 -1
  21. package/dist/agent/code-act/tool-catalog.js +20 -7
  22. package/dist/agent/code-act/tool-catalog.js.map +1 -1
  23. package/dist/agent/codex-app-server-process.d.ts +112 -0
  24. package/dist/agent/codex-app-server-process.d.ts.map +1 -1
  25. package/dist/agent/codex-app-server-process.js +518 -1
  26. package/dist/agent/codex-app-server-process.js.map +1 -1
  27. package/dist/agent/gateway-tool-executor.d.ts +17 -0
  28. package/dist/agent/gateway-tool-executor.d.ts.map +1 -1
  29. package/dist/agent/gateway-tool-executor.js +236 -53
  30. package/dist/agent/gateway-tool-executor.js.map +1 -1
  31. package/dist/agent/gateway-tools.md +9 -3
  32. package/dist/agent/model-runner.d.ts +16 -0
  33. package/dist/agent/model-runner.d.ts.map +1 -1
  34. package/dist/agent/model-runner.js.map +1 -1
  35. package/dist/agent/persistent-cli-adapter.d.ts +5 -0
  36. package/dist/agent/persistent-cli-adapter.d.ts.map +1 -1
  37. package/dist/agent/persistent-cli-adapter.js +7 -0
  38. package/dist/agent/persistent-cli-adapter.js.map +1 -1
  39. package/dist/agent/persistent-cli-process.d.ts.map +1 -1
  40. package/dist/agent/persistent-cli-process.js +27 -2
  41. package/dist/agent/persistent-cli-process.js.map +1 -1
  42. package/dist/agent/skill-loader.d.ts +7 -2
  43. package/dist/agent/skill-loader.d.ts.map +1 -1
  44. package/dist/agent/skill-loader.js +29 -8
  45. package/dist/agent/skill-loader.js.map +1 -1
  46. package/dist/agent/subagent-run-reconcile.d.ts +23 -0
  47. package/dist/agent/subagent-run-reconcile.d.ts.map +1 -0
  48. package/dist/agent/subagent-run-reconcile.js +56 -0
  49. package/dist/agent/subagent-run-reconcile.js.map +1 -0
  50. package/dist/agent/tool-registry.d.ts.map +1 -1
  51. package/dist/agent/tool-registry.js +126 -3
  52. package/dist/agent/tool-registry.js.map +1 -1
  53. package/dist/agent/types.d.ts +52 -2
  54. package/dist/agent/types.d.ts.map +1 -1
  55. package/dist/agent/types.js.map +1 -1
  56. package/dist/api/graph-api.d.ts.map +1 -1
  57. package/dist/api/graph-api.js +0 -22
  58. package/dist/api/graph-api.js.map +1 -1
  59. package/dist/cli/commands/start.d.ts +8 -7
  60. package/dist/cli/commands/start.d.ts.map +1 -1
  61. package/dist/cli/commands/start.js +154 -74
  62. package/dist/cli/commands/start.js.map +1 -1
  63. package/dist/cli/config/types.d.ts.map +1 -1
  64. package/dist/cli/config/types.js +2 -1
  65. package/dist/cli/config/types.js.map +1 -1
  66. package/dist/cli/runtime/agent-loop-init.d.ts.map +1 -1
  67. package/dist/cli/runtime/agent-loop-init.js +1 -0
  68. package/dist/cli/runtime/agent-loop-init.js.map +1 -1
  69. package/dist/cli/runtime/api-routes-init.d.ts +1 -0
  70. package/dist/cli/runtime/api-routes-init.d.ts.map +1 -1
  71. package/dist/cli/runtime/api-routes-init.js +82 -58
  72. package/dist/cli/runtime/api-routes-init.js.map +1 -1
  73. package/dist/db/migrations/operator-procedures.d.ts +4 -0
  74. package/dist/db/migrations/operator-procedures.d.ts.map +1 -0
  75. package/dist/db/migrations/operator-procedures.js +63 -0
  76. package/dist/db/migrations/operator-procedures.js.map +1 -0
  77. package/dist/gateways/message-router.d.ts +6 -3
  78. package/dist/gateways/message-router.d.ts.map +1 -1
  79. package/dist/gateways/message-router.js +43 -131
  80. package/dist/gateways/message-router.js.map +1 -1
  81. package/dist/gateways/telegram-format.d.ts.map +1 -1
  82. package/dist/gateways/telegram-format.js +2 -0
  83. package/dist/gateways/telegram-format.js.map +1 -1
  84. package/dist/gateways/telegram-response-presenter.d.ts.map +1 -1
  85. package/dist/gateways/telegram-response-presenter.js +4 -0
  86. package/dist/gateways/telegram-response-presenter.js.map +1 -1
  87. package/dist/mcp/code-act-mcp-config.d.ts +49 -0
  88. package/dist/mcp/code-act-mcp-config.d.ts.map +1 -0
  89. package/dist/mcp/code-act-mcp-config.js +124 -0
  90. package/dist/mcp/code-act-mcp-config.js.map +1 -0
  91. package/dist/multi-agent/runtime-process.d.ts +10 -0
  92. package/dist/multi-agent/runtime-process.d.ts.map +1 -1
  93. package/dist/multi-agent/runtime-process.js +8 -0
  94. package/dist/multi-agent/runtime-process.js.map +1 -1
  95. package/dist/operator/board-delta-gate.d.ts +34 -10
  96. package/dist/operator/board-delta-gate.d.ts.map +1 -1
  97. package/dist/operator/board-delta-gate.js +68 -24
  98. package/dist/operator/board-delta-gate.js.map +1 -1
  99. package/dist/operator/board-refresh-gate.d.ts +11 -6
  100. package/dist/operator/board-refresh-gate.d.ts.map +1 -1
  101. package/dist/operator/board-refresh-gate.js +12 -11
  102. package/dist/operator/board-refresh-gate.js.map +1 -1
  103. package/dist/operator/board-slot-instructions.d.ts +30 -0
  104. package/dist/operator/board-slot-instructions.d.ts.map +1 -1
  105. package/dist/operator/board-slot-instructions.js +110 -6
  106. package/dist/operator/board-slot-instructions.js.map +1 -1
  107. package/dist/operator/console-brief.d.ts +26 -13
  108. package/dist/operator/console-brief.d.ts.map +1 -1
  109. package/dist/operator/console-brief.js +159 -83
  110. package/dist/operator/console-brief.js.map +1 -1
  111. package/dist/operator/experience-evidence.d.ts +18 -0
  112. package/dist/operator/experience-evidence.d.ts.map +1 -0
  113. package/dist/operator/experience-evidence.js +82 -0
  114. package/dist/operator/experience-evidence.js.map +1 -0
  115. package/dist/operator/experience-hints.d.ts +44 -0
  116. package/dist/operator/experience-hints.d.ts.map +1 -0
  117. package/dist/operator/experience-hints.js +98 -0
  118. package/dist/operator/experience-hints.js.map +1 -0
  119. package/dist/operator/mama-memory-port.js +1 -3
  120. package/dist/operator/mama-memory-port.js.map +1 -1
  121. package/dist/operator/operator-trigger-loop.d.ts.map +1 -1
  122. package/dist/operator/operator-trigger-loop.js +3 -2
  123. package/dist/operator/operator-trigger-loop.js.map +1 -1
  124. package/dist/operator/owner-action-effects.d.ts +13 -1
  125. package/dist/operator/owner-action-effects.d.ts.map +1 -1
  126. package/dist/operator/owner-action-effects.js +17 -4
  127. package/dist/operator/owner-action-effects.js.map +1 -1
  128. package/dist/operator/owner-event-inbox.d.ts +7 -1
  129. package/dist/operator/owner-event-inbox.d.ts.map +1 -1
  130. package/dist/operator/owner-event-inbox.js +8 -0
  131. package/dist/operator/owner-event-inbox.js.map +1 -1
  132. package/dist/operator/owner-event-loop.d.ts +28 -2
  133. package/dist/operator/owner-event-loop.d.ts.map +1 -1
  134. package/dist/operator/owner-event-loop.js +60 -2
  135. package/dist/operator/owner-event-loop.js.map +1 -1
  136. package/dist/operator/owner-event-policy.d.ts +20 -0
  137. package/dist/operator/owner-event-policy.d.ts.map +1 -1
  138. package/dist/operator/owner-event-policy.js +34 -5
  139. package/dist/operator/owner-event-policy.js.map +1 -1
  140. package/dist/operator/owner-event-prompt.d.ts +13 -4
  141. package/dist/operator/owner-event-prompt.d.ts.map +1 -1
  142. package/dist/operator/owner-event-prompt.js +31 -38
  143. package/dist/operator/owner-event-prompt.js.map +1 -1
  144. package/dist/operator/owner-runtime-journal.d.ts.map +1 -1
  145. package/dist/operator/owner-runtime-journal.js +7 -3
  146. package/dist/operator/owner-runtime-journal.js.map +1 -1
  147. package/dist/operator/owner-runtime.d.ts +6 -0
  148. package/dist/operator/owner-runtime.d.ts.map +1 -1
  149. package/dist/operator/owner-runtime.js +48 -5
  150. package/dist/operator/owner-runtime.js.map +1 -1
  151. package/dist/operator/procedure-activation.d.ts +7 -0
  152. package/dist/operator/procedure-activation.d.ts.map +1 -0
  153. package/dist/operator/procedure-activation.js +132 -0
  154. package/dist/operator/procedure-activation.js.map +1 -0
  155. package/dist/operator/procedure-projection.d.ts +25 -0
  156. package/dist/operator/procedure-projection.d.ts.map +1 -0
  157. package/dist/operator/procedure-projection.js +80 -0
  158. package/dist/operator/procedure-projection.js.map +1 -0
  159. package/dist/operator/procedure-runtime.d.ts +45 -0
  160. package/dist/operator/procedure-runtime.d.ts.map +1 -0
  161. package/dist/operator/procedure-runtime.js +496 -0
  162. package/dist/operator/procedure-runtime.js.map +1 -0
  163. package/dist/operator/procedure-store.d.ts +97 -0
  164. package/dist/operator/procedure-store.d.ts.map +1 -0
  165. package/dist/operator/procedure-store.js +368 -0
  166. package/dist/operator/procedure-store.js.map +1 -0
  167. package/dist/operator/subagent-stimulus.d.ts +34 -0
  168. package/dist/operator/subagent-stimulus.d.ts.map +1 -0
  169. package/dist/operator/subagent-stimulus.js +145 -0
  170. package/dist/operator/subagent-stimulus.js.map +1 -0
  171. package/dist/operator/task-ledger.d.ts +40 -3
  172. package/dist/operator/task-ledger.d.ts.map +1 -1
  173. package/dist/operator/task-ledger.js +63 -10
  174. package/dist/operator/task-ledger.js.map +1 -1
  175. package/dist/operator/thread-brief-memory.d.ts +29 -0
  176. package/dist/operator/thread-brief-memory.d.ts.map +1 -0
  177. package/dist/operator/thread-brief-memory.js +61 -0
  178. package/dist/operator/thread-brief-memory.js.map +1 -0
  179. package/dist/operator/trigger-author.d.ts +2 -1
  180. package/dist/operator/trigger-author.d.ts.map +1 -1
  181. package/dist/operator/trigger-author.js +23 -0
  182. package/dist/operator/trigger-author.js.map +1 -1
  183. package/dist/operator/trigger-matcher.js +1 -0
  184. package/dist/operator/trigger-matcher.js.map +1 -1
  185. package/dist/operator/trigger-registry.d.ts +5 -4
  186. package/dist/operator/trigger-registry.d.ts.map +1 -1
  187. package/dist/operator/trigger-registry.js +78 -24
  188. package/dist/operator/trigger-registry.js.map +1 -1
  189. package/dist/operator/trigger-review.d.ts +1 -1
  190. package/dist/operator/trigger-review.d.ts.map +1 -1
  191. package/dist/operator/trigger-review.js +24 -4
  192. package/dist/operator/trigger-review.js.map +1 -1
  193. package/dist/operator/trigger-types.d.ts +10 -1
  194. package/dist/operator/trigger-types.d.ts.map +1 -1
  195. package/dist/operator/worker-run.d.ts +13 -1
  196. package/dist/operator/worker-run.d.ts.map +1 -1
  197. package/dist/operator/worker-run.js +5 -2
  198. package/dist/operator/worker-run.js.map +1 -1
  199. package/dist/operator/workorder-consumer.d.ts +106 -14
  200. package/dist/operator/workorder-consumer.d.ts.map +1 -1
  201. package/dist/operator/workorder-consumer.js +295 -93
  202. package/dist/operator/workorder-consumer.js.map +1 -1
  203. package/dist/operator/workorder-hooks.d.ts +42 -9
  204. package/dist/operator/workorder-hooks.d.ts.map +1 -1
  205. package/dist/operator/workorder-hooks.js +52 -13
  206. package/dist/operator/workorder-hooks.js.map +1 -1
  207. package/dist/operator/workorder-publishers.d.ts +9 -1
  208. package/dist/operator/workorder-publishers.d.ts.map +1 -1
  209. package/dist/operator/workorder-publishers.js +21 -2
  210. package/dist/operator/workorder-publishers.js.map +1 -1
  211. package/package.json +2 -2
  212. package/dist/operator/learning-context.d.ts +0 -49
  213. package/dist/operator/learning-context.d.ts.map +0 -1
  214. package/dist/operator/learning-context.js +0 -129
  215. package/dist/operator/learning-context.js.map +0 -1
  216. package/dist/operator/learning-markers.d.ts +0 -19
  217. package/dist/operator/learning-markers.d.ts.map +0 -1
  218. package/dist/operator/learning-markers.js +0 -147
  219. package/dist/operator/learning-markers.js.map +0 -1
  220. package/dist/operator/learning-read.d.ts +0 -16
  221. package/dist/operator/learning-read.d.ts.map +0 -1
  222. package/dist/operator/learning-read.js +0 -18
  223. package/dist/operator/learning-read.js.map +0 -1
  224. package/dist/operator/turn-observer.d.ts +0 -34
  225. package/dist/operator/turn-observer.d.ts.map +0 -1
  226. package/dist/operator/turn-observer.js +0 -79
  227. package/dist/operator/turn-observer.js.map +0 -1
  228. package/templates/skills/heartbeat-report.md +0 -75
@@ -18,7 +18,13 @@ export interface TriggerSourceRef {
18
18
  * A fired trigger's signal. Genericized `SituationSignal` (contract-types.ts:15-27).
19
19
  * Drives recall (`memoryQuery`) + evidence gathering, then routes to the agent.
20
20
  */
21
+ export interface ProcedureRef {
22
+ scopeKey?: string;
23
+ id: string;
24
+ revision: number;
25
+ }
21
26
  export interface TriggerSignal {
27
+ procedureRef?: ProcedureRef;
22
28
  kind: string;
23
29
  memoryQuery: string;
24
30
  /** Immutable procedure snapshot carried into the owner-agent event turn. */
@@ -66,6 +72,9 @@ export type TriggerStatus = 'active' | 'disabled' | 'superseded';
66
72
  * triggers self-activate (G4 unfrozen); there is structurally no human-approval gate.
67
73
  */
68
74
  export interface TriggerRecord {
75
+ procedureRef?: ProcedureRef;
76
+ /** Semantic revision; statistics do not advance it. */
77
+ revision?: number;
69
78
  id: string;
70
79
  kind: string;
71
80
  memoryQuery: string;
@@ -82,5 +91,5 @@ export interface TriggerRecord {
82
91
  disabledReason?: string;
83
92
  }
84
93
  /** Input to author a trigger. Server manages status/timestamps/stats. */
85
- export type CreateTriggerInput = Omit<TriggerRecord, 'status' | 'createdAt' | 'updatedAt' | 'stats' | 'disabledReason'>;
94
+ export type CreateTriggerInput = Omit<TriggerRecord, 'revision' | 'status' | 'createdAt' | 'updatedAt' | 'stats' | 'disabledReason'>;
86
95
  //# sourceMappingURL=trigger-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trigger-types.d.ts","sourceRoot":"","sources":["../../src/operator/trigger-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,6EAA6E;AAC7E,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,SAAS,EAAE,oBAAoB,EAAE,CAAC;IAClC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iFAAiF;AACjF,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,KAAK,GAAG,OAAO,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,gFAAgF;AAChF,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,oEAAoE;AACpE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;I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BAAoB,EAAE,CAAC;IAClC,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yEAAyE;AACzE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,aAAa,EACb,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,OAAO,GAAG,gBAAgB,CAC/E,CAAC"}
@@ -28,6 +28,12 @@ export type WorkerRunnerOptions = WorkerIdentityOptions & Pick<AgentLoopOptions,
28
28
  * totalUsage is optional because the seam is structural: the real AgentLoopResult
29
29
  * always carries it, but injected test runners and older adapters may not. */
30
30
  export interface WorkerRunner {
31
+ /**
32
+ * Whether the model runner behind this seam can spawn a native subagent the host observes
33
+ * (IModelRunner.supportsNativeSubagents, surfaced by AgentLoop). Optional because the seam
34
+ * is structural; absent is read as INCAPABLE, so nothing is promised delegation it cannot do.
35
+ */
36
+ readonly supportsNativeSubagents?: boolean;
31
37
  runWithContent(content: ContentBlock[], options: WorkerRunnerOptions): Promise<{
32
38
  response: string;
33
39
  totalUsage?: {
@@ -65,6 +71,12 @@ export interface WorkerRunInput {
65
71
  * lane's fresh-session pool).
66
72
  */
67
73
  runOptions?: Record<string, unknown>;
74
+ /**
75
+ * Hash source for `briefHash` when the composed brief deliberately omits standing text
76
+ * the thread already carries. Without it the receipt hash would describe the trimmed
77
+ * turn instead of the operating brief it is meant to identify.
78
+ */
79
+ briefHashSource?: string;
68
80
  }
69
81
  /** Env override for the worker-run per-request CLI timeout, in whole seconds. */
70
82
  export declare const WORKER_TIMEOUT_ENV = "MAMA_WORKER_TIMEOUT_SECONDS";
@@ -93,5 +105,5 @@ export declare function attachWorkOrderAttemptContext(runOptions: Record<string,
93
105
  * Throws loudly on invalid input, runner failure, or an empty response -
94
106
  * a worker never ends silently.
95
107
  */
96
- export declare function workerRun(runner: WorkerRunner, { kind, brief, input, runOptions }: WorkerRunInput): Promise<WorkerRunOutput>;
108
+ export declare function workerRun(runner: WorkerRunner, { kind, brief, input, runOptions, briefHashSource }: WorkerRunInput): Promise<WorkerRunOutput>;
97
109
  //# sourceMappingURL=worker-run.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"worker-run.d.ts","sourceRoot":"","sources":["../../src/operator/worker-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMxE,kFAAkF;AAClF,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,GACrD,IAAI,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,GAC5C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE1B;;+EAE+E;AAC/E,MAAM,WAAW,YAAY;IAC3B,cAAc,CACZ,OAAO,EAAE,YAAY,EAAE,EACvB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE;YAAE,YAAY,EAAE,MAAM,CAAC;YAAC,aAAa,EAAE,MAAM,CAAA;SAAE,CAAC;QAC7D,kEAAkE;QAClE,SAAS,CAAC,EAAE,QAAQ,CAAC;QACrB,sBAAsB,CAAC,EAAE,eAAe,CAAC;KAC1C,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,S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AAO,CAAC,CAAC;IACrC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAID,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAElD;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAY1F;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAK1D;AAED,wEAAwE;AACxE,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,kBAAkB,EAAE,MAAM,GACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,kBAAkB,EAAE,MAAM,CAAA;CAAE,CAK1D;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAC7B,MAAM,EAAE,YAAY,EACpB,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,EAAE,cAAc,GAClE,OAAO,CAAC,eAAe,CAAC,CAkE1B"}
@@ -73,7 +73,7 @@ function attachWorkOrderAttemptContext(runOptions, workorderAttemptId) {
73
73
  * Throws loudly on invalid input, runner failure, or an empty response -
74
74
  * a worker never ends silently.
75
75
  */
76
- async function workerRun(runner, { kind, brief, input, runOptions }) {
76
+ async function workerRun(runner, { kind, brief, input, runOptions, briefHashSource }) {
77
77
  if (!KIND_PATTERN.test(kind)) {
78
78
  throw new Error(`[worker-run] invalid worker kind "${kind}" (expected kebab-case)`);
79
79
  }
@@ -116,7 +116,10 @@ async function workerRun(runner, { kind, brief, input, runOptions }) {
116
116
  const tokensUsed = usage && Number.isFinite(usage.input_tokens) && Number.isFinite(usage.output_tokens)
117
117
  ? usage.input_tokens + usage.output_tokens
118
118
  : undefined;
119
- const briefHash = (0, node_crypto_1.createHash)('sha256').update(brief).digest('hex').slice(0, 16);
119
+ const briefHash = (0, node_crypto_1.createHash)('sha256')
120
+ .update(briefHashSource ?? brief)
121
+ .digest('hex')
122
+ .slice(0, 16);
120
123
  const stopped = result.stoppedBy === 'budget' ? { stoppedBy: 'budget' } : {};
121
124
  const journal = result.ownerJournalProvenance === 'commit_failed'
122
125
  ? { ownerJournalProvenance: 'commit_failed' }
@@ -1 +1 @@
1
- {"version":3,"file":"worker-run.js","sourceRoot":"","sources":["../../src/operator/worker-run.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAqFH,sEAYC;AAED,sDAKC;AAGD,sEAQC;AAOD,8BAkEC;AA1LD,6CAAyC;AAGzC,yDAAkE;AAClE,uFAA2F;AAC3F,yDAA+D;AA0D/D,MAAM,YAAY,GAAG,iCAAiC,CAAC;AAEvD,iFAAiF;AACpE,QAAA,kBAAkB,GAAG,6BAA6B,CAAC;AAEhE;;;;;;GAMG;AACU,QAAA,8BAA8B,GAAG,GAAG,CAAC;AAElD;;;;;GAKG;AACH,SAAgB,6BAA6B,CAAC,MAAyB,OAAO,CAAC,GAAG;IAChF,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,0BAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACnD,IAAI,GAAG,KAAK,EAAE,EAAE,CAAC;QACf,OAAO,sCAA8B,GAAG,IAAI,CAAC;IAC/C,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,OAAO,IAAI,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CACb,GAAG,0BAAkB,mEAAmE,GAAG,GAAG,CAC/F,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,GAAG,IAAI,CAAC;AACxB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAY;IAChD,IAAI,CAAC,YAAY,CAAC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gerPort {
38
38
  inspectBoardCandidateAttempt(attemptId: number): BoardCandidateAttemptState;
39
39
  failTemporalWorkOrder(attemptId: number, reason: string, allowRetry?: boolean): TemporalWorkFailureResult;
40
40
  enqueueWorkOrder(order: EnqueueWorkOrderInput): WorkOrderRecord;
41
+ /** Keeps a claimed attempt OPEN while a native subagent finishes its work. */
42
+ markWorkOrderDelegated(id: number, delegatedAt: number): void;
41
43
  listStaleClaims(): WorkOrderRecord[];
42
44
  countPendingWorkOrders(): number;
43
45
  }
@@ -61,7 +63,7 @@ export interface WorkOrderHook {
61
63
  verdictRequired?: boolean;
62
64
  }
63
65
  export interface WorkOrderConsumerEvent {
64
- type: 'complete' | 'failed' | 'requeued' | 'exhausted' | 'stale-claim' | 'superseded';
66
+ type: 'complete' | 'failed' | 'requeued' | 'exhausted' | 'stale-claim' | 'superseded' | 'delegated';
65
67
  workKind: WorkOrderKind;
66
68
  workOrderId: number;
67
69
  reason?: string;
@@ -80,6 +82,19 @@ export interface WorkOrderConsumerDeps {
80
82
  * loudly (never a silent skip). Per-kind procedure lives in buildTurnKindSection.
81
83
  */
82
84
  loadOwnerBrief: () => string | null;
85
+ /**
86
+ * Decide whether THIS turn must carry the console brief: true the first time a thread
87
+ * sees a given brief text, false while it is unchanged. Shared with the owner-event
88
+ * lane, because both submit to the same owner:runtime thread. Absent = always send
89
+ * (tests and any host that has no thread memory).
90
+ */
91
+ admitOwnerBrief?: (brief: string) => boolean;
92
+ /**
93
+ * Undo an admission whose turn never reached the model. `admitOwnerBrief` marks the brief
94
+ * as seen on the thread, so a run that dies before delivery would otherwise make the
95
+ * retry omit standing policy no turn ever carried.
96
+ */
97
+ retractOwnerBrief?: () => void;
83
98
  hasUnsafeReplayEffects?: (wo: WorkOrderRecord) => boolean;
84
99
  hasUnsettledEffects?: (wo: WorkOrderRecord) => boolean;
85
100
  /**
@@ -87,11 +102,6 @@ export interface WorkOrderConsumerDeps {
87
102
  * judgment only. Absent in tests that do not exercise the board path.
88
103
  */
89
104
  publishPipelineSlot?: () => void;
90
- /**
91
- * Owner policy and lessons for this turn (learning-context.ts), appended after the brief.
92
- * Optional: a missing reader means no block, never a failed order.
93
- */
94
- buildLearningBlock?: (wo: WorkOrderRecord) => Promise<string>;
95
105
  /** Extra host-compiled input merged into a self-check turn's work order (open issues). */
96
106
  selfCheckInput?: () => Record<string, unknown>;
97
107
  /** Passive owner surface (AgentNoticeQueue via MessageRouter accessor). */
@@ -133,6 +143,31 @@ export declare function detectTransportErrorResponse(response: string): string |
133
143
  * anonymous sha256 digest for what is an Anthropic capacity blip, not a MAMA bug.
134
144
  */
135
145
  export declare function classifyTransientModelError(reason: string): string | null;
146
+ /**
147
+ * The native item names that mean "this run started a subagent".
148
+ *
149
+ * SECONDARY path only. A protocol capture on codex-cli 0.153.4 (board#4764, 2026-09-09)
150
+ * showed the parent thread carries ONLY `subAgentActivity` items (started/completed) for a
151
+ * spawn - no `collabAgentToolCall` item at all - and `subAgentActivity` is consumed by the
152
+ * subagent handler before the native-item path can lift it into `onToolUse`. Neither name
153
+ * therefore reaches `onToolUse` on that version. The primary observation is the dedicated
154
+ * `onSubagentStart` stream callback; these names stay as a fallback for runners that do
155
+ * surface a subagent item as a tool use.
156
+ */
157
+ export declare const NATIVE_SUBAGENT_ITEM_NAMES: readonly string[];
158
+ /**
159
+ * How long a delegated attempt may stay open.
160
+ *
161
+ * A delegated attempt is not a finished one: the run said it handed the work to a native
162
+ * subagent and returned WITHOUT the obligated trace that proves the durable result landed.
163
+ * What answers later is the CHILD'S OWN bridge: it inherits the parent attempt's execution
164
+ * context, so its gateway calls are traced with channel `worker:<kind>` and this attempt id,
165
+ * and the SAME attempt-bound verification measures them on a later tick. The runtime's wake
166
+ * turn for the finished child does NOT discharge anything - it runs on channel `subagent`,
167
+ * which the verification never counts. Past this bound the attempt has no evidence and fails
168
+ * as `delegated-timeout`.
169
+ */
170
+ export declare const DELEGATED_ATTEMPT_TIMEOUT_MS: number;
136
171
  /** Exported so the boot-time leg declaration and the timer share one number. */
137
172
  export declare const DEFAULT_TICK_MS = 60000;
138
173
  export declare class WorkOrderConsumer {
@@ -141,6 +176,13 @@ export declare class WorkOrderConsumer {
141
176
  private readonly lastAlarmAt;
142
177
  private readonly briefHashes;
143
178
  private readonly unresolvedTemporalEffects;
179
+ /**
180
+ * Attempts whose durable result is still owed by a native subagent. The verification is
181
+ * re-run against the ORIGINAL snapshot and bound to THIS attempt's id, so a child that
182
+ * writes after the parent turn ended discharges the attempt it belongs to - and a sibling
183
+ * order of the same kind discharges nothing.
184
+ */
185
+ private readonly delegatedAttempts;
144
186
  private readonly unresolvedBoardCandidateEffects;
145
187
  private timer;
146
188
  private consuming;
@@ -177,6 +219,31 @@ export declare class WorkOrderConsumer {
177
219
  /** Durable receipts are the board-candidate completion authority. */
178
220
  private arbitrateBoardCandidateAttempt;
179
221
  private deferBoardCandidateArbitration;
222
+ /**
223
+ * Whether the runner behind this consumer can spawn a native subagent the host observes.
224
+ *
225
+ * The contract text and the `delegated` state both hang off this one answer, so they
226
+ * cannot disagree. A runner that predates the capability is treated as incapable: a
227
+ * promise of delegation on a runtime that cannot delegate is what wasted the turn.
228
+ */
229
+ private runnerSupportsNativeSubagents;
230
+ /**
231
+ * Keep a claimed attempt OPEN because a native subagent owes it a durable result.
232
+ *
233
+ * `delegated` is not `failed` and not `done`: the run reached no verifiable effect, and the
234
+ * one thing known about it is that it started a child. The attempt keeps its idempotency
235
+ * slot (the row stays non-terminal), so nothing re-enqueues the same occurrence underneath
236
+ * the child.
237
+ */
238
+ private beginDelegation;
239
+ /**
240
+ * Re-run each delegated attempt's OWN verification against its original snapshot. Traces the
241
+ * CHILD wrote under this attempt's id count whenever they land, because the snapshot is a
242
+ * rowid boundary, not a time window - and only the child's own bridge carries that id.
243
+ */
244
+ private recheckDelegatedAttempts;
245
+ /** The same completion authority the immediate path uses, per kind. */
246
+ private settleDelegatedCompletion;
180
247
  private recheckUnresolvedBoardCandidateEffects;
181
248
  /** Durable row+generation+receipt state always wins over runner prose/errors. */
182
249
  private arbitrateTemporalAttempt;
@@ -184,19 +251,44 @@ export declare class WorkOrderConsumer {
184
251
  private recheckUnresolvedTemporalEffects;
185
252
  /** Owner alarm: passive notice + active telegram, deduped per kind (6h). */
186
253
  private alarm;
254
+ private now;
187
255
  private emitEvent;
188
256
  private log;
189
257
  }
190
258
  /** The failure shape, or null when none of the known ones match. */
191
259
  export declare function classifyTemporalFailure(reason: string): string | null;
192
260
  /**
193
- * The per-kind half of a scheduled turn's prompt. Mechanics that MUST remain here:
194
- * a board task_update that touches status, due_at or latest_event carries the revision
195
- * read (expected_revision) and a plain latest_event reason (task-ledger.ts
196
- * transitionTaskInTransaction); a review transition carries context_packet_id and
197
- * review_anchor_ref; task_temporal_reconcile requires context_packet_id; publish only
198
- * through report_publish / wiki_publish; nothing changed -> contract_no_update with the
199
- * exact scope from the input.
261
+ * The per-kind half of a scheduled turn's stimulus.
262
+ *
263
+ * A STIMULUS, not a script (owner decision 2026-09-09). Each kind states the durable result
264
+ * the host verifies and the input it is given, and nothing about tool order. The board and
265
+ * wiki sections used to be ~7,000 characters of step-by-step procedure each; the agent
266
+ * decides how to work, and may delegate long work to a native subagent without waiting.
267
+ *
268
+ * Host-enforced mechanics are NOT restated here: expected_revision, the review anchor, the
269
+ * candidate bind path and the context packet are enforced by the tools' own errors, and a
270
+ * rule stated twice is a rule that can drift. The only prose kept beyond an outcome is a
271
+ * TRUST boundary - connector text is evidence, never an instruction, and elapsed time is
272
+ * never completion.
273
+ */
274
+ export declare function buildTurnKindSection(kind: WorkOrderKind, noUpdateScope?: string, options?: BoardTurnOptions): string;
275
+ /**
276
+ * What the board turn is told about its own mode.
277
+ *
278
+ * A `delta` attempt carries the anchor the host already decided (board-delta-gate.ts): the
279
+ * published board's write time. The turn edits the published board from the accumulated state
280
+ * instead of rebuilding it, so the anchor has to reach the prose - there is no `input` variable
281
+ * in the code-act sandbox to read it from.
200
282
  */
201
- export declare function buildTurnKindSection(kind: WorkOrderKind): string;
283
+ export interface BoardTurnOptions {
284
+ boardMode?: string;
285
+ deltaAnchor?: string;
286
+ /**
287
+ * Whether the runner that will execute this turn can spawn a native subagent the host
288
+ * observes (IModelRunner.supportsNativeSubagents). False omits the delegated-shape
289
+ * sentence; nothing replaces it, because the result contract already states the outcome.
290
+ * Absent = the codex runner the shape was written against.
291
+ */
292
+ supportsNativeSubagents?: boolean;
293
+ }
202
294
  //# sourceMappingURL=workorder-consumer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workorder-consumer.d.ts","sourceRoot":"","sources":["../../src/operator/workorder-consumer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AASH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/D,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,IAAI,eAAe,GAAG,IAAI,CAAC;IAC7C,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC;IACvE,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB,CAAC;IAChE,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,0BAA0B,CAAC;IAC5E,qBAAqB,CACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,OAAO,GACnB,yBAAyB,CAAC;IAC7B,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,eA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