Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Nucleus North Star

This is the long form, and it carries the claim ledgers CI parses. The canonical short statement is NORTH_STAR.md; the reasoning behind the objective is ADR 0005.

The Objective

Nucleus continuously expands the frontier of safely delegatable machine agency: any agent should be able to do as much useful real-world work as its principal is willing to authorize, while being structurally incapable of exceeding that authorization.

             useful autonomous work completed
    ℐ  =  ───────────────────────────────────────────────────────
          authority risk + human friction + integration cost

subject to the invariant that everything below this section exists to hold:

    exercised authority  ≼  delegated authority

The constraint does not compete with the objective; it is what makes raising the objective’s numerator safe. ℐ may never be raised by weakening ≼.

Frontier ledger

One row per thing the objective’s sentence commits to, in the same shape as the confidentiality ledger below: the clause quoted verbatim from the sentence above, a status, evidence handles that resolve in this tree (path or path#symbol), and the gate that would catch the status regressing. Two statuses beyond PROVED, TESTED and NOT-YET: DECIDED — a decision procedure runs on every change over the real tree, with a founding-defect fixture; RATCHETED — a number recomputed from the tree on every change, pinned in both directions, with a named _GUARD partner.

Unlike the confidentiality table, no gate parses this one yet: the check-north-star-ledger.sh second call that parsed it was written on a branch, and new gate logic here is Rust, so the parse is a cargo xtask subcommand still to be written. Until it exists, a status below is a claim this section’s authors checked by hand against this tree on 2026-10-07, which is why every row whose evidence lives only on that branch is held at NOT-YET here rather than at the status it earned there.

#Clause (verbatim from the sentence)StatusEvidenceFalsified by
F1“any agent” — a second vendor’s model, an open-weight model behind a generic client, and a non-LLM worker each run in-guest, and every published metric is reported per model (models_covered grow-only) — tracked in #2699NOT-YETcrates/nucleus-tool-proxy/tests/red_team_harness.rs#LLM_API_URL, .github/workflows/red-team-agent.yml—
F2“any agent” — the agent process holds no ambient host authority in any shipped tier: the boundary is the pod, not one CLI’s disallow-list and hook contract — tracked in #2696NOT-YETcrates/nucleus-cli/src/constants.rs#DISALLOWED_BUILTIN_TOOLS, crates/nucleus-spec/src/lib.rs#pub struct WorkloadSpec—
F3“as much useful real-world work” — the default exec tool round-trips over the wire: the MCP face and the proxy compile against one shared request type, and a test pins the advertised tool schema to that type’s fields (earned on the branch; the shared type has not landed here)NOT-YETcrates/nucleus-mcp/src/main.rs—
F4“as much useful real-world work” — a delegation matrix (profile × operation × tier) is published and grow-only, each row showing its denied variant refusing by policy — tracked in #2698, #2704NOT-YETdocs/perf/RUBRIC-LEDGER.md, crates/nucleus-cli/src/profiles.rs—
F5“as much useful real-world work” — credentialed effects (git push, pull request, cloud API) are reachable from the agent through the broker with method/path scoping and a receipt — tracked in #2698NOT-YETcrates/nucleus-tool-proxy/src/egress.rs, crates/nucleus-spec/src/lib.rs#CredentialedEgressSpec—
F6“as its principal is willing to authorize” — an approval binds to the action it approves and names the approver that verified it, on every tier — tracked in #2697NOT-YETcrates/nucleus-tool-proxy/src/auth.rs#Verify an approval request signed with an approver's Ed25519 key—
F7“as its principal is willing to authorize” — the profile’s path allowlist is carried as the certificate’s scope on every mint path, and one glob-subsumption primitive decides containment for certificate scopes, delegation scopes and the path lattice (earned on the branch; not landed here)NOT-YETcrates/portcullis/src/path.rs, crates/portcullis/src/certificate.rs#pub fn verify_certificate—
F8“as its principal is willing to authorize” — revocation reaches every issued offline-verifiable carrier: a revoked prefix fails every descendant — tracked in #2697NOT-YETcrates/portcullis/src/certificate.rs#pub fn verify_certificate—
F9“as its principal is willing to authorize” — delegated authority only tightens along the chain: the per-hop step of chain_attenuates is Aeneas-extracted and its monotonicity is a kernel-checked theoremPROVEDcrates/portcullis-core/lean/CertChainMonotoneExtracted.lean, crates/portcullis-core/src/certchain.rs#chain_attenuates.github/workflows/portcullis-core-proven-lean.yml
F10“structurally incapable of exceeding that authorization” — no consequential sink is reachable from the effect API without discharging an Authority (total mediation over the closed sink enum)PROVEDcrates/portcullis-core/lean/MediationScopeExtracted.lean#no_sink_reachable_without_discharge, crates/portcullis-effects/src/runtime.rsscripts/check-mediation.sh
F11“structurally incapable of exceeding that authorization” — the confidentiality sub-ledger (C1–C9, below) carries no NOT-YET row — tracked in #2706NOT-YETscripts/north-star-ledger-ratchet.txt#NOT_YET, docs/cross-pod-view.md, crates/nucleus-identity/src/attestation.rs—
F12“structurally incapable of exceeding that authorization” — the fine-grained decision point (flow graph, taint ceiling, budget, egress allowlist) survives compromise of the guest it polices — tracked in #2702NOT-YETcrates/nucleus-guest-init/src/main.rs, crates/nucleus-node/src/host_decide.rs, crates/nucleus-node/src/broker_perform.rs—
F13“structurally incapable of exceeding that authorization” — Tier 1 (nucleus run --local) is a principal boundary: distinct uid, no shared secret readable by the agent, Landlock and seccomp on children — tracked in #2696NOT-YETcrates/nucleus/src/hardening.rs—
F14“continuously expands the frontier” — utility under authorization is measured per canonical profile under that profile’s real lattice, higher-is-better, with _GUARD partners so it cannot be bought by shrinking the corpus or opening an exfil sink (earned on the branch; the measurement has not landed here)NOT-YETcrates/nucleus-flow-replay/corpus/corpus.jsonl, scripts/exemplar-baseline.json—
F15“continuously expands the frontier” — the exemplar scoreboard is a required context and its ratchet refuses an improvement not re-pinned in the same change and a pinned metric that vanished; here it is required and refuses regressions and dropped guards, but an improvement only notices and a vanished metric is not comparedNOT-YETci/required-checks.txt#exemplar metrics ratchet, crates/xtask/src/scoreboard.rs#a_dropped_guard_is_a_failure_even_when_the_metric_improves—
F16“continuously expands the frontier” — the proof counts this document publishes are recomputed from the tree on every change and a mismatch is redTESTEDscripts/formal-numbers.sh#expect.github/workflows/formal-numbers.yml
F17“structurally incapable of exceeding that authorization” — an eval cell holds against a hostile agent with root in its guest: zero contract-forbidden effects, shown by a live escape lane of scripted and adaptive attempts (ADR 0013); the contract and its admission refusals are in place, the escape lane (M2) and the host deciding (M3) are notNOT-YETdocs/adr/0013-eval-cell.md, crates/nucleus-node/src/eval_cell.rs#pub(crate) fn admit, crates/nucleus-spec/src/isolation_profile.rs#EvalCell, crates/xtask/src/escape_lane.rs#pub fn lane (one verdict per probe stage, CONTAINED/BREACH/INCONCLUSIVE), .github/workflows/quickstart-boot.yml#escape-lane-x86_64 (the escape-lane.json artifact of every x86_64 live boot). Held at NOT-YET: the lane today is three scripted probes run by an unprivileged workload, not guest root and not an adaptive attacker— (the M2 escape lane, once it exists)

Clause fragments quote the sentence above. Several rows share a fragment because they earn it separately.

Vision

Nucleus makes “agent jailbreak → silent damage” provably impossible by construction, while remaining frictionless enough that small dev teams adopt it like a linter.

Assume the agent is compromised. Constrain what it can do anyway. Prove the constraints hold.

Flagship Safety Claim

No external side effect occurs unless it is mediated by Nucleus and authorized by a policy that can only stay the same or tighten during execution.

Corollaries:

  • No exfiltration without an explicit sink capability.
  • No “talk your way into more permissions” mid-run.
  • No untrusted content reaching a sink without an approval/declassification gate.

This is the apodictic core — logically compelled, machine-checkable, marketable.

“Can only stay the same or tighten” is stated from the workload’s side, which is what the second corollary makes precise: the agent cannot widen its own authority mid-run. The single widening path, POST /v1/escalate, is not the agent’s to take — it requires a separate approver’s authority and the result is bounded by the delegation ceiling, so it never exceeds what was delegated (see Pillar A #4). An adversary controlling the workload sees a pure ratchet.

The Confidentiality Dual

The claim above is about authority: what a workload may do. Its dual is about confidentiality: what a workload may learn. Both are needed, because a tenant’s first question is not “can this agent act” but “can another tenant’s agent read my secrets.”

Whatever an agent workload does — including when an adversary controls the inputs feeding it — it can neither learn the secrets Nucleus holds on its behalf nor those of any other pod, nor influence which of them get released; the sole exception is a value a governor deliberately released with a single-use token, and even then the adversary cannot steer which value that is. This covers explicit flows through every mediated channel and excludes timing, cache, and other microarchitectural channels, and excludes availability and resource-contention channels such as a bounded pod pool; it is a theorem about the code that ships, re-checked on every change, and a relying party can verify from the outside that the pod they are talking to is the artifact the theorem is about.

The clause “nor those of any other pod” is NOT-YET, even inside the sentence’s own limits (explicit flows only; timing, cache, microarchitectural, availability and resource-contention channels excluded). It is scoped by its row in the ledger below: the C2 note under the table states what of it is proved, what is assumed, and what is not covered. Read the sentence through that row, not past it.

The exclusions are inside the sentence, not a footnote, so the claim cannot be quoted without its limits. Cross-pod confidentiality stated without them would read as “immune to co-tenancy attacks” — the worst overclaim available to this project, and one we have no basis for: Firecracker, the host kernel, and the hardware are all in the TCB and none of them is modelled.

The resource-contention exclusion was added after the fact, and it is worth saying why rather than letting it look like it was always there. The first version excluded only timing, cache, and microarchitectural channels. Working through the host state field by field (cross-pod-view.md) turned up firecracker_pool: a bounded semaphore that pod spawn acquires with acquire_owned().await. It blocks, so one tenant’s pod delays another’s, and that channel is macroscopic and reliable — not microarchitectural at all. Under the original wording a careful reader would have concluded the claim covered it, and that the claim was false. It was. Possibilistic noninterference over values conventionally says nothing about availability; the fix is to say so out loud, which is what this sentence now does.

Status — what is proved, what is tested, what is not yet

Keeping these apart is a house rule, because a north star written in the present tense is how a claim outruns its wiring. This table is a machine-checked ledger (scripts/check-north-star-ledger.sh, run on every change): each row names a clause of the sentence verbatim, carries exactly one status from {PROVED, TESTED, NOT-YET}, an evidence handle CI can dereference, and the gate that reds if the status regresses. The row count, the NOT-YET count, and the count of in-tree dormancy gates the ledger is cross-checked against are all pinned (scripts/north-star-ledger-ratchet.txt) — deleting a row, demoting a status, or a dormancy gate silently appearing or disappearing is a visible event, not an edit.

#Clause (verbatim from the sentence)StatusEvidenceFalsified by
C1“learn the secrets Nucleus holds on its behalf”PROVEDcrates/portcullis-core/lean/IdentityMaterialNoninterferenceExtracted.lean#identity_material_never_reaches_the_workload, crates/portcullis-core/lean/ChannelAdmissionExtracted.lean#no_channel_delivers_secret_to_the_workload, crates/nucleus-tool-proxy/src/workload.rs#DEFAULT_WORKLOAD_UID, crates/nucleus-tool-proxy/src/workload.rs#PUBLIC_RESERVEDscripts/check-c1-inbound-fences.sh
C2“nor those of any other pod”NOT-YETcrates/portcullis-core/lean/PodCrossView.lean#cross_pod_noninterference, crates/nucleus-node/src/pod_api.rs#caller_may_manage_matches_the_podview_lineage_filter, crates/nucleus-node/src/pod_api.rs#pod_b_cannot_observe_pod_a_across_the_auth_and_filter_path, scripts/cross-pod-lineage-check.sh, scripts/cross-pod-scoped-check.sh, docs/cross-pod-view.md.github/workflows/portcullis-core-proven-lean.yml
C3“nor influence which of them get released”PROVEDcrates/portcullis-core/lean/PodMachineSpike.lean#noninterference.github/workflows/portcullis-core-proven-lean.yml
C4“a governor deliberately released with a single-use token”TESTEDcrates/portcullis-core/lean/DeclassifySinkScopeExtracted.lean#no_second_apply, crates/portcullis/src/kernel/declassify_authority.rs#apply_declassification_token_on, crates/portcullis/tests/declassify_rehome_egress.rs#c4_flip_back_on_one_graph, crates/portcullis/tests/kernel_token.rsscripts/check-declassify-value-bound.sh
C5“cannot steer which value that is”PROVEDcrates/portcullis-core/lean/DeclassifySinkScopeExtracted.lean#four_run_value_robustness, crates/portcullis/src/flow_graph.rs#value_binding_ok, crates/portcullis/tests/declassify_scope.rs#four_run_released_value_is_not_attacker_steerablescripts/check-declassify-value-bound.sh
C6“every mediated channel”TESTEDcrates/nucleus-ifc-kernel/src/egress_channel.rs#no_channel_is_an_open_hole, crates/portcullis-core/lean/MediationScopeExtracted.lean#no_sink_reachable_without_discharge, crates/nucleus-ifc-kernel/src/egress_channel.rs#documented_inventory_equals_the_enum, scripts/check-egress-probe.sh, docs/architecture/mediated-set.mdscripts/check-egress-probe.sh
C7“a theorem about the code that ships”TESTED.github/workflows/aeneas-ifc-scoped.yml, crates/nucleus-ifc-kernel/src/extracted/identity.rs.github/workflows/aeneas-ifc-scoped.yml
C8“re-checked on every change”TESTED.github/workflows/aeneas-ifc-scoped.yml, scripts/check-extracted-callsites.sh, scripts/extracted-callsites-manifest.txtscripts/check-extracted-callsites.sh
C9“verify from the outside”NOT-YETcrates/nucleus-identity/src/attestation.rs#verify_attested_svid, crates/nucleus-node/src/identity.rs#attested_svid_is_served_and_verifier_reds_on_drift_and_absent, crates/nucleus-cli/src/verify_attestation.rs, crates/nucleus-node/src/posture.rs#admit_posture—
*The clause fragments quote the sentence above, whose exclusions travel with
them: the claim covers explicit flows only, excluding timing, cache, and other
microarchitectural channels, and excluding availability and resource-contention
channels.*

What each status means, and what it deliberately does not:

  • C1 (PROVED — re-promoted 2026-08-08; had been demoted earlier the same day). FM-5 genuinely proves, over the seven modelled child-inheritance channels (Env, Argv, Cwd, Stdio, ExtraFd, Uid, Cmdline), the 11-kind × 3-principal delivery table, Aeneas-extracted, sorry-free, axiom-audited — but the clause is broader than that theorem, and the clause was falsified by a channel FM-5 does not model: the guest kernel command line (/proc/cmdline) is world-readable inside the VM, and it carried real secrets — nucleus.approval_secret (the symmetric HMAC key, so any workload could forge approvals, an authority bypass) on every pod, plus the AWS audit-sink credentials whenever an audit sink was configured. Both are closed as of 2026-08-08: the AWS credentials ride the workload API (FETCH_AUDIT_CREDENTIALS, served once before any workload exists), and approvals are Ed25519 signatures the guest verifies against the node’s public key (nucleus.approval_pubkeys) — no shared secret exists in the guest. The task-token cmdline copy and the dead Tier-3 nucleus.sandbox_token were then RETIRED (2026-08-08): the task token is fetched over the workload API (FETCH_TASK_TOKEN), and the sandbox token was verified with an auth_secret no shipped rootfs delivers (/etc/nucleus/auth.secret is written only under build-rootfs.sh --legacy-secrets), so it could never verify — a dead Secret on a world-readable channel. MaterialKind::TaskToken stays Secret in the FM-5 model; rather than argue the cmdline copy harmless (an argument resting on session_mint keeping the nonce host-pinned forever), it is deleted. No pod writes any per-pod material to /proc/cmdline now — a categorical gate (no_pod_cmdline_carries_any_per_pod_secret) proves it over the real boot args for every identity outcome, and it is the Rust half of the Lean channel theorem. This also realized the FM-4 snapshot payoff: a realistic identity-bearing pod cmdline is SafeToClone. The cmdline is now a MODELLED channel (ChannelKind::Cmdline, Aeneas-extracted): the flagship no_channel_delivers_secret_to_the_workload covers it, and the_cmdline_delivers_no_secret_to_the_workload states it by name — a Secret re-appearing on the command line is now a RED theorem, not an unmodelled gap. So the specific falsifier that demoted C1 is closed AND proved. C1 is re-promoted to PROVED after a red-team walk of the four residual inbound surfaces resolved each — two as declared exclusions, two closed fail-closed:

    • Bind-mounts (excluded). Firecracker gives the guest virtio block devices, not a shared host filesystem; the only bind-mounts are host-side jailer-chroot plumbing the guest never sees as files. This is FM-5’s existing mount fence (extracted/channel.rs), not a new one.
    • /etc/nucleus/* (excluded). The legacy secret files (auth.secret, approval.secret) are written only under a --legacy-secrets build flag no shipping path passes; pod.yaml is cred-split (no credential values); the one runtime-written private key is mode-0600 and folds into the uid fence below.
    • /proc/<pid>/environ (gap B — now closed). The runtime holds every per-pod secret in its own environment, and a same-uid workload reads it via /proc. The uid fence was wired only under credentialed egress, so a no-egress, no-uid pod ran the workload as the runtime’s uid and was exposed. Every workload now runs as a distinct unprivileged uid, never the runtime’s (workload.rs, DEFAULT_WORKLOAD_UID).
    • The _ => OrdinaryData classifier fallthrough (gap D — now closed). An unrecognised NUCLEUS_* name fell through to Public and was delivered, and the dual-classifier corpus test could not catch it (both classifiers share that default). Any unclassified reserved-namespace key is now refused at admission (workload.rs, PUBLIC_RESERVED).

    C1’s relation leg is the Lean noninterference; its conformance leg — that the shipping runtime actually withholds — is TESTED and gated by scripts/check-c1-inbound-fences.sh (reverting fence B or D reds it). That conformance leg is bounded by C7 (“a theorem about the code that ships”), itself TESTED, so the row records the proven relation with the runtime conformance gated beside it — the same shape as C4.

  • C2 (NOT-YET). Proved: a pod’s view of the pod registry and of its served identity is unchanged by pods outside its lineage (direct children and itself), for create and for identity mint/release/register/unregister. Assumed: the runtime refuses a create naming a parent the caller does not own. Not covered: persistent memory as content (below), clearing-auction prices (crates/nucleus-tool-proxy/src/authority_round.rs), lockdown delivery (filtered per watcher, not mechanized), and the 2 node fields the compile-checked census leaves Unclassified (request_proofs, authority). The census is crates/nucleus-node/src/node_state_census.rs: it destructures all 56 NodeState fields with no .., so a new field fails to compile until it is classified.

    Persistent memory is content, shared only through declared channels (Program B, M3). A memory space is an object (memory_space.rs: tenant, space id, schema) with a hash-chained history; a run never inherits a parent’s powers over it. At pod creation the node mints the run its own binding from the policy that admits it (memory_binding.rs), pins the space’s head, and hands the run a private copy of that version as the policy’s view sees it. Audiences: Lineage(root) by default (runs of one lineage share the base and never each other’s writes until one is published); Workspace(selector) over labels only the tenant’s own identity wrote; TenantAll, only when named; and TenantAll-legacy, the declared, receipted form migration gives a store the owner-keyed layout already shared. Lineage, workspace and tenant audiences are declared channels between pods, not a confidentiality the runtime withholds. Cross-run memory needs dependency-stamped labels (Program C, C0 then C1). The tool-proxy stamps every record it writes with its session’s floating confidentiality — what the session had read, read from the discharge term under the flow-graph lock that decided the write and bound into the write’s authority by value — and joins it into the record’s label, so a run that read Secret data and then writes a literal that read selected writes a Secret record. The stamp is in the commit’s head hash, and replay re-derives each label against the floor the record recorded, never a fresh session’s. An unstamped record (a v1 journal, a migrated store, a guest that predates GuestCapability::MemoryDependencyStamp, the pinned 2.7.0 one among them) is Secret wherever it is delivered, and so is anything derived from it: withheld from every view below Secret, held stamped Secret by a stamping run, and never given to a legacy run, which is given only stamped Public records. A space whose every record is stamped (a declared space, which starts empty; a lineage’s own space created by a stamping run) refuses an unstamped publish by name (UnstampedRecords) and admits Workspace and TenantAll policies; every other space keeps C0’s refusal (CrossRunMemoryUnavailable at creation, at bind and at publish, and for a Lineage policy over a space any of whose policies admits another lineage), and a migrated owner-keyed store is delivered to no run. Nothing reclassifies a legacy record downward in C1. The floor is the whole session’s: implicit flows inside a session are covered only by that ratchet, not tracked per value. The bind-time QuotaFullyAllocated refusal names no unreserved byte count (it would count Secret bytes). Every delivery is a node-signed receipt kept before the pod is handed the bytes; reads of a delivered snapshot are local and are not observed. Revoking a space or a policy refuses new mediated operations (ForeignEpoch, by name); revocation does not erase what was already disclosed. The publish verdict’s quota half depends only on the binding’s own allocation (a budget split); the bind-time allocation refusal, a stale base and a keyed conflict on the run’s own records remain declared channels. Tests: sibling_runs_share_the_base_and_never_each_others_writes, a_workspace_policy_is_refused_until_labels_are_stamped, a_secret_selected_record_reaches_no_public_view_of_a_stamped_workspace, a_secret_selected_record_reaches_no_public_view_over_http_across_a_stamped_workspace, a_session_that_read_secret_writes_a_secret_record_that_replays_secret, replay_in_a_fresh_session_keeps_the_recorded_floor, a_legacy_run_is_given_only_stamped_public_records_and_cannot_publish_unstamped_ones, an_unstamped_record_and_what_derives_from_it_are_secret_wherever_delivered, a_tenant_all_policy_is_refused_at_creation_bind_and_publish, lineage_policies_still_bind_and_publish_and_never_reach_another_lineage, a_fully_allocated_refusal_names_no_byte_count, a_child_is_never_handed_its_parents_binding, a_journal_truncated_below_a_pin_is_refused_by_name, a_publish_verdict_depends_only_on_the_bindings_own_allocation, migration_declares_each_legacy_store_once_and_delivers_it_to_no_run_until_stamped. This does not promote C2: the Lean model of the memory surface (MemoryContext.lean) is not yet linked to this code, and the mediated propose/publish path through the tool-proxy is M4. Stamped labels decide what a view is GIVEN; they do not close what a publish verdict says. A Public binding of a stamped workspace still shares one head with Secret publishes (stale base, its success head, keyed conflicts over records it cannot see), which Program C’s C3 and C4 address, and none of this says anything of timing, microarchitectural or resource-contention channels.

    History. The first mechanization landed 2026-08-11. The design (docs/cross-pod-view.md, after Nickel/OSDI-2018: the view relation is untrusted, so a too-coarse relation fails the proof) is now a kernel-checked two-run theorem for the first shared surface. PodCrossView.lean defines podView : PodId → HostState → Observation verbatim from the design and proves both unwinding conditions over pods — the only shared-mutable field mediated by design (server-side lineage filter, #2199): output-consistency (output_consistency, a pod’s view is determined by its own lineage slice) and local-respect (local_respect, another pod’s write is excluded from the view), with cross_pod_noninterference as the two-run payoff. It is non-vacuous by four decide-checked witnesses — including the coarse-relation-fails guardrail (dropping the lineage filter makes local_respect false, so a weaker relation breaks the proof rather than silently passing). Clean axiom profile (⊆ [propext, Classical.choice, Quot.sound]), gated by the proven-lean workflow. What keeps C2 NOT-YET: (a) only pods and, since #3347, the identity surface (PodCrossViewIdentity.lean) are mechanized — the rest of the shared-mutable fields are not yet in-Lean; the field census they are counted from is now a compile error (crates/nucleus-node/src/node_state_census.rs, 56 fields), and it leaves 2 Unclassified; (b) the two fields that were excluded because their code was defective are now fixed — the lockdown_tx broadcast leak (#2203, server-side filter for pod: scopes; the label: broadcast is closed too, because the node now evaluates the selector per watcher in lockdown::reaches with matches_label_selector, #3355, 2026-10-08, and an unparseable scope reaches nobody) and the node-wide identity socket handing out an arbitrary cert+key (#2204, retired) both landed. The identity registry has since re-entered the model (#3347); lockdown delivery is unblocked but not yet mechanized; (c) the model↔runtime parity for the pods filter is tied — caller_may_manage_matches_the_podview_lineage_filter pins the shipped listing/management predicate (pod_api.rs, live at #2199) to the abstract ownedBy relation exhaustively; (d) the cross-pod isolation is now tested over the live request path — pod_b_cannot_observe_pod_a_across_the_auth_and_filter_path drives both functions a request traverses (auth identify_caller + filter caller_may_manage) through the B-cannot-observe-A scenario, including the forgery the auth exists to stop; (e) the lineage that filter reads is verified on a running node — scripts/cross-pod-lineage-check.sh boots the real nucleus-node (KVM-free local driver), creates two sibling pods and a child of one through the real signed POST /v1/pods, and asserts the listing serves the recorded parent_pod_id (child→parent; siblings top-level); (f) the scoped exclusion itself is verified on a running node — scripts/cross-pod-scoped-check.sh boots the real node, creates an orchestrator pod A and a non-lineage sibling B, and drives A’s tool-proxy POST /v1/pod/list presenting A’s OWN node-minted caller token: the node scopes the listing server-side (caller_may_manage) so A sees A but not B — a strict subset of the operator view that sees both. This runs KVM-free because a pod’s caller token is derive_token(caller_secret, id) and its unforgeability rests on the node-only caller_secret, not on the transport (correcting an earlier over-strong note that this “needs a real Firecracker pod”). Only the local driver delivers a caller token now: since #3356 a Firecracker guest is served its own id and an empty token, because nothing in the VM can reach the HTTP listener that reads one. (g) The two-pod Firecracker boot is in: podlist-probe.yml — a required check (ci/required-checks.txt) — boots A, A’s child C and sibling B under Firecracker with a jailer on one node and runs cargo xtask cross-pod-live (#2604, ported to Rust and extended to both views in #3360). Each guest calls POD_LIST over its own vsock, which the socket authenticates, and the host asserts view(A) ⊇ {A, C} without B, view(B) holds B without A or C, each root’s view holds itself and not the other root, and both are strict subsets of the operator view. What remains is the M6 plan below: classifying the census’s 2 Unclassified fields; mechanizing lockdown delivery and the remaining fields; linking the model to the runtime by extraction rather than by the parity test in (c); and the owner’s sign-off. VM-level guest isolation (partly covered by net-guest-isolation-check.sh) stays with the escape lane, not C2. “Any other pod” is not yet earned end to end: the live boot checks one listing surface, not every shared field.

    M6 plan for C2, re-verified on main at 827394f5a (2026-10-08); bullets re-checked at d4005cb2e (2026-10-12). Statements in the C2 note had gone stale. Each is corrected here first, because the plan rests on them. Three of the four corrections below have since been overtaken by merged work, and each says so.

    • The real-vsock boot exists, and now checks both views. podlist-probe.yml boots A, a child C and a sibling B under Firecracker with a jailer (#2604). On 827394f5a it ran scripts/firecracker/podlist-boot-check.sh, which checked only A’s view. #3360 replaced that script with cargo xtask cross-pod-live (crates/nucleus-cli/src/host_evidence_live/cross_pod.rs), which also checks that B’s view holds B and neither A nor C, that each root’s view holds itself and not the other root (a node binding both sockets to one id fails), and that both views are strict subsets of the operator’s. The check is required (ci/required-checks.txt). The client in the guest is still CI-only instrumentation (ci-podlist-probe).

    • The census is out of date (counted at 827394f5a). NodeState has 56 fields, not 38. Four have gone (auth, broker_vsock_port, github_oidc, identity_vsock_port) and 22 are unclassified: approval_signer audit_minter audit_sinks authority container_mediation container_proxy decision_epochs egress_stream_limits eval_cells firecracker_api_boot host_roots intake jailer_limits local_driver_opt_in lockdowns memory node_capacity node_platform pod_ceilings sealed_rootfs staging_budget workload_landlock. So “8 shared-mutable” is no longer a derived number. At least lockdowns, node_capacity, decision_epochs, staging_budget, memory and authority are pod-written.

    • Lockdown delivery is now fixed in the runtime; it is not yet modelled. On 827394f5a a label: scope still reached every watcher, carrying the operator’s free-text reason and selector. #3355 closed that: lockdown::reaches is the one decider for delivery, in_force and admits, and it evaluates Target::Label per watcher with matches_label_selector, so a pod the selector does not match is sent nothing. A scope the node cannot parse reaches nobody, and issue refuses to issue one. lockdown::watcher refuses a stream to any caller that is not a pod, so there is no unresolved watcher left to receive everything. #3362 holds a label lockdown, so a matching pod that connects later is told. The tests are in lockdown.rs: a_label_scoped_lockdown_reaches_only_the_pods_it_matches, an_unparseable_scope_reaches_nobody and an_unparseable_scope_is_refused_at_issue.

    • There is no caller token on the Firecracker path. On 827394f5a guest-init fetched one over vsock and exported it, with no consumer: its only consumer is the tool-proxy’s HTTP NodeClient, and a Firecracker guest has no route to the node’s HTTP listener. Since #3356 the node serves a Firecracker guest its own id and an empty token (handle_fetch_pod_caller_token). The Firecracker route is POD_LIST, which is authenticated by the socket it arrives on (PodListView binds the pod at construction and has no setter).

      On HTTP, a pair that is presented and fails to verify used to be dropped, not refused, and the caller fell back to its peer’s own scope. Since #3357 it is refused with a 401 and a named reason (CallerTokenRefused, resolve_http_caller in auth.rs).

    Each step below names its definition of done (DoD) and its A-19 falsifier (red), which must be driven red on the real defect and then green.

    1. The census becomes a compile error.
      • Add an exhaustive destructure let NodeState { … } = s; with no .. (E-1, the E0027 mechanism) in a #[test] beside one Surface::{Structural, Secret, SharedMutable, Excluded(reason)} entry per field (F-1: the classification is not restated anywhere else). Size: S, one file.
      • DoD: all 56 fields are classified, and docs/cross-pod-view.md cites the test instead of a hand list.
      • Red: adding a field to NodeState fails to compile, and deleting one entry from the classification fails the test.
      • Landed: crates/nucleus-node/src/node_state_census.rs. One list generates both the exhaustive NodeState { … } pattern and the classification, so a field added without an entry (E0027) and an entry naming no field (E0026) are both compile errors, which is stronger than the test failure the red asked for. 56 fields: container_proxy has gone since 827394f5a and guest_report (#3438) has arrived. The classes are finer than the four above: Structural, Secret, PerPod, LineageScoped, SelectorScoped, TenantShared, Contention, Unclassified. The counts are pinned in the test, so a reclassification is a visible edit.
    2. Classify the 22 new fields in the revelation form the KILL assessment prescribes: what B’s action reveals to A, not what shape the counter has.
      • Expected classes:
        • availability: node_capacity, staging_budget
        • cardinality: decision_epochs, which reveals a node-wide count of decision channels
        • lineage-keyed and needing a model: authority, eval_cells, lockdowns
      • Size: S–M, a reading pass.
      • Census result (step 1): memory is not availability: it is content. It is TenantShared as a declared channel: one space per lineage by default, crossed only under a tenant-declared (or migrated, receipted) policy, each run bound to a pinned snapshot of its own (C2 note above). authority and request_proofs are Unclassified.
      • DoD: no field is left without a stated revelation.
      • Red: a field whose projection varies with another pod’s contents fires the KILL condition, and C2 stays NOT-YET until it is fixed.
    3. Mechanize the remaining fields, one Mathlib-free file each, beside PodCrossView.lean. Each file reuses ownedBy and carries its own coarse-relation-fails witness.
      • Identity (S, ~100 lines). Landed in #3347 (PodCrossViewIdentity.lean, listed in portcullis-core-proven-lean.yml). No production path reads vm_registry any more. It is written at register/teardown and read only by rebuild_registry_from_disk and by tests. What a pod is served is identity_for(bridge.pod_id) from the certificate cache, keyed by an injective pod_identity.
        • Model: served A σ = cache σ (ident A).
        • Theorems: local-respect (B’s register, release or fetch leaves A’s served value unchanged) and output-consistency.
        • Red: the #2197 shape, serving an arbitrary registered entry, breaks local-respect.
      • Lockdown (M, ~200 lines). Model delivery over the scopes All | Pod t | Label s plus the held set.
        • Theorem: delivery to A is determined by A’s lineage and the operator’s command, and creating or cancelling a pod outside A’s lineage leaves it unchanged.
        • The Label scope needs no exclusion any more: the node evaluates the selector per watcher (lockdown::reaches, #3355), which was the strongest option this step named. The model is to cover Label s as a predicate over A’s own labels, and a held label lockdown (#3362). Not yet mechanized.
        • Red: the pre-#2203 broadcast delivery breaks local-respect.
      • Availability, cardinality and contention fields (S): the pools, node_capacity, staging_budget, network_allocator, decision_epochs, docker and http_client. List them in Lean as an Excluded enumeration that step 1’s census must equal.
        • Red: a census field that is in neither list.
      • DoD for every file: lake build passes with no sorry and a clean axiom profile, and the file is listed in portcullis-core-proven-lean.yml.
    4. Link the model to the runtime by extraction, not by parity. caller_may_manage_matches_the_podview_lineage_filter restates ownedBy in Rust. That leaves two copies (G-1), and a drift becomes a test failure rather than an impossibility.
      • Strongest feasible link:
        • Move the pod arm of caller_may_manage, and later lockdown::delivery and identity serving, into pure functions in nucleus-ifc-kernel/src/extracted/pod_view.rs, over an abstract id.
        • Extract them Charon→Aeneas into their own generated-pod-view/ directory. The extractions cannot import each other (the IFC/CapQuantale/Channel lesson).
        • Prove the PodCrossView theorems over the generated Funs.lean.
        • Call those functions from nucleus-node and delete the Rust restatement.
      • Size: M. It needs the scoped Aeneas workflow, which is already a required check.
      • Runner-up: keep the parity test. It is weaker because it has two deciders.
      • DoD: the extraction is drift-clean, the theorem names the extracted function, and nucleus-node holds no second copy of the predicate.
      • Red: with || pod == caller dropped, or with the filter replaced by true in the Rust source, the regenerated Lean fails the non-triviality or local-respect proof.
    5. The live boot: both pods, both views, distinct identities. Landed in #3360 (cargo xtask cross-pod-live, run by the required podlist-probe.yml), with two differences. Its verdict is the last line of its own lane, not a stage in the escape lane’s escape-lane.json (#3338 merged, and crates/xtask/src/escape_lane.rs has no cross-pod stage). The distinct-identity check is made through the views (each root’s view holds itself and not the other root), not by the guest echoing the id it was served. Both owner decisions below also landed: #3356 and #3357.
      • Port podlist-boot-check.sh to Rust: a host_evidence_live test behind a cargo xtask subcommand. This follows the mandate, because the script has to change anyway.
      • Assert, on one node:
        • A sees ⊇ {A, C} and never B;
        • B’s own probe sees exactly {B};
        • the pod id each guest was served over its socket is its own;
        • both views are strict subsets of the operator view.
      • Report the result as a verdict line in the escape lane, which is #3338 once that merges.
      • Size: M.
      • DoD: green on the KVM runner, naming the commit.
      • Red: a node built with scope_to_caller returning every item fails the A and B assertions, and restoring it turns them green.
      • Not in scope, and why: “B’s token presented for A is refused” cannot be an honest ordinary call on this tier, because no ordinary component presents the token and the host never holds it. On this tier the refusal is a type: the socket-bound PodListView.
      • Owner decision, strongest option:
        • Stop serving the caller token to Firecracker guests, where it is an unused bearer secret. The socket authenticates, and #2446 is removing the HMAC tier anyway.
        • On HTTP, refuse a pair that is presented and fails to verify with a 401, instead of dropping it (A-1: “claimed and failed” is not “absent”).
        • Cost: a misconfigured orchestrator fails loudly instead of degrading.
    6. VM-level guest isolation stays with net-guest-isolation-check.sh and the escape lane (M1–M3), not with C2. C2 promotes when steps 1–5 are green and the owner signs off.
  • C3 (PROVED) — the two-run noninterference theorem over the reference pod machine, whose step relation calls the extracted delivery oracle. Scope is honest: a coarse monitor LTS with an opaque workload, labelled Phase 0.

  • C4 (TESTED — promoted from NOT-YET 2026-08-10; held one notch below PROVED while the live-release e2e is boot-gated). The clause names a specific live mechanism: a governor release via a single-use token. Both legs now hold on the graph the shipping egress verdict reads — but because the release’s shipping-path conformance is a boot-gated end-to-end (proven mechanism + unit-level flip over the real FlowGraph type + endpoint wiring verified by inspection, not yet a running-pod HTTP e2e), the honest row status is TESTED, not PROVED. It returns to PROVED when a boot-a-real-pod e2e shows a POST /v1/declassify token flipping a live verdict for the committed value and denying a substituted one.

    • Single-use, PROVED. The absorbing declass_step machine (no_second_apply, single_use) over the Aeneas-extracted decision core, enforced by the shared one-shot burn ledger (FlowGraph::release_burn_ledger) and exercised at the kernel API by crates/portcullis/tests/kernel_token.rs (mint → apply → second-apply refused; a refusal never burns).
    • Live on the graph egress reads, PROVED-mechanism / TESTED-conformance. The demotion reason was that the proven token fired nowhere: apply_declassification_token recorded its scope on the kernel’s own flow_graph, which no request path populated, so POST /v1/declassify returned NodeNotFound and the actually live release was the unproven k-of-n memory path. That inversion is closed. The apply is re-homed (apply_declassification_token_on(&mut graph, token), #2235): the endpoint (nucleus-tool-proxy/src/declassify.rs) locks state.flow_graph — the graph egress reads — and lands the scope there, and egress honors per-node scopes fail-closed. So a single-use token now flips the egress verdict Deny→Pass for exactly the committed value at exactly its signed sinks, proven on one graph by crates/portcullis/tests/declassify_rehome_egress.rs#c4_flip_back_on_one_graph, with a boundary matrix that denies a substituted value (ContentMismatch), an unsigned sink, a replay, a second secret node, and poison. The k-of-n mint now feeds the same value-bound, sink-scoped, one-shot DeclassScope on that graph (#2234), so there is one enforcement and two mint policies, not a proven-but-dead path beside an unproven-but-live one.

    Honest caveat — which leg is TESTED. The proven single-use/sink-scope theorems and the value-bound apply→egress flip are exercised at the unit level over the real FlowGraph type (the same type and API the endpoint uses), and the endpoint wiring (verify_declassification, then graph.apply_verified(v, now) on state.flow_graph — the witness split of 2026-09-27) is asserted by inspection in scripts/check-declassify-value-bound.sh. The full HTTP-POST /v1/declassify-against-a-running-pod e2e — a real governor request flipping a real tool-proxy egress verdict — is boot-gated (boot-a-real-pod, requires /dev/kvm) and is the conformance leg, the same shape as C1’s runtime conformance. The falsifier scripts/check-declassify-value-bound.sh reds if the value-binding is neutered OR the endpoint is re-pointed at the orphan kernel graph (the exact #2235 regression), so the dead-mechanism inversion cannot return silently.

  • C5 (PROVED — re-promoted 2026-08-10; had been demoted 2026-08-08). The clause is about the VALUE axis: an adversary controlling the inputs cannot steer which value a governor release yields. This is now both enforced and proven relationally, closing the sink-axis-only overclaim that demoted it (the old citation sink_outside_a_singleton_mask_denied proves where data goes, not which value is released).

    • Enforced (value-binding at apply). The token carries a signed content_commitment: [u8; 32] (SHA-256 of the exact authorized bytes, bound into canonical_bytes at canonical-v3). Apply releases only for a node whose monitor-recomputed ingest content_hash equals that commitment (FlowGraph::value_binding_ok); a substituted value, an unbound ([0u8;32]) commitment, or a node with no recorded hash is refused ContentMismatch — fail-closed and non-burning (the token stays usable). The content hash is a monitor-recorded fact (observe_with_content_hash, SHA-256 recomputed at ingest, never an agent field), so the adversary cannot forge the equality.
    • Proven relationally (four-run robustness). four_run_value_robustness (DeclassifySinkScopeExtracted.lean) states that over the 2×2 grid of attacker-controlled recorded content against one governor commitment, every run releases exactly the committed value or denies — no attacker input releases any other value. Sorry-free; #print axioms = {propext}. This is the value axis of robust / non-malleable declassification (Sabelfeld–Sands; Cecchetti et al., CCS’17), which nucleus can reach because the proxy mediates every egress.

    Honest abstraction — the u64-tag / 32-byte nuance. The extracted decision core the theorem is stated over (value_authorized, in EXTRACT_ROOTS) models value identity as a u64 tag and decides on tag equality. The runtime compares the full 32-byte ContentHash. The two are bound by the parity test crates/portcullis/tests/declassify_scope.rs#authorize_release_value_binding_matches_the_extracted_decision (equal bytes ⇔ equal tag; unequal ⇔ deny), so the relational theorem transfers to the byte-level runtime decision by tested parity, not by a proof over 32-byte arrays. That is the one gap between the proof and the shipped comparison, and it is gated: the falsifier scripts/check-declassify-value-bound.sh runs both the four-run test and the parity test, and reds if value-binding stops refusing a substituted value.

  • C6 (TESTED — promoted from NOT-YET 2026-08-11; complete-mediation Phases 1–3). Five legs now hold. (a) Tier-A total mediation is a theorem: over the closed SinkClass/Operation enum, no_sink_reachable_without_discharge (MediationScopeExtracted.lean, Aeneas-extracted, sorry-free, axioms ⊆ [propext, Classical.choice, Quot.sound]) proves no consequential sink is reachable from idle without discharging an Authority; a new sink forces a match arm (#2241). (b) The effect boundary is enforced, not advisory: the mediated dylint pass runs enforcing-at-zero over the sealed effect home portcullis-effects — counted by report count, not exit status, with a reds-on-revert self-test (scripts/check-mediation-dylint.sh, #2244). (c) The transport/egress surface now has a unified, gated inventory: docs/architecture/mediated-set.md enumerates every outbound channel against the closed EgressChannel enum, and documented_inventory_equals_the_enum reds if the table and enum disagree on the key set or a channel’s status (Phase 0). The three Tier-B surfaces that kept this NOT-YET are now closed: (d) Phase 2 — the netns default-deny backstop for in-shell / raw-socket egress (channels 5, 10) is proven applied on boot by the in-guest egress probe (scripts/check-egress-probe.sh, x86_64 boot gate: an off-allowlist connect from inside the live guest returns ENETUNREACH; #2246); (e) Phase 3 — the effects() escape hatch (channel 12, #1248) is closed (unmediated_effects requires an opt-in token + strictest-sink discharge + FlowTracker observe, fail-closed tested), and the partial transport channels (7, 8) rest on tested structural refusals (host-CID pin only_the_host_cid_is_accepted, broker refusal by absence). The inventory now carries no open hole — no_channel_is_an_open_hole asserts it, the machine meaning of “every”. TESTED, not PROVED: “every” here is a union of tested properties plus one theorem, not a single proof. The Tier-A theorem covers only the effect-API surface (channels 1–4); the in-shell/raw-socket backstop (5, 10) rests on “iptables applies the rules”, which is TESTED-on-boot with the kernel in the TCB, not proven; the partial transport channels (7, 8) rest on tested structural refusals; and channel 12’s audit-DAG granularity is coarse (one node per grant). The falsifier is scripts/check-egress-probe.sh — it reds if the live-path backstop stops confining egress; no_channel_is_an_open_hole reds if any channel regresses to an open hole. Re-earning toward PROVED would need the network backstop proven (not tested) applied and the theorem extended past the API surface.

  • C7 (TESTED — unchanged 2026-08-10; the declassify gap narrowed but C7 is broader). The theorems are about a scalar-only extracted restatement of the enforcement predicates, re-extracted from the current Rust on every proof-workflow run and bound to production by exhaustive parity tests and the boot-gate conformance replay. The declassification arc (#2227–#2236) narrowed this gap for its own slice — the declassify decision core (value_authorized) is now in EXTRACT_ROOTS, so the proofs describe the graph the live egress actually reads, and the u64-tag↔32-byte binding is parity-tested — but that does not promote C7, which is the broader whole-slice↔shipped-code correspondence. The surrounding kernel, classifier, and spawn path are still covered by tests and lints, not by the theorem; and even the declassify slice’s byte-level runtime comparison transfers to the proof by tested parity, not by proof. C7 stays TESTED.

  • C8 (TESTED — promoted from NOT-YET 2026-08-11). Two gaps closed. (a) The proof workflow’s trigger was an allowlist of the extracted Lean files that missed the production types the parity tests bind against (IFCLabel, SinkClass, ConfLevel in ifc_ops.rs/lib.rs); it now triggers on the whole crates/nucleus-ifc-kernel/** domain (derived, not enumerated), so a change to the enforcement the theorems mirror re-extracts + re-parity-tests + re-proves. (b) Nothing checked that the extracted predicates are still wired into the live path — a theorem about a function nobody calls is a proof about dead code. scripts/check-extracted-callsites.sh (required, runs every PR via ci.yml) now asserts each manifest-covered predicate has a live production call site (production region, test blocks excluded); it reds if the call site is deleted. Every extracted family is accounted for (a call-site audit confirmed none is proven-but-silently-unwired): the wired ones carry a live anchor — identity delivery (ident_may_deliver, a direct call to the extracted predicate), mediation (classify_sink for sinkcode, and authorizes — the effect-gate require_scope — for scope_admits), declassify (authorize_release), egress (egress_chain), and the capability lattice (CapabilityLevel’s ordering, used live in the trifecta classifier for capleq); the genuinely structural ones carry their construction anchor — channel_admits (C1’s no-secret-channel / distinct-uid fence) and cred_may_deliver (the broker builds its store from the node env, never the guest spec, so a Secret credential never reaches the Guest sink by construction). Ceiling: these two are proof-only by design — there is no runtime predicate call to check, so the gate anchors the construction instead; and the base flows-to relations (iflows_to/cflows_to) are exercised transitively by the decision predicates. TESTED, not PROVED: the correspondence is a build-system + grep-gate check, not a proof.

  • C9 (NOT-YET — demoted 2026-08-08, was TESTED; Inc 1 landed 2026-08-11). Increment 1 wired the first end-to-end vertical, but the leg is not yet fully earned. What now holds (node-signed software launch attestation): the producer no longer discards the attested cert — fetch_attested_certificate caches it (SecretManager::cache_certificate) so the served FETCH_SVID fast-path (manager.fetch_certificate) returns the cert carrying the measurement, and SelfSignedCa::sign_attested_csr really does embed the DICE extension (the prior note’s “no CA implements sign_attested_csr” and “#[allow(dead_code)]/discarded” facts are now false for the shipping path). A shipped relying party exists — nucleus_identity::verify_attested_svid (extract LaunchAttestation from the leaf, check against AttestationRequirements) with a production CLI caller nucleus verify-attestation. The teeth are exercised over the real serve path: identity::tests::attested_svid_is_served_and_verifier_reds_on_drift_and_absent proves (i) correct measurement verifies (non-vacuous), (ii) one byte of drift reds, (iii) an absent extension fails closed under require_attestation; cli_verifies_attested_and_reds_on_drift_and_absent proves the same through the CLI entrypoint. Trust boundary (why still NOT-YET, not overclaim): the measurement is the node’s own SHA-256 of the kernel+rootfs it launched, signed by the node’s CA key — there is no hardware root (no TPM/SEV-SNP/TDX quote, no UDS-in-ROM DICE identity), so the guarantee is conditional on trusting the node key; a compromised node can sign any measurement. Remaining for TESTED: (a) the verifier must run on a live request/admission path (peer mTLS gate / node admission, fail-closed), not only a CLI self-check — the tool-proxy sandbox_proof.rs verifier is still dead; (b) the served-attestation path is exercised on the Firecracker driver only (a local-driver pod has no VM image to measure) and the round-trip test drives the real cache→serve fast-path minus the UDS transport; (c) signed provenance binding the artifact digest to the theorem set (in-toto-style: subject = rootfs/kernel digest, predicate = ledger commit); (d) the hardware-root gap named above. The adjacent real thing remains admit_posture (self-measured rootfs digest, fail-closed, admit_posture_one_byte_of_drift_reds_the_gate) — same TCB boundary, now also exposed to an outside verifier. Note: OID PEN 57212 is an unregistered placeholder; register it before any external-interop claim. Sequence to PROVED: ADR 0016 (docs/adr/0016-verify-from-the-outside.md, 2026-10-08): S1 eval-cell admission verifies (node evidence Attested at create; the SVID chains and carries the node’s own measurement at boot), S2 one chain-checked public verifier (the CLI path today never checks who signed the leaf), S3 a per-launch TPM quote binding the SVID key and measurement, S4 the handshake verifier on every authority-granting mTLS path, S5 coverage stated, S6 the UDS round trip, S7 launch provenance, S8 a stranger verifies, S9 the extracted decision core proved. sandbox_proof.rs is not dead (the tool-proxy calls it at start-up); it is kept as a caller of the one verifier.

The cross-pod leg is the open one, and it is deliberately sequenced audit-first: a lookup keyed on something a guest can forge is a far likelier defect than a flaw in the label lattice, and a real finding there is worth more than a theorem. Per-caller identity at the node API is the enabling step — until the node can tell which pod is calling, no cross-pod property is even statable, because the system cannot assign a secret to a pod any more than the model can.

Theoretical Foundation

This claim rests on the capability safety theorem: in an object-capability (ocap) system, authority propagates only through explicit capability references. If the enforcement boundary is capability-safe, no code inside it can acquire authority it was not granted. This connects Nucleus to a 40-year lineage (E language, KeyKOS, seL4, Capsicum) and is the formal basis for “prove the boundary, not the model.”

Three Pillars

Pillar A — Math That Survives (Kernel Semantics)

The math core is small and sharp:

  1. Capability lattice (authority) — 12-dimensional product lattice with 3-level capability states (Never/LowRisk/Always). Compare, combine, restrict permissions algebraically.

  2. Exposure lattice (trust) — 3-bool semilattice tracking private_data, untrusted_content, and exfil_vector. When all three co-occur (uninhabitable state), the operation requires explicit approval. Exposure is monotone: it never decreases.

  3. Trace semantics (time) — ordered record of actions, authority, and exposure at each step. Free monoid with homomorphic exposure accumulation.

  4. Monotonicity (ratchet) — authority can only stay the same or tighten under the workload’s own action. Budget can only decrease. Exposure can only increase. The nucleus operator ν is idempotent and deflationary. The one widening is POST /v1/escalate, and it is not the workload’s to take: it requires a separate approver’s authority (mTLS identity + a valid trace chain), and the granted authority is intersected with the delegation ceiling (cert_bridge.rs, effective.leq(verified.effective)), so it can never exceed what was delegated. So the flagship’s “can only tighten” holds for the agent (the corollary “no talking your way into more permissions mid-run” is exact), and an approver-authorized widening stays bounded by the ceiling — it is a move within the lattice, not above it.

Key design choice: prove properties about the enforcement boundary, not about LLM behavior. The agent is a black box. The kernel is the TCB.

Current state: 113 Kani harnesses + ~277 Lean 4 theorems verify the security core in CI, covering lattice laws, uninhabitable state operator, Heyting algebra, modal operators (S4), exposure monoid, graded monad laws, Galois connections, fail-closed auth boundary, capability coverage theorem, budget monotonicity, and delegation ceiling theorem. (Verus was evaluated and removed; verification consolidated on Lean 4 + Kani — see the README verification table.) Phase 0-2 partially complete.

Pillar B — Formal Methods as a Product Feature

Proofs are first-class artifacts, not academic exercises:

  • Kani bounded model checking — 113 machine-checked harnesses over the Rust kernel’s decision logic; complete over the finite lattice state space. CI-gated via kani-nightly.yml.
  • Lean 4 model — ~277 kernel-checked theorems for the security core (capability Heyting algebra, IFC semilattice, taint monotonicity, exposure monoid, delegation); the Aeneas pipeline mechanically translates the core capability types from Rust to Lean so proofs run over generated code. CI-gated via portcullis-core-proven-lean.yml / aeneas-ifc-scoped.yml.
  • Differential testing (planned) — Cedar pattern: millions of random inputs compared between Rust engine and Lean model.
  • Public Verified Claims page — each claim maps to a proof artifact and code commit.
  • Continuous verification gates — CI fails if a change violates a proven invariant. No regression path.

Pillar C — Dead-Simple Developer Usability

A developer can get value in under 10 minutes. No lattice theory required.

  • Install with pip (Python SDK) or cargo (Rust SDK)
  • Run nucleus audit for immediate CI integration
  • Wrap a workflow in a “safe session” with 10 lines of code
  • Choose from built-in profiles, never think about lattices

Product Surface

One mental model across all entry points, with value at every tier:

Tier 0: nucleus audit

Fast value, no runtime required:

  • Scan repo settings, MCP configs, agent configurations
  • Emit PR comments / SARIF
  • Generate a minimal safe profile + allowlist snippet
  • PLG funnel entry: teams adopt this before committing to a runtime

Tier 0.5: nucleus observe

Bridge from “I don’t know what my agent does” to “here’s a tight profile”:

  • Run alongside an existing agent, record all tool calls and side effects
  • Suggest a minimal capability lattice policy based on observed behavior
  • Output is formal (a lattice policy), not statistical (a behavioral baseline)
  • Differentiator from ARMO: prescriptive output, not behavioral baseline

Tier 1: nucleus run --local

Immediate felt safety:

  • All side effects go through a local proxy
  • No direct agent access except via the mediated gateway
  • Approval prompts for risky actions (uninhabitable state triggers)
  • Same policy language as Tier 2

Tier 2: nucleus run --vm

Hard containment:

  • Firecracker microVM boundary (Firecracker-based isolation)
  • Default-deny egress, allowlisted DNS/hosts
  • gRPC tool proxy inside the VM, SPIFFE workload identity
  • Same policy language, same traces, same proofs
  • Target: <500ms cold start via pre-warmed VM pools

Dev usability does not wait for Tier 2. But Tier 2 is the “serious people” finish line.

MCP Mediation (cross-tier)

MCP is the de facto agent-tool protocol. Nucleus is an MCP-aware mediator:

  • Interposes on MCP tool calls, applies capability checks, records traces
  • nucleus run accepts MCP server configs and proxies them through the policy engine
  • Any MCP client gets enforcement for free — no SDK adoption required
  • Current state: nucleus-mcp crate provides Claude Code ↔ tool-proxy bridging. Extend to general MCP mediation.

The Python SDK

The “Hello World” experience should feel like requests + pathlib, not like configuring SELinux.

SDK Principles

  • A developer should never need to think about lattices
  • Unsafe actions are impossible to express without explicit approval steps
  • Audit traces are produced automatically
  • Intent-based API maps to built-in profiles

Example

from nucleus import Session, approve
from nucleus.tools import fs, net, git

with Session(profile="safe_pr_fixer") as s:
    readme = fs.read("README.md")           # ok
    fs.write("README.md", readme + "\n")    # ok (scoped)

    # risky: outbound fetch — explicit gate
    page = approve("fetch", net.fetch, "https://example.com")

    # forbidden: publish
    git.push("origin", "main")              # raises PolicyDenied

SDK Ships With

  • Profiles: safe_pr_fixer, doc_editor, test_runner, triage_bot, code_review, codegen, release, research_web, read_only, local_dev
  • Typed handles: FileHandle, NetResponse, CommandOutput that carry exposure metadata
  • Exceptions: PolicyDenied, ApprovalRequired, BudgetExceeded, StateBlocked
  • Trace export: session.trace.export_jsonl()

Current state (March 2026): Draft Python SDK at sdks/python/ with intent-first API, mTLS/SPIFFE auth, and tool wrappers for fs/git/net. Functional for direct tool-proxy connections.

The Kernel Boundary

The agent process must not have ambient authority.

No direct egress. No direct filesystem beyond what is mediated. No token leaks.

The kernel is the only place where:

  • Decisions are made (capability check)
  • Approvals are validated (uninhabitable state gate)
  • Traces are recorded (audit log)
  • Exposure is tracked (monotone accumulation)

This is what makes formal verification tractable: the TCB is small (~10-15K LOC of verified Rust), and every path through it either enforces the lattice or panics. No fail-open. No silent degradation.

┌─────────────────────────────────────────────────────┐
│  Verified Core (Lean 4 + Kani)      ~10-15K LOC     │
│  ├── portcullis lattice engine     113 Kani proofs  │
│  ├── exposure guard + uninhabitable state        proven monotone  │
│  ├── permission enforcement        fail-closed      │
│  └── sandbox boundary              proven panics    │
├─────────────────────────────────────────────────────┤
│  Formal Model (Lean 4, hand-written) partial         │
│  ├── CapabilityLevel HeytingAlgebra Lean 4 proofs   │
│  ├── Aeneas pipeline (core types)  in progress      │
│  └── graded monad laws             planned          │
├─────────────────────────────────────────────────────┤
│  Differential Testing              planned          │
│  ├── Rust engine vs Lean model     cargo fuzz       │
│  └── Lean/Kani proof ratchet       CI-gated         │
├─────────────────────────────────────────────────────┤
│  Runtime (standard Rust)           ~70K LOC         │
│  ├── gRPC, tokio, tonic            Kani checks      │
│  ├── Firecracker + SPIFFE          integration      │
│  └── Tool proxy, audit, MCP        proptest         │
└─────────────────────────────────────────────────────┘

Competitive Positioning

                    Formal Guarantees
                         ▲
                         │
                         │  ★ Nucleus (target)
                         │
    Papers ●             │
    (no product)         │
                         │
         AgentSpec ●     │
                         │
    ─────────────────────┼──────────────────► Dev Usability
                         │
              ARMO ●     │         E2B ●
                         │     Daytona ●
              CodeGate ● │  microsandbox ●
                         │

Why Not X?

AlternativeWhat it doesWhat it lacks
E2B / Daytona / microsandboxRun code in Firecracker/DockerNo policy, no capability model, no exposure, no proofs. Ambient authority inside the box.
AgentSpec (ICSE 2026)DSL for runtime rule enforcementAd-hoc rules, not lattice-based. No monotonicity guarantee. Rules are LLM-generated (95% precision — 5% are wrong).
ARMOeBPF observe → baseline → enforceBehavioral, not prescriptive. Must allow bad behavior before blocking it. No formal guarantees.
Google Agent Sandbox (GKE)Pre-warmed VM pools, fast launchInfrastructure-level only. No policy language, no exposure, no proofs.
CodeGateFirecracker + locked pip installsSingle-purpose (supply chain). No general policy engine.

Nucleus’s five differentiators:

  1. Capability lattice with monotonicity proof — authority is a mathematical ratchet, not a config file.
  2. Exposure tracking with uninhabitable state gate — information flow control that blocks exfiltration by construction.
  3. “Prove the boundary, not the model” — verify the enforcement kernel (tractable, seL4-style), not LLM behavior (impossible).
  4. Tiered value delivery — nucleus audit gives value before any runtime commitment. Audit-first PLG funnel.
  5. Vendor-agnostic by design — self-hosted runtime any orchestrator can target. No cloud lock-in.

What to Learn From the Field

  • E2B’s SDK ergonomics — pip install + 3 lines = sandbox. Match this simplicity.
  • ARMO’s progressive enforcement — the observe → baseline → enforce UX is excellent for teams that don’t know what policy to write. nucleus observe adopts this pattern but outputs formal policies, not behavioral baselines.
  • microsandbox’s MCP integration — MCP-native runtime is table-stakes. Nucleus must be an MCP-aware mediator.
  • AgentSpec’s DSL readability — trigger/predicate/action patterns are ergonomic. Policy authoring should be at least as readable.
  • Google’s pre-warmed pools — sub-second cold start is an infrastructure requirement for Tier 2.

Formal Methods Ladder

Each rung is shippable independently.

Rung 1 — Kani + Lean Proofs (in progress)

  • 113 Kani harnesses + ~277 Lean theorems verified in CI (minimum gate)
  • Covers: lattice laws, uninhabitable state operator, Heyting algebra, S4 modal operators, exposure monoid, graded monad laws, Galois connections, fail-closed auth, capability coverage, budget monotonicity, delegation ceiling
  • Key finding from proofs: nucleus operator ν is NOT monotone (proven counterexample — uninhabitable state fires for y but not x). This was discovered by the proofs, not by tests. The proofs are working.

Rung 2 — Lean 4 Model (partial)

  • Done: hand-written kernel-checked proof of CapabilityLevel as a HeytingAlgebra (Mathlib-linked, 27-case decide). Discriminant correspondence enforced by lean_tonat_matches_rust_discriminants CI test. Kani R1/R2/R3 harnesses bridge the Lean proofs to bounded model checking.
  • Planned: Aeneas/Charon pipeline translation (Rust MIR → LLBC → Lean) for the full portcullis crate; Mathlib links for broader algebraic structures; graded monad laws in Lean 4.

Rung 3 — Differential Testing (planned, Phase 3)

  • Cedar pattern: Rust engine vs Lean model on millions of random inputs
  • Catches: serialization boundaries, encoding issues, discrepancies between verified model and production code
  • CI-gated: every PR checked against the formal model

Rung 4 — Extended TCB Verification (planned, Phase 4)

  • Sandbox boundary, credential handling, tool proxy
  • Kani bounded model checking for arithmetic paths
  • Goal: full TCB machine-checked end to end

Rung 5 — TCB Minimization

The moonshot is not “prove all the code.” The moonshot is: make the proven kernel tiny enough that proving it is realistic. This is how seL4 thinking wins: reduce the surface you must trust.

Supply Chain Integrity (Exposure Tracking Use Case)

The exposure lattice has a concrete day-one demo: supply chain safety.

  • Package installs from untrusted registries carry untrusted_content exposure
  • Exposed dependencies cannot reach sinks (network, filesystem writes) without explicit approval
  • Combined with exfil_vector exposure on git push / network egress, the uninhabitable state gate blocks dependency-confusion attacks by construction
  • This is what CodeGate does with a bespoke tool. Nucleus does it as a natural consequence of the exposure lattice.

Success Criteria

Dev Adoption

  • A team gets value in < 10 minutes
  • pip install nucleus + nucleus audit produces:
    • a clear pass/fail in CI
    • a minimal safe profile suggestion
    • an MCP allowlist snippet
  • nucleus observe generates a first-pass policy from 30 minutes of agent observation

Security

  • “No direct agent calls except via proxy” is enforceable and demonstrable
  • Traces are replayable and tamper-evident enough for incident review
  • A red-team attempt produces a PolicyDenied or an approval request — not a leak

Formal Methods

  • Public “Verified Claims” matrix:
    • Claim → Proof artifact → Code hash
  • CI fails if a change violates the proven model
  • Proof count (Kani harnesses + Lean theorems) is monotonically non-decreasing (ratchet)

Performance

  • Tier 2 cold start: <500ms with pre-warmed pools
  • Policy evaluation overhead: <1ms per decision
  • Exposure tracking overhead: negligible (3-bool join)

Iteration Plan

PR-sized increments that ship value while converging on the moonshot:

PRScopeShips
PR0North Star + Verified Claims docThis document, claims table, threat model
PR1Python SDK skeletonSession, exceptions, trace export, local proxy wiring
PR2Policy schema + canonical profilesTiny stable policy surface, “break the uninhabitable state” defaults
PR3Minimal kernel decision engineComplete mediation for file/net/exec/publish, monotone session state
PR4Exposure plumbingExposure on handles, exposed-to-sink gating + approval
PR5Executable spec + model checkingLock semantics early, prevent drift
PR6Proofs of the core invariantsMonotonicity + source-sink safety
PR7nucleus observeProgressive discovery mode, formal policy output
PR8MCP mediation layerGeneral MCP interposition, not just Claude Code bridging
PR9VM mode hardeningShrink ambient authority further, pre-warmed pools, <500ms target
PR10Attenuation tokensDelegation that can only reduce power, “no escalation” cryptographically natural

The North Star Sentence

Nucleus is a runtime that makes it impossible for an agent to do something dangerous unless you explicitly gave it the power — and that boundary is small enough to prove.

Others sandbox the agent. Nucleus proves the sandbox holds.

Why Rust

Rust is the only language that satisfies all four requirements simultaneously:

  1. Near-C performance — zero-cost abstractions, no GC, deterministic latency inside Firecracker microVMs
  2. Modern type system — algebraic data types, pattern matching, traits, async/await, package ecosystem
  3. Formal verification — Verus (SMT-based, SOSP 2025 Best Paper), Aeneas (Rust → Lean 4), Kani (bounded model checking), hax (Rust → F*)
  4. Safety certification — Ferrocene qualified at ISO 26262 ASIL-D, IEC 61508 SIL 4, IEC 62304 Class C

Precedents

  • AWS Nitro Isolation Engine — formally verified Rust hypervisor (Verus + Isabelle/HOL). Deployed at AWS scale on Graviton5.
  • Atmosphere microkernel (SOSP 2025 Best Paper) — L4-class microkernel verified with Verus. 7.5:1 proof-to-code ratio.
  • AWS Cedar — formally verified authorization engine. Rust + Lean + differential testing. 1B auth/sec. Our architectural template.
  • libcrux — formally verified post-quantum crypto in Rust via hax → F*. Shipping in Firefox.
  • AutoVerus (OOPSLA 2025) — LLM agents auto-generate Verus proofs. 137/150 tasks proven, >90% automation rate.

References