The Scheduled Oracle
Agent harnesses learned to schedule prompts: a cron line that wakes an agent to triage issues or summarize the day keeps the fleet busy while you sleep. That solves volume. It does nothing for truth — the context those agents run on is exactly as stale at 03:00 as it was when someone last remembered to check.
The scheduled oracle inverts the payload. What runs on the clock is verification: the deterministic drift gate, re-pours when drift is detected, parity audits, and a digest of what the receipts say.
Rules, not scripts
Section titled “Rules, not scripts”An automation is a rule in .contextbrew/automations.json — authored and reviewed like code, immune to “who configured this” drift:
CTXBREW_FF_AUTOMATE=1 ctxbrew automate add \ --name "nightly gate" --schedule "30 2 * * *" --timezone Europe/Zagreb \ --job gate-sweep --precheck "clean-tree" --grace-minutes 60- Schedules are cron expressions (with RRULE support) validated at
addtime and evaluated timezone-aware — including DST edges. - Jobs are four deterministic kinds, an allowlist — never arbitrary shell:
gate-sweep— the drift gate (ctxbrew check --gate). A breach is a valid outcome: the oracle did its job.re-pour-on-drift— when drift is detected, a re-pour is served; it goes through the pour-at-birth invariant like every dispatch (one vintage per grace window — never a re-pour storm).parity-audit— the parity sweep report.drift-digest— roll the receipts into one page: gate outcomes, breaches, what the digest found — silence is never ambiguous, because “nothing to do” is itself a ledger event.
- Prechecks gate, they never act: a failing precheck skips the fire and records the skip.
- Grace bounds catch-up: a fire discovered far past its moment skips once and resets — no stampede when the lid opens.
Two planes, one truth
Section titled “Two planes, one truth”The file is the one truth. For connected projects, the web automation-worker syncs rules from automations.json into its schedule (idempotently — file wins) and fires them server-side with history and tiers; ctxbrew automate run-now <id> is the local escape hatch, executing the job in-process right away. automate test <id> dry-runs a rule without side effects.
Every fire leaves a receipt
Section titled “Every fire leaves a receipt”Outcomes land on a hash-chained ledger (.contextbrew/automations/ledger.json): started, passed, breached, skipped, failed — and nothing-to-do when a fire found nothing. The drift-digest kind reads that ledger and writes a page whose every number is a recorded fact, nothing recomputed.
Why this is ours to build
Section titled “Why this is ours to build”Scheduling verification is worthless without something deterministic to verify with. The gate refuses to pass a tree it has no signals for; it costs zero tokens; its verdict is reproducible. That is what makes the scheduled oracle a thing a harness can copy the grammar of — cron, prechecks, grace — but not the payload.
