Skip to content

SL4: supabase-slack-clone becomes an Orun baseline - #5

Merged
ruehowl merged 1 commit into
mainfrom
sl4-a-baseline
Oct 29, 2026
Merged

ruehowl merged 1 commit into
mainfrom
sl4-a-baseline

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

What this lands

Task SL-5. The baseline takes supabase-starter's current main shape (SS10) and adds db-migrate between the project and the app.

  • blueprint.yaml (the console card):
    • requires github, cloudflare and supabase;
    • reads subdomain from the Cloudflare connection and asks for no domain;
    • mints four brokered secrets, one secrets reconcile per provider;
    • estimates 14 minutes (13 + 1).
  • repo-blueprint.yaml (the build):
    • 01-product lands the whole product as one PR. One convergence then runs supabase → db-migrate → web per environment, each edge enforced on a push to main and advisory on a pull request.
    • It awaits only the watch and the probe. Every key the apply publishes is read fail-closed in the convergence: db-migrate's three database credentials and web's WIRING_SUPABASE.
    • 02-docs records the deployment from probed facts.
    • The task set-up runs in the background, landings are checked in the box (checks: local), the watch reads every 5 s, and no await line is authored.
  • .baseline/:
    • the identity;
    • the product's README ("Deploy by hand", "Roles", "Your first migration", "Email", "Custom domain");
    • its AGENTS.md;
    • the two task contracts.
  • The machinery:
    • the rebrand, using the SITE_NAME seam; it never rewrites a migration and protects the example's home link;
    • the bootstrap helpers;
    • the deployment record, which reads sign-up, the schema and roles from /api/health and asks the platform nothing;
    • the context pack (ai/context/), the generated component docs, BOOTSTRAP.md (floor orun v2.88.0) and the phase cards with their minutes.
  • baseline.yml runs these tiers:
    • the contract tests: manifest, phases, coverage (including the manual-deploy contract), rebrand, retouch, bootstrap-defer;
    • the blueprint read by orun v2.88.0;
    • the leak gate;
    • placement: the offline bootstrap and the product's own plans;
    • the e2e:
      • the 01-product landing's checks;
      • the web lane's own steps in its staged job tree, with the stage wiring inlined;
      • the deploy's own smokeCommand, which refuses the Worker before the migrations (/api/health 503, schema: not migrated);
      • db-migrate's own lane steps against a Supabase stand-in: upstream's three SQL files applied, the access-token hook switched on, then nothing applied on a second run with the hook re-asserted, and the PR's offline plan;
      • the smoke passing after the migrations;
      • the chat as the browser drives it, against the stand-in:
        • a member, a +supamod@ moderator and a +supaadmin@ admin with null, moderator and admin in their sessions;
        • #public and #random with authors, and a message posted and read back;
        • deletes allowed and refused by role, and a channel added and removed;
        • nothing returned for the bare publishable key;
        • the Realtime publication with full row images.

Checked locally (all green)

  • Contract tests ×6 and gen-component-docs.py --check.
  • orun catalog validate (v2.89.0): 0 errors.
  • orun new --status.
  • leak.test.sh, placement.test.sh and e2e.test.sh.

Generated by Claude Code

In supabase-starter's current shape, with db-migrate between the project
and the app. blueprint.yaml is the console card (github, cloudflare and
supabase; the subdomain from the Cloudflare connection; no domain asked;
four brokered secrets; fourteen minutes). repo-blueprint.yaml is the
build: 01-product lands the whole product as one pull request and one
convergence runs supabase → db-migrate → web per environment, each edge
enforced on main and advisory on a pull request; it awaits only the watch
and the probe, because every key the apply publishes is read fail-closed
in the convergence. 02-docs records the deployment from probed facts.

.baseline/ carries the identity, the product's README (Deploy by hand,
Roles, Your first migration, Email, Custom domain) and its AGENTS.md, and
the task contracts. The rebrand renames through the SITE_NAME seam and
never rewrites a migration; the deployment record reads sign-up, the
schema and the roles from /api/health; the context pack, BOOTSTRAP.md
and the phase cards say how to run it.

baseline.yml runs the tiers: the contract tests, the blueprint read by
orun v2.88.0, the leak gate, the offline bootstrap and the product's own
plans, and the e2e — the landing's checks, db-migrate's own lane steps
against a Supabase stand-in that now runs the configured access-token
hook, the web lane in its staged job tree with the stage wiring inlined,
the deploy's own smoke refused before the migrations and passing after,
and the chat driven as a member, a moderator and an admin.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
@ruehowl
ruehowl merged commit 6e2696d into main Oct 29, 2026
5 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