Repository navigation
Description
Epic. Build a unikraft lexicon covering unikernel deployment on Unikraft Cloud, plus the Kraftfile build/run spec. Both surfaces have machine-readable schemas, verified below.
Why this is cheaper than fly was
The expensive part of fly was absent specs. That is not the situation here.
Unikraft Cloud platform API — unikraft-cloud/openapi, BSD-3-Clause, last updated 2026-07-03. platform.json is OpenAPI 3.0.3, 40 paths / 242 component schemas, tagged Instances, ServiceGroups, Volumes, Certificates, Images, Autoscale, Node, Users. A second controlplane.json (~78KB) sits alongside it.
This is a codegen input of the same class as the CloudFormation spec or the k8s OpenAPI. No hand-authored contract, unlike the Sprites work in #815.
Kraftfile — JSON Schema (draft 2020-12) at unikraft-cloud/x/kraftfile/schema.json, 6.5KB, 11 defs. Top-level keys: spec, name, runtime, unikraft, template, targets, libraries, rootfs, volumes, cmd, env, labels, roms, outdir, specification. Versioned reference docs exist for v0.5 and v0.6.
One lexicon, two surfaces
Per the one-lexicon-per-product rule, both live in unikraft. Same call as folding Sprites into fly rather than standing up a second package.
They are different kinds of target and should not be conflated in the entity model. The platform API is a cloud lexicon (declare resources, deploy them). Kraftfile is an artifact lexicon (emit a config file), closer in character to .gitlab-ci.yml.
The local-runtime advantage
fly needed two sibling emulator repos (mudflaps, spritzer) before the tutorial and runtime-E2E story worked. Unikraft runs locally by design — kraft run on QEMU or Firecracker is the ordinary developer path.
So the emulator? plugin capability (#920) has a native target here, and the runtime-E2E story should cost a fraction of what fly's did.
Open question to settle before estimating
The 40 paths are not uniformly REST-resource-shaped. /v1/instances/start, /v1/instances/stop, /v1/instances/suspend, and /v1/instances/wait are RPC-shaped lifecycle verbs.
Declarables map cleanly onto instances, volumes, certificates, and service groups. The verbs are Op territory, not lexicon territory. That split needs deciding before the codegen shape is fixed, because it determines how much of the 242 schemas actually becomes entity surface.
Useful prior art: unikraft-cloud/terraform-provider-ukc already maps this API to a declarative resource model. Worth reading for where someone else drew the resource/verb line, and as a signal the API is stable enough to model against.
Plan (smallest valuable first)
- P1 — codegen the platform API entity model from
platform.json, scoped to the declarable resources only (instances, volumes, certificates, service groups). Resolve the resource/verb split as part of this. Spike. - P2 — serializer +
chant build, with lint rules and post-synth checks. - P3 — Kraftfile support from its JSON Schema, as an artifact target.
- P4 — Ops for the lifecycle verbs (start/stop/suspend/wait), local
kraft runvia theemulator?capability, runtime E2E. - P5 — context tools, init templates, skill, docs page.
- P6 — register in the rolling-upgrade matrix (epic: scheduled lexicon spec upgrades (auto-PR from latest upstream specs) #523) so platform API drift is detected. The spec is a versioned repo file rather than a live endpoint, so this is the pinned path, not the rolling one.
Caveats
Pre-release, no customers, signal-driven rather than demand-driven. Validate after P1/P2 before committing to the full surface.
Unikernels are a narrower audience than the existing cloud lexicons. The argument for building it is that the specs are good, the local story is free, and it is a genuinely differentiated target rather than a fifth way to make a VM.
Activity
lex00 commentedon Sep 4, 2026
Parking this on 2026-09-03. Status check against main at v0.57.0:
lexicons/unikraft, no scaffolding, no commit or comment has ever mentioned Unikraft. All six plan items are untouched since the epic was filed on 2026-07-26.chant emulator up|down|statusCLI #920 (emulator?onLexiconPlugin,packages/core/src/lexicon.ts), epic: scheduled lexicon spec upgrades (auto-PR from latest upstream specs) #523 (lexicon upgrade matrix,.github/workflows/lexicon-upgrade.yml), fly: hand-authored Sprites API contract + emulator-coverage check #815 merged. Nothing external is blocking it.Before any P1 spike, recheck the
unikraft-cloud/openapipin the body cites, since it will have moved. Reopen as active when a user or an evaluation asks for it; close as not planned if the next backlog review finds it still untouched.lex00 commentedon Sep 7, 2026
Closing as not planned, per the last comment here: five weeks with no signal, no customer, and the prerequisites it waited on are all closed, so nothing external is holding it. Reopen when a consumer appears.