59 lines
2.3 KiB
Markdown
59 lines
2.3 KiB
Markdown
# Replace Me Automation — Operations Runbook
|
|||
|
|
|
||
|
|
## Purpose and owner
|
||
|
|
|
||
|
|
- Outcome: Replace me.
|
||
|
|
- Owner: Replace me.
|
||
|
|
- Repository: Replace me.
|
||
|
|
- Manifest version: `0.1.0`
|
||
|
|
|
||
|
|
## Scheduler record
|
||
|
|
|
||
|
|
- Platform: Codex desktop scheduled task
|
||
|
|
- Scheduler task ID or link: Replace me after creating the scheduled task.
|
||
|
|
- Active host: `dell-workstation`
|
||
|
|
- Standby host: `travel-laptop`
|
||
|
|
- Cadence and timezone: Every Monday at 09:00 America/Denver
|
||
|
|
|
||
|
|
## Normal operation
|
||
|
|
|
||
|
|
1. The active host starts the task from `task-prompt.md`.
|
||
|
|
2. The run acquires or verifies the idempotency state declared in `automation.yaml`.
|
||
|
|
3. Outputs and the run log are written to their declared locations.
|
||
|
|
4. The success contract is verified and a notification is sent.
|
||
|
|
|
||
|
|
## Manual test
|
||
|
|
|
||
|
|
1. Confirm required software, connectors, secrets, permissions, inputs, and output paths.
|
||
|
|
2. Confirm scheduled execution remains disabled.
|
||
|
|
3. Run `python scripts/validate_manifest.py --strict`.
|
||
|
|
4. Execute `task-prompt.md` manually in the declared working directory.
|
||
|
|
5. Verify every success-contract item and inspect the run log.
|
||
|
|
6. Record the test date and evidence here.
|
||
|
|
|
||
|
|
Latest manual test: Never
|
||
|
|
|
||
|
|
## Failover: primary host to standby
|
||
|
|
|
||
|
|
1. Pause or disable the scheduler on the old host. If it is unreachable, fence it by revoking its lease, credential, or network access to the destination it writes to.
|
||
|
|
2. Pull the pinned repository revision onto the standby host.
|
||
|
|
3. Create `host-overrides.yaml` from the example and restore secrets from the approved secret store.
|
||
|
|
4. Restore durable runtime state and confirm the recovery point.
|
||
|
|
5. Validate the manifest and perform one manual test.
|
||
|
|
6. Change the documented active/standby roles and enable the schedule on the new active host.
|
||
|
|
7. Review the first scheduled run. Do not re-enable the old host without reversing this process.
|
||
|
|
|
||
|
|
## Restore requirements
|
||
|
|
|
||
|
|
- Secret backup location: Replace me; record the system name, never the secret value.
|
||
|
|
- Runtime-state backup location: Replace me.
|
||
|
|
- Required external accounts/connectors: Replace me.
|
||
|
|
- Host bootstrap instructions: Replace me.
|
||
|
|
|
||
|
|
## Disable or retire
|
||
|
|
|
||
|
|
1. Disable the actual scheduler first.
|
||
|
|
2. Confirm no run is active.
|
||
|
|
3. Preserve required outputs, logs, and state according to retention policy.
|
||
|
|
4. Set `automation.status` to `paused` or `retired`, update `last_reviewed`, and commit the change.
|
||
|
|
|