pub struct Taint {Show 17 fields
pub id: String,
pub path: String,
pub name: String,
pub kind: TaintKind,
pub effect: TaintEffect,
pub severity: TaintSeverity,
pub reason: String,
pub agent_id: String,
pub commit_id: String,
pub created_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
pub resolved_at: Option<DateTime<Utc>>,
pub resolved_by: Option<String>,
pub resolved_reason: Option<String>,
pub resolved_proof: Option<String>,
pub propagate: bool,
pub metadata: TaintMetadata,
}Expand description
A taint record. Persisted to the taints table in storage and
round-tripped across the MCP / FFI / binding surfaces.
Fields§
§id: StringUUID string generated at creation.
path: StringPath the taint applies to (e.g. /cluster/nodes/picoup2).
name: StringHuman-readable taint name (e.g. disk-pressure,
crash-loop, security-review).
kind: TaintKindDiscriminator between taint / quarantine / watch.
effect: TaintEffectHow the pre-commit hook should behave when this taint matches an incoming write.
severity: TaintSeverityAdvisory severity (does not change pre-commit semantics).
reason: StringWhy the taint was applied. Free-form.
agent_id: StringAgent that applied the taint.
commit_id: StringCommit id of the Taint / Quarantine / Watch intent
commit that created this record. Empty until the commit is
written (the repository patches it post-commit).
created_at: DateTime<Utc>When the taint was created.
expires_at: Option<DateTime<Utc>>Optional auto-expiry.
resolved_at: Option<DateTime<Utc>>Set when resolved via untaint / unquarantine / unwatch.
resolved_by: Option<String>Agent that resolved the taint.
resolved_reason: Option<String>Reason given at resolution.
resolved_proof: Option<String>Optional evidence (e.g. a remediation commit id) proving the issue is resolved.
propagate: boolWhen true, the taint applies to all descendant paths of
path.
metadata: TaintMetadataKind-specific metadata: authorized_agents for quarantines,
metric / threshold / direction for watches, etc.