name: autonomous-host-operator description: Operate the autonomous EmDash Astro Sidecar control plane safely for a host site. Use when configuring provider secrets, choosing host mode, testing TheClawBay or MiniMax, running provider health checks, reviewing run-plan behavior, or preparing the system for continuous research, drafting, refresh, and audit loops on Cloudflare.
Autonomous Host Operator
Use this skill when the repo is being prepared or operated as a continuous Cloudflare-native content system rather than a one-off blog deployment.
Read First
Read these files in order:
docs/provider-runtime.mddocs/cloudflare-resource-guardrails.mddocs/prd-autonomous-content-control-plane.mddocs/autonomous-content-control-plane-technical-design.mddocs/autonomous-content-control-plane-backlog.mddocs/copy-guidelines.mddocs/quality-gates.md
Main Working Surfaces
packages/model-runtime/src/index.tspackages/autoresearch-core/src/index.tspackages/content-evals/src/index.tspackages/content-policy/src/index.tspackages/host-control/src/index.tspackages/host-jobs/src/index.tsapps/cloudflare/d1/migrations/0001_autonomous_content_control_plane.sqlapps/cloudflare/d1/migrations/0002_host_runtime_control.sqlapps/cloudflare/d1/migrations/0003_host_jobs.sqlapps/cloudflare/workers/scheduler/src/index.tsapps/cloudflare/workers/orchestrator/src/index.tsapps/cloudflare/workers/research-worker/src/index.tsapps/cloudflare/workers/draft-worker/src/index.tsapps/cloudflare/workers/eval-worker/src/index.tsapps/cloudflare/workers/publish-worker/src/index.tsapps/cloudflare/workers/content-api/src/index.tsapps/cloudflare/workers/browser-audit-worker/src/index.ts
Provider Rules
Treat provider setup as configuration, not as a hardcoded app decision.
Seed providers:
- TheClawBay
- MiniMax
Secrets and vars:
THECLAWBAY_API_KEYTHECLAWBAY_BASE_URLTHECLAWBAY_MODELMINIMAX_API_KEYMINIMAX_BASE_URLMINIMAX_MODEL
Run the provider reachability check before trying to automate anything:
pnpm providers:healthpnpm providers:health -- --provider theclawbaypnpm providers:health -- --provider minimax
If a provider returns a billing, auth, or quota error, do not pretend the runtime is healthy.
Cloudflare Resource Rule
Before enabling any continuous host loop, run:
pnpm qa:cloudflarepnpm verify
Treat these as blocking checks.
Default rule:
CF_PLAN_TIER=freeCF_RESOURCE_GUARD_MODE=conservative
Only loosen those values deliberately after verifying:
- provider health
- host lock and cooldown behavior
- route audits
- publish blocking
- D1 and queue behavior
- browser-audit sampling costs
Host-Mode Rule
Start every new host in draft_only.
Promote only when the lower mode is stable:
observe_onlydraft_onlyrefresh_autopublish_auto
Do not skip straight to publish_auto.
Reader-First Rule
The autonomous loop must never publish copy that sounds like internal operator language.
Ban visible phrases like:
- sidecar
- GEO layer
- content wave
- control plane
- orchestration flow
- how this blog connects to the main site
Reader-facing copy should explain:
- what the user wants to know
- what the page helps them decide or do
- what the next practical step is
Publish Safety Rule
Do not publish unless all of these are true:
- host mode allows it
- budgets allow it
- topic is in scope
- content evals pass
- evidence threshold is met
- duplicate risk is low
- route and live audit checks pass
If any of these fail, the correct outcome is to block publishing and log the reason.
Command Baseline
Before shipping or enabling stronger automation modes:
pnpm verifypnpm qapnpm qa:cloudflarepnpm audit:deployedpnpm audit:deployed:lighthouse
Cloudflare Rule
Keep long-running intelligence in:
- D1
- R2
- Workflows
- Queues
- Durable Objects
Do not bolt new autonomous behavior onto the legacy emdash-worker.
Success Criteria
Treat the system as ready only when:
- provider health is known
- host mode is intentional
- live route audits are clean
- copy stays reader-first
- publish decisions are explainable