Skip to content

NF4: next-forge becomes an Orun baseline - #5

Merged
ruehowl merged 1 commit into
mainfrom
nf/4-baseline
Oct 28, 2026
Merged

ruehowl merged 1 commit into
mainfrom
nf/4-baseline

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

NF4 of specs/epics/next-forge: the repository becomes a baseline that takes a new product from nothing to live on stage and prod in one landing.

What it adds

  • The card (blueprint.yaml): six brokered credentials (Cloudflare's deploy, Hyperdrive and R2 tokens and account id; Supabase's access token and org id), two milestones, about 20 minutes (19 + 1).

  • The build (repo-blueprint.yaml): 51 modules and two phases. 01-product lands the whole product as one PR. Its convergence then provisions and deploys per environment in this order:

    • supabase → cloudflare-hyperdrive → db-migrate → app, api
    • cloudflare-r2 → app
    • cloudflare-kv → web

    Every edge is enforced on main and advisory on a PR. 02-docs records the deployment from probed facts.

  • Identity and rename:

    • .baseline/identity.json holds the tree's own identity; the name seam is packages/seo/site.ts.
    • The rebrand protects upstream's own mentions (github.com/vercel/next-forge, next-forge.com, "Vercel's next-forge") and the licence, and renames everything else.
  • Bootstrap tooling and docs:

    • tooling/bootstrap, plus hooks/render-deployment-docs.sh (which services are connected, and each Worker's health).
    • Generated component docs, now attached to all 13 components.
    • BOOTSTRAP.md, docs/phases, ai/context and the baseline README.
  • Workflows: .github/workflows/baseline.yml and tag.yml, neither shipped to products.

Tests, all green locally

  • Contract tier: manifest, phases, coverage, rebrand, retouch, bootstrap-defer and wire, plus gen-component-docs.py --check. orun catalog validate (v2.89.0) reports 0 errors.
  • Leak gate: 480 files derived, and none of the factory ships.
  • Placement:
    • The offline bootstrap.
    • The product's own push-to-main plan, with the order above enforced.
    • The same commit planned as a PR, with every edge advisory.
    • The plan resolves exactly the 6 minted keys and the 6 published ones, plus 21 optional SaaS keys, each named in the README.
    • A --resume changes nothing.
  • e2e:
    • The landing's install, fixture render, typecheck, lint, test and build.
    • Three migrations applied through a Management API stand-in; re-applying applies none.
    • Each app's stage lane in its staged tree. Compressed sizes: app 2,873 KiB, api 1,316 KiB, web 2,602 KiB.
    • The three Workers served with no SaaS key, each passing its own smoke and every route. That includes the API's Cron Trigger running the keep-alive through Hyperdrive.
    • Row-level security as Supabase's anon and authenticated roles see it.

Two product fixes the e2e tier caught

  • packages/db is @saas/db again. The db-migrate composition builds the runner with --filter=@saas/db, so the NF2 name @app/db would have failed every live migration.
  • The sitemap now lists its pages instead of reading app with node:fs. A Worker has no such folder, so the sitemap answered 500. There is a new tests/web sitemap test.

Generated by Claude Code

The card (blueprint.yaml: six brokered credentials, two milestones, about
twenty minutes) and the build (repo-blueprint.yaml: 51 modules, two phases —
01-product lands the whole product as one pull request whose convergence
provisions Supabase, Hyperdrive, R2 and KV and deploys the three Workers in
dependency order; 02-docs records the deployment from probed facts).

- .baseline/: this tree's identity (slug next-forge, the SITE_NAME seam in
  packages/seo/site.ts), the product's README, the phases' task contracts
- tooling/rebrand: protects upstream's own mentions (its GitHub repository,
  next-forge.com, "Vercel's next-forge") and the licence; renames the rest
- tooling/bootstrap, hooks/render-deployment-docs.sh (which services are
  connected, every Worker's health), tooling/catalog (component docs, now
  generated and attached for all 13 components)
- testing/: contract (manifest, phases, coverage, rebrand, retouch,
  bootstrap-defer, wire), leak, placement (the product's own plans: every
  edge enforced on main, advisory on a PR) and e2e (the landing's checks,
  the migrations, each app's stage lane in its staged tree, the three Workers
  served with no SaaS key, row-level security as Supabase's roles see it)
- BOOTSTRAP.md, docs/phases, ai/context, the baseline README
- .github/workflows/baseline.yml and tag.yml (not shipped to products)

Two product fixes the e2e tier caught: packages/db is @saas/db again (the
db-migrate composition builds the runner with --filter=@saas/db, so the NF2
name would have failed every live migration), and the sitemap lists its
pages instead of reading `app` with node:fs (a Worker has none; 500 before).

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