SPEC-018 Phase 1: managed agent as LocalSystem service host #7
Reference in New Issue
Block a user
Delete Branch "feat/spec-018-service-host"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 1 of SPEC-018 (managed-agent SYSTEM service host). Service HOST + lifecycle only; the session broker / per-session capture worker / CreateProcessAsUser / IPC are Phase 2 (intentionally absent, seams documented).
What's here
service-runsubcommand routes SCM launch into the service; runs the existing persistent-agent enroll/connect logic AS SYSTEM (so the SPEC-016 SYSTEM-ACL'd cak_ store is readable).Review
APPROVE WITH NITS -> all findings fixed + focused re-review CONFIRMED CLOSED:
Unblocks / still pending
Makes the agent run as SYSTEM so SPEC-016 Phase B cak_ store is readable end-to-end. Capture of a desktop needs Phase 2 (session broker + worker). Service install/start/stop + cak_-as-SYSTEM round-trip need a Windows VM/admin to integration-test (not installed on the dev host).
Local verify (Windows host): fmt --check, clippy -D warnings, release build (x86_64-pc-windows-msvc), 58 tests � all green.
Spec: docs/specs/SPEC-018-managed-agent-service-host.md.