@noopolis/daimon 0.2.0 → 0.2.2

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 (261) hide show
  1. package/README.md +6 -0
  2. package/dist/contracts/attentionContract.d.ts +25 -0
  3. package/dist/contracts/attentionContract.d.ts.map +1 -1
  4. package/dist/contracts/attentionContract.js +8 -1
  5. package/dist/contracts/grokBrokerTaskClock.d.ts +18 -0
  6. package/dist/contracts/grokBrokerTaskClock.d.ts.map +1 -0
  7. package/dist/contracts/grokBrokerTaskClock.js +16 -0
  8. package/dist/contracts/organizationRuntimeContract.d.ts +76 -0
  9. package/dist/contracts/organizationRuntimeContract.d.ts.map +1 -1
  10. package/dist/contracts/organizationRuntimeContract.js +2 -0
  11. package/dist/contracts/runtimeContractManifest.d.ts +222 -15
  12. package/dist/contracts/runtimeContractManifest.d.ts.map +1 -1
  13. package/dist/contracts/runtimeContractManifest.js +35 -10
  14. package/dist/contracts/shellEnvironmentPolicy.d.ts +3 -0
  15. package/dist/contracts/shellEnvironmentPolicy.d.ts.map +1 -0
  16. package/dist/contracts/shellEnvironmentPolicy.js +5 -0
  17. package/dist/contracts/wakeMomentContract.d.ts +61 -0
  18. package/dist/contracts/wakeMomentContract.d.ts.map +1 -0
  19. package/dist/contracts/wakeMomentContract.js +27 -0
  20. package/dist/core/types.d.ts +2 -0
  21. package/dist/core/types.d.ts.map +1 -1
  22. package/dist/examples/jungianPlayAgent.d.ts +1 -0
  23. package/dist/examples/jungianPlayAgent.d.ts.map +1 -1
  24. package/dist/examples/jungianPlayAgent.js +6 -2
  25. package/dist/observability/causalEvents.d.ts +3 -3
  26. package/dist/observability/causalEvents.d.ts.map +1 -1
  27. package/dist/observability/causalEvents.js +4 -4
  28. package/dist/pi/cliEngineSpawn.d.ts +2 -2
  29. package/dist/pi/cliEngineSpawn.d.ts.map +1 -1
  30. package/dist/pi/cliEngineSpawn.js +7 -2
  31. package/dist/pi/cliEnvironment.d.ts.map +1 -1
  32. package/dist/pi/cliEnvironment.js +2 -0
  33. package/dist/pi/cliMcpRegistration.d.ts +1 -1
  34. package/dist/pi/cliMcpRegistration.d.ts.map +1 -1
  35. package/dist/pi/cliMcpRegistration.js +1 -1
  36. package/dist/pi/cliSession.d.ts +2 -0
  37. package/dist/pi/cliSession.d.ts.map +1 -1
  38. package/dist/pi/cliSession.js +3 -80
  39. package/dist/pi/cliSessionMcp.d.ts +9 -0
  40. package/dist/pi/cliSessionMcp.d.ts.map +1 -0
  41. package/dist/pi/cliSessionMcp.js +80 -0
  42. package/dist/pi/engineTaskClock.d.ts +9 -0
  43. package/dist/pi/engineTaskClock.d.ts.map +1 -0
  44. package/dist/pi/engineTaskClock.js +28 -0
  45. package/dist/pi/grokHomeMcpRegistration.d.ts.map +1 -1
  46. package/dist/pi/grokHomeMcpRegistration.js +2 -1
  47. package/dist/pi/grokSandbox.js +1 -1
  48. package/dist/pi/memoryClock.d.ts +25 -0
  49. package/dist/pi/memoryClock.d.ts.map +1 -0
  50. package/dist/pi/memoryClock.js +18 -0
  51. package/dist/pi/piAgentHandle.d.ts +3 -1
  52. package/dist/pi/piAgentHandle.d.ts.map +1 -1
  53. package/dist/pi/piAgentHandle.js +5 -2
  54. package/dist/pi/piHarness.d.ts +8 -2
  55. package/dist/pi/piHarness.d.ts.map +1 -1
  56. package/dist/pi/piHarness.js +28 -12
  57. package/dist/pi/taskClockProcess.d.ts +6 -0
  58. package/dist/pi/taskClockProcess.d.ts.map +1 -0
  59. package/dist/pi/taskClockProcess.js +8 -0
  60. package/dist/pi/turnCausal.d.ts +4 -2
  61. package/dist/pi/turnCausal.d.ts.map +1 -1
  62. package/dist/pi/turnCausal.js +4 -4
  63. package/dist/pi/wakeAcceptance.d.ts +1 -1
  64. package/dist/pi/wakeAcceptance.d.ts.map +1 -1
  65. package/dist/pi/wakeAcceptance.js +2 -2
  66. package/dist/runtime/agentSkillsDirectory.d.ts +25 -0
  67. package/dist/runtime/agentSkillsDirectory.d.ts.map +1 -0
  68. package/dist/runtime/agentSkillsDirectory.js +101 -0
  69. package/dist/runtime/agySubscriptionBootstrap.js +1 -1
  70. package/dist/runtime/agySubscriptionRealm.js +1 -1
  71. package/dist/runtime/attention.d.ts +5 -0
  72. package/dist/runtime/attention.d.ts.map +1 -1
  73. package/dist/runtime/attention.js +14 -1
  74. package/dist/runtime/attentionDispatcher.d.ts +14 -2
  75. package/dist/runtime/attentionDispatcher.d.ts.map +1 -1
  76. package/dist/runtime/attentionDispatcher.js +127 -33
  77. package/dist/runtime/cli.js +5 -0
  78. package/dist/runtime/contract-manifest.json +1 -1
  79. package/dist/runtime/contract-manifest.sha256 +1 -1
  80. package/dist/runtime/engineBrokerCapabilities.d.ts +10 -0
  81. package/dist/runtime/engineBrokerCapabilities.d.ts.map +1 -1
  82. package/dist/runtime/engineBrokerCapabilities.js +10 -0
  83. package/dist/runtime/engineBrokerControlClient.d.ts +12 -1
  84. package/dist/runtime/engineBrokerControlClient.d.ts.map +1 -1
  85. package/dist/runtime/engineBrokerControlClient.js +139 -43
  86. package/dist/runtime/engineBrokerCredentialJournal.d.ts +2 -0
  87. package/dist/runtime/engineBrokerCredentialJournal.d.ts.map +1 -1
  88. package/dist/runtime/engineBrokerCredentialJournal.js +9 -0
  89. package/dist/runtime/engineBrokerInferenceProtocol.d.ts +3 -2
  90. package/dist/runtime/engineBrokerInferenceProtocol.d.ts.map +1 -1
  91. package/dist/runtime/engineBrokerInferenceProtocol.js +4 -4
  92. package/dist/runtime/engineBrokerMcpCallLog.d.ts +11 -0
  93. package/dist/runtime/engineBrokerMcpCallLog.d.ts.map +1 -1
  94. package/dist/runtime/engineBrokerMcpCallLog.js +13 -1
  95. package/dist/runtime/engineBrokerMcpFacade.d.ts +5 -2
  96. package/dist/runtime/engineBrokerMcpFacade.d.ts.map +1 -1
  97. package/dist/runtime/engineBrokerMcpFacade.js +5 -2
  98. package/dist/runtime/engineBrokerNativeClient.js +2 -2
  99. package/dist/runtime/engineBrokerProtocol.d.ts +42 -10
  100. package/dist/runtime/engineBrokerProtocol.d.ts.map +1 -1
  101. package/dist/runtime/engineBrokerProtocol.js +97 -14
  102. package/dist/runtime/engineBrokerSealLedger.d.ts.map +1 -1
  103. package/dist/runtime/engineBrokerSealLedger.js +9 -0
  104. package/dist/runtime/engineBrokerService.d.ts +8 -2
  105. package/dist/runtime/engineBrokerService.d.ts.map +1 -1
  106. package/dist/runtime/engineBrokerService.js +95 -37
  107. package/dist/runtime/engineBrokerServiceCli.js +1 -1
  108. package/dist/runtime/engineBrokerServiceConfig.d.ts +15 -2
  109. package/dist/runtime/engineBrokerServiceConfig.d.ts.map +1 -1
  110. package/dist/runtime/engineBrokerServiceConfig.js +53 -11
  111. package/dist/runtime/engineBrokerTurnRegistry.d.ts +1 -1
  112. package/dist/runtime/engineBrokerTurnRegistry.d.ts.map +1 -1
  113. package/dist/runtime/engineBrokerTurnRegistry.js +7 -6
  114. package/dist/runtime/engineDispatcher.d.ts +2 -0
  115. package/dist/runtime/engineDispatcher.d.ts.map +1 -1
  116. package/dist/runtime/engineDispatcher.js +14 -2
  117. package/dist/runtime/engineReadiness.js +1 -1
  118. package/dist/runtime/grokBrokerCredentialAuthority.d.ts +1 -0
  119. package/dist/runtime/grokBrokerCredentialAuthority.d.ts.map +1 -1
  120. package/dist/runtime/grokBrokerCredentialAuthority.js +48 -22
  121. package/dist/runtime/grokBrokerCredentialReader.d.ts +1 -0
  122. package/dist/runtime/grokBrokerCredentialReader.d.ts.map +1 -1
  123. package/dist/runtime/grokBrokerCredentialReader.js +2 -1
  124. package/dist/runtime/grokBrokerProjection.d.ts +26 -2
  125. package/dist/runtime/grokBrokerProjection.d.ts.map +1 -1
  126. package/dist/runtime/grokBrokerProjection.js +18 -7
  127. package/dist/runtime/grokBrokerProviderClock.d.ts +26 -0
  128. package/dist/runtime/grokBrokerProviderClock.d.ts.map +1 -0
  129. package/dist/runtime/grokBrokerProviderClock.js +133 -0
  130. package/dist/runtime/grokBrokerProxy.d.ts +17 -3
  131. package/dist/runtime/grokBrokerProxy.d.ts.map +1 -1
  132. package/dist/runtime/grokBrokerProxy.js +73 -9
  133. package/dist/runtime/grokBrokerProxyJson.d.ts +10 -0
  134. package/dist/runtime/grokBrokerProxyJson.d.ts.map +1 -0
  135. package/dist/runtime/grokBrokerProxyJson.js +31 -0
  136. package/dist/runtime/grokBrokerProxyRequest.d.ts.map +1 -1
  137. package/dist/runtime/grokBrokerProxyRequest.js +17 -6
  138. package/dist/runtime/grokBrokerRealmLease.js +1 -1
  139. package/dist/runtime/grokBrokerRefresh.js +1 -1
  140. package/dist/runtime/grokBrokerRunBudget.d.ts +20 -0
  141. package/dist/runtime/grokBrokerRunBudget.d.ts.map +1 -0
  142. package/dist/runtime/grokBrokerRunBudget.js +85 -0
  143. package/dist/runtime/grokBrokerSlot.d.ts +6 -0
  144. package/dist/runtime/grokBrokerSlot.d.ts.map +1 -0
  145. package/dist/runtime/grokBrokerSlot.js +21 -0
  146. package/dist/runtime/grokBrokerTaskClock.d.ts +32 -0
  147. package/dist/runtime/grokBrokerTaskClock.d.ts.map +1 -0
  148. package/dist/runtime/grokBrokerTaskClock.js +120 -0
  149. package/dist/runtime/grokBrokerTurnMeter.d.ts +55 -3
  150. package/dist/runtime/grokBrokerTurnMeter.d.ts.map +1 -1
  151. package/dist/runtime/grokBrokerTurnMeter.js +90 -4
  152. package/dist/runtime/grokBrokerWorkerConfig.d.ts +5 -2
  153. package/dist/runtime/grokBrokerWorkerConfig.d.ts.map +1 -1
  154. package/dist/runtime/grokBrokerWorkerConfig.js +22 -3
  155. package/dist/runtime/grokEngineBroker.d.ts +43 -3
  156. package/dist/runtime/grokEngineBroker.d.ts.map +1 -1
  157. package/dist/runtime/grokEngineBroker.js +159 -71
  158. package/dist/runtime/grokEngineBrokerTurn.d.ts +32 -8
  159. package/dist/runtime/grokEngineBrokerTurn.d.ts.map +1 -1
  160. package/dist/runtime/grokEngineBrokerTurn.js +204 -21
  161. package/dist/runtime/grokEngineBrokerTurnEnd.d.ts +88 -0
  162. package/dist/runtime/grokEngineBrokerTurnEnd.d.ts.map +1 -0
  163. package/dist/runtime/grokEngineBrokerTurnEnd.js +148 -0
  164. package/dist/runtime/grokInferenceProxy.d.ts.map +1 -1
  165. package/dist/runtime/grokInferenceProxy.js +3 -0
  166. package/dist/runtime/grokSubscriptionRealm.js +1 -1
  167. package/dist/runtime/grokWorkerAttestation.d.ts +12 -5
  168. package/dist/runtime/grokWorkerAttestation.d.ts.map +1 -1
  169. package/dist/runtime/grokWorkerAttestation.js +5 -3
  170. package/dist/runtime/grokWorkerHomeAttestation.d.ts +51 -5
  171. package/dist/runtime/grokWorkerHomeAttestation.d.ts.map +1 -1
  172. package/dist/runtime/grokWorkerHomeAttestation.js +103 -8
  173. package/dist/runtime/grokWorkerSkills.d.ts +86 -0
  174. package/dist/runtime/grokWorkerSkills.d.ts.map +1 -0
  175. package/dist/runtime/grokWorkerSkills.js +135 -0
  176. package/dist/runtime/index.d.ts +10 -2
  177. package/dist/runtime/index.d.ts.map +1 -1
  178. package/dist/runtime/index.js +8 -1
  179. package/dist/runtime/native/daimon-engine-broker +0 -0
  180. package/dist/runtime/organizationRuntime.d.ts +3 -0
  181. package/dist/runtime/organizationRuntime.d.ts.map +1 -1
  182. package/dist/runtime/organizationRuntimeAdmission.d.ts +6 -0
  183. package/dist/runtime/organizationRuntimeAdmission.d.ts.map +1 -0
  184. package/dist/runtime/organizationRuntimeAdmission.js +22 -0
  185. package/dist/runtime/organizationRuntimeControl.d.ts +9 -0
  186. package/dist/runtime/organizationRuntimeControl.d.ts.map +1 -1
  187. package/dist/runtime/organizationRuntimeControl.js +72 -24
  188. package/dist/runtime/organizationRuntimeHost.d.ts.map +1 -1
  189. package/dist/runtime/organizationRuntimeHost.js +13 -4
  190. package/dist/runtime/organizationRuntimeParsing.d.ts.map +1 -1
  191. package/dist/runtime/organizationRuntimeParsing.js +4 -1
  192. package/dist/runtime/organizationRuntimeReadiness.d.ts.map +1 -1
  193. package/dist/runtime/organizationRuntimeReadiness.js +8 -0
  194. package/dist/runtime/organizationRuntimeRecording.d.ts +7 -0
  195. package/dist/runtime/organizationRuntimeRecording.d.ts.map +1 -0
  196. package/dist/runtime/organizationRuntimeRecording.js +58 -0
  197. package/dist/runtime/physicalReadiness.d.ts +12 -0
  198. package/dist/runtime/physicalReadiness.d.ts.map +1 -1
  199. package/dist/runtime/physicalReadiness.js +43 -9
  200. package/dist/runtime/productionAgentTools.d.ts.map +1 -1
  201. package/dist/runtime/productionAgentTools.js +13 -5
  202. package/dist/runtime/relocateRuntimeConfig.d.ts +14 -0
  203. package/dist/runtime/relocateRuntimeConfig.d.ts.map +1 -0
  204. package/dist/runtime/relocateRuntimeConfig.js +38 -0
  205. package/dist/runtime/schedule.d.ts.map +1 -1
  206. package/dist/runtime/schedule.js +12 -7
  207. package/dist/runtime/storeCoordination.d.ts +10 -0
  208. package/dist/runtime/storeCoordination.d.ts.map +1 -1
  209. package/dist/runtime/storeCoordination.js +23 -0
  210. package/dist/runtime/taskClock.d.ts +42 -0
  211. package/dist/runtime/taskClock.d.ts.map +1 -0
  212. package/dist/runtime/taskClock.js +102 -0
  213. package/dist/runtime/taskClockProcess.d.ts +17 -0
  214. package/dist/runtime/taskClockProcess.d.ts.map +1 -0
  215. package/dist/runtime/taskClockProcess.js +58 -0
  216. package/dist/runtime/turnRequestLedger.d.ts +0 -5
  217. package/dist/runtime/turnRequestLedger.d.ts.map +1 -1
  218. package/dist/runtime/turnRequestLedger.js +23 -21
  219. package/dist/runtime/wakeAcceptanceClaimDiagnostics.d.ts +34 -0
  220. package/dist/runtime/wakeAcceptanceClaimDiagnostics.d.ts.map +1 -0
  221. package/dist/runtime/wakeAcceptanceClaimDiagnostics.js +79 -0
  222. package/dist/runtime/wakeAcceptanceIndex.d.ts +55 -0
  223. package/dist/runtime/wakeAcceptanceIndex.d.ts.map +1 -0
  224. package/dist/runtime/wakeAcceptanceIndex.js +158 -0
  225. package/dist/runtime/wakeAcceptanceProcessIdentity.d.ts +9 -1
  226. package/dist/runtime/wakeAcceptanceProcessIdentity.d.ts.map +1 -1
  227. package/dist/runtime/wakeAcceptanceProcessIdentity.js +5 -1
  228. package/dist/runtime/wakeAcceptanceRecord.d.ts +2 -0
  229. package/dist/runtime/wakeAcceptanceRecord.d.ts.map +1 -1
  230. package/dist/runtime/wakeAcceptanceRecord.js +4 -2
  231. package/dist/runtime/wakeAcceptanceRetention.d.ts +25 -1
  232. package/dist/runtime/wakeAcceptanceRetention.d.ts.map +1 -1
  233. package/dist/runtime/wakeAcceptanceRetention.js +28 -2
  234. package/dist/runtime/wakeAcceptanceStore.d.ts +8 -8
  235. package/dist/runtime/wakeAcceptanceStore.d.ts.map +1 -1
  236. package/dist/runtime/wakeAcceptanceStore.js +66 -63
  237. package/dist/runtime/wakeFuse.d.ts +58 -3
  238. package/dist/runtime/wakeFuse.d.ts.map +1 -1
  239. package/dist/runtime/wakeFuse.js +106 -7
  240. package/dist/runtime/wakeMomentFs.d.ts +27 -0
  241. package/dist/runtime/wakeMomentFs.d.ts.map +1 -0
  242. package/dist/runtime/wakeMomentFs.js +223 -0
  243. package/dist/runtime/wakeMomentHistory.d.ts +26 -0
  244. package/dist/runtime/wakeMomentHistory.d.ts.map +1 -0
  245. package/dist/runtime/wakeMomentHistory.js +109 -0
  246. package/dist/runtime/wakeMomentIo.d.ts +22 -0
  247. package/dist/runtime/wakeMomentIo.d.ts.map +1 -0
  248. package/dist/runtime/wakeMomentIo.js +114 -0
  249. package/dist/runtime/wakeMomentRecorder.d.ts +33 -0
  250. package/dist/runtime/wakeMomentRecorder.d.ts.map +1 -0
  251. package/dist/runtime/wakeMomentRecorder.js +81 -0
  252. package/dist/runtime/wakeMomentRetention.d.ts +7 -0
  253. package/dist/runtime/wakeMomentRetention.d.ts.map +1 -0
  254. package/dist/runtime/wakeMomentRetention.js +143 -0
  255. package/dist/runtime/wakeMomentRows.d.ts +8 -0
  256. package/dist/runtime/wakeMomentRows.d.ts.map +1 -0
  257. package/dist/runtime/wakeMomentRows.js +66 -0
  258. package/dist/runtime/wakeMomentSnapshot.d.ts +56 -0
  259. package/dist/runtime/wakeMomentSnapshot.d.ts.map +1 -0
  260. package/dist/runtime/wakeMomentSnapshot.js +248 -0
  261. package/package.json +4 -4
package/README.md CHANGED
@@ -172,6 +172,12 @@ descriptor with a bounded retry delay. A budget pause never becomes a terminal
172
172
  receipt. Existing fuse trip markers remain latched until explicit operator
173
173
  recovery; changing attention settings does not erase historical spending.
174
174
 
175
+ `POST /v2/drain` and `POST /v2/resume` (same bearer token) are the reversible
176
+ counterpart: a drain answers new wakes with the same 409 `work-blocked`
177
+ descriptor, keeps queued deliveries, lets running turns finish and reports
178
+ `drain: {state: "draining" | "drained", since}` in availability; resume
179
+ dispatches the queue. Neither touches the latched `fuse.stop`.
180
+
175
181
  A batch's atomic per-agent claim records its complete membership and stable
176
182
  `execution_id` before cognition. Individual receipts retain their delivery ids
177
183
  and explicit state. `GET /v2/activity.executions` identifies the live turn even
@@ -94,8 +94,33 @@ export declare const WORK_AVAILABILITY_SCHEMA: {
94
94
  };
95
95
  };
96
96
  };
97
+ readonly drain: {
98
+ readonly type: "object";
99
+ readonly additionalProperties: false;
100
+ readonly required: readonly ["state", "since"];
101
+ readonly properties: {
102
+ readonly state: {
103
+ readonly enum: readonly ["draining", "drained"];
104
+ };
105
+ readonly since: {
106
+ readonly type: "string";
107
+ };
108
+ };
109
+ };
97
110
  };
98
111
  };
112
+ /** Reversible operator drain; the latched `fuse.stop` is a separate, unchanged safety stop. */
113
+ export declare const OPERATOR_DRAIN: {
114
+ readonly drainRoute: "POST /v2/drain";
115
+ readonly resumeRoute: "POST /v2/resume";
116
+ readonly authorization: "control-bearer";
117
+ readonly response: "workAvailabilityResponseSchema";
118
+ readonly blockedReason: "operator_stop";
119
+ readonly queuedWakes: "retained";
120
+ readonly runningTurns: "finish";
121
+ readonly scope: "process";
122
+ readonly resumeClearsOperatorStop: false;
123
+ };
99
124
  export declare const WORK_BLOCKED_SCHEMA: {
100
125
  readonly type: "object";
101
126
  readonly additionalProperties: false;
@@ -1 +1 @@
1
- {"version":3,"file":"attentionContract.d.ts","sourceRoot":"","sources":["../../src/contracts/attentionContract.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAQ1I,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGzB,CAAC;AACb,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAEpB,CAAC"}
1
+ {"version":3,"file":"attentionContract.d.ts","sourceRoot":"","sources":["../../src/contracts/attentionContract.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAQ1I,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIzB,CAAC;AACb,+FAA+F;AAC/F,eAAO,MAAM,cAAc;;;;;;;;;;CAIjB,CAAC;AACX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;CAEpB,CAAC"}
@@ -7,8 +7,15 @@ const budget = { type: "object", additionalProperties: false, required: ["armed"
7
7
  } };
8
8
  export const WORK_AVAILABILITY_SCHEMA = { type: "object", additionalProperties: false, required: ["version", "state", "agents"], properties: {
9
9
  version: { const: "noopolis.daimon.work-availability.v1" }, state: { enum: ["running", "paused", "stopped"] },
10
- agents: { type: "array", maxItems: 32, items: { type: "object", additionalProperties: false, required: ["agent_id", "pending", "running", "deferred", "budget"], properties: { agent_id: { type: "string" }, pending: count, running: { type: "boolean" }, deferred: count, budget, error: { type: "string" } } } }
10
+ agents: { type: "array", maxItems: 32, items: { type: "object", additionalProperties: false, required: ["agent_id", "pending", "running", "deferred", "budget"], properties: { agent_id: { type: "string" }, pending: count, running: { type: "boolean" }, deferred: count, budget, error: { type: "string" } } } },
11
+ drain: { type: "object", additionalProperties: false, required: ["state", "since"], properties: { state: { enum: ["draining", "drained"] }, since: { type: "string" } } }
11
12
  } };
13
+ /** Reversible operator drain; the latched `fuse.stop` is a separate, unchanged safety stop. */
14
+ export const OPERATOR_DRAIN = {
15
+ drainRoute: "POST /v2/drain", resumeRoute: "POST /v2/resume", authorization: "control-bearer",
16
+ response: "workAvailabilityResponseSchema", blockedReason: "operator_stop", queuedWakes: "retained", runningTurns: "finish",
17
+ scope: "process", resumeClearsOperatorStop: false
18
+ };
12
19
  export const WORK_BLOCKED_SCHEMA = { type: "object", additionalProperties: false, required: ["version", "reason", "retry_after_ms"], properties: {
13
20
  version: { const: "noopolis.daimon.work-blocked.v1" }, reason: { enum: ["operator_stop", "ledger_unavailable", "host_stopping", "host_stopped", "queue_full"] }, retry_after_ms: { type: "integer", minimum: 1000, maximum: 300000 }
14
21
  } };
@@ -0,0 +1,18 @@
1
+ /** Slot zero pins the clocked template; every other slot replaces only its canonical directory. */
2
+ export declare const GROK_BROKER_TASK_CLOCK_PRELOAD_PATH = "/usr/local/lib/daimon/libfaketime.so.1";
3
+ export declare const GROK_BROKER_TASK_CLOCK_FILE_PATH = "/run/daimon-engine-broker/task-clock/slot-0/faketime";
4
+ export declare const GROK_BROKER_TASK_CLOCK: {
5
+ readonly preloadPath: "/usr/local/lib/daimon/libfaketime.so.1";
6
+ readonly timestampFilePath: "/run/daimon-engine-broker/task-clock/slot-0/faketime";
7
+ readonly directoryPath: "/run/daimon-engine-broker/task-clock/slot-0";
8
+ readonly rootDirectoryPath: "/run/daimon-engine-broker/task-clock";
9
+ readonly directoryMode: 493;
10
+ readonly fileMode: 420;
11
+ readonly ownerUid: 2100;
12
+ readonly version: "noopolis.daimon.grok-broker-task-clock.v2";
13
+ readonly slotDirectoryPattern: "/run/daimon-engine-broker/task-clock/slot-{slot}";
14
+ readonly slotFilePattern: "/run/daimon-engine-broker/task-clock/slot-{slot}/faketime";
15
+ readonly workerView: "own-directory-visible-sibling-directories-denied";
16
+ };
17
+ export type GrokWorkerConfigVariant = "unclocked" | "clocked";
18
+ //# sourceMappingURL=grokBrokerTaskClock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grokBrokerTaskClock.d.ts","sourceRoot":"","sources":["../../src/contracts/grokBrokerTaskClock.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,eAAO,MAAM,mCAAmC,2CAA2C,CAAC;AAC5F,eAAO,MAAM,gCAAgC,yDAAyD,CAAC;AACvG,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAYzB,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,SAAS,CAAC"}
@@ -0,0 +1,16 @@
1
+ /** Slot zero pins the clocked template; every other slot replaces only its canonical directory. */
2
+ export const GROK_BROKER_TASK_CLOCK_PRELOAD_PATH = "/usr/local/lib/daimon/libfaketime.so.1";
3
+ export const GROK_BROKER_TASK_CLOCK_FILE_PATH = "/run/daimon-engine-broker/task-clock/slot-0/faketime";
4
+ export const GROK_BROKER_TASK_CLOCK = {
5
+ preloadPath: GROK_BROKER_TASK_CLOCK_PRELOAD_PATH,
6
+ timestampFilePath: GROK_BROKER_TASK_CLOCK_FILE_PATH,
7
+ directoryPath: "/run/daimon-engine-broker/task-clock/slot-0",
8
+ rootDirectoryPath: "/run/daimon-engine-broker/task-clock",
9
+ directoryMode: 0o755,
10
+ fileMode: 0o644,
11
+ ownerUid: 2100,
12
+ version: "noopolis.daimon.grok-broker-task-clock.v2",
13
+ slotDirectoryPattern: "/run/daimon-engine-broker/task-clock/slot-{slot}",
14
+ slotFilePattern: "/run/daimon-engine-broker/task-clock/slot-{slot}/faketime",
15
+ workerView: "own-directory-visible-sibling-directories-denied"
16
+ };
@@ -77,6 +77,44 @@ export declare const ORGANIZATION_RUNTIME_CONFIG_SCHEMA: {
77
77
  readonly additionalProperties: false;
78
78
  readonly required: readonly ["id", "name", "instructions", "workspacePath", "runtimeHomePath", "engine"];
79
79
  readonly properties: {
80
+ readonly recording: {
81
+ readonly type: "object";
82
+ readonly additionalProperties: false;
83
+ readonly required: readonly ["directory", "keepMs", "snapshots"];
84
+ readonly properties: {
85
+ readonly directory: {
86
+ readonly type: "string";
87
+ readonly pattern: "^/[^\\u0000]*$";
88
+ readonly maxLength: 4096;
89
+ };
90
+ readonly keepMs: {
91
+ readonly type: "integer";
92
+ readonly minimum: 1;
93
+ readonly maximum: 9007199254740991;
94
+ };
95
+ readonly snapshots: {
96
+ readonly type: "array";
97
+ readonly maxItems: 16;
98
+ readonly uniqueItems: true;
99
+ readonly items: {
100
+ readonly type: "object";
101
+ readonly additionalProperties: false;
102
+ readonly required: readonly ["id", "path"];
103
+ readonly properties: {
104
+ readonly id: {
105
+ readonly type: "string";
106
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
107
+ };
108
+ readonly path: {
109
+ readonly type: "string";
110
+ readonly pattern: "^/[^\\u0000]*$";
111
+ readonly maxLength: 4096;
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
117
+ };
80
118
  readonly attention: {
81
119
  readonly type: "object";
82
120
  readonly additionalProperties: false;
@@ -478,6 +516,44 @@ export declare const ORGANIZATION_RUNTIME_CONFIG_V2_SCHEMA: {
478
516
  };
479
517
  }];
480
518
  };
519
+ readonly recording: {
520
+ readonly type: "object";
521
+ readonly additionalProperties: false;
522
+ readonly required: readonly ["directory", "keepMs", "snapshots"];
523
+ readonly properties: {
524
+ readonly directory: {
525
+ readonly type: "string";
526
+ readonly pattern: "^/[^\\u0000]*$";
527
+ readonly maxLength: 4096;
528
+ };
529
+ readonly keepMs: {
530
+ readonly type: "integer";
531
+ readonly minimum: 1;
532
+ readonly maximum: 9007199254740991;
533
+ };
534
+ readonly snapshots: {
535
+ readonly type: "array";
536
+ readonly maxItems: 16;
537
+ readonly uniqueItems: true;
538
+ readonly items: {
539
+ readonly type: "object";
540
+ readonly additionalProperties: false;
541
+ readonly required: readonly ["id", "path"];
542
+ readonly properties: {
543
+ readonly id: {
544
+ readonly type: "string";
545
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
546
+ };
547
+ readonly path: {
548
+ readonly type: "string";
549
+ readonly pattern: "^/[^\\u0000]*$";
550
+ readonly maxLength: 4096;
551
+ };
552
+ };
553
+ };
554
+ };
555
+ };
556
+ };
481
557
  readonly attention: {
482
558
  readonly type: "object";
483
559
  readonly additionalProperties: false;
@@ -1 +1 @@
1
- {"version":3,"file":"organizationRuntimeContract.d.ts","sourceRoot":"","sources":["../../src/contracts/organizationRuntimeContract.ts"],"names":[],"mappings":"AAEA,yFAAyF;AACzF,eAAO,MAAM,4BAA4B,EAAG,yCAAkD,CAAC;AAC/F,eAAO,MAAM,+BAA+B,EAAG,yCAAkD,CAAC;AAClG,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,qCAAqC,UAAY,CAAC;AAC/D,eAAO,MAAM,qCAAqC,QAAS,CAAC;AAC5D,eAAO,MAAM,0CAA0C,OAAQ,CAAC;AAChE,kHAAkH;AAClH,eAAO,MAAM,gDAAgD,QAAS,CAAC;AACvE,eAAO,MAAM,wCAAwC,QAAS,CAAC;AAC/D,eAAO,MAAM,6CAA6C,cAAiB,CAAC;AAC5E;;;;;;;GAOG;AACH,eAAO,MAAM,gDAAgD,OAAQ,CAAC;AACtE;;;;;;;;;GAS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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBxC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { GROK_BROKER_MODELS, GROK_BROKER_REASONING_EFFORTS } from "./grokWorkerContract.js";
2
+ import { WAKE_MOMENT_RECORDING_SCHEMA } from "./wakeMomentContract.js";
2
3
  /** The data-only organization-runtime constants shared by product code and artifacts. */
3
4
  export const ORGANIZATION_RUNTIME_VERSION = "noopolis.daimon.organization-runtime.v1";
4
5
  export const ORGANIZATION_RUNTIME_V2_VERSION = "noopolis.daimon.organization-runtime.v2";
@@ -32,6 +33,7 @@ export const ORGANIZATION_RUNTIME_MAX_SCHEDULE_JITTER_SECONDS = 3_600;
32
33
  export const ORGANIZATION_RUNTIME_CODEX_REASONING_EFFORTS = ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra", "persistent"];
33
34
  export const ORGANIZATION_RUNTIME_CODEX_WORKSPACE_NO_NETWORK_POLICY = { mode: "workspace-write", networkAccess: false, webSearch: "disabled" };
34
35
  const PRODUCTION_TOOL_PROPERTIES = {
36
+ recording: WAKE_MOMENT_RECORDING_SCHEMA,
35
37
  attention: { type: "object", additionalProperties: false, properties: { maxBatchMessages: { type: "integer", minimum: 1, maximum: 32 }, maxBatchBytes: { type: "integer", minimum: 1024, maximum: 12000 }, maxExecutions: { type: "integer", minimum: 1, maximum: 9007199254740991 }, maxTokens: { type: "integer", minimum: 1, maximum: 9007199254740991 } } },
36
38
  mcp: { type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["name", "transport", "args", "env", "tools"], properties: {
37
39
  name: { type: "string", minLength: 1, maxLength: ORGANIZATION_RUNTIME_MAX_STRING_CODEPOINTS }, transport: { enum: ["stdio", "sse", "streamable_http"] },
@@ -1,4 +1,4 @@
1
- export declare const RUNTIME_CONTRACT_MANIFEST_VERSION: "noopolis.daimon.runtime-contract-manifest.v3";
1
+ export declare const RUNTIME_CONTRACT_MANIFEST_VERSION: "noopolis.daimon.runtime-contract-manifest.v5";
2
2
  export declare const ORGANIZATION_RUNTIME_ACTIVITY_V2_VERSION: "noopolis.daimon.organization-runtime-activity.v2";
3
3
  export declare const ENGINE_CREDENTIAL_MATERIAL: {
4
4
  readonly codex: {
@@ -84,6 +84,36 @@ export declare const GROK_ENGINE_BROKER: {
84
84
  readonly high: "a23724e00d670caee185ba7690d2daa868173e53905cf446f5329666f01ab4e3";
85
85
  };
86
86
  };
87
+ readonly clockedConfigSha256: {
88
+ readonly "grok-4.6": {
89
+ readonly low: "751f1dcd04983e5e5883df5a8fefa04f201e187e5ef1f344d3bf83f950830432";
90
+ readonly medium: "f1406f93a8091eb0c09e07321254a9c783a89b0bbf5548d9613d53a8d087a517";
91
+ readonly high: "203744f6f0dfc0bc80cfb896880497edfd9b3de4dcf33060e8ef4d2ef5f220a7";
92
+ };
93
+ readonly "grok-4.5": {
94
+ readonly low: "3c4f3515b21c1bffb3fb770e2ecb4b918b6c43d5e77c1fd47e1e6698d1fedee7";
95
+ readonly medium: "9117e12b2f3f6fa045799592969cbaae1c2f3b1ea79330badac8655b9b41dd7a";
96
+ readonly high: "907d8967960c342b442d6d256b2585f3c85bd846a78578f596f0b605403d6d34";
97
+ };
98
+ readonly "grok-build": {
99
+ readonly low: "a8c63ba910623a0686930c27db0733f4a2588c7fca9dd7da25c3f18027720ab5";
100
+ readonly medium: "6afcd2b90c0d19794f8c0d22147a0f011946a92e613f89dae98b0ca729313101";
101
+ readonly high: "6efddadc82c38020d3351829e54bb09fa456cd6d76ea1247902794d82a4a3ffa";
102
+ };
103
+ };
104
+ readonly taskClock: {
105
+ readonly preloadPath: "/usr/local/lib/daimon/libfaketime.so.1";
106
+ readonly timestampFilePath: "/run/daimon-engine-broker/task-clock/slot-0/faketime";
107
+ readonly directoryPath: "/run/daimon-engine-broker/task-clock/slot-0";
108
+ readonly rootDirectoryPath: "/run/daimon-engine-broker/task-clock";
109
+ readonly directoryMode: 493;
110
+ readonly fileMode: 420;
111
+ readonly ownerUid: 2100;
112
+ readonly version: "noopolis.daimon.grok-broker-task-clock.v2";
113
+ readonly slotDirectoryPattern: "/run/daimon-engine-broker/task-clock/slot-{slot}";
114
+ readonly slotFilePattern: "/run/daimon-engine-broker/task-clock/slot-{slot}/faketime";
115
+ readonly workerView: "own-directory-visible-sibling-directories-denied";
116
+ };
87
117
  readonly home: {
88
118
  readonly directory: {
89
119
  readonly uid: 0;
@@ -140,9 +170,26 @@ export declare const GROK_ENGINE_BROKER: {
140
170
  readonly capabilityBundleBytes: 8196;
141
171
  readonly outputBytes: 262144;
142
172
  };
143
- readonly controlProtocolVersion: "noopolis.daimon.engine-broker.v2";
173
+ readonly controlProtocolVersion: "noopolis.daimon.engine-broker.v4";
144
174
  readonly turnRecordVersions: readonly ["noopolis.daimon.engine-broker-turn.v1", "noopolis.daimon.engine-broker-turn.v2"];
145
- readonly serviceConfigVersions: readonly ["noopolis.daimon.engine-broker-service.v1", "noopolis.daimon.engine-broker-service.v2"];
175
+ readonly serviceConfigVersions: readonly ["noopolis.daimon.engine-broker-service.v1", "noopolis.daimon.engine-broker-service.v2", "noopolis.daimon.engine-broker-service.v3"];
176
+ readonly slotRouting: {
177
+ readonly key: "slot";
178
+ readonly repeatedAgentIds: true;
179
+ readonly slotEnvironment: "DAIMON_ENGINE_BROKER_SLOT";
180
+ readonly resetRequest: "reset_slot";
181
+ readonly resetResponse: "slot_reset";
182
+ readonly turnStoreDirectory: "slot-{slot}";
183
+ readonly controlCaller: "organization";
184
+ readonly workersMayControl: false;
185
+ };
186
+ readonly runRequestBudget: {
187
+ readonly maximumField: "maxRunRequests";
188
+ readonly storeField: "runRequestStore";
189
+ readonly fileName: "run-requests.json";
190
+ readonly includesInferenceGrants: true;
191
+ readonly countsCredentialRetries: true;
192
+ };
146
193
  readonly turnLimits: {
147
194
  readonly keys: readonly ["maxRequests", "maxTokens", "timeoutMs"];
148
195
  readonly v1Defaults: {
@@ -207,12 +254,12 @@ export declare const GROK_ENGINE_BROKER: {
207
254
  };
208
255
  };
209
256
  };
210
- readonly projectionVersion: "noopolis.daimon.grok-broker-projection.v1";
257
+ readonly projectionVersion: "noopolis.daimon.grok-broker-projection.v3";
211
258
  readonly slotPreflightVersion: "noopolis.daimon.grok-slot-preflight.v2";
212
259
  readonly artifacts: {
213
- readonly sourceSha256: "dd39aacfece496cc6528f6acdb4f1066a848a0fb5b0961f5c70b0ba00440dc24";
214
- readonly x64Sha256: "67e3624d3198e9c59e1ffafa4eca7c895dfe265d5b8bb0614cb547b68b8b93a7";
215
- readonly arm64Sha256: "c07d22225ff968bc289e5ddf0981cdd5d64040eee6e3ea45da7d03e1439dea98";
260
+ readonly sourceSha256: "15836d7ad69f12ef581a6e5b8635c9db43b2177dac609160c0749d3d1fefbaa8";
261
+ readonly x64Sha256: "95aa9c272225e74ff9f45f54dde4bc30aee324e9ba24d8a876db9151c81b454d";
262
+ readonly arm64Sha256: "d0dc1c03197c3e90f09b66ad7c89b4f7b448d06dc84c03b247dce976d6018d6e";
216
263
  };
217
264
  };
218
265
  export declare const AGY_SUBSCRIPTION_REALM: {
@@ -224,8 +271,21 @@ export declare const AGY_SUBSCRIPTION_REALM: {
224
271
  readonly maxUnlockBytes: 4096;
225
272
  };
226
273
  export declare const RUNTIME_CONTRACT_MANIFEST: {
227
- readonly version: "noopolis.daimon.runtime-contract-manifest.v3";
228
- readonly consumedConfigFields: readonly ["version", "host.bindHost", "host.port", "host.controlTokenEnv", "agents[].id", "agents[].name", "agents[].instructions", "agents[].workspacePath", "agents[].runtimeHomePath", "agents[].engine.kind", "agents[].engine.model", "agents[].engine.reasoningEffort", "agents[].engine.codexSandbox", "agents[].schedule.kind", "agents[].schedule.interval_ms", "agents[].schedule.cron", "agents[].schedule.timezone", "agents[].schedule.prompt", "agents[].schedule.jitter_seconds", "agents[].mcp", "agents[].moltnet", "agents[].memory", "agents[].attention"];
274
+ readonly version: "noopolis.daimon.runtime-contract-manifest.v5";
275
+ readonly consumedConfigFields: readonly ["version", "host.bindHost", "host.port", "host.controlTokenEnv", "agents[].id", "agents[].name", "agents[].instructions", "agents[].workspacePath", "agents[].runtimeHomePath", "agents[].engine.kind", "agents[].engine.model", "agents[].engine.reasoningEffort", "agents[].engine.codexSandbox", "agents[].schedule.kind", "agents[].schedule.interval_ms", "agents[].schedule.cron", "agents[].schedule.timezone", "agents[].schedule.prompt", "agents[].schedule.jitter_seconds", "agents[].mcp", "agents[].moltnet", "agents[].memory", "agents[].attention", "agents[].recording"];
276
+ readonly wakeMoments: {
277
+ readonly version: "noopolis.daimon.wake-moment.v1";
278
+ readonly rowsFile: "wake-moments.jsonl";
279
+ readonly snapshotsDirectory: "snapshots";
280
+ readonly completionSuffix: ".complete";
281
+ readonly maxSnapshotRoots: 16;
282
+ readonly maxSnapshotEntries: 200000;
283
+ readonly maxRowBytes: 4194304;
284
+ readonly maxManifestBytes: 134217728;
285
+ readonly captureDeadlineMs: 60000;
286
+ readonly finalizationDeadlineMs: 1000;
287
+ readonly configField: "agents[].recording";
288
+ };
229
289
  readonly organizationRuntimeConfigSchema: {
230
290
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
231
291
  readonly $id: "noopolis.daimon.organization-runtime.v1";
@@ -268,6 +328,44 @@ export declare const RUNTIME_CONTRACT_MANIFEST: {
268
328
  readonly additionalProperties: false;
269
329
  readonly required: readonly ["id", "name", "instructions", "workspacePath", "runtimeHomePath", "engine"];
270
330
  readonly properties: {
331
+ readonly recording: {
332
+ readonly type: "object";
333
+ readonly additionalProperties: false;
334
+ readonly required: readonly ["directory", "keepMs", "snapshots"];
335
+ readonly properties: {
336
+ readonly directory: {
337
+ readonly type: "string";
338
+ readonly pattern: "^/[^\\u0000]*$";
339
+ readonly maxLength: 4096;
340
+ };
341
+ readonly keepMs: {
342
+ readonly type: "integer";
343
+ readonly minimum: 1;
344
+ readonly maximum: 9007199254740991;
345
+ };
346
+ readonly snapshots: {
347
+ readonly type: "array";
348
+ readonly maxItems: 16;
349
+ readonly uniqueItems: true;
350
+ readonly items: {
351
+ readonly type: "object";
352
+ readonly additionalProperties: false;
353
+ readonly required: readonly ["id", "path"];
354
+ readonly properties: {
355
+ readonly id: {
356
+ readonly type: "string";
357
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
358
+ };
359
+ readonly path: {
360
+ readonly type: "string";
361
+ readonly pattern: "^/[^\\u0000]*$";
362
+ readonly maxLength: 4096;
363
+ };
364
+ };
365
+ };
366
+ };
367
+ };
368
+ };
271
369
  readonly attention: {
272
370
  readonly type: "object";
273
371
  readonly additionalProperties: false;
@@ -599,6 +697,44 @@ export declare const RUNTIME_CONTRACT_MANIFEST: {
599
697
  };
600
698
  }];
601
699
  };
700
+ readonly recording: {
701
+ readonly type: "object";
702
+ readonly additionalProperties: false;
703
+ readonly required: readonly ["directory", "keepMs", "snapshots"];
704
+ readonly properties: {
705
+ readonly directory: {
706
+ readonly type: "string";
707
+ readonly pattern: "^/[^\\u0000]*$";
708
+ readonly maxLength: 4096;
709
+ };
710
+ readonly keepMs: {
711
+ readonly type: "integer";
712
+ readonly minimum: 1;
713
+ readonly maximum: 9007199254740991;
714
+ };
715
+ readonly snapshots: {
716
+ readonly type: "array";
717
+ readonly maxItems: 16;
718
+ readonly uniqueItems: true;
719
+ readonly items: {
720
+ readonly type: "object";
721
+ readonly additionalProperties: false;
722
+ readonly required: readonly ["id", "path"];
723
+ readonly properties: {
724
+ readonly id: {
725
+ readonly type: "string";
726
+ readonly pattern: "^[A-Za-z0-9._-]{1,128}$";
727
+ };
728
+ readonly path: {
729
+ readonly type: "string";
730
+ readonly pattern: "^/[^\\u0000]*$";
731
+ readonly maxLength: 4096;
732
+ };
733
+ };
734
+ };
735
+ };
736
+ };
737
+ };
602
738
  readonly attention: {
603
739
  readonly type: "object";
604
740
  readonly additionalProperties: false;
@@ -991,6 +1127,19 @@ export declare const RUNTIME_CONTRACT_MANIFEST: {
991
1127
  };
992
1128
  };
993
1129
  };
1130
+ readonly drain: {
1131
+ readonly type: "object";
1132
+ readonly additionalProperties: false;
1133
+ readonly required: readonly ["state", "since"];
1134
+ readonly properties: {
1135
+ readonly state: {
1136
+ readonly enum: readonly ["draining", "drained"];
1137
+ };
1138
+ readonly since: {
1139
+ readonly type: "string";
1140
+ };
1141
+ };
1142
+ };
994
1143
  };
995
1144
  };
996
1145
  readonly workBlockedSchema: {
@@ -1011,6 +1160,17 @@ export declare const RUNTIME_CONTRACT_MANIFEST: {
1011
1160
  };
1012
1161
  };
1013
1162
  };
1163
+ readonly operatorDrain: {
1164
+ readonly drainRoute: "POST /v2/drain";
1165
+ readonly resumeRoute: "POST /v2/resume";
1166
+ readonly authorization: "control-bearer";
1167
+ readonly response: "workAvailabilityResponseSchema";
1168
+ readonly blockedReason: "operator_stop";
1169
+ readonly queuedWakes: "retained";
1170
+ readonly runningTurns: "finish";
1171
+ readonly scope: "process";
1172
+ readonly resumeClearsOperatorStop: false;
1173
+ };
1014
1174
  readonly supportedEngineKinds: readonly ["agy", "codex", "grok"];
1015
1175
  readonly engineCredentialMaterial: {
1016
1176
  readonly codex: {
@@ -1096,6 +1256,36 @@ export declare const RUNTIME_CONTRACT_MANIFEST: {
1096
1256
  readonly high: "a23724e00d670caee185ba7690d2daa868173e53905cf446f5329666f01ab4e3";
1097
1257
  };
1098
1258
  };
1259
+ readonly clockedConfigSha256: {
1260
+ readonly "grok-4.6": {
1261
+ readonly low: "751f1dcd04983e5e5883df5a8fefa04f201e187e5ef1f344d3bf83f950830432";
1262
+ readonly medium: "f1406f93a8091eb0c09e07321254a9c783a89b0bbf5548d9613d53a8d087a517";
1263
+ readonly high: "203744f6f0dfc0bc80cfb896880497edfd9b3de4dcf33060e8ef4d2ef5f220a7";
1264
+ };
1265
+ readonly "grok-4.5": {
1266
+ readonly low: "3c4f3515b21c1bffb3fb770e2ecb4b918b6c43d5e77c1fd47e1e6698d1fedee7";
1267
+ readonly medium: "9117e12b2f3f6fa045799592969cbaae1c2f3b1ea79330badac8655b9b41dd7a";
1268
+ readonly high: "907d8967960c342b442d6d256b2585f3c85bd846a78578f596f0b605403d6d34";
1269
+ };
1270
+ readonly "grok-build": {
1271
+ readonly low: "a8c63ba910623a0686930c27db0733f4a2588c7fca9dd7da25c3f18027720ab5";
1272
+ readonly medium: "6afcd2b90c0d19794f8c0d22147a0f011946a92e613f89dae98b0ca729313101";
1273
+ readonly high: "6efddadc82c38020d3351829e54bb09fa456cd6d76ea1247902794d82a4a3ffa";
1274
+ };
1275
+ };
1276
+ readonly taskClock: {
1277
+ readonly preloadPath: "/usr/local/lib/daimon/libfaketime.so.1";
1278
+ readonly timestampFilePath: "/run/daimon-engine-broker/task-clock/slot-0/faketime";
1279
+ readonly directoryPath: "/run/daimon-engine-broker/task-clock/slot-0";
1280
+ readonly rootDirectoryPath: "/run/daimon-engine-broker/task-clock";
1281
+ readonly directoryMode: 493;
1282
+ readonly fileMode: 420;
1283
+ readonly ownerUid: 2100;
1284
+ readonly version: "noopolis.daimon.grok-broker-task-clock.v2";
1285
+ readonly slotDirectoryPattern: "/run/daimon-engine-broker/task-clock/slot-{slot}";
1286
+ readonly slotFilePattern: "/run/daimon-engine-broker/task-clock/slot-{slot}/faketime";
1287
+ readonly workerView: "own-directory-visible-sibling-directories-denied";
1288
+ };
1099
1289
  readonly home: {
1100
1290
  readonly directory: {
1101
1291
  readonly uid: 0;
@@ -1152,9 +1342,26 @@ export declare const RUNTIME_CONTRACT_MANIFEST: {
1152
1342
  readonly capabilityBundleBytes: 8196;
1153
1343
  readonly outputBytes: 262144;
1154
1344
  };
1155
- readonly controlProtocolVersion: "noopolis.daimon.engine-broker.v2";
1345
+ readonly controlProtocolVersion: "noopolis.daimon.engine-broker.v4";
1156
1346
  readonly turnRecordVersions: readonly ["noopolis.daimon.engine-broker-turn.v1", "noopolis.daimon.engine-broker-turn.v2"];
1157
- readonly serviceConfigVersions: readonly ["noopolis.daimon.engine-broker-service.v1", "noopolis.daimon.engine-broker-service.v2"];
1347
+ readonly serviceConfigVersions: readonly ["noopolis.daimon.engine-broker-service.v1", "noopolis.daimon.engine-broker-service.v2", "noopolis.daimon.engine-broker-service.v3"];
1348
+ readonly slotRouting: {
1349
+ readonly key: "slot";
1350
+ readonly repeatedAgentIds: true;
1351
+ readonly slotEnvironment: "DAIMON_ENGINE_BROKER_SLOT";
1352
+ readonly resetRequest: "reset_slot";
1353
+ readonly resetResponse: "slot_reset";
1354
+ readonly turnStoreDirectory: "slot-{slot}";
1355
+ readonly controlCaller: "organization";
1356
+ readonly workersMayControl: false;
1357
+ };
1358
+ readonly runRequestBudget: {
1359
+ readonly maximumField: "maxRunRequests";
1360
+ readonly storeField: "runRequestStore";
1361
+ readonly fileName: "run-requests.json";
1362
+ readonly includesInferenceGrants: true;
1363
+ readonly countsCredentialRetries: true;
1364
+ };
1158
1365
  readonly turnLimits: {
1159
1366
  readonly keys: readonly ["maxRequests", "maxTokens", "timeoutMs"];
1160
1367
  readonly v1Defaults: {
@@ -1219,12 +1426,12 @@ export declare const RUNTIME_CONTRACT_MANIFEST: {
1219
1426
  };
1220
1427
  };
1221
1428
  };
1222
- readonly projectionVersion: "noopolis.daimon.grok-broker-projection.v1";
1429
+ readonly projectionVersion: "noopolis.daimon.grok-broker-projection.v3";
1223
1430
  readonly slotPreflightVersion: "noopolis.daimon.grok-slot-preflight.v2";
1224
1431
  readonly artifacts: {
1225
- readonly sourceSha256: "dd39aacfece496cc6528f6acdb4f1066a848a0fb5b0961f5c70b0ba00440dc24";
1226
- readonly x64Sha256: "67e3624d3198e9c59e1ffafa4eca7c895dfe265d5b8bb0614cb547b68b8b93a7";
1227
- readonly arm64Sha256: "c07d22225ff968bc289e5ddf0981cdd5d64040eee6e3ea45da7d03e1439dea98";
1432
+ readonly sourceSha256: "15836d7ad69f12ef581a6e5b8635c9db43b2177dac609160c0749d3d1fefbaa8";
1433
+ readonly x64Sha256: "95aa9c272225e74ff9f45f54dde4bc30aee324e9ba24d8a876db9151c81b454d";
1434
+ readonly arm64Sha256: "d0dc1c03197c3e90f09b66ad7c89b4f7b448d06dc84c03b247dce976d6018d6e";
1228
1435
  };
1229
1436
  };
1230
1437
  readonly agySubscriptionRealm: {
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeContractManifest.d.ts","sourceRoot":"","sources":["../../src/contracts/runtimeContractManifest.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,iCAAiC,EAAG,8CAAuD,CAAC;AACzG,eAAO,MAAM,wCAAwC,EAAG,kDAA2D,CAAC;AACpH,eAAO,MAAM,0BAA0B;;;;;;;;CAE7B,CAAC;AACX,eAAO,MAAM,uBAAuB;;;;;;;;CAQ1B,CAAC;AACX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHrB,CAAC;AACX,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AASX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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