Commitb7b7652unknown_key
docs(bible): document new autopilot tasks (wait-timer-release + scheduled-workflows)
docs(bible): document new autopilot tasks (wait-timer-release + scheduled-workflows)
The autopilot row in §2.6 and the autopilot lib entry in §4.5 still
listed only the original four tasks (mirror sync, merge-queue peek,
weekly digests, advisory rescans). Two new tasks landed in this
session and need to be visible to the next agent:
- wait-timer-release — flips deployment status="waiting_timer" →
"pending" once env wait_timer_minutes elapses.
- scheduled-workflows — fires `on: schedule` cron triggers via the
new src/lib/cron.ts + src/lib/scheduled-workflows.ts.
Strictly additive — no existing entry deleted or renamed.
https://claude.ai/code/session_0163vJChUuZqqtBBznUW6xBU1 file changed+2−2b7b7652af4acadb7298f6a0bd298c6f59e00f84d
1 changed file+2−2
ModifiedBUILD_BIBLE.md+2−2View fileUnifiedSplit
@@ -185,7 +185,7 @@ Legend: ✅ shipped · 🟡 partial · ❌ not built
185185| API documentation page | ✅ | `src/routes/api-docs.tsx` — interactive in-app docs. |
186186| SSE in-process pub/sub | ✅ | `src/lib/sse.ts` + `src/lib/sse-client.ts` — topic-based broadcaster. `src/routes/live-events.ts` exposes `GET /live-events/:topic`. Used by the live UI updates layer. |
187187| Inbound deploy event receiver (Signal Bus P1) | ✅ | `src/routes/events.ts` — Crontech → Gluecron event ingest. Idempotent via `drizzle/0034_processed_events.sql` (sha256 of payload deduped at write-site). |
188| Autopilot ticker | ✅ | `src/lib/autopilot.ts` — 5-min cycle: mirror sync, merge-queue peek, weekly digests, advisory rescans. `AUTOPILOT_DISABLED=1` opt-out. Admin page `/admin/autopilot`. |
188| Autopilot ticker | ✅ | `src/lib/autopilot.ts` — 5-min cycle: mirror sync, merge-queue peek, weekly digests, advisory rescans, **wait-timer-release** (env approvals), **scheduled-workflows** (cron triggers). `AUTOPILOT_DISABLED=1` opt-out. Admin page `/admin/autopilot`. |
189189| Demo seed | ✅ | `src/lib/demo-seed.ts` — idempotent `ensureDemoContent()`. `DEMO_SEED_ON_BOOT=1` boot flag. Site-admin reseed at `/admin` (`POST /admin/demo/reseed`). `/demo` redirect to a sample repo. |
190190| SEO (robots + sitemap) | ✅ | `src/routes/seo.ts` — `/robots.txt` + `/sitemap.xml`. |
191191| Audit log (table) | ✅ | `audit_log` table |
@@ -434,7 +434,7 @@ Everything below is committed, tested, and load-bearing. **Do not delete, rename
434434- `src/lib/observability.ts` — minimal dependency-free observability layer. Wired into `app.onError`. Sinks: `ERROR_WEBHOOK_URL` and/or `SENTRY_DSN`. Never throws.
435435- `src/lib/sse.ts` — in-process topic-based pub/sub broadcaster for Server-Sent Events. Backs the live UI updates layer.
436436- `src/lib/sse-client.ts` — emits a `<script>`-droppable JS snippet for SSR'd views to subscribe to a topic. Plain JS only — no client framework.
437- `src/lib/autopilot.ts` — 5-minute self-sufficiency ticker (mirror sync, merge-queue peek, weekly digests, advisory rescans). `AUTOPILOT_DISABLED=1` opt-out. Observability via `getLastTick()` + `getTickCount()`.
437- `src/lib/autopilot.ts` — 5-minute self-sufficiency ticker. Default tasks (in order): `mirror-sync`, `merge-queue`, `weekly-digest`, `advisory-rescan`, `wait-timer-release`, `scheduled-workflows`. `AUTOPILOT_DISABLED=1` opt-out. Observability via `getLastTick()` + `getTickCount()`.
438438- `src/lib/demo-seed.ts` — idempotent `ensureDemoContent()` (creates `demo` user + `hello-python` / `todo-api` / `design-docs`). `DEMO_SEED_ON_BOOT=1` boot flag in `src/index.ts`.
439439- `src/lib/import-helper.ts` — small helpers for the GitHub import flow (`src/routes/import.tsx`).
440440- `src/lib/import-verify.ts` — post-migration smoke verifier (object count, branches, default-branch HEAD). Re-runnable from `src/routes/migrations.tsx`.
441441