40 lines
2.4 KiB
Markdown
40 lines
2.4 KiB
Markdown
# Automation Manifest Template
|
|||
|
|
|
||
|
|
This directory is the source template for every AI-built automation. Copy it into the automation's repository, replace the example values, validate it, test one manual run, and only then enable its schedule.
|
||
|
|
|
||
|
|
`automation.yaml` is an internal, version-controlled operating contract. It is not an OpenAI/Codex import format and does not create a scheduled task by itself. The actual scheduler configuration must match the manifest.
|
||
|
|
|
||
|
|
## Files
|
||
|
|
|
||
|
|
- `automation.yaml` — machine-readable source of truth.
|
||
|
|
- `automation.schema.json` — validation rules for the manifest.
|
||
|
|
- `task-prompt.md` — durable task prompt used by the scheduled run.
|
||
|
|
- `AUTOMATION.md` — human/AI runbook and disaster-recovery record.
|
||
|
|
- `host-overrides.example.yaml` — example of machine-specific paths; copy to `host-overrides.yaml`, which is ignored by Git.
|
||
|
|
- `.env.example` — names of required secrets and configuration, never secret values.
|
||
|
|
- `scripts/validate_manifest.py` — schema and unresolved-placeholder validator.
|
||
|
|
|
||
|
|
## New automation workflow
|
||
|
|
|
||
|
|
1. Copy this entire directory into the automation repository.
|
||
|
|
2. Replace every `replace-me` value and edit `task-prompt.md` and `AUTOMATION.md`.
|
||
|
|
3. Keep all durable prompts, skills, scripts, schemas, and recovery instructions in Git.
|
||
|
|
4. Put host-specific paths in `host-overrides.yaml` and secret values in the host's secret store or untracked `.env` file.
|
||
|
|
5. Install validation dependencies and run:
|
||
|
|
|
||
|
|
```powershell
|
||
|
|
python -m pip install -r requirements-validation.txt
|
||
|
|
python scripts/validate_manifest.py --strict
|
||
|
|
```
|
||
|
|
|
||
|
|
6. Run the automation manually and verify its expected output and notifications.
|
||
|
|
7. Configure the real scheduler from `trigger` and record its scheduler ID in `AUTOMATION.md`.
|
||
|
|
8. Enable exactly one execution host. Keep standby hosts disabled until failover.
|
||
|
|
9. Commit and push the definition. Do not commit secrets, runtime state, or host overrides.
|
||
|
|
|
||
|
|
## Portability rule
|
||
|
|
|
||
|
|
Git stores what the automation is. The scheduler determines when it runs. The active host determines where it runs. Runtime state and secrets live outside Git but must have documented restore procedures.
|
||
|
|
|
||
|
|
For local Codex scheduled tasks, keep the active computer on, the desktop app running, and the project directory available. Web-scheduled tasks can use uploaded context and connected tools, but cannot directly work in a folder on a computer.
|
||
|
|
|