Skip to main content

Crate gaze

Crate gaze 

Source

Re-exports§

pub use registry::Canonicalizer;
pub use registry::FamilyPolicyTable;
pub use registry::RecognizerRegistry;
pub use registry::RecognizerRegistryBuilder;
pub use registry::ValidationResult;
pub use registry::Validator;
pub use resolver::resolve_candidates;
pub use resolver::resolve_candidates_with_policy;
pub use rulepack::recognizer_composition_validator;
pub use rulepack::AnchoredBoundary;
pub use rulepack::ContextSpec;
pub use rulepack::CuePosition;
pub use rulepack::LocaleBucket;
pub use rulepack::LocaleCueBundle;
pub use rulepack::LocaleData;
pub use rulepack::NameShape;
pub use rulepack::NormalizerSpec;
pub use rulepack::RawMatch;
pub use rulepack::RecognizerSpec;
pub use rulepack::Rulepack;
pub use rulepack::RulepackError;
pub use rulepack::RulepackSource;
pub use rulepack::ScoringSpec;
pub use rulepack::SourceSpec;
pub use rulepack::TokenSpec;
pub use rulepack::ValidatorSpec;

Modules§

locale
recognizer
registry
resolver
rulepack
token_shape

Structs§

Candidate
Candidate PII span emitted by a recognizer before final conflict resolution.
ClassRule
CodecAuditRow
Metadata-only audit row emitted by a document codec.
CodecCapabilitySet
Orthogonal document codec capabilities delivered or advertised by a codec.
CollisionMembership
Collision-family membership metadata for one recognizer.
ColumnRule
Context
ContextDictionary
ContextFieldsRef
DefaultRule
DetectContext
Context supplied to recognizers during detection.
Detection
A detected span and its class/source metadata.
DetectorSpec
DictionaryBundle
Value-only dictionary bundle shared with recognizers.
DictionaryEntry
Value-only dictionary entry; compiled automatons live outside gaze-types.
DictionaryStats
Dictionary metadata used for diagnostics and tests.
DocumentExtension
Signed document-context metadata carried inside a session snapshot envelope.
DocumentExtensionBuilder
Builder for DocumentExtension that requires signed integrity-binding fields.
EmittedTokenSpan
A replacement emitted by the pseudonymization pipeline.
ExecPolicy
LeakReport
A suspected missed PII span reported by a SafetyNet.
LeakReportStats
Aggregate leak report statistics.
LeakSuspect
Suspected leak reported by an observer-only safety net.
LocaleChain
Ordered locale fallback chain.
Manifest
Set of emitted token spans for one clean text segment.
NerPolicy
Pipeline
The stateless PII pseudonymization engine.
PipelineBuilder
Builder for Pipeline.
PipelineOptimizationConfig
Policy
Loaded redaction policy from a TOML configuration file.
RedactionEntry
One row of redaction metadata emitted to a RedactionLogger.
RestoreEvent
RestoreTelemetry
RestoredText
RuleContext
RulepackDict
Dictionary declared by a rulepack.
RulepackPolicy
SafetyNetContext
Context passed to a privacy safety net.
SafetyNetPolicy
SandboxPlan
Backend-produced execution plan. v0.2 only lands the trait shape, so this remains a simple command description rather than a spawned process.
SensitiveSnapshot
Serializable snapshot of a Session’s token manifest.
Session
Owns the token manifest for one pseudonym namespace.
SessionPolicy
SessionSnapshotEntry
TypedContext
UntrustedExecRequest
Agent-controlled execution input. This is never handed directly to a sandbox backend; core validates it first.
ValidatedExecRequest
Trusted execution request after core-side validation.

Enums§

Action
Disposition applied to a detected PII span.
CleanDocument
The pseudonymized output from Pipeline::redact.
ConflictTier
Conflict resolution tier that selected or rejected a candidate.
ContextError
DetectorKind
DictionaryLoadError
Error raised when constructing invalid dictionary entries.
DictionarySource
Source of a dictionary entry.
DocumentExtensionError
Errors returned while building a DocumentExtension.
DocumentKind
Source document kind for metadata-only audit logging.
Error
ExtractionDensityPolicy
Per-codec declaration for text extraction density checks.
FallbackReason
Safety-net fallback reason recorded in metadata-only audit rows.
LeakKind
The category of a suspected missed PII span.
LeakReportTelemetry
Bytes-free telemetry emitted by safety-net orchestration.
LocaleError
Locale parsing error.
LocaleTag
Locale tag recognized by policy and recognizers.
OpenAiPrivateLabel
Closed set of upstream OpenAI Privacy Filter labels accepted by Gaze.
PiiClass
The category of a detected PII span.
PolicyError
RawDocument
The input document submitted for pseudonymization.
RedactionLogError
Closed error set for redaction log sinks.
RestoreDecision
RestoreEventKind
RestorePolicy
RuleSpec
SafetyNetError
Exhaustive, closed error set for safety-net execution.
SafetyNetFallback
SafetyNetMode
SafetyNetPiiClass
Closed safety-net PII vocabulary before mapping into PiiClass.
SafetyTier
Rulepack recognizer activation tier.
SandboxError
Scope
Persistence scope of a Session’s token manifest.
SessionScope
TextOrigin
Provenance of text extracted from a document or transcript source.
Value
Minimal structured value representation that avoids a serde_json dependency.

Constants§

BUILTIN_CLASS_NAMES
Built-in class labels in stable display order.
DEFAULT_NER_THRESHOLD
DEFAULT_POLICY_SCHEMA_VERSION
Schema version stamped on policy.toml documents that omit the field.
RESERVED_BUNDLED_FAMILIES
Family names reserved for bundled collision-policy rulepacks.
RESTORE_PHASE_FRESH_PII_SCAN
RESTORE_PHASE_MANIFEST_BYPASS_SCAN
RESTORE_PHASE_MANIFEST_LOOKUP
RESTORE_PHASE_UNKNOWN_TOKEN_SCAN
SUPPORTED_POLICY_SCHEMA_MAJOR_MINOR
major.minor prefix of the policy schema versions this build accepts.

Traits§

Detector
Shared detector contract for text-only PII detection.
DictionaryBundleExt
Recognizer
Shared recognizer contract for locale-aware PII candidates.
RedactionLogger
Trait for audit sinks that receive redaction metadata.
Rule
SafetyNet
Observer-only post-clean check (Pass 3 in the detection pipeline).
Sandbox
Sandbox backends operate only on validated requests. The trust boundary is explicit: core validates agent-controlled argv/env/path input before any backend-specific wrapping is applied.

Functions§

dictionary_bundle_from_context
validate_ner_locale

Type Aliases§

RestoreError
Result