Troubleshooting¶
When a Pacto shows a status you did not expect, this page tells you why and
what to change. Start with the status the operator wrote on the Pacto object:
it holds the verdict, the stage that produced it and one finding per problem.
kubectl describe pacto <name>
kubectl get pacto <name> -o yaml # the whole object
kubectl get pacto <name> -o yaml | yq '.status' # only the status, if you have yq
Runtime observations lists every finding code referenced below.
Reading the conditions¶
status.contractStatus says what the verdict is. The conditions say which
stage produced it, which is usually what you need to fix. There are three, and
each one's reason is a fixed identifier you can match on:
| Condition | Status | Reason | What happened |
|---|---|---|---|
ContractValid |
True |
Parsed |
The contract loaded and passed validation. |
ContractValid |
True |
ReferenceOnly |
Same, and the contract declares no spec.target, so nothing further is observed. |
ContractValid |
False |
Invalid |
The contract loaded and is structurally wrong. status.validation names the errors. |
ContractValid |
False |
ContractUndeclared |
The contract does not declare its pactoVersion, service.name or service.version. A bundle in a registry or an inline contract must declare all three: pacto publish writes the version and refuses a contract without the other two. |
ContractValid |
Unknown |
Unavailable |
The contract could not be obtained -- registry unreachable, auth rejected, tag not found. Validity is undetermined, so status.validation is deliberately left empty. |
ContractValid |
Unknown |
PullSecretNotGranted |
The operator may not read the pull secret. The message names the grant to add: controller.secretGrants or, for a namespace-list install, the chart's watch Role and RoleBinding in that namespace (Upgrade). |
RuntimeObserved |
True |
Found |
Runtime evidence was collected. |
RuntimeObserved |
False |
ObservationFailed |
A cluster query errored. The message carries the API error. |
ReadinessSatisfied |
True |
Satisfied |
score >= minScore. |
ReadinessSatisfied |
False |
BelowMinScore |
The gate is not met. The message breaks the score down by claim status. |
ReadinessSatisfied |
False |
Expired |
The assessment is past its expires: date, which scores it 0. |
OwnerVerified |
True |
OwnerSignerAllowed |
A member of the current owner or a default approver signed the bundle that changes the owner. |
OwnerVerified |
False |
OwnerSignerNotPerson |
An agent, CI or workload identity signed the owner change. status.contract.owner is left out. |
OwnerVerified |
False |
OwnerSignerNotAllowed |
A person outside the owner's members and the default approvers (declare chart values) signed it. status.contract.owner is left out. |
OwnerVerified |
Unknown |
OwnerSignerUnverified |
No signature verified, or the owner policy, the Sigstore root or the previous revision could not be read. status.contract.owner is left out until it is judged again. |
Two absences are meaningful:
RuntimeObservedis missing entirely when the reconciliation stopped before observing: a reference-only contract, or one that failed atContractValid. No observation ran, so none failed.ReadinessSatisfiedis missing entirely when the contract declares noreadiness:block.OwnerVerifiedis missing entirely when the bundle keeps the owner of the revision it replaces, is unsigned and carries no declaration, was published by a CI identity the publisher rule accepts, or is inline.
Conditions are sticky: each keeps its lastTransitionTime while its status is
unchanged, and carries the observedGeneration it was set from. A condition
whose observedGeneration is behind metadata.generation was not re-evaluated
on the latest spec.
Reading the events¶
Conditions say what the state is; the Events: block that closes
kubectl describe pacto <name> says what changed, including things no field
records, such as a tag force-pushed underneath you or a readiness gate flipping.
kubectl describe pacto <name> # events are the last block
kubectl get events --field-selector involvedObject.name=<name> \
--sort-by=.lastTimestamp
The operator emits exactly eight, and no others:
| Reason | Type | Emitted when | What it tells you |
|---|---|---|---|
ContractInvalid |
Warning |
The contract was obtained and judged invalid | Carries the same message as the ContractValid / Invalid condition. Fix the contract. |
ContractUnavailable |
Warning |
The contract could not be obtained at all | Registry unreachable, auth rejected, tag missing. See Contract not resolving. |
ValidationFailed |
Warning |
A contract that did load ends the reconcile as anything but Compliant or Reference, and the status differs from the one the previous reconcile persisted |
Carries the counts -- ContractStatus: NonCompliant, 2 errors, 1 warnings. status.findings names each one. |
ContractRecovered |
Normal |
The contract status returned to Compliant or Reference from any other value |
The other half of the three warnings above. |
RevisionCreated |
Normal |
A PactoRevision was created for a newly resolved contract |
Created revision <name> for contract v<version>. Expected on the first resolve and on every version change; not a problem. |
TagOverwritten |
Warning |
A tag that already resolved now points at a different digest | Someone force-pushed the tag. See Choosing a reference form. |
ReadinessGateUnmet |
Warning |
The readiness gate went from met to unmet | The message breaks the score down by claim status. |
ReadinessRecovered |
Normal |
The readiness gate went from unmet to met | The other half of the pair above. |
Three things about them are easy to misread:
ValidationFailedoverstates theUnknowncase. In that case an assertion could not be evaluated, and the event's own counts say so:ContractStatus: Unknown, 0 errors, 0 warnings. Trust the counts over the reason.- Every event except
RevisionCreatedandTagOverwrittenis transition-gated. A contract that stays broken emits one event for the whole streak, so aCountabove 1 means the status flapped, or the same reason recurred after a recovery. Two exceptions still repeat without either:TagOverwritten(see Choosing a reference form) and a revision-mirror failure, which is recorded once per reconcile pass. - Events expire, after the API server's
--event-ttlof one hour by default. A missing event may have expired, so rely on conditions andstatusas the durable record.
Chasing the evidence behind a finding¶
Every finding carries evidenceRefs, and this is what they contain:
evidenceRefs:
- source: k8s
observedAt: "2026-08-22T21:31:04Z"
collector: k8s-observer
detectedAt: "2026-08-22T21:31:04Z"
That is the whole record: which collector saw it and when. collector is
k8s-observer for the Kubernetes API alone, k8s-observer+ebpf when node
agent evidence decided or qualified the result and
ebpf when only the kernel saw it. A finding with no matched observation, such
as EVIDENCE_MISSING, carries source and observedAt only. The operator's
observations are recomputed every reconcile and never stored, so the
reference dates the reading and has no body to fetch. The node
agent's raw socket view is the one exception you can read back, in the
NodeRuntimeObservation object named after the pod's node. What it
is good for is age: an observedAt that stopped advancing while
metadata.generation moved on is a leftover from a reconcile that no longer
runs.
To re-observe, nudge the Pacto's target Service. Any update to it enqueues a reconcile, and the annotation key is arbitrary. An annotation on the Pacto itself does not, because only a spec change reconciles a Pacto:
For observations that must outlive the reconcile that made them, such as an audit trail or a signed record, use the Evidence Server, which writes to your registry. Cluster status is a live reading.
Status is Unknown¶
A required assertion could not be evaluated. This is uncertainty, and the finding code says why:
EVIDENCE_MISSING: nothing was collected. The target may not exist yet, orspec.target.serviceNamedoes not match a real Service.OBSERVATION_UNSUPPORTED: the dimension cannot be observed here: anExternalNamedependency, or a metrics capability while metrics observation is off for the namespace (chart valuecontroller.metricsObservation, flag--enable-metrics-observation).COLLECTION_FAILED: the cluster query errored, or the node agent could not load its kernel program. Check theRuntimeObservedcondition and the operator logs.HEALTH_FAILING: the declared health endpoint answered with a 5xx (other than 501), or the readiness probe on the declared health path keeps every pod out of Ready. The service is failing its own health check; check the pod's events and logs. Compliance staysUnknownbecause a failing endpoint does not contradict the contract.EVIDENCE_STALE: the node agent on the pod's node stopped reporting. See Node agent evidence is missing.EVIDENCE_INSUFFICIENT: some evidence arrived but not enough to decide, for example the node agent saw only part of a pod.
A contract that could not be obtained transiently also reads Unknown rather
than Invalid.
Status is Invalid¶
Structural validation failed or the artifact could not be parsed (fail-closed).
status.validation carries the SCHEMA_VIOLATION or parse error; reproduce it
locally:
Status is NonCompliant¶
At least one confirmed violation. The two configuration codes do not arrive at
the same speed. A mismatch (CONFIGURATION_MISMATCH) is NonCompliant on
the first reconcile that observes it. An absence (CONFIGURATION_ABSENT)
reads Unknown until the negative streak spans the
stabilization window.
Status is Reference¶
The contract declares no spec.target: Pacto parses and validates it and observes nothing.
Add a spec.target to enable runtime observation.
Contract not resolving¶
- Confirm the OCI reference is reachable and, for private registries, that a pull
secret is set via
spec.contractRef.pullSecretRef. - For an unversioned reference the operator tracks the highest semver tag; a registry with no valid semver tags resolves nothing.
- Inspect the created
PactoRevisionresources:kubectl get pactorevisions.
Metrics or health always Unknown¶
The metrics dimension returns Unsupported unless metrics observation is on
for the namespace, and active health probing needs probing on. The chart sets
them through controller.metricsObservation and controller.probing, which
default to auto; see Opt-in features.
The RuntimeObserved condition message ends with where each setting came
from:
probing off (--enable-probing=auto, namespace has no pacto.trianalab.io/observe label)means label the namespace (kubectl label ns NAMESPACE pacto.trianalab.io/observe=probing) or setcontroller.probing=on. The operator does not watch namespaces: it reads the label at each Pacto's next check (spec.checkIntervalSeconds, default 5 minutes). To apply it now, annotate the target Service as in Evidence is not stored.namespace label unreadable: forbiddenornot foundmeans the operator may not read the namespace; check thenamespaces getgrant in RBAC. The condition staysTrue.namespace label unreadable: timeoutorunavailablewith the conditionFalseis a transient read failure; the next reconcile retries it.
With probing off, health falls back to the workload, which needs an httpGet
readiness probe on the container behind the health capability's port plus a
Ready endpoint for it. When the capability declares a path, the probe's path
must equal it. A liveness-only pod, an exec or tcpSocket probe or
no probe leaves nothing to read. Passive observation can confirm health but
never contradict it, so the answer here is Unknown. A readiness probe that
keeps every pod out of Ready reads HEALTH_FAILING, which is also Unknown.
A workload scaled to zero runs no pod, so nothing answers the probe and the
answer is EVIDENCE_INSUFFICIENT.
Operator RBAC errors¶
If the logs show forbidden errors reading Services, workloads or EndpointSlices,
confirm the operator's ClusterRole is installed. See RBAC. The chart
adds read access to ServiceMonitor and PodMonitor only when
controller.metricsObservation is on. If you set the controller flag by
hand instead, grant that access yourself, as
Opt-in features shows.
Node agent evidence is missing¶
The node agent is the optional DaemonSet (one pod per node) behind
runtime conformance. If findings never carry
collector: k8s-observer+ebpf, check these in order:
kubectl -n pacto-node-agent get daemonset pacto-node-agent
kubectl -n pacto-node-agent get noderuntimeobservations,leases
kubectl -n pacto-operator-system logs deploy/pacto-operator | grep node-agent
- No DaemonSet.
nodeAgent.enabledis off, or the agent runs in anothernodeAgent.namespace. - DaemonSet with no pods. Something rejects them in the agent namespace.
The operator sets its Pod Security labels to
privilegedat every sync; readkubectl -n pacto-node-agent describe daemonset pacto-node-agentfor the admission message, for example from a policy engine of your own. - Pods running, no
NodeRuntimeObservationor Lease for a node. That node's findings readEVIDENCE_STALE. Read the agent pod's log on that node. A write refused withmay only write the objects named after its nodeorcarries no node namecomes from the chart's admission policy: the agent's token does not name its node, which needs Kubernetes 1.30 or later. - A Lease older than its node's observation. The Lease is the heartbeat;
the operator reads whichever of its
renewTimeand the observation'slastPublishedis newer. - Collection
Failed. The kernel could not load the program, often because it lacks BTF (the kernel type information at/sys/kernel/btf/vmlinux). A kernel older than 5.11 can also fail to load it when the container runtime's RLIMIT_MEMLOCK is too low for its maps. Turn it on lists what each node needs.
A Stage's applier is not adopted¶
The Stage's status.applier says which manager the promoter found on its
workloads and why it disagrees with spec.applyRef:
ApplierConflict: another manager or another object owns a workload, such as a plain Helm release or an Argo CD Application of the same name in the Argo CD namespace. Pointspec.applyRefat the managerstatus.appliernames, or move the workloads to the Stage's applier.ApplierUnknown: Pacto could not tell. The workload carries no mark of the Stage's applier, carries marks of two managers, belongs to a manager Pacto does not support, or the promoter could not read it. Deliver it through Argo CD or Flux so it carries its labels, and checkcompleteness.ApplierNotChartRef: the HelmRelease takes its chart fromspec.chart. Pointspec.chartRefat anOCIRepository.ApplierUnreadableon a HelmRelease Stage: the chartOCIRepositoryis missing, outside the Stage's namespace or of another kind. The promoter writes nothing untilspec.chartRefnames anOCIRepositoryin the Stage's namespace.
See which manager applies a Stage.
Delivery records are not written¶
With the recorder on, every Stage carries a
RecordStoreReady condition. Read its reason:
kubectl get stages.delivery.pacto.trianalab.io -A \
-o custom-columns=NAME:.metadata.name,RECORDS:.status.conditions[?(@.type=="RecordStoreReady")].reason
RegistryUnavailable means the registry did not answer or the recorder could
not tell whether it serves the OCI Referrers API; the message quotes the
registry. When it reads the registry served the Referrers API for this stream
and no longer does, the Stage recorded native and the registry now answers
as one without the API. The recorder never moves such a Stage to
write-once tags on its own; check the
registry's configuration: status.stream.registryMode is native and may not
narrow, and the records admission policy refuses that change to everyone, the
recorder included. WriteOnceTags is healthy: the registry serves no
Referrers API, so records are written as tags.
Check it works lists the other reasons.
A Stage that follows a new upstream Stage reads no record was found for this
stream until the upstream Stage writes its first record, and offers no
candidate until then.
CI says a target snapshot is unverified or stale¶
pacto impact in CI prints one Targets: line per cluster snapshot it read.
Read what the line ends with:
| The line says | Why | Fix |
|---|---|---|
unverified |
The job has no delivery trust config | Set PACTO_DELIVERY_TRUST or pass --delivery-trust |
signed by <key> (not scoped to this cluster) |
The trust entry has no streams naming the cluster's UID, or is a bare PEM |
Add streams: ["<uid>/pacto-targets/snapshot"] to the cluster's installation entry |
stale |
The snapshot is older than 15 minutes | Check the operator logs for target snapshot not published: push credentials for <registry>/pacto-targets or a snapshot over 8 MiB |
unavailable, not used |
A pinned tag is missing, or the signature or cluster does not match | Check the operator runs in that cluster with registry set and that the trust entry holds the public.b64 of its installation key Secret |
A Registry: line that says no pacto-targets means no cluster published:
check that the chart's top-level registry value is set. See
Target snapshot.
An approval does not count¶
With the recorder on, an Approval counts only once its record is written,
and an Approval for a person's signed record only once that record
verifies. Read the Approval's status.record; when it is empty, the recorder
has not signed it. The recorder signs only Approvals made after it first saw
the approval admission policy, and it keeps that moment in memory, so an
Approval made before a recorder restart never gets a record: approve again.
Signed approvals has the rest.