Skip to content

Actions, Trust Gradient, and Safety Controls

Faber is built so platform and security teams never have to grant autonomous write access on day one. Every action is governed by one deterministic trust formula, a cryptographic evidence verdict gate, post-merge verification, Shadow Scorecard v2, change freezes, and an instant global kill switch.

Single Trust Formula and TrustPolicy (ftp)

Section titled “Single Trust Formula and TrustPolicy (ftp)”

In faberops.dev/v1beta1, security teams own TrustPolicy (ftp) while playbook authors declare action ceilings on Playbook (fpb) and app teams request autonomy on Automation (fauto).

Effective trust for every action is computed by one formula:

effectiveTrust = min(requested, playbookCeiling, trustPolicyCeiling, earnedLevel)

Key invariants:

  • Safe default: When no TrustPolicy exists or trust is unspecified, the default ceiling is HITL.
  • Protected workloads and refusal list: TrustPolicy can cap protected namespaces or workloads to Observe or HITL and unconditionally refuse forbidden kinds (Secret, Role, ClusterRole, CustomResourceDefinition, PersistentVolumeClaim).
  • Hard overrides: An active change freeze, global kill switch (faberctl pause --all), or exhausted budget forces Observe (or blocks execution) regardless of requested or earned trust.
Mode What Faber Does Best Used For
Observe Runs full investigation and records proposed actions in status.shadowPlan with zero writes Shadow Mode onboarding and 7-day scorecard evaluation
HITL (default) Pauses in WaitingApproval until approved via Slack interactive quorum, Proba, API, or faberctl Day-1 PRs, production changes, and read-write k8s_action playbooks
AITL Executes after blast-radius checks, evidence verdict gate, and second-model verifier pass Proven low-risk fixes with verified post-merge history
Auto Executes after blast-radius checks and evidence verdict gate pass Strictly bounded, reversible, non-destructive maintenance

See config/samples/trustpolicy-default.yaml and the CRD API Reference.

Evidence Verdict Digest Gate and Server-Side Dry-Run

Section titled “Evidence Verdict Digest Gate and Server-Side Dry-Run”

Before Faber executes any mutating action (open_pr, push_to_pr, or k8s_action), it seals AutomationRun.status.evidence with a SHA-256 verdictDigest covering:

  • Input digest, model identifier, and repository bundle digest
  • Ephemeral sandboxClaimName, runtime class, and observed egress hosts (empty for zero-egress sandboxes)
  • Validator command and exit code
  • Server-side dryRun=All pass status for Kubernetes mutations
  • Diff file/line counts and secret-scan pass status

ValidateEvidenceForMutation fails closed: any missing or mismatched verdictDigest blocks the write before reaching the forge or Kubernetes API.

Post-Merge Verification (PostMergeVerifier) and Evidence-Gated Promotion

Section titled “Post-Merge Verification (PostMergeVerifier) and Evidence-Gated Promotion”

A leader-elected PostMergeVerifier controller watches merged PRs and completed k8s_action mutations across each action’s verification window:

  • Runs configured post-checks (Kubernetes CEL, Prometheus PromQL, HTTP status, or Cilium Hubble flow checks) and records AutomationRun.status.verification (Verified, Failed, Reverted, or Skipped).
  • Updates Automation.status.trust[] per action.
  • Evidence-gated promotion: EvaluatePromotion reads only verified VerificationOutcome records (never operational memory) to evaluate graduation eligibility.
  • Automatic demotion: Any postCheck failure or PR revert (detected by PRFeedbackSyncer.OnPRRevert) immediately triggers EvaluateDemotion, rolling back reversible snapshots and demoting the action back to HITL.

Run Automations in Observe trust (Shadow Mode) to measure precision, speed, and cost savings before enabling writes. Shadow Scorecard v2 surfaces:

  • Verified precision: Post-merge verified outcomes divided by verified runs
  • Median time to brief: Seconds from trigger to completed brief compared against a 15-minute (900s) human acknowledgement baseline
  • Deterministic $0 pre-check skip rate: Triggers short-circuited at $0.00 before waking an LLM
  • Model spend and SaaS benchmark savings: Total spend, cost per run, and estimated savings vs a $4.00/run SaaS AI SRE benchmark

Export a 7-day executive report from the CLI, REST API, or Proba Scorecard view:

Terminal window
# Compact terminal summary
faberctl scorecard --days 7
# Exportable 7-day executive Markdown report
faberctl scorecard --days 7 -o markdown > faber-scorecard-7d.md
# Machine-readable JSON
faberctl scorecard --days 7 -o json

REST API endpoints:

  • GET /api/v1/scorecard?days=7 (JSON)
  • GET /api/v1/scorecard?days=7&format=markdown (Executive Markdown report)

For HITL checkpoints, teams can approve or reject directly inside Slack in addition to Proba and faberctl. Faber verifies Slack HMAC-SHA256 signatures with a 5-minute replay window on both the admin and dedicated webhook ports (--webhook-bind-address), records verified actor votes atomically in the backing store (RecordApprovalVote), and enforces TrustPolicy minApprovals and requireDistinctApprover quorum rules.

Declare recurring freeze windows on TrustPolicy.spec.changeFreeze.windows (downgrade_to_hitl, observe_only, or block). Overnight windows (startHour > endHour) automatically evaluate against the previous weekday after midnight.

Default Faber workload RBAC is strictly read-only. To opt into bounded live cluster actions (rollout-restart, scale, delete-pod, cordon, annotate), grant narrow write rules in Helm rbac.writeRules (or enable opt-in per-automation faber-actor-<automation> Kubernetes actor impersonation) and declare blastRadius plus rollback on the Playbook action.

Halt all remediation activity across every namespace immediately with the persisted global kill switch:

Terminal window
faberctl pause --all --reason "database failover window"
faberctl resume --all --reason "failover complete"

When paused, every run drops to read-only or skips mutation until an operator explicitly runs faberctl resume --all.