Skip to content

Troubleshooting

A RemediationRequest that stops says why in its conditions. Find the reason, then the row below. Every reason in the executor and the policy code is listed, taken from the code on main.

For an overview first, run kubectl shadewright status (with -w it redraws every few seconds until Ctrl-C, to follow a request): per Incident its due reason, the outcome of the last analysis and its requests with phase, policy decision and pull request, then the day's analysis budget and the kill switch, read-only with your own permissions. For one request, kubectl shadewright explain <name> prints its condition timeline and the condition that stopped it, with a link to the section below that lists the reason. When nothing works yet, or after an upgrade, kubectl shadewright doctor checks the install itself: CRDs, settings, kill switch, Deployments, repositories and the Flux objects that deliver them, against the executor's own source rules, and, for the watched namespaces, which Flux objects deliver their workloads and whether the executor would accept each (delivery sources).

kubectl -n shadewright-system get remediationrequest <name> \
  -o jsonpath='{.status.phase}{"\n"}{range .status.conditions[*]}{.type}={.status} {.reason}: {.message}{"\n"}{end}'
kubectl -n shadewright-system logs deploy/shadewright-executor

How to read the result

Phase Meaning Retried?
Denied Policy or settings do not allow the plan No. Fix the cause and apply a request with a new name (the spec is immutable)
NeedsIntervention The executor cannot decide or continue safely; a person must look No, same as above. Automation for that request has stopped
Superseded The plan went stale before merge and its pull request was closed No. A new plan is a new request
Superseded with reason AnotherRequestMerged Another request of the same Incident, target and field (the same container, for a memory limit) was merged after this one was created (the message names it and its pull request). This one had not taken the target lock and opened no pull request No. The Incident has its fix in the merged request; nothing to do here
Superseded with reason AnotherRequestClosed This one waited behind the target lock of another request for the same target and field (of any Incident, recorded in status.queuedBehind), whose pull request was then closed without a merge, which ends that one NeedsIntervention with ChangeRequestClosed (ADR-0030 section 6; the message names it and its pull request). This one opened no pull request: a reviewer who closed the first proposal said no to that change No. An Incident that was analyzed is not analyzed again: unless a newer request names it, it moves to Escalated (Lifecycle RequestSuperseded) for a person, who applies a new request if the symptom continues and the change is still wanted. One not yet analyzed (still Open) gets its first analysis as usual
Superseded with reason AnotherRequestSucceeded With --verify-outcomes on, this one waited behind the target lock of another request (of another Incident, recorded in status.queuedBehind; a waiter of the holder's own Incident ends with AnotherRequestMerged instead) that changed the same field from the same previous value to another one, in the same direction as this one (both up or both down). That request kept the lock from its merge through WaitingForDelivery and Verifying, then ended Succeeded: its change took this one's previous value away and fixed the symptom (the message names it and its pull request). This one opened no pull request, and its Incident is Resolved with HolderSucceeded (Escalated only when status.queuedBehind also names a request that did not succeed) No. If the holder ends Failed or Inconclusive instead, this one is checked against the live value as any request is: after a delivered change its previous value is no longer live, so it ends Denied with PreviousValueMismatch, and unless a newer request names its Incident, the Incident moves to Escalated and is not analyzed again: a person applies a new request from the live value if the change is still wanted
Superseded with reason HandedOff (ADR-0028) A reviewer's hint produced a replacement request, which took over this request's pull request and branch; the pull request is not closed No. Follow the replacement request, which holds the pull request and the target lock
Superseded with reason MergedForReplacement (#786) A person merged this request's pull request with the commit of the replacement a reviewer's hint produced, before the replacement recorded its takeover (its handoff was aborted at a refused read, or it ended before it took over), or, while that replacement held the target lock, with another head than this request's own (a person's commits on top of the replacement's commit, or in its place; #870). The replacement records the merge, with its receipt, or without one when the Git host reports no merge commit ID, or, for another head, as MergedWithForeignChange (MergeContentUnreadable when what the merge brought could not be read); this request ends only once the replacement holds that record (its wait for the merge commit or a MergedWithForeignChange record count: whichever request reads a merge first records it, #880) (until then it writes nothing and keeps its lock, so a replacement deleted in between leaves the merge to this request, as MergedWithForeignChange), then releases the target lock and counts no failure for the circuit breaker No. Follow the replacement request, which records the merge
Superseded with reason MergedForPredecessor (#786, second round) This request had taken over the pull request of the request it replaces, and a person put that request's own commit back on the branch (a force push) and merged it. The request it replaces records the merge, with its receipt or without one; this request ends once it holds that record, its wait for the merge commit included (#880) (or, when that request is deleted first, records the merge itself as MergedWithForeignChange), releases the target lock and counts no failure for the circuit breaker. A request that is deleted after it recorded such a merge ends this request the same way first. A replacement that held the target lock before its takeover (watching after a refusal) ends this way too when the request it replaces records the merge of its own head, in the reconcile that stores that record (#870), so it never records that merge a second time No. Follow the request it replaces, which records the merge
Denied with reason ChainLinkInvalid (ADR-0028) A replacement request names a request it does not replace: another Incident or target, another chain, a request not waiting for approval, or a hint that is not pending No. Nothing was taken over and the old pull request is untouched; look at who created the request
Denied with reason InvalidRevert (ADR-0030 section 8) A request with spec.reverts is not the exact revert of a failed request: the named request is missing or has another UID, did not end Failed with Verified False, is a revert itself, names another Incident, target, action type or container, the previous and desired values are not swapped exactly, or the request's name is not the one derived from the failed UID. The message names the cause. It ended before any Git write and is not treated as a revert No. Look at who created the request; to undo the failed change, revert it in Git by hand
Denied or Cancelled with reason HintsTurnedOff (ADR-0028) A replacement request answers a reviewer hint, but the executor runs with reviewer hints off: it admits no replacement and ends one admitted before. The hint itself is Declined with the same reason No. The old pull request keeps its plan; if a handoff commit was pushed just before the switch, the old request is NeedsIntervention and the pull request is a person's (turn reviewer hints on)
NeedsIntervention with reason HintsTurnedOff (ADR-0028) A replacement had taken the pull request over for a reviewer hint, and the executor now runs with reviewer hints off: its head may carry a change a hint steered, and the check shadewright/review is no longer kept on it Yes. Close the pull request without merging (turn reviewer hints on)
Cancelled with reason HandoffRefused Another replacement reserved the same hint first, the hint or the old request changed before the handoff began, or the old request's plan is stale (its pull request gets nothing but its close, #199) No. The old pull request is untouched; post the hint again if it is still wanted
Cancelled with reason HandoffAborted The pull request was merged or closed, or someone pushed to the branch, while the handoff ran, or the new plan changes another file than the pull request does No. If it was merged, the request that owns the merged plan is Merged; if someone pushed, the old request is NeedsIntervention and the pull request is a person's
Cancelled with reason CancelRequested (#289) A person set spec.cancel before the merge. The executor closed the request's pull request, if one was open, and left the branch; the condition is PullRequestOpened before a pull request was recorded, Approved after. A cancel that cannot finish (the Git host refuses the close, the repository left the settings, the recorded pull request is not this request's, a read keeps failing, or a handoff is in flight) does not end the request: it keeps its phase with condition CancelPending and a Warning Event CancelPending, and is watched, so a merge still ends it Merged. Close the pull request by hand if it is open; the request then ends Cancelled. A closed pull request ends the request even when the failed check shadewright/review cannot be written: the condition's message then says so, with a Warning Event CancelCheckNotFailed. A stale plan whose repository is reached through a new installation of the GitHub App (#290) ends only once its target lock is settled; until then it keeps its phase, with TargetHeld naming another open pull request of the branch or PullRequestUnreadable naming a read that fails No. The request stays as the record; apply a new request for a new plan
Cancelled with reason IncidentFolded (#794) The request's Incident was folded into the Incident of its cause (ADR-0039) before its pull request opened. The executor reads the Incident from the API server as the last step before the open; it opened no pull request and left the branch with its commit. The target stays locked until the next read of the branch finds no open pull request that may deliver the change (as for Expired); a pull request opened by a person from the left branch keeps it locked (TargetHeld) and is never closed. A pull request with the request's marker that the read finds open (an earlier open whose answer was lost) is recorded, with the reason moved to Approved, and closed by the executor (PullRequestOpened reason PullRequestClosed); the lock goes after the close. While the close is refused or fails, condition PullRequestNotClosed says so and the lock stays; while writes are paused, WritesPaused says the read and the close wait. A person who closes the pull request meanwhile ends both: the next read finds it closed and releases the lock. One the read finds closed before it was recorded is recorded too, with the reason moved to Approved, and the lock goes. One found merged ends the request Inconclusive with StalePlanMerged, or NeedsIntervention with MergedWithForeignChange when another change was merged with it, never Cancelled; PlanFresh keeps IncidentFolded in both. The cause's Incident is analysed on its own No. Look at the cause's Incident (status.foldedInto names it). If PullRequestNotClosed is set, close the pull request it names by hand
Cancelled with reason IncidentGone (#794) The Incident the request names was deleted before its pull request opened, or was deleted and opened again under the same name (another UID). No pull request was opened; the branch is left, and the target is released once the next read of the branch finds no open pull request that may deliver the change. A pull request of its own found open then (an earlier open whose answer was lost) is closed first, and one found merged is followed, as for IncidentFolded. A read of the Incident that fails holds the request instead, until it answers or the request's deadline ends it Expired No. If PullRequestNotClosed is set, close the pull request it names by hand
Expired No pull request was opened within 30 minutes of the policy decision No
Pending, PolicyChecked, PRCreated, AwaitingApproval Working or waiting for a person Yes
Merged, WaitingForDelivery, Verifying Merged; the executor waits for the delivery, then checks the target (see After the merge). A request merged before receipts existed stays Merged Yes, until the end of the delivery window or the timeout
Failed after the merge Flux failed on the merge commit itself (DeliveryFailed), or the rollout was still stuck at the timeout (RolloutStuck) No
Inconclusive Merged, and neither success nor failure could be shown; Verified gives the reason (After the merge, Merge receipt) No

AutoMergeQueued exists in the API but nothing sets it yet (planned). Cancelled is set by spec.cancel (reason CancelRequested), by a replacement whose handoff did not happen (HandoffRefused, HandoffAborted, HintsTurnedOff), and by a request whose Incident was folded or is gone before its pull request (IncidentFolded, IncidentGone). Succeeded is set only with --verify-outcomes, together with Cleared and Verified True.

The reason is on one of these conditions:

  • PolicyAllowed: the policy check. False is Denied, Unknown is NeedsIntervention or a wait, True is allowed.
  • PullRequestOpened: a stop before a pull request is recorded, and the history of one that was closed.
  • Approved: a stop after a pull request is recorded; WaitingForReview while it waits, or ReviewCheckRefused or ReviewListTooLong while it waits on a check that does not pass on the current head, or ReviewCheckLiveReadFailed while the request cannot be read from the API server before a check write (ReviewListTooLong is final for that head; ReviewCheckRefused is asked again after a backoff and ends once the Git host shows what the reviews call for; a replacement after a handoff starts again at WaitingForReview).
  • PlanFresh: False when the plan went stale, another request of the same Incident was merged (AnotherRequestMerged), the request it waited behind had its pull request for the same field closed without a merge (AnotherRequestClosed), or that request's change of the same field succeeded (AnotherRequestSucceeded), all Superseded, Unknown while the Git host refuses a freshness check, or while Flux is still reconciling the Kustomization (KustomizationReconciling, at most 10 minutes, then the plan is stale).
  • Queued: True while a limit holds a request back before its policy check (see Limits).
  • IncidentStopped: True (IncidentCountUnchanged) while a request waits for review and its Incident's count has not changed for an hour; a signal only, the request keeps waiting (see Pull request step).
  • Delivered, Configured, RolledOut and Verified: after the merge (see After the merge).

Many reasons exist in more than one place with the same cause (the source mapping and the policy both check the repository); they are listed once.

No reason at all

A request stuck in Pending with no condition is being retried: the signer cannot be built (no workload identity), or Key Vault or GitHub returned an error that may pass. Source mapping opens the repository and its signer before the full policy decision (after the field checks, design 6.2), so the request stays Pending, not PolicyChecked, and nothing ends it (the 30 minute deadline starts only after an allowed decision). Read the executor log and fix what it names: the azure.workload.identity/client-id annotation, the federated credential, the sign grant on the key, the Key Vault keyID, or a GitHub outage. A host that asks for a delay (Retry-After) is waited for.

The CustomResourceDefinition is older than the executor

Event reason Cause Fix
CustomResourceDefinitionOutdated (Warning, on the request) A status write of the executor succeeded, but the object the API server returned lacks a field the executor sent: status.gitWaits, status.unfinishedRenders or status.pullRequest.incidentStopped (#866). The installed CustomResourceDefinition of RemediationRequest is older than the executor and does not list the field, so the API server pruned it. The reconcile fails with the error the API server did not store <field> of RemediationRequest <namespace>/<name>: the installed CustomResourceDefinition of RemediationRequest is older than the executor, which the executor log shows, and is retried with the error backoff. No further status write is made for that request in that reconcile, so no phase change and no decision that depends on the lost field; a Git write made earlier in the same reconcile has already happened. Since #895 the same Event marks a status write the API server refused with 422 Invalid because the installed CustomResourceDefinition does not list an enum value the executor sent: ExecutorRestarted in status.verification.lastReset.reason, which the CustomResourceDefinition of v0.5.2 lacks. The error then says the API server refused the status write, as it does not support status.verification.lastReset.reason (value ExecutorRestarted), nothing of that write is stored, and the request stays in Verifying, retried with the error backoff, until the CustomResourceDefinitions are applied; the executor never writes the window without the reset to get past the refusal. Any other 422 answer is not this case. Apply the CustomResourceDefinitions of the executor's release (upgrade, step 6), then wait for them to be Established. The next reconcile records the wait and goes on.

Limits

Set on Queued (True) when the policy allows a request but a limit holds it back; a refusal at the first check is never held, but a request already Queued is decided again only once the limits let it through, so a policy change that now refuses it waits for a free slot. The request keeps no phase or Pending and checks only the limits every 30 seconds (every 10 minutes, and at once when the holder changes, behind a lock held by a request that stopped), so it reads no Git meanwhile; once they let it through, the condition goes and the policy check runs again. Limits count the requests in the operator namespace.

Reason Cause Fix
TargetLocked Another request names the same target UID and holds the lock (status.holdsTarget): from its allowed decision until its pull request is known merged (a recorded merge frees the target in the write that records it; a merge with a foreign change, with content that could not be read or that could not be checked, MergedWithForeignChange, MergeContentUnreadable or MergeNotCheckable, frees it only when a look-up of its branch finds no other open pull request that may deliver its change, or when its repository is removed from settings that exist (a missing RemediationSettings object keeps it), and not during a pause; with --verify-outcomes on, a merge held for its verification frees it in the write that ends the verification, Succeeded, Failed or Inconclusive), or closed with no other pull request open on its branch that may deliver its change, also after it stopped (for example NeedsIntervention with HeadMoved, or Expired with PullRequestDeadlineCleanupRefused; an Expired or Superseded holder with no recorded pull request keeps it until its next look-up of the branch finds none open), and while it is deleted until its finalizer is gone. Behind a stopped holder the request checks every 10 minutes, and at once when the holder changes Wait for it to end. For a stopped holder, close or merge its pull request: its next look-up (every 10 minutes) frees the target. If the holder has condition TargetHeld, another pull request is open on its branch (the message names it) and may still deliver its change: close that one too. Or delete the holder: its finalizer closes the pull request and the lock goes with the finalizer. If the Git host refuses that close, the holder stays Terminating and keeps the lock: fix the permission, or close the pull request and remove the finalizer by hand (uninstall, step 3). A stopped holder whose look-up keeps failing (its repository left the settings, the RemediationSettings object is missing, the recorded pull request cannot be found) keeps the lock until you delete it or the settings exist again, after checking that its pull request is closed. A deletion whose pull request is really gone takes at least two minutes: the executor keeps the first look that finds it missing in memory, and only a second look two minutes later lets the finalizer go; after a restart of the executor the wait starts again. The deletion waits too while the Git host cannot confirm that the pull request is gone (a repository deleted or renamed but still in the settings, or a branch with more than 100 pull requests, which the listing refuses; such a branch also keeps a request with no recorded pull request from ending on its own at the deadline or after a stale plan): then remove the finalizer by hand (uninstall, step 3)
ConcurrencyLimitReached maxConcurrentRemediations requests are active Wait, review the open pull requests, or raise the limit in RemediationSettings
CircuitOpen Three requests that went through the policy check failed (Failed, NeedsIntervention) since the latest success (Merged or Succeeded, never a revert, and never a plan merged when it was stale, which counts as no outcome (StalePlanMerged); WaitingForDelivery and Verifying are neither a success nor a failure, and a probe in one of them stays the probe, CircuitHalfOpen), the latest less than 30 minutes ago, or the breaker's probe ended less than 30 minutes ago without a success (Expired, Cancelled, Superseded and Denied included). Outside a probe Expired does not count Find out why they failed. 30 minutes after the latest failure (or failed probe) the breaker is half-open and lets a request through as the probe; it closes on a success. Deleting the failed requests closes it at once. After an upgrade it starts closed: requests that ended before then are not counted
CircuitHalfOpen The breaker's cool-down is over and another request runs as its probe: a request let through while the breaker was tripped, marked with status.breakerProbe: true. It runs until it reaches a final phase or Merged, also while it is being deleted, so a probe that waits for a person's approval holds the others back until it merges, fails, or is closed or deleted (once its pull request is recorded it has no status.deadline, so it does not expire) Wait for the probe: its success (Merged or a later phase) closes the breaker and the waiting requests go through, anything else opens it again for 30 minutes. Find the probe with kubectl -n shadewright-system get rr -o jsonpath='{range .items[?(@.status.breakerProbe==true)]}{.metadata.name} {.status.phase}{"\n"}{end}' (earlier probes, which have ended, are listed too); deleting the running one lets the next request through as a new probe once its finalizer is gone, without the extra cool-down an ended probe would add. A request let through before this field existed is never taken as a probe

A request that stays in Pending with no condition while the executor logs a failed list of RemediationRequests is held back too: the limits cannot be read, so nothing goes through. A request that was already Queued keeps its earlier reason, if any, while the list is unreadable. The executor lists requests with field selectors on status.phase, status.holdsTarget and status.breakerCounts (#293, #390), so the list also fails when the RemediationRequest CRD does not have those selectable fields yet (an upgrade that has not applied the CRDs of the same release) or the API server is too old for CRD field selectors (Shadewright needs Kubernetes 1.32); apply the CRDs of the release or upgrade the cluster. An expired continue token between pages fails one check only; the next one reads again.

The breaker reads only the ended requests whose status.breakerCounts is not false (design 10.7): the latest request in Succeeded, every outcome after it, and requests not classified yet. A long row of failures and probes without a final success stays read, about 48 more requests a day while the breaker is tripped. Right after the upgrade that adds the field, the first checks still read the older successes and failures, as the release before did; after each decision up to 100 of those before the latest Succeeded are cleared, so the reads shrink over the following checks.

  • Log lines. Failed to mark the outcomes the circuit breaker no longer needs means a clearing read or write failed. Nothing is let through by it: those requests are read again at the next check. At error level, and counted in shadewright_circuit_breaker_clear_errors_total, it is a failure that does not go away by itself (Forbidden, Invalid): check the executor's role and that the CRDs match the release.
  • What the breaker reads: kubectl -n shadewright-system get rr --field-selector 'status.breakerCounts!=false'.
  • Editing by hand. Setting the field to false hides that outcome from the breaker, like editing phase.
  • Deleting a request in Succeeded. It waits for its finalizer to set status.breakerCounts back to true on the requests it cleared. If the finalizer keeps failing, the request stays Terminating and the executor logs the failed restore. When the API server refuses the restore for good (Forbidden or Invalid: the executor's role or the CRD does not match the release), the executor also logs an error, counts it in shadewright_circuit_breaker_clear_errors_total and tries again every 5 minutes; fix the role or the CRD and the next try lets the request go. To let it go on purpose instead, remove the finalizer (kubectl -n shadewright-system patch rr <name> --type=json -p '[{"op":"remove","path":"/metadata/finalizers/0"}]', after checking with get -o yaml that it is the only finalizer). That skips the restore and, for a request that ended NeedsIntervention or Expired, the close of its pull request, which you then close by hand. The cost: the outcomes it cleared stay hidden, so the breaker may stay closed after the failures that came before that success. Restore them yourself: list them with kubectl -n shadewright-system get rr --field-selector status.breakerClearedBy=<name> and set status.breakerCounts to true on each (kubectl patch rr <each> --subresource=status --type=merge -p '{"status":{"breakerCounts":true,"breakerClearedBy":null}}').

Request and target

Set by the policy check, on PolicyAllowed.

Reason Outcome Cause Fix
PolicyNotFound Denied spec.policyRef names no RemediationPolicy Create the policy or correct the name
SettingsNotFound Denied No RemediationSettings named default. A request past its decision is not denied: a stopped holder keeps its target lock and its waits for a read with condition PullRequestUnreadable (SettingsNotFound) until the settings exist again Create it
InvalidInput NeedsIntervention The action does not fit the target: not a namespaced object pinned by UID, or a kind the action may not change; or the action has no previous value Use the catalog: SetContainerMemoryLimit on an apps/v1 Deployment or StatefulSet, AdjustKedaMaxReplicas on a keda.sh/v1alpha1 ScaledObject, with uid set
TargetNotFound NeedsIntervention The target does not exist Check namespace and name; the request is final, so apply a new one
TargetMismatch Denied The live object has another UID than targetRef.uid Read the current UID and apply a new request. Also happens if the object was recreated
TargetChanged NeedsIntervention The UID changed while the source was mapped (see also the freshness table) Apply a new request
PreviousValueMismatch Denied previous (or previousValue) is not the live value, so the policy's percent limits would be measured from a wrong baseline Read the live value and apply a new request
FieldNotFound NeedsIntervention The field the action changes is not set on the live object, or in the file in Git The action changes an existing value. Set it in Git first
ValueMismatch NeedsIntervention The value in the file differs from the live one: someone or something changed the live object (a manual edit, an autoscaler) or Flux has not applied the file yet. Also when the memory value in the file is not a quantity Shadewright reads: at most 40 characters, a decimal number with an optional suffix (Ki to Ei, n to E) or an exponent of at most two digits (1e9, not 1e100; #593), in the file or on the live object. Some valid but unusual spellings are refused too, on purpose: 536870912e000 (a three-digit exponent) or a number with over 34 trailing zeros (longer than 40 characters); write 512Mi instead Make the live value and the file agree (let Flux apply, or revert the live change), then apply a new request with previous equal to that value
WithinApprovedBounds allowed Every check passed Nothing to do

Delivery from Flux

The executor maps the live object to its file through Flux labels, the Kustomization and its GitRepository (ADR-0012). All are NeedsIntervention unless marked, on PolicyAllowed.

Reason Cause Fix
HelmManaged A HelmRelease manages the object; Helm values are not supported Not fixable here. Change the chart values by hand
NoFluxLabels The object has no kustomize.toolkit.fluxcd.io labels (created by hand or by another tool) Let a Flux Kustomization apply it
InvalidFluxLabels The labels are not valid object names Remove the false labels and let Flux reapply
KustomizationNotFound The labelled Kustomization does not exist (or Flux CRDs are not installed) Restore it or reapply the object
KustomizationSuspended The Kustomization is suspended, so a merge would not be applied Resume it
KustomizationReconciling A wait, not a stop. The Kustomization is not Ready for its current generation but reports no failure: Flux is still reconciling it, for example applying a pull request just merged. The request keeps no phase, PolicyAllowed is Unknown with this reason, and it is checked again after 15 s to 2 min Nothing. After 10 minutes it ends NeedsIntervention with KustomizationNotReady
KustomizationNotReady The Kustomization is not Ready for its current generation and fails (Ready False with a reason other than HealthCheckCanceled, or Stalled), or it was still reconciling after a 10 minute wait (KustomizationReconciling) Fix the Kustomization (flux get kustomizations), wait until it is ready, then apply a new request
NotInInventory Denied. The Kustomization named by the labels does not list the object in status.inventory, so the labels cannot be trusted Check which Kustomization really applies it. A copied label does not grant anything
KustomizationTransforms The Kustomization sets one of patches, patchesStrategicMerge, patchesJson6902, images, components, namePrefix, nameSuffix, targetNamespace, postBuild, so Git is not what is applied Move the transforms into the manifests
RemoteCluster The Kustomization applies to another cluster (spec.kubeConfig) Not supported
Decryption The Kustomization decrypts SOPS files Not supported: editing would break the MAC
UnsupportedSource The source is not a GitRepository, or sourceRef is invalid Use a Git source
SourceNotFound The GitRepository does not exist Restore it
SourceNotBranch The GitRepository does not track only spec.ref.branch (no ref, or a tag, semver, name or commit is set) Track a branch
SourceIncludes The GitRepository has spec.include Remove the include
SourceOptions The GitRepository is suspended or sets ignore, recurseSubmodules or sparseCheckout, or a .sourceignore file is on the searched paths Remove the option or file
SourceNotReady The GitRepository is not Ready for its current generation Fix the source (URL, credentials) and wait
RevisionMismatch The Kustomization has not applied the revision its source last fetched, or that revision is not from the tracked branch Wait for Flux to catch up, then apply a new request

Repository, branch and path

On PolicyAllowed; repeated by the policy check on the resolved source.

Reason Outcome Cause Fix
RepositoryNotConfigured Denied The GitRepository URL equals no spec.repositories[].url in the settings, or more than one. The match is exact: case and a .git suffix count Make the settings URL equal the Flux URL
RepositoryNotInPolicy Denied The matching repository is not the policy's gitOps.repositoryRef (or that name is in no settings entry) Correct repositoryRef
RepositoryNotAllowed Denied The same check, made again by the policy on the resolved source As RepositoryNotInPolicy
RepositoryUnusable NeedsIntervention The settings entry cannot be used to open the repository (URL, client ID, installation ID, keyID or signer). Also the end of a waiting request whose settings became unusable, and the reason of condition CleanupFailing on a deleted request whose entry cannot be used, which keeps it Terminating for up to 24 hours (#786) Fix the settings, apply a new request
BranchMismatch Denied The branch Flux tracks is not the repository's targetBranch Align targetBranch with Flux (default is main)
BranchNotAllowed Denied The same check, made again by the policy As BranchMismatch
BranchNotFound NeedsIntervention The target branch does not exist in the repository Create it or correct the settings
PathNotAllowed Denied The file that declares the object matches none of the policy's allowedPaths (a path that contains .. matches none; a file with such a name found by source mapping is refused earlier, as InvalidPath) Widen allowedPaths deliberately, or the change is out of scope

A request deleted while its repository is missing from the settings (known limit, #877). The deletion does not wait for a repository the executor cannot reach, so the finalizer goes at once and the request's pull request stays open, with nothing holding its target. Putting the repository back does not bring the request back: no request watches that pull request, a merge of it is recorded by nobody, and another request may take the target meanwhile. Close the pull request by hand, or put the repository back in the settings before you delete the request.

Files in Git

All NeedsIntervention, on PolicyAllowed. The mapping reads plain kustomize manifests only.

Reason Cause Fix
InvalidPath spec.path, a path in a kustomization file, or a name listed in a path without a kustomization file, is not a plain relative path inside the repository (a hidden manifest such as .env.yaml, or a manifest in a hidden directory, in such a path counts; hidden files that are not manifests and names Flux leaves out of its artifact are skipped) Use a relative path; rename hidden manifests in a path Flux generates a kustomization for, or add a kustomization.yaml
NoKustomizationFile A directory that a kustomization file lists as a resource has no kustomization file (kustomize would fail too), or the Kustomization's spec.path is not a directory at the branch head. A path without a kustomization file is searched as Flux builds it (#122) Add a kustomization.yaml to the listed directory, or correct spec.path
UnsupportedKustomization A kustomization file uses more than plain resources: patches, generators, components, transformers, prefixes, a namespace or remote resources Flatten the layout
FileNotReadable A file the build needs is missing, over 1 MiB or not valid YAML, repeats a key in one mapping (#608), or uses YAML anchors, aliases, merge keys or text after --- on a separator line, a line break other than LF or CRLF, or a YAML directive (the message names the file and the line) Fix the file; see YAML the render check refuses
TooManyFiles The build is deeper than 8 kustomization directories (5 listed directories below a path without a kustomization file), lists more than 256 files, needs more than 512 reads and listings, or lists a directory of more than 1000 entries Simplify the layout
InputTooLarge The build reads more than 16 MiB in all, directory listings counted at 128 bytes per entry (exactly 16 MiB is accepted; a file past the budget is refused before it is downloaded, even when it is also over 1 MiB) or holds more than 4096 YAML documents (also one kustomization file, or one manifest document holding a List of more than 4096 objects), or a kustomization file or manifest document of more than 131,072 YAML nodes, counted from the bytes before anything parses it (text in scalars and comments counts too, #595), or one with a mapping of more than 256 keys (#608) Split the Kustomization or remove what it does not need
TooLarge The build is over the render check's input limits: more than 4 MiB or 4,096 YAML documents counted with repetition, 256 directory visits, 256 files, one file of more than 131,072 YAML nodes (#595) or with a mapping of more than 256 keys (#608), patches and transformers that can add more than 4 MiB to the render, or patches that can merge more than 4,096 keys or list items into one mapping or list of an object (#626). Checked once the mapping resolved, so no plan or approval is asked for a change that can never render See A build over the budget
DeclarationNotFound No document declares the object (for example a generator or patch produces it) Declare it in a plain manifest
AmbiguousDeclaration More than one document could declare it Keep exactly one

Policy decision

On PolicyAllowed; all Denied unless marked. These are the checks of the policy against the plan, in the order they run.

Reason Cause Fix
IncompleteInput NeedsIntervention. The request, policy, settings, source or target is missing Should not happen; report it with the executor log
PolicyMismatch The policy is not the one the request names Report it
RequestNamespaceNotAllowed The request's namespace is not in requestNamespaces Add the operator namespace to the policy
ModeNotSupported Mode is not GitOps Use GitOps
ActionUnknown The action type is not in the catalog Use a catalog action
InvalidParameters Parameters missing, from another action, outside the catalog's range, or desired equals previous (memory: whole bytes between 1Mi and 1Ti, written in the quantity form described under ValueMismatch; replicas: 1 to 1000) Correct the parameters
KindExcluded The target's kind is never remediated: Shadewright's own, admission, CRD, RBAC and Flux API groups; Secrets, ServiceAccounts, Namespaces, PersistentVolumes and Claims, NetworkPolicies By design. Change it by hand
KindNotAllowed The action cannot target that apiVersion and kind Use the kinds above
TargetNamespaceNotAllowed The target's namespace is not in targets.namespaces Add it, or the change is out of scope
TargetLabelsNotMatched The labels do not match the policy's objectSelector Label the object or adjust the selector
ActionNotAllowed The policy does not list the action Add it with bounds
PolicyInvalid The policy is unusable: a malformed selector, an action listed twice, or bounds missing or outside the schema Fix the policy
BelowMinimum desired is below min Choose a value in bounds
AboveMaximum desired is above max As above
IncreaseTooLarge The increase is more than maxIncreasePercent of previous Smaller step, or raise the limit deliberately. On a request the analyzer proposed, its context showed these bounds (design 3.3, #493): check the analyzer's Context sources line says policyBounds=true, and that it may get the policy (analyzer-policy-reader; an analyzer whose role leaves out a policy of --action-policies refuses to start, and a failed read at analysis time is logged as Failed to read RemediationPolicy)
DecreaseNotAllowed A decrease, and maxDecreasePercent is 0 or unset Decreases are refused by default. A revert of an increase, which the analyzer proposes after a failed verification, ends with this reason today, because no policy rule for reverts is decided. The policy check comes before any Git write, so a Denied revert has no pull request: read its plan (the action with previous and desired) in kubectl shadewright explain <revert> and revert the change in Git by hand. No second revert is proposed for the same failed request
DecreaseTooLarge The decrease is more than maxDecreasePercent Smaller step
ModuleNotEnabled The action belongs to an integration module (AdjustKedaMaxReplicas: keda) that spec.modules.integrations does not list Enable the module in the settings. Also a freshness reason
ScaledObjectNotReady NeedsIntervention. The ScaledObject is not ready (Ready not true, paused, on fallback, HPAActive false, being deleted, or malformed), so raising maxReplicaCount is not the fix. Also reached when KEDA did not report within 10 minutes Fix the autoscaler first
ScaledObjectReadinessUnknown Not final. PolicyAllowed is Unknown while KEDA has not yet reported the ScaledObject; checked again at 15 s to 2 minute intervals, up to 10 minutes Wait, and check KEDA runs

Pull request step

Stops before a pull request is recorded are on PullRequestOpened; after, on Approved. All end NeedsIntervention unless marked.

A merge or a close is seen late. The executor polls; it has no webhook. It looks at a waiting pull request every --pull-request-poll-interval (one minute by default, see the configuration reference), so the request should reach Merged within that interval plus one reconcile. Later than that: the executor may have restarted or changed leader (its first look at each request is a full recheck, a few seconds longer), writes may be paused (nothing is looked at until the pause ends; the first look after it records what happened meanwhile, ends what passed and settles the lock before anything else, and removes WritesPaused), or the GitHub App may be rate limited (a rate-limited look waits as long as GitHub asks, at most 5 min, and the executor log says so). Each waiting pull request costs about 150 GitHub REST calls an hour at the default, against about 100 with no looks between the full rechecks; a shorter interval costs more.

Reason Cause Fix
PlanIncomplete status.source has no buildPath, or the status has no planDigest, so the change cannot be rendered Apply a new request
PatchRefused The typed patcher refused the file on the branch or on the target branch. The message names a patch reason (see below) Fix the file, apply a new request
TargetFileDiverged The target file on the target branch is not the file the change was made from (another edit landed), before the commit or while the pull request waited. Merging would combine edits no render saw. Nothing is committed in the first case; a waiting pull request is closed in the second Apply a new request against the current file
BranchDiverged The Shadewright branch holds neither the previous nor the planned value, or holds more than Shadewright's one commit on top of the target branch (someone else pushed to it). Before the pull request is opened, the file on the branch must also be byte for byte the planned change. Nothing is committed on such a branch and no pull request is opened; one that is open (opened while someone pushed, or found before it was recorded, also when its file holds another value) is recorded and closed by its number; a close that fails for a reason worth a retry (a host failure, paused writes, the deadline) is retried; if the Git host refuses it for good, it stays recorded as open, the message says to close it by hand, and the target stays locked until it is closed. A waiting pull request is closed. When someone pushes to a recorded pull request and its new head holds more than the planned change, Shadewright posts one comment (marked, so a retry does not post it again) that hands it to a person and stops, leaving it open (the target stays locked until it is merged or closed). Since #542 only the marker as a whole line of a comment the App itself posted counts, the App's ID is read first (GET /app, one more Key Vault signature), and nothing is posted on a pull request with more than 1,000 comments, when that ID cannot be read, or after a post that failed (it is not repeated); the message then says commenting failed Review what was pushed to the branch, delete it if it is not needed, apply a new request
ForeignChangeRequest A pull request for the branch exists without this request's marker; it is not touched Close or rename it, apply a new request
HeadMoved The pull request's head is not the commit Shadewright made, but it still holds only the planned change (for example the same change committed again), or the pull request is closed Review the branch by hand. Automation stopped
ChangeRequestClosed The pull request was closed without a merge by a person (or a close whose status write was lost). It is never reopened Intended if you rejected it. Otherwise apply a new request
ChangeRequestConflict The Git host reported that the open pull request conflicts with the target branch (on GitHub, mergeable_state dirty) on two looks at least two minutes apart, on the same pull request head, and the plan is still fresh (a stale plan ends Superseded). A single conflicted answer only records status.pullRequest.conflictSeen and waits; a look without a conflict removes it. It is not a rejection. The pull request is left open, with no comment, and the target stays locked until it is merged or closed. A look at the pull request or a freshness check that fails decides nothing and is retried. The circuit breaker counts it like any NeedsIntervention Close the pull request: that releases the lock, and a new request can be made against the current target branch. The request itself is ended and stays NeedsIntervention whatever happens to the pull request. Resolving the conflict by hand is not a way back: the new head a person pushes does not get the check shadewright/review, so where a ruleset requires that check the pull request cannot merge, and a merge after resolving records no merge receipt and starts no verification
MergedWithForeignChange Shadewright's pull request failed a check (for example someone pushed to the branch while it was opened or while it waited), and a person merged it before Shadewright closed it or stopped. A merged head is judged against its own parent on the target branch, so a merge commit alone does not cause this. A merged pull request found by its marker after a lost write whose merge commit the Git host still did not report five minutes after the executor first saw it ends here too, since what the merge brought cannot be checked. So does a pull request a person moved to the target branch the settings name now and merged there (#771) when the merge brought that branch more than the planned change, compared as a whole with the branch's head before the merge for every merge method: a commit of the old branch the new one lacked (also one that changes the plan's own file and that a rebase merge replays), or another file. A merge whose shape does not show that head (more than four commits carried, a merge commit without Shadewright's head, a squash of a head of several commits, whose real parent is a commit the branch held before the merge and not a replay of the head's commits) ends here too. A replacement that held the target lock for a pull request it was to take over records a merge with another head than its commit here too (#870), and so does it for the head of the request it replaces once that request is gone or being deleted without a record of the merge; while that request is present it records its own head itself. Such a merge gets no merge receipt, no verification, no circuit breaker outcome and no revert proposal; the condition Approved names the branch and what was found. The message names the pull request; the pull request is recorded merged (PullRequestOpened reason ChangeRequestMerged). The target is freed when a look-up of the branch (every 10 minutes, on the recorded and the configured branch) finds no other open pull request that may still deliver the change; condition TargetHeld names one it finds. Under a pause the look-up waits for the lift. With the repository gone from the settings no look-up can start, and the target is freed Review what the merged change holds and revert what was not planned
MergeContentUnreadable A merge of the request's pull request that a person moved to the target branch the settings name now (#771), or that was merged with another head than the request's own while it was a replacement holding the target lock (#870), whose merge could not be read for five minutes from the first continuously failing read (its entry of kind MergeContent in status.gitWaits, which records its end and the pull request, base branch and merge commit it reads, and is removed after a successful content read; the end reads nothing from the Git host, comes while other reads fail, and records the pull request the entry names when a lost status write left none), so it is not known whether it brought the planned change alone. A Git host outage longer than these five minutes therefore ends the request here for good, even if the merge brought the planned change alone. It never ends without a read: once the five minutes have passed, the next reconcile that is not paused reads once more, and only evidence about that read ends the request here: the read failed (a rate limit counts), it could not start (the repository is gone from the settings or its entry cannot be used, also when a cancel or the cleanup of a stale plan is what finds it gone), or it answered without settling the merge; the message says which (for the replacement of #870, a read that answered and found nothing that matched the pull request number of its claim says so, answers about that pull request that still disagree say that, and a merged pull request with another number is never recorded for the claim). A merge commit reported goes on as after any read. For the replacement of #870, a merge the Git host reports without a full merge commit ID waits in the same entry (operation check that the Git host reports the merge commit) for the ID before the read, so five minutes without an ID end it here too. A reconcile that met a pause, or that finds no RemediationSettings object, keeps the wait and tries again within the poll interval; answers about the pull request that disagree keep it only before its end, and past it end it, with a message that says so. Nothing ends during a pause, nor while the executor is down. Nothing is claimed about the content. As for MergedWithForeignChange: no merge receipt, no verification, no circuit breaker outcome and no revert proposal, and the target is freed when a look-up of the branch finds no other open pull request that may deliver the change (not during a pause), or with the repository gone from the settings. A later read does not record the merge. The message names the branch the merge went into as the entry recorded it Find why the Git host reads failed (log), then review what the merge brought on that branch
MergeNotCheckable A merge of the request's own pull request was found (moved to the target branch the settings name now and merged there, or found by its marker after a lost write), but the target file it is compared against (what the branch held before the merge, or the parent of the head) is one the typed patcher refuses: it does not parse, or the object is not in it. The message names the patch reason. Nothing is claimed about the content: it is not shown foreign, and not shown to be the planned change alone. As for MergedWithForeignChange: no merge receipt, no verification, no circuit breaker outcome and no revert proposal, and the target stays locked until a look-up of the branch finds no other open pull request that may deliver the change (TargetHeld names one), or its repository is removed from settings that exist Review what the merge brought and the target file on that branch; close any other open pull request TargetHeld names
ChangeRequestGone The recorded pull request cannot be found by its number and the listing of every pull request of the request's branch does not show the number either, on two looks of the same executor process at least two minutes apart (the first is kept in its memory and waits; a restart starts the wait again), or the pull request with that number is not from the request's branch. The message names which. Not retried. Since #688 a 404 that the listing does not confirm, and an answer of the Git host about another pull request, are failed reads that are retried and never end the request. With reviewer hints on, the stop fails the check run shadewright/review on the recorded head (#925), so no other pull request from the request's branch merges that commit on an earlier check; not when the repository is reached through a new installation of the App (#290). A failed write shows as ReviewCheckNotFailed Check the repository
ChangeRequestOnOtherBase The recorded pull request is open on another base branch than the target branch, where a person moved it (#892), or, with none recorded (the status write after the open was lost), the pull request step found one with the request's marker open there and recorded it instead of opening a second one. The message names it and its base, when the name is a valid target branch name. Automation stopped and Shadewright writes nothing more to it but a failed review check shadewright/review on its head (with reviewer hints on, #925), so it cannot merge on an earlier check; the target stays locked while it is open there (TargetHeld). Also the reason of a stale plan's cleanup or a render refusal that found it there and closed nothing. The same reason, with a message that says "merged into", means the pull request (recorded, or found by its marker after a lost status write) was merged into that other base, not the target branch, also for a cancelled request: its change did not reach the target branch, nothing is recorded as merged, and the lock is released. A replacement whose handoff was aborted at a refusal and that watches the pull request it was to take over ends this way too, at once, when that pull request is merged into another base: the message names it ("which this request was to take over"), its handoff is Aborted and its lock released Open: close or merge it there; moved back to the target branch it keeps the lock there, which the lock's look then watches, and its review check stays failed; delete the request to have Shadewright close it. Merged there: decide whether the change should reach the target branch, and if so let a new request propose it
ChangeRequestMerged Phase Merged. The pull request was merged; status.mergeReceipt records the merge in the same status write (see merge receipt) Nothing yet: the executor waits in WaitingForDelivery and checks in Verifying (see after the merge); with --verify-outcomes on, Succeeded, Failed or Inconclusive follow
PullRequestDeadline Phase Expired: no pull request within 30 minutes of the decision. The end reads nothing from the Git host and comes also while Git reads fail; a pause holds it, and a deadline that passed during the pause ends at the first reconcile after it. The cleanup is the next step: the look-up of the branch finds a pull request Shadewright opened while the write that would record it was lost, closes it, or records its merge (Merged, as the request's own merge, also when a read of what it brought failed first; while the check of the plan at the merge does not answer the request stays Expired with the pull request recorded). A close that fails for a reason worth a retry sets condition CleanupFailing, says so in the message, and is tried again every 10 minutes for 24 hours (then one more close, and PullRequestDeadlineCleanupFailed when it fails; the 24 hours are read from recorded state before any read, so reads that fail by then do not hold it back, and a pause holds the one more close until it is lifted). While the look-up fails the request keeps the lock, condition PullRequestUnreadable says why, and it looks again every 10 minutes; it frees the target once none is open. If the repository of the plan can no longer be reached through the settings, the request keeps the lock on its target until the repository can be reached again and a look-up finds none of its pull requests open, or until it is deleted, and condition PullRequestUnreadable (reason RepositoryUnavailable) says so Find why Git calls failed (log), apply a new request
PullRequestDeadlineCleanupRefused Phase Expired: no pull request within 30 minutes of the decision, and the cleanup after it could not close one Shadewright may have opened on the branch: the Git host refused the close, or the repository of the plan now targets another branch or cannot be used (the message says which). A refused read of the branch is not this: it is retried (PullRequestDeadline). The request keeps the lock on its target until a look-up (every 10 minutes) finds no pull request open on the branch that may deliver its change, its own or one a person opened without the marker Fix the permission the reason names, or close the pull request on the branch shadewright/<request UID> by hand; the next look-up then frees the target
PullRequestDeadlineCleanupFailed Phase Expired: no pull request within 30 minutes of the decision, and closing the pull request Shadewright opened on the branch (its record was lost) kept failing for a reason worth a retry (a 5xx, a rate limit, a conflict) for 24 hours after the first failure, on the executor's clock, and one more close tried after them failed too (the close, or the read of the branch it starts with; it is not tried during a pause, so the cleanup does not end during one); condition CleanupFailing said so meanwhile. The request keeps the lock on its target until a look-up (every 10 minutes) finds no pull request open on the branch that may deliver its change Find why the close fails (executor log), then close the pull request on the branch shadewright/<request UID> by hand; the next look-up then frees the target
TargetBranchChanged The repository entry of the plan now names another target branch, and the pull request is not merged. A pull request merged with the head Shadewright pushed is recorded Merged with its receipt instead, read on the recorded branch, and ends Inconclusive with StalePlanMerged (#754). So is one a person moved to the target branch the settings name now and merged there, with the recorded number, the head Shadewright pushed and the request's marker; its receipt names that branch (#771). A merge into any other branch still ends here. While those reads fail the request keeps its phase, reads again and condition PullRequestUnreadable (reason TargetBranchChanged) says so. A stop with this reason on condition Approved (from a step, such as the recovery of a handoff) is the same stop. The request keeps the target lock while its pull request is open on either branch, and the look every 10 minutes reads it on both: a merge that counts, even days later, moves the request from NeedsIntervention to Merged with its receipt and then to Inconclusive with StalePlanMerged (or to MergedWithForeignChange when the merge brought more than the plan, MergeContentUnreadable when what it brought could not be read); a close without a merge releases the lock and the request stays as it is (decided 2026-11-16). A pull request opened while the status write that would record it was lost is found by the request's marker, recorded, and its merge recorded the same way before the lock goes; merged into the recorded branch, its head must be the planned change alone, or the request ends MergedWithForeignChange. A pull request missing on both branches releases the lock only once the recorded branch confirms it missing a second time, at least two minutes later (#827) Restore the setting or apply a new request. Moving the pull request to the new branch and merging it there is recorded, but only a merge that brings that branch the planned change alone counts
RepositoryUnavailable The repository of the plan is no longer in the settings (no entry with its URL; a new installationID for the same URL is not this, see PullRequestNotClosed) Restore it. Any pull request is not closed
GitForbidden The Git host refused the App: a permission it lacks, an installation, or a ruleset. Not retried. A replacement whose read of its handoff is refused does not stop: its handoff is aborted and it watches the pull request for 24 hours with the lock, then ends RecoveryWaitExpired Compare with the five permissions of ADR-0006 and the rulesets; apply a new request. While a pull request waits it is PlanFresh Unknown and Shadewright writes nothing but keeps watching, and clears it when the host answers again. On PlanFresh of a NeedsIntervention request (a stale plan's cleanup with no pull request recorded, #808) the target stays locked while a pull request of the request may be open: every 10 minutes the executor reads the branch through the installation the cleanup used and tries the close again, so a fixed permission, a close or a merge by a person releases it; close the pull request by hand to release it at once. On ReviewCheckNotFailed (a stopped request's failed review check, #925) each look of the stopped request tries the write again; give the App back checks: write or relax the rule, and do not merge on an earlier check meanwhile
GitRejected The Git host refused the request as invalid and Git state does not explain it. Not retried. A refused read of a replacement's handoff aborts the handoff and starts the 24 hour watch, as GitForbidden Read the executor log, fix, apply a new request. On PlanFresh of a NeedsIntervention stale plan with no pull request recorded, and on ReviewCheckNotFailed, as GitForbidden above (#808, #925)
GitNotFound Only as a reason of PullRequestNotClosed or PullRequestUnreadable on a stale plan whose repository the settings reach through a new installation of the GitHub App (#797): the Git host answered 404 through that installation, for example to an installationID with a typing mistake or an installation not granted the repository. Retried. Also a reason of PullRequestNotClosed on a request cancelled because of its Incident whose close of its own pull request got a 404 (#794), and of ReviewCheckNotFailed when the write of a stopped request's failed review check got one (#925) Check the installationID in the settings and the repositories of the installation
GitUnauthorized Only as a reason of ReviewCheckNotFailed (#925): the Git host rejected the GitHub App's credentials (401) when the failed review check of a stopped request was written, because the App's private key is wrong, was replaced without the cluster's copy, or the App was deleted. Each look tries again and fails the same way until that is fixed. It can also be an installation token the Git host revoked before it expired (#954): that clears when the executor replaces the token, within about an hour Fix the App or its key: the private key the executor mounts must be a current key of the App the settings name. Do not merge the pull request on an earlier check meanwhile
GitFailed Only as a reason of PullRequestNotClosed or PullRequestUnreadable on a stale plan whose repository the settings reach through a new installation of the GitHub App (#797): a step through that installation failed without a refusal or a 404 (a server error, a timeout, a rate limit, a token that could not be minted, an answer that settles nothing). A failed read of the Kubernetes API in that cleanup is not one: it is retried with no condition (#812). Retried with the error backoff or the delay the host asked for. Also a reason of PullRequestNotClosed on a request cancelled because of its Incident whose close of its own pull request failed that way (#794), and of ReviewCheckNotFailed when the Git host failed the write of a stopped request's failed review check without a refusal, a 401 or a 404 (#925; a refusal shows GitForbidden or GitRejected, a 401 GitUnauthorized, a 404 GitNotFound) Check the executor log and the Git host's status
PullRequestOpened Progress, not a failure: the pull request is open on Shadewright's commit. Becomes the closed form below None
WaitingForReview Approved is False: the pull request waits for a person. With approval not required it still waits, because auto-merge is not built Review and merge it
MergeRecordPending Approved is False (#786, fourth round): the pull request of a handoff was merged with the commit of the other request (the replacement's, or, after a takeover, the request replaced's head that a person put back), or with another head while the replacement held the target lock before its takeover (#870), and the message names that request, which records the merge. This request waits for that record and writes nothing to the merged pull request (no check run, no reply, no close), also when the status write that shows the wait fails, which is retried, or a later look fails before it reads the pull request again (#879). It waits only while the other request exists, is not being deleted and holds the target lock or its handoff intent; once it records the merge, with or without a receipt (MergedWithForeignChange counts as that record, #880), this request ends Superseded (MergedForReplacement or MergedForPredecessor). While the other request only waits for the merge commit or the merged content (a MergeCheck or MergeContent entry of status.gitWaits that names the pull request), that is a claim, not the record: this request keeps waiting. Once the other request released its lock without a record or claim, or is deleted or gone, this request records the merge as MergedWithForeignChange. If the repository leaves the settings during the wait, the request keeps the lock and shows PullRequestUnreadable with reason RepositoryUnavailable until the repository is back, when the next look settles it (decision of 2026-11-19). Known limit (#904): if the other request is a stopped holder whose repository never comes back to the settings, both keep the target until a person deletes one of them Nothing, while the other request works. If the other request is stuck (read its conditions), fix what it names, or delete it: this request then records the merge
IncidentCountUnchanged Condition IncidentStopped is True, with at most one Normal Event IncidentStopped when it is set (none when the answer to the status write was lost): the request waits for review, and the Incident's status.count, read by the executor at its full rechecks, has not changed for at least an hour (#715). The symptom may have stopped by itself. Not a stop: the phase stays AwaitingApproval, the pull request stays open and nothing is closed. status.pullRequest.incidentStopped holds the count read. A later read of another count, a gone Incident and one made again under the same name remove the condition. A failed read of the Incident and paused writes change nothing; an Incident whose newest occurrence is a lasting symptom state (such as KEDA's ReplicaCeiling) is never marked, because its count does not move while the state lasts. After a restart of the executor the hour starts again. The count shows only what the analyzer recorded: a stopped or lagging analyzer looks quiet too (ADR-0030) Check that the analyzer runs and records occurrences before you close a pull request on this signal. Then decide whether the fix is still wanted: merge it (a fault that needs load to show may come back), or close the pull request
ReviewCheckRefused Approved is False, with a Warning Event of the same reason per refusal: with reviewer hints on, the Git host refused for good to write the check run shadewright/review on the pull request's head as the reviews call for (ADR-0028 section 5), and the message says what the host shows there. When it shows success without an approval the merge gate counts, the required check no longer guards the merge. Not an end: the request keeps waiting, recorded Refused, and the executor asks again after a backoff from the recorded refusal (one minute, doubling, at most one hour) Give the App checks: write (ADR-0006) and check the rulesets; the next ask after the backoff, or a look that finds host and reviews in agreement, sets Approved back to WaitingForReview. Do not merge on a success the message calls unsupported
ReviewListTooLong Approved is False, with a Warning Event of the same reason: with reviewer hints on, the pull request has more reviews than the merge gate reads (4 looks of the reviews list), so the gate failed the check run shadewright/review on that head (completed, failure, recorded Failed) and does not read the reviews again there. Not an end: the request keeps waiting A person reviews the pull request and decides the merge; a repository admin merges past the required check, or a new head starts the check again and sets Approved back to WaitingForReview
ReviewCheckLiveReadFailed Approved is False: with reviewer hints on, the request could not be read from the API server right before the merge gate would write the check run shadewright/review (#925), so the check was not written. Without that read the only check written is the downgrade of a pass: pending or failed goes on the head when its last check is a success, so a pass whose approval is gone never stays for this reason; over a failed or pending check, or a head with none, nothing is written. Not an end: set once, not at each look, and the look keeps its pace; only a look that writes the check or finds the Git host already showing what the reviews want sets Approved back to WaitingForReview, not one that returns early (comments not read to the end, a refusal's backoff). ReviewCheckStuck follows after ten such looks Check the API server and the executor's access to it (the executor log says Could not update the review check of RemediationRequest); the next look whose read works writes the check
ReviewCheckStuck A Warning Event only, recorded once: with reviewer hints on, ten looks in a row could not bring the check run shadewright/review on the head in line with the reviews (a read of the reviews or of the check run, a write to the Git host or the status write kept failing; on GitHub this includes a head with more than 300 check runs shadewright/review of the App, which the read does not go past and which is reported by this Event only). The check keeps what the host shows, which may be a pass whose approval is gone. Counted in the executor's memory, so a restart may record it once more Read the executor log (Could not update the review check of RemediationRequest) for the error; check the Git host's availability and the App's checks permission
ReviewCommentsUnread A Warning Event only, recorded once per head: with reviewer hints on, looks while the merge gate was due did not read the comments of the pull request to the end or could not store what they judged. The Event fires after 10 looks that showed this with no look in between that read the comments to the end; looks that could not tell (a failed read, a paused look, a look that returned early for another reason) neither count nor reset. The gate runs only after a look that did, so the check run shadewright/review keeps what the host shows, which may be a pass whose approval is gone. Counted in the executor's memory, so a restart may record it once more Read the executor log (Could not handle the reviewer hints of RemediationRequest) for the error; check the Git host's availability and the App's read permissions. A look that is only behind, with no failed read or write, logs nothing: it read part of the comments and stopped, because there were more than one look reads (150 on GitHub) or more new authors than it asks about per look (10). Then compare status.commentCursor of the request between two looks: when it moves, later looks work through the backlog; when it does not, the comments of one author or one page keep the look from going on. Do not merge on a success until the gate runs again
ReviewCheckConflict A Warning Event only, recorded once per head: with reviewer hints on, the Git host answered the write of the check run shadewright/review with a conflict while each look saw the pull request open. The Event fires after 10 looks that got the conflict with no check run write in between that went through; looks that could not tell (a failed read, a paused look, a look that returned early for another reason) neither count nor reset. A conflict is read as a pull request closed or merged meanwhile and records nothing, so the check keeps what the host shows, which may be a pass whose approval is gone. Counted in the executor's memory, so a restart may record it once more Look at the pull request and its checks on the Git host; check the rulesets and the App's checks permission. Do not merge on a success the reviews no longer support
PullRequestRewriteRefused PullRequestOpened stays True with this reason, with a Warning Event of the same reason: a replacement took the pull request over, but the Git host refused for good to rewrite its title and body (a permission or rule, GitForbidden, or text it refuses as invalid, GitRejected), so they still describe the plan it replaced. Not asked again Read the branch, which carries the new plan; edit the title and body by hand if needed
HandoffRecoveryFailed Phase NeedsIntervention: a replacement could not read the Git host to learn whether its handoff commit is on the pull request it replaces, and kept failing there for a reason worth retrying (a timeout, a 5xx, a rate limit, a network failure, which the GitHub adapter reports as worth retrying) until 15 minutes after its deadline. Its commit may be on the pull request, so its handoff stays Reserved and it keeps the target lock: the look at stopped holders reads that pull request every 10 minutes, records a merge of its commit on it with its receipt whenever it comes, and releases the lock on a verdict (as for RecoveryWaitExpired, below). A failure of the Kubernetes API (a status error, a conflict, a Kubernetes API transport error such as connection refused) never ends it this way: it goes back to the error backoff, past the 15 minutes too, and is logged as a reconcile error. A refusal of the Git host (of the read of the branch or of a pull request) or settings that cannot reach the repository never end it this way either: the first one aborts the handoff, and the replacement watches with condition PullRequestUnreadable (#786) and ends with RecoveryWaitExpired (below) Find why Git calls failed (log), then review the branch and the pull request by hand: the commit may be on it
RecoveryReadFailed Only as a reason of PullRequestUnreadable on a replacement whose handoff was aborted at a refusal and that watches the pull request it was to take over (#786): the cause the condition named before is gone (the repository opens again, or the Git host answers the read it refused), but another read of the watch fails for a reason worth retrying or past the step's deadline (the open of the provider included, once the settings entry is fine again). The message names that read; a Warning Event PullRequestUnreadable is recorded when the reason changes. A failure of the Kubernetes API never sets it. The replacement keeps its phase and watches as before, until the end of its watch (RecoveryWaitExpired, below); a read that works removes the condition. A request that ends drops it, except at the end of the watch Find why the named read fails (the executor log), then check the Git host's availability and the App's access
RecoveryWaitExpired Phase NeedsIntervention (on PullRequestOpened): the first refusal of a read of a replacement's recovery of its handoff (403 or 422, or settings that cannot reach the repository) aborted the handoff at once (#786, decision of 2026-11-18), and the replacement then watched the pull request it was to take over for a merge of its commit, writing nothing to Git, until the end of its HandoffRecovery entry in status.gitWaits, 24 hours after that refusal (the write of that entry removed any HandoffGrace entry, so nothing moves that end). The message states that span; the first reconcile after it ends the request from recorded state, before any read. The predecessor's status.handoff.to is Aborted since the refusal, so the request it replaces went on at once with its freshness check, merge gate and deletion; the replacement's own status.handoff.from stays Reserved: the end is shown by the phase and this reason, and is not a verdict. BranchDiverged on that request, with one comment that hands the pull request to a person, comes only when the update of the branch happened (the head is the replacement's commit); when it never happened, that request carries on as if no replacement had come. A predecessor whose plan is stale runs its freshness check first: it fails shadewright/review, closes the pull request as stale and ends Superseded, as any stale plan does. The replacement keeps PullRequestUnreadable with the reason of the refusal and the target lock while the pull request may still be merged: the look at stopped holders reads it every 10 minutes and keeps the lock while it is open. A merge of the replacement's commit is recorded on the replacement whenever it comes, an hour or days after the end, with its receipt (Merged, then the delivery check and the verification with --verify-outcomes, and the circuit breaker counts it); the predecessor does not record it as its own. A merge with any other head but the predecessor's own (a person's commits on top of the replacement's, or a head without it) is recorded on the replacement too, as MergedWithForeignChange after a read of what the merge brought (MergeContentUnreadable when that read keeps failing for five minutes), and the predecessor records none (#870); during the watch as well, without waiting for its end, while the predecessor object exists. Once that object is gone, made again under the same name, or no longer hands over to the replacement, the watch has nothing to read (it reads the pull request by the number the predecessor recorded), and the merge is recorded by the look at stopped holders after the end of the wait. A merge the watch already claimed (its MergeContent entry, while it waits for the merge commit ID or for a read of what the merge brought) is read on through the pull requests of the chain's branch in each of those cases, so that entry ends at its own end, five minutes after its start, not at the end of the watch. The lock is released when that merge is recorded, when the pull request is closed, open with the predecessor's own head (the replacement's commit was never pushed) or merged with another head (after the record above, unless it is the predecessor's own head), or when the branch or the repository is gone (the host closes a pull request whose branch is deleted, and that close releases it; a repository that left the settings keeps it, as for every stopped holder, with condition PullRequestUnreadable (reason RepositoryUnavailable) until the repository is back and a read settles it (decision of 2026-11-19 on #786: the release there of the second round lost the record of a merge made meanwhile), and so does a missing RemediationSettings object; when the settings name another target branch, the pull request is read on the branch the plan recorded, so a merge or a close there settles the lock as above; second round of #786), never by the end itself. A merge with the predecessor's own head while the predecessor is present is the predecessor's to record: the reconcile that stores its record moves the replacement's handoff to Aborted and releases its lock, and the replacement becomes Cancelled with HandoffAborted, no failure for the circuit breaker, and records nothing. Once the predecessor is gone without such a record, the replacement records that merge as any other head, as above. A merge of that pull request into another base a person moved it to, seen during the watch, does not wait for this end: the replacement ends at once with ChangeRequestOnOtherBase and releases the lock. Any replacement that ended before it took the pull request over (HandoffRecoveryFailed, Expired, Cancelled) keeps its lock the same way (#786) Nothing is needed for a merge: once the Git host answers again, a merge of the replacement's commit is recorded on it, also after the end. Otherwise read the pull request: merge it, or close it by hand (the lock then settles), or delete the request to give up on it and release the lock. Give the App its access back or fix the settings the condition names before asking again with a new hint
PullRequestClosed Shadewright closed its pull request (stale plan or a change that no longer renders as planned); the message gives the number and why See the freshness and render tables
GitReadFailed Not a stop: condition GitReadRetry summarizes status.gitWaits, one entry per kind of wait; it is True with this reason while only a Paced entry stands: a Git host read that failed is retried and nothing bounds the wait. The message names the operation (close the change request for the close of a stale plan's pull request when none is recorded, #808); lastTransitionTime records when that retry began. The executor waits the pull request poll interval (a stopped holder: 10 minutes, sooner when another wait it records ends sooner) or a longer host delay, never past the end of any entry or the time the step looks again by (the delivery window and its grace, the grace or 24 hour bound of a deletion or cancel, the full recheck's period of a look). A reconcile that ends without a failed read removes every entry but the merge waits (MergeContent, MergeCheck) and the record of an aborted handoff (HandoffRecovery), and the condition with the last; a reconcile under a pause of Git writes removes none. This also covers cancellation and lock settlement. Kubernetes failures are not reported here. Check host availability and access for the named read. The lock stays held until both target branches have been checked.
GitReadFailedBeforeDeadline Not a stop: the entry that ends first is of kind RequestDeadline, for a request in PolicyChecked. The first reconcile at the request's deadline ends the wait before any read, and the request expires. As for GitReadFailed.
GitReadFailedBeforeHandoffGrace Not a stop: the entry that ends first is of kind HandoffGrace, for the recovery of a handoff. The entry ends 15 minutes after the deadline, at its own end: the first reconcile after that ends the request before any read, NeedsIntervention with HandoffRecoveryFailed. It bounds the intent of the handoff: a refusal aborts that intent, and the write that records its HandoffRecovery entry (below) removes this one. As for GitReadFailed.
GitReadFailedBeforeHandoffRecovery Not a stop: a replacement's handoff was aborted at the first refusal of a read of its recovery, or at settings that cannot reach the repository (PullRequestUnreadable, #786), and its HandoffRecovery entry, the record of that abort, stands. The message says when the handoff was aborted and until when the replacement watches the pull request it was to take over for a merge of its commit; it writes nothing to Git and never takes the pull request over. The entry starts at the first refusal and ends 24 hours later, never moved: a reconcile whose reads work, a pause, and a refusal that gives way to a timeout or a 5xx and comes back keep it. The watch ends at the end of this entry (RecoveryWaitExpired), never at another entry's end; a later merge of its commit is still recorded. Give the App its access back or fix the settings; a person can merge the pull request meanwhile, and the merge is recorded.
GitReadFailedBeforeMergeWait Not a stop: the entry that ends first is of kind MergeCheck, for the check at the merge. The entry records its end (five minutes after its own start, not after status.mergeCommitAwaitedSince) and the pull request it is about. Past that end the next reconcile that is not paused reads once more: an answer goes on as after any read (a merge commit reported records the merge with its receipt); a failed read, or one that cannot start, ends the wait after that reconcile, with no retry: the plan is marked not shown fresh (PlanChanged, Warning Event StalePlanMerged, the message saying the read after the wait failed) and the merge recorded, without a receipt when the entry names no full merge commit. The wait does not end during a pause. As for GitReadFailed.
GitReadFailedBeforeContentWait Not a stop: the entry that ends first is of kind MergeContent, for the reads of what a merge brought: a merge into the newly configured branch (#771), or a merge with another head than the request's own that a replacement holding the target lock records (#870), whose entry also waits for a merge commit ID the Git host does not report yet (operation check that the Git host reports the merge commit). Five minutes after its start (status.gitWaits) the next reconcile that is not paused reads once more, and when that read fails it ends the request NeedsIntervention with MergeContentUnreadable, as for MergeCheck. As for GitReadFailed.
PersonCommitOnPullRequest The reason of condition TargetHeld. Not a stop: a replacement that ended before it took the pull request over (RecoveryWaitExpired, HandoffRecoveryFailed, Expired, Cancelled) keeps the target lock because that pull request is open with a head that is not its handoff commit alone: a person's commit is on it, on top of the replacement's commit or in its place. The pull request may still deliver the replacement's commit, so the lock stays until it is merged or closed; the condition goes when the head is the replacement's commit alone again (second round of #786) Merge or close the pull request; a merge of exactly the replacement's commit is recorded on it
MergeRecordPending (on TargetHeld) Not a stop: a replacement that ended before it took the pull request over (RecoveryWaitExpired, HandoffRecoveryFailed, Expired, Cancelled) found that pull request merged with the head of the request it replaces, which records that merge, and that request holds no record of it yet (#870, decision of 2026-11-20). The replacement keeps the target lock until that record is stored, then releases it with its handoff Aborted; if the request it replaces is deleted without the record, or ended, released its lock on a verdict and holds no handoff intent, so it can no longer record it (a person reopened and merged the pull request), the replacement records the merge itself (MergedWithForeignChange or MergeContentUnreadable). The lock is never released while no request holds the record of the merge, so a deletion after the replacement's look cannot leave the merge recorded nowhere Nothing, while the request it replaces works; if that request is stuck, fix what it names, or delete it: the replacement then records the merge
PullRequestUnreadable (condition) Not a stop: the condition is True while the executor cannot read the request's pull requests, with reason GitForbidden or GitRejected while the Git host refuses the read (403 or 422), or, on a request that keeps the lock on its target, RepositoryUnavailable while the repository of the plan is not in the settings, SettingsNotFound while the RemediationSettings object does not exist at all (the lock and any wait for a read of the merge are kept, and the look is tried again), TargetBranchChanged while its entry names another target branch and RepositoryUnusable while its entry cannot be used. Reason TargetBranchChanged also shows on a request whose pull request waits for review while that pull request cannot be read on the branch the plan was made for, or on the one the settings name now, after the settings named another one: the request keeps its phase until a read shows whether it was merged (#754, #771). Reasons GitNotFound and GitFailed show on a stale plan whose pull request was closed through a new installation of the GitHub App (#290) while the token, the read of its branch that settles the lock on its target, or that look within the cleanup's deadline fails through that installation (#797): the request keeps its phase and tries again every poll interval. A failed read of the Kubernetes API in that look (a request of the supersede chain whose marker the body may still carry) sets neither: it is retried with no condition (#812). On a replacement whose handoff recovery meets a refusal (#786), the Git host's refusal of the read of the branch or of a pull request (GitForbidden, GitRejected) and the reasons about the repository set it too, and that first refusal aborts the handoff (GitReadFailedBeforeHandoffRecovery): the replacement keeps its phase, past its deadline, writes nothing to Git and reads the pull request it was to take over every poll interval (or after Retry-After, when longer) until 24 hours after the refusal, so a merge of its commit in that time still ends it Merged with its receipt; then RecoveryWaitExpired, which keeps the condition, and a later merge of its commit is recorded as well. No failure ends it before that: a failure of the Kubernetes API (a Kubernetes API transport error included) goes to the error backoff with the condition left as it is, and a failed read of the Git host is retried at the poll interval; once the cause the condition names is gone and another read fails for a reason worth retrying, the reason becomes RecoveryReadFailed (above). A read that works removes the condition, and the replacement keeps watching: it does not take the pull request over. The message names the read and lastTransitionTime says since when; a Warning Event PullRequestUnreadable is recorded when it is set, a Normal Event PullRequestReadable when it goes. The read is retried, nothing is decided on it, and a lock on the target is kept, also on a request that stopped. The next read that works removes it, and so does the status write that ends a request without the lock or releases the lock of a stopped one, since its pull requests are not read after that (#688) Compare the App's permissions with ADR-0006, or restore the repository and its target branch in the settings, or the RemediationSettings object
PullRequestNotClosed (condition, with a Warning Event of the same name) Not a stop: the plan is stale and the Git host refuses for good (reason GitForbidden or GitRejected) to close its pull request (#199); the message names it by number and URL, and lastTransitionTime is the first refusal. The request keeps its phase and PlanFresh False with the stale reason, watches the pull request and tries the close again on every look, writing nothing else to it but the failed check below: a close that goes through ends it Superseded, a merge by a person ends it Merged (its outcome is then never Succeeded, see StalePlanMerged). A failed call never removes the condition. A pull request found closed while it is set (by a person, or by a retried close whose answer was lost) ends Superseded too, and PullRequestOpened says that it is not known whether Shadewright or a person closed it; it is no failure for the circuit breaker. With reviewer hints on, the check run shadewright/review on the head is failed with a summary saying the plan is stale (status.pullRequest.reviewCheck state Stale, #713), so where the ruleset requires it a person cannot merge; a refused write of that check changes nothing else and is tried again with the close, and a pull request closed while the check is not recorded Stale keeps the request in its phase until it is; a close that goes through meanwhile removes the condition and records the close in PullRequestOpened at once, so the end says Shadewright closed it (#809). After a change of installationID for the same URL (#290) the close goes through the new installation; when that installation fails the token, the read or the listing, the condition is set the same way and its message names that step: with GitForbidden or GitRejected when the Git host refuses it, GitNotFound when it answers 404 and GitFailed for any other failure, a step still running at the cleanup's deadline included (#797), each retried; a close through the new installation that fails without a refusal sets it too (GitNotFound or GitFailed), so the message names the latest failed step, with a Warning Event when the reason or the step changes. A close through the new installation that goes through while the request still waits for its target lock removes the condition and records the close in PullRequestOpened at once, the last two with the error backoff or the delay the host asked for. A request Cancelled with IncidentFolded or IncidentGone (#794) sets it too, when the read of its branch after the cancel found a pull request of its own open and the close of it failed: with the refusal's reason, GitNotFound or GitFailed, the message naming the step and the pull request. The request stays Cancelled and keeps its target lock; a refusal is tried again every 10 minutes, any other failure with the error backoff or the delay the host asked for. The close that goes through, or a read that finds the pull request closed, merged or no longer its own, removes it Give the App back its pull_requests: write permission or relax the rule that forbids the close, add the repository to the new installation, correct its installationID, or close the pull request by hand
CleanupRefused (condition, with a Warning Event of the same name) Not a stop: a deleted request (#288) whose cleanup the Git host refuses for good (GitForbidden, GitRejected) at one step: the access token for the repository, the read of the recorded pull request, the listing of the branch, or the close. Only a 403 or 422 answer to one of these calls counts; an App that was uninstalled or lost the repository from its installation gives a token mint answered 422 or 404, or 404s, which fall under CleanupFailing. The message says which step and names the recorded pull request; lastTransitionTime is the first refusal since the deletion began. The finalizer tries again every minute and is released by the first attempt that is refused 15 minutes or more after the first refusal, with a Warning Event PullRequestLeftOpen. An attempt after the 15 minutes that fails another way (a signer error, a 5xx) releases nothing: the finalizer then stays until the next refused attempt or the 24 hour bound. A cleanup that goes through removes the condition, with CleanupFailing. Failures worth a retry and failed reads that are not refusals never start this wait; they fall under CleanupFailing Give the App back the permission, or wait the 15 minutes and close the pull request by hand
CleanupFailing (condition, with a Warning Event of the same name) Not a stop. On an Expired request: closing the pull request Shadewright opened on the branch after the deadline failed for a reason worth a retry, reason CleanupFailed; it is tried again every 10 minutes, goes once the close works or the look-up finds none open, and 24 hours after lastTransitionTime one more close is tried, not during a pause: if it fails the request ends PullRequestDeadlineCleanupFailed (a deletion meanwhile counts its 24 hours from the same time). On a deleted request: a step of its cleanup (#288) failed, whatever the class: a refusal, a server error, a timeout, a token mint the Git host answers with 422 (a repository removed from the App's installation) or 404 (the App uninstalled), a Key Vault signer that cannot sign, 404s on the reads. Reason GitForbidden or GitRejected for a refusal, RecordedMissingOtherListed for that read, RepositoryUnusable for a settings entry of the repository that cannot be used (#786), SettingsNotFound for a missing RemediationSettings object, CleanupFailed otherwise. A settings entry that cannot be used, or a missing RemediationSettings object, also sets condition PullRequestUnreadable with the same reason, and is retried at the poll interval with condition GitReadRetry (#1057). The message names the step and the recorded pull request, and lastTransitionTime is the first failure since the deletion began. A cleanup that goes through removes it; 24 hours after the first failure the finalizer lets the request go with a Warning Event PullRequestLeftOpen. A wait for the merge commit or for the reads of what a merge brought (MergeCheck, MergeContent in status.gitWaits) is removed when the deletion begins (#878), so GitReadRetry does not say the request waits for a merge meanwhile. Paused writes never set it Fix the cause (the App's installation and access, the key in Key Vault, the settings entry), or wait the 24 hours and close the pull request by hand
CancelPending (condition, with a Warning Event of the same name) Not a stop: spec.cancel is set (#289) and the cancel cannot finish, so the request keeps its phase and is not Cancelled yet. Reason HandoffInFlight while a handoff of its pull request to a replacement stands, CancelFailing while a step fails in a way worth a retry (a failed read of the pull request, a 5xx, a failed write of the check shadewright/review), retried with backoff; CancelNotFinished once either has lasted 24 hours since lastTransitionTime; GitForbidden, GitRejected, RepositoryUnavailable, TargetBranchChanged, RepositoryUnusable or ForeignChangeRequest when the close is refused or the pull request cannot be reached. With the last two groups the request is watched: every look reads the pull request and tries the close again, a merge ends it Merged and a close Cancelled. A refusal stays the reason while failures worth a retry come in between; those write nothing and record no Event. A refusal of the recovery of a replacement's handoff counts as a refused close here. For that one, closing the pull request by hand does not end the request: the recovery reads the branch before anything else, so the App needs its access back. The message names the step, never the Git host's answer. The Event comes when the condition is set or its reason changes. A pull request found closed never keeps the condition: the request ends Cancelled, also when its failed check cannot be written (see CancelCheckNotFailed) Fix the cause (the App's permission, the settings), or close the pull request by hand if it is open
CancelCheckNotFailed (Warning Event) A request with spec.cancel ended Cancelled on a closed pull request, but the failed check run shadewright/review could not be written on its head: the Git host refused the write for good, or it kept failing for 24 hours. The message of the ending condition says the same. A check on that head that passed still shows as passed Do not reopen and merge the pull request on that check; if it is reopened, a person reviews it as unchecked
CancelFailing Reason of condition CancelPending while a step of a cancel fails in a way worth a retry (see the row above); retried with backoff for 24 hours As for CancelPending
CancelNotFinished Reason of condition CancelPending once a cancel has waited or failed for 24 hours: the request keeps its phase and its pull request is watched (see the row above) Close the pull request by hand if it is open
HandoffInFlight Reason of condition CancelPending while the request's handoff intent stands: nothing is closed until the handoff is done or aborted (see the row above) Wait for the handoff; after 24 hours the reason becomes CancelNotFinished
CleanupFailed Reason of condition CleanupFailing for a failure no other reason names (see the row above) As for CleanupFailing
ReviewCheckNotFailed (condition, with a Warning Event of the same name) Not a stop: with reviewer hints on, a stopped request that holds the target lock could not write the failed check run shadewright/review on its recorded head (#925): it writes it whatever its own pull request is (open on any base, closed, merged elsewhere or gone) while the lock is held, so a check written before the stop may still show. The reason says why: GitFailed (the Git host failed the write: a server error, a timeout, a rate limit), GitForbidden or GitRejected (the Git host refused it for good, a refused access token included, so each look fails the same way until a person fixes the App's permission, the rule or the cause), GitUnauthorized (a 401: the App's private key is wrong or the App was deleted, which holds until the App or its key is fixed), GitNotFound (a 404: the installation or the repository is not reachable), WritesPaused, or TargetBranchChanged, RepositoryUnavailable, RepositoryUnusable or SettingsNotFound (the settings permit no write to the repository of the plan). The next look of the stopped request, every 10 minutes while it holds the lock, tries again; the Event is recorded when the condition is set or its reason changes, and the write that records the failed check removes the condition, as does a look that finds the failed check the latest one on the head, and the write that ends the looks (the lock is released, a merge is recorded, the request is deleted, or it owns no review check any more: hints off, a handoff intent or the pull request handed off, where nothing is written, ADR-0046 limit (f); each is logged at Info, and a deleted request writes no check). While another open pull request from the branch keeps the lock, it has the same head, so the condition stays and each look tries the failed check again Do not merge the pull request on an earlier check; close it, or fix what the reason names and wait for the next look
StoppedCheckUnread (Warning Event) Not a stop: with reviewer hints on, a stopped request whose failed check run shadewright/review is recorded on its head could not look whether that check is still the latest there (the Git host failed the read, writes are paused, the settings permit no read of the repository, or they name another target branch for it now, #925), so it cannot tell whether something was written over it. Recorded once when such looks start on a head, counted in the executor's memory (a restart may record it once more); each later look, every 10 minutes while the request holds the lock, tries again, and one that reads the check or writes it starts the count again Do not merge the pull request on a check other than the failed one; check the Git host and the settings the message names
PullRequestLeftOpen (Warning Event) A deleted request was let go at the first attempt the Git host refused 15 minutes or more after its first refusal of a step of the cleanup, or after its cleanup kept failing for 24 hours (#288), or at once when the settings hold no entry for the plan's repository any more, so nothing could be read or closed (#925); an entry that cannot be used or a missing RemediationSettings object keeps the request under CleanupFailing until its 24 hour bound; the Event says which. The Event names the pull request (number and URL) and says whether it is left open (the close was refused) or of unknown state and maybe open (the token, the read or the listing was refused). After 24 hours of failures it says: "The cleanup of the deleted request could not be finished for 24 hours (last failure ...); the deleted request was let go: the state of pull request ... is not known and it may be open, check it and close it by hand". The executor log has the same line. It is recorded just before the finalizer goes. The Event stays for the API server's Event time to live (one hour by default) after the request is gone Check the pull request, close it by hand, and delete the branch shadewright/<request UID> if you want
RecordedMissingOtherListed (reason of condition PullRequestUnreadable) Not a stop: the Git host has no pull request of this request with the recorded number, but the request's branch lists another pull request with the request's marker, so the executor cannot tell whether the change is gone. It reads again and decides nothing, and a lock on the target is kept. The message names both numbers; a Warning Event PullRequestUnreadable is recorded when the condition is set, and the next read that answers removes it (#688) Delete the request: its finalizer closes every open pull request of the branch with the request's marker and then goes, without waiting. If the listed pull request is not this request's change, remove the request's marker from its description instead. Closing or merging the listed pull request alone does not end it, since the branch still lists it

The target lock is settled by the same read for every stopped request. It reads the request's pull request by its number on the recorded and configured target branches and lists the open pull requests from the request's branch on every base. Closing the recorded number is not enough when another pull request can still merge; TargetHeld names it. The request's own pull request (its recorded number, or one with its marker) moved by hand to a third base branch keeps the lock while it is open there too (#892), also when the request expired, was cancelled or stopped with ChangeRequestOnOtherBase: Shadewright writes nothing to it there but the failed review check that a stop, a cancel or a stale plan writes (with reviewer hints on; also when it is closed there, and its summary then says nothing is closed on that base and a person decides), so close or merge it there yourself to free the target; a merge there is not recorded as the request's. Deleting the request is the exception: its finalizer closes the pull request by its number on whatever base it is open, and only then lets the request go. A cancel that finds it there ends Cancelled with a message that says it is open on another base and the target stays locked, whether or not the target branch changed. TargetHeld then says pull request #N is open on another base and that closing it releases the lock, and that moved back to the target branch it still keeps the lock (the request has stopped, and its review check was failed at the stop, #925); it shows the base name only when the name is a valid target branch name (a shadewright/ branch, a name with + or a long one is left out). Any other open pull request from the request's branch keeps the lock on every base too, with or without the marker (#925), and TargetHeld names it; only one with the marker is adopted or closed. A recorded number the Git host answers not found is read as gone only after the listing of every base found nothing. This includes Cancelled with IncidentFolded or IncidentGone after a settings branch change. Those reads do not permit a write across the branch change. A terminal phase or a merged number alone no longer releases the lock. Once the lock is released, a pull request a person reopens does not take it back: a released request asks the Git host nothing, so check TargetHeld and the open pull requests from the branch before you reopen one (#940).

Merge receipt

built On Verified, for a request in Merged without status.mergeReceipt (ADR-0030 section 1). A merge that holds exactly the planned change gets the receipt (repository, target branch, pull request number, head, merge commit, time recorded) in the status write that sets Merged, and it never changes after; a merge with a foreign change (MergedWithForeignChange) gets none. With --verify-outcomes on, a request with a receipt moves on to WaitingForDelivery (see After the merge); off (the default), it keeps Merged with its rollout report.

Reason Status Cause Fix
NoMergeReceipt Unknown The Git host reported no merge commit for the merged pull request, or one that is not a full commit ID, so nothing after the merge can be checked against it. GitHub computes the merge commit after the merge, so the executor first waits five minutes for it, measured on its own clock by the MergeCheck entry of status.gitWaits (from the entry's own start, kept over a restart, not from status.mergeCommitAwaitedSince, which keeps when the merge was first seen); meanwhile the request keeps its phase and the lock on its target. Past the five minutes the next reconcile that is not paused reads the pull request once more: a merge commit reported then records the merge with its receipt, and only a read that still shows none, or that fails, records it without one. The write that records the merge without a receipt frees the target, during a pause too. Set in the write that records the merge; the next reconcile ends the request in phase Inconclusive with the same reason. A receipt without a merge time, which the API refuses, ends the same way with a message that says it is unusable. A request in Merged without a receipt whose Verified has a reason the executor does not write ends the same way, and the message names that reason. The circuit breaker reads Inconclusive, and Merged with this reason, like Expired, and the Incident is escalated Check what the merge put on the target branch and whether Flux applied it, by hand
MergedBeforeVerification Unknown The request was merged before the executor recorded merge receipts (an upgrade). It keeps Merged, gets this once and no verification starts; the circuit breaker reads it as before Nothing. Check the rollout yourself if needed

After the merge

built Only with the executor flag --verify-outcomes (chart value executor.verification.enabled), off by default; its default is decided after a lab run with a release candidate. With it on and the verifier deployed, a request can end Succeeded; with it on and no verifier (verifier.watchNamespaces empty), no report is written and every merge ends Inconclusive (StaleReport) or Failed. Off, a merged request keeps Merged with its rollout report (a plan merged after it was known stale ends Inconclusive with StalePlanMerged once that report is done), and a request found in WaitingForDelivery or Verifying (the flag was turned off while it was there) ends Inconclusive with VerificationDisabled at its next reconcile. With it on, a Merged request with a merge receipt moves to WaitingForDelivery on the next reconcile (ADR-0030 sections 2 and 4). It waits up to an hour after the merge, plus the time writes were paused, for the Flux Kustomization named by the target's labels to report the receipt's merge commit, or a later commit of the receipt's target branch that holds it, applied (status.deadline shows the end). Flux retries a failed apply, so a failure inside the hour is not final: the last read at the end of the hour decides. Once delivered, the request is Verifying until its timeout (status.deadline, 21 minutes after the delivery for a memory fix with the defaults: the larger of spec.verification.timeout and the rollout deadline of 10 minutes plus the effective stableFor plus --node-grace), and the executor reads the target and the verifier's VerificationReport every 30 seconds (every 15 once both windows are long enough). It succeeds when its own checks (rolled out, configured, every desired replica available, a report bound to this request that covers every desired replica) held for the effective stableFor plus --node-grace (11 minutes for a memory fix with the defaults) by its clock, the report's window held as long by the verifier's clock, and the report's sample counter rose since a read that began at most 30 seconds before this read ended; one status write then sets Succeeded, Cleared=True and Verified=True, both with reason NoRecurrence (Cleared gets ResolvedBeforeRollout instead when the Incident's count did not move from the merge to the rollout, see the table). Its own window is status.verification (windowStart, lastReset, resets); a check that is not good resets it with one of the reasons below. While the window runs Cleared is Unknown with reason Observing. While writes are paused it keeps reading. A deadline after the merge never ends a request Expired. A read that fails with a cause that does not clear by itself (the receipt's repository left the settings or cannot be opened, the Git provider cannot check ancestry, no delivery verifier) is retried until the end of the window, and Delivered names the cause meanwhile. The circuit breaker reads WaitingForDelivery and Verifying as neither a success nor a failure: a probe in one of them stays the probe until it ends. With the flag on, so is a Merged request with a merge receipt, which the next reconcile moves to WaitingForDelivery; with it off, Merged is a success. The reason is on Verified (False for Failed, Unknown for Inconclusive), on Cleared for an end from Verifying (False for OOMKilled and Restarted, Unknown otherwise), and on Delivered or Configured when one of them decided.

Reason Phase Cause Fix
DeliveryFailed Failed At the end of the hour Flux reported its last attempt, on exactly the merge commit, failed (Delivered=False). A broken commit at the head of the branch also blocks every later commit Read the Kustomization's Ready message (flux get kustomizations), then revert or fix the merged change
DeliveryBlocked Inconclusive At the end of the hour Flux was failing on a later commit of the branch that holds the merge commit; the failure cannot be pinned on this change Fix the later commit; check the fix by hand once Flux applies again
DeliverySuspended Inconclusive The Kustomization was suspended (spec.suspend) at the end of the hour Resume it (flux resume kustomization) and check by hand
DeliveryNotObserved Inconclusive No applied revision that holds the merge commit within the hour: Flux has not applied it, applied another branch or a rewritten history, or the target has no Kustomization labels (installed by a HelmRelease, for example). The message names the Kustomization and the merge commit Check the Kustomization and its GitRepository
DeliveryNotChecked Inconclusive The Kustomization, the target or the Git host's answer on a later commit could not be read until 10 minutes past the end of the hour, Flux kept moving between applied commits while it was read, or the executor's clock went back by more than a minute so the hour could not be measured (Delivered=Unknown). The message names a cause that does not clear by itself; otherwise the executor log has the error. A merged stale plan (StalePlanMerged) whose receipt names an installation the settings no longer have is read through the entry with the same URL and a new installation (#797), so a new installationID alone is not a repository gone Check the executor log, RBAC on the Kustomization, and the repository entry of the receipt in the settings
TargetGone Inconclusive The target was deleted, in WaitingForDelivery or Verifying; ends at once Nothing to verify
TargetReplaced Inconclusive An object of the target's name has another UID: it was deleted and created again; ends at once Check the new object by hand
ValueChanged Inconclusive Once delivered, the live target's field does not hold the desired value (Configured=False): a later commit or change overwrote it, so this change never ran as merged; ends at once Nothing to revert; check what overwrote it
RolloutSuperseded Inconclusive After the applied commit was recorded, the target's pod template changed or it names another template revision; ends at once Check the newer rollout yourself
RolloutStuck Failed At the timeout RolledOut is False with RolloutStuck (see below), also when the target could not be read from the timeout until 10 minutes past it Unblock the rollout as below; the request stays Failed
KedaNotReady Failed At the timeout the target ScaledObject is not ready by the KedaReady rule (Ready not True, paused, on fallback, or its HPA cannot read its metrics) Read the ScaledObject's conditions (kubectl describe scaledobject) and fix its triggers
TargetNotChecked Inconclusive The executor's own evidence on the target could not be read: the target could not be read until 10 minutes past the timeout with no RolloutStuck recorded, or the action's field could not be read on it. The executor log has the error Check the executor log and its get on the target kind
StalePlanMerged Inconclusive A person merged the pull request of a plan that was stale when the merge was recorded: marked stale before the merge and not closed yet, or not closable (#199), or found stale by the check at the merge because the policy, the settings (also a target branch changed after the pull request was opened, #754, whether the pull request was merged into the recorded branch or moved to the new one and merged there, #771, before or after the request stopped NeedsIntervention with TargetBranchChanged) or the target changed before the merge and no full recheck had seen it yet (#737), or because that check could not read what it needs within five minutes of the first failure (reason PlanChanged, a Warning Event StalePlanMerged and an error in the executor log name the failed read). PlanFresh is False with the stale reason, and its message says which. The change went through delivery and verification like any merge, and would have ended Succeeded, or, with --verify-outcomes off, kept Merged once its rollout check was over, good or bad (RolledOut still says what the rollout did); it is never counted as a success. With the flag on a failure still ends Failed. The circuit breaker reads it like any other Inconclusive Check that the merged change is still what the target needs, since an input of its plan had changed. When the message names a failed read, also check the executor's access to the policy, the settings and the target
VerificationDisabled Inconclusive The executor runs without --verify-outcomes and found the request in WaitingForDelivery or Verifying, where the flag was on before; nothing moves such a request on with it off, so it ends at once. The circuit breaker reads it like any other Inconclusive Check the change by hand; turn the flag on again to verify later merges
NoRecurrence Succeeded A quiet window: no OOM kill and no restart on every desired replica for the effective stableFor plus --node-grace, by the executor's reads and a fresh report of the verifier (Cleared=True, Verified=True) Nothing
ResolvedBeforeRollout Succeeded On Cleared=True only, in place of NoRecurrence (Verified keeps NoRecurrence): the request succeeded as above, and the Incident's status.count, read by the executor with the merge receipt and again with appliedObservedAt (status.verification.incidentCount), did not change over at least the effective stableFor plus two analyzer aggregation windows (10 minutes more than stableFor) by the executor's clock. The symptom had already stopped when the change arrived, so this change is not shown to be the cause. A missing or failed reading, another Incident UID, a saturated count or a shorter span keeps NoRecurrence Nothing; the change may not have been needed. The count shows only what the analyzer recorded
OOMKilled Failed The verifier's report, bound to this request, records an OOM kill of the action's container on a pod that runs the applied template with the desired limit; ends at once, whatever the window (Cleared=False). The message names the pod UID The limit is still too low, or the cause is not the limit; see the incident
Restarted Failed At the timeout the report records a container restart above its baseline after the window first opened (troubleResets), whatever its last reset: a crash loop shows here (Cleared=False) Read the pod's logs and events; the change did not help
StaleReport Inconclusive At the timeout the verifier's report was missing, created but never sampled, or its sample counter had not risen for more than 90 seconds by the executor's clock. The verifier is not deployed (verifier.watchNamespaces empty), stopped, or cannot read the pods Check that the verifier runs (kubectl get vr -n <operator namespace>) and its log
ReportMismatch Inconclusive At the timeout the report named another request, merge commit, target UID, template revision or container than the executor holds; it is no evidence Check the verifier's log; a report is never written by anything else
PartialRollout Inconclusive At the timeout the report did not cover every desired replica on the applied revision (a partitioned StatefulSet, a pod terminating, a scale in progress) Finish the rollout, then check the symptom by hand
NotAvailable Inconclusive At the timeout the target reported other available replicas than spec.replicas, fewer or more (a ScaledObject: not ready by the KedaReady rule before stableFor held) Check why pods are not available
PodNotReady Inconclusive At the timeout the report's window was reset because a pod of the rollout was not Ready without a restart (a failing readiness probe, or a node that stopped reporting) Check the pod's readiness probe and its node
EvidenceMissing Inconclusive At the timeout the report could not cover the pods: a pod without a status for every container, or more than 200 pods Check the target's pods; a target with more than 200 replicas cannot be verified
ExecutorRestarted Inconclusive At the timeout the executor's window was last reset because the executor restarted or another replica became leader while it was open, and no full window fitted before the timeout after that (see below) Check the executor's restarts (kubectl get pods -n <operator namespace>), then check the symptom by hand
ScaledToZero Inconclusive At the timeout the target's spec.replicas was 0, so no pod could show the change Scale it up and check by hand
ObservationGap Inconclusive At the timeout the report's window was last reset by a gap of more than a minute between samples with a pod the verifier had not seen before Check that the verifier runs steadily
CheckNotAvailable Inconclusive The request names the check QueueBacklogDecreasing, which needs metrics no evidence source reads yet: it ends once a quiet window (a ScaledObject: rolled out and configured for stableFor) held, never Succeeded Check the backlog yourself
ClearingNotChecked Inconclusive A ScaledObject (AdjustKedaMaxReplicas) was ready and configured for the effective stableFor (3 minutes at least): its symptom is not visible in container status, so it cannot end Succeeded (Cleared=Unknown with this reason). Also when the executor's clock went back by more than a minute, or when --verify-outcomes was turned on after the timeout measured from an applied time the rollout report recorded in Merged Check the symptom yourself (kubectl shadewright explain)
RevertApplied Inconclusive A revert (spec.reverts) was rolled out, configured and available (at least one desired replica) for the effective stableFor. A revert is never checked for clearing (Cleared=Unknown, reason RevertApplied): the verifier writes no report for it, and the symptom of the change it undid is expected to come back, so an OOM kill does not fail it. It never ends Succeeded The change it undid had failed: the Incident stays with a person

Configured=True (reason ValueConfigured) and Delivered=True (reason MergeCommitApplied, the message names the commit Flux applied) say what held, and Cleared=Unknown with reason Observing that the window still runs. A failed read of the report is retried, never read as a missing report; one that fails until 10 minutes past the timeout is decided without it (the message says so). kubectl shadewright explain shows rolled out, configured and cleared as three lines.

After the executor restarts or another replica becomes leader, no window counts time from before that moment. Its first check of a request whose window is open, and was not opened by a check of the new process, resets that window with ExecutorRestarted and writes it to status.verification like any other reset (a window the running executor opened is never taken for a restart, whatever became of its status writes, unless the request opened more than 16 windows and status holds one of the oldest): lastReset names the reason (its time is the second before the new process began reconciling, or the stored windowStart when that is later, as it is when the old leader's clock was ahead), resets goes up by one, and the same check opens the window again when it is good, so windowStart shows where the new window starts. NoRecurrence, ClearingNotChecked (for a ready ScaledObject) and RevertApplied then come the effective stableFor (plus --node-grace for NoRecurrence) after that windowStart, as for any window. A request whose timeout comes sooner ends Inconclusive at the timeout with the newest reset of its windows: ExecutorRestarted when nothing reset the executor's window after the restart and the verifier's report counted no reset since the check that recorded it (its resets, as that check read it); a reset the report counted after it gives the report's reason. When the process that recorded the restart is gone too, the reasons are taken in the usual order. An executor that keeps restarting ends no verification before the timeout. Check the executor's restarts (kubectl get pods -n <operator namespace>) before reading such an end as a problem of the change.

Rollout after the merge

built On RolledOut, for a Deployment or StatefulSet target, after the Flux Kustomization named by the target's labels reports the merge commit (or a later commit of the target branch that holds it) applied; that time is status.pullRequest.appliedObservedAt. For a request with a merge receipt this is the phase Verifying, where a target that is not a Deployment or StatefulSet gets KindNotChecked and the end of the request follows After the merge; the rest of this section, DeliveryNotObserved and RolloutNotDetermined included, is the report of a request merged before receipts existed, whose phase stays Merged. The target branch is the merge receipt's when the request has one (after a pull request was moved to a newly configured target branch and merged there, that branch, #771), and status.source.targetBranch otherwise. Whether a later commit holds the merge commit is asked of the receipt's repository, opened by its URL and installation whatever target branch the settings name now, and only for a request without a receipt of the plan's repository through the live settings; while writes are paused the Git host is not asked and the check waits. Until the delivery is seen applied the request has no RolledOut. The check always ends with one of the verdicts below; status.rollout records the commit Flux applied, the target generation and template it produced (read right after the apply), the template revision it judged, and ended once it is over; each is set once. A later commit of the target branch that holds the merge commit counts as ours; a change made outside Git before that read is not told apart. Shadewright only reports: it never deletes or restarts a pod (invariant 2), and it reads only the target object and its Kustomization with the get it already has, never the pods. While writes are paused (spec.paused), a later applied commit is not checked against the merge commit on the Git host, so the check waits, and the time paused does not count against the hour: after a resume the check has what was left of it.

Reason Status Cause Fix
RolloutComplete True Every pod runs the applied template and is ready Nothing
RolloutPartitioned True A StatefulSet's rolling update with a partition above 0 did what its strategy asks, but the pods below the partition stay on the old revision on purpose; the message names them. It is no evidence that every replica runs the change Lower the partition when you want every pod on the new revision
RolloutProgressing Unknown The rollout is under way and the deadline (10 minutes after the revision was applied) has not passed Wait
DeliveryNotObserved False The merge commit (or a later commit of the target branch that holds it) was not seen applied by the Kustomization named by the target's labels within an hour of the merge: Flux has not applied it, its apply fails, the target has no Kustomization labels or is installed by a HelmRelease. The message names the Kustomization and the merge commit; one Event is recorded and the rollout is not checked Check the Kustomization (flux get kustomizations, its Ready message), then the rollout yourself as below
KindNotChecked Unknown The target is not a Deployment or StatefulSet (for example a ScaledObject), whose rollout the check does not cover. No Event Check the target yourself
RolloutStuck False The rollout did not complete within the deadline. For a StatefulSet the message gives how many pods are not Ready and names the pods on the old revision, highest ordinal first, inferred from the StatefulSet status (spec.ordinals.start honoured); it names a pod to delete only when every pod is not Ready, since the status does not say which pod is. For a Deployment it gives the counts. One Event is recorded; the rollout is read again for an hour, so one you unblock turns True See below
RolloutSuperseded Unknown The target moved on to a newer template revision than the one applied with the merge commit (another change was applied), or its template changed again before its controller observed the generation the applied commit produced, so this rollout is not judged. One Normal Event Check the newer rollout yourself
RolloutNotDetermined Unknown The check ended without a verdict: the target is gone or was replaced, or it (or the delivery) could not be read until the end of the check. One Event; the message names a lasting cause of a failed delivery read (for example a merge receipt whose repository left the settings, which condition Delivered also names while the check waits, #771), else the executor log has the error Check the target and the executor log

A StatefulSet stuck on the old revision. A StatefulSet with the default OrderedReady policy does not replace a pod that is not Ready on the old revision, so a fix for a crashing pod (for example a larger memory limit) is applied to the template but never reaches the pod. Kubernetes documents this as forced rollback. Find the pod that is not Ready. If it runs the old revision, check that the new template is the one you want, then delete that pod yourself, never a Ready one. If a pod on the new revision is not Ready, the new template fails: fix it instead.

kubectl -n <namespace> get statefulset <name> -o jsonpath='{.status.currentRevision} {.status.updateRevision} {.status.updatedReplicas}/{.spec.replicas}{"\n"}'
kubectl -n <namespace> get pods -L controller-revision-hash
kubectl -n <namespace> delete pod <name>-<ordinal>

The pod is recreated from the new revision and the rollout continues. With updateStrategy: OnDelete every pod needs this step. A Deployment stuck: read kubectl rollout status deployment/<name> and the events of its new ReplicaSet (image pull, quota, a failing readiness probe).

Freshness

Before merge the executor rechecks every five minutes, and on any change to the request (once its pull request waits, only when none ran in the last five minutes), that the plan still matches the world. A stale plan ends Superseded with PlanFresh=False, and its pull request is closed (branch left in place). If the close cannot be done the phase is NeedsIntervention with TargetBranchChanged, ForeignChangeRequest, RepositoryUnavailable, RepositoryUnusable, GitForbidden or GitRejected as above.

Reason Cause Fix
PolicyChanged The policy was deleted, recreated or edited (any change of its generation) Apply a new request against the new policy
SettingsChanged The settings or the repository entry were removed, or its URL, installation or branch changed As above
TargetChanged The target is gone, has another UID, or no longer holds the previous value live As above
TargetFileChanged The file on the target branch is gone, no longer declares the target alone, no longer holds the previous value, or now uses YAML anchors, aliases, merge keys or text on a separator line, another line break or a directive (#594), or holds more than 131,072 YAML nodes in one document (#595) or a mapping of more than 256 keys or one that repeats a key (#608) As above
PlanChanged The recorded inputs no longer give the recorded digest, for example a new installationID for the same repository URL; its pull request is then closed through the new installation once its marker is checked (#290) Apply a new request
SourceChanged Mapping the target again gives another repository, branch or file, or now denies or needs a person Look at the Flux objects, apply a new request
ScaledObjectNotReady The ScaledObject is not ready on two reads Fix the autoscaler
ModuleNotEnabled The module was removed from the settings Enable it, apply a new request

While spec.paused is true nothing is written and requests wait; none of these is reached. See the emergency stop.

Render check

Before committing, and again when the target branch moves while the pull request waits, the executor renders the kustomize build with and without the change and requires one difference: the planned field of the target. A refusal puts the reason below on PullRequestOpened or Approved with the message "The rendered change is not exactly the planned one", ends NeedsIntervention, and closes a waiting pull request.

Reason Cause
InvalidInput The target, action, paths or file set are not usable
UnsupportedKustomization A kustomization file uses generators, Helm charts, plugins, replacements or anything outside the allow-list, or a patch holds a JSON patch copy operation (each copy can double a value; write the value out, or use add)
InvalidReference A kustomization refers to a URL, remote base, absolute path or a path leaving the repository, or a path without a kustomization file holds a manifest or base whose name is not a plain path segment
FileMissing The build needs a file that is missing, a listed directory has no kustomization file or more than one, or the path is not a directory (a path without a kustomization file is rendered from the one Flux would generate)
TooLarge A limit was hit: file size, number of files or reads, depth, directory visits, the build budget of 4 MiB or 4,096 YAML documents (counted with repetition, the tree after the change included; a List counts 1 plus its items), 131,072 YAML nodes in one file (counted from the bytes before anything parses it, #595), a mapping of more than 256 keys (#608), 4 MiB that patches and transformers can add to the render, or 1,024 rendered objects. The input limits are checked at the policy check already; see A build over the budget for what the request shows
InvalidYAML A kustomization file does not parse or has a duplicate key, or a file of the build is not UTF-8, does not parse, repeats a key in one mapping (#608), or uses YAML anchors, aliases, merge keys or text after --- on a separator line, a line break other than LF or CRLF, or a YAML directive; see YAML the render check refuses
RenderFailed Kustomize cannot build the path, before or after the change
FileNotInBuild The changed file is not a resource of the build
TargetNotFound The rendered output does not hold the target
AmbiguousTarget The target may appear more than once, or two objects share an identity
ObjectsAddedOrRemoved The change adds or removes a rendered object
OtherObjectChanged The change alters another rendered object, for example through a shared base
OtherFieldChanged The change alters another field of the target
PreviousValueDiffers The rendered target before the change does not hold the previous value: something else sets the field, or the rendered memory value is outside the quantity form described under ValueMismatch
DesiredValueMissing The rendered target after the change lacks the desired value, for example an overlay overrides it
FieldNotFound The rendered target does not set the field
SourceIgnored A .sourceignore applies to a directory of the build
SchemaInvalid The changed object fails the basic schema checks, for example its memory request is outside the quantity form described under ValueMismatch
RenderNeverFinished Three render checks of the plan in a row started and never finished: the executor process ended during each (status.unfinishedRenders counts them, #714). An OOM of the executor's container and a lost leader election (the executor exits without a graceful shutdown) count. A node drain or a rollout counts only when the pod is killed before the render returns: on an ordinary stop the executor ends the render and removes the mark within its termination grace period. Not a fault of the build that the check proved; see the render process was killed below. A replacement in a handoff ends Cancelled with HandoffAborted instead, and its message names RenderNeverFinished

Fix for all: make the build plain, so the one value is declared once and nothing overrides it, then apply a new request.

A build over the budget

The render runs in a child process of the executor with its own limits (128 MiB of Go memory, 20 s of CPU time, #614), and the input limits below were measured against the executor's 128 Mi of the time, so the build of one Flux Kustomization path may hold at most 4 MiB of input and 1,024 objects (design 8.2.2). Input counts with repetition: every path to a directory adds its kustomization file and the files it lists, so a 1 MiB base under four overlays counts 4 MiB. The YAML documents of the resource and patch files (and inline patches) count the same way, at most 4,096, so that many small objects are refused before kustomize builds them; the 1,024 objects are counted on the render's output. Patches and the label, annotation, namespace, name prefix and suffix, image and replica transformers copy their value into every object they can reach, so the cost of each value times the places it can reach (the one object a patch without a target names, every object of the kind a patch's target names, or every document of the build, the fields Kustomize writes in each object and every list item on their paths for a transformer, every value of the build for a name change) may add up to at most 4 MiB, counted with repetition too. A value costs its bytes plus 128 for each YAML node (each key, value and list item), since the render's memory follows nodes more than bytes. A large value applied to every object (a long annotation, an embedded file in a patch with a target) or one of many small entries (dozens of labels, a long list) is the usual cause: move it into the objects that need it, or name the kind in the patch target. A large build with common labels, a namespace, a name prefix, image overrides and patches on many objects can reach the limit too (about 800 objects with a small patch of a few YAML nodes on every Deployment; a three-entry env patch on each of 800 Deployments is over it). The strategic merge patches of a build may also merge at most 4,096 keys or list items into one mapping or list of one object, counted per path over all patches that may reach that object (a patch without a target reaches the object it names, one with a target every object of the kind it names, or of any kind; below a name prefix or suffix, with a JSON patch, a patch with allowNameChange or allowKindChange, or a component that renames, every object), since merging many patches into one wide mapping takes seconds of CPU (#626). If you hit it, put the entries in the resource itself instead of in many patches, or name the kind in the patch targets. The count is an estimate with known gaps (keys merged under sibling paths, keys added by labels, commonLabels or commonAnnotations, patches wrapped in a List, JSON 6902 moves, lists a JSON patch creates and a strategic merge patch then merges into); what they let through stops at the render process's limits instead. The limits are fixed in the code; nothing in the settings raises them.

What the request shows (no Event is recorded for either case):

  • At the policy check, for a build over the input limits (bytes, YAML documents, directory visits, files, what patches and transformers can add, what patches merge into one mapping): phase NeedsIntervention, condition PolicyAllowed with status Unknown, reason TooLarge and the message "The build is over a limit of the render check (at most 4194304 bytes of input and 4096 YAML documents counted with repetition, 256 directory visits, 256 files of at most 1048576 bytes, 4194304 bytes that patches and transformers can add to the render, counting 128 for each YAML node, 4096 keys or items that patches can merge into one mapping or list); no plan was made". No plan digest, branch or pull request is made, and no approval is asked for.
  • At the render, for a build over 1,024 objects, a render that needs more memory or CPU time than its process may use (128 MiB of Go memory, 192 MiB resident, 20 s of CPU time), a render process that ended without an answer 5 times in a row (message "The render process ended without an answer 5 times in a row; the last time it" and the last cause), a change that takes the tree over the byte, document or transform budget (a value written with one more digit in a build at the budget), or a pull request that was waiting when you upgraded (see upgrade): condition PullRequestOpened (before a pull request) or Approved (after) with status False, reason TooLarge and the message "The rendered change is not exactly the planned one (TooLarge)", followed by "; nothing was committed" or "; the pull request was closed". The executor logs Stopped RemediationRequest with reason TooLarge.
  • Not a refusal yet: the render process was killed, crashed or ran out of time. Only the ends a limit chose are TooLarge at once: the render process's exits at the memory and CPU time limits, and the executor's kill at its resident limit. A render process killed by a signal the executor did not send (an OOM killer says nothing about the build), one that ended at the Go runtime's out of memory exit (the data limit and a node short of memory end it the same way), and one that crashed otherwise (including a SIGSEGV of the Go runtime at the data limit, a runtime bug) are errors for a retry (in the render check's error: "the render process was killed before it answered", "ran out of memory", "crashed before it answered"). The executor retries with backoff and counts them per request and plan; at the fifth in a row the change is refused with TooLarge (above). The count is kept in memory, so it starts again when the executor restarts. A check whose step ran out of time (on a node starved of CPU, the 20 s of CPU time can take longer than the 2 minutes of the step) is retried and not counted. Check the executor container's memory (640 Mi in the chart, of which GOMEMLIMIT takes 36 percent; the chart refuses a limit below GOMEMLIMIT plus 192 MiB plus 128 MiB) and its CPU limit. The executor Pod restarted (OOMKilled) during a render check. On cgroup v2 a container OOM kills the executor together with its render process (Kubernetes 1.28 and later, unless the kubelet sets singleProcessOOMKill). The chart's limit keeps 192 MiB for the render process and a 128 MiB margin besides the executor's GOMEMLIMIT; a burst faster than the two memory samplers, or an executor far above its GOMEMLIMIT, can still reach the limit. The Pod restarts and the request is retried. The executor marks each render in the request's status before it starts (status.unfinishedRenders, the plan digest and a count) and removes the mark when the check returns, so a build that does this every time ends the request after three renders in a row that never finished: NeedsIntervention with reason RenderNeverFinished (an Event with the same reason too), the waiting pull request closed (#714). One or two such restarts, such as a rollout of the executor during a render, do not end it; the count goes when a render answers. While a mark is shown, kubectl get rr <name> -o jsonpath='{.status.unfinishedRenders}' tells how many renders of the plan did not finish. Raise executor.resources.limits.memory (the chart keeps GOMEMLIMIT at 36 percent of it), and report the build if it does this every time.

The render message does not name the limit, since the render check's own text may name files of the repository; the reason and this page say which limits apply. To bring the target's build under them:

  • Split the path. Give the target's application its own directory and its own Flux Kustomization (its own spec.path), instead of one path that builds every application of the cluster. The check renders only the path that delivers the target.
  • Cut repetition. A large base reached through many overlays counts once per overlay; move what only one overlay needs out of the shared base, or give each environment its own Kustomization.
  • Move bulk data out of the build. Large ConfigMaps or CRD bundles that rarely change can live under a separate Kustomization the target's path does not include.

Then apply a new request; the refused one stays NeedsIntervention.

YAML the render check refuses

Every file the render check reads (kustomization files, the resource and patch files they list, and inline patches) must be UTF-8 YAML without anchors (&name), aliases (*name) or merge keys (<<: *name, or a key with the !!merge tag; << as a plain value is accepted), a document separator line may hold only --- and a comment after a space or a tab, lines end in LF or CRLF only (no bare CR, NEL, LS or PS), and no line starts with a YAML directive (%YAML, %TAG). Kustomize expands these before it counts or builds anything, so a few bytes can become thousands of objects or crash the executor; the check refuses them with InvalidYAML instead (#488, #492). The source mapping, which runs first, reads kustomization files and manifests with a parser that expands them too, so it refuses the same with FileNotReadable (#594). The typed patcher checks the target file the same way before it reads it, and refuses it with the patch reason InvalidYAML inside PatchRefused (#595). The request shows only the reason and where, not the file; look for these constructs in the files of the target's build.

The bound applies to each file before the render; what patches merge into one mapping in the render has its own bound (a build over the budget, #626). The same check refuses a mapping that holds a key twice (InvalidYAML at the render check and in the patcher, FileNotReadable in the source mapping), which kustomize would refuse too, also when the two keys are spelled differently but resolve to the same value (0x1 and 1, ~ and null, 1.0 and '1'), where a decoder would keep one value without an error, and a mapping of more than 256 keys (TooLarge at the render check, InputTooLarge in the source mapping, InvalidYAML in the patcher). The decoders compare every pair of keys of a mapping to find a duplicate, so a wide mapping, or many copies of one long key, held the CPU for seconds (#608). The widest mapping found in real manifests held 76 keys. The check fails closed: one such file anywhere in the build of a Flux Kustomization's path blocks every request whose target that path delivers, not only requests that change that file, until the file is fixed or moved out of the path. Split a mapping of more than 256 keys (a ConfigMap of hundreds of entries, for example) into several objects, or move it under a Kustomization that does not build the target.

To fix a file, write out what the anchor stood for:

# Refused
defaults: &limits {cpu: 500m, memory: 256Mi}
resources:
  limits: *limits
  requests:
    <<: *limits
    cpu: 100m

# Accepted
resources:
  limits: {cpu: 500m, memory: 256Mi}
  requests: {cpu: 100m, memory: 256Mi}

For values shared by many objects, use a Kustomize patch or a component instead of an anchor. Save a file in UTF-16 or UTF-32 as UTF-8 (a UTF-8 byte order mark is accepted). Then apply a new request.

The patcher reasons named inside a PatchRefused message are PreviousValueDiffers (the file no longer holds the planned baseline), FieldMissing (object, field or container absent), AmbiguousContainer (two containers with the name), TargetNotFound, AmbiguousTarget, Unsupported (YAML the in-place edit does not handle, or a memory value outside the quantity form described under ValueMismatch), InvalidInput, InvalidYAML (does not parse, duplicate key, over 1 MiB, more than 4096 objects or 131,072 YAML nodes, a mapping of more than 256 keys (#608), or YAML the check above refuses anywhere in the file: anchors, aliases, merge keys, text on a separator line, another line break, a directive or text that is not UTF-8, #595) and VerificationFailed (the patched file differs from the original in more than the one value).

Not request reasons

An Incident that never gets analyzed shows why in its AnalysisDue condition. It is due (status True) with FirstAnalysis, NewOccurrence, CooldownExpired, AnalysisTimedOut or ReviewerHint (a Proposed Incident whose waiting request holds a reviewer hint no analysis has answered, ADR-0028). Not due (status False): AnalysisDisabled (spec.analysis.maxAnalysesPerDay is 0, or the deprecated spec.maxAnalysesPerDay of v0.1.0 is still set to 0: remove it, see upgrade), DailyBudgetReached, BudgetNotFound (the ConfigMap shadewright-analysis-budget was deleted; recreate it empty), BudgetUnreadable, BudgetReadFailed, SettingsNotFound, SettingsUnreadable, SettingsIncomplete (the settings hold no spec.analysis.maxAnalysesPerDay, which the schema's defaults normally fill in), NotRecent (never analyzed and not seen within the recent window, by default the cooldown, 15 min: a symptom that stopped is not analyzed, a lasting state of a module's symptom source such as a KEDA ceiling never is skipped, and any new observation, an event series counting up again included, makes it due again once it has settled; the condition changing to NotRecent also writes a Normal event AnalysisSkipped on the Incident and counts in shadewright_analysis_skipped_not_recent_total, once until the Incident is next marked due (exactly once per NotRecent one analyzer process wrote that still stands when it next reads or writes the condition: a write whose answer was lost is reported by a later pass, but not when the Incident is marked due again before that pass, since it is analyzed then; after a restart or a leader change, a NotRecent written before is not reported again, and one the old leader writes during the handover can be reported by both leaders, so two events for one skip are possible then); a pass writes at most 20 of these, after the other marks, so a backlog takes a few passes), Debouncing, CoolingDown, NoNewData, Analyzing (a run is in progress; on the first pass after the run wrote its outcome it changes to Proposed or Escalated, even while the budget is unknown, and on the first pass after the analysis timeout to the reason decided then, such as CoolingDown, Debouncing or a budget reason; while the settings or the budget cannot be read, a run taken as lost keeps Analyzing), Proposed, Escalated (the condition Lifecycle says when a request that ended without success escalated it: RequestDenied, RequestFailed, ...), Recurred (escalated by a recurrence after resolution, not by an analysis), Resolved (never analyzed again: a symptom seen again escalates it, with the condition Recurred, within 24 hours of resolvedTime or without one, and opens the next occurrence incident-<64 hex>-<n> after), NotObserved, AnalysisStartUnknown and ForeignFingerprint (the name is not the one derived from the spec's fingerprint and occurrence number). The settings status carries UnknownModules (a name in spec.modules no module has), DetectionFailed and NoWatchedNamespaces (the analyzer watches no namespace; see No Incident appears). Without --triage-model no analysis runs, so AnalysisDue is a mark only.

A reviewer hint shows in status.handledHint (its source, comment ID and digest) with the Analyzed reason that answers it: Proposed (a replacement request was created), PlanUnchanged (the analysis proposed the plan of the request it would replace, so nothing was created), another reason of the analysis such as NoProposal, HintNotPending (the hint was no longer pending, so no replacement was created: a lost analysis of it was not run again, or the executor answered or declined it while the model ran), or, without an analysis, CoolingDown (the hint came within the cooldown since the last analysis) or BudgetSpent (the daily budget is used up or 0). After an analysis with a hint that created no request the Incident stays Proposed: the request the hint was given on still stands. A refused hint is not retried: post a new one.

No reply to a hint in the pull request (#542)? Look at reply on the hint in the request's status.hints (or on the command in status.refusedHints). Empty: the hint is still Pending or Reserved, writes are paused (the reply follows the pause), the request is not waiting for review, or the post failed and is tried again on the next look (the executor's log says "Could not post the reply"). NotRedactable: the reply, with its quote of the hint, held something the redactor would change, or its check ran out of the work budget of redaction, so nothing was posted (the log line names the comment, never the text). TooManyComments: the pull request has more than 1,000 comments, more than the executor reads to find an earlier reply of its own, so it posted none rather than risk a second one. Refused: the Git host refused the comment for good (the App's pull_requests: write, a rule). GaveUp: 5 tries failed in this process. None of these is asked again; the record in status stands for the answer. A command from someone without write access, a command not stored because the request already holds 10 hints, and a hint declined in the status write that ended the request (merged, closed) get no reply.

An analysis that ends without a request shows why in the reason of its Analyzed condition. Three of them are about the previous value of a change, which the analyzer takes from the cluster, never from the model: a memory limit from the subject's pod template, a maxReplicaCount from the subject's ScaledObject as read before the model call (design 3.3, ADR-0036). The fourth is about a ScaledObject that is not ready:

Reason Meaning What to do
PreviousValueUnknown The pod template the analyzer read has no container of the proposed name, sets no memory limit for it, sets one outside the quantity form described under ValueMismatch, or could not be read; for a KEDA change, the ScaledObject could not be read (a refused read is logged as a failed source) or sets no whole maxReplicaCount The action changes an existing limit: set one in Git first, or handle the incident by hand. For a KEDA change, check that the KEDA module's role is bound to the analyzer (analyzer.modules.keda) and that the ScaledObject exists and sets spec.maxReplicaCount as a whole number from 1 up
NoChange The proposed limit is the one the pod template already sets; during a rollout, older pods may still run with another Let the rollout finish, then check whether the symptom remains
ScalerNotReady The subject's ScaledObject is not ready by the rule the policy check applies (a trigger error, a fallback, a pause, a deletion or an HPA that cannot read its metrics), so a change of maxReplicaCount was not offered to the model, and its result made no other proposal. The model's diagnosis and the data it said were missing are in the analyzer's log and the analysis record Fix the trigger, or end the pause, in Git or KEDA; read the ScaledObject's Ready condition (kubectl get scaledobject -o yaml)
DirectionReversed Measured from the pod template's limit, the proposed change goes the other way than the model reasoned (an increase becomes a decrease, or back), or the model wrote the same previous and desired value, usually because older pods of a rollout hold another limit Read the template's limit and decide by hand: no analysis follows on its own (the Incident is Escalated, or stays Proposed when the analysis answered a reviewer hint)

No revert for a request that ended Failed with Verified False (ADR-0030 section 8)? Look at the failed request's events and its Incident. A Warning event RevertNotProposed on the request: its Incident is gone or has another UID, so the decision has nowhere to be recorded. A Warning event RevertAbandoned on the request (on the Incident when the request is gone): the proposer had decided on the revert and will not make it; the message and the entry's reason say why (table below). Events expire after about an hour, the reason stays: kubectl shadewright explain on the failed request or its Incident shows it. A Warning event RevertAbandonedButMade on the Incident: the revert exists while the entry says Abandoned; the analyzer's log has the error, and a person decides on the revert's pull request. The Incident's condition RevertsStopped (reason RevertListFull, with one Warning event RevertListFull on the Incident): status.revertsProposed holds 20 entries and no more reverts are proposed for that Incident. With no event, the analyzer's log says why: the request's Verified condition moved more than 24 hours ago or is more than five minutes ahead of the analyzer's clock (an upgrade or a start-up does not revert old failures), the Incident is being deleted, the target is gone, replaced, being deleted or of a kind the API server no longer serves, or the action cannot be inverted. A target the analyzer may not read (Forbidden, which an authorization webhook that fails, such as Azure RBAC on AKS, also answers) is retried with backoff until the 24 hour bound passes; the log shows each refused read. Each of these is left to a person: revert in Git by hand.

The Incident's status.revertsProposed has one entry per failed request the proposer decided on, by name and UID. Entries are never removed, so no failed request gets a second revert. The two exceptions are ADR-0030's known limits: the move to Created was lost and the revert was deleted before the retry, or two analyzers run without leader election.

State Means What to do
Pending The decision is taken and a create may still come. Each pass first looks for the revert: if it exists, the entry moves to Created. Otherwise it runs the checks again, then creates the revert and moves the entry to Created, or moves it to Abandoned. An entry whose request was deleted, whose name now belongs to another request, or whose request no longer gets a revert (NotRevertible), is settled when the analyzer starts leading and whenever the Incident changes Nothing while it changes. One that stays Pending is a read, a create or a status write that keeps failing with an error for a retry (the API server is unavailable, a target read refused as Forbidden, a conflict that does not settle): the analyzer's log names the error
Created The revert exists or existed. Nothing more is done for this failed request, also after the revert was deleted Approve or close the revert's pull request; kubectl shadewright explain on the failed request shows it on the Revert line
Abandoned Final: no revert will be made for this failed request. The entry's reason says why Decide by hand: revert in Git if the change is still wanted undone

The reason of an Abandoned entry is set with that state and never changes:

Entry reason Means What to do
TargetGone The failed request's target is not found, was replaced by another object of that name (another UID) or is being deleted Nothing to revert on that object; if a new one took its place, decide by hand
TargetKindUnsupported The API server no longer serves the target's kind (a KEDA ScaledObject after KEDA was removed, for example), or the action cannot target that kind Revert in Git by hand if the change is still in the repository
OutsideAgeBound The failed request's Verified condition moved more than 24 hours ago (or is more than five minutes ahead of the analyzer's clock, or has no time) before the revert could be created. A target the analyzer was refused access to ends here too Read the analyzer's log for Forbidden on the target; fix the analyzer's read role if it was that, then revert by hand
IncidentDeleting The Incident is being deleted None: the revert would have nowhere to be recorded
RequestGone The failed request was deleted, is being deleted, or its name now belongs to another request (another UID) The executor's link check would refuse a revert of a request that no longer exists; revert by hand if needed
NotRevertible The failed request is there with its UID, but no longer ended Failed with Verified False, or its action can no longer be inverted Read the request's phase and action; decide by hand
NameTaken A request with the revert's name exists and does not revert this request; it is left as it is Look at that request: it was not made by the proposer for this failure
CreateInvalid The API server refused the revert as invalid. The event has a fixed sentence; the analyzer's log has the API server's error Read the log line "The API server refused the revert as invalid" and report it: the proposer builds every field of the revert

Text hidden around a secret

A diagnosis or a stored record shows [REDACTED:...] (or [credential], ***) where you expected more of the text. Redaction hides the secret and sometimes text next to it, on the safe side (#845):

  • A field whose name says secret. The whole value of a map key, a field or a metric label whose name is a secret key (password, api_key, auth, pass, DB_PASSWORD) is hidden, line breaks included, but not the entries after it. So are every value under a field named like secret or imagePullSecrets (names and paths of the Secrets it refers to), and the value or values next to a key or name that is a secret key.
  • A key inside free text. In an Event note, a log line or a message, the value after a secret key and a separator (token: <value>, password=<value>) is hidden up to where the rule ends it: in the one-line Event list, the end of that line of the note, or the end of the indented lines of a block under it, and the rest of the note stays; in get_resource, where a line break is written \n, up to the next blank. A key of the Password= connection-string form and an Authorization value run to the end of the line. Text after ->, => or == behind a key word, and after a lone carriage return, goes with the value too.
  • A list of links. <https://example.com>,<mailto:ops@example.com> is hidden from the first link to the @, as a URL with user info.
  • A large object. Not a secret: when the object get_resource reads does not fit the tool's bound as JSON, whole values are left out, then map keys, each replaced by (N bytes left out), and the result is labelled "cut to the result bound".

None of this can be turned off; patterns supplied by the operator only add to it.

Withheld by redaction

Symptoms: a read tool's result in an analysis is "could not fetch: withheld by redaction", a context block is "could not fetch" with the label withheld by redaction, the analysis escalates with that section among its failed sources, or a pull request body shows [REDACTED:withheld] with a Withheld paragraph. The counter shadewright_redaction_withheld_total rises, by reason:

  • work: the redaction of that text ran out of its work budget (1,024 steps per byte of the text plus a fixed amount). Nothing of the text is shown, never part of it. No shape of the test corpora is known to need that much work: the last ones that did (a flag and a comma repeated, such as --token,} or -password,; quoted pairs glued with no separator, such as auth="a" repeated on one line; TOKEN="a" repeated before a blank line of 4 KiB) cost at most about 300 steps per byte since #962.
  • size: the text is longer than 4 MiB, or a read tool's answer or a section of the context build is longer than 1.5 MiB, withheld before any work (a withheld section is a source that could not be fetched). list_events does not reach it through its notes: past 1.5 MiB it shows older long notes as <long note: N bytes> and says how many.
  • heap: the text is made of more parts than its bytes allow, withheld before any work so that its redaction holds no more memory than its bound: a tool's answer of more than one piece for every 2 bytes, or a sequence of more than one string for every 16 bytes, past the first 4,096 (TestHeapGateWithholdsTooManyParts). A read tool writes each value with its key and the text around it, so an answer of an object stays under that; an answer over it is a list or a map of almost empty values, hundreds of thousands of them.
  • wait: the redaction waited for others to finish (below) until the caller's deadline (a read tool's timeout, the context build's, one try of an analysis record write) or 2 minutes passed, and was withheld before any work. The analysis store checks the record again on its next try; when every try waited, the record is not written (shadewright_analysis_records_total failed, and the Warning event AnalysisRecordNotWritten says the check waited on every try), never refused. shadewright_redaction_heap_waits_total counts every wait, also those that ended in time.

What to do: find the source the block or tool names (the pod's log, the object, the metric) and look at it with your own access. A workload that writes such text in its logs or status makes the analyses of its own Incidents escalate each time; this is bounded by the daily analysis budget, and the counter shows how often. A tenant can write text of these shapes on purpose to make its own text unreadable to the analyzer; that costs it analyses, never shows any of the text, and stays within the same daily cap. Any rise of work is worth an issue: it is a new shape whose redaction work grows faster than its text or passes the budget (design 10.3). Redactions running at once share a limit of half the Go memory limit of the process (the analyzer's own; the executor, which also redacts, has its own): each takes 4 MiB plus 100 bytes per byte of its text, so a text over about 1.1 MiB runs alone with the analyzer's default 256Mi, and a large text makes the others wait for it. Many waits, or wait rising, mean analyses running side by side on large texts: raise analyzer.resources.limits.memory (the chart sets GOMEMLIMIT to 90 percent of it, so the limit follows), or lower maxConcurrentAnalyses. Without a Go memory limit (GOMEMLIMIT) the limit is a fixed 64 MiB and the analyzer logs no Go memory limit (GOMEMLIMIT) is set once; both install paths set one. With a memory limit under 256Mi the analyzer logs the Go memory limit (GOMEMLIMIT) is under the size redaction's heap limit was measured for once at start: one large entry still runs alone and can hold up to about 117 MiB, so the analyzer may be OOM-killed; raise the limit to 256Mi or more. The collector never waits for this limit: it redacts event notes of at most 4 KiB outside it and does not read a longer note, whose Incident shows <long note: N bytes> as its symptom; the model reads such a note through its events tool.

The Incident cap is reached

Symptoms: shadewright_incident_observations_refused_total rises, a Warning event with reason IncidentCapReached on the analyzer's Pod, and a new problem produces no Incident, nor does a symptom of a Resolved Incident seen again more than 24 hours after its resolution (its next occurrence is a new Incident too). The cap is --max-incidents (500) and counts every Incident, Resolved ones included. Before it is reached, at 80% of the cap (400 Incidents), the gauge shadewright_incident_cap_near turns 1 and the analyzer's Pod gets a Warning event IncidentCapNear; watch shadewright_incidents by phase to see how many are Resolved and safe to clear. The analyzer resolves an Incident after an hour with nothing new and no active request, or when its request Succeeded; a request in Merged counts as ended until verification is built (#92). An Incident whose newest occurrence is a lasting state of a module never goes quiet, so it leaves only by a request or a person.

Clean-up is manual: the analyzer has no delete on Incidents. Follow Clear Resolved Incidents at the cap.

If the cap fills again at once, the namespaces are producing many fingerprints: see Limit the namespaces it watches.

No Incident appears

The analyzer records Incidents only for symptoms in the namespaces it watches. The Helm chart's default analyzer.watchNamespaces is empty, which watches no namespace (never all of them): the analyzer starts and is Ready, but reads no events or pods. Check, in this order:

  • kubectl -n shadewright-system logs deploy/shadewright-analyzer | grep "Watching" says Watching no namespaces, or lists the namespaces.
  • The gauge shadewright_analyzer_watched_namespaces is 0.
  • kubectl get remediationsettings default -o jsonpath='{.status.conditions[?(@.type=="NoWatchedNamespaces")]}' shows True with reason NoNamespacesWatched. The condition appears only once a RemediationSettings object exists, and the chart creates none by default (settings.create: false).

To watch namespaces, upgrade with the list (--set 'analyzer.watchNamespaces={team-a,team-b}'); each one must exist and gets a read-only RoleBinding. With the kustomize install, set --watch-namespaces and add the RoleBindings as config/watch does. If the list is set and still nothing appears, the namespace may lack its RoleBinding (the analyzer's reads are refused there) or have no symptom the collector knows.

For the symptoms of a module (KEDA, Flux, Kyverno, cloudflared), the module must be enabled: spec.modules.integrations of the RemediationSettings lists it. Detection alone does not turn a module on. kubectl get remediationsettings default -o jsonpath='{.status.integrations}' shows "detected":true,"active":false for a module that is installed but not listed; its symptom sources then open no Incident, and SymptomSourcesNotWatched does not report it, since that condition covers active modules only. Add the name, for example spec.modules.integrations: [keda].

For an enabled module, the analyzer must also be allowed to read the add-on's kinds:

  • kubectl get remediationsettings default -o jsonpath='{.status.conditions[?(@.type=="SymptomSourcesNotWatched")]}' shows True with reason SourcesNotWatched and names each kind with NotGranted (turn on the module's value under analyzer.modules in the chart), NotServed (the add-on's CRD is not installed) or Failed (the check or the watch failed, for example list is granted but not watch; the analyzer's log has the error, and a failed watch is started again after a backoff of one minute, doubled after each failure in a row up to 30 minutes). Unknown with reason SourcesNotChecked means a kind has not been checked yet: it changes within 30 seconds.
  • The gauge shadewright_analyzer_symptom_source_watched is 0 for that kind, and the analyzer logs Not watching a symptom source kind once per change (Watch of a symptom source kind failed for each failed watch).
  • With the Kyverno module enabled and analyzer.modules.kyverno.clusterWide.enabled off (the least-privilege default), ClusterPolicy and ClusterPolicyReport are left out on purpose: they are not named in the condition, the gauge has no series for them, and the log says the chart leaves its optional grant out once. Turn the value on to read them. The chart tells the analyzer which grants it rendered (--module-grants); a kustomize install passes no such flag, so there every module kind is checked and one without its role is reported as NotGranted.

A component Pod stays not Ready

A Pod of the executor, the analyzer or the verifier turns Ready once the informers of the kinds it cannot work without have synced (health probes lists them). Until then kubectl -n shadewright-system get pods shows it 0/1, and kubectl describe pod shows one of two startup probe failures:

  • connect: connection refused: the manager has not started its probe server yet. That takes a moment after each start. If the restart count rises with it, the process exits before it serves: kubectl logs --previous says why, for example an API server it could not reach to map the kinds it caches.
  • HTTP probe failed with statuscode: 500: the manager runs, and the check cache-sync is waiting for an informer.

Ask the Pod itself:

kubectl -n shadewright-system port-forward deploy/shadewright-analyzer 8081:8081 &
curl -s 'localhost:8081/readyz?verbose'   # [-]cache-sync failed: reason withheld, until the informers sync

The check never says which kind it waits for. The log does:

kubectl -n shadewright-system logs deploy/shadewright-analyzer | grep -i -E 'forbidden|failed to list|failed to watch|informer of a required kind'
  • forbidden: the component may not list or watch one of the kinds it waits for. For the analyzer this is usually a watched namespace without its RoleBinding (analyzer.watchNamespaces, or config/watch with kustomize); for any component, a Role or ClusterRole changed by hand. The component keeps retrying, and turns Ready without a restart once the grant is back, if that happens within the startup budget.
  • failed to list with a timeout or a refused connection, or Failed to get the informer of a required kind: the API server is slow or not reachable from the Pod, or a CRD of the project is missing (kubectl get crd | grep shadewright).
  • No such line: the informers are still filling. A large watched namespace takes longer; the startup probe allows five minutes.

A missing add-on CRD (Flux, KEDA, Kyverno) or a module grant that is off never keeps a Pod not Ready: see No Incident appears for how those show.

After five minutes without a sync the kubelet restarts the container: the restart count rises, and kubectl logs --previous shows the run before. Once a Pod has been Ready, it stays Ready until the container stops, also through a later API server outage; such an outage shows in the log and the metrics, not in readiness. A standby replica is Ready like the leader once it has synced; one that is not Ready has one of the causes above, not a missing Lease.

OpenAI-compatible model refusals

An Incident's Analyzed condition reports these reasons before any request is sent:

Reason Meaning and action
EndpointNotAllowed Settings do not match an install-time compatible base URL and inference API. Check the declared host, port and path; the Foundry suffix list does not allow compatible endpoints
ModelNotAllowed Settings deployment is absent from that endpoint's models list. Choose a declared name byte for byte or have the installation administrator change the declaration after qualifying the model and its gateway alias
ProviderNotConfigured The key source is unavailable or malformed. Missing or empty files are retried within the call bound; nonempty keys shorter than 16 bytes are malformed and are not retried. Fixed errors name the minimum without exposing the key

After a reply arrives, two fixed texts in the analyzer log refuse it as malformed model output (reason InvalidOutput, retried and handed off like any other malformed reply):

Log text Meaning and action
openai-compatible: the reply contains a credential The endpoint's key appeared in the reply, also split across fields or parts, or with other characters (of any kind but ASCII letters, digits and the key's own punctuation) between its characters. Control characters inside the key are dropped too; the visible remains of an escape sequence ([0m) are letters like any other and break the key, as they do in the stored text. Rotate the key, then find out why the server or gateway echoes request headers
openai-compatible: the reply has a field of the wrong type A content or argument field has the wrong JSON type, so the reply could not be checked for a split key; no key was seen. Do not rotate the key for this. Check the server and its model against the declared inference API with the qualification runbook

An empty or invalid model list, duplicate base or segment path prefix on the same scheme, host and port stops chart rendering and analyzer startup. Model names match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$. See the qualification runbook.