cacheout_configure_autopilot
Configures autopilot policy for the headless daemon by validating and atomically writing configuration.
Instructions
Configure the autopilot policy for the headless daemon.
Uses a validate-then-write flow:
Writes candidate config to autopilot.candidate.json (0600)
If daemon running: validates via socket; else validates locally
Invalid: deletes candidate, returns errors
Valid: atomically renames candidate to autopilot.json
If daemon: sends SIGHUP and polls for config generation increment
The local validator mirrors the daemon's shared validator exactly:
version must be 1
enabled must be boolean
Rules: actions must be 'pressure-trigger' or 'reduce-transparency'
Webhook (if present): url required, format = 'generic', timeout_s 1-60
Telegram (if present): bot_token + chat_id required, timeout_s 1-60
Args: params: Config object to validate and apply.
Returns: str: JSON with success status, validation errors, and any warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |