Skip to content

SU4: sveltekit-auth becomes an Orun baseline - #4

Merged
ruehowl merged 1 commit into
mainfrom
su4
Oct 29, 2026
Merged

ruehowl merged 1 commit into
mainfrom
su4

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

What

This PR makes sveltekit-auth an Orun baseline (SU-4).

  • blueprint.yaml: the console card. It lists the inputs, the two brokered Cloudflare secrets (workers-deploy and account-id) and the programme (sveltekit-auth-baselining). It quotes 5 minutes, the sum of the phase estimates (4 + 1).
  • repo-blueprint.yaml: the build, in sveltekit-boilerplate's one-landing shape.
    • 01-product places, brands and lands the whole site.
    • One convergence then builds it, gives each environment's Worker its AUTH_SECRET, and deploys stage and prod side by side.
    • 03-docs records what went live.
  • The rename: it leaves Auth.js's own names alone, even though they contain the slug. Those are the SvelteKitAuth import and call, and sveltekit-auth-example (UPSTREAM in tooling/rebrand/rebrand.mjs). The rebrand and placement tests prove those names, the ISC licence and the credit survive.
  • The deployment record: it probes /, /signin and /auth/session, and lists AUTH_SECRET and the provider keys by name only.
  • Docs: the context pack, generated component docs, BOOTSTRAP.md and docs/phases.
  • testing/e2e.test.sh: builds the stage lane in its own tree. The secret step runs there as a verify lane does, and no planted value reaches the bundle. It then serves the Worker under wrangler dev three times:
    1. With no AUTH_SECRET, the smoke refuses the Worker.
    2. With the secret from pnpm secret:dev, every page answers.
    3. With GitHub's keys:
      • signing in reaches GitHub's authorize URL with PKCE;
      • a session sealed with the Worker's own secret opens /protected;
      • a session sealed with any other secret is refused;
      • signing out clears the cookie.

Checks

All of these are green locally:

  • the contract tests (manifest, phases, coverage, rebrand, retouch, bootstrap-defer)
  • gen-component-docs.py --check
  • orun catalog validate: 0 errors
  • orun new --status
  • leak, placement and e2e

Baseline CI runs the same tiers on this PR.


Generated by Claude Code

- blueprint.yaml is the console card: inputs, the two brokered Cloudflare
  secrets and the programme. It quotes 5 minutes, the sum of the phases'
  estimates (4 + 1).
- repo-blueprint.yaml is the build, in sveltekit-boilerplate's
  one-landing shape. 01-product places, brands and lands the whole site,
  and one convergence builds it, gives each Worker its AUTH_SECRET and
  deploys stage and prod side by side. 03-docs records what went live.
- The rename keeps Auth.js's own names, which contain the slug: the
  `SvelteKitAuth` import and call, and sveltekit-auth-example (UPSTREAM in
  tooling/rebrand/rebrand.mjs). The rebrand and placement tests prove it,
  along with the ISC licence and the credit.
- The deployment record probes /, /signin and /auth/session, and names
  AUTH_SECRET and the provider keys without their values.
- Context pack, generated component docs, BOOTSTRAP.md and docs/phases.
- testing/e2e.test.sh builds the stage lane in its own tree: the secret
  step runs as a verify lane, and no planted value reaches the bundle.
  It then serves the Worker under `wrangler dev` three times:
  - with no AUTH_SECRET, the smoke refuses it;
  - with the secret from `pnpm secret:dev`, every page answers;
  - with GitHub's keys: the authorize URL with PKCE; a session sealed with
    the Worker's secret opens /protected; one sealed with another secret
    is refused; sign-out clears it.

Every tier is green locally: contract, docs --check, catalog validate,
--status, leak, placement and e2e.

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