spawnfile 0.1.33 → 0.1.35

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 (606) hide show
  1. package/README.md +1 -1
  2. package/dist/audit/readAudit.d.ts +3 -3
  3. package/dist/auth/profileStore.d.ts +3 -1
  4. package/dist/auth/profileStore.js +31 -30
  5. package/dist/auth/trainingAuth.d.ts +2 -5
  6. package/dist/auth/types.d.ts +16 -0
  7. package/dist/cli/authCommands.d.ts +1 -1
  8. package/dist/cli/authCommands.js +21 -1
  9. package/dist/cli/devCommands.d.ts +1 -1
  10. package/dist/cli/devCommands.js +0 -66
  11. package/dist/cli/runCli.d.ts +3 -4
  12. package/dist/cli/runCli.js +4 -3
  13. package/dist/cli/trainCommand.js +9 -15
  14. package/dist/cli/trainingBooted.d.ts +9 -0
  15. package/dist/cli/trainingBooted.js +45 -0
  16. package/dist/cli/trainingExecution.d.ts +4 -7
  17. package/dist/cli/trainingExecution.js +4 -32
  18. package/dist/compiler/containerArtifacts.js +0 -5
  19. package/dist/compiler/containerBackedMountRender.js +5 -1
  20. package/dist/compiler/containerDaimonBrokerRender.d.ts +5 -50
  21. package/dist/compiler/containerDaimonBrokerRender.js +19 -90
  22. package/dist/compiler/containerDaimonGatewayRender.d.ts +50 -0
  23. package/dist/compiler/containerDaimonGatewayRender.js +161 -0
  24. package/dist/compiler/containerDaimonGrokWorkerProvisioning.d.ts +2 -10
  25. package/dist/compiler/containerDaimonGrokWorkerProvisioning.js +13 -25
  26. package/dist/compiler/containerDaimonGrokWorkerRender.d.ts +11 -49
  27. package/dist/compiler/containerDaimonGrokWorkerRender.js +15 -39
  28. package/dist/compiler/containerDaimonStartupSupervision.d.ts +8 -0
  29. package/dist/compiler/containerDaimonStartupSupervision.js +39 -0
  30. package/dist/compiler/containerDaimonUidEntrypointRender.d.ts +1 -2
  31. package/dist/compiler/containerDaimonUidEntrypointRender.js +29 -47
  32. package/dist/compiler/containerRuntimeReadinessRender.js +1 -1
  33. package/dist/compiler/memoryArtifacts.js +0 -1
  34. package/dist/compiler/moltnetArtifacts.js +1 -17
  35. package/dist/compiler/moltnetClientConfig.js +1 -1
  36. package/dist/compiler/moltnetRuntimeConfig.js +0 -10
  37. package/dist/compiler/runProject.d.ts +3 -0
  38. package/dist/compiler/runProject.js +12 -5
  39. package/dist/compiler/runProjectAuth.js +6 -18
  40. package/dist/compiler/training/contract.d.ts +0 -2
  41. package/dist/compiler/training/contract.js +0 -2
  42. package/dist/compiler/training/execution.d.ts +1 -128
  43. package/dist/compiler/training/execution.js +7 -68
  44. package/dist/compiler/training/index.d.ts +0 -8
  45. package/dist/compiler/training/index.js +0 -7
  46. package/dist/compiler/training/output.d.ts +1 -0
  47. package/dist/compiler/training/output.js +1 -1
  48. package/dist/compiler/training/rewind/contract.d.ts +6 -6
  49. package/dist/compiler/training/trial/boot.d.ts +72 -0
  50. package/dist/compiler/training/trial/boot.js +225 -0
  51. package/dist/compiler/training/trial/docker.d.ts +10 -0
  52. package/dist/compiler/training/trial/docker.js +22 -0
  53. package/dist/compiler/training/trial/gateway.d.ts +47 -0
  54. package/dist/compiler/training/trial/gateway.js +113 -0
  55. package/dist/compiler/training/trial/homeLogin.d.ts +31 -0
  56. package/dist/compiler/training/trial/homeLogin.js +69 -0
  57. package/dist/compiler/training/trial/index.d.ts +8 -0
  58. package/dist/compiler/training/trial/index.js +8 -0
  59. package/dist/compiler/training/trial/judge.d.ts +15 -0
  60. package/dist/compiler/training/trial/judge.js +42 -0
  61. package/dist/compiler/training/trial/launcher.d.ts +47 -0
  62. package/dist/compiler/training/trial/launcher.js +193 -0
  63. package/dist/compiler/training/trial/login.d.ts +35 -0
  64. package/dist/compiler/training/trial/login.js +85 -0
  65. package/dist/compiler/training/trial/project.d.ts +11 -0
  66. package/dist/compiler/training/trial/project.js +31 -0
  67. package/dist/compiler/training/trial/realmTurns.d.ts +20 -0
  68. package/dist/compiler/training/trial/realmTurns.js +69 -0
  69. package/dist/compiler/upReceipt.d.ts +2 -17
  70. package/dist/compiler/upReceipt.js +2 -17
  71. package/dist/deployment/artifactsExportPlan.js +2 -18
  72. package/dist/deployment/privateArtifactsExport.js +1 -1
  73. package/dist/dev/docker.d.ts +0 -5
  74. package/dist/dev/docker.js +0 -46
  75. package/dist/dev/index.d.ts +0 -1
  76. package/dist/dev/index.js +0 -1
  77. package/dist/dev/project.d.ts +0 -16
  78. package/dist/dev/project.js +1 -128
  79. package/dist/distribution/distributionReportSchema.js +1 -1
  80. package/dist/distribution/imageRuntimeAuth.js +3 -2
  81. package/dist/manifest/renderSpawnfile.js +2 -1
  82. package/dist/release/drainControl.d.ts +5 -19
  83. package/dist/release/drainControl.js +12 -67
  84. package/dist/report/types.d.ts +3 -6
  85. package/dist/runtime/common.d.ts +1 -1
  86. package/dist/runtime/common.js +1 -1
  87. package/dist/runtime/container.d.ts +2 -2
  88. package/dist/runtime/container.js +1 -39
  89. package/dist/runtime/daimon/config.js +8 -14
  90. package/dist/runtime/daimon/contractManifest.js +0 -1
  91. package/dist/runtime/daimon/contractManifestSchema.js +0 -1
  92. package/dist/runtime/daimon/control.d.ts +31 -0
  93. package/dist/runtime/daimon/control.js +83 -0
  94. package/dist/runtime/daimon/engineDescriptorSchema.js +0 -1
  95. package/dist/runtime/daimon/engineDescriptors.generated.d.ts +1 -1
  96. package/dist/runtime/daimon/engineDescriptors.generated.js +1 -2
  97. package/dist/runtime/daimon/engines.js +0 -1
  98. package/dist/runtime/daimon/gateway.d.ts +62 -0
  99. package/dist/runtime/daimon/gateway.js +77 -0
  100. package/dist/runtime/daimon/grokWorkerContract.d.ts +0 -5
  101. package/dist/runtime/daimon/grokWorkerContract.js +1 -13
  102. package/dist/runtime/daimon/index.d.ts +2 -0
  103. package/dist/runtime/daimon/index.js +2 -1
  104. package/dist/runtime/daimon/memory.js +1 -1
  105. package/dist/runtime/daimon/packageName.js +0 -1
  106. package/dist/runtime/daimon/runAuth.js +15 -4
  107. package/dist/runtime/daimon/runtimeIdentity.d.ts +2 -0
  108. package/dist/runtime/daimon/runtimeIdentity.js +2 -0
  109. package/dist/runtime/daimon/subscriptionRealms.d.ts +27 -3
  110. package/dist/runtime/daimon/subscriptionRealms.js +35 -13
  111. package/dist/runtime/daimon/testHelpers.d.ts +2 -0
  112. package/dist/runtime/{pi → daimon}/testHelpers.js +3 -3
  113. package/dist/runtime/daimon/training/booted/adapter.d.ts +50 -0
  114. package/dist/runtime/daimon/training/booted/adapter.js +60 -0
  115. package/dist/runtime/daimon/training/booted/adapter.js.map +1 -0
  116. package/dist/runtime/daimon/training/booted/index.d.ts +4 -0
  117. package/dist/runtime/daimon/training/booted/index.js +3 -0
  118. package/dist/runtime/daimon/training/booted/index.js.map +1 -0
  119. package/dist/runtime/daimon/training/booted/judge.d.ts +39 -0
  120. package/dist/runtime/daimon/training/booted/judge.js +122 -0
  121. package/dist/runtime/daimon/training/booted/judge.js.map +1 -0
  122. package/dist/runtime/daimon/training/index.d.ts +5 -0
  123. package/dist/runtime/daimon/training/index.js +8 -4
  124. package/dist/runtime/daimon/training/index.js.map +1 -1
  125. package/dist/runtime/daimon/wakeMoments.js +0 -1
  126. package/dist/runtime/install.js +0 -21
  127. package/dist/runtime/registry.js +0 -2
  128. package/dist/runtime/trainingGraderProviders.js +10 -4
  129. package/dist/runtime/trainingProviders.d.ts +5 -3
  130. package/dist/runtime/trainingProviders.js +21 -24
  131. package/dist/runtime/trainingSubjects.d.ts +0 -121
  132. package/dist/runtime/trainingSubjects.js +2 -13
  133. package/dist/runtime/types.d.ts +1 -8
  134. package/dist/runtime/usageRequestLedger.d.ts +2 -0
  135. package/dist/runtime/usageRequestLedger.js +3 -1
  136. package/dist/shared/errors.js +0 -1
  137. package/dist/shared/trainingLegacy/trainingLegacyHashDomains.d.ts +1 -0
  138. package/dist/shared/trainingLegacy/trainingLegacyHashDomains.js +1 -0
  139. package/dist/shared/trainingLegacy/trainingLegacyHashDomains.js.map +1 -1
  140. package/dist/status/lifecycleProbes.js +3 -6
  141. package/dist/status/moltnetWiringProbes.js +1 -17
  142. package/dist/training/subjects/index.d.ts +0 -1
  143. package/dist/training/subjects/index.js +0 -1
  144. package/dist/training/subjects/index.js.map +1 -1
  145. package/examples/README.md +0 -1
  146. package/examples/daimon-org/agents/mapper/Spawnfile +4 -1
  147. package/examples/daimon-org/teams/review/agents/reviewer/Spawnfile +4 -1
  148. package/examples/jungian-daimon-org/teams/luna/agents/animus/Spawnfile +5 -8
  149. package/examples/jungian-daimon-org/teams/luna/agents/representative/Spawnfile +1 -1
  150. package/examples/jungian-daimon-org/teams/luna/agents/shadow/Spawnfile +5 -8
  151. package/examples/jungian-daimon-org/teams/selene/agents/animus/Spawnfile +5 -8
  152. package/examples/jungian-daimon-org/teams/selene/agents/representative/Spawnfile +5 -8
  153. package/examples/jungian-daimon-org/teams/selene/agents/shadow/Spawnfile +1 -1
  154. package/examples/mixed-runtime-org/agents/localist/Spawnfile +7 -7
  155. package/package.json +4 -13
  156. package/runtimes.yaml +5 -15
  157. package/dist/compiler/containerDaimonGrokTaskClock.d.ts +0 -5
  158. package/dist/compiler/containerDaimonGrokTaskClock.js +0 -29
  159. package/dist/compiler/daimonTelemetryArtifacts.d.ts +0 -22
  160. package/dist/compiler/daimonTelemetryArtifacts.js +0 -56
  161. package/dist/compiler/training/broker/clockProbe.d.ts +0 -6
  162. package/dist/compiler/training/broker/clockProbe.js +0 -27
  163. package/dist/compiler/training/broker/declaration.d.ts +0 -54
  164. package/dist/compiler/training/broker/declaration.js +0 -70
  165. package/dist/compiler/training/broker/entrypoint.d.ts +0 -39
  166. package/dist/compiler/training/broker/entrypoint.js +0 -124
  167. package/dist/compiler/training/broker/evaluatorSecrets.d.ts +0 -2
  168. package/dist/compiler/training/broker/evaluatorSecrets.js +0 -62
  169. package/dist/compiler/training/broker/index.d.ts +0 -12
  170. package/dist/compiler/training/broker/index.js +0 -12
  171. package/dist/compiler/training/broker/main.d.ts +0 -2
  172. package/dist/compiler/training/broker/main.js +0 -14
  173. package/dist/compiler/training/broker/paths.d.ts +0 -236
  174. package/dist/compiler/training/broker/paths.js +0 -249
  175. package/dist/compiler/training/broker/processes.d.ts +0 -51
  176. package/dist/compiler/training/broker/processes.js +0 -102
  177. package/dist/compiler/training/broker/projection.d.ts +0 -61
  178. package/dist/compiler/training/broker/projection.js +0 -109
  179. package/dist/compiler/training/broker/provisioning.d.ts +0 -78
  180. package/dist/compiler/training/broker/provisioning.js +0 -231
  181. package/dist/compiler/training/broker/receipt.d.ts +0 -77
  182. package/dist/compiler/training/broker/receipt.js +0 -110
  183. package/dist/compiler/training/broker/recycleClient.d.ts +0 -33
  184. package/dist/compiler/training/broker/recycleClient.js +0 -112
  185. package/dist/compiler/training/broker/registration.d.ts +0 -46
  186. package/dist/compiler/training/broker/registration.js +0 -113
  187. package/dist/compiler/training/broker/reset.d.ts +0 -9
  188. package/dist/compiler/training/broker/reset.js +0 -71
  189. package/dist/compiler/training/broker/rootScript.d.ts +0 -32
  190. package/dist/compiler/training/broker/rootScript.js +0 -33
  191. package/dist/compiler/training/broker/runtime.d.ts +0 -22
  192. package/dist/compiler/training/broker/runtime.js +0 -128
  193. package/dist/compiler/training/broker/seccompRoutes.d.ts +0 -31
  194. package/dist/compiler/training/broker/seccompRoutes.js +0 -36
  195. package/dist/compiler/training/broker/supervisor.d.ts +0 -108
  196. package/dist/compiler/training/broker/supervisor.js +0 -172
  197. package/dist/compiler/training/broker/taskClock.d.ts +0 -5
  198. package/dist/compiler/training/broker/taskClock.js +0 -41
  199. package/dist/compiler/training/container/contract.d.ts +0 -54
  200. package/dist/compiler/training/container/contract.js +0 -52
  201. package/dist/compiler/training/container/evaluators.d.ts +0 -48
  202. package/dist/compiler/training/container/evaluators.js +0 -50
  203. package/dist/compiler/training/container/grokWriteback.d.ts +0 -8
  204. package/dist/compiler/training/container/grokWriteback.js +0 -26
  205. package/dist/compiler/training/container/index.d.ts +0 -5
  206. package/dist/compiler/training/container/index.js +0 -3
  207. package/dist/compiler/training/container/launch.d.ts +0 -21
  208. package/dist/compiler/training/container/launch.js +0 -280
  209. package/dist/compiler/training/container/nativeSlots.d.ts +0 -14
  210. package/dist/compiler/training/container/nativeSlots.js +0 -13
  211. package/dist/compiler/training/container/outputCopy.d.ts +0 -2
  212. package/dist/compiler/training/container/outputCopy.js +0 -72
  213. package/dist/compiler/training/container/outputVolume.d.ts +0 -28
  214. package/dist/compiler/training/container/outputVolume.js +0 -185
  215. package/dist/compiler/training/container/prepare.d.ts +0 -10
  216. package/dist/compiler/training/container/prepare.js +0 -125
  217. package/dist/compiler/training/container/process.d.ts +0 -14
  218. package/dist/compiler/training/container/process.js +0 -70
  219. package/dist/compiler/training/container/security.d.ts +0 -38
  220. package/dist/compiler/training/container/security.js +0 -68
  221. package/dist/compiler/training/container/subjectIsolation.d.ts +0 -5
  222. package/dist/compiler/training/container/subjectIsolation.js +0 -16
  223. package/dist/compiler/training/preparation/assets/Dockerfile +0 -100
  224. package/dist/compiler/training/preparation/assets/package-lock.json +0 -5483
  225. package/dist/compiler/training/preparation/broker.d.ts +0 -30
  226. package/dist/compiler/training/preparation/broker.js +0 -68
  227. package/dist/compiler/training/preparation/contextModes.d.ts +0 -12
  228. package/dist/compiler/training/preparation/contextModes.js +0 -38
  229. package/dist/compiler/training/preparation/contract.d.ts +0 -203
  230. package/dist/compiler/training/preparation/contract.js +0 -114
  231. package/dist/compiler/training/preparation/copyAssets.d.ts +0 -1
  232. package/dist/compiler/training/preparation/copyAssets.js +0 -8
  233. package/dist/compiler/training/preparation/daimonParent.d.ts +0 -42
  234. package/dist/compiler/training/preparation/daimonParent.js +0 -114
  235. package/dist/compiler/training/preparation/files.d.ts +0 -29
  236. package/dist/compiler/training/preparation/files.js +0 -146
  237. package/dist/compiler/training/preparation/image.d.ts +0 -28
  238. package/dist/compiler/training/preparation/image.js +0 -105
  239. package/dist/compiler/training/preparation/index.d.ts +0 -3
  240. package/dist/compiler/training/preparation/index.js +0 -2
  241. package/dist/compiler/training/preparation/inputs.d.ts +0 -24
  242. package/dist/compiler/training/preparation/inputs.js +0 -101
  243. package/dist/compiler/training/preparation/prepare.d.ts +0 -38
  244. package/dist/compiler/training/preparation/prepare.js +0 -224
  245. package/dist/compiler/training/preparation/scratch.d.ts +0 -8
  246. package/dist/compiler/training/preparation/scratch.js +0 -114
  247. package/dist/compiler/training/repair/compatibility.d.ts +0 -11
  248. package/dist/compiler/training/repair/compatibility.js +0 -45
  249. package/dist/compiler/training/repair/contract.d.ts +0 -832
  250. package/dist/compiler/training/repair/contract.js +0 -34
  251. package/dist/compiler/training/repair/index.d.ts +0 -3
  252. package/dist/compiler/training/repair/index.js +0 -3
  253. package/dist/compiler/training/repair/prepare.d.ts +0 -378
  254. package/dist/compiler/training/repair/prepare.js +0 -84
  255. package/dist/compiler/training/repair/witness.d.ts +0 -348
  256. package/dist/compiler/training/repair/witness.js +0 -62
  257. package/dist/compiler/training/subjectDeclaration.d.ts +0 -26
  258. package/dist/compiler/training/subjectDeclaration.js +0 -54
  259. package/dist/compiler/training/subjectLease.d.ts +0 -115
  260. package/dist/compiler/training/subjectLease.js +0 -179
  261. package/dist/dev/activity.d.ts +0 -14
  262. package/dist/dev/activity.js +0 -48
  263. package/dist/runtime/codex-exec/training/adapter.d.ts +0 -13
  264. package/dist/runtime/codex-exec/training/adapter.js +0 -101
  265. package/dist/runtime/codex-exec/training/adapter.js.map +0 -1
  266. package/dist/runtime/codex-exec/training/environment.d.ts +0 -3
  267. package/dist/runtime/codex-exec/training/environment.js +0 -26
  268. package/dist/runtime/codex-exec/training/environment.js.map +0 -1
  269. package/dist/runtime/codex-exec/training/index.d.ts +0 -2
  270. package/dist/runtime/codex-exec/training/index.js +0 -3
  271. package/dist/runtime/codex-exec/training/index.js.map +0 -1
  272. package/dist/runtime/codex-exec/training/protocol.d.ts +0 -15
  273. package/dist/runtime/codex-exec/training/protocol.js +0 -102
  274. package/dist/runtime/codex-exec/training/protocol.js.map +0 -1
  275. package/dist/runtime/codex-exec/training/providers/codex-subscription/index.d.ts +0 -1
  276. package/dist/runtime/codex-exec/training/providers/codex-subscription/index.js +0 -2
  277. package/dist/runtime/codex-exec/training/providers/codex-subscription/index.js.map +0 -1
  278. package/dist/runtime/codex-exec/training/providers/codex-subscription/protocol.d.ts +0 -17
  279. package/dist/runtime/codex-exec/training/providers/codex-subscription/protocol.js +0 -80
  280. package/dist/runtime/codex-exec/training/providers/codex-subscription/protocol.js.map +0 -1
  281. package/dist/runtime/codex-exec/training/providers/codex-subscription/provider.d.ts +0 -12
  282. package/dist/runtime/codex-exec/training/providers/codex-subscription/provider.js +0 -125
  283. package/dist/runtime/codex-exec/training/providers/codex-subscription/provider.js.map +0 -1
  284. package/dist/runtime/codex-exec/training/providers/codex-subscription/strict-schema.d.ts +0 -6
  285. package/dist/runtime/codex-exec/training/providers/codex-subscription/strict-schema.js +0 -219
  286. package/dist/runtime/codex-exec/training/providers/codex-subscription/strict-schema.js.map +0 -1
  287. package/dist/runtime/daimon/contractManifest.js.map +0 -1
  288. package/dist/runtime/daimon/contractManifestSchema.js.map +0 -1
  289. package/dist/runtime/daimon/engineDescriptorSchema.js.map +0 -1
  290. package/dist/runtime/daimon/engineDescriptors.generated.js.map +0 -1
  291. package/dist/runtime/daimon/engines.js.map +0 -1
  292. package/dist/runtime/daimon/index.js.map +0 -1
  293. package/dist/runtime/daimon/packageName.js.map +0 -1
  294. package/dist/runtime/daimon/training/legacy/adapter.d.ts +0 -11
  295. package/dist/runtime/daimon/training/legacy/adapter.js +0 -175
  296. package/dist/runtime/daimon/training/legacy/adapter.js.map +0 -1
  297. package/dist/runtime/daimon/training/legacy/index.d.ts +0 -2
  298. package/dist/runtime/daimon/training/legacy/index.js +0 -3
  299. package/dist/runtime/daimon/training/legacy/index.js.map +0 -1
  300. package/dist/runtime/daimon/training/legacy/public.d.ts +0 -49
  301. package/dist/runtime/daimon/training/legacy/public.js +0 -16
  302. package/dist/runtime/daimon/training/legacy/public.js.map +0 -1
  303. package/dist/runtime/daimon/training/native/adapter.d.ts +0 -18
  304. package/dist/runtime/daimon/training/native/adapter.js +0 -252
  305. package/dist/runtime/daimon/training/native/adapter.js.map +0 -1
  306. package/dist/runtime/daimon/training/native/admission.d.ts +0 -7
  307. package/dist/runtime/daimon/training/native/admission.js +0 -52
  308. package/dist/runtime/daimon/training/native/admission.js.map +0 -1
  309. package/dist/runtime/daimon/training/native/child/arguments.d.ts +0 -16
  310. package/dist/runtime/daimon/training/native/child/arguments.js +0 -70
  311. package/dist/runtime/daimon/training/native/child/arguments.js.map +0 -1
  312. package/dist/runtime/daimon/training/native/child/deferred-trial.d.ts +0 -24
  313. package/dist/runtime/daimon/training/native/child/deferred-trial.js +0 -63
  314. package/dist/runtime/daimon/training/native/child/deferred-trial.js.map +0 -1
  315. package/dist/runtime/daimon/training/native/child/diagnostics.d.ts +0 -58
  316. package/dist/runtime/daimon/training/native/child/diagnostics.js +0 -215
  317. package/dist/runtime/daimon/training/native/child/diagnostics.js.map +0 -1
  318. package/dist/runtime/daimon/training/native/child/fixture.d.ts +0 -16
  319. package/dist/runtime/daimon/training/native/child/fixture.js +0 -159
  320. package/dist/runtime/daimon/training/native/child/fixture.js.map +0 -1
  321. package/dist/runtime/daimon/training/native/child/grok.d.ts +0 -14
  322. package/dist/runtime/daimon/training/native/child/grok.js +0 -47
  323. package/dist/runtime/daimon/training/native/child/grok.js.map +0 -1
  324. package/dist/runtime/daimon/training/native/child/index.d.ts +0 -7
  325. package/dist/runtime/daimon/training/native/child/index.js +0 -5
  326. package/dist/runtime/daimon/training/native/child/index.js.map +0 -1
  327. package/dist/runtime/daimon/training/native/child/lifecycle.d.ts +0 -40
  328. package/dist/runtime/daimon/training/native/child/lifecycle.js +0 -400
  329. package/dist/runtime/daimon/training/native/child/lifecycle.js.map +0 -1
  330. package/dist/runtime/daimon/training/native/child/probe.d.ts +0 -2
  331. package/dist/runtime/daimon/training/native/child/probe.js +0 -11
  332. package/dist/runtime/daimon/training/native/child/probe.js.map +0 -1
  333. package/dist/runtime/daimon/training/native/child/sandbox.d.ts +0 -4
  334. package/dist/runtime/daimon/training/native/child/sandbox.js +0 -76
  335. package/dist/runtime/daimon/training/native/child/sandbox.js.map +0 -1
  336. package/dist/runtime/daimon/training/native/child/types.d.ts +0 -15
  337. package/dist/runtime/daimon/training/native/child/types.js +0 -2
  338. package/dist/runtime/daimon/training/native/child/types.js.map +0 -1
  339. package/dist/runtime/daimon/training/native/container/docker.d.ts +0 -29
  340. package/dist/runtime/daimon/training/native/container/docker.js +0 -105
  341. package/dist/runtime/daimon/training/native/container/docker.js.map +0 -1
  342. package/dist/runtime/daimon/training/native/container/grok-slot.d.ts +0 -22
  343. package/dist/runtime/daimon/training/native/container/grok-slot.js +0 -38
  344. package/dist/runtime/daimon/training/native/container/grok-slot.js.map +0 -1
  345. package/dist/runtime/daimon/training/native/container/index.d.ts +0 -6
  346. package/dist/runtime/daimon/training/native/container/index.js +0 -6
  347. package/dist/runtime/daimon/training/native/container/index.js.map +0 -1
  348. package/dist/runtime/daimon/training/native/container/lifecycle.d.ts +0 -8
  349. package/dist/runtime/daimon/training/native/container/lifecycle.js +0 -111
  350. package/dist/runtime/daimon/training/native/container/lifecycle.js.map +0 -1
  351. package/dist/runtime/daimon/training/native/container/manifest.d.ts +0 -17
  352. package/dist/runtime/daimon/training/native/container/manifest.js +0 -164
  353. package/dist/runtime/daimon/training/native/container/manifest.js.map +0 -1
  354. package/dist/runtime/daimon/training/native/container/native-preflight.d.ts +0 -8
  355. package/dist/runtime/daimon/training/native/container/native-preflight.js +0 -40
  356. package/dist/runtime/daimon/training/native/container/native-preflight.js.map +0 -1
  357. package/dist/runtime/daimon/training/native/container/preflight.d.ts +0 -15
  358. package/dist/runtime/daimon/training/native/container/preflight.js +0 -79
  359. package/dist/runtime/daimon/training/native/container/preflight.js.map +0 -1
  360. package/dist/runtime/daimon/training/native/container/slot.d.ts +0 -4
  361. package/dist/runtime/daimon/training/native/container/slot.js +0 -58
  362. package/dist/runtime/daimon/training/native/container/slot.js.map +0 -1
  363. package/dist/runtime/daimon/training/native/external.d.ts +0 -37
  364. package/dist/runtime/daimon/training/native/external.js +0 -75
  365. package/dist/runtime/daimon/training/native/external.js.map +0 -1
  366. package/dist/runtime/daimon/training/native/grants/authority.d.ts +0 -36
  367. package/dist/runtime/daimon/training/native/grants/authority.js +0 -49
  368. package/dist/runtime/daimon/training/native/grants/authority.js.map +0 -1
  369. package/dist/runtime/daimon/training/native/grants/index.d.ts +0 -2
  370. package/dist/runtime/daimon/training/native/grants/index.js +0 -3
  371. package/dist/runtime/daimon/training/native/grants/index.js.map +0 -1
  372. package/dist/runtime/daimon/training/native/grants/pins.d.ts +0 -30
  373. package/dist/runtime/daimon/training/native/grants/pins.js +0 -20
  374. package/dist/runtime/daimon/training/native/grants/pins.js.map +0 -1
  375. package/dist/runtime/daimon/training/native/grants/test-socket.d.ts +0 -6
  376. package/dist/runtime/daimon/training/native/grants/test-socket.js +0 -35
  377. package/dist/runtime/daimon/training/native/grants/test-socket.js.map +0 -1
  378. package/dist/runtime/daimon/training/native/grok-fixtures.d.ts +0 -34
  379. package/dist/runtime/daimon/training/native/grok-fixtures.js +0 -179
  380. package/dist/runtime/daimon/training/native/grok-fixtures.js.map +0 -1
  381. package/dist/runtime/daimon/training/native/index.d.ts +0 -38
  382. package/dist/runtime/daimon/training/native/index.js +0 -27
  383. package/dist/runtime/daimon/training/native/index.js.map +0 -1
  384. package/dist/runtime/daimon/training/native/live-checkout.d.ts +0 -2
  385. package/dist/runtime/daimon/training/native/live-checkout.js +0 -15
  386. package/dist/runtime/daimon/training/native/live-checkout.js.map +0 -1
  387. package/dist/runtime/daimon/training/native/observations.d.ts +0 -51
  388. package/dist/runtime/daimon/training/native/observations.js +0 -217
  389. package/dist/runtime/daimon/training/native/observations.js.map +0 -1
  390. package/dist/runtime/daimon/training/native/outcome.d.ts +0 -13
  391. package/dist/runtime/daimon/training/native/outcome.js +0 -37
  392. package/dist/runtime/daimon/training/native/outcome.js.map +0 -1
  393. package/dist/runtime/daimon/training/native/preparation/engine-config.d.ts +0 -21
  394. package/dist/runtime/daimon/training/native/preparation/engine-config.js +0 -30
  395. package/dist/runtime/daimon/training/native/preparation/engine-config.js.map +0 -1
  396. package/dist/runtime/daimon/training/native/preparation/fixtures.d.ts +0 -17
  397. package/dist/runtime/daimon/training/native/preparation/fixtures.js +0 -52
  398. package/dist/runtime/daimon/training/native/preparation/fixtures.js.map +0 -1
  399. package/dist/runtime/daimon/training/native/preparation/index.d.ts +0 -7
  400. package/dist/runtime/daimon/training/native/preparation/index.js +0 -5
  401. package/dist/runtime/daimon/training/native/preparation/index.js.map +0 -1
  402. package/dist/runtime/daimon/training/native/preparation/layout.d.ts +0 -66
  403. package/dist/runtime/daimon/training/native/preparation/layout.js +0 -87
  404. package/dist/runtime/daimon/training/native/preparation/layout.js.map +0 -1
  405. package/dist/runtime/daimon/training/native/preparation/subject.d.ts +0 -14
  406. package/dist/runtime/daimon/training/native/preparation/subject.js +0 -67
  407. package/dist/runtime/daimon/training/native/preparation/subject.js.map +0 -1
  408. package/dist/runtime/daimon/training/native/preparation/types.d.ts +0 -69
  409. package/dist/runtime/daimon/training/native/preparation/types.js +0 -2
  410. package/dist/runtime/daimon/training/native/preparation/types.js.map +0 -1
  411. package/dist/runtime/daimon/training/native/receipt/artifacts.d.ts +0 -25
  412. package/dist/runtime/daimon/training/native/receipt/artifacts.js +0 -32
  413. package/dist/runtime/daimon/training/native/receipt/artifacts.js.map +0 -1
  414. package/dist/runtime/daimon/training/native/receipt/grok-clocked-pins.d.ts +0 -129
  415. package/dist/runtime/daimon/training/native/receipt/grok-clocked-pins.js +0 -45
  416. package/dist/runtime/daimon/training/native/receipt/grok-clocked-pins.js.map +0 -1
  417. package/dist/runtime/daimon/training/native/receipt/grok.d.ts +0 -246
  418. package/dist/runtime/daimon/training/native/receipt/grok.js +0 -195
  419. package/dist/runtime/daimon/training/native/receipt/grok.js.map +0 -1
  420. package/dist/runtime/daimon/training/native/receipt/index.d.ts +0 -11
  421. package/dist/runtime/daimon/training/native/receipt/index.js +0 -8
  422. package/dist/runtime/daimon/training/native/receipt/index.js.map +0 -1
  423. package/dist/runtime/daimon/training/native/receipt/paths.d.ts +0 -3
  424. package/dist/runtime/daimon/training/native/receipt/paths.js +0 -18
  425. package/dist/runtime/daimon/training/native/receipt/paths.js.map +0 -1
  426. package/dist/runtime/daimon/training/native/receipt/sandbox.d.ts +0 -42
  427. package/dist/runtime/daimon/training/native/receipt/sandbox.js +0 -35
  428. package/dist/runtime/daimon/training/native/receipt/sandbox.js.map +0 -1
  429. package/dist/runtime/daimon/training/native/receipt/schema.d.ts +0 -490
  430. package/dist/runtime/daimon/training/native/receipt/schema.js +0 -138
  431. package/dist/runtime/daimon/training/native/receipt/schema.js.map +0 -1
  432. package/dist/runtime/daimon/training/native/receipt/subscription.d.ts +0 -13
  433. package/dist/runtime/daimon/training/native/receipt/subscription.js +0 -13
  434. package/dist/runtime/daimon/training/native/receipt/subscription.js.map +0 -1
  435. package/dist/runtime/daimon/training/native/receipt/task-clock.d.ts +0 -19
  436. package/dist/runtime/daimon/training/native/receipt/task-clock.js +0 -49
  437. package/dist/runtime/daimon/training/native/receipt/task-clock.js.map +0 -1
  438. package/dist/runtime/daimon/training/native/sealed-usage.d.ts +0 -218
  439. package/dist/runtime/daimon/training/native/sealed-usage.js +0 -261
  440. package/dist/runtime/daimon/training/native/sealed-usage.js.map +0 -1
  441. package/dist/runtime/daimon/training/native/test-fixtures.d.ts +0 -27
  442. package/dist/runtime/daimon/training/native/test-fixtures.js +0 -162
  443. package/dist/runtime/daimon/training/native/test-fixtures.js.map +0 -1
  444. package/dist/runtime/daimon/training/native/transcript.d.ts +0 -96
  445. package/dist/runtime/daimon/training/native/transcript.js +0 -239
  446. package/dist/runtime/daimon/training/native/transcript.js.map +0 -1
  447. package/dist/runtime/daimon/training/native/transport/delivery.d.ts +0 -27
  448. package/dist/runtime/daimon/training/native/transport/delivery.js +0 -98
  449. package/dist/runtime/daimon/training/native/transport/delivery.js.map +0 -1
  450. package/dist/runtime/daimon/training/native/transport/http.d.ts +0 -3
  451. package/dist/runtime/daimon/training/native/transport/http.js +0 -81
  452. package/dist/runtime/daimon/training/native/transport/http.js.map +0 -1
  453. package/dist/runtime/daimon/training/native/transport/index.d.ts +0 -4
  454. package/dist/runtime/daimon/training/native/transport/index.js +0 -3
  455. package/dist/runtime/daimon/training/native/transport/index.js.map +0 -1
  456. package/dist/runtime/daimon/training/native/transport/types.d.ts +0 -15
  457. package/dist/runtime/daimon/training/native/transport/types.js +0 -2
  458. package/dist/runtime/daimon/training/native/transport/types.js.map +0 -1
  459. package/dist/runtime/daimon/training/native/worker/cli.d.ts +0 -1
  460. package/dist/runtime/daimon/training/native/worker/cli.js +0 -17
  461. package/dist/runtime/daimon/training/native/worker/cli.js.map +0 -1
  462. package/dist/runtime/daimon/training/native/worker/control.d.ts +0 -20
  463. package/dist/runtime/daimon/training/native/worker/control.js +0 -266
  464. package/dist/runtime/daimon/training/native/worker/control.js.map +0 -1
  465. package/dist/runtime/daimon/training/native/worker/deliveries.d.ts +0 -38
  466. package/dist/runtime/daimon/training/native/worker/deliveries.js +0 -91
  467. package/dist/runtime/daimon/training/native/worker/deliveries.js.map +0 -1
  468. package/dist/runtime/daimon/training/native/worker/evidence/collect.d.ts +0 -54
  469. package/dist/runtime/daimon/training/native/worker/evidence/collect.js +0 -278
  470. package/dist/runtime/daimon/training/native/worker/evidence/collect.js.map +0 -1
  471. package/dist/runtime/daimon/training/native/worker/evidence/execution.d.ts +0 -102
  472. package/dist/runtime/daimon/training/native/worker/evidence/execution.js +0 -191
  473. package/dist/runtime/daimon/training/native/worker/evidence/execution.js.map +0 -1
  474. package/dist/runtime/daimon/training/native/worker/evidence/index.d.ts +0 -3
  475. package/dist/runtime/daimon/training/native/worker/evidence/index.js +0 -4
  476. package/dist/runtime/daimon/training/native/worker/evidence/index.js.map +0 -1
  477. package/dist/runtime/daimon/training/native/worker/evidence/io.d.ts +0 -20
  478. package/dist/runtime/daimon/training/native/worker/evidence/io.js +0 -130
  479. package/dist/runtime/daimon/training/native/worker/evidence/io.js.map +0 -1
  480. package/dist/runtime/daimon/training/native/worker/evidence/seal.d.ts +0 -3
  481. package/dist/runtime/daimon/training/native/worker/evidence/seal.js +0 -67
  482. package/dist/runtime/daimon/training/native/worker/evidence/seal.js.map +0 -1
  483. package/dist/runtime/daimon/training/native/worker/index.d.ts +0 -11
  484. package/dist/runtime/daimon/training/native/worker/index.js +0 -8
  485. package/dist/runtime/daimon/training/native/worker/index.js.map +0 -1
  486. package/dist/runtime/daimon/training/native/worker/profile.d.ts +0 -23
  487. package/dist/runtime/daimon/training/native/worker/profile.js +0 -149
  488. package/dist/runtime/daimon/training/native/worker/profile.js.map +0 -1
  489. package/dist/runtime/daimon/training/native/worker/public.d.ts +0 -53
  490. package/dist/runtime/daimon/training/native/worker/public.js +0 -22
  491. package/dist/runtime/daimon/training/native/worker/public.js.map +0 -1
  492. package/dist/runtime/daimon/training/native/worker/sandbox.d.ts +0 -4
  493. package/dist/runtime/daimon/training/native/worker/sandbox.js +0 -54
  494. package/dist/runtime/daimon/training/native/worker/sandbox.js.map +0 -1
  495. package/dist/runtime/daimon/training/native/worker/server.d.ts +0 -4
  496. package/dist/runtime/daimon/training/native/worker/server.js +0 -102
  497. package/dist/runtime/daimon/training/native/worker/server.js.map +0 -1
  498. package/dist/runtime/daimon/training/native/worker/types.d.ts +0 -318
  499. package/dist/runtime/daimon/training/native/worker/types.js +0 -2
  500. package/dist/runtime/daimon/training/native/worker/types.js.map +0 -1
  501. package/dist/runtime/daimon/training/native/worker/wake-delivery/index.d.ts +0 -4
  502. package/dist/runtime/daimon/training/native/worker/wake-delivery/index.js +0 -4
  503. package/dist/runtime/daimon/training/native/worker/wake-delivery/index.js.map +0 -1
  504. package/dist/runtime/daimon/training/native/worker/wake-delivery/source.d.ts +0 -3
  505. package/dist/runtime/daimon/training/native/worker/wake-delivery/source.js +0 -16
  506. package/dist/runtime/daimon/training/native/worker/wake-delivery/source.js.map +0 -1
  507. package/dist/runtime/daimon/training/native/worker/wake-delivery/terminal.d.ts +0 -4
  508. package/dist/runtime/daimon/training/native/worker/wake-delivery/terminal.js +0 -52
  509. package/dist/runtime/daimon/training/native/worker/wake-delivery/terminal.js.map +0 -1
  510. package/dist/runtime/daimon/training/native/worker/wake-delivery/transport.d.ts +0 -21
  511. package/dist/runtime/daimon/training/native/worker/wake-delivery/transport.js +0 -198
  512. package/dist/runtime/daimon/training/native/worker/wake-delivery/transport.js.map +0 -1
  513. package/dist/runtime/daimon/training/native/worker/wake-delivery/types.d.ts +0 -91
  514. package/dist/runtime/daimon/training/native/worker/wake-delivery/types.js +0 -2
  515. package/dist/runtime/daimon/training/native/worker/wake-delivery/types.js.map +0 -1
  516. package/dist/runtime/daimon/training/native/worker/worker.d.ts +0 -1
  517. package/dist/runtime/daimon/training/native/worker/worker.js +0 -105
  518. package/dist/runtime/daimon/training/native/worker/worker.js.map +0 -1
  519. package/dist/runtime/daimon/training/providers/grok-broker/broker.d.ts +0 -20
  520. package/dist/runtime/daimon/training/providers/grok-broker/broker.js +0 -55
  521. package/dist/runtime/daimon/training/providers/grok-broker/broker.js.map +0 -1
  522. package/dist/runtime/daimon/training/providers/grok-broker/grant-fixtures.d.ts +0 -15
  523. package/dist/runtime/daimon/training/providers/grok-broker/grant-fixtures.js +0 -29
  524. package/dist/runtime/daimon/training/providers/grok-broker/grant-fixtures.js.map +0 -1
  525. package/dist/runtime/daimon/training/providers/grok-broker/grant-home.d.ts +0 -16
  526. package/dist/runtime/daimon/training/providers/grok-broker/grant-home.js +0 -60
  527. package/dist/runtime/daimon/training/providers/grok-broker/grant-home.js.map +0 -1
  528. package/dist/runtime/daimon/training/providers/grok-broker/grant-pool.d.ts +0 -81
  529. package/dist/runtime/daimon/training/providers/grok-broker/grant-pool.js +0 -221
  530. package/dist/runtime/daimon/training/providers/grok-broker/grant-pool.js.map +0 -1
  531. package/dist/runtime/daimon/training/providers/grok-broker/grant-releases.d.ts +0 -31
  532. package/dist/runtime/daimon/training/providers/grok-broker/grant-releases.js +0 -78
  533. package/dist/runtime/daimon/training/providers/grok-broker/grant-releases.js.map +0 -1
  534. package/dist/runtime/daimon/training/providers/grok-broker/grants.d.ts +0 -63
  535. package/dist/runtime/daimon/training/providers/grok-broker/grants.js +0 -20
  536. package/dist/runtime/daimon/training/providers/grok-broker/grants.js.map +0 -1
  537. package/dist/runtime/daimon/training/providers/grok-broker/index.d.ts +0 -3
  538. package/dist/runtime/daimon/training/providers/grok-broker/index.js +0 -4
  539. package/dist/runtime/daimon/training/providers/grok-broker/index.js.map +0 -1
  540. package/dist/runtime/daimon/training/providers/grok-subscription/cli.d.ts +0 -21
  541. package/dist/runtime/daimon/training/providers/grok-subscription/cli.js +0 -81
  542. package/dist/runtime/daimon/training/providers/grok-subscription/cli.js.map +0 -1
  543. package/dist/runtime/daimon/training/providers/grok-subscription/index.d.ts +0 -4
  544. package/dist/runtime/daimon/training/providers/grok-subscription/index.js +0 -5
  545. package/dist/runtime/daimon/training/providers/grok-subscription/index.js.map +0 -1
  546. package/dist/runtime/daimon/training/providers/grok-subscription/protocol.d.ts +0 -26
  547. package/dist/runtime/daimon/training/providers/grok-subscription/protocol.js +0 -102
  548. package/dist/runtime/daimon/training/providers/grok-subscription/protocol.js.map +0 -1
  549. package/dist/runtime/daimon/training/providers/grok-subscription/provider.d.ts +0 -9
  550. package/dist/runtime/daimon/training/providers/grok-subscription/provider.js +0 -38
  551. package/dist/runtime/daimon/training/providers/grok-subscription/provider.js.map +0 -1
  552. package/dist/runtime/daimon/training/public.d.ts +0 -6
  553. package/dist/runtime/daimon/training/public.js +0 -5
  554. package/dist/runtime/daimon/training/public.js.map +0 -1
  555. package/dist/runtime/daimon/training/services/account-lease.d.ts +0 -7
  556. package/dist/runtime/daimon/training/services/account-lease.js +0 -76
  557. package/dist/runtime/daimon/training/services/account-lease.js.map +0 -1
  558. package/dist/runtime/daimon/training/services/freshness.d.ts +0 -15
  559. package/dist/runtime/daimon/training/services/freshness.js +0 -19
  560. package/dist/runtime/daimon/training/services/freshness.js.map +0 -1
  561. package/dist/runtime/daimon/training/services/index.d.ts +0 -4
  562. package/dist/runtime/daimon/training/services/index.js +0 -4
  563. package/dist/runtime/daimon/training/services/index.js.map +0 -1
  564. package/dist/runtime/daimon/training/services/slot-freshness.d.ts +0 -34
  565. package/dist/runtime/daimon/training/services/slot-freshness.js +0 -178
  566. package/dist/runtime/daimon/training/services/slot-freshness.js.map +0 -1
  567. package/dist/runtime/daimon/wakeMoments.js.map +0 -1
  568. package/dist/runtime/pi/adapter.d.ts +0 -3
  569. package/dist/runtime/pi/adapter.js +0 -230
  570. package/dist/runtime/pi/appActivitySource.d.ts +0 -1
  571. package/dist/runtime/pi/appActivitySource.js +0 -199
  572. package/dist/runtime/pi/appAgentConfig.d.ts +0 -11
  573. package/dist/runtime/pi/appAgentConfig.js +0 -264
  574. package/dist/runtime/pi/appCliEnginesSource.d.ts +0 -1
  575. package/dist/runtime/pi/appCliEnginesSource.js +0 -183
  576. package/dist/runtime/pi/appCliSource.d.ts +0 -1
  577. package/dist/runtime/pi/appCliSource.js +0 -353
  578. package/dist/runtime/pi/appControlSource.d.ts +0 -1
  579. package/dist/runtime/pi/appControlSource.js +0 -390
  580. package/dist/runtime/pi/appControlWakeIdentitySource.d.ts +0 -1
  581. package/dist/runtime/pi/appControlWakeIdentitySource.js +0 -19
  582. package/dist/runtime/pi/appCoreSource.d.ts +0 -4
  583. package/dist/runtime/pi/appCoreSource.js +0 -244
  584. package/dist/runtime/pi/appPreludeSource.d.ts +0 -1
  585. package/dist/runtime/pi/appPreludeSource.js +0 -192
  586. package/dist/runtime/pi/appScheduleSource.d.ts +0 -1
  587. package/dist/runtime/pi/appScheduleSource.js +0 -84
  588. package/dist/runtime/pi/appScriptedEngine.d.ts +0 -31
  589. package/dist/runtime/pi/appScriptedEngine.js +0 -42
  590. package/dist/runtime/pi/appSource.d.ts +0 -4
  591. package/dist/runtime/pi/appSource.js +0 -12
  592. package/dist/runtime/pi/appTemplate.d.ts +0 -14
  593. package/dist/runtime/pi/appTemplate.js +0 -28
  594. package/dist/runtime/pi/appTemplateTypes.d.ts +0 -64
  595. package/dist/runtime/pi/appTemplateTypes.js +0 -18
  596. package/dist/runtime/pi/appWakeContextSource.d.ts +0 -1
  597. package/dist/runtime/pi/appWakeContextSource.js +0 -398
  598. package/dist/runtime/pi/containerTargets.d.ts +0 -4
  599. package/dist/runtime/pi/containerTargets.js +0 -63
  600. package/dist/runtime/pi/runAuth.d.ts +0 -2
  601. package/dist/runtime/pi/runAuth.js +0 -185
  602. package/dist/runtime/pi/testHelpers.d.ts +0 -2
  603. package/dist/shared/errors.js.map +0 -1
  604. package/dist/training/subjects/environment.d.ts +0 -2
  605. package/dist/training/subjects/environment.js +0 -14
  606. package/dist/training/subjects/environment.js.map +0 -1
@@ -1,179 +0,0 @@
1
- import { chmod, copyFile, mkdir, writeFile } from 'node:fs/promises';
2
- import { dirname, join } from 'node:path';
3
- import { grokProjectionSha256, grokWorkerConfigPins } from './receipt/grok.js';
4
- /** Byte-exact outputs from Daimon public projection v3 resolver. */
5
- export const daimonProjectionGolden = {
6
- "version": "noopolis.daimon.grok-broker-projection.v3",
7
- "agentId": "foreman",
8
- "workspacePath": "/var/lib/spawnfile/instance/workspace/agents/foreman",
9
- "runtimeHomePath": "/var/lib/spawnfile/instance/homes/foreman",
10
- "workerUid": 2200,
11
- "slot": 0,
12
- "profilePath": "/var/lib/daimon-workers/2200/.grok/sandbox.toml",
13
- "profileSha256": "efbc0366c3f754a23aceed7cb063ce67b49ee1b87956542c2193e6c34b45e761",
14
- "denyPaths": [
15
- "/run/spawnfile-training",
16
- "/run/spawnfile-training/control",
17
- "/run/training/inputs",
18
- "/var/lib/spawnfile/daimon/grok-bootstrap-auth",
19
- "/var/lib/spawnfile/daimon/grok-subscription-realm"
20
- ],
21
- "workerConfigSha256": "ab58499ac32678097c146479896f2b8a8e2b0e39aea22dc0a60b6227e370538e",
22
- "workerConfigVariant": "unclocked",
23
- "systemPromptSha256": "2c31c0085a54a4efbf9c0cf0b8124c56e47f38691b7f0c7fa233a74abaa8ddf8",
24
- "grokCliVersion": "1.0.34",
25
- "grokExecutableSha256": "39ab87666877d64ef3a40aa60fbe0c3b6a6acd7001b78fe60e2c76bb6cfc4a94",
26
- "nativeAbiVersion": 2,
27
- "model": "grok-4.6",
28
- "reasoningEffort": "low",
29
- "limits": {
30
- "maxRequests": 24,
31
- "maxTokens": 400000,
32
- "timeoutMs": 480000
33
- },
34
- "usageLedgerPath": "/run/daimon-slots/0/usage/usage.jsonl",
35
- "seccompProfileSha256": "7777777777777777777777777777777777777777777777777777777777777777",
36
- "attestation": {
37
- "platform": "linux/landlock",
38
- "enforced": true,
39
- "restrictNetwork": true,
40
- "profileName": "daimon-strict",
41
- "sandboxRuntime": "bubblewrap",
42
- "eventsPath": "/var/lib/daimon-workers/2200/.grok/sessions/sandbox-events.jsonl"
43
- }
44
- };
45
- export const daimonProjectionGoldenSha256 = 'eb9fe5430db97b3e9aea8d3a4ec4b2a4771db15917d7c41594338599d96932f5';
46
- export const daimonClockedProjectionGolden = {
47
- "version": "noopolis.daimon.grok-broker-projection.v3",
48
- "agentId": "foreman",
49
- "workspacePath": "/var/lib/spawnfile/instance/workspace/agents/foreman",
50
- "runtimeHomePath": "/var/lib/spawnfile/instance/homes/foreman",
51
- "workerUid": 2200,
52
- "slot": 0,
53
- "profilePath": "/var/lib/daimon-workers/2200/.grok/sandbox.toml",
54
- "profileSha256": "efbc0366c3f754a23aceed7cb063ce67b49ee1b87956542c2193e6c34b45e761",
55
- "denyPaths": [
56
- "/run/spawnfile-training",
57
- "/run/spawnfile-training/control",
58
- "/run/training/inputs",
59
- "/var/lib/spawnfile/daimon/grok-bootstrap-auth",
60
- "/var/lib/spawnfile/daimon/grok-subscription-realm"
61
- ],
62
- "workerConfigSha256": "751f1dcd04983e5e5883df5a8fefa04f201e187e5ef1f344d3bf83f950830432",
63
- "workerConfigVariant": "clocked",
64
- "taskClock": {
65
- "preloadPath": "/usr/local/lib/daimon/libfaketime.so.1",
66
- "timestampFilePath": "/run/daimon-engine-broker/task-clock/slot-0/faketime",
67
- "directoryPath": "/run/daimon-engine-broker/task-clock/slot-0",
68
- "rootDirectoryPath": "/run/daimon-engine-broker/task-clock",
69
- "directoryMode": 493,
70
- "fileMode": 420,
71
- "ownerUid": 2100,
72
- "version": "noopolis.daimon.grok-broker-task-clock.v2",
73
- "slotDirectoryPattern": "/run/daimon-engine-broker/task-clock/slot-{slot}",
74
- "slotFilePattern": "/run/daimon-engine-broker/task-clock/slot-{slot}/faketime",
75
- "workerView": "own-directory-visible-sibling-directories-denied"
76
- },
77
- "systemPromptSha256": "2c31c0085a54a4efbf9c0cf0b8124c56e47f38691b7f0c7fa233a74abaa8ddf8",
78
- "grokCliVersion": "1.0.34",
79
- "grokExecutableSha256": "39ab87666877d64ef3a40aa60fbe0c3b6a6acd7001b78fe60e2c76bb6cfc4a94",
80
- "nativeAbiVersion": 2,
81
- "model": "grok-4.6",
82
- "reasoningEffort": "low",
83
- "limits": {
84
- "maxRequests": 24,
85
- "maxTokens": 400000,
86
- "timeoutMs": 480000
87
- },
88
- "usageLedgerPath": "/run/daimon-slots/0/usage/usage.jsonl",
89
- "seccompProfileSha256": "7777777777777777777777777777777777777777777777777777777777777777",
90
- "attestation": {
91
- "platform": "linux/landlock",
92
- "enforced": true,
93
- "restrictNetwork": true,
94
- "profileName": "daimon-strict",
95
- "sandboxRuntime": "bubblewrap",
96
- "eventsPath": "/var/lib/daimon-workers/2200/.grok/sessions/sandbox-events.jsonl"
97
- }
98
- };
99
- export const daimonClockedProjectionGoldenSha256 = 'c06709c076b4ba1a15c10f0f3f7c1bcd46217355d81e1cfb7d1d2c25194fbd68';
100
- export const fixtureNonce = '5f0e2a1c9b8d7e6f5a4b3c2d1e0f9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d3e2f';
101
- const realm = ['/var/lib/spawnfile/daimon/grok-bootstrap-auth', '/var/lib/spawnfile/daimon/grok-subscription-realm'];
102
- /**
103
- * The caller-protected paths a Grok trial declares.
104
- *
105
- * Always evaluator roots the slot receipt denies to the worker uid — never the
106
- * subject's own workspace or runtime home, which are the two writable roots.
107
- */
108
- export const grokProtectedPaths = (root) => [join(root, 'run-training'), join(root, 'training')];
109
- /**
110
- * Turns a Codex launch fixture into a Grok v2 child launch shaped like the
111
- * broker-capable training container.
112
- *
113
- * The container fixes `<slot>/workspace`, `<slot>/runtime-home` and
114
- * `<slot>/state` as siblings and keeps every Training control input in the
115
- * denied `/run/spawnfile-training` root, so the fixture root stands in for the slot root:
116
- * the trial runtime home is the single writable projection, the control root is
117
- * its sibling `state/`, and config/token/env move into the denied `training/`
118
- * evaluator root. Every evaluator root is a real directory under `root`.
119
- */
120
- export async function grokLaunchFrom(launch, root, runtimeHome = join(root, 'runtime')) {
121
- const slot = join(root, 'slots', '0');
122
- const state = join(root, 'state');
123
- const controls = join(root, 'training');
124
- const roots = { 'run-root': join(root, 'run-training'), context: controls, 'sealed-inputs': join(root, 'sealed'),
125
- 'judge-home': join(root, 'judge-grok-home'), 'slot-ledger': join(slot, 'usage') };
126
- for (const path of [...Object.values(roots), state])
127
- await mkdir(path, { recursive: true, mode: 0o700 });
128
- const moved = { config: join(controls, 'config.json'), tokenFile: join(controls, 'token'), envFile: join(controls, 'environment') };
129
- for (const key of ['config', 'tokenFile', 'envFile']) {
130
- await copyFile(launch[key], moved[key]);
131
- await chmod(moved[key], 0o600);
132
- }
133
- const home = launch.projections.find(row => row.role === 'home');
134
- const next = launch;
135
- Object.assign(next, { schema: 'spawnfile.training.daimon-native.launch.v2', agent: { id: launch.agent.id, engine: 'grok', model: 'grok-4.6', reasoningEffort: 'low' },
136
- credentials: [], limits: { maxTokens: 8000000, wakeTokenCeiling: 1000000 }, ...moved, controlRoot: state,
137
- projections: [{ role: 'home', source: runtimeHome, target: home.source === home.target ? runtimeHome : home.target }],
138
- broker: { projectionVersion: 'noopolis.daimon.grok-broker-projection.v3', workerConfigVariant: launch.taskClock ? 'clocked' : 'unclocked',
139
- projectionSha256: '0'.repeat(64), slot: 0, workerUid: 2200,
140
- workerHomePath: join(slot, 'worker-home'), architecture: 'arm64', usageLedgerPath: join(roots['slot-ledger'], 'usage.jsonl'),
141
- seccompProfileSha256: '7'.repeat(64), limits: { maxRequests: 24, maxTokens: 400000, timeoutMs: 480000 },
142
- // The provisioner's verbatim values the projection digest binds: the realm entries, the control
143
- // root and every evaluator root. Evaluator roots alone are the canary subset, not the deny list.
144
- profileSha256: daimonProjectionGolden.profileSha256,
145
- denyPaths: [...new Set([...realm, state, ...Object.values(roots)])].sort(),
146
- evaluatorPaths: Object.entries(roots).map(([role, path]) => ({ role, path })), slotPreflightReceipt: join(slot, 'slot-preflight.json'), expectedNonce: fixtureNonce, minGeneration: 3 } });
147
- next.broker.projectionSha256 = grokProjectionSha256(grokProjectionFor(next));
148
- return next;
149
- }
150
- /** The training container resolves the slot projection from a one-agent config with no peers and no Mneme projection. */
151
- export function grokConfigFor(config) {
152
- const agent = config.agents[0];
153
- agent.engine = { kind: 'grok', model: 'grok-4.6', reasoningEffort: 'low' };
154
- delete agent.memory;
155
- return config;
156
- }
157
- /** What Daimon's resolver returns for this launch when its inputs are passed through unchanged. */
158
- export function grokProjectionFor(launch, extraDeny = []) {
159
- const { broker } = launch;
160
- const home = launch.projections.find(row => row.role === 'home').target;
161
- const golden = broker.workerConfigVariant === 'clocked' ? daimonClockedProjectionGolden : daimonProjectionGolden;
162
- return { ...golden, agentId: launch.agent.id, workspacePath: launch.workspace.target, runtimeHomePath: home,
163
- workerUid: broker.workerUid, slot: broker.slot, profilePath: `${broker.workerHomePath}/.grok/sandbox.toml`,
164
- denyPaths: [...new Set([...broker.denyPaths, ...extraDeny])].sort(),
165
- workerConfigSha256: grokWorkerConfigPins[broker.workerConfigVariant][launch.agent.model][launch.agent.reasoningEffort],
166
- model: launch.agent.model, reasoningEffort: launch.agent.reasoningEffort, limits: { ...broker.limits }, usageLedgerPath: broker.usageLedgerPath,
167
- seccompProfileSha256: broker.seccompProfileSha256, attestation: { ...daimonProjectionGolden.attestation, eventsPath: `${broker.workerHomePath}/.grok/sessions/sandbox-events.jsonl` } };
168
- }
169
- export function slotPreflightFor(projection, paths = projection.denyPaths, generation = 3, nonce = fixtureNonce) {
170
- return { version: 'noopolis.daimon.grok-slot-preflight.v2', slot: projection.slot, worker_uid: projection.workerUid, generation, nonce,
171
- projection_sha256: grokProjectionSha256(projection), sandbox_profile_sha256: projection.profileSha256,
172
- seccomp_profile_sha256: projection.seccompProfileSha256, sandbox_runtime: 'bubblewrap', grok_executable_sha256: projection.grokExecutableSha256,
173
- canaries: paths.map(path => ({ path, method: 'sandboxed-read', result: 'denied' })), created_at: '2026-09-17T12:00:00.000Z' };
174
- }
175
- export async function writeGrokSlotReceipt(launch, value = slotPreflightFor(grokProjectionFor(launch))) {
176
- await mkdir(dirname(launch.broker.slotPreflightReceipt), { recursive: true });
177
- await writeFile(launch.broker.slotPreflightReceipt, JSON.stringify(value));
178
- }
179
- //# sourceMappingURL=grok-fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"grok-fixtures.js","sourceRoot":"","sources":["../../../../../src/runtime/daimon/training/native/grok-fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAqD,MAAM,mBAAmB,CAAC;AAIlI,oEAAoE;AACpE,MAAM,CAAC,MAAM,sBAAsB,GAAyB;IAC1D,SAAS,EAAE,2CAA2C;IACtD,SAAS,EAAE,SAAS;IACpB,eAAe,EAAE,sDAAsD;IACvE,iBAAiB,EAAE,2CAA2C;IAC9D,WAAW,EAAE,IAAI;IACjB,MAAM,EAAE,CAA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UAAU,CAAC,SAAS,EAAE,UAAU,EAAE,KAAK;QACpI,iBAAiB,EAAE,oBAAoB,CAAC,UAAU,CAAC,EAAE,sBAAsB,EAAE,UAAU,CAAC,aAAa;QACrG,sBAAsB,EAAE,UAAU,CAAC,oBAAoB,EAAE,eAAe,EAAE,YAAY,EAAE,sBAAsB,EAAE,UAAU,CAAC,oBAAoB;QAC/I,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,0BAA0B,EAAE,CAAC;AAClI,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAC,MAAwB,EAAE,QAAiB,gBAAgB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC/H,MAAM,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,MAAM,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7E,CAAC"}
@@ -1,38 +0,0 @@
1
- export { createDaimonNativeAdapter } from './adapter.js';
2
- export type { NativeAdapterOptions } from './adapter.js';
3
- export { parseNativeLaunch, nativeLaunchSchema } from './receipt/index.js';
4
- export type { NativeLaunch, NativeMount, VerifiedNativeLaunch } from './receipt/index.js';
5
- export type { NativeTaskClock, NativeTaskClockEvidence } from './receipt/index.js';
6
- /**
7
- * Launch preflight for callers that prepare a trial: `loadNativeLaunch` verifies
8
- * the receipt and its path policy without starting anything, and
9
- * `nativeTrialArtifactsRoot` is where that trial's private control artifacts
10
- * land (the control root for Codex, a per-trial directory inside it for Grok).
11
- * Both are derivations callers must not reimplement.
12
- */
13
- export { loadNativeLaunch } from './container/index.js';
14
- export { grokBrokerLaunchSchema, nativeTrialArtifactsRoot } from './receipt/index.js';
15
- export type { GrokBrokerLaunch } from './receipt/index.js';
16
- /**
17
- * Engine-neutral subject preparation on a leased slot: Training sequences slot
18
- * freshness and validates the provisioner's launch fields against the lease.
19
- */
20
- export { assertNativeEngineConfig, bindTrialPathsToSlot, createExperimentSlotFreshness, experimentSlotFreshnessFile, nativeSubjectScratch, nativeTrialInputsRoot, prepareNativeSubject } from './preparation/index.js';
21
- export type { NativeAgentConfig, NativeScratchName, NativeSubjectLayout, NativeSubjectEngine, NativeTrialRoots, PrepareNativeSubjectOptions, ProvisionedSubject, SubjectProvisionInput, SubjectProvisioner } from './preparation/index.js';
22
- export type { NativeExternalInputs, NativeExternalInput, NativeChildExternalInputs } from './external.js';
23
- export { createNativeHttpClient } from './transport/index.js';
24
- export type { NativeExecutionHandle, NativeWorkerPath, NativeWorkerRequest } from './transport/index.js';
25
- export type { NativeTransportDelivery, PreparedTransportDelivery } from './transport/index.js';
26
- export type { TransportDeliverySource } from './worker/index.js';
27
- export { createGrokSlotFreshnessStore, nativeChildArguments } from './child/index.js';
28
- export type { GrokSlotFreshness, GrokSlotFreshnessOptions, GrokSlotFreshnessStore, NativeChildExecution } from './child/index.js';
29
- export { grokBrokerControlSocketEnv, grokGrantHomeRootEnv, loadDaimonGrokGrantAuthority } from './grants/index.js';
30
- /**
31
- * Operator-only turn transcript: the wake text the engine received and the reply
32
- * it gave, read from the engine's own session record inside the Daimon-owned
33
- * engine home and confirmed against Daimon's closed trace digest. Published as a
34
- * `raw`-visibility diagnostic observation; never an evaluated output.
35
- */
36
- export { readNativeTranscript, NATIVE_TRANSCRIPT_SCHEMA } from './transcript.js';
37
- export type { NativeTranscriptCapture, NativeTranscriptSession, NativeTranscriptText } from './transcript.js';
38
- export type { NativeTurnEvidence } from './outcome.js';
@@ -1,27 +0,0 @@
1
- export { createDaimonNativeAdapter } from './adapter.js';
2
- export { parseNativeLaunch, nativeLaunchSchema } from './receipt/index.js';
3
- /**
4
- * Launch preflight for callers that prepare a trial: `loadNativeLaunch` verifies
5
- * the receipt and its path policy without starting anything, and
6
- * `nativeTrialArtifactsRoot` is where that trial's private control artifacts
7
- * land (the control root for Codex, a per-trial directory inside it for Grok).
8
- * Both are derivations callers must not reimplement.
9
- */
10
- export { loadNativeLaunch } from './container/index.js';
11
- export { grokBrokerLaunchSchema, nativeTrialArtifactsRoot } from './receipt/index.js';
12
- /**
13
- * Engine-neutral subject preparation on a leased slot: Training sequences slot
14
- * freshness and validates the provisioner's launch fields against the lease.
15
- */
16
- export { assertNativeEngineConfig, bindTrialPathsToSlot, createExperimentSlotFreshness, experimentSlotFreshnessFile, nativeSubjectScratch, nativeTrialInputsRoot, prepareNativeSubject } from './preparation/index.js';
17
- export { createNativeHttpClient } from './transport/index.js';
18
- export { createGrokSlotFreshnessStore, nativeChildArguments } from './child/index.js';
19
- export { grokBrokerControlSocketEnv, grokGrantHomeRootEnv, loadDaimonGrokGrantAuthority } from './grants/index.js';
20
- /**
21
- * Operator-only turn transcript: the wake text the engine received and the reply
22
- * it gave, read from the engine's own session record inside the Daimon-owned
23
- * engine home and confirmed against Daimon's closed trace digest. Published as a
24
- * `raw`-visibility diagnostic observation; never an evaluated output.
25
- */
26
- export { readNativeTranscript, NATIVE_TRANSCRIPT_SCHEMA } from './transcript.js';
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/runtime/daimon/training/native/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAI3E;;;;;;GAMG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAGtF;;;GAGG;AACH,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,2BAA2B,EACjH,oBAAoB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAMpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAK9D,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGtF,OAAO,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEnH;;;;;GAKG;AACH,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,2 +0,0 @@
1
- /** Test-only built checkout: required in CI, opt-in locally; never an ambient dependency. */
2
- export declare function daimonCheckoutRuntime(): string | undefined;
@@ -1,15 +0,0 @@
1
- import { isAbsolute, join } from 'node:path';
2
- import { pathToFileURL } from 'node:url';
3
- /** Test-only built checkout: required in CI, opt-in locally; never an ambient dependency. */
4
- export function daimonCheckoutRuntime() {
5
- const checkout = process.env.SPAWNFILE_DAIMON_CHECKOUT;
6
- if (checkout === undefined) {
7
- if (process.env.CI)
8
- throw new Error('CI parity requires SPAWNFILE_DAIMON_CHECKOUT pointing at the built pinned Daimon checkout');
9
- return undefined;
10
- }
11
- if (!isAbsolute(checkout))
12
- throw new Error('SPAWNFILE_DAIMON_CHECKOUT must be an absolute built Daimon checkout');
13
- return pathToFileURL(join(checkout, 'dist/runtime/index.js')).href;
14
- }
15
- //# sourceMappingURL=live-checkout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"live-checkout.js","sourceRoot":"","sources":["../../../../../src/runtime/daimon/training/native/live-checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,6FAA6F;AAC7F,MAAM,UAAU,qBAAqB;IACnC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC;IACvD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,2FAA2F,CAAC,CAAC;QACjI,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qEAAqE,CAAC,CAAC;IAClH,OAAO,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC,CAAC,IAAI,CAAC;AACrE,CAAC"}
@@ -1,51 +0,0 @@
1
- import type { NativeExternalInput } from './external.js';
2
- import type { SubjectStart, SubjectStartupDiagnostic, Usage } from '../../../../training/index.js';
3
- import type { BrokerRequestLedger, BrokerSealLedger } from './sealed-usage.js';
4
- import type { NativeGrokUsage, NativeUsage, TerminalEvidence } from './worker/index.js';
5
- export declare function createNativeObserver(input: SubjectStart, runtimeHome: string, agentId: string, engine?: 'codex' | 'grok'): {
6
- usage: () => Usage | null;
7
- externalInput(wakeId: string, value: NativeExternalInput): Promise<void>;
8
- checkpoint(wakeId: string): Promise<void>;
9
- /**
10
- * Why an owned worker stopped answering, redacted by the same rules the
11
- * startup path uses and published as a `diagnostic` — never output, a
12
- * captured call or a judge input. It is the only account of a mid-turn
13
- * death that outlives the container: the full capture stays in the control
14
- * root, which a training slot puts on tmpfs.
15
- */
16
- childDiagnostic(wakeId: string, record: SubjectStartupDiagnostic): Promise<void>;
17
- /**
18
- * Spend recovered from the broker's sealed ledger when no terminal evidence
19
- * arrived. It publishes as an ordinary `usage` observation so a failed
20
- * trial's cost is visible where a completed one's is, and carries the rows
21
- * it was read from rather than only their sum. A publish fault here is
22
- * swallowed: this already runs on a failed turn, and instrumentation must
23
- * never replace a diagnosable failure with a confusing one.
24
- */
25
- sealedUsage(wakeId: string, recovered: readonly NativeGrokUsage[]): Promise<Usage | null>;
26
- /**
27
- * The broker's per-request timings for a turn that never reported one.
28
- *
29
- * Operator-only, like the records beside it: a `diagnostic` so it can never
30
- * become output, a captured call, a judge input or a viewer projection. It
31
- * says whether the last request was issued and left unanswered or never
32
- * issued at all, which the published event stream otherwise cannot tell
33
- * apart, and it is timings and counts only. A publish fault is swallowed:
34
- * this already runs on a failed turn.
35
- */
36
- brokerRequests(wakeId: string, ledger: BrokerRequestLedger): Promise<void>;
37
- /**
38
- * The broker's own sealed account of a turn that never answered.
39
- *
40
- * Operator-only, like every record beside it: a `diagnostic`, so it can
41
- * never become output, a captured call, a judge input or a viewer
42
- * projection. Its headline is the one fact six live hangs could not
43
- * produce — the tool call the worker was still blocked on, and for how
44
- * long. A turn the facade never observed says so by having no `mcp` member
45
- * at all, and is never rendered as "no outstanding calls". A publish fault
46
- * is swallowed: this already runs on a failed turn.
47
- */
48
- brokerSeal(wakeId: string, ledger: BrokerSealLedger): Promise<void>;
49
- terminal(wakeId: string, result: TerminalEvidence): Promise<Usage | null>;
50
- };
51
- export declare function aggregateUsage(rows: NativeUsage[]): Usage | null;
@@ -1,217 +0,0 @@
1
- import { readNativeTranscript } from './transcript.js';
2
- import { plausibleNotionalUsd, readToolReceipts } from './worker/index.js';
3
- export function createNativeObserver(input, runtimeHome, agentId, engine = 'codex') {
4
- let seq = 0;
5
- const accounted = new Map();
6
- // An execution stays accounted forever; its publication remains pending
7
- // independently until the sink acknowledges the batch containing that row.
8
- const pending = new Set();
9
- let publicationTail = Promise.resolve();
10
- const observation = (wakeId, value, timestamp = new Date().toISOString()) => {
11
- seq++;
12
- return structuredClone({ id: `${input.trialId}:native:${seq}`, source: 'daimon.native-evidence', seq,
13
- timestamp, trialId: input.trialId, wakeId, ...value });
14
- };
15
- // One trial ledger owns both normal terminal frames and recovered broker rows.
16
- const account = (wakeId, rows, timestamp) => {
17
- const added = new Map();
18
- for (const row of rows) {
19
- const key = `${row.engine}:${row.wake}`;
20
- const prior = accounted.get(key) ?? added.get(key);
21
- if (prior && JSON.stringify(prior) !== JSON.stringify(row))
22
- throw new Error('Conflicting native trial usage execution');
23
- if (!prior)
24
- added.set(key, row);
25
- }
26
- const fresh = [...added.values()];
27
- const usage = aggregateUsage(fresh);
28
- // Validate the total before committing any rows; a rejected frame cannot
29
- // partly consume execution identities or poison subsequent recovery.
30
- aggregateUsage([...accounted.values(), ...fresh]);
31
- for (const [key, row] of added)
32
- accounted.set(key, structuredClone(row));
33
- if (usage)
34
- pending.add(observation(wakeId, { type: 'usage', usage, native: fresh }, timestamp));
35
- return usage;
36
- };
37
- // Retain the entire batch identity and payload until acknowledged. Capture
38
- // deduplicates identical observations, including a persist-then-reject retry.
39
- const publishUsage = () => {
40
- const operation = publicationTail.then(async () => {
41
- for (const event of pending) {
42
- await input.onObservation(structuredClone(event));
43
- pending.delete(event);
44
- }
45
- });
46
- publicationTail = operation.catch(() => undefined);
47
- return operation;
48
- };
49
- const seen = new Set();
50
- const emit = async (wakeId, value, timestamp = new Date().toISOString()) => {
51
- await input.onObservation(observation(wakeId, value, timestamp));
52
- };
53
- return {
54
- usage: () => aggregateUsage([...accounted.values()]),
55
- async externalInput(wakeId, value) {
56
- await emit(wakeId, { type: 'input', text: value.text, native: { schema: 'spawnfile.training.external-input.v1', deliveryId: value.id, source: value.source } });
57
- },
58
- async checkpoint(wakeId) {
59
- for (const row of await readToolReceipts(runtimeHome, agentId, engine)) {
60
- const callId = String(row.delivery_id);
61
- if (seen.has(callId))
62
- continue;
63
- seen.add(callId);
64
- await emit(wakeId, { type: 'tool.complete', callId,
65
- tool: row.kind === 'moltnet' ? 'moltnet_send' : `mcp_${String(row.server)}_${String(row.tool)}`,
66
- result: row.kind === 'moltnet' ? { message_id: row.message_id } : row.result ?? row.error,
67
- success: row.kind === 'moltnet' || row.is_error === false, native: row }, String(row.at));
68
- }
69
- },
70
- /**
71
- * Why an owned worker stopped answering, redacted by the same rules the
72
- * startup path uses and published as a `diagnostic` — never output, a
73
- * captured call or a judge input. It is the only account of a mid-turn
74
- * death that outlives the container: the full capture stays in the control
75
- * root, which a training slot puts on tmpfs.
76
- */
77
- async childDiagnostic(wakeId, record) {
78
- try {
79
- await emit(wakeId, { type: 'diagnostic', text: record.reason, native: record });
80
- }
81
- catch { /* never fails an already-failed turn */ }
82
- },
83
- /**
84
- * Spend recovered from the broker's sealed ledger when no terminal evidence
85
- * arrived. It publishes as an ordinary `usage` observation so a failed
86
- * trial's cost is visible where a completed one's is, and carries the rows
87
- * it was read from rather than only their sum. A publish fault here is
88
- * swallowed: this already runs on a failed turn, and instrumentation must
89
- * never replace a diagnosable failure with a confusing one.
90
- */
91
- async sealedUsage(wakeId, recovered) {
92
- let delta;
93
- try {
94
- delta = account(wakeId, recovered);
95
- }
96
- catch {
97
- return null;
98
- }
99
- try {
100
- await publishUsage();
101
- }
102
- catch { /* never fails an already-failed turn */ }
103
- return delta;
104
- },
105
- /**
106
- * The broker's per-request timings for a turn that never reported one.
107
- *
108
- * Operator-only, like the records beside it: a `diagnostic` so it can never
109
- * become output, a captured call, a judge input or a viewer projection. It
110
- * says whether the last request was issued and left unanswered or never
111
- * issued at all, which the published event stream otherwise cannot tell
112
- * apart, and it is timings and counts only. A publish fault is swallowed:
113
- * this already runs on a failed turn.
114
- */
115
- async brokerRequests(wakeId, ledger) {
116
- const text = ledger.outcome === 'read'
117
- ? `Broker request ledger: ${ledger.read} requests, ${ledger.open} unanswered`
118
- : `Broker request ledger unreadable: ${ledger.failure}`;
119
- try {
120
- await emit(wakeId, { type: 'diagnostic', text, native: ledger });
121
- }
122
- catch { /* never fails an already-failed turn */ }
123
- },
124
- /**
125
- * The broker's own sealed account of a turn that never answered.
126
- *
127
- * Operator-only, like every record beside it: a `diagnostic`, so it can
128
- * never become output, a captured call, a judge input or a viewer
129
- * projection. Its headline is the one fact six live hangs could not
130
- * produce — the tool call the worker was still blocked on, and for how
131
- * long. A turn the facade never observed says so by having no `mcp` member
132
- * at all, and is never rendered as "no outstanding calls". A publish fault
133
- * is swallowed: this already runs on a failed turn.
134
- */
135
- async brokerSeal(wakeId, ledger) {
136
- const text = ledger.outcome !== 'read'
137
- ? `Broker turn seal unreadable: ${ledger.failure}`
138
- : (() => {
139
- const last = ledger.rows[ledger.rows.length - 1];
140
- const blocked = ledger.rows.flatMap(row => row.mcp?.outstanding ?? []).map(call => `${call.name}@${call.outstandingMs}ms`);
141
- const observed = ledger.rows.some(row => row.mcp !== undefined);
142
- const mcp = blocked.length ? `blocked on ${blocked.join(', ')}` : observed ? 'no outstanding MCP call' : 'no MCP observation';
143
- // The other channel the worker can be idle on: a GET SSE tunnel still
144
- // open when the turn died, with its age and whether the mount ever
145
- // pushed through it. A row that never observed tunnels says nothing
146
- // here rather than reporting a zero nobody measured.
147
- const tunnels = ledger.rows.flatMap(row => row.mcp?.tunnels === undefined ? [] : [row.mcp.tunnels]);
148
- const open = tunnels.flatMap(tunnel => tunnel.open).map(tunnel => `${tunnel.openMs}ms/${tunnel.delivered ? 'delivered' : 'silent'}`);
149
- const get = !tunnels.length ? '' : open.length
150
- ? `, GET tunnel open ${open.join(', ')}`
151
- : `, GET tunnels ${tunnels.reduce((total, tunnel) => total + tunnel.closed, 0)}/${tunnels.reduce((total, tunnel) => total + tunnel.opened, 0)} closed`;
152
- return `Broker turn seal: ${last?.outcome ?? 'unknown'}${last?.code ? `/${last.code}` : ''}, ${mcp}${get}`;
153
- })();
154
- try {
155
- await emit(wakeId, { type: 'diagnostic', text, native: ledger });
156
- }
157
- catch { /* never fails an already-failed turn */ }
158
- },
159
- async terminal(wakeId, result) {
160
- const usage = account(wakeId, result.native.accounting?.usage ?? result.native.usage, result.completedAt);
161
- await publishUsage();
162
- await emit(wakeId, { type: 'diagnostic', text: `Native execution ${result.status}`, native: result }, result.completedAt);
163
- // Operator-only, and a diagnostic on purpose: the wake text and the reply
164
- // must never become this trial's output, a captured call or a judge input.
165
- // A transcript the engine never wrote, or a runtime home already recycled,
166
- // is silence rather than an empty capture that reads like evidence.
167
- if (engine === 'grok') {
168
- // Observed usage is the metered record of real spend; a diagnostic read
169
- // of the engine's own transcript must never be able to fail the turn
170
- // that produced it. Its failure is itself published.
171
- let transcript;
172
- let failure;
173
- // The trace this frame NAMES, never whichever one leads the list: a trial
174
- // that defers publishes a frame per wake, and reading another wake's trace
175
- // here would caption this wake's transcript with that wake's digest.
176
- try {
177
- transcript = await readNativeTranscript(runtimeHome, result.native.traces.find(row => row.turn_id === result.executionId));
178
- }
179
- catch (error) {
180
- failure = error instanceof Error ? error.message : String(error);
181
- }
182
- if (transcript) {
183
- await emit(wakeId, { type: 'diagnostic', text: 'Native engine transcript captured', native: transcript }, result.completedAt);
184
- }
185
- else if (failure) {
186
- await emit(wakeId, { type: 'diagnostic', text: `Native engine transcript capture failed: ${failure}` }, result.completedAt);
187
- }
188
- }
189
- return usage;
190
- },
191
- };
192
- }
193
- export function aggregateUsage(rows) {
194
- if (!rows.length)
195
- return null;
196
- const sum = (values) => {
197
- const value = values.reduce((total, item) => total + item, 0);
198
- if (!Number.isSafeInteger(value) || value < 0)
199
- throw new Error('Native token aggregate is invalid');
200
- return value;
201
- };
202
- const grok = rows.filter((row) => row.engine === 'grok');
203
- if (!grok.length) {
204
- return { inputTokens: sum(rows.map(row => row.input)), cachedInputTokens: sum(rows.map(row => row.cache_read)), outputTokens: sum(rows.map(row => row.output)),
205
- reasoningTokens: null, source: 'noopolis.daimon.turn-usage.v1' };
206
- }
207
- if (grok.length !== rows.length)
208
- throw new Error('Native usage mixes engines');
209
- // Grok buckets are disjoint; Training's inputTokens counts every prompt-side token, with reads and writes as subsets.
210
- if (!grok.every(row => plausibleNotionalUsd(row.notional_usd)))
211
- throw new Error('Native notional USD is outside its per-turn plausibility bound');
212
- const notionalUsd = grok.reduce((total, row) => total + row.notional_usd, 0);
213
- return { inputTokens: sum(grok.flatMap(row => [row.input, row.cache_read, row.cache_write])), cachedInputTokens: sum(grok.map(row => row.cache_read)),
214
- cacheWriteInputTokens: sum(grok.map(row => row.cache_write)), outputTokens: sum(grok.map(row => row.output)), reasoningTokens: null,
215
- notionalUsd, source: 'noopolis.daimon.turn-usage.v1' };
216
- }
217
- //# sourceMappingURL=observations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"observations.js","sourceRoot":"","sources":["../../../../../src/runtime/daimon/training/native/observations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG3E,MAAM,UAAU,oBAAoB,CAAC,KAAmB,EAAE,WAAmB,EAAE,OAAe,EAAE,SAA2B,OAAO;IAChI,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,MAAM,SAAS,GAAG,IAAI,GAAG,EAAuB,CAAC;IACjD,wEAAwE;IACxE,2EAA2E;IAC3E,MAAM,OAAO,GAAG,IAAI,GAAG,EAAe,CAAC;IACvC,IAAI,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IACxC,MAAM,WAAW,GAAG,CAAC,MAAc,EAAE,KAAsF,EACzH,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAe,EAAE;QACrD,GAAG,EAAE,CAAC;QACN,OAAO,eAAe,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC,OAAO,WAAW,GAAG,EAAE,EAAE,MAAM,EAAE,wBAAwB,EAAE,GAAG;YAClG,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC;IACF,+EAA+E;IAC/E,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,IAA4B,EAAE,SAAkB,EAAE,EAAE;QACnF,MAAM,KAAK,GAAG,IAAI,GAAG,EAAuB,CAAC;QAC7C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,G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C,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,EAAE,YAAY,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI;QACnI,WAAW,EAAE,MAAM,EAAE,+BAA+B,EAAE,CAAC;AAC3D,CAAC"}
@@ -1,13 +0,0 @@
1
- import { type TerminalEvidence, type TransportDeliverySource } from './worker/index.js';
2
- import type { VerifiedNativeLaunch } from './receipt/index.js';
3
- /** Runtime-local protected files, one per admitted wake; no filesystem discovery by consumers. */
4
- export interface NativeTurnEvidence {
5
- schema: 'spawnfile.training.daimon-native.evidence.v1';
6
- wakes: {
7
- wakeId: string;
8
- executionId: string;
9
- executionIds: string[];
10
- evidenceFile: string;
11
- }[];
12
- }
13
- export declare function admittedNativeEvidence(value: TerminalEvidence, launch: VerifiedNativeLaunch, trialId: string, wakeId: string, ordinal: number, file: string, source: TransportDeliverySource | undefined, deliveries: Set<string>, wakeTimeoutMs?: number): NativeTurnEvidence['wakes'][number] | undefined;