Skip to content

docs(spec): lumen-payload-console — Payload is the console (PX0) - #21

Merged
ruehowl merged 2 commits into
mainfrom
orun/PX-1-spec
Oct 28, 2026
Merged

ruehowl merged 2 commits into
mainfrom
orun/PX-1-spec

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

What

The design set for lumen-payload-console (PX). It makes the Payload admin the product console:

  • The product URL opens Payload.
  • A Lumen account signs you in, with no Payload password.
  • The Lumen pages the product serves in Solo mode become pages inside the admin: account, organization, notifications, billing and plan, and security activity.

It follows the CMS research (orun-cloud ai/proposals/cms-landscape-comparison-2026-10-24.md §9.3, §9.5): web-console-next is not reused, and identity is delegated through a Payload auth strategy. lumen-payload-cms's decision (1), "Payload beside the fleet", is marked superseded; nothing else there changes.

  • specs/epics/lumen-payload-console/README.md: status, locked decisions, milestones PX0–PX5.
  • design.md:
    • sign-in: email code and GitHub/Google, called from the browser, because api-edge rate-limits unauthenticated auth per IP.
    • the lumen strategy: an httpOnly lumen_session cookie on the CMS host, validated with GET /v1/auth/session over a service binding and cached 30 s.
    • roles: pending by default; the first admin still needs the owner's setup token.
    • the account pages: each with its api-edge calls.
    • the front door: the console URL becomes 308 redirects.
    • security, verification and scope.
  • implementation-plan.md, risks-and-open-questions.md (PX-A…PX-J), IMPLEMENTATION-STATUS.md.
  • tasks/PX-1.TaskContract.yaml (gates: []).

Docs only: orun plan --changed plans nothing.

Decisions worth a second look

  • One content space per deployment (customer-owned, proposal §16). Separate content per Lumen organization is recorded out of scope (PX-I), because it is the shape where payloadcms/payload#17335 becomes a cross-tenant leak.
  • Solo mode stays on, so projects, usage, members, API keys and webhooks are not ported. They are hidden at the edge today.

Generated by Claude Code

The design set for making the Payload admin the product console: Lumen
sign-in through a Payload auth strategy (email code, GitHub, Google; the
token kept in an httpOnly cookie on the CMS host and validated through
api-edge over a service binding), Payload roles with a pending default
and the first admin still behind the owner's setup token, the Solo-mode
Lumen pages (account, organization, notifications, billing and plan,
security activity) as admin views, and the Lumen console URL redirecting
to the CMS. lumen-payload-cms's decision (1) is marked superseded.

Orun-Task: PX-1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013JuHbkZCjDrGgHdzCrCRqG
db-migrate runs each migration in one transaction, and Postgres refuses
to use an enum value added in the same transaction, so a `pending` value
that is also the column's default would fail on apply. The role becomes
optional with no default instead; no role means pending.

Orun-Task: PX-1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013JuHbkZCjDrGgHdzCrCRqG
@ruehowl
ruehowl marked this pull request as ready for review October 28, 2026 12:12
@ruehowl
ruehowl merged commit 65e3ae2 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