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
TrustPolicyexists or trust is unspecified, the default ceiling isHITL. - Protected workloads and refusal list:
TrustPolicycan cap protected namespaces or workloads toObserveorHITLand unconditionally refuse forbidden kinds (Secret,Role,ClusterRole,CustomResourceDefinition,PersistentVolumeClaim). - Hard overrides: An active change freeze, global kill switch (
faberctl pause --all), or exhausted budget forcesObserve(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=Allpass 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, orSkipped). - Updates
Automation.status.trust[]per action. - Evidence-gated promotion:
EvaluatePromotionreads only verifiedVerificationOutcomerecords (never operational memory) to evaluate graduation eligibility. - Automatic demotion: Any
postCheckfailure or PR revert (detected byPRFeedbackSyncer.OnPRRevert) immediately triggersEvaluateDemotion, rolling back reversible snapshots and demoting the action back toHITL.
Shadow Scorecard v2 and Executive Export
Section titled “Shadow Scorecard v2 and Executive Export”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
$0pre-check skip rate: Triggers short-circuited at$0.00before waking an LLM - Model spend and SaaS benchmark savings: Total spend, cost per run, and estimated savings vs a
$4.00/runSaaS AI SRE benchmark
Export a 7-day executive report from the CLI, REST API, or Proba Scorecard view:
# Compact terminal summaryfaberctl scorecard --days 7
# Exportable 7-day executive Markdown reportfaberctl scorecard --days 7 -o markdown > faber-scorecard-7d.md
# Machine-readable JSONfaberctl scorecard --days 7 -o jsonREST API endpoints:
GET /api/v1/scorecard?days=7(JSON)GET /api/v1/scorecard?days=7&format=markdown(Executive Markdown report)
Slack Interactive Quorum Approvals
Section titled “Slack Interactive Quorum Approvals”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.
Change Freezes and Opt-In k8s_action
Section titled “Change Freezes and Opt-In k8s_action”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.
Global Kill Switch
Section titled “Global Kill Switch”Halt all remediation activity across every namespace immediately with the persisted global kill switch:
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.