Deployments: Two ways to deliver Foundry Foundations
The platform ships to customers on two paths. The enclave container carries the current stack across an air gap and runs it adjacent to Foundry — available as soon as a class needs it. The Foundry-native re-platform moves the whole product inside Foundry itself — the long-term home. This page positions the two so every FDE can pick and explain the right one.
Head-to-head
Same curriculum, same validation contract, same design system — different homes.
| Dimension | Enclave container | Foundry-native |
|---|---|---|
| Availability | Spec approved — ready to implement | Planned — after current-stack work completes |
| Hosting | Docker container adjacent to Foundry on an enclave host | Static SPA hosted by Foundry Developer Console |
| Data | SQLite on a mounted volume | Ontology object types via OSDK |
| Auth | Email + password with per-class rosters | Foundry identity; roles from platform groups |
| Validation | Live adapter with the class's namespace root (fixture mode for dry runs) | Namespace-parameterized Foundry Functions |
| AIP helper | Pythia via /api/helper (mock or configured provider) | AIP Logic / Agents, Ontology-grounded |
| Distribution | Air-gapped tarball — docker save/load with sha256 verification | Marketplace package |
| Upgrades | Load the new tarball; entrypoint re-syncs schema; data survives on the volume | Marketplace versioning |
Option A — Enclave container
A single container image, built in a connected environment and carried across the air gap as a checksummed tarball. One enclave hosts one class; validation runs against the customer’s Foundry with the class’s namespace root.
docker load, configure an env file, docker compose up -d./api/health.Option B — Foundry-native
The re-platform: Developer Console hosts a static SPA; the Ontology holds the data; Functions run validation and live sessions; Pythia becomes AIP-native; the whole product installs from Marketplace. No container, no separate host, no separate login.
Component migration map
How each current component reaches its Foundry-native counterpart.
| Today | Foundry-native | How |
|---|---|---|
Course content modules src/content/* typed TSX | Same modules, bundled into the SPA | Ports as-is |
Design system @foundry-curriculum/design-system | Same package, same tokens | Ports as-is |
Next.js pages (SSR) Server components, force-dynamic | Static SPA routes fetching via OSDK | Re-implemented |
Prisma models User · ValidationRun · LiveSession · Class · Enrollment | Ontology object types + links | Replaced |
API routes /api/live · /api/validate · /api/helper · /api/classes | Foundry Functions (typed, ontology-aware) | Re-implemented |
Validation checks Per-step checks against Foundry APIs | Namespace-parameterized Functions running in-platform | Re-implemented |
Email + password auth Per-class rosters, scrypt hashes | Foundry identity; roles from platform groups | Replaced |
Pythia helper Mock client + live-context grounding | AIP Logic/Agents with the same grounding contract | Replaced |
Sequencing
Six phases to Foundry-native, each with a hard exit criterion. The enclave container is the delivery vehicle until Phase 6 completes.
Phase 1: Foundation
Static SPA shell; content modules and design system port; mock data layer.
Exit: Full catalog browsable from Developer Console with zero server.
Phase 2: Data
Ontology object types defined; OSDK reads/writes replace Prisma.
Exit: Progress and validation runs persist in the Ontology.
Phase 3: Functions
Validation checks and live-session logic as Foundry Functions.
Exit: A step validates against a real enclave namespace.
Phase 4: Identity
Foundry SSO; roles from groups; password auth deleted.
Exit: No credential or session code remains in the app.
Phase 5: Helper
Pythia backed by AIP Logic/Agents; mock kept for local dev.
Exit: Helper answers with live Ontology grounding in-platform.
Phase 6: Packaging
Marketplace package; install & upgrade docs.
Exit: Clean install into a fresh enclave passes the smoke checklist.
References
Official Palantir documentation grounding both paths. The full specs live in the repo at docs/superpowers/specs/2026-07-02-enclave-container-deployment-design.md and docs/superpowers/specs/2026-07-02-foundry-native-architecture-design.md.
- Developer Console — hosting & OSDK apps/docs/foundry/ontology-sdk
- Ontology SDK (OSDK) — typed data access/docs/foundry/ontology-sdk/overview
- Functions — server logic in Foundry/docs/foundry/functions
- Ontology — object types, links, actions/docs/foundry/ontology
- Marketplace — packaging & distribution/docs/foundry/marketplace
- AIP Logic & Agents/docs/foundry/aip

