Skip to main content

Validation

Proof
A relationship is not validated until every layer of it is

“The connection failed” is not a finding. Which layer failed is. Link validation walks a declared edge from the rendered configuration all the way to the application answering with the credential it was actually given, and stops at the first layer that cannot be proven.

ONE DECLARED LINK · PROVEN LAYER BY LAYER · STOPS AT THE FIRST FAILUREyour appCONSUMERordersDATABASE1 · WIRING✓found by value2 · SECRET✓reached the app3 · NETWORK✗port unreachable4 · ACCESS–not reached5 · PROTOCOL–not reachedverdict: fail · failed layer: network
One declared link, proven layer by layer. Validation stops at the first layer that fails, so the verdict names it — here the credential arrived, but the port is unreachable.

The unit is the link, not the component. Every edge in the graph is taken in turn and proven layer by layer.

LayerWhat is provenHow
WiringThe link was rendered into the consumerThe target's host, credential and resource name are found by value in the consumer's runtime configuration — its workload environment, its referenced secrets and config
SecretThe credential reached the consumerThe referenced secrets exist and, where they come from a store, are synced. Everything downstream uses the credential found here, never the one written in the metadata
NetworkThe consumer can reach the targetA real connection to the resolved host and port
AccessThe source is permittedAn access review for the source's service account in the target's namespace: the verbs its level needs are allowed, and more than its level is denied
ProtocolThe target authenticates and answersThe target technology's own probe, run with the credential the consumer really uses

The verdict names the layer. A link that fails at secret is a different problem from one that fails at network, and both are different from one that connects and is rejected.

pass — every applicable layer provenpartial — proven as far as a probe existsfail — with the failed layer namedunknown — a layer could not be determinednot probeable — external or virtual targetnot deployed — no workload on the cluster yetdesign stage — declared as not live yet

Adding a technology never changes the agent​

Probe files ship with each technology and are collected into the agent at generation time. A target type without a probe gets a generic protocol check: any answer on the resolved port proves something is serving, a healthy answer on a common health path proves more. Types without a probe are counted as untested in the coverage number rather than silently passing.

Intent is declared, never guessed​

Two mechanisms keep validation honest about things that are supposed to be incomplete:

  • Design stage. Components you have declared but not yet brought up are listed as such, with a reason. Their links are accepted rather than failed, and do not count against the score. A reviewer can reject that acceptance, which turns it back into a gap of record.
  • Reviews on links. Any link row can carry a signed human position — confirmed gap, compensating control, not applicable, or accepted risk with an expiry date. A positioned link stops counting as a regression; a rejected pass becomes a finding.

Running it​

Link validation runs on demand, and once automatically after a new stack version — that is, when the metadata commit it measures against has changed. It can be scoped to one component, one namespace or one link type, runs in the background with live progress, can be stopped gracefully, and honours a time budget. Write probes are off unless you turn them on.

The metadata query API​

The same graph that generates the system can be queried — and every row of the result can carry a command.

This is what makes a test topology-aware instead of hard-coded. You do not write "check the three databases". You write "for every database sub-component of every PostgreSQL component, run this check", and the test stays correct when a fourth database is added.

Part of a queryWhat it does
SourceWhich components — by name, by type, by namespace, by group, or all of them
TargetWhat to iterate — the component, its sub-components, its inbound or outbound links, or its sub-component links
Select / whereChoose fields and filter, with exact, negated, contains, prefix, regex, exists, in-list and comparison operators
CommandA command run per result, with the row's own values substituted into it
On success / on failureA follow-up check, or a diagnostic collected automatically when something fails
Severity, description, timeoutHow the result is labelled and bounded
Dry runRender every command without executing any of them

A query returns a pass rate and a per-result breakdown with the steps that ran. Discovery endpoints list the components, types, namespaces and available fields, so the model can build a correct query without guessing field names.

Predefined tests​

Each technology ships its own health tests alongside its template, and they are collected into the agent automatically. Adding a component to your stack adds its tests. There is no central test suite to maintain and nothing to keep in sync.

There are also cross-cutting tests that only make sense at the system level: data flow across components, network reachability, secret propagation, cross-stack connectivity and Kubernetes-level compliance.

Your own tests in Python​

When a command is not enough, a test can be Python source attached to a cell of the diagram. The platform sends it to the stack agent, which runs it and returns the result through the same channel as the command tests.

PartWhat it is
What the code seescomponent (the first resolved component, as a flat view), components (all of them), config (the stack configuration), domain, and sh(cmd, timeout) to run a command
What runsEvery top-level function whose name starts with test_, called without arguments
What it returnsOne result or a list of them: a name, a severity, passed or failed, the steps with their output, and a recommendation. passed and output alone are accepted as a short form
BoundsA timeout for the whole run, 60 seconds unless the request sets one
def test_deployment_ready():
"""All replicas of the deployment are available."""
ns, name = component.get("namespace", "default"), component.get("name", "app")
r = sh(f"kubectl get deploy {name} -n {ns} -o jsonpath='{{.status.replicas}} {{.status.availableReplicas}}'")
wanted, available = (r["stdout"].split() + ["0", "0"])[:2]
ok = r["ok"] and wanted == available and wanted != "0"
return {"name": f"{name}_deployment_ready", "severity": "critical",
"status": "passed" if ok else "failed",
"steps": [{"name": "command", "status": "passed" if ok else "failed",
"output": f"replicas={wanted} available={available}"}],
"recommendation": f"kubectl get pods -n {ns}"}

The agent's GET /custom-tests/contract returns the input and output schemas and this example.