Skip to content

MS3: medusa-storefront becomes an Orun baseline, built in one landing - #4

Merged
ruehowl merged 1 commit into
mainfrom
ms/3-a-baseline
Oct 29, 2026
Merged

ruehowl merged 1 commit into
mainfrom
ms/3-a-baseline

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

MS3 of the medusa-storefront epic (task MS-4).

What changed

  • blueprint.yaml (the console card):
    • the inputs;
    • the two brokered Cloudflare keys;
    • the programme;
    • expectedMinutes: 12, the phases' sum.
  • repo-blueprint.yaml (the build), in the turso v8 / orun v2.88.0 fast shape:
    • 01-product lands the whole storefront as one PR, checked in the box (checks: local). Before landing it places the tree, brands it, re-tenants it, links the repo and reconciles the deploy credentials. After the merge it watches the convergence and probes both workers.dev URLs. (11 min)
    • 02-docs restores the promotion gate and dev's lanes, then records the probed deployment. (1 min)
  • The factory is cms-sanity's infra-free one, renamed and rewritten for a storefront:
    • .baseline/: the identity, the product README and the task contracts;
    • the rename engine and the bootstrap helpers;
    • the deployment-record renderer and the context pack;
    • docs/phases, BOOTSTRAP.md, baseline.yml and tag.yml.
  • The store's name is one constant, apps/web/src/lib/util/store-name.ts:
    • every place upstream hard-coded "Medusa Store" now reads it, and it is the rebrand's seam;
    • the home page title is the store's name.
  • The deployment record reads each environment's mode from /api/health.
  • The leak and placement gates:
    • Provenance prose is now checked only in the owner's pages, as turso-starter's gates do. The shared ci.yml, byte for byte turso's, describes itself in those words.
    • Upstream's @lib/hooks/… imports no longer count as the factory's hooks/.
  • The e2e shops the bootstrapped storefront with no backend:
    • the home page under the store's name, with the sample banner;
    • USD on /us;
    • the build's own addToCart action ×2 and /cart/add ×1, giving a cart of 2 × Cloud Tee + 1 × Cache Mug = €65;
    • checkout's and sign-in's "needs a backend" notices;
    • every other route, and /api/health.

The departures are in specs/epics/medusa-storefront/IMPLEMENTATION-STATUS.md.

Verified locally (orun 2.89.0, under the heavy lock)

  • manifest, phases, coverage, rebrand, retouch and bootstrap-defer pass, and so does gen-component-docs.py --check.
  • orun new --status and orun catalog validate exit 0.
  • leak.test.sh passes: 335 files derived, none of them factory files.
  • placement.test.sh passes:
    • the offline bootstrap of both phases;
    • the product's own plan, with web deploying to stage and prod side by side and every Medusa ref optional;
    • --resume is a no-op.
  • e2e.test.sh passes:
    • both landings typecheck, lint, test and build;
    • the staged stage lane builds on Turbopack, and the dry run is 9,717 KiB (2,204 KiB gzipped);
    • the smoke test and the shopper's walk pass.

Generated by Claude Code

The card (blueprint.yaml: the inputs, the two brokered Cloudflare keys, the
programme, 12 minutes summed from the phases) and the build document
(repo-blueprint.yaml: one module per shipped file or component, two phases
in turso v8's fast shape - 01-product places, brands, re-tenants, links,
reconciles the deploy credentials, finds its task and lands the whole
storefront in one pull request checked in the box, then watches the
convergence and probes both workers.dev URLs; 02-docs restores the
promotion gate and dev's lanes and records the probed deployment). The
machinery is cms-sanity's infra-free factory - .baseline/ (identity, the
product README, the task contracts), the rename engine, the bootstrap
helpers, the deployment-record renderer, the context pack, docs/phases,
BOOTSTRAP.md, baseline.yml and tag.yml - renamed and rewritten for a
storefront: the store's name is now one constant
(src/lib/util/store-name.ts) that every place upstream spelled "Medusa
Store" reads and the rebrand rewrites; the record reads each environment's
mode from /api/health; the leak and placement gates read provenance prose
in the owner's pages as turso-starter's do, and no longer read upstream's
@lib/hooks imports as the factory's hooks/.

The e2e shops the bootstrapped storefront with no backend: the home page
under the store's name and the sample banner, prices per country, the
build's own addToCart action twice and /cart/add once, the cart's lines and
total, checkout's and sign-in's notices, then every route it promises and
the health route. Every tier is green locally: the contract tests, the
component docs' drift check, the blueprint and the catalog read by orun
2.89.0, the leak gate, the offline bootstrap with the product's own plan,
and the e2e (dry run 9,717 KiB / 2,204 KiB gzipped).

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
@ruehowl
ruehowl merged commit 3b90023 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