Skip to main content

Control

Trait Control 

Source
pub trait Control: Send + Sync {
    // Required methods
    fn id(&self) -> ControlId;
    fn evaluate(&self, evidence: &EvidenceBundle) -> Vec<ControlFinding>;

    // Provided methods
    fn description(&self) -> &'static str { ... }
    fn tsc_criteria(&self) -> &'static [&'static str] { ... }
    fn remediation_hint(&self) -> Option<&'static str> { ... }
}
Expand description

A verifiable SDLC control that produces findings from evidence.

Required Methods§

Source

fn id(&self) -> ControlId

Returns the unique identifier for this control.

Source

fn evaluate(&self, evidence: &EvidenceBundle) -> Vec<ControlFinding>

Evaluates the evidence bundle and returns one finding per subject.

Provided Methods§

Source

fn description(&self) -> &'static str

Human-readable description for SARIF rule output.

Source

fn tsc_criteria(&self) -> &'static [&'static str]

SOC2 Trust Services Criteria this control maps to (e.g., &[“CC6.1”, “CC8.1”]). Returns empty slice for controls not mapped to SOC2.

Source

fn remediation_hint(&self) -> Option<&'static str>

Actionable remediation hint shown when the control fails or needs review.

Implementors§

Source§

impl Control for AgentSpecConformanceControl

Source§

impl Control for BehavioralRegressionControl

Source§

impl Control for BranchHistoryIntegrityControl

Source§

impl Control for BranchProtectionEnforcementControl

Source§

impl Control for BuildIsolationControl

Source§

impl Control for BuildProvenanceControl

Source§

impl Control for ChangeRequestSizeControl

Source§

impl Control for CodeScanningAlertsResolvedControl

Source§

impl Control for CodeownersCoverageControl

Source§

impl Control for ContainerProvenanceControl

Source§

impl Control for ContainerSignatureControl

Source§

impl Control for ConventionalTitleControl

Source§

impl Control for CoverageThresholdControl

Source§

impl Control for DependencyCompletenessControl

Source§

impl Control for DependencyProvenanceControl

Source§

impl Control for DependencySignatureControl

Source§

impl Control for DependencySignerVerifiedControl

Source§

impl Control for DeploymentHealthControl

Source§

impl Control for DescriptionQualityControl

Source§

impl Control for HarnessGateControl

Source§

impl Control for HostedBuildPlatformControl

Source§

impl Control for IssueLinkageControl

Source§

impl Control for LicenseComplianceControl

Source§

impl Control for McpScopeCheckControl

Source§

impl Control for MergeCommitPolicyControl

Source§

impl Control for NetworkEgressAuditControl

Source§

impl Control for PrivilegedOperationAuditControl

Source§

impl Control for PrivilegedWorkflowDetectionControl

Source§

impl Control for ProvenanceAuthenticityControl

Source§

impl Control for ReleaseAssetAttestationControl

Source§

impl Control for ReleaseTraceabilityControl

Source§

impl Control for RequiredStatusChecksControl

Source§

impl Control for ReviewIndependenceControl

Source§

impl Control for SbomCompletenessControl

Source§

impl Control for ScopedChangeControl

Source§

impl Control for SecretScanningControl

Source§

impl Control for SecurityFileChangeControl

Source§

impl Control for SecurityPolicyControl

Source§

impl Control for SecurityTestInCiControl

Source§

impl Control for SourceAuthenticityControl

Source§

impl Control for StaleReviewControl

Source§

impl Control for TestCoverageControl

Source§

impl Control for TwoPartyReviewControl

Source§

impl Control for VulnerabilityScanningControl