You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Activate kill-switch for an extension
manager.set_kill_switch("extension-id",true,"incident-2024-001");// Deactivate
manager.set_kill_switch("extension-id",false,"cleared-after-investigation");// Check trust statelet trust = manager.trust_state("extension-id");
Score Band Thresholds (by profile)
Safe
Balanced
Permissive
Harden
0.30
0.40
0.55
Prompt
0.50
0.60
0.70
Deny
0.65
0.75
0.85
Terminate
0.80
0.90
0.95
Rollback Trigger Defaults
Threshold
Value
Action when breached
FP rate
> 5%
Auto-rollback to Shadow
Error rate
> 10%
Auto-rollback to Shadow
Avg latency
> 200ms
Auto-rollback to Shadow
Min samples
10
No evaluation below this
Evidence Bundle Operations
use pi::extensions::{
build_incident_evidence_bundle, verify_incident_evidence_bundle,
replay_runtime_risk_ledger_artifact,IncidentBundleFilter,IncidentBundleRedactionPolicy,SecurityAlertCategory,SecurityAlertSeverity,};// Build a bundle (scoped to an extension and time window)let filter = IncidentBundleFilter{start_ms:Some(start),end_ms:Some(end),extension_id:Some("ext-id".into()),alert_categories:None,// or Some(vec![...])min_severity:None,// or Some(SecurityAlertSeverity::Warning)};let redaction = IncidentBundleRedactionPolicy::default();// redact all hasheslet bundle = build_incident_evidence_bundle(&ledger,&alerts,&telemetry,&exec,&secret,"a_breaches,&filter,&redaction, now_ms,);// Verify bundle integritylet report = verify_incident_evidence_bundle(&bundle);assert!(report.valid);// Forensic replaylet replay = replay_runtime_risk_ledger_artifact(&ledger)?;