feat(automation): add isolated job delivery mode
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
# Announce Delivery Mode Checklist
|
||||
|
||||
Date: 2026-02-16
|
||||
Status: completed
|
||||
|
||||
## Scope
|
||||
|
||||
- Add a first-class automation delivery mode for cron/webhook runs.
|
||||
- Support isolated per-run sessions while preserving outbound reply routing.
|
||||
|
||||
## Completed
|
||||
|
||||
- Added `automation.delivery_mode` config enum in `src/config/schema.ts`:
|
||||
- `shared_session` (default)
|
||||
- `isolated_job`
|
||||
- Implemented reply routing override in `src/channels/registry.ts` via `metadata.replyPeerId`.
|
||||
- Updated `CronScheduler` and `WebhookHandler` to:
|
||||
- emit unique sender IDs per run when `delivery_mode=isolated_job`
|
||||
- include `metadata.replyPeerId` to keep output routing stable
|
||||
- include delivery metadata (`deliveryMode`, `runId`) for traceability
|
||||
- Wired delivery mode through channel registration in `src/daemon/channels.ts`.
|
||||
- Updated docs:
|
||||
- `README.md` automation sections
|
||||
- `config/default.yaml` commented template
|
||||
- Added tests:
|
||||
- `src/channels/registry.test.ts`
|
||||
- `src/automation/cron.test.ts`
|
||||
- `src/automation/webhooks.test.ts`
|
||||
- `src/config/schema.test.ts`
|
||||
|
||||
## Verification
|
||||
|
||||
- `pnpm test:run src/channels/registry.test.ts`
|
||||
- `pnpm test:run src/automation/cron.test.ts src/automation/webhooks.test.ts`
|
||||
- `pnpm test:run src/config/schema.test.ts`
|
||||
- `pnpm typecheck`
|
||||
+27
-3
@@ -179,6 +179,30 @@
|
||||
],
|
||||
"test_status": "pnpm test:run src/config/schema.test.ts src/daemon/clientFactory.test.ts src/cli/setup/providers.test.ts src/cli/doctor.test.ts + pnpm typecheck passing"
|
||||
},
|
||||
"announce-delivery-mode": {
|
||||
"file": "2026-02-16-announce-delivery-mode-checklist.md",
|
||||
"status": "completed",
|
||||
"date": "2026-02-16",
|
||||
"updated": "2026-02-16",
|
||||
"summary": "Implemented automation delivery mode with isolated job sessions for cron/webhooks (`automation.delivery_mode=isolated_job`) while preserving outbound routing via metadata reply peer IDs.",
|
||||
"files_created": [
|
||||
"docs/plans/2026-02-16-announce-delivery-mode-checklist.md"
|
||||
],
|
||||
"files_modified": [
|
||||
"src/config/schema.ts",
|
||||
"src/config/schema.test.ts",
|
||||
"src/channels/registry.ts",
|
||||
"src/channels/registry.test.ts",
|
||||
"src/automation/cron.ts",
|
||||
"src/automation/cron.test.ts",
|
||||
"src/automation/webhooks.ts",
|
||||
"src/automation/webhooks.test.ts",
|
||||
"src/daemon/channels.ts",
|
||||
"README.md",
|
||||
"config/default.yaml"
|
||||
],
|
||||
"test_status": "pnpm test:run src/channels/registry.test.ts src/automation/cron.test.ts src/automation/webhooks.test.ts src/config/schema.test.ts + pnpm typecheck passing"
|
||||
},
|
||||
"skill-safety-scanner": {
|
||||
"file": "2026-02-15-skill-safety-scanner-checklist.md",
|
||||
"status": "completed",
|
||||
@@ -2208,7 +2232,7 @@
|
||||
},
|
||||
|
||||
"overall_progress": {
|
||||
"total_test_count": 1694,
|
||||
"total_test_count": 1698,
|
||||
"all_tests_passing": true,
|
||||
"p0_completion": "3/3 (100%)",
|
||||
"p1_completion": "4/4 (100%)",
|
||||
@@ -2223,12 +2247,12 @@
|
||||
"tier2_completion": "4/4 (100%) — inbound webhooks, vector memory search, Dockerfile, heartbeat monitor",
|
||||
"tier3_completion": "5/5 (100%) — lane queue, credential redaction, web UI token dashboard, xAI (Grok) provider, Voyage AI embeddings",
|
||||
"tier4_completion": "4/4 (100%) — gateway lock, shell completion, Tailscale Serve/Funnel, DM pairing codes",
|
||||
"feature_gap_scorecard": "105/128 match (82%), 0 partial (0%), 23 missing (18%)",
|
||||
"feature_gap_scorecard": "106/128 match (83%), 0 partial (0%), 22 missing (17%)",
|
||||
"operator_dx_milestone": "Phase 3 (Live Ops Dashboard): 2/2 plans complete — milestone done",
|
||||
"gmail_auth_cli": "flynn gmail-auth command implemented with OAuth2 flow, doctor check, config routed to Telegram",
|
||||
"native_audio_support": "completed — smart routing for native audio (Gemini/OpenAI/GitHub) vs Whisper transcription fallback",
|
||||
"remaining_phases_completion": "Phase 1: 3/3 (100%) — context levels, command registry, memory structure. Phase 2: 3/3 (100%) — component registry, confidence routing, history index. Phase 3: 2/2 (100%) — adaptive memory/compaction, truthfulness/autonomy hardening",
|
||||
"next_up": "Pick the next OpenClaw gap milestone and create a scoped checklist (candidates: announce delivery mode, presence tracking, QMD backend)"
|
||||
"next_up": "Pick the next OpenClaw gap milestone and create a scoped checklist (candidates: presence tracking, QMD backend, ClawHub registry)"
|
||||
},
|
||||
"soul_md_and_cron_create": {
|
||||
"date": "2026-02-11",
|
||||
|
||||
Reference in New Issue
Block a user