Skip to content

docs(design): software pack spins - #549

Open
oldsj wants to merge 6 commits into
mainfrom
adr-spins
Open

oldsj wants to merge 6 commits into
mainfrom
adr-spins

Conversation

@oldsj

@oldsj oldsj commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Closes

Description

Adds docs/design-doc/implementation/18-software-pack-spins.md, an implementation
design for spins: curated, install-time compositions of software packs plus the
infrastructure they require.

Key positions in the design:

  • A spin is an install-time generator, not a runtime object or an upgrade mechanism.
    There is no spin: config key and no reconcile path reads a spin.
  • Generation writes ordinary artifacts: node groups into cluster.<provider>.node_groups,
    and one Argo CD Application per pack under a top-level operator-owned user-apps/
    directory, synced by an NIC-owned apps/user-apps-root.yaml app-of-apps.
  • Provider translation is data-only: a versioned (provider, requirement, tier) table
    ships with the spin manifests, so NIC core carries no provider-keyed logic and
    out-of-tree providers (ADR-0004) work the same way.
  • Two independent sync-wave sequences: foundational waves 1-6 in apps/root.yaml,
    pack waves ordered only against each other under user-apps-root.
  • Worked llm-chat example on AWS covering the GPU cascade, cross-pack value wiring,
    and the ownership boundary after generation.
  • Documents the known gaps rather than papering over them: per-pack validation doesn't
    exist yet, cross-namespace credential handoff is unsolved, and the GPU cascade is
    AWS-only today.

Also amends ADR-0003 with an Update section:
parts of its Design did not ship as written (packs use the nebari-apps project, not
software-packs; there is no software_packs: config key or pkg/softwarepack).
The layered value-wiring contract remains authoritative.

oldsj added 6 commits August 3, 2026 14:48
Add framing and rationale to the spins notes, and correct claims that
did not hold against the code:

- frame a spin as install-time composition, and record why a durable
  `spin:` config field is rejected (prune/selfHeal on pack Applications)
- generation needs deployment context beyond spin, provider, and size
- provenance in `.bootstrapped`: written by deploy only, merged across
  writes, never read as desired state
- packs are ordinary Argo CD Applications under a top-level `user-apps/`
  seam with its own app-of-apps, since `nebari-root` is non-recursive
- pack Applications sync after the foundational waves 1-6
- provider translation via a data-only (provider, requirement, tier)
  table; `--size` selects one tier per spin
- local and existing treat infrastructure requirements as preconditions
- pack validation, singleton claims, and no inter-pack ordering (#428)
@oldsj oldsj changed the title docs(design): software pack spins implementation design docs(design): software pack spins Aug 3, 2026
@oldsj
oldsj marked this pull request as ready for review August 3, 2026 23:02
@oldsj oldsj self-assigned this Aug 4, 2026
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

This pull request has had no activity for 30 days, so it has been labeled status: inactive 💤.

It will close automatically in 7 days unless something happens. A comment or a push resets the clock.

If this pull request should stay open regardless, for example long-running design work or something blocked upstream, add the status: keep open 📌 label and this bot will skip it permanently.

Closing is not final. The branch is kept, and the pull request can be reopened.

@github-actions github-actions Bot added the status: inactive 💤 No activity for 30 days; will auto-close at 37 unless updated label Sep 4, 2026
@marcelovilla marcelovilla added status: keep open 📌 Exempt from stale auto-close; this PR stays open indefinitely and removed status: inactive 💤 No activity for 30 days; will auto-close at 37 unless updated labels Sep 8, 2026
@marcelovilla

Copy link
Copy Markdown
Member

Added the "status: keep open" label as this overlaps with the work I'm doing for #551 and I'd like to keep it open until we come with some decisions.

@dcmcand

dcmcand commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

James, thanks for this. A lot of the thinking here carried straight into where I landed, particularly provider translation as data and packs not being able to ignore cluster infrastructure. I've opened #670 proposing a different approach, based on your work here and Marcelo's PoC in #641. I do disagree with one part of this doc, the node group emission, and I've laid out why in the issue. We can discuss it in our team meeting and see which way we want to go.

Nothing here closes this PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture 🏛 Architectural design concerns (patterns, boundaries, layering) status: keep open 📌 Exempt from stale auto-close; this PR stays open indefinitely

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants