Skip to main content

Crate patronus_ark

Crate patronus_ark 

Source

Re-exports§

pub use dynamic_pii::DynamicPiiConditionalLabels;
pub use dynamic_pii::DynamicPiiConfig;
pub use dynamic_pii::DynamicPiiExecutionGate;
pub use dynamic_pii::DynamicPiiRequestConfig;
pub use dynamic_pii::DynamicPiiResultCondition;
pub use dynamic_pii::MAX_REQUEST_LABEL_BYTES;
pub use external_l1::ExternalL1Detector;
pub use external_l1::ExternalL1Input;
pub use pipeline::Pipeline;
pub use pipeline::SecurityGateway;
pub use types::ConditionalPipelineGate;
pub use types::EffectiveL3PipelinePolicy;
pub use types::GateExpression;
pub use types::GateResult;
pub use types::L3AggregationStrategy;
pub use types::L3ClusteringStrategy;
pub use types::L3EarlyExitMode;
pub use types::L3PipelineEarlyExit;
pub use types::L3PipelinePolicy;
pub use types::L3ProgressMode;
pub use types::L3SchedulerPolicy;
pub use types::L3Strategy;
pub use types::MetadataCondition;
pub use types::NtdbOperatingPoint;
pub use types::OnnxBatchMode;
pub use types::QueuedSecurityEvent;
pub use types::QueuedSecurityProgress;
pub use types::QueuedSecurityScanResult;
pub use types::RequestId;
pub use types::ResultCondition;
pub use types::ScanExecution;
pub use types::ScanGateMatrix;
pub use types::SecurityAssetProgress;
pub use types::SecurityAssetProgressCallback;
pub use types::SecurityAssetReadiness;
pub use types::SecurityFailure;
pub use types::SecurityFailureKind;
pub use types::SecurityFailureStage;
pub use types::SecurityLevel;
pub use types::SecurityLevelReadiness;
pub use types::SecurityRequestCompletion;
pub use types::SecurityRequestState;
pub use types::SecurityRuntimeReadiness;
pub use types::SecurityScanResult;
pub use types::WolfSelection;

Modules§

assets
detectors
Shared native detectors (including shell, the shell-command detector).
dynamic_pii
external_l1
gliner_onnx_engine
ml
normalization
pipeline
post_prediction
types

Structs§

CacheEncryptionConfig
ChunkOverlapTokens
CredentialTemplateHook
DecisionCandidate
One typed classifier candidate considered by final-decision arbitration.
DecisionEnvelope
Stable classifier decision envelope for downstream policy evaluation.
DecisionProvenance
Minimal provenance for a classifier decision envelope.
DecisionRecommendation
Ark’s calibrated default recommendation for a classifier result.
DecisionResult
Final Ark verdict recorded inside a decision envelope.
DecisionTerminality
Terminal request state relevant to decision consumers.
EvaluationResult
A single classifier decision before it is wrapped in a public scan result.
EvidenceSpan
Exact evidence span returned by an entity-producing pipeline.
ExactCacheConfig
LabelScore
One scored label returned by a multi-label classifier head.
LayerResult
Per-layer evidence for a scan result.
LocalPathPersonHook
Suppresses GLiNER/native `person` spans that are merely usernames in local POSIX/macOS paths. Other labels and person spans in prose are unchanged.
MemoryCacheConfig
NativeGates
Per-call native policy: rule, model, mode and diagnostics gates, shared by the Core scanner and the full gateway. Missing rule entries use default_rule_enabled, missing model entries are enabled.
OnnxRuntimeOptions
Caller-provided ONNX Runtime session options.
PersistentCacheConfig
PrivateNetworkDiagnosticHook
Keeps private/local IP predictions for diagnostics while preventing their evidence spans from triggering redaction in network diagnostic output.
TextNormalizationConfig
WolfExecutionOptions
Wolf document execution. Sizes count tokens, batches count document windows. The defaults keep the 254-content-token profile; the published v2.1 reference (2048 positions, 64 overlap) is opt-in because long documents cost about 2.5x.
WriteBehindConfig

Enums§

CacheError
CacheWriteMode
ExecutionBackend
Runtime backend profile used to choose default L3 execution behavior.
ScoreMode
Output mode of the scored native detectors (PII and DLP). Strict is the default and the pre-score behaviour.
SecurityCategory
Supported scanner category.
WolfModel
Wolf Defender size. All sizes share the export format and tokenizer family.
WolfPrecision
ONNX export of a Wolf model. Auto resolves through PRECISION_ENV, then the CPU.

Constants§

MAX_CHUNK_OVERLAP_TOKENS

Traits§

PostPredictionHook
Post-prediction evidence filter. Predictions remain available for diagnostics; the hook only decides which spans are actionable evidence.

Functions§

canonical_security_text_v1
normalize_text