Agent Runner Host Plan

Use the existing sys-host-audit skill and Sys Host Profiler for live read-only

Audit a host and plan a persistent runner

Prompt-first procedure: Describe the outcome you want in your agent conversation. The agent should select and load the appropriate AIWG assets, explain material changes, request any needed approval, and report verification evidence. Exact commands and flags appear only in the CLI reference.

Purpose

Use the existing `sys-host-audit` skill and Sys Host Profiler for live read-only collection, then `agent-runner-host-plan` for a reviewable conversion plan. Planning writes an artifact only; it never applies host changes, even when asked to apply. No new daemon, installer or credential collector is introduced.

System Topology

The plan targets one explicitly named host from a sanitized audit, locally or over authorized SSH. It covers codex, claude, muse, grok, pi, hermes and opencode. Record OS and architecture, including aarch64 compatibility, rather than assume that a CLI available on the planning workstation supports the target.

Procedure

1. Discover and read the existing audit skill:

Use AIWG to complete this documented outcome: 1. Discover and read the existing audit skill
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

Expected: Host Audit first; collect only its bounded, unprivileged metadata. Missing/restricted probes remain `UNABLE_TO_VERIFY`. Do not read credential files or CLI config contents. Compare approved inventory/CMDB fields only. 2. Discover the planning playbook and read its declared capability:

Use AIWG to complete this documented outcome: Expected: Host Audit first; collect only its bounded, unprivileged metadata. Missing/restricted probes remain UNABLE_TO_VERIFY. Do not read credential files or CLI config contents. Compare approved inventory/CMDB fields only. 2. Discover th
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

Expected: the planning playbook first. Bind `host` and `audit_report` to the same host and sanitized report. Stop for missing input or mismatched identity; record age and scope and block decisions lacking fresh evidence. Use the existing Ops Runbook Executor for its single artifact-authoring step. Do not invoke provisioning or host-verification capabilities as part of planning. 3. Resolve the destination from the project before any payload write:

Use AIWG to complete this documented outcome: Expected: the planning playbook first. Bind host and audit_report to the same host and sanitized report. Stop for missing input or mismatched identity; record age and scope and block decisions lacking fresh evidence. Use the existing Ops Ru
Have it inspect the current state, explain the plan, ask before material
changes, and report the result with verification evidence.

Expected: exit 0 and JSON with writable `artifact_root`. Use that exact root, including external roots configured through `.aiwg-location` or `AIWG_ARTIFACTS_PATH`. On error, stop and report it; never use a local fallback. Use a validated host identifier (letters, digits, hyphen, underscore only) and UTC filename timestamp to prevent traversal. After destination and `ops-information-governance` checks, write the completed template to `ops/plans/agent-runner-host/<host>-<UTC>.md` beneath that root. 4. Fill `templates/agent-runner-host-plan.md` in the installed ops framework (plugin: the same relative template path). Resolve every placeholder to an evidenced decision or explicit UNKNOWN/blocker. Include account custody, supervision/resource caps, all seven CLI rows, routing, durable state, OpenBao, observability, access limits and reconciliation proposals. 5. Read back the saved artifact and return `plan_path` and `unresolved`. A proposed path or a chat-only draft does not complete this flow. Never report the host ready or reconcile inventory from a design proposal.

Verification

Check that the returned plan exists beneath the resolved root, passes the governance boundary, has the template's eight sections, contains no credentials, and labels all implementation/host checks NOT RUN. Expected: a saved DRAFT with explicit gaps and no host changes. Refuse the apply option with the planning boundary.

Troubleshooting

  • No audit: run the read-only audit first; do not invent observations.
  • Privileged posture unknown: request sanitized operator booleans/effective

settings; never escalate collection or dump sudoers/SSH/provider config.

  • Store unavailable: restore/configure the intended store before retrying.

House Rules for Agents

The only writes in planning are sanitized artifacts in the configured store. Never install/authenticate CLIs, create accounts, enable linger, change services or firewall, or arm dead-man transactions. A future authorized implementation uses existing `host-standup`/`host-verify`, `host-hardening` recommendations and the runbook executor with `aiwg-requires`/`aiwg-run-as` markers. Its dependency validation and approval gates still apply; markers grant no authorization. Operator-applied lockout-sensitive changes reuse hardening's `lib-deadman.sh` and `rollback.sh`, with backups, deadline and second-session verification.

What NOT to Fix

Do not expand the audit into remediation or invent a second installer, router, service supervisor or rollback library. Record intentional host exceptions.

Audit Trail

Record host, audit reference/capture time, plan time, decision owner, destination, governance outcome and unresolved decisions in the plan. Host changes: NONE.