Skip to content

AT0: intent, CI, tooling and the spec index - #1

Merged
ruehowl merged 1 commit into
mainfrom
at/0-the-spec
Oct 28, 2026
Merged

ruehowl merged 1 commit into
mainfrom
at/0-the-spec

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

The first step of porting marmelab/atomic-crm (MIT) to Cloudflare and Supabase as an Orun starter baseline.

  • intent.yaml: the placeholder workspace ws_CHANGE_ME, so CI plans nothing until the repository is linked. Three environments: dev (verify only), stage, and prod after stage. The trigger bindings github-pull-request, github-push-main and local-development.
  • .github/workflows/ci.yml: turso-starter's, byte for byte, carrying the manual-deploy contract (workflow_dispatch with component, environment and deploy_id). Only the comment naming the provider credentials differs.
  • Shared tooling: TypeScript and ESLint config, the wrangler renderer, the Worker-secrets helper and the migration-manifest check. Also the root pnpm workspace and turbo pipeline.
  • specs/: the spec index, plus the atomic-crm epic (design, plan, risks, status) and its five task contracts.

Spike, settled first: no Orun composition, and no resource of the Supabase Terraform provider, deploys a Supabase edge function. So the six functions become the Worker's own /functions/v1/<name> routes. Before the port I proved each piece on workerd under wrangler dev:

  • the supabase-js admin client (auth and storage);
  • JWKS verification with jose;
  • Kysely in a transaction over pg through a Hyperdrive binding;
  • the MCP server behind @supabase/server's OAuth challenge: a 401 with resource metadata, then initialize and a tool call querying Postgres as the caller's role.

Generated by Claude Code

intent.yaml with the placeholder workspace ws_CHANGE_ME (CI plans nothing
until the repository is linked), the three environments (dev verify-only,
stage, prod after stage) and the trigger bindings; ci.yml, byte for byte
turso-starter's, carrying the manual-deploy contract (only the comment naming
the provider credentials differs); the shared TypeScript and ESLint
configuration, the wrangler renderer, the Worker-secrets helper and the
migration-manifest check; the root pnpm workspace and turbo pipeline; and the
spec index with the atomic-crm epic and its five task contracts. The epic
records the spike that settled its one open question first: no Orun path
deploys a Supabase edge function, so the six functions become the Worker's
own routes, proven on workerd before the port.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
@ruehowl
ruehowl merged commit a2decdf into main Oct 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants