Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

1.6 KB
Raw Blame
id: w02-install-supervised
platform: windows
# User-mode install on Windows, which is the supervised backend rather than a second service.
#
# Windows has no per-user service manager -- no equivalent of `systemctl --user` or launchd's
# gui/<uid> domain -- so `--user` falls back to a detached child tracked by a pidfile. That is a
# real limitation, and this scenario exists to pin it: expect_service_kind asserts the fallback
# actually happened rather than a service being registered under the user's name, which is what a
# future change to the routing would silently do.
#
# The honest consequence, which status reports in-band: nothing restarts this collector, and it
# does not survive logout.
prompt: >-
  Run exactly this PowerShell command and then report its output verbatim:
  Write-Output '{{canary}}' | Tee-Object -FilePath '{{sentinel}}'
sentinel: '{{workdir}}\w02.sentinel'
budget_usd: 1.0
timeout_seconds: 420

install:
  mode: user
  expect_status_running: true
  expect_service_kind: none
  verify_uninstall: true

expect:
  - action: prompt.submitted
    contains: ["{{canary}}"]
    why: >-
      Capture through a user-mode endpoint, which is a different path from the system-mode scenarios:
      a supervised collector rather than a service, and a log in the user's own profile rather than
      under %ProgramData%. It stayed optional until a run demonstrated it, because the system-mode
      result did not imply it -- the first attempt never reached the session, dying on an OTLP port
      conflict with a collector the previous scenario left behind. With that fixed the scenario
      captured 33 events, so the gap it was hedging against is closed.