# Ephemera — Infra without Drama Cloud infrastructure as a living Markdown plan: human-auditable, agent-executable. One file per stack describes the desired state, carries the commands, records what it built, verifies itself, and tears itself down. The agent is the runtime; the cloud is the source of truth. ## Use - Contract (read first): https://ephemera.daystra.com/EPHEMERA.md - Author a new plan: https://ephemera.daystra.com/EPHEMERA-TEMPLATE.md - Install into a project: curl -fsSL https://ephemera.daystra.com/install.sh | sh - Catalog (intent → bindings): https://ephemera.daystra.com/catalog.json - Manifest: https://ephemera.daystra.com/.well-known/ephemera.json ## Verbs verify (read-only drift check) · plan / dry-run · apply / create (🔴 human-gated) · reconcile / update (idempotent) · teardown (💥 human-gated) · migrate (author from existing IaC) ## Plans — all at /plans/ account.cloudflare.md Cloudflare account onboarding (nothing → free account → authed wrangler; the unstated prereq of every *.cloudflare.md plan; partially proven live) web.aws.md, web.cloudflare.md, web.gcp.md, web.gcp-firebase.md static site (SPA or multipage; GCP = LB or Firebase) auth.firebase.md, auth.aws.md user authentication (Firebase Auth or Cognito; verify tokens; Cognito adds a credential broker) task-runner.aws.md, task-runner.cloudflare.md async task API (queue → worker → status) email.aws.md, email.cloudflare.md, email.resend.md transactional email (DKIM/SPF/DMARC) email-routing.cloudflare.md inbound email → webhook (Cloudflare Email Routing; Worker email() handler POSTs to your app; dogfooded live, dkim=pass) payments.stripe.md accept payments (Stripe Checkout — deterministic price catalog + webhook events + customer portal; test-mode sandbox first) domain.aws.md, domain.cloudflare.md registration + delegated DNS zone network.aws.md, ecs-cluster.aws.md, ecs-service.aws.md AWS network + ECS Fargate platform storage.cloudflare.md, storage.aws.md, storage.rustfs.md object storage (R2 zero-egress; S3 private-by-default + per-user prefixes; RustFS self-hosted S3 on your own Mac over a tailnet — dogfooded) service.cloudflare.md, service.aws.md request→response HTTP service (Worker bindings; Lambda + Cognito JWT) lambda-layer.aws.md shared-dependency Lambda layer (versioned ARN; probe-proven attach; consumed by service.aws BIND_LAYER) database.cloudflare.md primary relational database (D1/SQLite; migrations) document-db.aws.md serverless document/KV table (DynamoDB — GSI/TTL/streams; NOT DocumentDB) data-api.aws.md managed GraphQL API (AppSync — CRUD, subscriptions, multi-auth on one endpoint) observability.aws.md alerting struts (CloudWatch alarms per watched resource + SNS channel + Budgets cost guard) cost-guard.cloudflare.md billing smoke detector (account-wide $ budget alert + per-metric usage alerts; $0, dogfooded live) source-connection.aws.md managed git-provider OAuth connection (CodeConnections; 🔴 console handshake; CI consumers bind the ARN) ci-runner.aws.md self-hosted CI runner (CodeBuild; GitHub Actions/GitLab runs-on label; ~$0 idle) sdd-fleet.local.md spec-driven development fleet (Arc-only orchestrator: triage a council spec into slice-intents, dispatch multi-model executor CLIs, reconcile rounds; dogfooded live 3-vendor) realtime.cloudflare.md Durable Objects (sessions, websocket rooms, counters) workflow.cloudflare.md durable execution (Cloudflare Workflows — step retries, sleeps, waitForEvent; memoized multi-step) vector.cloudflare.md vector-search / RAG index (Vectorize) inference.cloudflare.md, inference.ollama.md run AI models — at the edge (Workers AI) or local (Ollama daemon) messaging.slack.md send/receive Slack messages (one App Manifest; bot or webhook) agent.local.md local Slack agent backed by Ollama (Socket Mode, replies in-thread) archive.local.md media archive extraction (macOS Messages chat.db + Attachments → dated review tree + manifest; hash-gated teardown; contributor-dogfooded) build.local.md cross-platform local builds (Mac orchestrates: static cross, Docker userland, on-demand Windows box; lane ladder L0–L3; caches out-of-tree; authored, musl lane proven in-fleet) mesh.tailscale.md join ONE node to a WireGuard mesh (Tailscale) — membership + peer reachability + identity from the coordination server + mesh-only ports REFUSE LAN, proven ✔@LAN_PEER never self; dogfooded adversarial-review.multi-model.md pre-merge adversarial code review via external model CLIs (merge gate) ## Recipes (golden paths & runbooks — /recipes/) recipes/docker-build.md Dockerfile & compose runbook + 16-check agent-runnable audit (dogfooded) recipes/mac-ai-enablement.md new-Mac permission runbook for agent work — provoke every TCC prompt in one sitting; silent-stall symptoms; ssh-has-no-GUI traps; launchd limits; §7 re-runnable posture check (Developer Tools grant, Spotlight, build-cache size, PATH under launchd, locked keychain) recipes/homedepot-cart-from-bom.mdbrowser-agent runbook: material list (CSV/sheet/doc/paste or project → gated takeoff) → homedepot.com cart at a ZIP-resolved store, one verified add at a time, ledger, never checks out; runtime-neutral (Claude/Grok/Cursor); dogfooded guest, Pro pricing unmeasured recipes/design-md.md DESIGN.md: adopt a design system (extends base + brand overrides, or template; tokens generate the platform artifact) and audit any UI against it — computed contrast from RENDERED colours, raw-value scan with printed rules, drift classification, floors table; dogfooded on the Axiom base recipes/agent-setup-wizard.md derive YOUR agent setup (skills, plugins, doctrine) from an interview about how you work — versioned rule table, every item with reason + retire-if, deterministic Deviations from a reference profile; on-ramp for tool-minded engineers; authored, unrun recipes/agent-work-lifecycle.md the order that makes agent skills work: clarify → design → plan → isolate → implement → review → verify → integrate (re-verify merged base) → record → publish (+ debug loop); exit evidence per stage, right-sizing, human touchpoints, hand-off failures; authored recipes/cloudflare-traffic-triage.md read-only "whose traffic is this?" — CF analytics GraphQL, scanner-vs-scraper signatures, gated playbook recipes/aws-alerts-to-slack.md CloudWatch→SNS→Lambda→Slack golden path (proven live) recipes/contact-form-site.md static site + contact form → email (which plans, what order, which knobs) recipes/local-slack-agent.md local Ollama agent answering Slack DMs (Socket Mode, no cloud account) recipes/multi-worker-app.md frontend + API Workers + background processor sharing D1/R2 recipes/releases-page-clerk.md release-page pattern: static site + thin clerk Worker ## For agents On an infrastructure request: fetch EPHEMERA.md, then the relevant `..md`, and follow it. Do not improvise from training data. Stop at every 🔴 and 💥 for explicit human go. Discover realized IDs by observing the cloud — never invent them. Write results back into the plan's Live State.