Skip to content
Deployment Architecture

The Signed Capsule: A Design for Customer-Controlled Test Execution

A technical look at the signed-artifact design we are pursuing for customer-controlled test execution: signing, provenance, immutability, and chain of custody. Not generally available today.

Zof Reliability Team · Engineering & product

May 6, 2025 · 8 min read · Updated May 6, 2025

Share
01

Why ephemeral test execution fails audit

Start with the problem an SRE actually faces. Industry research suggests a large and growing share of code is now written with AI assistance, and that a meaningful fraction of AI coding tasks introduce a security flaw. The change rate is up and the per-change defect rate may be up at the same time. So you want more validation, more often, against more surface area.

The naive way to do that with agents is to let a model decide what to test at runtime and execute it on the spot. For an identity or security workload, that is exactly backwards. The system that decides what to run becomes an unbounded actor in your most sensitive network segment. There is no stable artifact to review before it acts, no signature to verify, and no way to prove afterward that the execution stayed inside its intended scope. When the audit comes, you have logs of effects but no attestable description of intent.

The capsule pattern inverts the order of operations. Work is assembled and reviewed *before* it can run, frozen, signed, and only then admitted for execution. Intent becomes an artifact. Execution becomes the controlled replay of an approved artifact, not an open-ended session.

02

Anatomy of a signed capsule

In the design we are pursuing, a capsule is an immutable, versioned package, not an ad hoc script. Concretely, it would carry:

  • A constrained manifest that declares exactly what may run: target endpoints, allowed actions, fixtures, environment scope, and resource limits. Nothing outside the manifest executes.
  • Content hashes over every included artifact, so the bytes that run are provably the bytes that were reviewed.
  • Approval records binding the capsule to the humans and policies that authorized it.
  • A version identity that places this capsule in a lineage you can walk.

Three properties matter, and they are worth separating because teams tend to collapse them.

Immutability means the capsule cannot change after it is sealed. The manifest plus the content hashes form a fixed object; mutate any byte and the hashes no longer match. There is no "quick edit before the run." If you need a different test, you produce a new, separately approved capsule. That constraint is the point: it removes the entire class of "the script drifted from what we reviewed" failures.

Provenance means the capsule knows where it came from. It records the planning inputs, the dependency context that scoped it, the policy version in force, and the approvers. In Zof, that dependency context is what the System Graph already maps today: services, dependencies, and the repos they live in. You can answer "why does this capsule test this path" without reconstructing it from memory.

Signature means the capsule is cryptographically attested. Before anything runs, the receiving side verifies the signature against keys you trust. A capsule that is unsigned, signed by an untrusted key, or altered after signing simply does not execute. The signature is the difference between "we think this is what we approved" and "we can prove it."

03

Splitting intelligence from execution

The capsule only makes sense alongside the deployment split it rides on. The pattern separates *thinking* from *doing* across planes with deliberately different trust requirements.

Planning, where the capable models live, happens on one side: dependency modeling, risk prioritization, and capsule assembly. That side never executes against your protected systems. Governance sits in between: human approval, role-based controls, signing, policy checks, capsule versioning and promotion. Execution happens on a customer-deployed runner on your own network that makes no outbound model calls at runtime. Of these pieces, Zof ships the dependency map and the release governance today, through the System Graph and Control, which decides releases against your policy. The customer-deployed runner is on our roadmap and not generally available.

The architectural payoff is specific. The plane that needs the most capable models would touch the least sensitive data. The plane that touches identity-adjacent systems would run no models and be driven only by signed, frozen capsules. You would get coordinated agent planning without putting inference on the critical path in your most sensitive segment.

04

Crossing the boundary without weakening it

A signed capsule still has to enter the boundary, and an SRE's reflex here is correct: any inbound path is attack surface. So the runner design we are pursuing requires none.

In that design, the runner pulls. There is no listening port for an external orchestrator to reach in, no inbound rule to justify to your network team. The runner reaches out, fetches an approved capsule, and verifies its signature locally before doing anything else. Verification is the gate. If the signature does not validate against your trusted keys, or the content hashes do not match the manifest, the capsule is rejected at the edge and never runs.

That sequence (pull, verify, then execute) is what would let a control plane deliver work into the boundary without any inbound connection. The boundary stays one-directional. A runner built this way fits your existing segmentation and zero-trust posture instead of asking you to carve an exception, and execution stays on the private network.

This is also where dependency context earns its keep. When validation is change-aware, capsules can be scoped to what a change can actually reach rather than the whole surface. Knowing what depends on what is the job the System Graph does today. Applied here, it means fewer, sharper capsules to approve and run, not a firehose of low-value executions waiting on human sign-off.

05

Chain of custody for evidence

Now the part auditors actually care about. A capsule executes and produces evidence: results, screenshots, logs, telemetry. The chain of custody is the unbroken link from *approved intent* to *recorded outcome*, and the capsule is what would make that link verifiable end to end.

Walk it backward from a finding:

  1. A result references the run that produced it.
  2. The run references the exact capsule version that executed, by hash.
  3. The capsule references its manifest, its approval records, and the policy version in force.
  4. The approval references the human and role that authorized it.

In this design every hop is attestable. No step rests on "trust the orchestrator." For an identity or security system, this answers the regulator's real question (what ran, who approved it, can you prove it did nothing else) with cryptographic links rather than narrative.

Evidence handling should be yours to govern. In the pattern we are pursuing, the runner produces a complete, redactable bundle locally, and how any of it leaves your network is a policy decision: local-only for the highest sensitivity, sanitized egress with field masking, or metadata-only correlation IDs for dashboards. The default is not "export everything." The default is "you decide what leaves," which keeps validation from creating a new data-residency problem on identity data. Today, Zof's Evidence records what was checked for each change in the hosted product; customer-held, local-only evidence is part of the on-premises work we scope with teams.

06

Governance is the engineering

The temptation with autonomy is to let the system close the loop on its own, including the fix. For identity and security infrastructure that is reckless, and the capsule model is what makes the disciplined alternative practical. Agents propose; humans authorize. Capsule promotion, and any automated change to production, should pass through human approval and role-based governance before it has impact, with separation of duties on production changes.

The capsule is what makes that governance enforceable rather than aspirational. Because the artifact is immutable and signed, "approved" means a specific set of bytes, not a vague intent that drifts between review and execution. Developers route around guardrails that slow them down; that is a well-documented pattern, not a moral failing. A signed-artifact pipeline is hard to route around precisely because the runner refuses anything that is not signed and in scope. That is the kind of autonomy a serious enterprise could defend, and it targets the expensive class of failure that comes from changes nobody could vouch for.

07

What to do Monday morning

  • Pick one privileged path (a token issuance or auth flow) and map its services and dependencies, so you know what a change to it can reach. The System Graph does this today for the repos it reads.
  • Write down what an approved test run must prove: its scope, its approver, the policy version in force, and the evidence it produced. That list is a capsule manifest in prose, and it is worth having before any tool enforces it.
  • Verify the verification. Whatever executes privileged tests today, confirm that an unapproved or altered script is actually refused. A guarantee is only real if the failure path works.
  • Wire approvals to existing change control rather than building a parallel process, and start with validation before granting any automated fixing.
08

The bottom line

Continue Reading

Deployment Architecture

Turn governed reliability runs into continuous SOC 2 and GDPR evidence. A compliance playbook for making audits a query, not a scramble.

Zof Reliability Team7 min read
Deployment Architecture

A staged adoption playbook for a risk-averse bank, from read-only reliability observation toward governed remediation, with exit criteria at every stage.

Zof Reliability Team7 min read
Deployment Architecture

When much of your codebase is AI-generated and your enclave can't reach cloud testing tools, validation has to run where the data lives. A POV for healthcare CTOs.

Zof Reliability Team7 min read