Skip to content

feat(catalog): adopt the Lumen composition stack as the source of truth - #7

Merged
pullely merged 1 commit into
mainfrom
feat/adopt-lumen-composition-catalog
Jul 25, 2026
Merged

pullely merged 1 commit into
mainfrom
feat/adopt-lumen-composition-catalog

Conversation

@ruehowl

@ruehowl ruehowl commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Replaces this catalog with the composition stack that has been developed in-tree in sourceplane/lumen, and makes this repo the single source of truth for it.

Why

The stack existed in three places: here (an older generation), in lumen/stack-tectonic/, and in orun-cloud/stack-tectonic/. The lumen and orun-cloud copies had already drifted apart, and nothing consumed the published OCI artifact — so cross-repo reuse, the whole point of a golden-path catalog, was unproven.

What changed

Catalog replaced with the newer generation. Compositions move from one monolithic compositions.yaml (inline schema, inline jobs, no profiles) to the decomposed layout:

compositions/<name>/
  composition.yaml   schemaRef, defaultJob, defaultProfile, templateRefs
  schema.yaml        ComponentSchema — the authoritative parameter contract
  jobs/<job>.yaml    JobTemplate — capabilities[] + steps[]
  profiles/<p>.yaml  ExecutionProfile — selects steps via includeCapabilities

Profiles are new and load-bearing: a profile includes a subset of a job's capabilities, which is how a verify lane differs from a deploy lane.

Composition set is now 12. Added cloudflare-domain, cloudflare-workers-assets-turbo, db-migrate, publish-stack. Removed workspace, helm-chart, helm-values and all Helm support — no consumer repo uses them.

Reconciled against orun-cloud where it led. db-migrate and turbo-package take orun-cloud's job templates: setup-pnpm now runs before setup-node so the pnpm store cache is warmed and persisted, and installs use --frozen-lockfile instead of --no-frozen-lockfile. Verified lockfile-clean against the consuming repo before adopting.

cloudflare-worker-turbo deliberately keeps Lumen's escrow-based secrets step rather than orun-cloud's newer SS6 variant: the SS6 job calls tooling/secrets-sync/assemble.mjs --list-docs, an interface Lumen's copy does not have, so shipping it would hard-fail Lumen's worker deploy lanes. orun-cloud can keep its newer job as a local dir source that wins via resolution.precedence until Lumen completes SS6.

Publish target fixed. The publish-stack composition declared registry/root/version parameters that were never templated into the job — orun publish was falling back to git-remote inference (ghcr.io/<owner>/<repo>/<package>) and stack.yaml's version. They are now passed explicitly. Also removed a documented STACK_VERSION env override that exists nowhere in orun.

OCI package is published after the release. release.yml now creates the GitHub release first, then pushes the OCI artifact, then confirms it is pullable with orun fetch.

Old-layout tooling retired. verify-composition.sh, score.sh, generate-readme.sh, registry/index.json, blueprints/, and the scorecard.yml / docs.yml workflows all assumed the monolithic layout and scoring model. verify.yml loses its hardcoded 11-composition matrix.

verify.sh rewritten to actually gate the new layout. orun publish --dry-run alone is weak evidence — it returns before packaging or validation. The gate now structurally validates every contract, then stages the layers that actually ship (stack.yaml + compositions/ + examples/), packs them, and resolves the packed artifact back through a throwaway consumer intent, asserting all 12 compositions export.

Docs and per-composition READMEs updated to match.

Verification

  • scripts/verify.sh passes: 12/12 contracts valid, 12/12 export from the packed artifact.
  • Consuming lumen against this exact catalog: orun validate passes with no repo-local compositions, and the full plan is 97 jobs / 46 components with job identity byte-identical to the previous kind: dir baseline.
  • A changed component produces 3 jobs in correct CI-matrix shape.

Stack version bumped to 0.13.0; releasing requires tag v0.13.0.

🤖 Generated with Claude Code

The stack existed in three places: here (an older generation), in
sourceplane/lumen, and in sourceplane/orun-cloud. The lumen and orun-cloud
copies had already drifted apart, and nothing consumed the published OCI
artifact — so cross-repo reuse, the whole point of a golden-path catalog,
was unproven. This repo becomes the single source of truth.

Compositions move from one monolithic compositions.yaml (inline schema,
inline jobs, no profiles) to the decomposed composition.yaml + schema.yaml
+ jobs/ + profiles/ layout. Profiles are load-bearing: a profile includes a
subset of a job's capabilities, which is how a verify lane differs from a
deploy lane.

The set is now 12: adds cloudflare-domain, cloudflare-workers-assets-turbo,
db-migrate and publish-stack; drops workspace, helm-chart, helm-values and
all Helm support, which no consumer repo uses.

Reconciled against orun-cloud where it led: db-migrate and turbo-package
take its job templates, so setup-pnpm runs before setup-node (warming and
persisting the pnpm store cache) and installs use --frozen-lockfile.
Verified lockfile-clean against the consuming repo first.

cloudflare-worker-turbo deliberately keeps Lumen's escrow-based secrets
step rather than orun-cloud's newer SS6 variant: the SS6 job calls
tooling/secrets-sync/assemble.mjs --list-docs, an interface Lumen's copy
does not implement, so shipping it would hard-fail Lumen's worker deploy
lanes before reaching the clean-skip path.

Fixes the publish target. publish-stack declared registry/root/version
parameters that were never templated into the job, so orun publish fell
back to git-remote inference (ghcr.io/<owner>/<repo>/<package>) and
stack.yaml's version — publishing to the wrong repository path. Also drops
a documented STACK_VERSION override that exists nowhere in orun, and
corrects terraform-local's description, which claimed "plan and apply"
while including neither terraform.apply nor terraform.aws-credentials.

release.yml now creates the GitHub release first, then pushes the OCI
package, then confirms it is pullable with orun fetch.

Retires the old-layout tooling — verify-composition.sh, score.sh,
generate-readme.sh, registry/index.json, blueprints/, and the scorecard
and docs workflows — all of which assumed the monolithic layout and
scoring model. verify.sh is rewritten to actually gate the new layout:
orun publish --dry-run returns before packaging or validation, so on its
own it is weak evidence. The gate now validates every contract
structurally, stages the layers that actually ship, packs them, and
resolves the packed artifact back through a throwaway consumer intent,
asserting all 12 compositions export.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pullely
pullely merged commit 35daaea into main Jul 25, 2026
1 check 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.

3 participants