@intentic/machine 1.430.0 → 1.432.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.
- package/README.md +415 -34
- package/dist/autostart/before-sign-in.d.ts.map +1 -1
- package/dist/autostart/before-sign-in.js +2 -2
- package/dist/autostart/before-sign-in.js.map +1 -1
- package/dist/ci-fleet/client.d.ts +8 -0
- package/dist/ci-fleet/client.d.ts.map +1 -0
- package/dist/ci-fleet/client.js +49 -0
- package/dist/ci-fleet/client.js.map +1 -0
- package/dist/ci-fleet/commands.d.ts +3 -0
- package/dist/ci-fleet/commands.d.ts.map +1 -0
- package/dist/ci-fleet/commands.js +74 -0
- package/dist/ci-fleet/commands.js.map +1 -0
- package/dist/ci-fleet/config.d.ts +45 -0
- package/dist/ci-fleet/config.d.ts.map +1 -0
- package/dist/ci-fleet/config.js +39 -0
- package/dist/ci-fleet/config.js.map +1 -0
- package/dist/ci-fleet/context.d.ts +28 -0
- package/dist/ci-fleet/context.d.ts.map +1 -0
- package/dist/ci-fleet/context.js +63 -0
- package/dist/ci-fleet/context.js.map +1 -0
- package/dist/ci-fleet/discover.d.ts +28 -0
- package/dist/ci-fleet/discover.d.ts.map +1 -0
- package/dist/ci-fleet/discover.js +193 -0
- package/dist/ci-fleet/discover.js.map +1 -0
- package/dist/ci-fleet/fleet-holds.d.ts +17 -0
- package/dist/ci-fleet/fleet-holds.d.ts.map +1 -0
- package/dist/ci-fleet/fleet-holds.js +20 -0
- package/dist/ci-fleet/fleet-holds.js.map +1 -0
- package/dist/ci-fleet/fleet-install.d.ts +13 -0
- package/dist/ci-fleet/fleet-install.d.ts.map +1 -0
- package/dist/ci-fleet/fleet-install.js +99 -0
- package/dist/ci-fleet/fleet-install.js.map +1 -0
- package/dist/ci-fleet/fleet-service.d.ts +7 -0
- package/dist/ci-fleet/fleet-service.d.ts.map +1 -0
- package/dist/ci-fleet/fleet-service.js +147 -0
- package/dist/ci-fleet/fleet-service.js.map +1 -0
- package/dist/ci-fleet/fleet.d.ts +5 -0
- package/dist/ci-fleet/fleet.d.ts.map +1 -0
- package/dist/ci-fleet/fleet.js +64 -0
- package/dist/ci-fleet/fleet.js.map +1 -0
- package/dist/ci-fleet/janitor/buildkit.d.ts +5 -0
- package/dist/ci-fleet/janitor/buildkit.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/buildkit.js +58 -0
- package/dist/ci-fleet/janitor/buildkit.js.map +1 -0
- package/dist/ci-fleet/janitor/git-repack.d.ts +3 -0
- package/dist/ci-fleet/janitor/git-repack.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/git-repack.js +64 -0
- package/dist/ci-fleet/janitor/git-repack.js.map +1 -0
- package/dist/ci-fleet/janitor/janitor-config.d.ts +20 -0
- package/dist/ci-fleet/janitor/janitor-config.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/janitor-config.js +19 -0
- package/dist/ci-fleet/janitor/janitor-config.js.map +1 -0
- package/dist/ci-fleet/janitor/janitor-fs.d.ts +41 -0
- package/dist/ci-fleet/janitor/janitor-fs.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/janitor-fs.js +147 -0
- package/dist/ci-fleet/janitor/janitor-fs.js.map +1 -0
- package/dist/ci-fleet/janitor/janitor-run.d.ts +19 -0
- package/dist/ci-fleet/janitor/janitor-run.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/janitor-run.js +24 -0
- package/dist/ci-fleet/janitor/janitor-run.js.map +1 -0
- package/dist/ci-fleet/janitor/janitor.d.ts +8 -0
- package/dist/ci-fleet/janitor/janitor.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/janitor.js +97 -0
- package/dist/ci-fleet/janitor/janitor.js.map +1 -0
- package/dist/ci-fleet/janitor/pass-record.d.ts +11 -0
- package/dist/ci-fleet/janitor/pass-record.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/pass-record.js +19 -0
- package/dist/ci-fleet/janitor/pass-record.js.map +1 -0
- package/dist/ci-fleet/janitor/runner-cleanup.d.ts +3 -0
- package/dist/ci-fleet/janitor/runner-cleanup.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/runner-cleanup.js +119 -0
- package/dist/ci-fleet/janitor/runner-cleanup.js.map +1 -0
- package/dist/ci-fleet/janitor/shared-caches.d.ts +5 -0
- package/dist/ci-fleet/janitor/shared-caches.d.ts.map +1 -0
- package/dist/ci-fleet/janitor/shared-caches.js +101 -0
- package/dist/ci-fleet/janitor/shared-caches.js.map +1 -0
- package/dist/ci-fleet/keeper/fleet-keeper.d.ts +27 -0
- package/dist/ci-fleet/keeper/fleet-keeper.d.ts.map +1 -0
- package/dist/ci-fleet/keeper/fleet-keeper.js +117 -0
- package/dist/ci-fleet/keeper/fleet-keeper.js.map +1 -0
- package/dist/ci-fleet/keeper/keeper-config.d.ts +5 -0
- package/dist/ci-fleet/keeper/keeper-config.d.ts.map +1 -0
- package/dist/ci-fleet/keeper/keeper-config.js +5 -0
- package/dist/ci-fleet/keeper/keeper-config.js.map +1 -0
- package/dist/ci-fleet/paths.d.ts +14 -0
- package/dist/ci-fleet/paths.d.ts.map +1 -0
- package/dist/ci-fleet/paths.js +14 -0
- package/dist/ci-fleet/paths.js.map +1 -0
- package/dist/ci-fleet/protocol.d.ts +134 -0
- package/dist/ci-fleet/protocol.d.ts.map +1 -0
- package/dist/ci-fleet/protocol.js +27 -0
- package/dist/ci-fleet/protocol.js.map +1 -0
- package/dist/ci-fleet/prune/prune-config.d.ts +12 -0
- package/dist/ci-fleet/prune/prune-config.d.ts.map +1 -0
- package/dist/ci-fleet/prune/prune-config.js +11 -0
- package/dist/ci-fleet/prune/prune-config.js.map +1 -0
- package/dist/ci-fleet/prune/prune.d.ts +16 -0
- package/dist/ci-fleet/prune/prune.d.ts.map +1 -0
- package/dist/ci-fleet/prune/prune.js +201 -0
- package/dist/ci-fleet/prune/prune.js.map +1 -0
- package/dist/ci-fleet/prune/stopped-containers.d.ts +4 -0
- package/dist/ci-fleet/prune/stopped-containers.d.ts.map +1 -0
- package/dist/ci-fleet/prune/stopped-containers.js +36 -0
- package/dist/ci-fleet/prune/stopped-containers.js.map +1 -0
- package/dist/ci-fleet/register.d.ts +17 -0
- package/dist/ci-fleet/register.d.ts.map +1 -0
- package/dist/ci-fleet/register.js +162 -0
- package/dist/ci-fleet/register.js.map +1 -0
- package/dist/ci-fleet/slots/ci-locks.d.ts +7 -0
- package/dist/ci-fleet/slots/ci-locks.d.ts.map +1 -0
- package/dist/ci-fleet/slots/ci-locks.js +62 -0
- package/dist/ci-fleet/slots/ci-locks.js.map +1 -0
- package/dist/ci-fleet/slots/decide.d.ts +19 -0
- package/dist/ci-fleet/slots/decide.d.ts.map +1 -0
- package/dist/ci-fleet/slots/decide.js +27 -0
- package/dist/ci-fleet/slots/decide.js.map +1 -0
- package/dist/ci-fleet/slots/sandbox-memory.d.ts +6 -0
- package/dist/ci-fleet/slots/sandbox-memory.d.ts.map +1 -0
- package/dist/ci-fleet/slots/sandbox-memory.js +41 -0
- package/dist/ci-fleet/slots/sandbox-memory.js.map +1 -0
- package/dist/ci-fleet/slots/slot-lock.d.ts +9 -0
- package/dist/ci-fleet/slots/slot-lock.d.ts.map +1 -0
- package/dist/ci-fleet/slots/slot-lock.js +66 -0
- package/dist/ci-fleet/slots/slot-lock.js.map +1 -0
- package/dist/ci-fleet/slots/slots-config.d.ts +10 -0
- package/dist/ci-fleet/slots/slots-config.d.ts.map +1 -0
- package/dist/ci-fleet/slots/slots-config.js +9 -0
- package/dist/ci-fleet/slots/slots-config.js.map +1 -0
- package/dist/ci-fleet/slots/slots.d.ts +12 -0
- package/dist/ci-fleet/slots/slots.d.ts.map +1 -0
- package/dist/ci-fleet/slots/slots.js +124 -0
- package/dist/ci-fleet/slots/slots.js.map +1 -0
- package/dist/ci-fleet/sys.d.ts +15 -0
- package/dist/ci-fleet/sys.d.ts.map +1 -0
- package/dist/ci-fleet/sys.js +36 -0
- package/dist/ci-fleet/sys.js.map +1 -0
- package/dist/ci-fleet/units.d.ts +9 -0
- package/dist/ci-fleet/units.d.ts.map +1 -0
- package/dist/ci-fleet/units.js +93 -0
- package/dist/ci-fleet/units.js.map +1 -0
- package/dist/ci-fleet/update.d.ts +6 -0
- package/dist/ci-fleet/update.d.ts.map +1 -0
- package/dist/ci-fleet/update.js +50 -0
- package/dist/ci-fleet/update.js.map +1 -0
- package/dist/cli.js +2 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +6 -0
- package/dist/commands.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/daemon-base.d.ts +3 -2
- package/dist/daemon-base.d.ts.map +1 -1
- package/dist/daemon-base.js +15 -8
- package/dist/daemon-base.js.map +1 -1
- package/dist/device/audit-detail.d.ts +3 -0
- package/dist/device/audit-detail.d.ts.map +1 -0
- package/dist/device/audit-detail.js +14 -0
- package/dist/device/audit-detail.js.map +1 -0
- package/dist/device/commands.d.ts.map +1 -1
- package/dist/device/commands.js +15 -1
- package/dist/device/commands.js.map +1 -1
- package/dist/device/connection.d.ts +1 -1
- package/dist/device/connection.d.ts.map +1 -1
- package/dist/device/connection.js +1 -1
- package/dist/device/connection.js.map +1 -1
- package/dist/device/grant.d.ts +78 -0
- package/dist/device/grant.d.ts.map +1 -1
- package/dist/device/mcp.d.ts +4 -2
- package/dist/device/mcp.d.ts.map +1 -1
- package/dist/device/mcp.js +31 -25
- package/dist/device/mcp.js.map +1 -1
- package/dist/device/policy.d.ts +2 -0
- package/dist/device/policy.d.ts.map +1 -1
- package/dist/device/policy.js +39 -3
- package/dist/device/policy.js.map +1 -1
- package/dist/device/protected-places.d.ts +8 -0
- package/dist/device/protected-places.d.ts.map +1 -0
- package/dist/device/protected-places.js +48 -0
- package/dist/device/protected-places.js.map +1 -0
- package/dist/device/remote/remote.d.ts +3 -2
- package/dist/device/remote/remote.d.ts.map +1 -1
- package/dist/device/remote/remote.js +22 -4
- package/dist/device/remote/remote.js.map +1 -1
- package/dist/device/remote/remoted-control.d.ts +49 -0
- package/dist/device/remote/remoted-control.d.ts.map +1 -0
- package/dist/device/remote/remoted-control.js +137 -0
- package/dist/device/remote/remoted-control.js.map +1 -0
- package/dist/device/remote/remoted-service.d.ts +3 -1
- package/dist/device/remote/remoted-service.d.ts.map +1 -1
- package/dist/device/remote/remoted-service.js +27 -3
- package/dist/device/remote/remoted-service.js.map +1 -1
- package/dist/device/remote/remoted-spawn.d.ts +4 -0
- package/dist/device/remote/remoted-spawn.d.ts.map +1 -0
- package/dist/device/remote/remoted-spawn.js +68 -0
- package/dist/device/remote/remoted-spawn.js.map +1 -0
- package/dist/device/remote/remoted.d.ts +23 -2
- package/dist/device/remote/remoted.d.ts.map +1 -1
- package/dist/device/remote/remoted.js +272 -97
- package/dist/device/remote/remoted.js.map +1 -1
- package/dist/device/router.d.ts +74 -0
- package/dist/device/router.d.ts.map +1 -1
- package/dist/device/router.js +4 -4
- package/dist/device/router.js.map +1 -1
- package/dist/device/sandbox-rounds/engine-disk.d.ts +27 -0
- package/dist/device/sandbox-rounds/engine-disk.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/engine-disk.js +93 -8
- package/dist/device/sandbox-rounds/engine-disk.js.map +1 -1
- package/dist/device/sandbox-rounds/ic-swaps.d.ts +4 -1
- package/dist/device/sandbox-rounds/ic-swaps.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/ic-swaps.js +24 -1
- package/dist/device/sandbox-rounds/ic-swaps.js.map +1 -1
- package/dist/device/sandbox-rounds/keeper.d.ts +5 -0
- package/dist/device/sandbox-rounds/keeper.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/keeper.js +45 -6
- package/dist/device/sandbox-rounds/keeper.js.map +1 -1
- package/dist/device/sandbox-rounds/memory-relief/memory-sleep.d.ts +79 -0
- package/dist/device/sandbox-rounds/memory-relief/memory-sleep.d.ts.map +1 -0
- package/dist/device/sandbox-rounds/memory-relief/memory-sleep.js +211 -0
- package/dist/device/sandbox-rounds/memory-relief/memory-sleep.js.map +1 -0
- package/dist/device/sandbox-rounds/runner-keeper.d.ts +6 -2
- package/dist/device/sandbox-rounds/runner-keeper.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/runner-keeper.js +15 -8
- package/dist/device/sandbox-rounds/runner-keeper.js.map +1 -1
- package/dist/device/sandbox-rounds/sleep.d.ts +9 -0
- package/dist/device/sandbox-rounds/sleep.d.ts.map +1 -1
- package/dist/device/sandbox-rounds/sleep.js +1 -0
- package/dist/device/sandbox-rounds/sleep.js.map +1 -1
- package/dist/device/tools/admin/admin-run.d.ts +36 -0
- package/dist/device/tools/admin/admin-run.d.ts.map +1 -0
- package/dist/device/tools/admin/admin-run.js +89 -0
- package/dist/device/tools/admin/admin-run.js.map +1 -0
- package/dist/device/tools/agent.d.ts +3 -2
- package/dist/device/tools/agent.d.ts.map +1 -1
- package/dist/device/tools/agent.js +65 -11
- package/dist/device/tools/agent.js.map +1 -1
- package/dist/device/tools/apps.d.ts.map +1 -1
- package/dist/device/tools/apps.js +5 -2
- package/dist/device/tools/apps.js.map +1 -1
- package/dist/device/tools/ci-runners/ci-runners.d.ts +5 -0
- package/dist/device/tools/ci-runners/ci-runners.d.ts.map +1 -0
- package/dist/device/tools/ci-runners/ci-runners.js +74 -0
- package/dist/device/tools/ci-runners/ci-runners.js.map +1 -0
- package/dist/device/tools/copy/file-copy.d.ts.map +1 -1
- package/dist/device/tools/copy/file-copy.js +7 -1
- package/dist/device/tools/copy/file-copy.js.map +1 -1
- package/dist/device/tools/describe.d.ts +3 -1
- package/dist/device/tools/describe.d.ts.map +1 -1
- package/dist/device/tools/describe.js +75 -11
- package/dist/device/tools/describe.js.map +1 -1
- package/dist/device/tools/elements.d.ts.map +1 -1
- package/dist/device/tools/elements.js +4 -1
- package/dist/device/tools/elements.js.map +1 -1
- package/dist/device/tools/files.d.ts.map +1 -1
- package/dist/device/tools/files.js +4 -2
- package/dist/device/tools/files.js.map +1 -1
- package/dist/device/tools/ic-binary.d.ts +4 -0
- package/dist/device/tools/ic-binary.d.ts.map +1 -1
- package/dist/device/tools/ic-binary.js +9 -4
- package/dist/device/tools/ic-binary.js.map +1 -1
- package/dist/device/tools/ic-serve/ic-read.d.ts +5 -0
- package/dist/device/tools/ic-serve/ic-read.d.ts.map +1 -0
- package/dist/device/tools/ic-serve/ic-read.js +17 -0
- package/dist/device/tools/ic-serve/ic-read.js.map +1 -0
- package/dist/device/tools/ic-serve/ic-serve.d.ts +31 -0
- package/dist/device/tools/ic-serve/ic-serve.d.ts.map +1 -0
- package/dist/device/tools/ic-serve/ic-serve.js +236 -0
- package/dist/device/tools/ic-serve/ic-serve.js.map +1 -0
- package/dist/device/tools/listing/ic-readings.d.ts +17 -0
- package/dist/device/tools/listing/ic-readings.d.ts.map +1 -0
- package/dist/device/tools/listing/ic-readings.js +49 -0
- package/dist/device/tools/listing/ic-readings.js.map +1 -0
- package/dist/device/tools/listing/sandbox-fleet.d.ts +7 -0
- package/dist/device/tools/listing/sandbox-fleet.d.ts.map +1 -0
- package/dist/device/tools/listing/sandbox-fleet.js +76 -0
- package/dist/device/tools/listing/sandbox-fleet.js.map +1 -0
- package/dist/device/tools/move/sandbox-move.d.ts.map +1 -1
- package/dist/device/tools/move/sandbox-move.js +1 -1
- package/dist/device/tools/move/sandbox-move.js.map +1 -1
- package/dist/device/tools/sandboxes.d.ts +3 -5
- package/dist/device/tools/sandboxes.d.ts.map +1 -1
- package/dist/device/tools/sandboxes.js +13 -56
- package/dist/device/tools/sandboxes.js.map +1 -1
- package/dist/device/tools/shell.d.ts +7 -1
- package/dist/device/tools/shell.d.ts.map +1 -1
- package/dist/device/tools/shell.js +28 -1
- package/dist/device/tools/shell.js.map +1 -1
- package/dist/device/tools/stacks/deploy-health.d.ts +19 -0
- package/dist/device/tools/stacks/deploy-health.d.ts.map +1 -0
- package/dist/device/tools/stacks/deploy-health.js +108 -0
- package/dist/device/tools/stacks/deploy-health.js.map +1 -0
- package/dist/device/tools/stacks/deploy.d.ts +19 -0
- package/dist/device/tools/stacks/deploy.d.ts.map +1 -0
- package/dist/device/tools/stacks/deploy.js +143 -0
- package/dist/device/tools/stacks/deploy.js.map +1 -0
- package/dist/device/tools/stacks/host-stats.d.ts +6 -0
- package/dist/device/tools/stacks/host-stats.d.ts.map +1 -0
- package/dist/device/tools/stacks/host-stats.js +56 -0
- package/dist/device/tools/stacks/host-stats.js.map +1 -0
- package/dist/device/tools/stacks/stack-folder.d.ts +13 -5
- package/dist/device/tools/stacks/stack-folder.d.ts.map +1 -1
- package/dist/device/tools/stacks/stack-folder.js +21 -2
- package/dist/device/tools/stacks/stack-folder.js.map +1 -1
- package/dist/device/tools/stacks/stack-state.d.ts +15 -0
- package/dist/device/tools/stacks/stack-state.d.ts.map +1 -0
- package/dist/device/tools/stacks/stack-state.js +128 -0
- package/dist/device/tools/stacks/stack-state.js.map +1 -0
- package/dist/device/tools/stacks/stack-tools.d.ts +4 -0
- package/dist/device/tools/stacks/stack-tools.d.ts.map +1 -0
- package/dist/device/tools/stacks/stack-tools.js +55 -0
- package/dist/device/tools/stacks/stack-tools.js.map +1 -0
- package/dist/device/tools/stacks/stacks.d.ts +20 -8
- package/dist/device/tools/stacks/stacks.d.ts.map +1 -1
- package/dist/device/tools/stacks/stacks.js +40 -97
- package/dist/device/tools/stacks/stacks.js.map +1 -1
- package/dist/engine-env.d.ts +1 -0
- package/dist/engine-env.d.ts.map +1 -1
- package/dist/engine-env.js +8 -5
- package/dist/engine-env.js.map +1 -1
- package/dist/environments/commands.d.ts +1 -0
- package/dist/environments/commands.d.ts.map +1 -1
- package/dist/environments/commands.js +14 -3
- package/dist/environments/commands.js.map +1 -1
- package/dist/environments/host-memory-reading.d.ts +3 -0
- package/dist/environments/host-memory-reading.d.ts.map +1 -0
- package/dist/environments/host-memory-reading.js +5 -0
- package/dist/environments/host-memory-reading.js.map +1 -0
- package/dist/environments/machine.d.ts +1 -0
- package/dist/environments/machine.d.ts.map +1 -1
- package/dist/environments/machine.js.map +1 -1
- package/dist/environments/windows-crash-events.d.ts +20 -4
- package/dist/environments/windows-crash-events.d.ts.map +1 -1
- package/dist/environments/windows-crash-events.js +70 -20
- package/dist/environments/windows-crash-events.js.map +1 -1
- package/dist/environments/windows-memory.d.ts +12 -3
- package/dist/environments/windows-memory.d.ts.map +1 -1
- package/dist/environments/windows-memory.js +47 -3
- package/dist/environments/windows-memory.js.map +1 -1
- package/dist/environments/wsl-cache-drop.d.ts +9 -7
- package/dist/environments/wsl-cache-drop.d.ts.map +1 -1
- package/dist/environments/wsl-cache-drop.js +56 -14
- package/dist/environments/wsl-cache-drop.js.map +1 -1
- package/dist/environments/wsl-guest.d.ts +29 -0
- package/dist/environments/wsl-guest.d.ts.map +1 -0
- package/dist/environments/wsl-guest.js +126 -0
- package/dist/environments/wsl-guest.js.map +1 -0
- package/dist/environments/wsl-memory-command.d.ts +3 -0
- package/dist/environments/wsl-memory-command.d.ts.map +1 -0
- package/dist/environments/wsl-memory-command.js +43 -0
- package/dist/environments/wsl-memory-command.js.map +1 -0
- package/dist/environments/wsl-memory-fit.d.ts +28 -0
- package/dist/environments/wsl-memory-fit.d.ts.map +1 -0
- package/dist/environments/wsl-memory-fit.js +113 -0
- package/dist/environments/wsl-memory-fit.js.map +1 -0
- package/dist/environments/wsl-memory-watch.d.ts +25 -0
- package/dist/environments/wsl-memory-watch.d.ts.map +1 -0
- package/dist/environments/wsl-memory-watch.js +146 -0
- package/dist/environments/wsl-memory-watch.js.map +1 -0
- package/dist/environments/wsl-page-reporting.d.ts +45 -0
- package/dist/environments/wsl-page-reporting.d.ts.map +1 -0
- package/dist/environments/wsl-page-reporting.js +110 -0
- package/dist/environments/wsl-page-reporting.js.map +1 -0
- package/dist/environments/wslconfig-memory.d.ts +38 -0
- package/dist/environments/wslconfig-memory.d.ts.map +1 -0
- package/dist/environments/wslconfig-memory.js +137 -0
- package/dist/environments/wslconfig-memory.js.map +1 -0
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +2 -0
- package/dist/install.js.map +1 -1
- package/dist/power/apply.d.ts +40 -0
- package/dist/power/apply.d.ts.map +1 -0
- package/dist/power/apply.js +104 -0
- package/dist/power/apply.js.map +1 -0
- package/dist/power/host-power.d.ts +40 -0
- package/dist/power/host-power.d.ts.map +1 -0
- package/dist/power/host-power.js +120 -0
- package/dist/power/host-power.js.map +1 -0
- package/dist/power/linux.d.ts +30 -0
- package/dist/power/linux.d.ts.map +1 -0
- package/dist/power/linux.js +114 -0
- package/dist/power/linux.js.map +1 -0
- package/dist/power/macos.d.ts +11 -0
- package/dist/power/macos.d.ts.map +1 -0
- package/dist/power/macos.js +43 -0
- package/dist/power/macos.js.map +1 -0
- package/dist/power/power-command.d.ts +14 -0
- package/dist/power/power-command.d.ts.map +1 -0
- package/dist/power/power-command.js +224 -0
- package/dist/power/power-command.js.map +1 -0
- package/dist/power/update-pause.d.ts +25 -0
- package/dist/power/update-pause.d.ts.map +1 -0
- package/dist/power/update-pause.js +54 -0
- package/dist/power/update-pause.js.map +1 -0
- package/dist/power/windows-findings.d.ts +9 -0
- package/dist/power/windows-findings.d.ts.map +1 -0
- package/dist/power/windows-findings.js +153 -0
- package/dist/power/windows-findings.js.map +1 -0
- package/dist/power/windows-reading.d.ts +92 -0
- package/dist/power/windows-reading.d.ts.map +1 -0
- package/dist/power/windows-reading.js +145 -0
- package/dist/power/windows-reading.js.map +1 -0
- package/dist/power/words.d.ts +4 -0
- package/dist/power/words.d.ts.map +1 -0
- package/dist/power/words.js +11 -0
- package/dist/power/words.js.map +1 -0
- package/dist/power/writes.d.ts +59 -0
- package/dist/power/writes.d.ts.map +1 -0
- package/dist/power/writes.js +87 -0
- package/dist/power/writes.js.map +1 -0
- package/dist/resident/io-pool.d.ts +5 -0
- package/dist/resident/io-pool.d.ts.map +1 -0
- package/dist/resident/io-pool.js +18 -0
- package/dist/resident/io-pool.js.map +1 -0
- package/dist/resident/memory-log.d.ts +49 -0
- package/dist/resident/memory-log.d.ts.map +1 -0
- package/dist/resident/memory-log.js +149 -0
- package/dist/resident/memory-log.js.map +1 -0
- package/dist/resident/other-accounts.d.ts +13 -0
- package/dist/resident/other-accounts.d.ts.map +1 -0
- package/dist/resident/other-accounts.js +44 -0
- package/dist/resident/other-accounts.js.map +1 -0
- package/dist/resident/resident.d.ts.map +1 -1
- package/dist/resident/resident.js +23 -9
- package/dist/resident/resident.js.map +1 -1
- package/dist/resident/supervision.d.ts.map +1 -1
- package/dist/resident/supervision.js +1 -1
- package/dist/resident/supervision.js.map +1 -1
- package/dist/status.d.ts +2 -0
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +7 -3
- package/dist/status.js.map +1 -1
- package/dist/sync/bridge/git-bridge.d.ts +18 -1
- package/dist/sync/bridge/git-bridge.d.ts.map +1 -1
- package/dist/sync/bridge/git-bridge.js +132 -40
- package/dist/sync/bridge/git-bridge.js.map +1 -1
- package/dist/sync/changes/change-follow.d.ts +16 -0
- package/dist/sync/changes/change-follow.d.ts.map +1 -0
- package/dist/sync/changes/change-follow.js +65 -0
- package/dist/sync/changes/change-follow.js.map +1 -0
- package/dist/sync/changes/sync-changes.d.ts +39 -0
- package/dist/sync/changes/sync-changes.d.ts.map +1 -0
- package/dist/sync/changes/sync-changes.js +146 -0
- package/dist/sync/changes/sync-changes.js.map +1 -0
- package/dist/sync/config.d.ts +2 -0
- package/dist/sync/config.d.ts.map +1 -1
- package/dist/sync/config.js +11 -0
- package/dist/sync/config.js.map +1 -1
- package/dist/sync/holds.d.ts +2 -2
- package/dist/sync/holds.d.ts.map +1 -1
- package/dist/sync/holds.js +4 -3
- package/dist/sync/holds.js.map +1 -1
- package/dist/sync/mirror.d.ts +8 -1
- package/dist/sync/mirror.d.ts.map +1 -1
- package/dist/sync/mirror.js +53 -29
- package/dist/sync/mirror.js.map +1 -1
- package/dist/sync/mutagen.d.ts +7 -0
- package/dist/sync/mutagen.d.ts.map +1 -1
- package/dist/sync/mutagen.js +12 -1
- package/dist/sync/mutagen.js.map +1 -1
- package/dist/sync/report.d.ts +1 -1
- package/dist/sync/report.d.ts.map +1 -1
- package/dist/sync/report.js +3 -3
- package/dist/sync/report.js.map +1 -1
- package/dist/sync/ssh.d.ts +2 -1
- package/dist/sync/ssh.d.ts.map +1 -1
- package/dist/sync/ssh.js +2 -32
- package/dist/sync/ssh.js.map +1 -1
- package/dist/upkeep/manifest.d.ts.map +1 -1
- package/dist/upkeep/manifest.js +2 -1
- package/dist/upkeep/manifest.js.map +1 -1
- package/dist/upkeep/other-account.d.ts +3 -0
- package/dist/upkeep/other-account.d.ts.map +1 -0
- package/dist/upkeep/other-account.js +13 -0
- package/dist/upkeep/other-account.js.map +1 -0
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -15,12 +15,24 @@ 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
|
|
21
28
|
sandbox links and the WSL distros, and refuses the screen, window, clipboard and browser tools in one sentence
|
|
22
|
-
([`device/session.ts`](src/device/session.ts)).
|
|
23
|
-
|
|
29
|
+
([`device/session.ts`](src/device/session.ts)). (2026-11-27) Where the sandboxes run on intentic's engine it also
|
|
30
|
+
runs the keeper and the sandbox rounds, so the keeper's first sweep has ic start the engine and the sandboxes on it
|
|
31
|
+
with nobody signed in; a task of this kind reached WSL and the engine on rog (session 0), and the engine's start from
|
|
32
|
+
one is unproven until the first night it runs. On Docker Desktop, a program with a window, it leaves the keeper and
|
|
33
|
+
the sandbox rounds to the signed-in session's agent, as it leaves file sync and its own updates on any engine. The
|
|
34
|
+
sandbox's host-power card turns the task on through the `before-sign-in` op. The signed-in session's agent takes over
|
|
35
|
+
at the next sign-in:
|
|
24
36
|
it writes a request the boot agent reads every tick and leaves on, and stops it only if it does not
|
|
25
37
|
([`resident/handover.ts`](src/resident/handover.ts)). While someone is signed in, the boot task's repetitions find
|
|
26
38
|
an agent running and exit without a word. `uninstall` removes the task too, asking Windows again. Measured on a
|
|
@@ -50,13 +62,66 @@ flowchart LR
|
|
|
50
62
|
`restart`, `start` or `stop` on one project by name, refusing a sandbox's own and, for `up` and `pull`, one whose
|
|
51
63
|
compose files are gone; `stack_logs` reads its tail. `deploy_stack` copies a repository the sandbox pushed (only a
|
|
52
64
|
folder filed whole in that sandbox's own `runs/` folder) into `~/.intentic/machine/stacks/<name>`, records the commit
|
|
53
|
-
in `.intentic-deploy.json`, and runs `docker compose up -d --build --remove-orphans` there
|
|
54
|
-
|
|
55
|
-
|
|
65
|
+
in `.intentic-deploy.json`, and runs `docker compose up -d --build --remove-orphans` there. The copy adds and
|
|
66
|
+
overwrites and deletes nothing, since a service's data may live in that folder. It never copies a `.env`, at any
|
|
67
|
+
depth, so the secrets put there stay. Before writing anything it refuses a path whose kind differs
|
|
56
68
|
between the folder and the repository, so it never writes through a link it finds there. A name another compose
|
|
57
69
|
project already runs under is refused. Reading and driving need "Run commands"; a deploy also needs "Run programs
|
|
58
70
|
this sandbox sends". Nothing here runs `down`, `rm` or `-v`, and `uninstall --purge` keeps `stacks/` as the person's
|
|
59
71
|
data (`ic uninstall`, which removes `~/.intentic` whole, does not).
|
|
72
|
+
- (2026-11-25) **Managed stacks** ([`tools/stacks/deploy.ts`](src/device/tools/stacks/deploy.ts), the folder's own
|
|
73
|
+
state in `stack-state.ts`, the health wait in `deploy-health.ts`; advertised as `stacks-managed`): the stacks a
|
|
74
|
+
repository declares for the Deployments extension, which the sandbox deploys and keeps running in place of Komodo. Every
|
|
75
|
+
deploy records the sandbox that made it (`owner`, from the link, never from the call) in `.intentic-deploy.json`,
|
|
76
|
+
and from then on `deploy_stack`, `stack_action` and `stack_logs` from any other sandbox are refused, saying the stack
|
|
77
|
+
was deployed by another sandbox; `list_stacks` shows the owner. A stack deployed before owners were recorded is
|
|
78
|
+
claimed by the next deploy. A managed deploy may bring its own `.env`, rendered by the daemon: written 0600 by a
|
|
79
|
+
rename, its sha256 recorded. A `.env` there that no deploy wrote, or that was edited since, is refused before
|
|
80
|
+
anything is copied and never overwritten: a person on the machine moves it away. Registry logins go in the stack's
|
|
81
|
+
own docker config, `.intentic-stack/docker/config.json` (0600 in a 0700 folder), handed to compose as
|
|
82
|
+
`DOCKER_CONFIG`; that folder links the person's `~/.docker/cli-plugins` and `contexts` and carries their current
|
|
83
|
+
context, which a `DOCKER_CONFIG` elsewhere would hide, and the machine's own config is never touched. `.intentic-stack/`
|
|
84
|
+
rather than `.intentic/`, which a deployed repository may hold for itself, and no copy writes into it. `images` mode
|
|
85
|
+
runs `pull` and then `up -d --remove-orphans`, never `--build`; image pins are a compose override
|
|
86
|
+
(`.intentic-stack/pins.yaml`, passed as a second `-f`), removed when a deploy brings none, as the registry config is.
|
|
87
|
+
The `preDeploy` hook runs after the files are in place and before compose, `postDeploy` once the stack is healthy,
|
|
88
|
+
each by `sh -c` (PowerShell on Windows, as `run_command`) in the stack's folder with `COMPOSE_PROJECT_NAME` and
|
|
89
|
+
`COMPOSE_FILE` set; either failing fails the deploy with what it printed. The health wait trusts nothing for 5 s,
|
|
90
|
+
then looks every 3 s until every container of the project runs (none restarting, each healthcheck healthy, a one-shot
|
|
91
|
+
service exited 0) and each URL answers 2xx, and otherwise fails naming what was not ready. The answer then carries
|
|
92
|
+
each service's image pinned by the registry digest of the repository it names, or its image id when built here.
|
|
93
|
+
`adopt` takes over a compose project no deploy put here once none of its containers runs, its named volumes carrying
|
|
94
|
+
over; a running one, and a sandbox's own, stay refused. The whole deploy runs under one 14-minute deadline, each step
|
|
95
|
+
given what is left of it, since the daemon waits 15 for a device call. Every secret it carried is taken out of its
|
|
96
|
+
answer and its errors, and the audit log keeps only how long the `.env` was and how many logins came.
|
|
97
|
+
`host_stats` (advertised as `host-stats`, under "Run commands") reads the free space of Docker's data root and of
|
|
98
|
+
the stacks folder by statfs, memory (Linux's MemAvailable), load and cpus, for the Deployments monitor; a Docker that does
|
|
99
|
+
not answer, or whose data root is inside a VM, leaves only its disk out.
|
|
100
|
+
- (2026-11-24) **Self-hosted CI runners** ([`src/ci-fleet/`](src/ci-fleet), tools in
|
|
101
|
+
[`tools/ci-runners/`](src/device/tools/ci-runners/ci-runners.ts), contract `schemas/ci-fleet.ts`): the GitHub Actions
|
|
102
|
+
runners on a Linux computer or WSL distro, read and driven from the Pipelines view's Runners section in place of the
|
|
103
|
+
hand-run scripts in `docs/ops/ci-runner.md`. `ci_runners` reads them as this account, with no root: every
|
|
104
|
+
`actions.runner.*.service` unit file, one `systemctl show` for all of them, each folder's `.runner` and `bin` link, a
|
|
105
|
+
live `Runner.Worker` under the folder as the job (named from the worker log's `jobDisplayName`), and runner folders
|
|
106
|
+
under the janitor's glob whose `.service` names a unit systemd no longer has, as `not-installed` (z440's four on
|
|
107
|
+
2026-11-24, their units gone since 2026-11-09 while the folders stayed). Everything that needs root goes through the
|
|
108
|
+
**fleet service**, `intentic-ci-fleet.service`: `intentic-machine ci-fleet serve`, run as root from a root-owned copy in
|
|
109
|
+
`/usr/local/lib/intentic-ci`, asked over `/run/intentic-ci/fleet.sock` (0660, the agent account's group) with one JSON
|
|
110
|
+
line per request from a closed list of verbs (`ci-fleet/protocol.ts`). It is installed once with `sudo intentic-machine
|
|
111
|
+
ci-fleet install --user <account> [--prune] [--slots-usable N]`, which downloads this agent's release binary and checks
|
|
112
|
+
it against the release's signed `SHA256SUMS` (a build from source names one with `--binary`), writes
|
|
113
|
+
`/etc/intentic-ci/fleet.json`, and disables the units it replaces (`intentic-ci-janitor.timer`,
|
|
114
|
+
`intentic-ci-prune.timer`, `intentic-ci-test-slots.service`). It follows the agent's version, said on every read,
|
|
115
|
+
through a signed release only, never by copying the person's binary (`ci-fleet/update.ts`). Its rounds: the drains
|
|
116
|
+
(every 3 s), the keeper (a runner unit that is down and not held down on purpose is started, with a doubling wait),
|
|
117
|
+
the janitor and the host prune (`fleet-janitor.sh` and `linux-host-prune.sh`, ported rule for rule), and the slot
|
|
118
|
+
holder, which holds slots of CI's test-memory pool for the Intentic sandboxes on the same engine so CI's tests size
|
|
119
|
+
themselves from what the sandboxes leave, never the gate band. `ci_runner_action` starts, stops, drains or restarts a
|
|
120
|
+
runner: `stop` refuses one running a job, `drain` and `restart` wait for it, and a runner stopped from here is held
|
|
121
|
+
down (`/var/lib/intentic-ci/holds.json`) until started from here. `ci_runner_register` downloads the runner release
|
|
122
|
+
the computer's runners already run, checks it against the SHA-256 its release notes publish, and runs `config.sh` and
|
|
123
|
+
`svc.sh` as the runner's account. The registration token the sandbox minted is redacted from the audit log and from
|
|
124
|
+
every error. `ci_runner_remove` is destructive: it unregisters the runner and moves its folder into the service's trash.
|
|
60
125
|
- What the agent has been shown of the screen is kept for the process's life
|
|
61
126
|
([`tools/view.ts`](src/device/tools/view.ts)): each screenshot is a frame with an id, shrunk to what a model reads
|
|
62
127
|
whole, and a coordinate is read in the newest frame and mapped back to desktop pixels, so one naming an older frame
|
|
@@ -67,6 +132,27 @@ flowchart LR
|
|
|
67
132
|
pasted or set into a field that the command classifier reads as destructive needs "Run destructive commands",
|
|
68
133
|
as running it would. The sandbox also judges that text with the owner's safety policy before it crosses
|
|
69
134
|
(`hosts/host-command-guard.ts`, `typedInCall`).
|
|
135
|
+
- (2026-11-23) **Run as administrator, with no UAC prompt** ([`tools/admin/admin-run.ts`](src/device/tools/admin/admin-run.ts)).
|
|
136
|
+
`run_command` with `admin: true` on Windows runs the same PowerShell invocation through
|
|
137
|
+
`intentic-remoted service admin-run`: the SYSTEM helper of remoted's Windows service (below, "The lock screen and
|
|
138
|
+
administrator prompts") starts it with the signed-in person's own administrator token in their session, which is
|
|
139
|
+
what clicking Yes on UAC gives (their profile and HKCU, windows on their desktop), and stdout, stderr and the exit
|
|
140
|
+
code come back as an ordinary run's do. It needs `shell`, then the card's own "Run commands as administrator"
|
|
141
|
+
switch (`admin`, default off), on top of the destructive and sandbox checks every command answers to. Refused here
|
|
142
|
+
off Windows, with `in` (root in a WSL distro needs no administrator: `wsl -d <distro> -u root`), and with the
|
|
143
|
+
switch off. remoted answers in a `--status` file: a command that did not run fails the call with its reason in
|
|
144
|
+
words (the service not set up or too old, its helper not running, nobody signed in, a standard account). The
|
|
145
|
+
command's environment is the person's own, fresh, so the `INTENTIC_AGENT_COMMAND` mark does not cross. The owner's
|
|
146
|
+
yes for each run is the daemon's card (`hosts/admin/host-admin-ask.ts`), which only a conversation's auto-approve mark
|
|
147
|
+
answers by itself; `why` is read there for the card and never here. Once it is answered the daemon adds `grant` to
|
|
148
|
+
the call: the sandbox's signature over the command's digest, five minutes, one use
|
|
149
|
+
([`policy/admin/admin-grant.ts`](../../_shared/sandbox-contract/src/policy/admin/admin-grant.ts)), passed on as `--grant`. The
|
|
150
|
+
service runs nothing without one that verifies under a key it pinned at install (`remoteService` install fetches
|
|
151
|
+
the asking sandbox's signing key from its own address, `GET /keyring/keys`, and passes it as `--trust`), so a
|
|
152
|
+
program of the person's that reaches the service's pipe still cannot run anything as administrator. The agent advertises `admin-run` where it
|
|
153
|
+
advertises `remote-service`. Rejected: clicking Yes on the UAC prompt through the screen (consent nobody gives,
|
|
154
|
+
and no telling whose prompt it is), and `Start-Process -Verb RunAs`, which waits for somebody at the computer and
|
|
155
|
+
hands no output back.
|
|
70
156
|
- (2026-11-03) **A web page on this machine's own GPU** ([`tools/browser/`](src/device/tools/browser), schemas in
|
|
71
157
|
`tools.ts`). A sandbox renders WebGL and WebGPU in software: the shinobi sandbox's agents waited 176 s for a
|
|
72
158
|
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 +209,9 @@ flowchart LR
|
|
|
123
209
|
own process group like every `ic` flow. The agent advertises `sandbox-move` exactly when the ic it drives does
|
|
124
210
|
(`ic features --json`), so an older ic is never sent the ops.
|
|
125
211
|
- 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
|
|
212
|
+
`ic sandbox list --json` passed through, one listing shared by every caller in this process and held 30 s, dropped by
|
|
213
|
+
any `ic` run of this agent that changes something ([`tools/listing/ic-readings.ts`](src/device/tools/listing/ic-readings.ts),
|
|
214
|
+
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
215
|
container name or the owner's name, whatever the case, by `findIn` in
|
|
128
216
|
[`tools/listing/find-sandbox.ts`](src/device/tools/listing/find-sandbox.ts), and by ic itself for the verbs that skip
|
|
129
217
|
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 +239,7 @@ flowchart LR
|
|
|
151
239
|
is not ([`tools/ic-binary.ts`](src/device/tools/ic-binary.ts)), since a new verb here arrives with a new verb there.
|
|
152
240
|
A fetch that fails is logged with its reason and reported in the device's facts (`icOutOfDate`, beside `features`),
|
|
153
241
|
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 [
|
|
242
|
+
- (2026-10-13) **On Intentic OS** (a machine with `/usr/lib/intentic-os/release.json`; see [_hosts](../../_hosts/README.md))
|
|
155
243
|
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
244
|
contract's argv and schemas (`icOsUpdateArgs`, `IntenticOsStatusSchema`): `os_status`, read-only and gated like the
|
|
157
245
|
listing; `os_update`, whose `check` is a read too, `stage` downloads for the next boot and `apply` reboots into it;
|
|
@@ -235,8 +323,26 @@ flowchart LR
|
|
|
235
323
|
changed last, which no interval bounds. Each scan that finds a change is a cycle here, and a cycle's cost follows
|
|
236
324
|
the size of the tree rather than of the change: the daemon reads the sandbox's whole snapshot again and reconciles
|
|
237
325
|
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.
|
|
239
|
-
in one `sync list
|
|
326
|
+
paths included, so the backup landing in `.intentic` wakes the workspace session too. Each pass reads every session
|
|
327
|
+
in one `sync list`, shared by the holds check and the report (`PassListing`, [`sync/mutagen.ts`](src/sync/mutagen.ts)).
|
|
328
|
+
|
|
329
|
+
(2026-11-24) **A sandbox that says when it changed is scanned only as a backstop.** Its daemon already watches
|
|
330
|
+
`/work` (one recursive watcher, batches 250 ms apart), and `GET /system/sync/changes` holds a request open until a
|
|
331
|
+
batch holds a path the workspace session carries, judged by the same `IGNORES`, which now live in
|
|
332
|
+
`@intentic/sandbox-contract/sync/workspace-sync-ignores` for both ends. The watcher follows it, one held request per
|
|
333
|
+
syncing sandbox ([`sync/changes/change-follow.ts`](src/sync/changes/change-follow.ts), [`sync/changes/sync-changes.ts`](src/sync/changes/sync-changes.ts)),
|
|
334
|
+
and asks Mutagen for a cycle (`sync flush --skip-wait`) when it moves: 100 ms after the first signal, one flush in
|
|
335
|
+
flight, at least 2 s apart, so a file written without pause costs no more than the 2-second scan did. A sandbox
|
|
336
|
+
that answers it is recorded on its pairings (`changeSignalSince`), and their sessions poll at 30 s
|
|
337
|
+
(`SIGNALLED_POLL_SECONDS`) for what the signal cannot see: a change made while the follow reconnected, or one under a
|
|
338
|
+
folder the daemon's watcher prunes and this session carries (`.yarn`, the Python tools' caches). The new interval is
|
|
339
|
+
drift like any other rule, so an existing session is replaced once, from a settled state. An older sandbox answers
|
|
340
|
+
the route 403 (its sync token reaches no route it never declared) or 404, keeps the 2-second scan, and is asked again
|
|
341
|
+
every 10 minutes. A failed ask changes no record, so an outage recreates nothing; the first answer after one asks
|
|
342
|
+
for a cycle. Measured before it: the sandbox's synchronizer spent 3.6% of a core around the clock scanning ~18k
|
|
343
|
+
entries every 2 s. Pushing over the device link was rejected: there the device serves and the sandbox calls, so it
|
|
344
|
+
would need a procedure on the device for each sandbox to call, where a long poll needs nothing new on either side's
|
|
345
|
+
link.
|
|
240
346
|
|
|
241
347
|
(2026-10-02) Measured on Windows with Mutagen 0.18.1, its daemon isolated and a container standing in for the
|
|
242
348
|
sandbox (a 9k-file workspace, a 15k-entry state dir with three transcripts growing by 6 KB a second, an edit every
|
|
@@ -311,8 +417,10 @@ flowchart LR
|
|
|
311
417
|
before `set-shape` (v1.312.0 and older), and go in v1.314.0.
|
|
312
418
|
- Every path under the user's home goes through `homeDir()` from [local-agent](../local-agent), which follows a `HOME`
|
|
313
419
|
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
|
-
|
|
420
|
+
- Scopes are enforced here and nowhere else: the sandbox only asks, and a refusal names the switch that is off. The
|
|
421
|
+
owner sets the switches through the sandbox, which pushes the grant on every connect (`setScopes`), so this agent
|
|
422
|
+
holds every call to the grant as it stands; it cannot tell a grant the owner chose from one a compromised sandbox
|
|
423
|
+
pushed. Files stay inside the configured roots, writes need their own switch, and every call is appended to
|
|
316
424
|
`~/.intentic/machine/audit.jsonl`, set aside as `audit.jsonl.1` once it reaches 8 MB (2026-10-05: it grew without
|
|
317
425
|
limit; the writer rolls it itself, and the [upkeep](#upkeep) does for an agent that wrote nothing lately). While an
|
|
318
426
|
agent drives input on Windows, a notice shows on screen and
|
|
@@ -320,6 +428,44 @@ flowchart LR
|
|
|
320
428
|
(`runAgentFlow`, [`device/tools/agent.ts`](src/device/tools/agent.ts)): no agent tool reaches it, and the sandbox
|
|
321
429
|
admits only a maintainer to it, so the owner's maintenance does not wait on the agents' "Run commands" (2026-09-29;
|
|
322
430
|
it rode that switch before, and an owner had to widen what agents may do to update the agent).
|
|
431
|
+
- Adding a tool: a tool is one `tool({ name, description, effect, input, run })` in the `TOOLS` list of
|
|
432
|
+
[`device/mcp.ts`](src/device/mcp.ts) (or the list of its own module that `TOOLS` spreads in). One whose arguments
|
|
433
|
+
carry a program (a command line, a program with arguments, a target `open` may spawn, text typed where a terminal
|
|
434
|
+
could run it) is built with `programTool` instead, which compiles only for a name in the contract's
|
|
435
|
+
`DEVICE_PROGRAM_TOOLS` table ([`policy/device-programs.ts`](../../_shared/sandbox-contract/src/policy/device-programs.ts)),
|
|
436
|
+
so add its row there first: the row says where its program is, and it is what the daemon's gate judges.
|
|
437
|
+
`mcp.integration.test.ts` holds the tools built with `programTool` equal to that table, and makes a `destructive`
|
|
438
|
+
tool that carries nothing say why in its list of exceptions.
|
|
439
|
+
- Adding a switch: it is one field of `DeviceScopesSchema`
|
|
440
|
+
([`schemas/capabilities.ts`](../../_shared/sandbox-contract/src/schemas/capabilities.ts)), with its default. Tests
|
|
441
|
+
build a grant with `grantWith(["shell", …], extra)` from [`device/device-testing.ts`](src/device/device-testing.ts)
|
|
442
|
+
(`"agent"` for the six agent switches), and source and daemon tests with the contract's `deviceScopesOn`: both read
|
|
443
|
+
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
|
|
444
|
+
setup grant (`SETUP_HOST_SCOPES`) is the one place spelled out on purpose, and its test fails until someone decides
|
|
445
|
+
whether a setup-connected machine gets the new switch.
|
|
446
|
+
- (2026-11-24) **Protected places** ([`device/protected-places.ts`](src/device/protected-places.ts)): even inside the
|
|
447
|
+
allowed folders, the file tools (read, list, write, edit, trash, `devices copy` both ways, a command's working folder)
|
|
448
|
+
refuse `~/.ssh`, `~/.gnupg`, `~/.aws`, `~/.azure`, gcloud's config, `~/.kube`, `~/.docker/config.json`, `~/.netrc`,
|
|
449
|
+
`~/.git-credentials`, `~/.pgpass`, `~/.claude/.credentials.json`, `~/.intentic` (link tokens, the sync key, the
|
|
450
|
+
keyring's vault), the OS keychains, Chrome, Chromium, Edge, Brave and Firefox profiles on all three systems, and
|
|
451
|
+
Windows' `Credentials`, `Vault` and `Protect` folders. Judged after links are resolved (a place that is itself a link
|
|
452
|
+
protects where it leads), and on Windows and macOS without regard to case; a folder taken whole (a copy off, a copy
|
|
453
|
+
merged onto it, the trash) is refused while it holds one. The owner opens a place by naming it, or a folder inside
|
|
454
|
+
it, as a line of "Folders it may touch"; a line that merely holds it, the home folder included, does not. Reads had
|
|
455
|
+
needed no switch and defaulted to the whole home folder, so an agent could read SSH keys and this agent's own link
|
|
456
|
+
tokens. The files the sandbox's provider-key import reads (`.hermes`, `.openclaw`, `.codex/auth.json`,
|
|
457
|
+
`.gemini/.env`, opencode's `auth.json`) are not protected.
|
|
458
|
+
- (2026-11-24) **`clipboard` reads a length, never the text**: what the owner copied is as likely to be a password as
|
|
459
|
+
anything typed. Its comment had said so while it returned the whole text. `focus_window` and `ui_elements` take only
|
|
460
|
+
a window id in a spelling a window list hands out (desktop-automation's `isWindowId`): Windows' focus put the id into
|
|
461
|
+
a double-quoted PowerShell string, where `$(…)` runs.
|
|
462
|
+
- (2026-11-24) **A loopback daemon is dialled only once it proves itself** ([`daemon-base.ts`](src/daemon-base.ts)). The
|
|
463
|
+
agent prefers `127.0.0.1:<port derived from the sandbox id>` for the link, remoted's uplink and folder sync, and used
|
|
464
|
+
to trust any listener whose `/health` echoed the id: another account or container on that port took the link token
|
|
465
|
+
from the first frame and pushed itself a grant. Now each probe sends a fresh challenge with a key naming the
|
|
466
|
+
credential it is about to send (the link token, or the sync token), and only a daemon that keeps that credential's
|
|
467
|
+
digest answers it, on its loopback port alone (sandbox-contract `protocol/doors/loopback-proof.ts`). No proof, or a
|
|
468
|
+
daemon from before it, and the public address is dialled. Redeeming a pairing always goes to the public address.
|
|
323
469
|
- Every connection dials out; the only listeners are on loopback. One of them is short-lived: while a sandbox's
|
|
324
470
|
sign-in is open, [`device/loopback-catch.ts`](src/device/loopback-catch.ts) listens on the
|
|
325
471
|
`http://localhost:<port>/…` address the provider redirects to, the one a CLI running here would have held, and
|
|
@@ -335,18 +481,73 @@ flowchart LR
|
|
|
335
481
|
the cache its builds and pulls leave as memory taken from Windows, and `.wslconfig`'s autoMemoryReclaim returns it
|
|
336
482
|
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
483
|
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
|
|
339
|
-
/proc/sys/vm/drop_caches` as root in one running distro (the user's own first, else
|
|
340
|
-
the one kernel).
|
|
341
|
-
|
|
484
|
+
tenth of the machine, whichever is more, and at most once every five minutes, it runs `sync; echo 3 >
|
|
485
|
+
/proc/sys/vm/drop_caches` and compacts memory as root in one running distro (the user's own first, else
|
|
486
|
+
docker-desktop: every distro shares the one kernel). Under a fifth of the machine it drops at most every 30 minutes.
|
|
487
|
+
WSL is never booted for this: with nothing in `wsl.exe --list --running` there is no cache to give.
|
|
488
|
+
The agent's log gets one line per drop with what Windows had before and five seconds after. (2026-11-24) A drop that
|
|
489
|
+
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
|
|
490
|
+
hour; one that gave back more, or Windows climbing over a fifth of the machine, brings the five minutes back, and under
|
|
491
|
+
1.5 GiB they hold regardless. rog's Windows never left that line while its VM kept the 22 GB `.wslconfig` gives it: 287
|
|
492
|
+
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
|
|
493
|
+
cache read back from disk. (2026-11-26) Each sandbox on such a PC first reclaims from its own cgroup when its host
|
|
494
|
+
reading is under the same line (the sandbox's `hosts/reclaim/host-reclaim.ts`), so above 1.5 GiB the drop waits a
|
|
495
|
+
minute into each low spell (`RECLAIM_GRACE_MS`) before it runs; under 1.5 GiB it runs at once as before. Measured on
|
|
496
|
+
rog that day, a sandbox's own 1 GiB reclaim did not move Windows' available memory beyond its noise: the drop, which
|
|
497
|
+
compacts, is still what gives memory back. The same side answers the
|
|
342
498
|
sandbox's heartbeat (`ping`) with Windows' available and total memory, which the sandbox's heavy-command gate holds
|
|
343
499
|
work back on while this PC is the one running it ([sandbox README](../../_sandbox/sandbox/README.md)); a distro's agent
|
|
344
500
|
and other platforms answer `{ ok: true }` as before.
|
|
501
|
+
- (2026-11-26) **Free memory the VM cannot give back.** The VM returns free memory to Windows through free page
|
|
502
|
+
reporting, which reports only free blocks of 2^`page_reporting_order` pages or more; WSL boots its kernel with 5
|
|
503
|
+
(128 KiB), and smaller free blocks stay charged to Windows. On rog, 1.1-1.7 GB of the VM's free memory sat stranded
|
|
504
|
+
on average, 7.5 of the 9.1 GB a drop had just freed, and 93% of what a sandbox's `memory.reclaim` freed (58% still
|
|
505
|
+
under 16 KiB). So while Windows is tight (under a fifth of its memory) the Windows side reads the guest's
|
|
506
|
+
`/proc/buddyinfo`, its order and its kernel command line through a distro already running (`wsl.exe -d <distro>`, as
|
|
507
|
+
its own user; every five minutes, every minute in a low spell until the order is lowered), and the heartbeat carries
|
|
508
|
+
it beside Windows' figures with vmmemWSL's working set from the watch below (`HostMemory.vm`, `guestFree`; dropped
|
|
509
|
+
after ten minutes without a reading). When Windows is under its low line with more than 1 GiB stranded, or a drop is
|
|
510
|
+
due and that much is stranded, it lowers the order to 2 and compacts once as root instead of dropping, and the drop
|
|
511
|
+
then waits its cooldown from there (under 1.5 GiB the drop runs as well). The order it found goes back once Windows
|
|
512
|
+
has had more than a fifth of its memory for ten minutes, and when the agent stops; one log line each, with stranded
|
|
513
|
+
memory and Windows' available before and after ([`environments/wsl-page-reporting.ts`](src/environments/wsl-page-reporting.ts)
|
|
514
|
+
decides, [`environments/wsl-guest.ts`](src/environments/wsl-guest.ts) acts). An order that no longer reads 2 was
|
|
515
|
+
someone else's or a restarted VM's and is left alone; one at 2 the agent holds no record of (it was killed holding
|
|
516
|
+
it) is adopted and put back to the kernel's boot value. A root that cannot write it leaves the drops as before for
|
|
517
|
+
half an hour. Measured on rog: lowering with 2.7 GB stranded took vmmemWSL's private bytes down 1.6 GB and raised
|
|
518
|
+
Windows' available by 0.8 GB within 16 s (0.9 GB after the compaction), and the stranded mean over minutes fell from
|
|
519
|
+
1.1-1.7 GB to 0.3 GB. That is for a VM whose memory the host backs with large pages (WSL boots it at 9), where 16 KiB
|
|
520
|
+
blocks would split them. A VM WSL boots at 5 or lower is backed by 4 KiB pages (`WslCoreVm.cpp` in microsoft/WSL), so
|
|
521
|
+
there it is lowered as soon as Windows is under a fifth of its memory with more than 1 GiB stranded, and held until
|
|
522
|
+
the agent stops. Measured on rog (booted at 5): memory re-touched after page reporting took it cost 1390 ns a page
|
|
523
|
+
against 1137, and rog's VM allocates 25-54 thousand pages a second, so the lower order costs it at most 0.08% of its
|
|
524
|
+
16 vCPUs.
|
|
525
|
+
- (2026-11-26) **A WSL VM too big for its PC.** Dropping cache could not help rog: its `.wslconfig` gives the VM 22 GB
|
|
526
|
+
of 31.4 GiB and the VM keeps it. So the same side reads Windows' available memory and vmmemWSL's working set and
|
|
527
|
+
private bytes every five minutes (`Get-Process`, a PowerShell's 0.35 s of CPU; `tasklist` for the working set alone
|
|
528
|
+
where PowerShell fails) and keeps four hours of readings in memory ([`environments/wsl-memory-watch.ts`](src/environments/wsl-memory-watch.ts)).
|
|
529
|
+
The private bytes are what Windows charges the VM, in RAM or pushed out of it: rog's VM held 21.7 GiB against an
|
|
530
|
+
18.2 GiB working set (2026-11-26), and the heartbeat's `vm` carries both.
|
|
531
|
+
When Windows was under its low line in at least 60% of three or more hours of them, while the VM's median private
|
|
532
|
+
bytes (its working set where they were not read) were a third of the RAM or more and above the size that fits, it
|
|
533
|
+
proposes `memory=` as the RAM less Windows' own
|
|
534
|
+
use outside the VM (its 90th percentile), the low line and 0.5 GiB, rounded down to a whole GB, never under 8 GB
|
|
535
|
+
(the heaviest command the heavy-command queue prices plus the agent running it), and only when that is at least
|
|
536
|
+
2 GB under what the VM may take now ([`environments/wsl-memory-fit.ts`](src/environments/wsl-memory-fit.ts)). On
|
|
537
|
+
rog's readings: 15 GB, with both 18 GiB sandbox caps named as past it. The device facts carry it
|
|
538
|
+
(`DeviceFacts.wslMemory`); the sandbox asks the owner on a card, and their yes runs the `wsl-memory` op,
|
|
539
|
+
`intentic-machine wsl-memory apply --gb <N> --why <…>`: the file is copied to `.wslconfig.bak.<date>` (`.2`, `.3`
|
|
540
|
+
on a day that has one), then only the `memory=` line of `[wsl2]` is rewritten (or added) with a dated line above it
|
|
541
|
+
in the owner's own style, every other line, its line endings and its encoding as found
|
|
542
|
+
([`environments/wslconfig-memory.ts`](src/environments/wslconfig-memory.ts)). Nothing restarts WSL: that restarts
|
|
543
|
+
every sandbox on the PC, and is the owner's to do. Readings are not kept across a restart of the agent, so after an
|
|
544
|
+
update it decides nothing for three hours.
|
|
345
545
|
- (2026-11-03) The same heartbeat answer carries the GPU resets and crashes Windows logged in the last day
|
|
346
546
|
(`crashes`, [`environments/windows-crash-events.ts`](src/environments/windows-crash-events.ts)). On 2026-11-02 a
|
|
347
547
|
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
|
|
349
|
-
minute and never two at once, reads the event log
|
|
548
|
+
the PC powered off, and the sandbox could only say it had been killed without warning. One PowerShell, at most every
|
|
549
|
+
five minutes (once a minute until 2026-11-24) and never two at once, reads the event log, filtered by the event log
|
|
550
|
+
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
551
|
Kernel-Power 41 (rebooted without a clean shutdown) and WER-SystemErrorReporting 1001 (a bugcheck; 0x116, 0x117 and
|
|
351
552
|
0x141 are the display driver's), and Application's Windows Error Reporting 1001 for a LiveKernelEvent whose P1 is
|
|
352
553
|
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 +571,10 @@ put on localhost is still reported, with its reason:
|
|
|
370
571
|
- `ignored`: this device was told to leave the number alone, by `intentic-machine sync mirror ignore --sandbox <id>
|
|
371
572
|
--port <n>` (without `--sandbox`, for every pairing). `unignore` hands it back, and it is mirrored once it is free.
|
|
372
573
|
|
|
574
|
+
(2026-11-24) **The local-daemon band is never mirrored**: a port from 28000 to 31999 is where this agent dials a
|
|
575
|
+
sandbox's daemon over loopback (`isLocalDaemonPort` in sandbox-run), so a sandbox listening on one is neither mirrored
|
|
576
|
+
nor reported, even when asked for with `include`.
|
|
577
|
+
|
|
373
578
|
(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
579
|
shell, or a background job it ran) is not mirrored and not reported, unless the agent left the job running for the
|
|
375
580
|
owner (`job`) or the owner asked for it on this device with `sync mirror include --port <n>` (`exclude` restores the
|
|
@@ -700,6 +905,16 @@ whose it is.
|
|
|
700
905
|
exits 0 with a ref refused counts as failed, never as landed. Before 2026-10-21 every full clone behind a shallow
|
|
701
906
|
sandbox was held for a day, then up to a week, including clones that held the cut commit. Leftovers older than an
|
|
702
907
|
hour from an earlier agent are cleared once per process. Holds are in `status` and the report.
|
|
908
|
+
- **A quiet repo costs the bridge no SSH login** (2026-11-24, [`sync/bridge/git-bridge.ts`](src/sync/bridge/git-bridge.ts)).
|
|
909
|
+
The bridge asked every repo's branch and tip with `git ls-remote` over a fresh SSH login every five seconds, and
|
|
910
|
+
listed the repos with `ls /history/gits` every minute: two logins a second into a ten-repo sandbox, each one sshd,
|
|
911
|
+
PAM and a `git-upload-pack` there, plus six local gits per repo per pass here. A sandbox since then names every repo's
|
|
912
|
+
branch and tip on the `/ports` answer the watcher polls anyway (`bridgeHeads`, read off its git dirs' files,
|
|
913
|
+
[`bridge-heads.ts`](../../_sandbox/sandbox/src/git/remote/bridge-heads.ts)). Against it the bridge runs no
|
|
914
|
+
ls-remote and no listing, fetches only a repo whose advertised tip differs from the clone's, and keeps what it read of
|
|
915
|
+
a level clone with the stamps of the files those answers come from (`.git/config`, `HEAD`, `packed-refs`, the
|
|
916
|
+
branch's ref and its marker), so a repo nothing moved in costs no process; a pass whose poll failed leaves such a
|
|
917
|
+
sandbox's bridge be. Against a sandbox without the field, the bridge runs as before.
|
|
703
918
|
- **A nearly full drive holds folder sync still** (2026-10-18, [`sync/low-disk.ts`](src/sync/low-disk.ts)). Every
|
|
704
919
|
pass measures the drive holding each folder whose session writes there (not a copy-first project, which only sends).
|
|
705
920
|
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 +939,9 @@ whose it is.
|
|
|
724
939
|
`sandbox fix` past its deadline (below), which is not a swap. Every restart of the agent (the auto-upgrade
|
|
725
940
|
tick, `upgrade`, `run`, the browser's Update and Restart) waits while `ic sandbox swaps --json` says a cutover is in
|
|
726
941
|
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)).
|
|
942
|
+
([`device/sandbox-rounds/ic-swaps.ts`](src/device/sandbox-rounds/ic-swaps.ts)). One answer serves every reader (the
|
|
943
|
+
mirror pass every 5 s, the probation watch, the keeper, the auto-upgrade), held while ic's channel records stay
|
|
944
|
+
unchanged and 30 s at most; the restart's own gate asks fresh (2026-11-24). The verdict is ic's own, heartbeat
|
|
728
945
|
and all, and the command answers without Docker. An older ic that lacks it is read by a fallback that applies the
|
|
729
946
|
same rule from the shared `swap-verdicts.json` fixture, marked `COMPAT(ic-swaps)`. The keeper skips a sandbox on the
|
|
730
947
|
same answer. The agent no longer reads ic's records itself. The tick
|
|
@@ -735,7 +952,7 @@ whose it is.
|
|
|
735
952
|
ic finishes or undoes an interrupted cutover and rolls a failing new version back; the agent logs what it did.
|
|
736
953
|
The per-record watch runs in every environment, since only the environment that swapped holds the record, and so
|
|
737
954
|
does the sweep: ic answers each environment only for the sandboxes it keeps (`HOST_PLATFORM` on the container,
|
|
738
|
-
[`ic`'s side.rs](../../
|
|
955
|
+
[`ic`'s side.rs](../../_hosts/ic/src/sandbox/side.rs)).
|
|
739
956
|
- **Daily**, in every environment, for the sandboxes it keeps: `ic sandbox backup <slug> --auto --json` for each
|
|
740
957
|
running sandbox, one at a time, twenty to forty minutes after start (a supervised distro half an hour later than the
|
|
741
958
|
root, so the two sides of a PC never read one engine's disks at once) and then every day, then one
|
|
@@ -823,7 +1040,10 @@ daemon whose registration gave up, a full disk), the agent heals what is safe to
|
|
|
823
1040
|
clock.
|
|
824
1041
|
|
|
825
1042
|
- **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)
|
|
1043
|
+
logon case: Docker Desktop is off by default after a reboot), then every five minutes while the look before it finds
|
|
1044
|
+
something wrong (a sandbox of this side listed neither running nor asleep or with no container, Docker not answering,
|
|
1045
|
+
the last sweep not clean) and every quarter hour otherwise (2026-11-24; under ic's 30-minute adoption window, since
|
|
1046
|
+
each sweep writes the keeper's lease), and `ic sandbox fix <slug> …` as
|
|
827
1047
|
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
1048
|
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
1049
|
swap pause maps them), or when the agent has reached it over loopback.
|
|
@@ -876,7 +1096,8 @@ clock.
|
|
|
876
1096
|
told, so the records stand in for the listing, which is the logon case the keeper is for.
|
|
877
1097
|
- **Runners** ([`device/sandbox-rounds/runner-keeper.ts`](src/device/sandbox-rounds/runner-keeper.ts), 2026-11-09)
|
|
878
1098
|
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
|
|
1099
|
+
Docker, so nothing else would bring one back. Once a minute, for every runner this side keeps (one `docker exec` that
|
|
1100
|
+
reads its link, and a `docker inspect` only when that fails), a container that is not
|
|
880
1101
|
running (asleep, stopped, exited) is started with `ic sandbox start`, and a running one whose link to its parent has
|
|
881
1102
|
been down for ten minutes of the keeper watching is restarted with `ic sandbox restart`, but only while that parent
|
|
882
1103
|
answers `/health` from this machine (otherwise it is asleep, restarting or gone, and the runner keeps dialling on its
|
|
@@ -904,7 +1125,8 @@ clock.
|
|
|
904
1125
|
|
|
905
1126
|
(2026-10-10) A PC holding a dozen sandboxes, one or two of them in use, kept every one up: about 1.4 GB each on rog.
|
|
906
1127
|
The keeper now puts an unneeded sandbox to sleep and wakes it when somebody opens it
|
|
907
|
-
([`device/sandbox-rounds/sleep.ts`](src/device/sandbox-rounds/sleep.ts))
|
|
1128
|
+
([`device/sandbox-rounds/sleep.ts`](src/device/sandbox-rounds/sleep.ts)), and puts one more to sleep while the
|
|
1129
|
+
computer stays short of memory (below).
|
|
908
1130
|
|
|
909
1131
|
- **Sleep.** Right after each sweep the keeper runs `ic sandbox sleep --idle <minutes> --json --source agent`. ic stops,
|
|
910
1132
|
through Docker (so `--restart unless-stopped` leaves it down), every running sandbox of this side whose daemon has
|
|
@@ -939,9 +1161,112 @@ The keeper now puts an unneeded sandbox to sleep and wakes it when somebody open
|
|
|
939
1161
|
daemon is up and fires it on the minute. A moment due within that lead and five minutes keeps the sandbox awake
|
|
940
1162
|
instead. A sandbox the alarm woke that no person has used since sleeps again five minutes after the work is done. The
|
|
941
1163
|
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
|
|
1164
|
+
it: the daemon then fires it once, late, when it next starts (the scheduler's catch-up; the computer's own sleep is
|
|
1165
|
+
[Power settings](#power-settings) below).
|
|
943
1166
|
`intentic-machine sandbox sleep <slug>` puts one sandbox to sleep now. An `ic` without the verbs is said once and
|
|
944
1167
|
nothing sleeps.
|
|
1168
|
+
- **When memory is short** (2026-11-26). rog sat under its low line for hours while a second sandbox nobody had opened
|
|
1169
|
+
for 15 hours held about 1.9 GB. So, apart from the stretch above, the keeper puts ONE sandbox to sleep for memory
|
|
1170
|
+
([`device/sandbox-rounds/memory-relief/memory-sleep.ts`](src/device/sandbox-rounds/memory-relief/memory-sleep.ts)): once the computer has been
|
|
1171
|
+
under the low line both sides keep (`hostMemoryLowBytes`) for ten minutes running, as Windows' side reads Windows
|
|
1172
|
+
(`windows-memory.ts`) and a Linux host reads its kernel's `MemAvailable` (never a WSL distro, whose meminfo is the
|
|
1173
|
+
VM's). Of the sandboxes this side keeps, it reads each one's work signal (`docker exec … cat /run/intentic/work.json`,
|
|
1174
|
+
the daemon's answer to idle-stop's questions) and asks ic to sleep the one quiet longest, at least an hour, with
|
|
1175
|
+
nothing it promised due within a quarter of an hour: `ic sandbox sleep <slug> --idle 60 --json --source agent
|
|
1176
|
+
--unattended --reason "<why>"`. ic decides as for every sleep and asks the daemon again just before the stop. Here,
|
|
1177
|
+
and only here (the owner's call, 2026-11-26), an editor tab or desktop app left connected that nobody has been at
|
|
1178
|
+
for half an hour counts as nobody: the daemon says so as `unattendedSince`, from the editor's own `idle`/`away`
|
|
1179
|
+
reports, and `--unattended` has ic read it instead of the strict `quietSince`. Somebody back at the editor withdraws it
|
|
1180
|
+
in the daemon's last answer, so the sleep is refused; the line then says `(an editor is still open on it, untouched)`
|
|
1181
|
+
for a sandbox slept with one open. It never sleeps the
|
|
1182
|
+
only sandbox awake on the engine (the other side's count), a runner, one another flow is touching, or one kept awake
|
|
1183
|
+
by its own "Sleep when unused". One it leaves awake is skipped for the next. After a sleep the next look waits ten
|
|
1184
|
+
minutes and reads memory again first, so another sandbox sleeps only while the computer is still short. A look that
|
|
1185
|
+
slept nothing waits five minutes and says why once. The log says
|
|
1186
|
+
`keeper <slug>: put to sleep to give memory back: …`, with the figures, how long it had been unused and that opening
|
|
1187
|
+
it wakes it. `--reason` puts the same cause into the sandbox's own record of the stop, which it reads at its next
|
|
1188
|
+
boot. An ic from before the two flags is asked without both, and for an hour after; it then keeps an open editor as
|
|
1189
|
+
somebody there. Waking is the same as for any sleeping
|
|
1190
|
+
sandbox, above. The switch is the PC's `memorySleep` (`intentic-machine updates --memory on|off`, absent means on);
|
|
1191
|
+
`sleep-after off` does not turn it off, and a sandbox's "Sleep when unused" keeps that one up.
|
|
1192
|
+
|
|
1193
|
+
### Power settings
|
|
1194
|
+
|
|
1195
|
+
(2026-11-22) The section above is about a SANDBOX asleep, which the keeper decides; this one is about the COMPUTER
|
|
1196
|
+
asleep, which its own OS decides, and which stops every sandbox on it at once. Two sandboxes on rog had conversations
|
|
1197
|
+
booked for the night. rog's power plan said "Sleep after (plugged in): 5 hours", so five hours after the last keypress,
|
|
1198
|
+
at 05:37 UTC, Windows took it from Modern Standby into real sleep, and nothing on it ran until its lid was opened at
|
|
1199
|
+
10:01: a send booked for 07:10 went out three hours late, and nobody had been told this could happen. The owner chose
|
|
1200
|
+
not to hold the computer awake from software: the agent reads the settings that would stop work left running, says
|
|
1201
|
+
what each does, and changes them only at the owner's word ([`power/`](src/power)).
|
|
1202
|
+
|
|
1203
|
+
- **What is read.** Only by the environment that owns the settings: Windows' own side, a Linux host, a Mac, never a WSL
|
|
1204
|
+
distro (its computer is the Windows PC around it). On Windows, one PowerShell
|
|
1205
|
+
([`windows-reading.ts`](src/power/windows-reading.ts)) reads four settings from EVERY power plan, since a vendor's
|
|
1206
|
+
tool switches plans by itself (rog's ASUS software moves between Performance, Balanced, Silent and Turbo): sleep after
|
|
1207
|
+
(STANDBYIDLE), hibernate after (HIBERNATEIDLE), the lid (LIDACTION) and the network in Modern Standby
|
|
1208
|
+
(CONNECTIVITYINSTANDBY), each on mains power and on battery. It also reads whether the PC has Modern Standby, a
|
|
1209
|
+
battery and a lid (CallNtPowerInformation, through Add-Type), Windows Update's active hours, whether it is paused and
|
|
1210
|
+
until when, whether an update already waits for a restart, and the offset from UTC.
|
|
1211
|
+
`powercfg` prints its labels in the PC's language (owners run Polish and German Windows), so only its GUIDs and
|
|
1212
|
+
`0x` numbers are read: `powercfg /qh <plan> <subgroup> <setting>` ends, in every language, with the AC index and then
|
|
1213
|
+
the DC index. A setting a plan lacks reads as absent, never as an error. Measured on rog: about a second, most of it
|
|
1214
|
+
PowerShell starting. On Linux, all four sleep targets masked (`systemctl is-enabled`) means the computer cannot suspend
|
|
1215
|
+
at all (z440); otherwise logind's lid action on mains power (on a computer with a lid), logind's `IdleAction` and
|
|
1216
|
+
GNOME's idle suspend are read ([`linux.ts`](src/power/linux.ts)). On a Mac, `pmset -g custom`'s AC `sleep`
|
|
1217
|
+
([`macos.ts`](src/power/macos.ts)).
|
|
1218
|
+
- **What it says.** Findings ([`windows-findings.ts`](src/power/windows-findings.ts), the contract's `HostPowerSchema`),
|
|
1219
|
+
each with a plain sentence of the agent's own, and the plans that hold it where that matters:
|
|
1220
|
+
- `sleep-idle` and `hibernate-idle`: a plan sleeps or hibernates the PC after a time without input on mains power,
|
|
1221
|
+
the shortest across plans (a value from 0x7FFFFFFF up counts as never);
|
|
1222
|
+
- `lid-close`: closing the lid on mains power sleeps, hibernates or shuts it down (only where there is a lid);
|
|
1223
|
+
- `standby-network`: on Modern Standby, a plan cuts the network while the screen is off, so whatever a sandbox calls
|
|
1224
|
+
out to fails;
|
|
1225
|
+
- `battery-sleep`: on battery it sleeps after a time or when the lid closes. Told, never changed: a laptop in a bag
|
|
1226
|
+
must still sleep;
|
|
1227
|
+
- `update-restart`: Windows Update may restart the PC outside its active hours (rog's 08:00 to 02:00 make 02:00 to
|
|
1228
|
+
08:00). Stay-on never changes it: the active hours are the owner's to pick. (2026-11-27) It says what follows a
|
|
1229
|
+
restart (`comesBack`: a sign-in, or the PC starting its sandboxes itself, where the start before sign-in is on and
|
|
1230
|
+
they run on intentic's engine), a pause in force (`pausedUntil`), an update waiting for a restart
|
|
1231
|
+
(`restartPending`), and the ops that answer it (`offers`): `update-pause` always, and `before-sign-in` on
|
|
1232
|
+
intentic's engine while that task is off;
|
|
1233
|
+
- `os-sleep`: Linux or macOS may suspend the computer. The fix needs root, so the finding carries the command
|
|
1234
|
+
(`sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target`, `sudo pmset -c sleep 0`)
|
|
1235
|
+
and the agent never runs it. A MacBook's lid sleeps it whatever the setting, unless an external display is attached.
|
|
1236
|
+
- **Where it goes.** The device's facts carry it as `power` (`describe` at every hello and every two minutes), so the
|
|
1237
|
+
sandbox can raise a card when work it booked would be slept through. A reading is kept half an hour (dropped at
|
|
1238
|
+
once when this agent's own stay-on or restore changed the settings) and an older one is answered while the next is
|
|
1239
|
+
read; the C# it loads for the native read is compiled once into a DLL under `~/.intentic/machine/cache` rather than on
|
|
1240
|
+
every reading; a read that fails is said once in `machine.log` and leaves the field absent until
|
|
1241
|
+
one works. `describe` says the findings in one line and that they are the owner's to change. The Windows side
|
|
1242
|
+
advertises `power`, the feature that says it takes the `power-stay-on` op, and `power-restart`, the `update-pause`
|
|
1243
|
+
and `before-sign-in` ops.
|
|
1244
|
+
- **Pausing Windows Update** (Windows only, [`update-pause.ts`](src/power/update-pause.ts)). `intentic-machine power
|
|
1245
|
+
pause-updates --until <when>`, which the card's `update-pause` op runs, writes the six values Windows' own Settings
|
|
1246
|
+
page writes under `HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings` (that key lets a signed-in user set values,
|
|
1247
|
+
so there is no prompt), then has the orchestrator read them (`UsoClient RefreshSettings`). It never shortens a pause
|
|
1248
|
+
already in force and never pauses for more than Windows' five weeks. Checked on rog unelevated: the orchestrator's own
|
|
1249
|
+
state read both feature and quality updates paused within half a minute.
|
|
1250
|
+
- **Stay-on** (Windows only, [`writes.ts`](src/power/writes.ts) decides, [`apply.ts`](src/power/apply.ts) does). The
|
|
1251
|
+
owner's yes on that card runs the `power-stay-on` op, which is `intentic-machine power stay-on` detached, as `upgrade`
|
|
1252
|
+
is. For every plan, on mains power only: sleep after and hibernate after to never, the lid to do nothing (where there
|
|
1253
|
+
is a lid), and on Modern Standby the network in standby from disabled to enabled. Only values that differ are written,
|
|
1254
|
+
so a second run writes nothing. Each goes through `powercfg /setacvalueindex`, which needs no elevation (checked on
|
|
1255
|
+
rog), and then `powercfg /setactive` on the active plan, which otherwise keeps what it had loaded. Battery values are
|
|
1256
|
+
never written. The run reads the settings again and says, per finding, whether it changed; one stay-on would change
|
|
1257
|
+
that is still there makes it exit 1.
|
|
1258
|
+
- **Put back.** Before the first write the values as they were go to `~/.intentic/machine/power-before.json`. An entry
|
|
1259
|
+
already there is never overwritten, since after the first stay-on a plan holds stay-on's own value, not the owner's: a
|
|
1260
|
+
later stay-on only adds what it had not saved. A snapshot that cannot be read stops the run before anything is
|
|
1261
|
+
written. `intentic-machine power restore` writes each saved value back where the plan still holds what stay-on wrote,
|
|
1262
|
+
leaves one the owner has changed since (and says so), reloads the active plan and removes the snapshot.
|
|
1263
|
+
- **Told at once.** Both runs touch `~/.intentic/machine/power-changed` when they wrote anything; the resident agent
|
|
1264
|
+
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
|
|
1265
|
+
too as it ends. So the facts the daemon reads right after the owner's yes say what Windows now holds, whether the
|
|
1266
|
+
run was the op or a person in a terminal.
|
|
1267
|
+
- **By hand.** `intentic-machine power status [--json]` reads and shows the same findings (`--json`: the facts' `power`
|
|
1268
|
+
plus `ok` and `restorable`); `power stay-on` and `power restore` as above. In a WSL distro each verb is handed to the
|
|
1269
|
+
Windows side's agent. On Linux and macOS, `stay-on` changes nothing: it prints the finding's command and exits 1.
|
|
945
1270
|
|
|
946
1271
|
### The engine's disk
|
|
947
1272
|
|
|
@@ -951,15 +1276,25 @@ unrelated Postgres of the owner's PANICked on ENOSPC and stayed down. Nothing ha
|
|
|
951
1276
|
tools show other disks, each sandbox's disk watch cleans only its own checkouts, and the daily tidy came too late. The
|
|
952
1277
|
Windows side's agent now watches that disk
|
|
953
1278
|
([`device/sandbox-rounds/engine-disk.ts`](src/device/sandbox-rounds/engine-disk.ts)). ic does the measuring and the
|
|
954
|
-
clearing ([`ic engine disk`](../../
|
|
1279
|
+
clearing ([`ic engine disk`](../../_hosts/ic/README.md)); this keeps the clock and tells.
|
|
955
1280
|
|
|
956
|
-
- **Every minute**, `ic engine disk --json
|
|
1281
|
+
- **Every minute**, `ic engine disk --json` (at `ok`, every ten minutes while 20% or more is left, every five from 15%,
|
|
1282
|
+
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
|
|
1283
|
+
the engine's VHDX, and the level it makes. When the Windows drive is limiting, the line names it and its free space
|
|
1284
|
+
(for example, `Windows drive C:\ has 18.5 GB free under the engine's disk (376.0 GB)`). `ok`; `low` under 10% of
|
|
957
1285
|
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](../../
|
|
1286
|
+
2 to 10 GiB, [engine README](../../_hosts/ic/engine/README.md#its-disk)), which the keeper gives back the moment the
|
|
959
1287
|
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
1288
|
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
1289
|
again every ten minutes. Only the Windows side runs it: the engine is the PC's, and the distros' agents would watch
|
|
962
1290
|
the same disk twice.
|
|
1291
|
+
- **Unreadable.** A failed read that points to I/O or a broken WSL attachment, or an `unreadable` answer from ic, is
|
|
1292
|
+
said once until a read succeeds. The line explains that the Windows drive may have filled and left WSL holding a
|
|
1293
|
+
broken attachment, and says to free space if the drive is short before running `ic engine restart --wsl`. That repair
|
|
1294
|
+
restarts Docker Desktop too. The watch checks again every ten minutes while the disk cannot be read.
|
|
1295
|
+
- **Compaction.** When more than both 50 GB and a quarter of the VHDX could be returned, the line says approximately
|
|
1296
|
+
how much `ic engine compact` could give back. It is said once while space is low, and is never run by the watch. Compaction
|
|
1297
|
+
needs one UAC prompt and stops sandboxes on the engine for a few minutes.
|
|
963
1298
|
- **Cleared.** On each level crossed upwards, and every quarter hour while it stands at critical or full, `--relieve`
|
|
964
1299
|
clears what is nobody's data for that level: dangling build cache and dangling images when low, all unused build
|
|
965
1300
|
cache when critical, and when full the ballast first. Never a volume and never an image with a name. A clearing while
|
|
@@ -1080,6 +1415,31 @@ lists `machine.log`(`.1`), `machine-update.log`, `audit.jsonl`(`.1`) and ic's pe
|
|
|
1080
1415
|
the audit `tool` and `failedOnly`. It is gated like `sandbox_logs`. `describe` names the `ic` that answers (path,
|
|
1081
1416
|
version, file time) and the `IC_*`/`INTENTIC_*` variables in the agent's environment, secrets by length only.
|
|
1082
1417
|
|
|
1418
|
+
### The agent's own memory
|
|
1419
|
+
|
|
1420
|
+
(2026-11-22) On rog, the Windows agent showed 520 MB of commit charge but held under 100 MB in RAM. Commit charge is
|
|
1421
|
+
memory Windows has promised a process and counts against RAM plus the page file. Most of the gap was threads: the
|
|
1422
|
+
compiled agent's runtime (Bun) runs file and DNS work on Windows in libuv's thread pool, sized by the CPU count, and
|
|
1423
|
+
each thread commits about 2.5 MB of stack and several MB of allocator heap that it barely touches. Concurrent file work
|
|
1424
|
+
grew the pool to about 45 threads, and they never left.
|
|
1425
|
+
|
|
1426
|
+
- **The pool is capped at 4 on Windows** ([`io-pool.ts`](src/resident/io-pool.ts)), the size libuv and Node use.
|
|
1427
|
+
libuv reads `UV_THREADPOOL_SIZE` once, when the pool first starts, so `cli.ts` imports this module first. It sets
|
|
1428
|
+
the variable only where nobody chose a size, starts the pool with one stat, and removes the variable again, so no
|
|
1429
|
+
program the agent starts inherits it. Measured with a probe doing the agent's kinds of work: 44 threads and 374 MB
|
|
1430
|
+
of commit uncapped, 26 threads and 206 MB capped, RAM no higher. Linux and macOS are left alone: there the runtime
|
|
1431
|
+
does not use libuv, and the probe saw no difference.
|
|
1432
|
+
- **The JavaScriptCore GC-marker threads** (`BUN_JSC_numberOfGCMarkers`) would save about 7 threads and 20 MB more, but
|
|
1433
|
+
the runtime reads that variable only at process start, before any of the agent's code runs. Setting it means a
|
|
1434
|
+
change in every supervisor that starts the agent, so it is not set.
|
|
1435
|
+
- **A memory reading every ten minutes** ([`memory-log.ts`](src/resident/memory-log.ts)) goes into
|
|
1436
|
+
`~/.intentic/machine/memory.jsonl`, one JSON line each, the newest week kept. The first comes a minute after the
|
|
1437
|
+
start, before sign-in too. Each reading has the process's own figures (`process.memoryUsage`: `rss` is the working
|
|
1438
|
+
set on Windows), the JavaScript heap as JavaScriptCore counts it with its twelve most numerous kinds of object
|
|
1439
|
+
(`bun:jsc` `heapStats`; absent under Node), and on Linux the thread count. Commit charge has no cheap reading from
|
|
1440
|
+
inside the process, so it is still read from outside. `status` shows the running agent's newest reading as its
|
|
1441
|
+
`memory` row, and `status --json` as `memory`. A reading from the agent before is left out.
|
|
1442
|
+
|
|
1083
1443
|
### The keyring
|
|
1084
1444
|
|
|
1085
1445
|
[intentic-keyring](../keyring), the vault behind Passwords, is a process of its own beside this agent (2026-10-16):
|
|
@@ -1242,13 +1602,26 @@ some link wants it, and enforces the switches ([`device/remote/`](src/device/rem
|
|
|
1242
1602
|
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
|
|
1243
1603
|
resolved again, and rewritten if it moved. remoted prints a status line on stdout whenever anything in it changes, and
|
|
1244
1604
|
the agent keeps the latest as `remoted-status.json`.
|
|
1245
|
-
- **The supervisor** ([`remote/remoted.ts`](src/device/remote/remoted.ts))
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1605
|
+
- **The supervisor** ([`remote/remoted.ts`](src/device/remote/remoted.ts)) keeps one remoted per environment, and it
|
|
1606
|
+
outlives the agent (2026-11-24): an upgrade, a watchdog kill or a crash leaves people's terminals and the programs in
|
|
1607
|
+
them running. The agent first connects to the control endpoint ([`remote/remoted-control.ts`](src/device/remote/remoted-control.ts);
|
|
1608
|
+
`remoted.sock` beside its state, or a named pipe on Windows, owner-only) and adopts the remoted it finds there when
|
|
1609
|
+
both speak a control protocol; otherwise it starts `intentic-remoted run --config <path> --control <endpoint>`
|
|
1610
|
+
detached (its own session on Unix, no window on Windows), its stderr into `remoted.log`, and adopts that one. An
|
|
1611
|
+
adopted remoted sends its status and its log lines over the endpoint, so they land in the agent's log as
|
|
1612
|
+
`remoted: …` as before. When the agent leaves it lets go of remoted, running; the next agent adopts it. A remoted
|
|
1613
|
+
that speaks no protocol of this agent's is asked to stop and replaced; one of another build (after an upgrade) is
|
|
1614
|
+
kept while anything is open on it and replaced once nothing is, so an upgrade ends no terminal. A remoted binary from
|
|
1615
|
+
before the control endpoint (it has no `control-protocol` word), and every remoted of an agent running before anyone
|
|
1616
|
+
signed in (it has no desktop, and the session's agent must not adopt it), runs as before as the agent's child with
|
|
1617
|
+
`--parent-stdin`, ending with it: on Windows the terminals opened before sign-in still end at the sign-in's handover.
|
|
1618
|
+
An exit nobody asked for is logged with its code and last line, and it is looked for and started again after 1 s,
|
|
1619
|
+
doubling to a minute, back to 1 s after a run that held a minute. Once no uplink is left (a `remoteStop`, every switch
|
|
1620
|
+
off, the link removed or revoked) it is asked to stop, and killed 3 s later if it is still there. Unadopted, remoted
|
|
1621
|
+
leaves by itself after 60 s with nothing open, and after 10 minutes whatever is open (remoted's README). `uninstall`
|
|
1622
|
+
(and removing the last link) asks it to stop over the endpoint, and names the pid in `remoted.pid` if nothing answers
|
|
1623
|
+
there. An agent starting takes up the uplinks `remoted.json` held for links that still exist and still allow
|
|
1624
|
+
something, and drops the rest.
|
|
1252
1625
|
- **The person at the computer.** On Windows, while anyone is connected, the agents' notice stays up and says so,
|
|
1253
1626
|
naming the foremost kind: someone using the mouse and keyboard, else viewing, else in a terminal. (2026-11-20: ranked by
|
|
1254
1627
|
the screen the person sits at, since a terminal shows whoever is connected nothing of it.) `Ctrl+Alt+Shift+P` pauses
|
|
@@ -1278,6 +1651,8 @@ some link wants it, and enforces the switches ([`device/remote/`](src/device/rem
|
|
|
1278
1651
|
(`remoteService`). Off Windows it answers `supported: false` without running anything. Who may ask: the daemon only,
|
|
1279
1652
|
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
|
|
1280
1653
|
front of the person, and no switch gates it, since the switches already bound what people may do through it.
|
|
1654
|
+
(2026-11-23) The same service runs an agent's command as administrator (`run_command`'s `admin`, above), so setting
|
|
1655
|
+
it up once is also what lets an agent do administrator work later with no prompt at this computer.
|
|
1281
1656
|
`uninstall` of this agent does not remove the service yet.
|
|
1282
1657
|
|
|
1283
1658
|
### Uninstall
|
|
@@ -1323,7 +1698,7 @@ person who runs it alone, and either way it never downloads anything.
|
|
|
1323
1698
|
|
|
1324
1699
|
## Key files
|
|
1325
1700
|
|
|
1326
|
-
- [src/commands.ts](src/commands.ts) — the CLI: `device`, `sync`, `keyring`, `sandbox`, `egress`, `remote`, `run`, `status`, `doctor`, `upgrade`, `updates`, `uninstall`.
|
|
1701
|
+
- [src/commands.ts](src/commands.ts) — the CLI: `device`, `sync`, `keyring`, `sandbox`, `egress`, `remote`, `power`, `ci-fleet`, `run`, `status`, `doctor`, `upgrade`, `updates`, `uninstall`.
|
|
1327
1702
|
- [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`.
|
|
1328
1703
|
- [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.
|
|
1329
1704
|
- [src/device/mcp.ts](src/device/mcp.ts) — every tool a sandbox can call on this device.
|
|
@@ -1335,9 +1710,13 @@ person who runs it alone, and either way it never downloads anything.
|
|
|
1335
1710
|
- [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`.
|
|
1336
1711
|
- [src/upkeep/manifest.ts](src/upkeep/manifest.ts) — what the device upkeep finds and puts right; `reconcile.ts` runs it.
|
|
1337
1712
|
- [src/resident/watchdog.ts](src/resident/watchdog.ts) — the agent's own hang watchdog.
|
|
1713
|
+
- [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.
|
|
1714
|
+
- [src/resident/io-pool.ts](src/resident/io-pool.ts) — the I/O thread pool capped at 4 on Windows, before anything starts it.
|
|
1338
1715
|
- [src/resident/pause-cause.ts](src/resident/pause-cause.ts) — what a pause the watchdog saw was: a sleep, a freeze or the clock.
|
|
1716
|
+
- [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`.
|
|
1339
1717
|
- [src/release/release-verify.ts](src/release/release-verify.ts) — a downloaded release binary checked against the release's signed `SHA256SUMS`.
|
|
1340
1718
|
- [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`.
|
|
1719
|
+
- [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.
|
|
1341
1720
|
- [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.
|
|
1342
1721
|
|
|
1343
1722
|
## Commands
|
|
@@ -1347,4 +1726,6 @@ pnpm --filter @intentic/machine test
|
|
|
1347
1726
|
pnpm turbo run build --filter=./_devices/machine
|
|
1348
1727
|
node _devices/machine/dist/cli.js status
|
|
1349
1728
|
node _devices/machine/dist/cli.js doctor # what the upkeep would do here; --fix does it
|
|
1729
|
+
node _devices/machine/dist/cli.js power status # what this computer's power settings would do to work left running
|
|
1730
|
+
node _devices/machine/dist/cli.js ci-fleet status # the CI runners here and what the fleet service last did
|
|
1350
1731
|
```
|