When
Work must happen on a clock (daily report, weekly review), independent of someone opening Chat.
Outcome
- Versioned prompt source file in the Space
- Schedule created with timezone + owner expectations
- Dated outputs + one stable
latestentrance - Idempotent per reporting window
Steps
- Write the job contract in markdown: goal, window, timezone, inputs, output paths, failure behavior.
- Store the recurring prompt as a file, e.g.
scripts/jobs/daily/prompt.md(not only in cron UI text). - Make the Agent write:
reports/daily/YYYY-MM-DD/...reports/daily/latest(refresh in place)
- Schedule via product UI or CLI-style scheduling (
spaces prompt --at/--crondepending on your CLI version). - Forbid recursive schedule creation inside the run prompt unless that is the job.
- Observe one successful run in Tasks; record schedule id + next run in the job README.
- Prefer Space Hooks for event triggers; use schedules for time triggers.
Done when
- [ ] Prompt source is versioned in files
- [ ] One real successful run observed
- [ ] Latest entrance works without hunting dates
- [ ] Re-run same window does not explode duplicates (idempotent strategy documented)
Avoid
- Hidden state only in Chat memory
- Unbounded outputs with no retention policy
- Silent failure with no task visibility