Manage remote resources
This skill owns billable resources, not the workload queue. Use run-ephemeral-hosts for a campaign and run-remote-builds for source/build synchronization. An existing user-lent host remains outside paid-resource deletion authority.
Before host selection or credential exposure, read remote host secrets and assurance. Apply its standing maintainer approvals and direct-copy decisions without asking again. Keep SSH private identities and lifecycle execution on the coordinator; ledger each destination. Read custody mechanics when transferring credentials or closing their records. The canonical contract owns additional approval gates and accepted disposal risk.
For campaign spending, apply standing configuration and prompt overrides. Otherwise use the user's existing explicit budget/deadline. Credential permission does not authorize spending or targets.
Plan and establish ownership
Read service selection and security admission when choosing a CPU/GPU host service or reviewing a new host configuration. For AWS, follow the AWS operating runbook for identity, service choice, launch checks and complete retirement. These references supply operating procedures, not a new spending grant or an implemented AWS watchdog.
- Define the bounded workload, completion signal, provider/account, region, CPU/RAM/GPU/disk needs, maximum total cost and hard deadline with cleanup reserve. Include bootstrap, canaries, idle time, storage, IPs, endpoints and egress. Apply validation overhead before repeated readiness checks.
- When comparing providers, read the dated CPU or GPU snapshot relevant to the workload. These are historical shortlists; verify current official billing, stock, account identity, balance/quota, create/inspect/permanent-delete operations and host assurance before provisioning. Insufficient API-visible balance closes creation until it changes. On Vast, prefer a qualifying North American offer unless capacity, total cost or reliability favors another locality; explicit residency/latency requirements are hard filters.
- Inventory pre-existing resources and choose a unique run ID and labels. Open a protected local ownership manifest and custody ledger before creation. Record exact resource IDs/types, account, creation times, authorization source, budget, deadline, and cleanup state. Register attached or indirectly created billable resources too; prefer adequately sized ephemeral storage and explicitly track persistent volumes.
- Arm independent cleanup before creation. A shell trap or cleanup process inside the rented host is insufficient. Provider-native permanent-delete expiry is preferred where available. Otherwise use an independently supervised coordinator watchdog; additional provider expiry covers coordinator/network loss where supported.
For Docker/browser workloads on Vast, read host capability admission before selecting an offer. For GPU inference configuration, read inference readiness; inference details are not resource lifecycle rules.
Register and verify cleanup supervision
Read shared resource watchdog before registering, changing, migrating or recovering cleanup. Use its executable schema and one supervised service with an owner-partitioned store. Dry-run the canonical command before arming; verify the exact supervisor/PID and fresh matching heartbeat before paid admission, after restarts and at checkpoints. Preserve spend and idle history across replacement, retirement and authorization extensions.
The current adapter deletes Vast instances only. Other providers and separately billed resource types need their own verified lifecycle mechanism. An instance-only inventory cannot prove account-wide cleanup or complete billing coverage. Unregistered resources remain observations unless an explicit reclamation policy applies.
Provision one resource at a time and capture its stable ID immediately. Reconcile ambiguous create responses using run labels, creation time and pre-existing inventory before retrying. Verify each new resource has effective cleanup coverage before starting its workload. Serialize manifest writes with one writer or lock/CAS; extensions must remain within aggregate authorization and preserve accrued spend. Partition multi-provider budgets without multiplying the ceiling.
Run within the ownership contract
Supervise bounded jobs with explicit completion/failure state and preserve outputs off-host incrementally. Use the verified Vast public IP and mapped SSH port by default; a proxy route is a bounded preflight fallback. Record and prove long-lived routes before work, and close affected admissions on disconnect.
Observe jobs, queued work, provider-wait slots and progress alongside hardware metrics. Known-finished or idle hosts retire promptly; the watchdog's sampled idle policy is a zombie backstop, not permission to retain them. Bounded repairs stay inside the deadline and budget. Apply the canonical watchdog's drain/inspection and admission rules before reclaiming resources; missing telemetry remains unknown.
Before refreshing or deleting a worker, preserve source/configuration fixes through synchronization, within the cleanup deadline.
Retire and reconcile
Stop admissions, preserve partial/final evidence, stop credential holders and perform the canonical custody procedure before permanent deletion. Keep proof and accepted-risk dispositions distinct. Remove only exact owned resources, including attached storage and recreate-capable jobs/autoscalers. Stopping or losing SSH is not deletion.
For fleet retirement, verify exact-ID absence, persist deletion receipts atomically and retain retired-host accrual without disturbing live peers. Reconcile compute, storage, endpoints, IPs, snapshots and reservations against pre-existing inventory. Keep cleanup supervision active until every owned billable resource is verified absent; remove only the completed campaign registration while shared supervision continues for others.
An unresolved deletion is an active cost incident: retry official deletion and independent provider paths with bounded backoff, preserve supervision, report exact IDs/state/burn and the manual remedy promptly, and do not create replacement resources while owned deletion remains unverified.
Finish with resource IDs/types, authorization and deadline, workload artifacts, exact deletion evidence and inventory scope, measured/estimated/unknown spend, ledger dispositions and remaining incidents. Never report provider disposal assumptions as verified credential erasure.