@intentic/machine 1.429.0 → 1.431.0

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 (438) hide show
  1. package/README.md +364 -21
  2. package/dist/admin/elevated.d.ts +29 -0
  3. package/dist/admin/elevated.d.ts.map +1 -0
  4. package/dist/admin/elevated.js +49 -0
  5. package/dist/admin/elevated.js.map +1 -0
  6. package/dist/ci-fleet/client.d.ts +8 -0
  7. package/dist/ci-fleet/client.d.ts.map +1 -0
  8. package/dist/ci-fleet/client.js +49 -0
  9. package/dist/ci-fleet/client.js.map +1 -0
  10. package/dist/ci-fleet/commands.d.ts +3 -0
  11. package/dist/ci-fleet/commands.d.ts.map +1 -0
  12. package/dist/ci-fleet/commands.js +74 -0
  13. package/dist/ci-fleet/commands.js.map +1 -0
  14. package/dist/ci-fleet/config.d.ts +45 -0
  15. package/dist/ci-fleet/config.d.ts.map +1 -0
  16. package/dist/ci-fleet/config.js +39 -0
  17. package/dist/ci-fleet/config.js.map +1 -0
  18. package/dist/ci-fleet/context.d.ts +28 -0
  19. package/dist/ci-fleet/context.d.ts.map +1 -0
  20. package/dist/ci-fleet/context.js +63 -0
  21. package/dist/ci-fleet/context.js.map +1 -0
  22. package/dist/ci-fleet/discover.d.ts +28 -0
  23. package/dist/ci-fleet/discover.d.ts.map +1 -0
  24. package/dist/ci-fleet/discover.js +193 -0
  25. package/dist/ci-fleet/discover.js.map +1 -0
  26. package/dist/ci-fleet/fleet-holds.d.ts +17 -0
  27. package/dist/ci-fleet/fleet-holds.d.ts.map +1 -0
  28. package/dist/ci-fleet/fleet-holds.js +20 -0
  29. package/dist/ci-fleet/fleet-holds.js.map +1 -0
  30. package/dist/ci-fleet/fleet-install.d.ts +13 -0
  31. package/dist/ci-fleet/fleet-install.d.ts.map +1 -0
  32. package/dist/ci-fleet/fleet-install.js +99 -0
  33. package/dist/ci-fleet/fleet-install.js.map +1 -0
  34. package/dist/ci-fleet/fleet-service.d.ts +7 -0
  35. package/dist/ci-fleet/fleet-service.d.ts.map +1 -0
  36. package/dist/ci-fleet/fleet-service.js +147 -0
  37. package/dist/ci-fleet/fleet-service.js.map +1 -0
  38. package/dist/ci-fleet/fleet.d.ts +5 -0
  39. package/dist/ci-fleet/fleet.d.ts.map +1 -0
  40. package/dist/ci-fleet/fleet.js +64 -0
  41. package/dist/ci-fleet/fleet.js.map +1 -0
  42. package/dist/ci-fleet/janitor/buildkit.d.ts +5 -0
  43. package/dist/ci-fleet/janitor/buildkit.d.ts.map +1 -0
  44. package/dist/ci-fleet/janitor/buildkit.js +58 -0
  45. package/dist/ci-fleet/janitor/buildkit.js.map +1 -0
  46. package/dist/ci-fleet/janitor/git-repack.d.ts +3 -0
  47. package/dist/ci-fleet/janitor/git-repack.d.ts.map +1 -0
  48. package/dist/ci-fleet/janitor/git-repack.js +64 -0
  49. package/dist/ci-fleet/janitor/git-repack.js.map +1 -0
  50. package/dist/ci-fleet/janitor/janitor-config.d.ts +20 -0
  51. package/dist/ci-fleet/janitor/janitor-config.d.ts.map +1 -0
  52. package/dist/ci-fleet/janitor/janitor-config.js +19 -0
  53. package/dist/ci-fleet/janitor/janitor-config.js.map +1 -0
  54. package/dist/ci-fleet/janitor/janitor-fs.d.ts +41 -0
  55. package/dist/ci-fleet/janitor/janitor-fs.d.ts.map +1 -0
  56. package/dist/ci-fleet/janitor/janitor-fs.js +147 -0
  57. package/dist/ci-fleet/janitor/janitor-fs.js.map +1 -0
  58. package/dist/ci-fleet/janitor/janitor-run.d.ts +19 -0
  59. package/dist/ci-fleet/janitor/janitor-run.d.ts.map +1 -0
  60. package/dist/ci-fleet/janitor/janitor-run.js +24 -0
  61. package/dist/ci-fleet/janitor/janitor-run.js.map +1 -0
  62. package/dist/ci-fleet/janitor/janitor.d.ts +8 -0
  63. package/dist/ci-fleet/janitor/janitor.d.ts.map +1 -0
  64. package/dist/ci-fleet/janitor/janitor.js +97 -0
  65. package/dist/ci-fleet/janitor/janitor.js.map +1 -0
  66. package/dist/ci-fleet/janitor/pass-record.d.ts +11 -0
  67. package/dist/ci-fleet/janitor/pass-record.d.ts.map +1 -0
  68. package/dist/ci-fleet/janitor/pass-record.js +19 -0
  69. package/dist/ci-fleet/janitor/pass-record.js.map +1 -0
  70. package/dist/ci-fleet/janitor/runner-cleanup.d.ts +3 -0
  71. package/dist/ci-fleet/janitor/runner-cleanup.d.ts.map +1 -0
  72. package/dist/ci-fleet/janitor/runner-cleanup.js +119 -0
  73. package/dist/ci-fleet/janitor/runner-cleanup.js.map +1 -0
  74. package/dist/ci-fleet/janitor/shared-caches.d.ts +5 -0
  75. package/dist/ci-fleet/janitor/shared-caches.d.ts.map +1 -0
  76. package/dist/ci-fleet/janitor/shared-caches.js +101 -0
  77. package/dist/ci-fleet/janitor/shared-caches.js.map +1 -0
  78. package/dist/ci-fleet/keeper/fleet-keeper.d.ts +27 -0
  79. package/dist/ci-fleet/keeper/fleet-keeper.d.ts.map +1 -0
  80. package/dist/ci-fleet/keeper/fleet-keeper.js +117 -0
  81. package/dist/ci-fleet/keeper/fleet-keeper.js.map +1 -0
  82. package/dist/ci-fleet/keeper/keeper-config.d.ts +5 -0
  83. package/dist/ci-fleet/keeper/keeper-config.d.ts.map +1 -0
  84. package/dist/ci-fleet/keeper/keeper-config.js +5 -0
  85. package/dist/ci-fleet/keeper/keeper-config.js.map +1 -0
  86. package/dist/ci-fleet/paths.d.ts +14 -0
  87. package/dist/ci-fleet/paths.d.ts.map +1 -0
  88. package/dist/ci-fleet/paths.js +14 -0
  89. package/dist/ci-fleet/paths.js.map +1 -0
  90. package/dist/ci-fleet/protocol.d.ts +134 -0
  91. package/dist/ci-fleet/protocol.d.ts.map +1 -0
  92. package/dist/ci-fleet/protocol.js +27 -0
  93. package/dist/ci-fleet/protocol.js.map +1 -0
  94. package/dist/ci-fleet/prune/prune-config.d.ts +12 -0
  95. package/dist/ci-fleet/prune/prune-config.d.ts.map +1 -0
  96. package/dist/ci-fleet/prune/prune-config.js +11 -0
  97. package/dist/ci-fleet/prune/prune-config.js.map +1 -0
  98. package/dist/ci-fleet/prune/prune.d.ts +16 -0
  99. package/dist/ci-fleet/prune/prune.d.ts.map +1 -0
  100. package/dist/ci-fleet/prune/prune.js +201 -0
  101. package/dist/ci-fleet/prune/prune.js.map +1 -0
  102. package/dist/ci-fleet/prune/stopped-containers.d.ts +4 -0
  103. package/dist/ci-fleet/prune/stopped-containers.d.ts.map +1 -0
  104. package/dist/ci-fleet/prune/stopped-containers.js +36 -0
  105. package/dist/ci-fleet/prune/stopped-containers.js.map +1 -0
  106. package/dist/ci-fleet/register.d.ts +17 -0
  107. package/dist/ci-fleet/register.d.ts.map +1 -0
  108. package/dist/ci-fleet/register.js +162 -0
  109. package/dist/ci-fleet/register.js.map +1 -0
  110. package/dist/ci-fleet/slots/ci-locks.d.ts +7 -0
  111. package/dist/ci-fleet/slots/ci-locks.d.ts.map +1 -0
  112. package/dist/ci-fleet/slots/ci-locks.js +62 -0
  113. package/dist/ci-fleet/slots/ci-locks.js.map +1 -0
  114. package/dist/ci-fleet/slots/decide.d.ts +19 -0
  115. package/dist/ci-fleet/slots/decide.d.ts.map +1 -0
  116. package/dist/ci-fleet/slots/decide.js +27 -0
  117. package/dist/ci-fleet/slots/decide.js.map +1 -0
  118. package/dist/ci-fleet/slots/sandbox-memory.d.ts +6 -0
  119. package/dist/ci-fleet/slots/sandbox-memory.d.ts.map +1 -0
  120. package/dist/ci-fleet/slots/sandbox-memory.js +41 -0
  121. package/dist/ci-fleet/slots/sandbox-memory.js.map +1 -0
  122. package/dist/ci-fleet/slots/slot-lock.d.ts +9 -0
  123. package/dist/ci-fleet/slots/slot-lock.d.ts.map +1 -0
  124. package/dist/ci-fleet/slots/slot-lock.js +66 -0
  125. package/dist/ci-fleet/slots/slot-lock.js.map +1 -0
  126. package/dist/ci-fleet/slots/slots-config.d.ts +10 -0
  127. package/dist/ci-fleet/slots/slots-config.d.ts.map +1 -0
  128. package/dist/ci-fleet/slots/slots-config.js +9 -0
  129. package/dist/ci-fleet/slots/slots-config.js.map +1 -0
  130. package/dist/ci-fleet/slots/slots.d.ts +12 -0
  131. package/dist/ci-fleet/slots/slots.d.ts.map +1 -0
  132. package/dist/ci-fleet/slots/slots.js +124 -0
  133. package/dist/ci-fleet/slots/slots.js.map +1 -0
  134. package/dist/ci-fleet/sys.d.ts +15 -0
  135. package/dist/ci-fleet/sys.d.ts.map +1 -0
  136. package/dist/ci-fleet/sys.js +36 -0
  137. package/dist/ci-fleet/sys.js.map +1 -0
  138. package/dist/ci-fleet/units.d.ts +9 -0
  139. package/dist/ci-fleet/units.d.ts.map +1 -0
  140. package/dist/ci-fleet/units.js +93 -0
  141. package/dist/ci-fleet/units.js.map +1 -0
  142. package/dist/ci-fleet/update.d.ts +6 -0
  143. package/dist/ci-fleet/update.d.ts.map +1 -0
  144. package/dist/ci-fleet/update.js +50 -0
  145. package/dist/ci-fleet/update.js.map +1 -0
  146. package/dist/cli.js +2 -0
  147. package/dist/cli.js.map +1 -1
  148. package/dist/commands.d.ts.map +1 -1
  149. package/dist/commands.js +6 -0
  150. package/dist/commands.js.map +1 -1
  151. package/dist/config.d.ts +1 -0
  152. package/dist/config.d.ts.map +1 -1
  153. package/dist/config.js +1 -0
  154. package/dist/config.js.map +1 -1
  155. package/dist/daemon-base.d.ts +3 -2
  156. package/dist/daemon-base.d.ts.map +1 -1
  157. package/dist/daemon-base.js +15 -8
  158. package/dist/daemon-base.js.map +1 -1
  159. package/dist/device/commands.d.ts.map +1 -1
  160. package/dist/device/commands.js +15 -1
  161. package/dist/device/commands.js.map +1 -1
  162. package/dist/device/connection.d.ts +1 -1
  163. package/dist/device/connection.d.ts.map +1 -1
  164. package/dist/device/connection.js +1 -1
  165. package/dist/device/connection.js.map +1 -1
  166. package/dist/device/grant.d.ts +103 -0
  167. package/dist/device/grant.d.ts.map +1 -1
  168. package/dist/device/indicator.d.ts +15 -0
  169. package/dist/device/indicator.d.ts.map +1 -1
  170. package/dist/device/indicator.js +89 -39
  171. package/dist/device/indicator.js.map +1 -1
  172. package/dist/device/mcp.d.ts +7 -1
  173. package/dist/device/mcp.d.ts.map +1 -1
  174. package/dist/device/mcp.js +30 -13
  175. package/dist/device/mcp.js.map +1 -1
  176. package/dist/device/policy.d.ts +16 -1
  177. package/dist/device/policy.d.ts.map +1 -1
  178. package/dist/device/policy.js +52 -13
  179. package/dist/device/policy.js.map +1 -1
  180. package/dist/device/protected-places.d.ts +8 -0
  181. package/dist/device/protected-places.d.ts.map +1 -0
  182. package/dist/device/protected-places.js +48 -0
  183. package/dist/device/protected-places.js.map +1 -0
  184. package/dist/device/remote/commands.d.ts +7 -0
  185. package/dist/device/remote/commands.d.ts.map +1 -0
  186. package/dist/device/remote/commands.js +80 -0
  187. package/dist/device/remote/commands.js.map +1 -0
  188. package/dist/device/remote/remote.d.ts +49 -0
  189. package/dist/device/remote/remote.d.ts.map +1 -0
  190. package/dist/device/remote/remote.js +328 -0
  191. package/dist/device/remote/remote.js.map +1 -0
  192. package/dist/device/remote/remoted-binary.d.ts +19 -0
  193. package/dist/device/remote/remoted-binary.d.ts.map +1 -0
  194. package/dist/device/remote/remoted-binary.js +91 -0
  195. package/dist/device/remote/remoted-binary.js.map +1 -0
  196. package/dist/device/remote/remoted-control.d.ts +49 -0
  197. package/dist/device/remote/remoted-control.d.ts.map +1 -0
  198. package/dist/device/remote/remoted-control.js +137 -0
  199. package/dist/device/remote/remoted-control.js.map +1 -0
  200. package/dist/device/remote/remoted-files.d.ts +85 -0
  201. package/dist/device/remote/remoted-files.d.ts.map +1 -0
  202. package/dist/device/remote/remoted-files.js +105 -0
  203. package/dist/device/remote/remoted-files.js.map +1 -0
  204. package/dist/device/remote/remoted-service.d.ts +60 -0
  205. package/dist/device/remote/remoted-service.d.ts.map +1 -0
  206. package/dist/device/remote/remoted-service.js +207 -0
  207. package/dist/device/remote/remoted-service.js.map +1 -0
  208. package/dist/device/remote/remoted-spawn.d.ts +4 -0
  209. package/dist/device/remote/remoted-spawn.d.ts.map +1 -0
  210. package/dist/device/remote/remoted-spawn.js +68 -0
  211. package/dist/device/remote/remoted-spawn.js.map +1 -0
  212. package/dist/device/remote/remoted.d.ts +53 -0
  213. package/dist/device/remote/remoted.d.ts.map +1 -0
  214. package/dist/device/remote/remoted.js +328 -0
  215. package/dist/device/remote/remoted.js.map +1 -0
  216. package/dist/device/router.d.ts +87 -0
  217. package/dist/device/router.d.ts.map +1 -1
  218. package/dist/device/router.js +16 -2
  219. package/dist/device/router.js.map +1 -1
  220. package/dist/device/sandbox-rounds/engine-disk.d.ts +27 -0
  221. package/dist/device/sandbox-rounds/engine-disk.d.ts.map +1 -1
  222. package/dist/device/sandbox-rounds/engine-disk.js +93 -8
  223. package/dist/device/sandbox-rounds/engine-disk.js.map +1 -1
  224. package/dist/device/sandbox-rounds/ic-swaps.d.ts +4 -1
  225. package/dist/device/sandbox-rounds/ic-swaps.d.ts.map +1 -1
  226. package/dist/device/sandbox-rounds/ic-swaps.js +24 -1
  227. package/dist/device/sandbox-rounds/ic-swaps.js.map +1 -1
  228. package/dist/device/sandbox-rounds/keeper.d.ts +2 -0
  229. package/dist/device/sandbox-rounds/keeper.d.ts.map +1 -1
  230. package/dist/device/sandbox-rounds/keeper.js +22 -6
  231. package/dist/device/sandbox-rounds/keeper.js.map +1 -1
  232. package/dist/device/sandbox-rounds/runner-keeper.d.ts +6 -2
  233. package/dist/device/sandbox-rounds/runner-keeper.d.ts.map +1 -1
  234. package/dist/device/sandbox-rounds/runner-keeper.js +15 -8
  235. package/dist/device/sandbox-rounds/runner-keeper.js.map +1 -1
  236. package/dist/device/tools/admin/admin-run.d.ts +36 -0
  237. package/dist/device/tools/admin/admin-run.d.ts.map +1 -0
  238. package/dist/device/tools/admin/admin-run.js +89 -0
  239. package/dist/device/tools/admin/admin-run.js.map +1 -0
  240. package/dist/device/tools/agent.d.ts.map +1 -1
  241. package/dist/device/tools/agent.js +22 -9
  242. package/dist/device/tools/agent.js.map +1 -1
  243. package/dist/device/tools/apps.d.ts.map +1 -1
  244. package/dist/device/tools/apps.js +5 -2
  245. package/dist/device/tools/apps.js.map +1 -1
  246. package/dist/device/tools/ci-runners/ci-runners.d.ts +5 -0
  247. package/dist/device/tools/ci-runners/ci-runners.d.ts.map +1 -0
  248. package/dist/device/tools/ci-runners/ci-runners.js +74 -0
  249. package/dist/device/tools/ci-runners/ci-runners.js.map +1 -0
  250. package/dist/device/tools/copy/file-copy.d.ts.map +1 -1
  251. package/dist/device/tools/copy/file-copy.js +7 -1
  252. package/dist/device/tools/copy/file-copy.js.map +1 -1
  253. package/dist/device/tools/describe.d.ts +2 -1
  254. package/dist/device/tools/describe.d.ts.map +1 -1
  255. package/dist/device/tools/describe.js +48 -10
  256. package/dist/device/tools/describe.js.map +1 -1
  257. package/dist/device/tools/elements.d.ts.map +1 -1
  258. package/dist/device/tools/elements.js +4 -1
  259. package/dist/device/tools/elements.js.map +1 -1
  260. package/dist/device/tools/files.d.ts.map +1 -1
  261. package/dist/device/tools/files.js +4 -2
  262. package/dist/device/tools/files.js.map +1 -1
  263. package/dist/device/tools/ic-binary.d.ts +4 -0
  264. package/dist/device/tools/ic-binary.d.ts.map +1 -1
  265. package/dist/device/tools/ic-binary.js +9 -4
  266. package/dist/device/tools/ic-binary.js.map +1 -1
  267. package/dist/device/tools/ic-serve/ic-read.d.ts +5 -0
  268. package/dist/device/tools/ic-serve/ic-read.d.ts.map +1 -0
  269. package/dist/device/tools/ic-serve/ic-read.js +17 -0
  270. package/dist/device/tools/ic-serve/ic-read.js.map +1 -0
  271. package/dist/device/tools/ic-serve/ic-serve.d.ts +31 -0
  272. package/dist/device/tools/ic-serve/ic-serve.d.ts.map +1 -0
  273. package/dist/device/tools/ic-serve/ic-serve.js +236 -0
  274. package/dist/device/tools/ic-serve/ic-serve.js.map +1 -0
  275. package/dist/device/tools/listing/ic-readings.d.ts +17 -0
  276. package/dist/device/tools/listing/ic-readings.d.ts.map +1 -0
  277. package/dist/device/tools/listing/ic-readings.js +49 -0
  278. package/dist/device/tools/listing/ic-readings.js.map +1 -0
  279. package/dist/device/tools/listing/sandbox-fleet.d.ts +7 -0
  280. package/dist/device/tools/listing/sandbox-fleet.d.ts.map +1 -0
  281. package/dist/device/tools/listing/sandbox-fleet.js +76 -0
  282. package/dist/device/tools/listing/sandbox-fleet.js.map +1 -0
  283. package/dist/device/tools/move/sandbox-move.d.ts.map +1 -1
  284. package/dist/device/tools/move/sandbox-move.js +1 -1
  285. package/dist/device/tools/move/sandbox-move.js.map +1 -1
  286. package/dist/device/tools/programs/isolated.d.ts +1 -0
  287. package/dist/device/tools/programs/isolated.d.ts.map +1 -1
  288. package/dist/device/tools/programs/isolated.js +2 -0
  289. package/dist/device/tools/programs/isolated.js.map +1 -1
  290. package/dist/device/tools/sandboxes.d.ts +3 -5
  291. package/dist/device/tools/sandboxes.d.ts.map +1 -1
  292. package/dist/device/tools/sandboxes.js +13 -56
  293. package/dist/device/tools/sandboxes.js.map +1 -1
  294. package/dist/device/tools/shell.d.ts +7 -1
  295. package/dist/device/tools/shell.d.ts.map +1 -1
  296. package/dist/device/tools/shell.js +28 -1
  297. package/dist/device/tools/shell.js.map +1 -1
  298. package/dist/environments/windows-crash-events.d.ts +20 -4
  299. package/dist/environments/windows-crash-events.d.ts.map +1 -1
  300. package/dist/environments/windows-crash-events.js +70 -20
  301. package/dist/environments/windows-crash-events.js.map +1 -1
  302. package/dist/environments/windows-memory.d.ts +7 -2
  303. package/dist/environments/windows-memory.d.ts.map +1 -1
  304. package/dist/environments/windows-memory.js +23 -3
  305. package/dist/environments/windows-memory.js.map +1 -1
  306. package/dist/environments/wsl-cache-drop.d.ts +1 -0
  307. package/dist/environments/wsl-cache-drop.d.ts.map +1 -1
  308. package/dist/environments/wsl-cache-drop.js +11 -4
  309. package/dist/environments/wsl-cache-drop.js.map +1 -1
  310. package/dist/install.d.ts +1 -1
  311. package/dist/install.d.ts.map +1 -1
  312. package/dist/install.js +10 -2
  313. package/dist/install.js.map +1 -1
  314. package/dist/keyring/service.d.ts +2 -9
  315. package/dist/keyring/service.d.ts.map +1 -1
  316. package/dist/keyring/service.js +14 -42
  317. package/dist/keyring/service.js.map +1 -1
  318. package/dist/power/apply.d.ts +40 -0
  319. package/dist/power/apply.d.ts.map +1 -0
  320. package/dist/power/apply.js +104 -0
  321. package/dist/power/apply.js.map +1 -0
  322. package/dist/power/host-power.d.ts +40 -0
  323. package/dist/power/host-power.d.ts.map +1 -0
  324. package/dist/power/host-power.js +106 -0
  325. package/dist/power/host-power.js.map +1 -0
  326. package/dist/power/linux.d.ts +30 -0
  327. package/dist/power/linux.d.ts.map +1 -0
  328. package/dist/power/linux.js +114 -0
  329. package/dist/power/linux.js.map +1 -0
  330. package/dist/power/macos.d.ts +11 -0
  331. package/dist/power/macos.d.ts.map +1 -0
  332. package/dist/power/macos.js +43 -0
  333. package/dist/power/macos.js.map +1 -0
  334. package/dist/power/power-command.d.ts +14 -0
  335. package/dist/power/power-command.d.ts.map +1 -0
  336. package/dist/power/power-command.js +186 -0
  337. package/dist/power/power-command.js.map +1 -0
  338. package/dist/power/windows-findings.d.ts +4 -0
  339. package/dist/power/windows-findings.d.ts.map +1 -0
  340. package/dist/power/windows-findings.js +128 -0
  341. package/dist/power/windows-findings.js.map +1 -0
  342. package/dist/power/windows-reading.d.ts +88 -0
  343. package/dist/power/windows-reading.d.ts.map +1 -0
  344. package/dist/power/windows-reading.js +138 -0
  345. package/dist/power/windows-reading.js.map +1 -0
  346. package/dist/power/words.d.ts +4 -0
  347. package/dist/power/words.d.ts.map +1 -0
  348. package/dist/power/words.js +11 -0
  349. package/dist/power/words.js.map +1 -0
  350. package/dist/power/writes.d.ts +59 -0
  351. package/dist/power/writes.d.ts.map +1 -0
  352. package/dist/power/writes.js +87 -0
  353. package/dist/power/writes.js.map +1 -0
  354. package/dist/release/security-hint.d.ts +4 -0
  355. package/dist/release/security-hint.d.ts.map +1 -0
  356. package/dist/release/security-hint.js +23 -0
  357. package/dist/release/security-hint.js.map +1 -0
  358. package/dist/resident/io-pool.d.ts +5 -0
  359. package/dist/resident/io-pool.d.ts.map +1 -0
  360. package/dist/resident/io-pool.js +18 -0
  361. package/dist/resident/io-pool.js.map +1 -0
  362. package/dist/resident/memory-log.d.ts +49 -0
  363. package/dist/resident/memory-log.d.ts.map +1 -0
  364. package/dist/resident/memory-log.js +149 -0
  365. package/dist/resident/memory-log.js.map +1 -0
  366. package/dist/resident/other-accounts.d.ts +13 -0
  367. package/dist/resident/other-accounts.d.ts.map +1 -0
  368. package/dist/resident/other-accounts.js +44 -0
  369. package/dist/resident/other-accounts.js.map +1 -0
  370. package/dist/resident/resident.d.ts.map +1 -1
  371. package/dist/resident/resident.js +10 -2
  372. package/dist/resident/resident.js.map +1 -1
  373. package/dist/resident/supervision.d.ts.map +1 -1
  374. package/dist/resident/supervision.js +1 -1
  375. package/dist/resident/supervision.js.map +1 -1
  376. package/dist/status.d.ts +2 -0
  377. package/dist/status.d.ts.map +1 -1
  378. package/dist/status.js +7 -3
  379. package/dist/status.js.map +1 -1
  380. package/dist/sync/binary/mutagen-binary.d.ts +14 -0
  381. package/dist/sync/binary/mutagen-binary.d.ts.map +1 -1
  382. package/dist/sync/binary/mutagen-binary.js +135 -19
  383. package/dist/sync/binary/mutagen-binary.js.map +1 -1
  384. package/dist/sync/bridge/git-bridge.d.ts +18 -1
  385. package/dist/sync/bridge/git-bridge.d.ts.map +1 -1
  386. package/dist/sync/bridge/git-bridge.js +132 -40
  387. package/dist/sync/bridge/git-bridge.js.map +1 -1
  388. package/dist/sync/changes/change-follow.d.ts +16 -0
  389. package/dist/sync/changes/change-follow.d.ts.map +1 -0
  390. package/dist/sync/changes/change-follow.js +65 -0
  391. package/dist/sync/changes/change-follow.js.map +1 -0
  392. package/dist/sync/changes/sync-changes.d.ts +39 -0
  393. package/dist/sync/changes/sync-changes.d.ts.map +1 -0
  394. package/dist/sync/changes/sync-changes.js +146 -0
  395. package/dist/sync/changes/sync-changes.js.map +1 -0
  396. package/dist/sync/commands.d.ts.map +1 -1
  397. package/dist/sync/commands.js +24 -17
  398. package/dist/sync/commands.js.map +1 -1
  399. package/dist/sync/config.d.ts +2 -0
  400. package/dist/sync/config.d.ts.map +1 -1
  401. package/dist/sync/config.js +11 -0
  402. package/dist/sync/config.js.map +1 -1
  403. package/dist/sync/holds.d.ts +2 -2
  404. package/dist/sync/holds.d.ts.map +1 -1
  405. package/dist/sync/holds.js +4 -3
  406. package/dist/sync/holds.js.map +1 -1
  407. package/dist/sync/mirror.d.ts +8 -1
  408. package/dist/sync/mirror.d.ts.map +1 -1
  409. package/dist/sync/mirror.js +55 -30
  410. package/dist/sync/mirror.js.map +1 -1
  411. package/dist/sync/mutagen.d.ts +9 -0
  412. package/dist/sync/mutagen.d.ts.map +1 -1
  413. package/dist/sync/mutagen.js +31 -2
  414. package/dist/sync/mutagen.js.map +1 -1
  415. package/dist/sync/report.d.ts +1 -1
  416. package/dist/sync/report.d.ts.map +1 -1
  417. package/dist/sync/report.js +3 -3
  418. package/dist/sync/report.js.map +1 -1
  419. package/dist/sync/setup/setup-verdict.d.ts +15 -0
  420. package/dist/sync/setup/setup-verdict.d.ts.map +1 -0
  421. package/dist/sync/setup/setup-verdict.js +64 -0
  422. package/dist/sync/setup/setup-verdict.js.map +1 -0
  423. package/dist/sync/ssh.d.ts +2 -1
  424. package/dist/sync/ssh.d.ts.map +1 -1
  425. package/dist/sync/ssh.js +2 -32
  426. package/dist/sync/ssh.js.map +1 -1
  427. package/dist/upgrade.d.ts +1 -0
  428. package/dist/upgrade.d.ts.map +1 -1
  429. package/dist/upgrade.js +34 -3
  430. package/dist/upgrade.js.map +1 -1
  431. package/dist/upkeep/manifest.d.ts.map +1 -1
  432. package/dist/upkeep/manifest.js +2 -1
  433. package/dist/upkeep/manifest.js.map +1 -1
  434. package/dist/upkeep/other-account.d.ts +3 -0
  435. package/dist/upkeep/other-account.d.ts.map +1 -0
  436. package/dist/upkeep/other-account.js +13 -0
  437. package/dist/upkeep/other-account.js.map +1 -0
  438. package/package.json +9 -9
package/README.md CHANGED
@@ -15,6 +15,13 @@ flowchart LR
15
15
 
16
16
  - One resident process per environment (`resident.ts`) serves both halves and re-reads its state every tick. A login
17
17
  entry from [local-agent](../local-agent) restarts it; inside a WSL distro the Windows side does.
18
+ - (2026-11-24) **One agent per computer, whichever account installed it.** The pidfile, `machine-id` and links live
19
+ under the installing account's home, so they alone made the singleton one per home: a connect one-liner pasted as
20
+ root on a machine where a user's agent already ran put a second agent beside it, a second computer to the sandboxes.
21
+ `setup` now reads the process table and refuses beside another account's agent, naming it and how to run the command
22
+ as that account instead (`INTENTIC_SECOND_AGENT=1` keeps both on purpose), and upkeep reports one on every pass
23
+ ([`resident/other-accounts.ts`](src/resident/other-accounts.ts)). Linux and macOS; Windows' agent is per user by its
24
+ login entry.
18
25
  - (2026-10-15) **Before anyone signs in**, on Windows: `intentic-machine before-sign-in on` asks Windows (one UAC
19
26
  prompt on that PC) for a boot task that starts the agent when the PC starts, with no session
20
27
  ([`autostart/before-sign-in.ts`](src/autostart/before-sign-in.ts)). That agent serves what needs no desktop, its
@@ -57,6 +64,31 @@ flowchart LR
57
64
  project already runs under is refused. Reading and driving need "Run commands"; a deploy also needs "Run programs
58
65
  this sandbox sends". Nothing here runs `down`, `rm` or `-v`, and `uninstall --purge` keeps `stacks/` as the person's
59
66
  data (`ic uninstall`, which removes `~/.intentic` whole, does not).
67
+ - (2026-11-24) **Self-hosted CI runners** ([`src/ci-fleet/`](src/ci-fleet), tools in
68
+ [`tools/ci-runners/`](src/device/tools/ci-runners/ci-runners.ts), contract `schemas/ci-fleet.ts`): the GitHub Actions
69
+ runners on a Linux computer or WSL distro, read and driven from the Pipelines view's Runners section in place of the
70
+ hand-run scripts in `docs/ops/ci-runner.md`. `ci_runners` reads them as this account, with no root: every
71
+ `actions.runner.*.service` unit file, one `systemctl show` for all of them, each folder's `.runner` and `bin` link, a
72
+ live `Runner.Worker` under the folder as the job (named from the worker log's `jobDisplayName`), and runner folders
73
+ under the janitor's glob whose `.service` names a unit systemd no longer has, as `not-installed` (z440's four on
74
+ 2026-11-24, their units gone since 2026-11-09 while the folders stayed). Everything that needs root goes through the
75
+ **fleet service**, `intentic-ci-fleet.service`: `intentic-machine ci-fleet serve`, run as root from a root-owned copy in
76
+ `/usr/local/lib/intentic-ci`, asked over `/run/intentic-ci/fleet.sock` (0660, the agent account's group) with one JSON
77
+ line per request from a closed list of verbs (`ci-fleet/protocol.ts`). It is installed once with `sudo intentic-machine
78
+ ci-fleet install --user <account> [--prune] [--slots-usable N]`, which downloads this agent's release binary and checks
79
+ it against the release's signed `SHA256SUMS` (a build from source names one with `--binary`), writes
80
+ `/etc/intentic-ci/fleet.json`, and disables the units it replaces (`intentic-ci-janitor.timer`,
81
+ `intentic-ci-prune.timer`, `intentic-ci-test-slots.service`). It follows the agent's version, said on every read,
82
+ through a signed release only, never by copying the person's binary (`ci-fleet/update.ts`). Its rounds: the drains
83
+ (every 3 s), the keeper (a runner unit that is down and not held down on purpose is started, with a doubling wait),
84
+ the janitor and the host prune (`fleet-janitor.sh` and `linux-host-prune.sh`, ported rule for rule), and the slot
85
+ holder, which holds slots of CI's test-memory pool for the Intentic sandboxes on the same engine so CI's tests size
86
+ themselves from what the sandboxes leave, never the gate band. `ci_runner_action` starts, stops, drains or restarts a
87
+ runner: `stop` refuses one running a job, `drain` and `restart` wait for it, and a runner stopped from here is held
88
+ down (`/var/lib/intentic-ci/holds.json`) until started from here. `ci_runner_register` downloads the runner release
89
+ the computer's runners already run, checks it against the SHA-256 its release notes publish, and runs `config.sh` and
90
+ `svc.sh` as the runner's account. The registration token the sandbox minted is redacted from the audit log and from
91
+ every error. `ci_runner_remove` is destructive: it unregisters the runner and moves its folder into the service's trash.
60
92
  - What the agent has been shown of the screen is kept for the process's life
61
93
  ([`tools/view.ts`](src/device/tools/view.ts)): each screenshot is a frame with an id, shrunk to what a model reads
62
94
  whole, and a coordinate is read in the newest frame and mapped back to desktop pixels, so one naming an older frame
@@ -67,6 +99,27 @@ flowchart LR
67
99
  pasted or set into a field that the command classifier reads as destructive needs "Run destructive commands",
68
100
  as running it would. The sandbox also judges that text with the owner's safety policy before it crosses
69
101
  (`hosts/host-command-guard.ts`, `typedInCall`).
102
+ - (2026-11-23) **Run as administrator, with no UAC prompt** ([`tools/admin/admin-run.ts`](src/device/tools/admin/admin-run.ts)).
103
+ `run_command` with `admin: true` on Windows runs the same PowerShell invocation through
104
+ `intentic-remoted service admin-run`: the SYSTEM helper of remoted's Windows service (below, "The lock screen and
105
+ administrator prompts") starts it with the signed-in person's own administrator token in their session, which is
106
+ what clicking Yes on UAC gives (their profile and HKCU, windows on their desktop), and stdout, stderr and the exit
107
+ code come back as an ordinary run's do. It needs `shell`, then the card's own "Run commands as administrator"
108
+ switch (`admin`, default off), on top of the destructive and sandbox checks every command answers to. Refused here
109
+ off Windows, with `in` (root in a WSL distro needs no administrator: `wsl -d <distro> -u root`), and with the
110
+ switch off. remoted answers in a `--status` file: a command that did not run fails the call with its reason in
111
+ words (the service not set up or too old, its helper not running, nobody signed in, a standard account). The
112
+ command's environment is the person's own, fresh, so the `INTENTIC_AGENT_COMMAND` mark does not cross. The owner's
113
+ yes for each run is the daemon's card (`hosts/admin/host-admin-ask.ts`), which only a conversation's auto-approve mark
114
+ answers by itself; `why` is read there for the card and never here. Once it is answered the daemon adds `grant` to
115
+ the call: the sandbox's signature over the command's digest, five minutes, one use
116
+ ([`policy/admin/admin-grant.ts`](../../_shared/sandbox-contract/src/policy/admin/admin-grant.ts)), passed on as `--grant`. The
117
+ service runs nothing without one that verifies under a key it pinned at install (`remoteService` install fetches
118
+ the asking sandbox's signing key from its own address, `GET /keyring/keys`, and passes it as `--trust`), so a
119
+ program of the person's that reaches the service's pipe still cannot run anything as administrator. The agent advertises `admin-run` where it
120
+ advertises `remote-service`. Rejected: clicking Yes on the UAC prompt through the screen (consent nobody gives,
121
+ and no telling whose prompt it is), and `Start-Process -Verb RunAs`, which waits for somebody at the computer and
122
+ hands no output back.
70
123
  - (2026-11-03) **A web page on this machine's own GPU** ([`tools/browser/`](src/device/tools/browser), schemas in
71
124
  `tools.ts`). A sandbox renders WebGL and WebGPU in software: the shinobi sandbox's agents waited 176 s for a
72
125
  game to load, timed 6-11 s a frame, hand-built raw CDP clients in `/tmp`, and could not see a bug that showed only on
@@ -123,7 +176,9 @@ flowchart LR
123
176
  own process group like every `ic` flow. The agent advertises `sandbox-move` exactly when the ic it drives does
124
177
  (`ic features --json`), so an older ic is never sent the ops.
125
178
  - The sandbox tools are thin callers of `ic` ([`tools/sandboxes.ts`](src/device/tools/sandboxes.ts)): the listing is
126
- `ic sandbox list --json` passed through (a sandbox is named by any column it shows: slug, 12-hex sandbox id,
179
+ `ic sandbox list --json` passed through, one listing shared by every caller in this process and held 30 s, dropped by
180
+ any `ic` run of this agent that changes something ([`tools/listing/ic-readings.ts`](src/device/tools/listing/ic-readings.ts),
181
+ 2026-11-24; a move's collision check asks fresh) (a sandbox is named by any column it shows: slug, 12-hex sandbox id,
127
182
  container name or the owner's name, whatever the case, by `findIn` in
128
183
  [`tools/listing/find-sandbox.ts`](src/device/tools/listing/find-sandbox.ts), and by ic itself for the verbs that skip
129
184
  the listing; a name two sandboxes share is refused naming both), and start, stop, restart, the swaps, `set-shape`, `forget-shape` and the
@@ -151,7 +206,7 @@ flowchart LR
151
206
  is not ([`tools/ic-binary.ts`](src/device/tools/ic-binary.ts)), since a new verb here arrives with a new verb there.
152
207
  A fetch that fails is logged with its reason and reported in the device's facts (`icOutOfDate`, beside `features`),
153
208
  so a stale `ic` explains why logs and saving a shape are missing; the next sandbox action tries again.
154
- - (2026-10-13) **On Intentic OS** (a machine with `/usr/lib/intentic-os/release.json`; see [_os](../../_os/README.md))
209
+ - (2026-10-13) **On Intentic OS** (a machine with `/usr/lib/intentic-os/release.json`; see [_hosts](../../_hosts/README.md))
155
210
  the agent also serves the OS tools ([`tools/os/os.ts`](src/device/tools/os/os.ts)), thin callers of `ic os` with the
156
211
  contract's argv and schemas (`icOsUpdateArgs`, `IntenticOsStatusSchema`): `os_status`, read-only and gated like the
157
212
  listing; `os_update`, whose `check` is a read too, `stage` downloads for the next boot and `apply` reboots into it;
@@ -235,8 +290,26 @@ flowchart LR
235
290
  changed last, which no interval bounds. Each scan that finds a change is a cycle here, and a cycle's cost follows
236
291
  the size of the tree rather than of the change: the daemon reads the sandbox's whole snapshot again and reconciles
237
292
  all of it. This device's side watches for real, but Mutagen's watcher wakes on every write under the folder, ignored
238
- paths included, so the backup landing in `.intentic` wakes the workspace session too. The report reads every session
239
- in one `sync list`.
293
+ paths included, so the backup landing in `.intentic` wakes the workspace session too. Each pass reads every session
294
+ in one `sync list`, shared by the holds check and the report (`PassListing`, [`sync/mutagen.ts`](src/sync/mutagen.ts)).
295
+
296
+ (2026-11-24) **A sandbox that says when it changed is scanned only as a backstop.** Its daemon already watches
297
+ `/work` (one recursive watcher, batches 250 ms apart), and `GET /system/sync/changes` holds a request open until a
298
+ batch holds a path the workspace session carries, judged by the same `IGNORES`, which now live in
299
+ `@intentic/sandbox-contract/sync/workspace-sync-ignores` for both ends. The watcher follows it, one held request per
300
+ syncing sandbox ([`sync/changes/change-follow.ts`](src/sync/changes/change-follow.ts), [`sync/changes/sync-changes.ts`](src/sync/changes/sync-changes.ts)),
301
+ and asks Mutagen for a cycle (`sync flush --skip-wait`) when it moves: 100 ms after the first signal, one flush in
302
+ flight, at least 2 s apart, so a file written without pause costs no more than the 2-second scan did. A sandbox
303
+ that answers it is recorded on its pairings (`changeSignalSince`), and their sessions poll at 30 s
304
+ (`SIGNALLED_POLL_SECONDS`) for what the signal cannot see: a change made while the follow reconnected, or one under a
305
+ folder the daemon's watcher prunes and this session carries (`.yarn`, the Python tools' caches). The new interval is
306
+ drift like any other rule, so an existing session is replaced once, from a settled state. An older sandbox answers
307
+ the route 403 (its sync token reaches no route it never declared) or 404, keeps the 2-second scan, and is asked again
308
+ every 10 minutes. A failed ask changes no record, so an outage recreates nothing; the first answer after one asks
309
+ for a cycle. Measured before it: the sandbox's synchronizer spent 3.6% of a core around the clock scanning ~18k
310
+ entries every 2 s. Pushing over the device link was rejected: there the device serves and the sandbox calls, so it
311
+ would need a procedure on the device for each sandbox to call, where a long poll needs nothing new on either side's
312
+ link.
240
313
 
241
314
  (2026-10-02) Measured on Windows with Mutagen 0.18.1, its daemon isolated and a container standing in for the
242
315
  sandbox (a 9k-file workspace, a 15k-entry state dir with three transcripts growing by 6 KB a second, an edit every
@@ -311,8 +384,10 @@ flowchart LR
311
384
  before `set-shape` (v1.312.0 and older), and go in v1.314.0.
312
385
  - Every path under the user's home goes through `homeDir()` from [local-agent](../local-agent), which follows a `HOME`
313
386
  set after startup; a check holds the sources to it ([home-dir](../../_tools/checks/home-dir.mjs)).
314
- - Scopes are enforced here and nowhere else: the sandbox only asks, and a refusal names the switch that is off.
315
- Files stay inside the configured roots, writes need their own switch, and every call is appended to
387
+ - Scopes are enforced here and nowhere else: the sandbox only asks, and a refusal names the switch that is off. The
388
+ owner sets the switches through the sandbox, which pushes the grant on every connect (`setScopes`), so this agent
389
+ holds every call to the grant as it stands; it cannot tell a grant the owner chose from one a compromised sandbox
390
+ pushed. Files stay inside the configured roots, writes need their own switch, and every call is appended to
316
391
  `~/.intentic/machine/audit.jsonl`, set aside as `audit.jsonl.1` once it reaches 8 MB (2026-10-05: it grew without
317
392
  limit; the writer rolls it itself, and the [upkeep](#upkeep) does for an agent that wrote nothing lately). While an
318
393
  agent drives input on Windows, a notice shows on screen and
@@ -320,6 +395,44 @@ flowchart LR
320
395
  (`runAgentFlow`, [`device/tools/agent.ts`](src/device/tools/agent.ts)): no agent tool reaches it, and the sandbox
321
396
  admits only a maintainer to it, so the owner's maintenance does not wait on the agents' "Run commands" (2026-09-29;
322
397
  it rode that switch before, and an owner had to widen what agents may do to update the agent).
398
+ - Adding a tool: a tool is one `tool({ name, description, effect, input, run })` in the `TOOLS` list of
399
+ [`device/mcp.ts`](src/device/mcp.ts) (or the list of its own module that `TOOLS` spreads in). One whose arguments
400
+ carry a program (a command line, a program with arguments, a target `open` may spawn, text typed where a terminal
401
+ could run it) is built with `programTool` instead, which compiles only for a name in the contract's
402
+ `DEVICE_PROGRAM_TOOLS` table ([`policy/device-programs.ts`](../../_shared/sandbox-contract/src/policy/device-programs.ts)),
403
+ so add its row there first: the row says where its program is, and it is what the daemon's gate judges.
404
+ `mcp.integration.test.ts` holds the tools built with `programTool` equal to that table, and makes a `destructive`
405
+ tool that carries nothing say why in its list of exceptions.
406
+ - Adding a switch: it is one field of `DeviceScopesSchema`
407
+ ([`schemas/capabilities.ts`](../../_shared/sandbox-contract/src/schemas/capabilities.ts)), with its default. Tests
408
+ build a grant with `grantWith(["shell", …], extra)` from [`device/device-testing.ts`](src/device/device-testing.ts)
409
+ (`"agent"` for the six agent switches), and source and daemon tests with the contract's `deviceScopesOn`: both read
410
+ the schema's keys, so a new switch is off everywhere it is not named and no test needs an edit for it. The daemon's
411
+ setup grant (`SETUP_HOST_SCOPES`) is the one place spelled out on purpose, and its test fails until someone decides
412
+ whether a setup-connected machine gets the new switch.
413
+ - (2026-11-24) **Protected places** ([`device/protected-places.ts`](src/device/protected-places.ts)): even inside the
414
+ allowed folders, the file tools (read, list, write, edit, trash, `devices copy` both ways, a command's working folder)
415
+ refuse `~/.ssh`, `~/.gnupg`, `~/.aws`, `~/.azure`, gcloud's config, `~/.kube`, `~/.docker/config.json`, `~/.netrc`,
416
+ `~/.git-credentials`, `~/.pgpass`, `~/.claude/.credentials.json`, `~/.intentic` (link tokens, the sync key, the
417
+ keyring's vault), the OS keychains, Chrome, Chromium, Edge, Brave and Firefox profiles on all three systems, and
418
+ Windows' `Credentials`, `Vault` and `Protect` folders. Judged after links are resolved (a place that is itself a link
419
+ protects where it leads), and on Windows and macOS without regard to case; a folder taken whole (a copy off, a copy
420
+ merged onto it, the trash) is refused while it holds one. The owner opens a place by naming it, or a folder inside
421
+ it, as a line of "Folders it may touch"; a line that merely holds it, the home folder included, does not. Reads had
422
+ needed no switch and defaulted to the whole home folder, so an agent could read SSH keys and this agent's own link
423
+ tokens. The files the sandbox's provider-key import reads (`.hermes`, `.openclaw`, `.codex/auth.json`,
424
+ `.gemini/.env`, opencode's `auth.json`) are not protected.
425
+ - (2026-11-24) **`clipboard` reads a length, never the text**: what the owner copied is as likely to be a password as
426
+ anything typed. Its comment had said so while it returned the whole text. `focus_window` and `ui_elements` take only
427
+ a window id in a spelling a window list hands out (desktop-automation's `isWindowId`): Windows' focus put the id into
428
+ a double-quoted PowerShell string, where `$(…)` runs.
429
+ - (2026-11-24) **A loopback daemon is dialled only once it proves itself** ([`daemon-base.ts`](src/daemon-base.ts)). The
430
+ agent prefers `127.0.0.1:<port derived from the sandbox id>` for the link, remoted's uplink and folder sync, and used
431
+ to trust any listener whose `/health` echoed the id: another account or container on that port took the link token
432
+ from the first frame and pushed itself a grant. Now each probe sends a fresh challenge with a key naming the
433
+ credential it is about to send (the link token, or the sync token), and only a daemon that keeps that credential's
434
+ digest answers it, on its loopback port alone (sandbox-contract `protocol/doors/loopback-proof.ts`). No proof, or a
435
+ daemon from before it, and the public address is dialled. Redeeming a pairing always goes to the public address.
323
436
  - Every connection dials out; the only listeners are on loopback. One of them is short-lived: while a sandbox's
324
437
  sign-in is open, [`device/loopback-catch.ts`](src/device/loopback-catch.ts) listens on the
325
438
  `http://localhost:<port>/…` address the provider redirects to, the one a CLI running here would have held, and
@@ -335,18 +448,25 @@ flowchart LR
335
448
  the cache its builds and pulls leave as memory taken from Windows, and `.wslconfig`'s autoMemoryReclaim returns it
336
449
  only once WSL is idle: on 2026-11-02 rog had 1.1 GB available while the VM held 20 GB, half of it cache, and froze
337
450
  for 43 s. Each tick reads Windows' available memory (`os.freemem()`, which is ullAvailPhys there); under 1.5 GiB or a
338
- tenth of the machine, whichever is more, and at most once every five minutes, it runs `sync; echo 1 >
339
- /proc/sys/vm/drop_caches` as root in one running distro (the user's own first, else docker-desktop: every distro shares
340
- the one kernel). WSL is never booted for this: with nothing in `wsl.exe --list --running` there is no cache to give.
341
- The agent's log gets one line per drop with what Windows had before and five seconds after. The same side answers the
451
+ tenth of the machine, whichever is more, and at most once every five minutes, it runs `sync; echo 3 >
452
+ /proc/sys/vm/drop_caches` and compacts memory as root in one running distro (the user's own first, else
453
+ docker-desktop: every distro shares the one kernel). Under a fifth of the machine it drops at most every 30 minutes.
454
+ WSL is never booted for this: with nothing in `wsl.exe --list --running` there is no cache to give.
455
+ The agent's log gets one line per drop with what Windows had before and five seconds after. (2026-11-24) A drop that
456
+ gave Windows back less than 0.5 GiB doubles the wait before the next one under the tenth-of-the-machine line, up to an
457
+ hour; one that gave back more, or Windows climbing over a fifth of the machine, brings the five minutes back, and under
458
+ 1.5 GiB they hold regardless. rog's Windows never left that line while its VM kept the 22 GB `.wslconfig` gives it: 287
459
+ drops in 39 hours, five minutes apart, a median 0.2 GiB back each, and each one cost every sandbox up to 8.5 GB of
460
+ cache read back from disk. The same side answers the
342
461
  sandbox's heartbeat (`ping`) with Windows' available and total memory, which the sandbox's heavy-command gate holds
343
462
  work back on while this PC is the one running it ([sandbox README](../../_sandbox/sandbox/README.md)); a distro's agent
344
463
  and other platforms answer `{ ok: true }` as before.
345
464
  - (2026-11-03) The same heartbeat answer carries the GPU resets and crashes Windows logged in the last day
346
465
  (`crashes`, [`environments/windows-crash-events.ts`](src/environments/windows-crash-events.ts)). On 2026-11-02 a
347
466
  sandbox's browser rendered on rog's display GPU through WSL, the driver lost the device (LiveKernelEvent 0x141) and
348
- the PC powered off, and the sandbox could only say it had been killed without warning. One PowerShell, at most once a
349
- minute and never two at once, reads the event log: System's Display 4101 (a GPU timeout the driver recovered from),
467
+ the PC powered off, and the sandbox could only say it had been killed without warning. One PowerShell, at most every
468
+ five minutes (once a minute until 2026-11-24) and never two at once, reads the event log, filtered by the event log
469
+ service itself (`-FilterXPath`) and from the last record each log answered with, the whole day again every six hours: System's Display 4101 (a GPU timeout the driver recovered from),
350
470
  Kernel-Power 41 (rebooted without a clean shutdown) and WER-SystemErrorReporting 1001 (a bugcheck; 0x116, 0x117 and
351
471
  0x141 are the display driver's), and Application's Windows Error Reporting 1001 for a LiveKernelEvent whose P1 is
352
472
  141, 117 or 116. P1 193 is left out: rog writes a benign 193 live dump every few days. Each is a `gpu-reset` or a
@@ -370,6 +490,10 @@ put on localhost is still reported, with its reason:
370
490
  - `ignored`: this device was told to leave the number alone, by `intentic-machine sync mirror ignore --sandbox <id>
371
491
  --port <n>` (without `--sandbox`, for every pairing). `unignore` hands it back, and it is mirrored once it is free.
372
492
 
493
+ (2026-11-24) **The local-daemon band is never mirrored**: a port from 28000 to 31999 is where this agent dials a
494
+ sandbox's daemon over loopback (`isLocalDaemonPort` in sandbox-run), so a sandbox listening on one is neither mirrored
495
+ nor reported, even when asked for with `include`.
496
+
373
497
  (2026-11-03) **An agent's own server stays in the sandbox.** A port the sandbox's list names an agent's (`owner`: its
374
498
  shell, or a background job it ran) is not mirrored and not reported, unless the agent left the job running for the
375
499
  owner (`job`) or the owner asked for it on this device with `sync mirror include --port <n>` (`exclude` restores the
@@ -700,6 +824,16 @@ whose it is.
700
824
  exits 0 with a ref refused counts as failed, never as landed. Before 2026-10-21 every full clone behind a shallow
701
825
  sandbox was held for a day, then up to a week, including clones that held the cut commit. Leftovers older than an
702
826
  hour from an earlier agent are cleared once per process. Holds are in `status` and the report.
827
+ - **A quiet repo costs the bridge no SSH login** (2026-11-24, [`sync/bridge/git-bridge.ts`](src/sync/bridge/git-bridge.ts)).
828
+ The bridge asked every repo's branch and tip with `git ls-remote` over a fresh SSH login every five seconds, and
829
+ listed the repos with `ls /history/gits` every minute: two logins a second into a ten-repo sandbox, each one sshd,
830
+ PAM and a `git-upload-pack` there, plus six local gits per repo per pass here. A sandbox since then names every repo's
831
+ branch and tip on the `/ports` answer the watcher polls anyway (`bridgeHeads`, read off its git dirs' files,
832
+ [`bridge-heads.ts`](../../_sandbox/sandbox/src/git/remote/bridge-heads.ts)). Against it the bridge runs no
833
+ ls-remote and no listing, fetches only a repo whose advertised tip differs from the clone's, and keeps what it read of
834
+ a level clone with the stamps of the files those answers come from (`.git/config`, `HEAD`, `packed-refs`, the
835
+ branch's ref and its marker), so a repo nothing moved in costs no process; a pass whose poll failed leaves such a
836
+ sandbox's bridge be. Against a sandbox without the field, the bridge runs as before.
703
837
  - **A nearly full drive holds folder sync still** (2026-10-18, [`sync/low-disk.ts`](src/sync/low-disk.ts)). Every
704
838
  pass measures the drive holding each folder whose session writes there (not a copy-first project, which only sends).
705
839
  Under 2% of the drive, clamped to 5–20 GiB, the pairing's sync and git bridge hold still (`lowDisk`); they carry on
@@ -724,7 +858,9 @@ whose it is.
724
858
  `sandbox fix` past its deadline (below), which is not a swap. Every restart of the agent (the auto-upgrade
725
859
  tick, `upgrade`, `run`, the browser's Update and Restart) waits while `ic sandbox swaps --json` says a cutover is in
726
860
  progress, or while this process runs a flow that moves a container
727
- ([`device/sandbox-rounds/ic-swaps.ts`](src/device/sandbox-rounds/ic-swaps.ts)). The verdict is ic's own, heartbeat
861
+ ([`device/sandbox-rounds/ic-swaps.ts`](src/device/sandbox-rounds/ic-swaps.ts)). One answer serves every reader (the
862
+ mirror pass every 5 s, the probation watch, the keeper, the auto-upgrade), held while ic's channel records stay
863
+ unchanged and 30 s at most; the restart's own gate asks fresh (2026-11-24). The verdict is ic's own, heartbeat
728
864
  and all, and the command answers without Docker. An older ic that lacks it is read by a fallback that applies the
729
865
  same rule from the shared `swap-verdicts.json` fixture, marked `COMPAT(ic-swaps)`. The keeper skips a sandbox on the
730
866
  same answer. The agent no longer reads ic's records itself. The tick
@@ -735,7 +871,7 @@ whose it is.
735
871
  ic finishes or undoes an interrupted cutover and rolls a failing new version back; the agent logs what it did.
736
872
  The per-record watch runs in every environment, since only the environment that swapped holds the record, and so
737
873
  does the sweep: ic answers each environment only for the sandboxes it keeps (`HOST_PLATFORM` on the container,
738
- [`ic`'s side.rs](../../_sandbox/ic/src/sandbox/side.rs)).
874
+ [`ic`'s side.rs](../../_hosts/ic/src/sandbox/side.rs)).
739
875
  - **Daily**, in every environment, for the sandboxes it keeps: `ic sandbox backup <slug> --auto --json` for each
740
876
  running sandbox, one at a time, twenty to forty minutes after start (a supervised distro half an hour later than the
741
877
  root, so the two sides of a PC never read one engine's disks at once) and then every day, then one
@@ -823,7 +959,10 @@ daemon whose registration gave up, a full disk), the agent heals what is safe to
823
959
  clock.
824
960
 
825
961
  - **When.** `ic sandbox fix --auto --json --source agent` over every sandbox half a minute after the agent starts (the
826
- logon case: Docker Desktop is off by default after a reboot) and every five minutes, and `ic sandbox fix <slug> …` as
962
+ logon case: Docker Desktop is off by default after a reboot), then every five minutes while the look before it finds
963
+ something wrong (a sandbox of this side listed neither running nor asleep or with no container, Docker not answering,
964
+ the last sweep not clean) and every quarter hour otherwise (2026-11-24; under ic's 30-minute adoption window, since
965
+ each sweep writes the keeper's lease), and `ic sandbox fix <slug> …` as
827
966
  soon as the agent's link to a sandbox that runs on this machine has failed for a minute. A link's sandbox runs here
828
967
  when this environment's ic has a record of it or listed it (by its hostname's first label or the id in it, as sync's
829
968
  swap pause maps them), or when the agent has reached it over loopback.
@@ -876,7 +1015,8 @@ clock.
876
1015
  told, so the records stand in for the listing, which is the logon case the keeper is for.
877
1016
  - **Runners** ([`device/sandbox-rounds/runner-keeper.ts`](src/device/sandbox-rounds/runner-keeper.ts), 2026-11-09)
878
1017
  are kept by their link, not by `ic sandbox fix`: nobody opens a runner, and its parent cannot reach this machine's
879
- Docker, so nothing else would bring one back. Once a minute, for every runner this side keeps, a container that is not
1018
+ Docker, so nothing else would bring one back. Once a minute, for every runner this side keeps (one `docker exec` that
1019
+ reads its link, and a `docker inspect` only when that fails), a container that is not
880
1020
  running (asleep, stopped, exited) is started with `ic sandbox start`, and a running one whose link to its parent has
881
1021
  been down for ten minutes of the keeper watching is restarted with `ic sandbox restart`, but only while that parent
882
1022
  answers `/health` from this machine (otherwise it is asleep, restarting or gone, and the runner keeps dialling on its
@@ -939,10 +1079,78 @@ The keeper now puts an unneeded sandbox to sleep and wakes it when somebody open
939
1079
  daemon is up and fires it on the minute. A moment due within that lead and five minutes keeps the sandbox awake
940
1080
  instead. A sandbox the alarm woke that no person has used since sleeps again five minutes after the work is done. The
941
1081
  log says `something it scheduled is due` for such a start. The computer itself asleep or switched off still misses
942
- it: the daemon then fires it once, late, when it next starts (the scheduler's catch-up).
1082
+ it: the daemon then fires it once, late, when it next starts (the scheduler's catch-up; the computer's own sleep is
1083
+ [Power settings](#power-settings) below).
943
1084
  `intentic-machine sandbox sleep <slug>` puts one sandbox to sleep now. An `ic` without the verbs is said once and
944
1085
  nothing sleeps.
945
1086
 
1087
+ ### Power settings
1088
+
1089
+ (2026-11-22) The section above is about a SANDBOX asleep, which the keeper decides; this one is about the COMPUTER
1090
+ asleep, which its own OS decides, and which stops every sandbox on it at once. Two sandboxes on rog had conversations
1091
+ booked for the night. rog's power plan said "Sleep after (plugged in): 5 hours", so five hours after the last keypress,
1092
+ at 05:37 UTC, Windows took it from Modern Standby into real sleep, and nothing on it ran until its lid was opened at
1093
+ 10:01: a send booked for 07:10 went out three hours late, and nobody had been told this could happen. The owner chose
1094
+ not to hold the computer awake from software: the agent reads the settings that would stop work left running, says
1095
+ what each does, and changes them only at the owner's word ([`power/`](src/power)).
1096
+
1097
+ - **What is read.** Only by the environment that owns the settings: Windows' own side, a Linux host, a Mac, never a WSL
1098
+ distro (its computer is the Windows PC around it). On Windows, one PowerShell
1099
+ ([`windows-reading.ts`](src/power/windows-reading.ts)) reads four settings from EVERY power plan, since a vendor's
1100
+ tool switches plans by itself (rog's ASUS software moves between Performance, Balanced, Silent and Turbo): sleep after
1101
+ (STANDBYIDLE), hibernate after (HIBERNATEIDLE), the lid (LIDACTION) and the network in Modern Standby
1102
+ (CONNECTIVITYINSTANDBY), each on mains power and on battery. It also reads whether the PC has Modern Standby, a
1103
+ battery and a lid (CallNtPowerInformation, through Add-Type), Windows Update's active hours and the offset from UTC.
1104
+ `powercfg` prints its labels in the PC's language (owners run Polish and German Windows), so only its GUIDs and
1105
+ `0x` numbers are read: `powercfg /qh <plan> <subgroup> <setting>` ends, in every language, with the AC index and then
1106
+ the DC index. A setting a plan lacks reads as absent, never as an error. Measured on rog: about a second, most of it
1107
+ PowerShell starting. On Linux, all four sleep targets masked (`systemctl is-enabled`) means the computer cannot suspend
1108
+ at all (z440); otherwise logind's lid action on mains power (on a computer with a lid), logind's `IdleAction` and
1109
+ GNOME's idle suspend are read ([`linux.ts`](src/power/linux.ts)). On a Mac, `pmset -g custom`'s AC `sleep`
1110
+ ([`macos.ts`](src/power/macos.ts)).
1111
+ - **What it says.** Findings ([`windows-findings.ts`](src/power/windows-findings.ts), the contract's `HostPowerSchema`),
1112
+ each with a plain sentence of the agent's own, and the plans that hold it where that matters:
1113
+ - `sleep-idle` and `hibernate-idle`: a plan sleeps or hibernates the PC after a time without input on mains power,
1114
+ the shortest across plans (a value from 0x7FFFFFFF up counts as never);
1115
+ - `lid-close`: closing the lid on mains power sleeps, hibernates or shuts it down (only where there is a lid);
1116
+ - `standby-network`: on Modern Standby, a plan cuts the network while the screen is off, so whatever a sandbox calls
1117
+ out to fails;
1118
+ - `battery-sleep`: on battery it sleeps after a time or when the lid closes. Told, never changed: a laptop in a bag
1119
+ must still sleep;
1120
+ - `update-restart`: Windows Update may restart the PC outside its active hours (rog's 08:00 to 02:00 make 02:00 to
1121
+ 08:00), and after a restart nothing runs again until somebody signs in, since the agent and Docker Desktop start at
1122
+ sign-in. Told, never changed: the active hours are the owner's to pick;
1123
+ - `os-sleep`: Linux or macOS may suspend the computer. The fix needs root, so the finding carries the command
1124
+ (`sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target`, `sudo pmset -c sleep 0`)
1125
+ and the agent never runs it. A MacBook's lid sleeps it whatever the setting, unless an external display is attached.
1126
+ - **Where it goes.** The device's facts carry it as `power` (`describe` at every hello and every two minutes), so the
1127
+ sandbox can raise a card when work it booked would be slept through. A reading is kept half an hour (dropped at
1128
+ once when this agent's own stay-on or restore changed the settings) and an older one is answered while the next is
1129
+ read; the C# it loads for the native read is compiled once into a DLL under `~/.intentic/machine/cache` rather than on
1130
+ every reading; a read that fails is said once in `machine.log` and leaves the field absent until
1131
+ one works. `describe` says the findings in one line and that they are the owner's to change. The Windows side
1132
+ advertises `power`, the feature that says it takes the `power-stay-on` op.
1133
+ - **Stay-on** (Windows only, [`writes.ts`](src/power/writes.ts) decides, [`apply.ts`](src/power/apply.ts) does). The
1134
+ owner's yes on that card runs the `power-stay-on` op, which is `intentic-machine power stay-on` detached, as `upgrade`
1135
+ is. For every plan, on mains power only: sleep after and hibernate after to never, the lid to do nothing (where there
1136
+ is a lid), and on Modern Standby the network in standby from disabled to enabled. Only values that differ are written,
1137
+ so a second run writes nothing. Each goes through `powercfg /setacvalueindex`, which needs no elevation (checked on
1138
+ rog), and then `powercfg /setactive` on the active plan, which otherwise keeps what it had loaded. Battery values are
1139
+ never written. The run reads the settings again and says, per finding, whether it changed; one stay-on would change
1140
+ that is still there makes it exit 1.
1141
+ - **Put back.** Before the first write the values as they were go to `~/.intentic/machine/power-before.json`. An entry
1142
+ already there is never overwritten, since after the first stay-on a plan holds stay-on's own value, not the owner's: a
1143
+ later stay-on only adds what it had not saved. A snapshot that cannot be read stops the run before anything is
1144
+ written. `intentic-machine power restore` writes each saved value back where the plan still holds what stay-on wrote,
1145
+ leaves one the owner has changed since (and says so), reloads the active plan and removes the snapshot.
1146
+ - **Told at once.** Both runs touch `~/.intentic/machine/power-changed` when they wrote anything; the resident agent
1147
+ drops a reading older than it at the next ask and waits up to three seconds for a fresh one, and the op forgets it
1148
+ too as it ends. So the facts the daemon reads right after the owner's yes say what Windows now holds, whether the
1149
+ run was the op or a person in a terminal.
1150
+ - **By hand.** `intentic-machine power status [--json]` reads and shows the same findings (`--json`: the facts' `power`
1151
+ plus `ok` and `restorable`); `power stay-on` and `power restore` as above. In a WSL distro each verb is handed to the
1152
+ Windows side's agent. On Linux and macOS, `stay-on` changes nothing: it prints the finding's command and exits 1.
1153
+
946
1154
  ### The engine's disk
947
1155
 
948
1156
  (2026-11-03) On a Windows PC every sandbox and every compose project its owner runs on the intentic engine write to
@@ -951,15 +1159,25 @@ unrelated Postgres of the owner's PANICked on ENOSPC and stayed down. Nothing ha
951
1159
  tools show other disks, each sandbox's disk watch cleans only its own checkouts, and the daily tidy came too late. The
952
1160
  Windows side's agent now watches that disk
953
1161
  ([`device/sandbox-rounds/engine-disk.ts`](src/device/sandbox-rounds/engine-disk.ts)). ic does the measuring and the
954
- clearing ([`ic engine disk`](../../_sandbox/ic/README.md)); this keeps the clock and tells.
1162
+ clearing ([`ic engine disk`](../../_hosts/ic/README.md)); this keeps the clock and tells.
955
1163
 
956
- - **Every minute**, `ic engine disk --json`: one `df` in the distro, and the level it makes. `ok`; `low` under 10% of
1164
+ - **Every minute**, `ic engine disk --json` (at `ok`, every ten minutes while 20% or more is left, every five from 15%,
1165
+ and sooner when the last two readings say the space is going fast; 2026-11-24): the effective space, limited by the guest disk or the Windows drive holding
1166
+ the engine's VHDX, and the level it makes. When the Windows drive is limiting, the line names it and its free space
1167
+ (for example, `Windows drive C:\ has 18.5 GB free under the engine's disk (376.0 GB)`). `ok`; `low` under 10% of
957
1168
  the disk left to write; `critical` under 5%; `full` under the ballast the engine's keeper holds back (2% of the disk,
958
- 2 to 10 GiB, [engine README](../../_sandbox/ic/engine/README.md#its-disk)), which the keeper gives back the moment the
1169
+ 2 to 10 GiB, [engine README](../../_hosts/ic/engine/README.md#its-disk)), which the keeper gives back the moment the
959
1170
  disk reaches it. "Left to write" is what a process that is not root may still write, which is where a database in a
960
1171
  container stops. An engine that is not this PC's, a stopped one, or an ic too old to answer is said once and asked
961
1172
  again every ten minutes. Only the Windows side runs it: the engine is the PC's, and the distros' agents would watch
962
1173
  the same disk twice.
1174
+ - **Unreadable.** A failed read that points to I/O or a broken WSL attachment, or an `unreadable` answer from ic, is
1175
+ said once until a read succeeds. The line explains that the Windows drive may have filled and left WSL holding a
1176
+ broken attachment, and says to free space if the drive is short before running `ic engine restart --wsl`. That repair
1177
+ restarts Docker Desktop too. The watch checks again every ten minutes while the disk cannot be read.
1178
+ - **Compaction.** When more than both 50 GB and a quarter of the VHDX could be returned, the line says approximately
1179
+ how much `ic engine compact` could give back. It is said once while space is low, and is never run by the watch. Compaction
1180
+ needs one UAC prompt and stops sandboxes on the engine for a few minutes.
963
1181
  - **Cleared.** On each level crossed upwards, and every quarter hour while it stands at critical or full, `--relieve`
964
1182
  clears what is nobody's data for that level: dangling build cache and dangling images when low, all unused build
965
1183
  cache when critical, and when full the ballast first. Never a volume and never an image with a name. A clearing while
@@ -1080,6 +1298,31 @@ lists `machine.log`(`.1`), `machine-update.log`, `audit.jsonl`(`.1`) and ic's pe
1080
1298
  the audit `tool` and `failedOnly`. It is gated like `sandbox_logs`. `describe` names the `ic` that answers (path,
1081
1299
  version, file time) and the `IC_*`/`INTENTIC_*` variables in the agent's environment, secrets by length only.
1082
1300
 
1301
+ ### The agent's own memory
1302
+
1303
+ (2026-11-22) On rog, the Windows agent showed 520 MB of commit charge but held under 100 MB in RAM. Commit charge is
1304
+ memory Windows has promised a process and counts against RAM plus the page file. Most of the gap was threads: the
1305
+ compiled agent's runtime (Bun) runs file and DNS work on Windows in libuv's thread pool, sized by the CPU count, and
1306
+ each thread commits about 2.5 MB of stack and several MB of allocator heap that it barely touches. Concurrent file work
1307
+ grew the pool to about 45 threads, and they never left.
1308
+
1309
+ - **The pool is capped at 4 on Windows** ([`io-pool.ts`](src/resident/io-pool.ts)), the size libuv and Node use.
1310
+ libuv reads `UV_THREADPOOL_SIZE` once, when the pool first starts, so `cli.ts` imports this module first. It sets
1311
+ the variable only where nobody chose a size, starts the pool with one stat, and removes the variable again, so no
1312
+ program the agent starts inherits it. Measured with a probe doing the agent's kinds of work: 44 threads and 374 MB
1313
+ of commit uncapped, 26 threads and 206 MB capped, RAM no higher. Linux and macOS are left alone: there the runtime
1314
+ does not use libuv, and the probe saw no difference.
1315
+ - **The JavaScriptCore GC-marker threads** (`BUN_JSC_numberOfGCMarkers`) would save about 7 threads and 20 MB more, but
1316
+ the runtime reads that variable only at process start, before any of the agent's code runs. Setting it means a
1317
+ change in every supervisor that starts the agent, so it is not set.
1318
+ - **A memory reading every ten minutes** ([`memory-log.ts`](src/resident/memory-log.ts)) goes into
1319
+ `~/.intentic/machine/memory.jsonl`, one JSON line each, the newest week kept. The first comes a minute after the
1320
+ start, before sign-in too. Each reading has the process's own figures (`process.memoryUsage`: `rss` is the working
1321
+ set on Windows), the JavaScript heap as JavaScriptCore counts it with its twelve most numerous kinds of object
1322
+ (`bun:jsc` `heapStats`; absent under Node), and on Linux the thread count. Commit charge has no cheap reading from
1323
+ inside the process, so it is still read from outside. `status` shows the running agent's newest reading as its
1324
+ `memory` row, and `status --json` as `memory`. A reading from the agent before is left out.
1325
+
1083
1326
  ### The keyring
1084
1327
 
1085
1328
  [intentic-keyring](../keyring), the vault behind Passwords, is a process of its own beside this agent (2026-10-16):
@@ -1105,6 +1348,13 @@ release only through `keyring upgrade`, which downloads and checks the new binar
1105
1348
  the person), and only then swaps it, keeping `.previous` and putting it back if the new one does not answer; the new
1106
1349
  binary's `service install` then runs as an administrator, so the service's own copy follows.
1107
1350
 
1351
+ The administrator's yes is asked one way for everything this agent installs that needs it
1352
+ ([`admin/elevated.ts`](src/admin/elevated.ts), 2026-11-20, factored out of the keyring's setup when remote access's lock-screen
1353
+ service came to need the same): `Start-Process -Verb RunAs -WindowStyle Hidden -Wait` under PowerShell on Windows, each
1354
+ argument quoted as the program reads it back (Start-Process quotes nothing, so a path under a profile with a space would
1355
+ otherwise split), or `pkexec` on Linux; ten minutes for the person to answer, and UAC's "canceled by the user" (or
1356
+ pkexec's 126 and 127) read as a no rather than a failure.
1357
+
1108
1358
  On Windows the service's startup task and the helper's logon task run at normal priority (Task Scheduler's 5,
1109
1359
  2026-11-18), where this agent's own task stays below normal: a person waits on every answer the two carry, and a
1110
1360
  computer busy with containers starved them past the desktop app's deadline, so Passwords read as not answering and
@@ -1201,6 +1451,93 @@ where the agent is root. This agent decides whether a change asked from the edit
1201
1451
  sandboxes" can send the first one for a slug on this machine. A pin that looks wrong is reset here and pinned again
1202
1452
  from the editor.
1203
1453
 
1454
+ ### People's remote access (intentic-remoted)
1455
+
1456
+ (2026-11-20) A person in a sandbox's editor, never an agent, can see this computer's screen, use its mouse and keyboard,
1457
+ or open a terminal on it. One daemon per environment serves them, [intentic-remoted](../remoted): it dials each linked
1458
+ sandbox's `/system/device-uplink` and carries the view and the terminals over that uplink. An agent in a WSL distro runs
1459
+ its own Linux remoted, so that distro's terminals are native shells there; the sandbox shows the screen on the Windows
1460
+ side's connection only. The agent starts it only while
1461
+ some link wants it, and enforces the switches ([`device/remote/`](src/device/remote)).
1462
+
1463
+ - **The switches.** Three per link, apart from the agents' own and all off by default: "Let people see the screen"
1464
+ (`remoteView`), "Let people use the mouse and keyboard" (`remoteControl`) and "Let people open terminals"
1465
+ (`remoteTerminal`). Each link's uplink allows what that link's grant says. A grant pushed with one of them changed
1466
+ rewrites the uplink's `allow` at once, and remoted re-reads its config within half a second, so terminals that stay
1467
+ allowed are not cut; all three off drops the uplink.
1468
+ - **The procedures.** `remoteStart({ device, uplinkToken, mediaKey, iceServers? })` and `remoteStop()`, called by the
1469
+ daemon alone and only on an agent advertising `remote`; `iceServers` (the sandbox's `remoteIceServers` URLs) only to
1470
+ one advertising `remote-ice` as well, since the input is strict and an older agent would refuse the call. `remoteStart` is refused as `FORBIDDEN`, naming the three switches, while all
1471
+ three are off, and as `PRECONDITION_FAILED`, saying why, when no remoted can be had. Otherwise it writes the link's
1472
+ uplink under the next `generation`, starts remoted if it is not running, waits up to 10 s for its status to show the
1473
+ uplink `up` at that generation (not an `up` left from its last start), and answers remoted's version, what is allowed, the monitors and the environments. Past 10 s it answers
1474
+ `GATEWAY_TIMEOUT` with remoted's own last error for the uplink, which keeps dialling. `remoteStop` drops the link's
1475
+ uplink. Both are audited, never with the token or the key.
1476
+ - **The binary.** `bin/intentic-remoted`, the asset `intentic-remoted-<os>-<arch>` of the agent's own release (published
1477
+ for windows-amd64, linux-amd64 and linux-arm64), checked against the release's signed `SHA256SUMS` as the launcher
1478
+ and the keyring are. It is fetched on the first `remoteStart` that needs it, and again when the one in `bin/` answers
1479
+ `version` with another release than the agent's. A from-source agent never downloads: it takes
1480
+ `_devices/remoted/target/release/intentic-remoted` from its checkout. `INTENTIC_REMOTED_BIN` overrides both. The
1481
+ agent advertises `remote` only where one can be had: the override, one in `bin/`, or a published platform.
1482
+ - **The files.** `remoted.json` (0600, written whole by rename) holds `paused`, `notBefore` and one uplink per link:
1483
+ `id` (the link's sandbox URL), `url` (that sandbox's daemon as the link's own socket resolves it, loopback when it
1484
+ runs here), `device`, `uplinkToken`, `mediaKey`, `allow`, `generation` and, when the sandbox sent them, `iceServers` (the
1485
+ STUN servers remoted gathers its screens' outside address from; without them it offers host candidates only). An uplink not `up` for 30 s has its address
1486
+ resolved again, and rewritten if it moved. remoted prints a status line on stdout whenever anything in it changes, and
1487
+ the agent keeps the latest as `remoted-status.json`.
1488
+ - **The supervisor** ([`remote/remoted.ts`](src/device/remote/remoted.ts)) keeps one remoted per environment, and it
1489
+ outlives the agent (2026-11-24): an upgrade, a watchdog kill or a crash leaves people's terminals and the programs in
1490
+ them running. The agent first connects to the control endpoint ([`remote/remoted-control.ts`](src/device/remote/remoted-control.ts);
1491
+ `remoted.sock` beside its state, or a named pipe on Windows, owner-only) and adopts the remoted it finds there when
1492
+ both speak a control protocol; otherwise it starts `intentic-remoted run --config <path> --control <endpoint>`
1493
+ detached (its own session on Unix, no window on Windows), its stderr into `remoted.log`, and adopts that one. An
1494
+ adopted remoted sends its status and its log lines over the endpoint, so they land in the agent's log as
1495
+ `remoted: …` as before. When the agent leaves it lets go of remoted, running; the next agent adopts it. A remoted
1496
+ that speaks no protocol of this agent's is asked to stop and replaced; one of another build (after an upgrade) is
1497
+ kept while anything is open on it and replaced once nothing is, so an upgrade ends no terminal. A remoted binary from
1498
+ before the control endpoint (it has no `control-protocol` word), and every remoted of an agent running before anyone
1499
+ signed in (it has no desktop, and the session's agent must not adopt it), runs as before as the agent's child with
1500
+ `--parent-stdin`, ending with it: on Windows the terminals opened before sign-in still end at the sign-in's handover.
1501
+ An exit nobody asked for is logged with its code and last line, and it is looked for and started again after 1 s,
1502
+ doubling to a minute, back to 1 s after a run that held a minute. Once no uplink is left (a `remoteStop`, every switch
1503
+ off, the link removed or revoked) it is asked to stop, and killed 3 s later if it is still there. Unadopted, remoted
1504
+ leaves by itself after 60 s with nothing open, and after 10 minutes whatever is open (remoted's README). `uninstall`
1505
+ (and removing the last link) asks it to stop over the endpoint, and names the pid in `remoted.pid` if nothing answers
1506
+ there. An agent starting takes up the uplinks `remoted.json` held for links that still exist and still allow
1507
+ something, and drops the rest.
1508
+ - **The person at the computer.** On Windows, while anyone is connected, the agents' notice stays up and says so,
1509
+ naming the foremost kind: someone using the mouse and keyboard, else viewing, else in a terminal. (2026-11-20: ranked by
1510
+ the screen the person sits at, since a terminal shows whoever is connected nothing of it.) `Ctrl+Alt+Shift+P` pauses
1511
+ people's input as it pauses the agents', through the same `paused` file, which `remoted.json`'s `paused` follows.
1512
+ `intentic-machine remote end` sets `notBefore` to now, which drops everyone connected and refuses every way in handed
1513
+ out before it; `intentic-machine remote status [--json]` prints the latest status. People coming and going are audited
1514
+ (`remote-person`).
1515
+ - **Before sign-in** remoted runs as it does after it, so terminals work; nothing is promised of the screen, and no
1516
+ notice is put up.
1517
+ - **The lock screen and administrator prompts** (2026-11-20, Windows). remoted in the person's session cannot see or
1518
+ drive the secure desktop: the sign-in and lock screen, Ctrl+Alt+Del, UAC prompts. remoted's own Windows service can,
1519
+ and installing it needs an administrator, so it is opt-in: the device procedure `remoteService({ action })`
1520
+ ([`remote/remoted-service.ts`](src/device/remote/remoted-service.ts)), advertised as `remote-service` by a Windows
1521
+ agent that advertises `remote`. `status` runs `intentic-remoted service status` as the agent; `install` runs
1522
+ `intentic-remoted service install --client <bin/intentic-remoted>` (fetched first if it is not there, so the service
1523
+ serves the remoted this agent starts; again to update it) through ONE UAC prompt the person at the computer answers,
1524
+ waited on for up to ten minutes, then reads `status` again unelevated; the elevated run's own answer comes back
1525
+ through a file (`--result`), read for the reason when it failed. `uninstall` first runs `service uninstall`
1526
+ unelevated, which asks the running service through its helper to remove itself (taking the privilege away needs
1527
+ nobody's yes, and the person may not be at the computer), and goes through the prompt only when that cannot be done
1528
+ (remoted's exit 3). It answers `{ supported, reason?, installed,
1529
+ state?, version?, agentVersion?, outOfDate, helper?, declined?, error? }`: `version` is the service's, `agentVersion`
1530
+ what `intentic-remoted version` says of the agent's own remoted, and `outOfDate` that both are known and differ; a
1531
+ no at the prompt is `declined: true`, and a prompt that could not be shown, was not answered in time, or ran and did
1532
+ not leave the service as asked is `error`, in a sentence, beside the status read after it. One prompt is up at a
1533
+ time (a second change meanwhile is `CONFLICT`), none before anyone has signed in, and every change is audited
1534
+ (`remoteService`). Off Windows it answers `supported: false` without running anything. Who may ask: the daemon only,
1535
+ for a person with Full access to its sandbox, as for the switches; never a tool, so no agent can put a UAC prompt in
1536
+ front of the person, and no switch gates it, since the switches already bound what people may do through it.
1537
+ (2026-11-23) The same service runs an agent's command as administrator (`run_command`'s `admin`, above), so setting
1538
+ it up once is also what lets an agent do administrator work later with no prompt at this computer.
1539
+ `uninstall` of this agent does not remove the service yet.
1540
+
1204
1541
  ### Uninstall
1205
1542
 
1206
1543
  `intentic-machine uninstall [--purge] [--delete-data]` ([`src/uninstall/`](src/uninstall/)). `ic uninstall` is the one
@@ -1244,7 +1581,7 @@ person who runs it alone, and either way it never downloads anything.
1244
1581
 
1245
1582
  ## Key files
1246
1583
 
1247
- - [src/commands.ts](src/commands.ts) — the CLI: `device`, `sync`, `keyring`, `sandbox`, `egress`, `run`, `status`, `doctor`, `upgrade`, `updates`, `uninstall`.
1584
+ - [src/commands.ts](src/commands.ts) — the CLI: `device`, `sync`, `keyring`, `sandbox`, `egress`, `remote`, `power`, `ci-fleet`, `run`, `status`, `doctor`, `upgrade`, `updates`, `uninstall`.
1248
1585
  - [src/uninstall/purge.ts](src/uninstall/purge.ts) — `uninstall --purge`: the steps in `steps.ts`, the distros in `distros.ts`, the files in `sweep.ts`, every decision pure in `plan.ts`.
1249
1586
  - [src/resident/resident.ts](src/resident/resident.ts) — the resident process that holds links, pairings and WSL distros; `supervision.ts` beside it starts and stops it through whatever restarts this environment's agent.
1250
1587
  - [src/device/mcp.ts](src/device/mcp.ts) — every tool a sandbox can call on this device.
@@ -1256,9 +1593,13 @@ person who runs it alone, and either way it never downloads anything.
1256
1593
  - [src/environments/wsl-cache-drop.ts](src/environments/wsl-cache-drop.ts) — the WSL VM's file cache given back to Windows when Windows runs low; the decisions in `windows-memory.ts`.
1257
1594
  - [src/upkeep/manifest.ts](src/upkeep/manifest.ts) — what the device upkeep finds and puts right; `reconcile.ts` runs it.
1258
1595
  - [src/resident/watchdog.ts](src/resident/watchdog.ts) — the agent's own hang watchdog.
1596
+ - [src/resident/memory-log.ts](src/resident/memory-log.ts) — the agent's own memory, read every ten minutes into `memory.jsonl`; `status` shows the newest.
1597
+ - [src/resident/io-pool.ts](src/resident/io-pool.ts) — the I/O thread pool capped at 4 on Windows, before anything starts it.
1259
1598
  - [src/resident/pause-cause.ts](src/resident/pause-cause.ts) — what a pause the watchdog saw was: a sleep, a freeze or the clock.
1599
+ - [src/power/host-power.ts](src/power/host-power.ts) — what this computer's own power settings would do to work left running (the facts' `power`): Windows in `windows-reading.ts` and `windows-findings.ts`, Linux and macOS in `linux.ts` and `macos.ts`; `power stay-on` and `restore` decided in `writes.ts`, done in `apply.ts`, drawn in `power-command.ts`.
1260
1600
  - [src/release/release-verify.ts](src/release/release-verify.ts) — a downloaded release binary checked against the release's signed `SHA256SUMS`.
1261
1601
  - [src/device/egress/set-egress.ts](src/device/egress/set-egress.ts) — the `set-egress` op: a tightening as it comes, a loosening under the owner's passkey (`proof.ts`), checked against the pins in `pins.ts`; `follower.ts` keeps `ic sandbox egress --follow` running, `trust-command.ts` is `intentic-machine egress trust`.
1602
+ - [src/ci-fleet/fleet-service.ts](src/ci-fleet/fleet-service.ts) — the root CI fleet service and its socket; `discover.ts` reads the runners, `units.ts` drives them, `register.ts` adds and removes them, `fleet-install.ts` sets the service up, and `keeper/`, `janitor/`, `prune/` and `slots/` are its rounds.
1262
1603
  - [src/keyring/commands.ts](src/keyring/commands.ts) — `intentic-machine keyring …`; `service.ts` installs, starts, upgrades and removes intentic-keyring, `relay.ts` carries the sandbox's `keyring*` calls to its pipe.
1263
1604
 
1264
1605
  ## Commands
@@ -1268,4 +1609,6 @@ pnpm --filter @intentic/machine test
1268
1609
  pnpm turbo run build --filter=./_devices/machine
1269
1610
  node _devices/machine/dist/cli.js status
1270
1611
  node _devices/machine/dist/cli.js doctor # what the upkeep would do here; --fix does it
1612
+ node _devices/machine/dist/cli.js power status # what this computer's power settings would do to work left running
1613
+ node _devices/machine/dist/cli.js ci-fleet status # the CI runners here and what the fleet service last did
1271
1614
  ```
@@ -0,0 +1,29 @@
1
+ import { type ProcessResult } from "@intentic/base/process";
2
+ export declare const ELEVATED_TIMEOUT_MS: number;
3
+ export interface ElevatedCommand {
4
+ readonly command: string;
5
+ readonly args: readonly string[];
6
+ }
7
+ export declare const windowsArg: (arg: string) => string;
8
+ export declare const elevatedRun: (binary: string, args: readonly string[], platform?: NodeJS.Platform) => ElevatedCommand;
9
+ export declare const elevatedScriptCommand: (script: string, platform?: NodeJS.Platform) => ElevatedCommand;
10
+ export declare const approvalRefused: (exitCode: number | null, said: string, platform?: NodeJS.Platform) => boolean;
11
+ export type ElevatedOutcome = {
12
+ readonly kind: "done";
13
+ } | {
14
+ readonly kind: "unstarted";
15
+ readonly why: string;
16
+ } | {
17
+ readonly kind: "declined";
18
+ } | {
19
+ readonly kind: "failed";
20
+ readonly exitCode: number | null;
21
+ readonly said: string;
22
+ readonly timedOut: boolean;
23
+ };
24
+ type Runner = (command: string, args: readonly string[], options: {
25
+ readonly timeoutMs: number;
26
+ }) => Promise<ProcessResult>;
27
+ export declare const runAsAdministrator: (elevated: ElevatedCommand, run?: Runner, platform?: NodeJS.Platform) => Promise<ElevatedOutcome>;
28
+ export {};
29
+ //# sourceMappingURL=elevated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elevated.d.ts","sourceRoot":"","sources":["../../src/admin/elevated.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAc,MAAM,wBAAwB,CAAC;AAUxE,eAAO,MAAM,mBAAmB,QAAc,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAWD,eAAO,MAAM,UAAU,QAAS,MAAM,KAAG,MAKxC,CAAC;AAOF,eAAO,MAAM,WAAW,WAAY,MAAM,QAAQ,SAAS,MAAM,EAAE,aAAY,MAAM,CAAC,QAAQ,KAAsB,eAa5D,CAAC;AAMzD,eAAO,MAAM,qBAAqB,WAAY,MAAM,aAAY,MAAM,CAAC,QAAQ,KAAsB,eAa1C,CAAC;AAM5D,eAAO,MAAM,eAAe,aAAc,MAAM,GAAG,IAAI,QAAQ,MAAM,aAAY,MAAM,CAAC,QAAQ,KAAsB,OACjB,CAAC;AAGtG,MAAM,MAAM,eAAe,GACrB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAEvH,KAAK,MAAM,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,EAAE;IAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;AAG5H,eAAO,MAAM,kBAAkB,aACjB,eAAe,QACpB,MAAM,aACD,MAAM,CAAC,QAAQ,KAC1B,OAAO,CAAC,eAAe,CAUzB,CAAC"}