Skip to content

CRD API Reference

This reference is generated directly from the Kubernetes CustomResourceDefinition OpenAPI v3 schemas under config/crd/bases/. Regenerate it with make gen-docs.

Kind Group / Version Scope Short Names Plural
Automation faberops.dev/v1beta1 Namespaced fauto automations
AutomationRun faberops.dev/v1beta1 Namespaced frun automationruns
Connector faberops.dev/v1beta1 Namespaced fconn connectors
Playbook faberops.dev/v1beta1 Namespaced fpb playbooks
Repository faberops.dev/v1beta1 Namespaced frepo repositories
TargetCluster faberops.dev/v1beta1 Namespaced ftc targetclusters
TrustPolicy faberops.dev/v1beta1 Namespaced ftp trustpolicies

Automation binds a Playbook to target clusters, optional repositories, notification connectors, requested trust level, and evidence-gated earned trust state.

  • API Version: faberops.dev/v1beta1
  • Kind: Automation
  • Scope: Namespaced
  • Resource Names: plural automations, singular automation, shortNames fauto
  • Subresources: status
Name Type JSONPath Description
Trust string .spec.trust -
Suspended boolean .spec.suspended -
Ready boolean .status.ready -
Decision string .status.trustDecision -
Age date .metadata.creationTimestamp -
Schema Path Rule Message
spec has(self.playbookRef) != (has(self.playbook) && has(self.playbook.oci) && size(self.playbook.oci) > 0) exactly one of playbookRef or playbook.oci must be configured
spec.overrides.correlation !has(self.window) || size(self.window) == 0 || (duration(self.window) > duration('0s') && duration(self.window) <= duration('5m')) correlation window must be greater than 0s and at most 5m

AutomationSpec binds a Playbook (by local reference or OCI reference) to parameters, target clusters, optional repositories, requested trust level, notification connectors, and small overrides.

Field Type Required Default Constraints Description
spec.connectorRefs []object no - maxItems: 32 ConnectorRefs optionally pins additional same-namespace Connectors (for example prometheus, mcp, hubble, or tetragon) instead of relying on namespace defaults.
spec.connectorRefs[].name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.memory boolean no - - Memory enables slim FTS5 operational memory recall and capture for this automation. Defaults to false.
spec.notify []object no - maxItems: 16 Notify lists same-namespace Connector references receiving briefs and approval notifications. When omitted, the namespace default notification Connector is used.
spec.notify[].name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.overrides object no - - Overrides applies bounded per-automation model, limit, scope, and prompt overrides.
spec.overrides.closeStalePRs boolean no - - CloseStalePRs closes open agent PRs when a subsequent run resolves to noop with zero diff.
spec.overrides.correlation object no - - Correlation overrides cross-service incident correlation settings.
spec.overrides.correlation.enabled boolean no - - Enabled activates cross-service incident correlation when true.
spec.overrides.correlation.groupBy string no - enum: "signature", "namespace", "owner", "automation" GroupBy selects the correlation grouping key (signature, namespace, owner, or automation). Defaults to signature at runtime.
spec.overrides.correlation.maxGroupSize integer (int32) no - min: 2, max: 100 MaxGroupSize caps the maximum number of correlated trigger events absorbed into one run. Defaults to 20 at runtime.
spec.overrides.correlation.window string no - - Window bounds the collection window before flushing a correlated burst into one run. Defaults to 30s at runtime and must not exceed 5m.
spec.overrides.dedupeKey string no - maxLength: 512 DedupeKey overrides the CEL expression deriving run deduplication keys.
spec.overrides.fallbackModel string no - maxLength: 256 FallbackModel overrides the fallback model identifier when the primary model fails.
spec.overrides.limits object no - - Limits overrides governor caps inherited from the Playbook.
spec.overrides.limits.cooldown string no - - Cooldown enforces a minimum interval between completed runs for the same dedupe key.
spec.overrides.limits.maxConcurrent integer (int32) no - min: 1 MaxConcurrent limits simultaneous active runs for one automation.
spec.overrides.limits.maxCostUsd string no - pattern: ^[0-9]+(\.[0-9]+)?$ MaxCostUSD caps cumulative estimated spend in USD as a decimal string (for example “0.10”).
spec.overrides.limits.maxInputTokens integer (int64) no - min: 1 MaxInputTokens caps cumulative input tokens per run.
spec.overrides.limits.maxOutputTokens integer (int64) no - min: 1 MaxOutputTokens caps cumulative output tokens per run.
spec.overrides.limits.maxQueuedRuns integer (int32) no - min: 0 MaxQueuedRuns caps active or queued runs before new triggers are dropped.
spec.overrides.limits.maxSteps integer (int32) no - min: 1 MaxSteps caps the number of ReAct loop steps per run.
spec.overrides.limits.settleWindow string no - - SettleWindow waits before starting a run so transient flapping events coalesce.
spec.overrides.limits.timeout string no - - Timeout bounds total wall-clock execution duration for one run.
spec.overrides.limits.toolOutputBytes integer (int32) no - min: 1024 ToolOutputBytes caps inline tool stdout/stderr before spilling full output to the store.
spec.overrides.maxOutputTokens integer (int32) no - min: 256 MaxOutputTokens sets the per-turn output token ceiling.
spec.overrides.model string no - maxLength: 256 Model overrides the primary model identifier for this automation.
spec.overrides.modelConnectorRef object no - - ModelConnectorRef selects a specific same-namespace llm Connector instead of the namespace default.
spec.overrides.modelConnectorRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.overrides.namespaces []string no - maxItems: 64 Namespaces scopes Kubernetes inspection targets to these namespaces.
spec.overrides.promptAppend string no - maxLength: 4096 PromptAppend appends short environment-specific instructions to the Playbook prompt.
spec.overrides.reasoningEffort string no - enum: "none", "low", "medium", "high", "xhigh" ReasoningEffort hints reasoning token effort for reasoning-capable models.
spec.overrides.verifierModel string no - maxLength: 256 VerifierModel overrides the independent verifier model used under AITL.
spec.parameters map[string]string no - - Parameters supplies key-value template parameters bound into the Playbook.
spec.playbook object no - - Playbook references a catalog Playbook directly by OCI URI. Mutually exclusive with playbookRef.
spec.playbook.digest string no - pattern: ^(sha256:[0-9a-f]{64})?$, maxLength: 128 Digest optionally pins the exact SHA-256 digest of the OCI playbook artifact.
spec.playbook.oci string yes - minLength: 1, maxLength: 512 OCI is the OCI reference to a catalog playbook (for example ghcr.io/faberops/catalog/playbooks/cert-secret-expiry:2).
spec.playbookRef object no - - PlaybookRef references a same-namespace Playbook CustomResource. Mutually exclusive with playbook.oci.
spec.playbookRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.repositoryRefs []object no - maxItems: 32 RepositoryRefs binds Repository objects used for pull requests and validation. Optional for read-only Observe workflows or when the Ownership resolver selects the repository.
spec.repositoryRefs[].name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.suspended boolean no - - Suspended pauses automated triggers and scheduled runs when true.
spec.targetClusters []object no - maxItems: 32 TargetClusters binds remote TargetCluster objects inspected by this automation. Empty targets the local controller cluster.
spec.targetClusters[].name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.trust string no "HITL" enum: "Observe", "HITL", "AITL", "Auto" Trust sets the requested progressive autonomy level for this automation. Effective autonomy is always bounded by the Playbook ceiling, TrustPolicy ceiling, earned trust level, and active runtime freezes or kill switches.

AutomationStatus defines the observed reconciliation and per-action earned trust state.

Field Type Required Default Constraints Description
status.activeRuns integer (int32) no - min: 0 ActiveRuns counts currently in-flight AutomationRuns for this Automation.
status.conditions []object no - - Conditions represent the latest available observations of the automation state.
status.conditions[].lastTransitionTime string (date-time) yes - - lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
status.conditions[].message string yes - maxLength: 32768 message is a human readable message indicating details about the transition. This may be an empty string.
status.conditions[].observedGeneration integer (int64) no - min: 0 observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
status.conditions[].reason string yes - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$, minLength: 1, maxLength: 1024 reason contains a programmatic identifier indicating the reason for the condition’s last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
status.conditions[].status string yes - enum: "True", "False", "Unknown" status of the condition, one of True, False, Unknown.
status.conditions[].type string yes - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$, maxLength: 316 type of condition in CamelCase or in foo.example.com/CamelCase.
status.lastRunAt string (date-time) no - - LastRunAt records when the most recent AutomationRun started.
status.lastRunName string no - maxLength: 253 LastRunName records the name of the most recent AutomationRun created for this Automation.
status.observedGeneration integer (int64) no - - ObservedGeneration is the most recent generation observed by the controller.
status.ready boolean no - - Ready indicates whether the referenced Playbook, Connectors, and Repositories resolved cleanly.
status.trust []object no - maxItems: 32 Trust tracks evidence-gated earned autonomy per Playbook action.
status.trust[].action string yes - minLength: 1, maxLength: 128 Action is the Playbook action name tracked by this trust record.
status.trust[].earned string yes - enum: "Observe", "HITL", "AITL", "Auto" Earned is the current evidence-gated trust level earned by this action.
status.trust[].effective string no - enum: "Observe", "HITL", "AITL", "Auto" Effective is the most recently computed effective trust level for this action.
status.trust[].lastTransitionAt string (date-time) no - - LastTransitionAt records when Earned last changed due to promotion or automatic demotion.
status.trust[].precision string no - pattern: ^(0(\.[0-9]+)?|1(\.0+)?)?$, maxLength: 16 Precision is the verified precision ratio over the evaluation window as a decimal string (0 to 1).
status.trust[].promotionEligible boolean no - - PromotionEligible indicates whether this action satisfies the active TrustPolicy promotion criteria.
status.trust[].reason string no - maxLength: 512 Reason explains the current earned trust state or last promotion or demotion event.
status.trust[].revertedCount integer (int32) no - min: 0 RevertedCount is the count of Reverted or failed outcomes within the promotion window.
status.trust[].verifiedCount integer (int32) no - min: 0 VerifiedCount is the count of post-merge or post-action Verified outcomes within the promotion window.
status.trustDecision string no - maxLength: 512 TrustDecision displays the verbatim human-readable outcome of the canonical trust formula.

AutomationRun records one immutable execution of an Automation along with its cryptographically verifiable sandbox evidence and post-merge verification outcome.

  • API Version: faberops.dev/v1beta1
  • Kind: AutomationRun
  • Scope: Namespaced
  • Resource Names: plural automationruns, singular automationrun, shortNames frun
  • Subresources: status
Name Type JSONPath Description
Automation string .spec.automationRef.name -
Phase string .status.phase -
Trust string .status.trustDecision.effective -
Verified string .status.verification.state -
PR integer .status.pr.number -
Age date .metadata.creationTimestamp -
Schema Path Rule Message
spec self == oldSelf AutomationRun spec is immutable once created

AutomationRunSpec defines the immutable execution inputs of one AutomationRun.

Field Type Required Default Constraints Description
spec.actor string no - maxLength: 256 Actor identifies the verified user or service account that initiated the run, when applicable.
spec.automationRef object yes - - AutomationRef references the owning Automation in the same namespace.
spec.automationRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.dedupeKey string no - maxLength: 256 DedupeKey identifies the logical target used for deduplication, cooldown, and history lookup.
spec.dryRun boolean no - - DryRun runs investigation, validation, and evidence sealing without executing mutations.
spec.input any (raw JSON) no - - Input carries structured JSON input validated against Playbook.spec.inputSchema.
spec.triggerOrigin string no - enum: "trigger", "crd", "cli", "api", "ui" TriggerOrigin identifies the trust boundary that created this run.
spec.triggerSource string yes - minLength: 1, maxLength: 64 TriggerSource identifies what created this run (cron, webhook, kubernetes, connector, manual, api, ui).

AutomationRunStatus holds compact execution metadata kept strictly under 64 KiB for etcd hygiene. Full transcripts, raw tool outputs, and evidence bundles live in internal/store.

Field Type Required Default Constraints Description
status.actionResults []object no - maxItems: 32 ActionResults holds compact execution outcomes for routed actions triggered by this run.
status.actionResults[].actionName string yes - minLength: 1, maxLength: 128 ActionName identifies the PlaybookAction executed.
status.actionResults[].executedAt string (date-time) no - - ExecutedAt records when the action finished executing.
status.actionResults[].kind string yes - enum: "open_pr", "push_to_pr", "comment_on_pr", "create_issue", "k8s_action", "notify", "webhook" Kind is the ActionKind executed.
status.actionResults[].message string no - maxLength: 1024 Message holds a compact human-readable status or error message.
status.actionResults[].status string yes - enum: "succeeded", "failed", "skipped", "blocked", "pending_approval", "observe" Status summarizes the outcome (succeeded, failed, skipped, blocked, pending_approval, or observe).
status.actionResults[].target string no - maxLength: 512 Target identifies the affected resource, pull request, issue, or connector.
status.approval object no - - Approval holds human-in-the-loop approval state and quorum records.
status.approval.approvals []object no - maxItems: 10 Approvals records individual verified approvals collected so far.
status.approval.approvals[].actor string yes - minLength: 1, maxLength: 256 Actor identifies the verified user who submitted this approval.
status.approval.approvals[].comment string no - maxLength: 512 Comment holds an optional short review note attached to this approval.
status.approval.approvals[].decidedAt string (date-time) no - - DecidedAt records when this approval was recorded.
status.approval.comment string no - maxLength: 2048 Comment holds an optional review note attached to the decision.
status.approval.decidedAt string (date-time) no - - DecidedAt records when the approval decision was finalized.
status.approval.decidedBy string no - maxLength: 256 DecidedBy identifies the human actor or system that finalized the approval.
status.approval.expiresAt string (date-time) no - - ExpiresAt records when a pending approval automatically expires.
status.approval.required boolean yes - - Required reports whether human approval was required for this run.
status.approval.requiredApprovals integer (int32) no - min: 1, max: 5 RequiredApprovals is the total number of distinct verified approvals required before this run transitions out of WaitingApproval.
status.approval.state string no - enum: "Pending", "Approved", "Rejected", "Expired" State is the current approval state (Pending, Approved, Rejected, or Expired).
status.conditions []object no - - Conditions represent the latest available observations of the run state.
status.conditions[].lastTransitionTime string (date-time) yes - - lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
status.conditions[].message string yes - maxLength: 32768 message is a human readable message indicating details about the transition. This may be an empty string.
status.conditions[].observedGeneration integer (int64) no - min: 0 observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
status.conditions[].reason string yes - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$, minLength: 1, maxLength: 1024 reason contains a programmatic identifier indicating the reason for the condition’s last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
status.conditions[].status string yes - enum: "True", "False", "Unknown" status of the condition, one of True, False, Unknown.
status.conditions[].type string yes - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$, maxLength: 316 type of condition in CamelCase or in foo.example.com/CamelCase.
status.error string no - maxLength: 2048 Error holds a concise summary when the run failed.
status.evidence object no - - Evidence records the sandbox validation verdict digest, egress audit list, diff metrics, secret scan outcome, and server-side dry-run result.
status.evidence.bundleDigest string no - maxLength: 128 BundleDigest is the SHA-256 digest of the full off-etcd evidence bundle stored in internal/store.
status.evidence.diffFiles integer (int32) no - min: 0 DiffFiles is the number of files changed in the validated diff.
status.evidence.diffLines integer (int32) no - min: 0 DiffLines is the total added and removed lines in the validated diff.
status.evidence.dryRunPassed boolean no - - DryRunPassed records whether Kubernetes server-side dry-run (dryRun=All) succeeded.
status.evidence.egressHosts []string no - maxItems: 64 EgressHosts lists every external host permitted during execution (empty for zero-egress runs).
status.evidence.inputsDigest string no - maxLength: 128 InputsDigest is the SHA-256 digest of the normalized run inputs.
status.evidence.modelDigest string no - maxLength: 128 ModelDigest is the SHA-256 digest binding the model identifier and prompt hash.
status.evidence.recordedAt string (date-time) no - - RecordedAt records when the evidence verdict was computed and sealed.
status.evidence.sandboxClaimName string no - maxLength: 253 SandboxClaimName records the ephemeral agent-sandbox SandboxClaim name used for validation.
status.evidence.sandboxClass string no - maxLength: 128 SandboxClass records the sandbox runtime class or template class (for example gvisor).
status.evidence.secretScanPassed boolean no - - SecretScanPassed records whether deterministic secret scanning passed with zero findings.
status.evidence.validatorCommand string no - maxLength: 1024 ValidatorCommand records the validation command executed inside the sandbox.
status.evidence.validatorExitCode integer (int32) no - - ValidatorExitCode records the process exit code of the sandbox validation command (0 indicates pass).
status.evidence.verdictDigest string no - maxLength: 128 VerdictDigest is the canonical SHA-256 digest covering inputs, validator execution, egress hosts, diff summary, secret scan, and dry-run verdict in sha256 hex format.
status.finishedAt string (date-time) no - - FinishedAt records when execution reached a terminal phase.
status.observedGeneration integer (int64) no - - ObservedGeneration is the most recent generation observed by the controller.
status.output any (raw JSON) no - - Output holds compact structured JSON matching Playbook.spec.outputSchema.
status.phase string no - enum: "Pending", "Settling", "Running", "Verifying", "WaitingApproval", "Succeeded", "Failed", "Skipped", "Cancelled" Phase is the current lifecycle phase of the run.
status.pr object no - - PR holds pull request metadata created or updated by this run.
status.pr.branch string no - maxLength: 256 Branch is the head branch name used for the pull request.
status.pr.commitSha string no - maxLength: 128 CommitSHA is the latest commit SHA created by the run.
status.pr.number integer (int32) no - - Number is the forge pull request number.
status.pr.state string no - enum: "open", "merged", "closed", "skipped", "failed" State is the last observed state of the pull request.
status.pr.url string no - maxLength: 2048 URL is the HTML URL of the pull request.
status.pr.verified boolean no - - Verified reports whether the commit carries a verified forge signature.
status.startedAt string (date-time) no - - StartedAt records when execution started.
status.steps integer (int32) no - min: 0 Steps is the number of ReAct steps executed.
status.transcriptRef string no - maxLength: 256 TranscriptRef is an opaque reference pointing to the full run record and artifacts stored off-etcd in internal/store.
status.trustDecision object no - - TrustDecision records the canonical trust formula outcome applied to this run.
status.trustDecision.blockedBy string no - maxLength: 64 BlockedBy identifies which factor limited or capped autonomy (for example trust_policy_ceiling, change_freeze, or kill_switch).
status.trustDecision.budgetExceeded boolean no - - BudgetExceeded reports whether a TrustPolicy action or cost budget was exceeded.
status.trustDecision.decidedAt string (date-time) no - - DecidedAt records when the trust decision was evaluated.
status.trustDecision.effective string yes - enum: "Observe", "HITL", "AITL", "Auto" Effective is the final trust level enforced for this run.
status.trustDecision.freezeActive boolean no - - FreezeActive reports whether an active change freeze window capped autonomy to Observe.
status.trustDecision.killSwitchActive boolean no - - KillSwitchActive reports whether a TrustPolicy or global kill switch capped autonomy to Observe.
status.trustDecision.reason string no - maxLength: 512 Reason holds the verbatim human-readable explanation of the trust decision.
status.trustDecision.requested string no - enum: "Observe", "HITL", "AITL", "Auto" Requested is the trust level requested by the Automation.
status.usage object no - - Usage summarizes token counts and estimated USD spend.
status.usage.cachedTokens integer (int64) no - - CachedTokens is the subset of input tokens served from prompt cache.
status.usage.costUsd string no - pattern: ^[0-9]+(\.[0-9]+)?$ CostUSD is the cumulative estimated cost in USD as a decimal string.
status.usage.inputTokens integer (int64) no - - InputTokens is the total input token count across all LLM turns.
status.usage.outputTokens integer (int64) no - - OutputTokens is the total output token count across all LLM turns.
status.usage.reasoningTokens integer (int64) no - - ReasoningTokens is the reasoning token count reported by reasoning models.
status.verification object no - - Verification records post-merge or post-action recovery verification state.
status.verification.checkedAt string (date-time) no - - CheckedAt records when verification was last evaluated.
status.verification.commitSha string no - maxLength: 128 CommitSHA records the merged or reverted commit SHA verified by the controller.
status.verification.message string no - maxLength: 1024 Message holds a compact human-readable verification summary or failure reason.
status.verification.state string yes - enum: "Pending", "Verified", "Reverted", "Failed", "Skipped" State is the current verification outcome (Pending, Verified, Reverted, Failed, or Skipped).

Connector declares a typed external or in-cluster endpoint and its credential reference. Listing all Connectors in a cluster provides the complete egress inventory.

  • API Version: faberops.dev/v1beta1
  • Kind: Connector
  • Scope: Namespaced
  • Resource Names: plural connectors, singular connector, shortNames fconn
  • Subresources: status
Name Type JSONPath Description
Type string .spec.type -
URL string .spec.url -
Default boolean .spec.default -
Ready boolean .status.ready -
Age date .metadata.creationTimestamp -
Schema Path Rule Message
spec self.url.startsWith('https://') || self.url.startsWith('http://') || self.url.startsWith('grpc://') || self.url.startsWith('grpcs://') || self.url.startsWith('oci://') url must start with https://, http://, grpc://, grpcs://, or oci://

ConnectorSpec defines a typed external or in-cluster endpoint, its credential reference, allowed capabilities, and non-secret configuration.

Field Type Required Default Constraints Description
spec.allowedTools []string no - maxItems: 64 AllowedTools optionally restricts callable MCP tool names when Type is mcp.
spec.capabilities []string no - maxItems: 4, item enum: "read", "notify", "write", "trigger" Capabilities declares which operations (read, notify, write, trigger) this connector allows.
spec.config map[string]string no - - Config holds optional non-secret type-specific key-value settings (for example protocol, defaultModel, roomId, hmacHeader, or tlsServerName).
spec.default boolean no - - Default marks this Connector as the namespace default for its Type when an Automation does not specify an explicit reference.
spec.secretRef object no - - SecretRef references a same-namespace Secret key holding authentication credentials.
spec.secretRef.key string yes - minLength: 1, maxLength: 253 Key within the Secret data map.
spec.secretRef.name string yes - minLength: 1, maxLength: 253 Name of the Secret in the same namespace.
spec.type string yes - enum: "llm", "prometheus", "loki", "victorialogs", "alertmanager", "grafana", "pagerduty", "slack", "matrix", "webhook", "mcp", "hubble", "tetragon", "oci" Type selects the connector protocol and integration driver.
spec.url string yes - minLength: 1, maxLength: 2048 URL is the endpoint address for this connector.

ConnectorStatus defines the observed readiness and egress inventory state of a Connector.

Field Type Required Default Constraints Description
status.conditions []object no - - Conditions represent the latest available observations of the connector state.
status.conditions[].lastTransitionTime string (date-time) yes - - lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
status.conditions[].message string yes - maxLength: 32768 message is a human readable message indicating details about the transition. This may be an empty string.
status.conditions[].observedGeneration integer (int64) no - min: 0 observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
status.conditions[].reason string yes - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$, minLength: 1, maxLength: 1024 reason contains a programmatic identifier indicating the reason for the condition’s last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
status.conditions[].status string yes - enum: "True", "False", "Unknown" status of the condition, one of True, False, Unknown.
status.conditions[].type string yes - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$, maxLength: 316 type of condition in CamelCase or in foo.example.com/CamelCase.
status.lastCheckedAt string (date-time) no - - LastCheckedAt records when connector readiness was last checked.
status.observedGeneration integer (int64) no - - ObservedGeneration is the most recent generation observed by the controller.
status.ready boolean no - - Ready indicates whether credentials and endpoint configuration passed validation.
status.resolvedHost string no - maxLength: 256 ResolvedHost records the normalized host and port derived from spec.url for egress auditing.

Playbook declares reusable investigation and remediation content together with its machine-enforced safety contract.

  • API Version: faberops.dev/v1beta1
  • Kind: Playbook
  • Scope: Namespaced
  • Resource Names: plural playbooks, singular playbook, shortNames fpb
  • Subresources: status
Name Type JSONPath Description
Version string .spec.version -
Verified string .status.verificationState -
Age date .metadata.creationTimestamp -
Schema Path Rule Message
spec.actions[] self.kind != 'k8s_action' || has(self.rollback) rollback contract is required when action kind is k8s_action
spec.actions[] !(self.kind == 'k8s_action' && self.ceiling == 'Auto' && has(self.k8sOperations) && self.k8sOperations.exists(op, op == 'delete-pod' || op == 'cordon')) ceiling Auto is forbidden for destructive k8sOperations (delete-pod or cordon)
spec.actions[].blastRadius !has(self.kinds) || self.kinds.all(k, !(k.lowerAscii() in ['secret', 'secrets', 'role', 'roles', 'clusterrole', 'clusterroles', 'rolebinding', 'rolebindings', 'clusterrolebinding', 'clusterrolebindings', 'customresourcedefinition', 'customresourcedefinitions', 'persistentvolumeclaim', 'persistentvolumeclaims', 'networkpolicy', 'networkpolicies', 'validatingwebhookconfiguration', 'mutatingwebhookconfiguration', 'nodepool', 'nodepools'])) blastRadius.kinds must not include sensitive controller-refused kinds
spec.actions[].blastRadius !has(self.minReplicas) || !has(self.maxReplicas) || self.minReplicas <= self.maxReplicas minReplicas must be less than or equal to maxReplicas
spec.actions[].rollback.postCheck (has(self.kubernetes) ? 1 : 0) + (has(self.connector) ? 1 : 0) == 1 exactly one of kubernetes or connector must be configured on a preCheck
spec.actions[].rollback.postCheck.kubernetes !(self.kind.lowerAscii() == 'secret' && (self.apiVersion == 'v1' || size(self.apiVersion) == 0)) kubernetes preChecks must not inspect core v1 Secret resources
spec.preChecks[] (has(self.kubernetes) ? 1 : 0) + (has(self.connector) ? 1 : 0) == 1 exactly one of kubernetes or connector must be configured on a preCheck
spec.preChecks[].kubernetes !(self.kind.lowerAscii() == 'secret' && (self.apiVersion == 'v1' || size(self.apiVersion) == 0)) kubernetes preChecks must not inspect core v1 Secret resources
spec.requires.k8sReadScopes[] self.resources.all(r, r.lowerAscii() != 'secrets' && r.lowerAscii() != 'secret') k8sReadScopes must not request access to Secrets
spec.requires.k8sReadScopes[] !has(self.verbs) || self.verbs.all(v, v in ['get', 'list', 'watch']) k8sReadScopes verbs may only include get, list, or watch
spec.triggers[] has(self.cron) || has(self.webhook) || has(self.kubernetes) || has(self.connector) at least one trigger type (cron, webhook, kubernetes, or connector) must be configured
spec.triggers[].kubernetes !(self.kind.lowerAscii() == 'secret' && (self.apiVersion == 'v1' || size(self.apiVersion) == 0)) kubernetes triggers must not watch core v1 Secret resources

PlaybookSpec defines reusable investigation and remediation content together with its machine-enforced safety contract.

Field Type Required Default Constraints Description
spec.actions []object no - maxItems: 32 Actions declares typed post-run actions with autonomy ceilings, blast radii, and rollback contracts.
spec.actions[].allowedAuthors []string no - maxItems: 32 AllowedAuthors restricts push_to_pr to pull requests authored by these exact logins.
spec.actions[].autoMerge boolean no - - AutoMerge enables forge auto-merge after required checks and trust gates pass.
spec.actions[].blastRadius object no - - BlastRadius defines deterministic scope and size caps for this action.
spec.actions[].blastRadius.kinds []string no - maxItems: 32 Kinds lists allowed Kubernetes resource kinds for k8s_action writes.
spec.actions[].blastRadius.maxFiles integer (int32) no - min: 1, max: 500 MaxFiles caps the maximum number of files modified in a single PR.
spec.actions[].blastRadius.maxLines integer (int32) no - min: 1, max: 10000 MaxLines caps the total added and removed lines in a single PR.
spec.actions[].blastRadius.maxObjects integer (int32) no - min: 1, max: 50 MaxObjects caps the number of Kubernetes objects mutated in a single run.
spec.actions[].blastRadius.maxReplicaDelta integer (int32) no - min: 1, max: 100 MaxReplicaDelta caps the maximum replica change per action invocation.
spec.actions[].blastRadius.maxReplicas integer (int32) no - min: 1 MaxReplicas sets the upper replica bound permitted for scale operations.
spec.actions[].blastRadius.minReplicas integer (int32) no - min: 0 MinReplicas sets the lower replica bound permitted for scale operations.
spec.actions[].blastRadius.namespaces []string no - maxItems: 64 Namespaces restricts target Kubernetes objects to these namespaces.
spec.actions[].blastRadius.paths []string no - maxItems: 64 Paths lists allowed repository path globs for Git diff actions.
spec.actions[].blastRadius.verbs []string no - maxItems: 16 Verbs lists allowed Kubernetes write verbs or operations.
spec.actions[].ceiling string yes - enum: "Observe", "HITL", "AITL", "Auto" Ceiling declares the highest trust level this action may ever execute under. Unverified playbooks are further capped at HITL by the trust engine.
spec.actions[].dedupeByTitle boolean no - - DedupeByTitle skips creating duplicate issues with the same title.
spec.actions[].draft boolean no - - Draft opens newly created pull requests as drafts when true.
spec.actions[].k8sOperations []string no - maxItems: 16, item enum: "rollout-restart", "scale", "delete-pod", "cordon", "annotate" K8sOperations restricts executable Kubernetes operations when Kind is k8s_action.
spec.actions[].kind string yes - enum: "open_pr", "push_to_pr", "comment_on_pr", "create_issue", "k8s_action", "notify", "webhook" Kind selects the action execution driver.
spec.actions[].labels []string no - maxItems: 32 Labels attaches forge labels to pull requests or issues created by this action.
spec.actions[].name string yes - minLength: 1, maxLength: 128 Name uniquely identifies this action within the Playbook.
spec.actions[].rollback object no - - Rollback defines snapshot and post-check recovery requirements. Required for k8s_action.
spec.actions[].rollback.onFailure string no "rollback_and_demote" enum: "rollback_and_demote", "rollback", "alert" OnFailure selects the automated response when verification fails. Defaults to rollback_and_demote.
spec.actions[].rollback.postCheck object no - - PostCheck optionally overrides the Playbook preChecks used to confirm recovery.
spec.actions[].rollback.postCheck.connector object no - - Connector checks telemetry or endpoint health through a typed Connector.
spec.actions[].rollback.postCheck.connector.connectorRef object no - - ConnectorRef optionally selects a specific Connector in the same namespace.
spec.actions[].rollback.postCheck.connector.connectorRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.actions[].rollback.postCheck.connector.connectorType string yes - enum: "llm", "prometheus", "loki", "victorialogs", "alertmanager", "grafana", "pagerduty", "slack", "matrix", "webhook", "mcp", "hubble", "tetragon", "oci" ConnectorType identifies the connector driver type used for the check.
spec.actions[].rollback.postCheck.connector.passWhen string yes - minLength: 1, maxLength: 2048 PassWhen is a CEL boolean expression evaluating true when state is healthy or recovered.
spec.actions[].rollback.postCheck.connector.query string yes - minLength: 1, maxLength: 4096 Query holds the connector-specific query or path evaluated by the check.
spec.actions[].rollback.postCheck.kubernetes object no - - Kubernetes checks cluster objects with a deterministic CEL expression.
spec.actions[].rollback.postCheck.kubernetes.apiVersion string yes - minLength: 1, maxLength: 128 APIVersion is the target Kubernetes resource apiVersion.
spec.actions[].rollback.postCheck.kubernetes.kind string yes - minLength: 1, maxLength: 128 Kind is the target Kubernetes resource Kind.
spec.actions[].rollback.postCheck.kubernetes.labelSelector object no - - LabelSelector filters inspected Kubernetes objects by labels.
spec.actions[].rollback.postCheck.kubernetes.labelSelector.matchExpressions []object no - - matchExpressions is a list of label selector requirements. The requirements are ANDed.
spec.actions[].rollback.postCheck.kubernetes.labelSelector.matchExpressions[].key string yes - - key is the label key that the selector applies to.
spec.actions[].rollback.postCheck.kubernetes.labelSelector.matchExpressions[].operator string yes - - operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
spec.actions[].rollback.postCheck.kubernetes.labelSelector.matchExpressions[].values []string no - - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
spec.actions[].rollback.postCheck.kubernetes.labelSelector.matchLabels map[string]string no - - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
spec.actions[].rollback.postCheck.kubernetes.namespace string no - maxLength: 63 Namespace restricts the query to a single namespace.
spec.actions[].rollback.postCheck.kubernetes.passWhen string yes - minLength: 1, maxLength: 2048 PassWhen is a CEL boolean expression evaluating true when state is healthy or recovered.
spec.actions[].rollback.postCheck.name string yes - minLength: 1, maxLength: 128 Name uniquely identifies this pre-check within the playbook.
spec.actions[].rollback.postCheckDelay string no - - PostCheckDelay waits after action completion before evaluating recovery checks.
spec.actions[].rollback.postCheckTimeout string no - - PostCheckTimeout bounds total time spent running post-action verification checks.
spec.actions[].rollback.snapshot boolean no true - Snapshot captures a pre-mutation resource snapshot before executing a k8s_action.
spec.actions[].rollback.verificationWindow string no - - VerificationWindow sets how long to watch for post-merge or post-action regression (defaults to 24h).
spec.description string no - maxLength: 1024 Description summarizes what this Playbook investigates and resolves.
spec.fixturesDigest string no - pattern: ^(sha256:[0-9a-f]{64})?$, maxLength: 128 FixturesDigest records the SHA-256 digest of the offline evaluation fixture suite for this Playbook.
spec.inputSchema any (raw JSON) no - - InputSchema optionally validates structured trigger input JSON before spending tokens.
spec.limits object no - - Limits defines default governor caps inherited by Automations referencing this Playbook.
spec.limits.cooldown string no - - Cooldown enforces a minimum interval between completed runs for the same dedupe key.
spec.limits.maxConcurrent integer (int32) no - min: 1 MaxConcurrent limits simultaneous active runs for one automation.
spec.limits.maxCostUsd string no - pattern: ^[0-9]+(\.[0-9]+)?$ MaxCostUSD caps cumulative estimated spend in USD as a decimal string (for example “0.10”).
spec.limits.maxInputTokens integer (int64) no - min: 1 MaxInputTokens caps cumulative input tokens per run.
spec.limits.maxOutputTokens integer (int64) no - min: 1 MaxOutputTokens caps cumulative output tokens per run.
spec.limits.maxQueuedRuns integer (int32) no - min: 0 MaxQueuedRuns caps active or queued runs before new triggers are dropped.
spec.limits.maxSteps integer (int32) no - min: 1 MaxSteps caps the number of ReAct loop steps per run.
spec.limits.settleWindow string no - - SettleWindow waits before starting a run so transient flapping events coalesce.
spec.limits.timeout string no - - Timeout bounds total wall-clock execution duration for one run.
spec.limits.toolOutputBytes integer (int32) no - min: 1024 ToolOutputBytes caps inline tool stdout/stderr before spilling full output to the store.
spec.outputSchema any (raw JSON) no - - OutputSchema defines the strict JSON Schema enforced on the LLM final output.
spec.preChecks []object no - maxItems: 16 PreChecks defines deterministic zero-cost checks evaluated before invoking the LLM.
spec.preChecks[].connector object no - - Connector checks telemetry or endpoint health through a typed Connector.
spec.preChecks[].connector.connectorRef object no - - ConnectorRef optionally selects a specific Connector in the same namespace.
spec.preChecks[].connector.connectorRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.preChecks[].connector.connectorType string yes - enum: "llm", "prometheus", "loki", "victorialogs", "alertmanager", "grafana", "pagerduty", "slack", "matrix", "webhook", "mcp", "hubble", "tetragon", "oci" ConnectorType identifies the connector driver type used for the check.
spec.preChecks[].connector.passWhen string yes - minLength: 1, maxLength: 2048 PassWhen is a CEL boolean expression evaluating true when state is healthy or recovered.
spec.preChecks[].connector.query string yes - minLength: 1, maxLength: 4096 Query holds the connector-specific query or path evaluated by the check.
spec.preChecks[].kubernetes object no - - Kubernetes checks cluster objects with a deterministic CEL expression.
spec.preChecks[].kubernetes.apiVersion string yes - minLength: 1, maxLength: 128 APIVersion is the target Kubernetes resource apiVersion.
spec.preChecks[].kubernetes.kind string yes - minLength: 1, maxLength: 128 Kind is the target Kubernetes resource Kind.
spec.preChecks[].kubernetes.labelSelector object no - - LabelSelector filters inspected Kubernetes objects by labels.
spec.preChecks[].kubernetes.labelSelector.matchExpressions []object no - - matchExpressions is a list of label selector requirements. The requirements are ANDed.
spec.preChecks[].kubernetes.labelSelector.matchExpressions[].key string yes - - key is the label key that the selector applies to.
spec.preChecks[].kubernetes.labelSelector.matchExpressions[].operator string yes - - operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
spec.preChecks[].kubernetes.labelSelector.matchExpressions[].values []string no - - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
spec.preChecks[].kubernetes.labelSelector.matchLabels map[string]string no - - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
spec.preChecks[].kubernetes.namespace string no - maxLength: 63 Namespace restricts the query to a single namespace.
spec.preChecks[].kubernetes.passWhen string yes - minLength: 1, maxLength: 2048 PassWhen is a CEL boolean expression evaluating true when state is healthy or recovered.
spec.preChecks[].name string yes - minLength: 1, maxLength: 128 Name uniquely identifies this pre-check within the playbook.
spec.prompt string yes - minLength: 1, maxLength: 32768 Prompt is the main investigation and remediation task prompt template.
spec.requires object no - - Requires declares external connector types, Kubernetes read scopes, and validator capabilities.
spec.requires.connectors []string no - maxItems: 16, item enum: "llm", "prometheus", "loki", "victorialogs", "alertmanager", "grafana", "pagerduty", "slack", "matrix", "webhook", "mcp", "hubble", "tetragon", "oci" Connectors lists ConnectorType values required by this Playbook.
spec.requires.k8sReadScopes []object no - maxItems: 32 K8sReadScopes lists read-only Kubernetes API scopes required for investigation.
spec.requires.k8sReadScopes[].apiGroups []string no - maxItems: 16 APIGroups lists Kubernetes API groups to inspect (empty string denotes core v1).
spec.requires.k8sReadScopes[].resources []string yes - minItems: 1, maxItems: 32 Resources lists Kubernetes resource plural names to inspect (for example pods, deployments, events).
spec.requires.k8sReadScopes[].verbs []string no - maxItems: 3 Verbs lists read-only Kubernetes verbs (get, list, watch). Defaults to get and list at runtime.
spec.requires.validator object no - - Validator specifies sandbox validation requirements for mutating playbooks.
spec.requires.validator.profiles []string no - maxItems: 16, item enum: "kubeconform", "helm-template", "kustomize-build", "kyverno", "conftest", "opentofu" Profiles lists deterministic validation profiles expected by this Playbook.
spec.requires.validator.required boolean no true - Required indicates whether a sandbox validator must run before any mutating action.
spec.requires.validator.variant string no - enum: "base", "security", "iac" Variant selects the sandbox image variant (base, security, or iac).
spec.routes []object no - maxItems: 32 Routes maps CEL predicates over structured output to declared actions.
spec.routes[].action string yes - minLength: 1, maxLength: 128 Action references the Name of a PlaybookAction declared in spec.actions.
spec.routes[].name string yes - minLength: 1, maxLength: 128 Name uniquely identifies this route within the Playbook.
spec.routes[].target string no - maxLength: 256 Target optionally specifies a named target connector, repository, or workload selector.
spec.routes[].when string yes - minLength: 1, maxLength: 2048 When is a CEL boolean expression evaluated against the validated run output.
spec.source object no - - Source records optional OCI catalog provenance and signature tier metadata.
spec.source.digest string no - pattern: ^(sha256:[0-9a-f]{64})?$, maxLength: 128 Digest is the pinned content digest verified by Cosign in sha256 hex format.
spec.source.oci string no - maxLength: 512 OCI is the canonical OCI artifact reference (for example ghcr.io/faberops/catalog/playbooks/oomkill-rightsizer:2).
spec.source.tier string no - enum: "verified", "community", "experimental" Tier records the catalog verification tier (verified, community, or experimental).
spec.systemPrompt string no - maxLength: 16384 SystemPrompt optionally overrides or extends the base operator system instructions.
spec.triggers []object no - maxItems: 16 Triggers declares event sources that can start runs for automations using this Playbook.
spec.triggers[].connector object no - - Connector triggers runs from a typed telemetry, alert, or eBPF Connector.
spec.triggers[].connector.condition string no - maxLength: 2048 Condition is an optional CEL boolean expression evaluated against polled results or incoming events.
spec.triggers[].connector.connectorRef object no - - ConnectorRef optionally pins a specific same-namespace Connector rather than the namespace default.
spec.triggers[].connector.connectorRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.triggers[].connector.connectorType string yes - enum: "llm", "prometheus", "loki", "victorialogs", "alertmanager", "grafana", "pagerduty", "slack", "matrix", "webhook", "mcp", "hubble", "tetragon", "oci" ConnectorType identifies the connector driver type (for example alertmanager, prometheus, loki, hubble, tetragon).
spec.triggers[].connector.interval string no - - Interval sets how frequently polling connectors are queried.
spec.triggers[].connector.minMatches integer (int32) no 1 min: 1 MinMatches sets the minimum matching entries required within Window to trigger a run.
spec.triggers[].connector.query string no - maxLength: 4096 Query is an optional LogsQL, LogQL, PromQL, or flow filter expression.
spec.triggers[].connector.signaturePack string no - maxLength: 128 SignaturePack selects a curated catalog failure-signature pack name.
spec.triggers[].connector.window string no - - Window sets the lookback window evaluated on each poll.
spec.triggers[].cron object no - - Cron schedules runs on a cron cadence.
spec.triggers[].cron.concurrencyPolicy string no "Forbid" enum: "Allow", "Forbid", "Replace" ConcurrencyPolicy specifies how to treat concurrent executions of the cron trigger.
spec.triggers[].cron.schedule string yes - minLength: 1, maxLength: 128 Schedule is a standard 5-field cron expression.
spec.triggers[].cron.timeZone string no - maxLength: 64 TimeZone is an optional IANA time zone name (for example Europe/Warsaw).
spec.triggers[].kubernetes object no - - Kubernetes watches cluster objects for condition transitions.
spec.triggers[].kubernetes.apiVersion string yes - minLength: 1, maxLength: 128 APIVersion is the watched resource apiVersion (for example kustomize.toolkit.fluxcd.io/v1).
spec.triggers[].kubernetes.input string no - maxLength: 2048 Input is an optional CEL expression building run input JSON from the watched object.
spec.triggers[].kubernetes.kind string yes - minLength: 1, maxLength: 128 Kind is the watched resource Kind (for example Kustomization or Pod).
spec.triggers[].kubernetes.labelSelector object no - - LabelSelector filters watched objects by labels.
spec.triggers[].kubernetes.labelSelector.matchExpressions []object no - - matchExpressions is a list of label selector requirements. The requirements are ANDed.
spec.triggers[].kubernetes.labelSelector.matchExpressions[].key string yes - - key is the label key that the selector applies to.
spec.triggers[].kubernetes.labelSelector.matchExpressions[].operator string yes - - operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
spec.triggers[].kubernetes.labelSelector.matchExpressions[].values []string no - - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
spec.triggers[].kubernetes.labelSelector.matchLabels map[string]string no - - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
spec.triggers[].kubernetes.match string no - maxLength: 2048 Match is an optional CEL boolean expression filtering watched object events.
spec.triggers[].kubernetes.namespaces []string no - maxItems: 64 Namespaces restricts the watch to specific namespaces. Empty watches permitted namespaces.
spec.triggers[].name string no - maxLength: 128 Name uniquely identifies this trigger within the playbook.
spec.triggers[].webhook object no - - Webhook accepts HTTP webhook or CloudEvent payloads.
spec.triggers[].webhook.cloudEvent boolean no - - CloudEvent expects CloudEvents v1.0 structured or binary encoding when true.
spec.triggers[].webhook.connectorRef object no - - ConnectorRef optionally binds an alert or webhook Connector for signature verification.
spec.triggers[].webhook.connectorRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.triggers[].webhook.input string no - maxLength: 2048 Input is an optional CEL expression transforming the incoming event into run input JSON.
spec.triggers[].webhook.match string no - maxLength: 2048 Match is an optional CEL boolean expression filtering incoming events.
spec.triggers[].webhook.path string yes - minLength: 1, maxLength: 256 Path is the HTTP path suffix handled by the operator webhook server.
spec.version string no - maxLength: 64 Version is the semantic version of this Playbook content.

PlaybookStatus defines the observed verification state of a Playbook.

Field Type Required Default Constraints Description
status.conditions []object no - - Conditions represent the latest available observations of the playbook state.
status.conditions[].lastTransitionTime string (date-time) yes - - lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
status.conditions[].message string yes - maxLength: 32768 message is a human readable message indicating details about the transition. This may be an empty string.
status.conditions[].observedGeneration integer (int64) no - min: 0 observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
status.conditions[].reason string yes - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$, minLength: 1, maxLength: 1024 reason contains a programmatic identifier indicating the reason for the condition’s last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
status.conditions[].status string yes - enum: "True", "False", "Unknown" status of the condition, one of True, False, Unknown.
status.conditions[].type string yes - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$, maxLength: 316 type of condition in CamelCase or in foo.example.com/CamelCase.
status.fixturesPassed boolean no - - FixturesPassed reports whether all offline evaluation fixtures passed.
status.lastVerifiedAt string (date-time) no - - LastVerifiedAt records when signature or fixture verification last ran.
status.observedGeneration integer (int64) no - - ObservedGeneration is the most recent generation observed by the controller.
status.verificationState string no - enum: "Unverified", "Verified", "VerifiedLocal", "Failed" VerificationState records whether this Playbook is Unverified, Verified, VerifiedLocal, or Failed.
status.verifiedDigest string no - maxLength: 128 VerifiedDigest records the verified canonical content digest of the Playbook.

Repository declares a Git repository, unified forge credentials, sandbox validator, hard diff guardrails, active learning configuration, and workload ownership overrides.

  • API Version: faberops.dev/v1beta1
  • Kind: Repository
  • Scope: Namespaced
  • Resource Names: plural repositories, singular repository, shortNames frepo
  • Subresources: status
Name Type JSONPath Description
Kind string .spec.kind -
Provider string .spec.forge.provider -
Repo string .spec.forge.repo -
Ready boolean .status.ready -
Age date .metadata.creationTimestamp -
Schema Path Rule Message
spec !has(self.url) || size(self.url) == 0 || self.url.startsWith('https://') || self.url.startsWith('http://') url must start with https:// or http://
spec.forge !(has(self.tokenSecretRef) && has(self.githubApp)) tokenSecretRef and githubApp are mutually exclusive
spec.forge !(has(self.githubApp) && self.provider != 'github') githubApp authentication is only valid when provider is github
spec.forge !(self.provider in ['gitea', 'forgejo'] && (!has(self.baseUrl) || size(self.baseUrl) == 0)) baseUrl is required when provider is gitea or forgejo
spec.learning !has(self.rulesFile) || size(self.rulesFile) == 0 || (!self.rulesFile.startsWith('/') && !self.rulesFile.contains('..') && !self.rulesFile.contains('\\')) rulesFile must be a relative path without leading slash or path traversal
spec.ownershipOverrides[] !has(self.deployPath) || size(self.deployPath) == 0 || (!self.deployPath.startsWith('/') && !self.deployPath.contains('..')) deployPath must be a relative path without leading slash or path traversal
spec.ownershipOverrides[] !has(self.sourcePath) || size(self.sourcePath) == 0 || (!self.sourcePath.startsWith('/') && !self.sourcePath.contains('..')) sourcePath must be a relative path without leading slash or path traversal
spec.validator !has(self.mode) || self.mode != 'mirror' || has(self.mirrorConnectorRef) mirrorConnectorRef is required when validator.mode is mirror
spec.validator (!has(self.mode) || self.mode == 'image') ? !has(self.mirrorConnectorRef) : true mirrorConnectorRef must be omitted when validator.mode is image

RepositorySpec defines forge access, sandbox validation, hard diff guardrails, active learning, and workload ownership overrides for a Git repository.

Field Type Required Default Constraints Description
spec.context object no - - Context supplies curated repository conventions pinned in the cached prompt prefix.
spec.context.configMapRef object no - - ConfigMapRef loads curated repository conventions from a ConfigMap in the same namespace.
spec.context.configMapRef.key string yes - minLength: 1, maxLength: 253 Key within the ConfigMap data map.
spec.context.configMapRef.name string yes - minLength: 1, maxLength: 253 Name of the ConfigMap in the same namespace.
spec.context.inline string no - maxLength: 8192 Inline holds concise repository conventions directly in the CR.
spec.forge object yes - - Forge configures the unified Git forge provider, coordinates, and credentials.
spec.forge.baseUrl string no - maxLength: 512 BaseURL is the forge API base URL. Optional for github and gitlab, required for gitea and forgejo.
spec.forge.branchPrefix string no "agent/" minLength: 1, maxLength: 64 BranchPrefix prefixes branches created by Faber for pull or merge requests.
spec.forge.defaultBranch string no "main" minLength: 1, maxLength: 128 DefaultBranch is the target base branch for pull or merge requests.
spec.forge.githubApp object no - - GitHubApp configures GitHub App authentication when Provider is github. Mutually exclusive with tokenSecretRef.
spec.forge.githubApp.appId integer (int64) no - min: 1 AppID is the optional numeric GitHub App identifier. When omitted, the controller reads appId from the referenced Secret.
spec.forge.githubApp.installationId integer (int64) no - min: 1 InstallationID is the optional numeric GitHub App installation identifier. When omitted, the controller reads installationId from the referenced Secret.
spec.forge.githubApp.secretRef object yes - - SecretRef references the same-namespace Secret key holding the GitHub App PEM private key.
spec.forge.githubApp.secretRef.key string yes - minLength: 1, maxLength: 253 Key within the Secret data map.
spec.forge.githubApp.secretRef.name string yes - minLength: 1, maxLength: 253 Name of the Secret in the same namespace.
spec.forge.owner string yes - minLength: 1, maxLength: 256 Owner is the organization, user, or GitLab group path owning the repository.
spec.forge.provider string yes - enum: "github", "gitlab", "gitea", "forgejo" Provider selects the forge API driver (github, gitlab, gitea, or forgejo).
spec.forge.repo string yes - minLength: 1, maxLength: 256 Repo is the repository or project name within Owner.
spec.forge.tokenSecretRef object no - - TokenSecretRef points to a same-namespace Secret key holding a forge API token. Mutually exclusive with githubApp.
spec.forge.tokenSecretRef.key string yes - minLength: 1, maxLength: 253 Key within the Secret data map.
spec.forge.tokenSecretRef.name string yes - minLength: 1, maxLength: 253 Name of the Secret in the same namespace.
spec.guardrails object no - - Guardrails defines repository-wide hard diff gates enforced in operator code.
spec.guardrails.allowPaths []string no - maxItems: 64 AllowPaths restricts repository edits to matching path globs when non-empty.
spec.guardrails.denyPaths []string no ["talos/**",".github/workflows/**","flux/**"] maxItems: 64 DenyPaths lists repository path globs that Faber may never modify.
spec.guardrails.maxChangedFiles integer (int32) no 20 min: 1, max: 500 MaxChangedFiles caps the number of files modified by any single PR.
spec.guardrails.maxChangedLines integer (int32) no 500 min: 1, max: 10000 MaxChangedLines caps the total added and removed lines in any single PR.
spec.guardrails.protectedWorkloads []object no - maxItems: 64 ProtectedWorkloads protects sensitive workloads from automated resource reduction or edits.
spec.guardrails.protectedWorkloads[].ceiling string no - enum: "Observe", "HITL", "AITL", "Auto" Ceiling optionally caps the maximum trust level allowed against matching workloads. Defaults to HITL when omitted.
spec.guardrails.protectedWorkloads[].forbidMemoryReduction boolean no true - ForbidMemoryReduction prevents lowering memory requests or limits for matching workloads.
spec.guardrails.protectedWorkloads[].labelSelector object no - - LabelSelector matches pods or manifests carrying matching labels.
spec.guardrails.protectedWorkloads[].labelSelector.matchExpressions []object no - - matchExpressions is a list of label selector requirements. The requirements are ANDed.
spec.guardrails.protectedWorkloads[].labelSelector.matchExpressions[].key string yes - - key is the label key that the selector applies to.
spec.guardrails.protectedWorkloads[].labelSelector.matchExpressions[].operator string yes - - operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
spec.guardrails.protectedWorkloads[].labelSelector.matchExpressions[].values []string no - - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
spec.guardrails.protectedWorkloads[].labelSelector.matchLabels map[string]string no - - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
spec.guardrails.protectedWorkloads[].name string yes - minLength: 1, maxLength: 128 Name is a human-readable identifier for this protection rule.
spec.guardrails.protectedWorkloads[].namespaces []string no - maxItems: 64 Namespaces scopes this rule to specific namespaces. Empty matches all namespaces.
spec.guardrails.protectedWorkloads[].pathPatterns []string no - maxItems: 64 PathPatterns matches repository file path globs belonging to protected workloads.
spec.guardrails.protectedWorkloads[].reason string no - maxLength: 512 Reason explains why these workloads are protected.
spec.guardrails.protectedWorkloads[].workloadNames []string no - maxItems: 64 WorkloadNames matches deployment, statefulset, daemonset, helmrelease, or pod names.
spec.guardrails.requireValidation boolean no true - RequireValidation requires a passing sandbox validation verdict before opening a PR.
spec.guardrails.secretScan boolean no true - SecretScan requires scanning proposed diffs for secrets before opening a PR.
spec.kind string no "gitops" enum: "gitops", "app", "iac", "helm" Kind classifies the repository content (gitops, app, iac, or helm).
spec.learning object no - - Learning configures closed-loop active learning rules for this repository.
spec.learning.cooldown string no "24h" - Cooldown enforces a minimum interval between automated learning rule pull requests.
spec.learning.draft boolean no - - Draft opens automated learning pull requests as drafts when true.
spec.learning.enabled boolean no - - Enabled toggles active learning for this repository. Defaults to true when omitted.
spec.learning.maxRules integer (int32) no - min: 1, max: 500 MaxRules caps the maximum number of active rules maintained in rulesFile.
spec.learning.minSignals integer (int32) no - min: 1, max: 100 MinSignals sets the minimum qualifying verified signals required before proposing a rules PR.
spec.learning.prLabels []string no - maxItems: 10 PRLabels attaches optional forge labels to automated learning pull requests.
spec.learning.rulesFile string no ".faber/rules.md" maxLength: 256 RulesFile is the repository-relative path where human-reviewed rules live.
spec.ownershipOverrides []object no - maxItems: 100 OwnershipOverrides explicitly binds Kubernetes workloads to paths in this repository.
spec.ownershipOverrides[].deployPath string no - maxLength: 512 DeployPath is the repository-relative path holding deployment manifests for the workload.
spec.ownershipOverrides[].namespace string no - maxLength: 63 Namespace optionally restricts this override to a single namespace.
spec.ownershipOverrides[].sourcePath string no - maxLength: 512 SourcePath is the repository-relative path holding source code for the workload.
spec.ownershipOverrides[].workloadKind string no - maxLength: 64 WorkloadKind optionally matches the Kubernetes resource kind (for example Deployment or StatefulSet).
spec.ownershipOverrides[].workloadName string yes - minLength: 1, maxLength: 253 WorkloadName matches the target workload name.
spec.url string no - maxLength: 2048 URL is the canonical HTTPS or HTTP repository clone URL used by the ownership resolver.
spec.validator object no - - Validator configures per-repository sandbox validation (image or mirror mode).
spec.validator.command []string no - maxItems: 32 Command lists explicit validation shell commands executed inside the sandbox.
spec.validator.image string no - maxLength: 512 Image is the container image used to run offline validation commands in the sandbox.
spec.validator.mirrorConnectorRef object no - - MirrorConnectorRef references a same-namespace Connector providing an in-cluster package mirror (such as Athens, Verdaccio, or devpi) when Mode is mirror.
spec.validator.mirrorConnectorRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object in the same namespace.
spec.validator.mode string no "image" enum: "image", "mirror" Mode selects zero-egress pre-baked image validation (image) or in-cluster mirror egress (mirror).
spec.validator.profiles []string no - maxItems: 16, item enum: "kubeconform", "helm-template", "kustomize-build", "kyverno", "conftest", "opentofu" Profiles selects built-in deterministic offline validation presets expanded before Command.
spec.validator.sandboxTemplateRef object no - - SandboxTemplateRef references an explicit agent-sandbox SandboxTemplate.
spec.validator.sandboxTemplateRef.name string yes - minLength: 1, maxLength: 253 Name of the referenced object.
spec.validator.sandboxTemplateRef.namespace string no - maxLength: 63 Namespace of the referenced object. Defaults to the referrer namespace when omitted.
spec.validator.timeout string no - - Timeout bounds validation execution time inside the sandbox.

RepositoryStatus defines the observed connectivity and sync state of a Repository.

Field Type Required Default Constraints Description
status.conditions []object no - - Conditions represent the latest available observations of the repository state.
status.conditions[].lastTransitionTime string (date-time) yes - - lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
status.conditions[].message string yes - maxLength: 32768 message is a human readable message indicating details about the transition. This may be an empty string.
status.conditions[].observedGeneration integer (int64) no - min: 0 observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
status.conditions[].reason string yes - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$, minLength: 1, maxLength: 1024 reason contains a programmatic identifier indicating the reason for the condition’s last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
status.conditions[].status string yes - enum: "True", "False", "Unknown" status of the condition, one of True, False, Unknown.
status.conditions[].type string yes - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$, maxLength: 316 type of condition in CamelCase or in foo.example.com/CamelCase.
status.defaultBranchSha string no - maxLength: 128 DefaultBranchSHA records the latest observed commit SHA on the default branch.
status.lastSyncedAt string (date-time) no - - LastSyncedAt records when repository metadata was last synchronized.
status.observedGeneration integer (int64) no - - ObservedGeneration is the most recent generation observed by the controller.
status.ready boolean no - - Ready indicates whether forge credentials and repository access are healthy.

TargetCluster declares connection credentials and namespace boundaries for a remote Kubernetes cluster within one namespace.

  • API Version: faberops.dev/v1beta1
  • Kind: TargetCluster
  • Scope: Namespaced
  • Resource Names: plural targetclusters, singular targetcluster, shortNames ftc
  • Subresources: status
Name Type JSONPath Description
APIServer string .spec.apiServer.url -
ReadOnly boolean .spec.readOnly -
Version string .status.kubernetesVersion -
Ready boolean .status.ready -
Age date .metadata.creationTimestamp -
Schema Path Rule Message
spec has(self.kubeconfigSecretRef) != has(self.apiServer) exactly one of kubeconfigSecretRef or apiServer must be set
spec.apiServer self.url.startsWith('https://') || self.url.startsWith('http://') apiServer.url must start with https:// or http://
spec.apiServer has(self.bearerTokenSecretRef) apiServer.bearerTokenSecretRef is required when apiServer is set

TargetClusterSpec defines connection credentials and namespace boundaries for a remote Kubernetes cluster inspected or operated on by Faber.

Field Type Required Default Constraints Description
spec.allowedNamespaces []string no - maxItems: 50 AllowedNamespaces restricts inspection and actions on this cluster to these namespaces. Empty allows all namespaces permitted by the cluster credentials.
spec.apiServer object no - - APIServer configures direct Kubernetes API server access with a bearer token Secret. Mutually exclusive with kubeconfigSecretRef.
spec.apiServer.bearerTokenSecretRef object no - - BearerTokenSecretRef references a same-namespace Secret key holding a scoped bearer token. Required when apiServer is configured.
spec.apiServer.bearerTokenSecretRef.key string yes - minLength: 1, maxLength: 253 Key within the Secret data map.
spec.apiServer.bearerTokenSecretRef.name string yes - minLength: 1, maxLength: 253 Name of the Secret in the same namespace.
spec.apiServer.caSecretRef object no - - CASecretRef references a same-namespace Secret key holding PEM-encoded CA certificate data.
spec.apiServer.caSecretRef.key string yes - minLength: 1, maxLength: 253 Key within the Secret data map.
spec.apiServer.caSecretRef.name string yes - minLength: 1, maxLength: 253 Name of the Secret in the same namespace.
spec.apiServer.insecureSkipTLSVerify boolean no - - InsecureSkipTLSVerify disables TLS server certificate verification for lab or dev clusters.
spec.apiServer.url string yes - minLength: 1, maxLength: 512 URL is the Kubernetes API server base URL (must start with https:// or http://).
spec.defaultNamespace string no - maxLength: 63 DefaultNamespace sets the default namespace used when queries omit a namespace.
spec.kubeconfigSecretRef object no - - KubeconfigSecretRef references a same-namespace Secret holding kubeconfig YAML. Mutually exclusive with apiServer.
spec.kubeconfigSecretRef.key string yes - minLength: 1, maxLength: 253 Key within the Secret data map.
spec.kubeconfigSecretRef.name string yes - minLength: 1, maxLength: 253 Name of the Secret in the same namespace.
spec.labels map[string]string no - - Labels holds cluster metadata tags (for example region, env, or tier) used for fleet grouping and routing.
spec.readOnly boolean no - - ReadOnly restricts operations against this TargetCluster to read-only inspection. Defaults to true at runtime when omitted.

TargetClusterStatus defines the observed connectivity state of a TargetCluster.

Field Type Required Default Constraints Description
status.conditions []object no - - Conditions represent the latest available observations of the cluster state.
status.conditions[].lastTransitionTime string (date-time) yes - - lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
status.conditions[].message string yes - maxLength: 32768 message is a human readable message indicating details about the transition. This may be an empty string.
status.conditions[].observedGeneration integer (int64) no - min: 0 observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
status.conditions[].reason string yes - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$, minLength: 1, maxLength: 1024 reason contains a programmatic identifier indicating the reason for the condition’s last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
status.conditions[].status string yes - enum: "True", "False", "Unknown" status of the condition, one of True, False, Unknown.
status.conditions[].type string yes - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$, maxLength: 316 type of condition in CamelCase or in foo.example.com/CamelCase.
status.kubernetesVersion string no - maxLength: 64 KubernetesVersion is the server version reported by the remote cluster discovery endpoint.
status.lastCheckedAt string (date-time) no - - LastCheckedAt records when connectivity to the remote cluster was last verified.
status.observedGeneration integer (int64) no - - ObservedGeneration is the most recent generation observed by the controller.
status.ready boolean no - - Ready indicates whether credentials are valid and the remote API server is reachable.

TrustPolicy is an optional RBAC-separated security governance resource controlling autonomy ceilings, promotion and demotion criteria, budgets, change freezes, approver quorums, and emergency kill switches.

  • API Version: faberops.dev/v1beta1
  • Kind: TrustPolicy
  • Scope: Namespaced
  • Resource Names: plural trustpolicies, singular trustpolicy, shortNames ftp
  • Subresources: status
Name Type JSONPath Description
Ceiling string .spec.defaultCeiling -
KillSwitch boolean .spec.killSwitch -
Freeze boolean .status.freezeActive -
Age date .metadata.creationTimestamp -
Schema Path Rule Message
spec.demotion !has(self.targetLevel) || self.targetLevel in ['Observe', 'HITL'] demotion targetLevel must be Observe or HITL

TrustPolicySpec defines RBAC-separated security governance for Automations in a namespace: autonomy ceilings, protected workloads, evidence-gated promotion and automatic demotion, action budgets, change freeze windows, approver quorum, and emergency kill switch.

Field Type Required Default Constraints Description
spec.actionCeilings []object no - maxItems: 32 ActionCeilings sets explicit autonomy ceilings per action kind and optional workload list.
spec.actionCeilings[].actionKind string yes - enum: "open_pr", "push_to_pr", "comment_on_pr", "create_issue", "k8s_action", "notify", "webhook" ActionKind selects the Playbook action kind governed by this ceiling rule.
spec.actionCeilings[].ceiling string yes - enum: "Observe", "HITL", "AITL", "Auto" Ceiling sets the maximum permitted TrustLevel for matching actions.
spec.actionCeilings[].workloads []string no - maxItems: 64 Workloads optionally narrows this ceiling rule to matching workload names.
spec.approvers object no - - Approvers configures verified actors, groups, and quorum rules for HITL approvals.
spec.approvers.allowedActors []string no - maxItems: 50 AllowedActors lists verified usernames or emails permitted to approve or reject runs.
spec.approvers.allowedGroups []string no - maxItems: 50 AllowedGroups lists verified OIDC or Kubernetes groups permitted to approve or reject runs.
spec.approvers.minVotes integer (int32) no 1 min: 1, max: 5 MinVotes sets the minimum number of distinct verified approvals required (1 to 5).
spec.approvers.requireDistinctApprover boolean no - - RequireDistinctApprover requires the approver to differ from the actor who triggered the run.
spec.budgets object no - - Budgets caps mutating action volume and daily cost across governed automations.
spec.budgets.maxActionsPerDay integer (int32) no - min: 1 MaxActionsPerDay caps mutating actions executed within a rolling 24-hour window.
spec.budgets.maxActionsPerHour integer (int32) no - min: 1 MaxActionsPerHour caps mutating actions executed within a rolling 1-hour window.
spec.budgets.maxCostUsdPerDay string no - pattern: ^[0-9]+(\.[0-9]+)?$, maxLength: 32 MaxCostUSDPerDay caps daily USD spend across governed automations as a decimal string.
spec.changeFreeze []object no - maxItems: 32 ChangeFreeze defines recurring windows during which effective autonomy is capped to Observe.
spec.changeFreeze[].daysOfWeek []string no - maxItems: 7 DaysOfWeek lists days when this window applies (for example Mon, Tue, Sat, Sun). Empty matches every day.
spec.changeFreeze[].endHour integer (int32) yes - min: 0, max: 23 EndHour is the window end hour in 24-hour time (0 to 23).
spec.changeFreeze[].name string yes - minLength: 1, maxLength: 128 Name identifies this change freeze window.
spec.changeFreeze[].startHour integer (int32) yes - min: 0, max: 23 StartHour is the inclusive window start hour in 24-hour time (0 to 23).
spec.changeFreeze[].timezone string no "UTC" maxLength: 64 Timezone is an IANA time zone name for evaluating daysOfWeek and hours. Defaults to UTC.
spec.defaultCeiling string no "HITL" enum: "Observe", "HITL", "AITL", "Auto" DefaultCeiling sets the default autonomy ceiling applied when no narrower actionCeiling matches. Defaults to HITL.
spec.demotion object no - - Demotion configures automatic demotion on post-check failure or PR revert.
spec.demotion.onPostCheckFailure boolean no true - OnPostCheckFailure automatically demotes earned trust when post-action verification fails. Defaults to true when omitted.
spec.demotion.onRevert boolean no true - OnRevert automatically demotes earned trust when a merged PR or action is reverted. Defaults to true when omitted.
spec.demotion.targetLevel string no "HITL" enum: "Observe", "HITL", "AITL", "Auto" TargetLevel sets the trust level applied upon demotion (Observe or HITL). Defaults to HITL.
spec.killSwitch boolean no - - KillSwitch immediately caps all governed automations to Observe with zero mutations when true.
spec.promotion object no - - Promotion configures evidence-gated verification criteria for earning higher autonomy.
spec.promotion.autoPromote boolean no false - AutoPromote enables automatic promotion once criteria are satisfied. Defaults to false so promotion requires explicit human approval.
spec.promotion.maxReverted integer (int32) no 0 min: 0, max: 100 MaxReverted sets the maximum Reverted or Failed outcomes allowed within WindowDays.
spec.promotion.minPrecision string no "0.95" pattern: ^(0(\.[0-9]+)?|1(\.0+)?)$, maxLength: 16 MinPrecision sets the minimum verified precision ratio (0 to 1) as a decimal string.
spec.promotion.minVerified integer (int32) no 10 min: 1, max: 1000 MinVerified sets the minimum count of Verified outcomes required within WindowDays.
spec.promotion.windowDays integer (int32) no 30 min: 1, max: 365 WindowDays sets the rolling evaluation window in days for verified outcomes.
spec.protectedWorkloads []object no - maxItems: 64 ProtectedWorkloads declares sensitive workloads capped at HITL or Observe.
spec.protectedWorkloads[].ceiling string no - enum: "Observe", "HITL", "AITL", "Auto" Ceiling optionally caps the maximum trust level allowed against matching workloads. Defaults to HITL when omitted.
spec.protectedWorkloads[].forbidMemoryReduction boolean no true - ForbidMemoryReduction prevents lowering memory requests or limits for matching workloads.
spec.protectedWorkloads[].labelSelector object no - - LabelSelector matches pods or manifests carrying matching labels.
spec.protectedWorkloads[].labelSelector.matchExpressions []object no - - matchExpressions is a list of label selector requirements. The requirements are ANDed.
spec.protectedWorkloads[].labelSelector.matchExpressions[].key string yes - - key is the label key that the selector applies to.
spec.protectedWorkloads[].labelSelector.matchExpressions[].operator string yes - - operator represents a key’s relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
spec.protectedWorkloads[].labelSelector.matchExpressions[].values []string no - - values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
spec.protectedWorkloads[].labelSelector.matchLabels map[string]string no - - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is “key”, the operator is “In”, and the values array contains only “value”. The requirements are ANDed.
spec.protectedWorkloads[].name string yes - minLength: 1, maxLength: 128 Name is a human-readable identifier for this protection rule.
spec.protectedWorkloads[].namespaces []string no - maxItems: 64 Namespaces scopes this rule to specific namespaces. Empty matches all namespaces.
spec.protectedWorkloads[].pathPatterns []string no - maxItems: 64 PathPatterns matches repository file path globs belonging to protected workloads.
spec.protectedWorkloads[].reason string no - maxLength: 512 Reason explains why these workloads are protected.
spec.protectedWorkloads[].workloadNames []string no - maxItems: 64 WorkloadNames matches deployment, statefulset, daemonset, helmrelease, or pod names.
spec.selector object no - - Selector identifies which Automations this TrustPolicy governs. Empty selects all Automations in the namespace.
spec.selector.matchAutomations []string no - maxItems: 64 MatchAutomations selects Automations by exact metadata.name.
spec.selector.matchLabels map[string]string no - - MatchLabels selects Automations carrying all specified labels.
spec.selector.matchNamespaces []string no - maxItems: 64 MatchNamespaces restricts applicability to Automations targeting these namespaces.

TrustPolicyStatus defines the observed status of a TrustPolicy.

Field Type Required Default Constraints Description
status.conditions []object no - - Conditions represent the latest available observations of the trust policy state.
status.conditions[].lastTransitionTime string (date-time) yes - - lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
status.conditions[].message string yes - maxLength: 32768 message is a human readable message indicating details about the transition. This may be an empty string.
status.conditions[].observedGeneration integer (int64) no - min: 0 observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
status.conditions[].reason string yes - pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$, minLength: 1, maxLength: 1024 reason contains a programmatic identifier indicating the reason for the condition’s last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
status.conditions[].status string yes - enum: "True", "False", "Unknown" status of the condition, one of True, False, Unknown.
status.conditions[].type string yes - pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$, maxLength: 316 type of condition in CamelCase or in foo.example.com/CamelCase.
status.freezeActive boolean no - - FreezeActive reports whether any configured ChangeFreeze window is currently active.
status.matchedAutomations integer (int32) no - min: 0 MatchedAutomations counts Automations currently governed by this TrustPolicy.
status.observedGeneration integer (int64) no - - ObservedGeneration is the most recent generation observed by the controller.