Skip to content

fix(engine, ontology): review orchestrator#47

Merged
martsokha merged 10 commits intomainfrom
feature/orchestrator
Mar 13, 2026
Merged

fix(engine, ontology): review orchestrator#47
martsokha merged 10 commits intomainfrom
feature/orchestrator

Conversation

@martsokha
Copy link
Member

No description provided.

martsokha and others added 6 commits March 11, 2026 12:58
Move DocumentEnvelope from context/ to its own envelope/ module and
introduce ApplyPatch — a trait for merging operation results back into
the envelope. Concrete patch types: DetectedEntities, RefinedEntities,
PolicyOutcome, OperationEntry. Supports tuples for composite returns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Detection operations (NER, CV, OcrVerification, PatternMatch) now return
DetectedEntities; refinement operations (Deduplication, Ensemble) return
RefinedEntities; EvaluatePolicy returns PolicyOutcome instead of the
removed EvaluatePolicyOutput.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…, and methods

Add new EntityKind variants (VehicleId, LicensePlate, CardExpiry, BankRouting,
SwiftCode, CryptoAddress, Amount, InsuranceId, PrescriptionId, Medication,
FacialGeometry, Voiceprint, RetinaScan, AuthToken, PrivateKey, DeviceId,
GeolocationMetadata, Handwriting, Logo, Barcode, DepartmentName, FacilityName,
CaseNumber, InternalId, DateTime). Add EntityCategory::Visual. Expand
ExtractionMethod and RecognitionMethod with new variants. Update sensitivity
and category mappings, pattern assets, and all downstream consumers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Dictionaries: add filesystem loading (from_path, load_file, load_dir),
DictionaryLoadError type, make module public with registry re-exports.
Validators: expand Luhn tests, improve module docs.
Patterns: add tracing target constants, improve context rule docs.
Engine: fix scan_deny_list borrow issue with HashSet, add assert guard
for empty recognition_methods, use BTreeMap in DenyList for determinism,
add tracing targets and field recording throughout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…kspace

Use self:: prefix on all pub use re-exports in mod.rs and lib.rs files
to visually distinguish internal submodule imports from external crate
imports. Applied consistently across all workspace crates.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@martsokha martsokha self-assigned this Mar 12, 2026
@martsokha martsokha added docs improvements, updates or additions to docs feat request for or implementation of a new feature labels Mar 12, 2026
martsokha and others added 4 commits March 12, 2026 20:31
…lish docs

Move allow/deny lists from PatternEngine into per-scan ScanContext,
simplify DenyList::with/insert to take a DenyRule struct instead of
separate fields, remove FromIterator for DenyList, fold builder back
into its own file after slimming, add scan_context.rs. Extract
registries and error types into dedicated files across dictionaries
and patterns modules. Rename Error.source_component to component.
Normalize all doc comments to prefer : over — and single spaces.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… naming

Add tracing instrumentation to all public methods, .with_component() on
all errors, #![forbid(unsafe_code)] and docsrs attributes. Split flat
store/ module into handler/ (ContentHandle, ContextHandle) and registry/
(Registry). Deduplicate composite key construction and prefix-scan
helpers. Rename parameters to use _id suffix (actor_id, content_id,
context_id) and document all types, fields, and methods.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove the free-function NER, OCR, and transcription modules and introduce
a structured ExifModule that takes ContentData (arc-backed, zero-copy) and
ExifParams (Copy). Add tracing instrumentation to PythonBridge and ExifModule,
improve docs, and clean up error messages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@martsokha martsokha changed the title Feature/orchestrator review(crates): orchestrator and restructure most crates Mar 13, 2026
@martsokha martsokha changed the title review(crates): orchestrator and restructure most crates fix(engine, ontology): review orchestrator Mar 13, 2026
@martsokha martsokha merged commit baf3c44 into main Mar 13, 2026
5 checks passed
@martsokha martsokha deleted the feature/orchestrator branch March 13, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs improvements, updates or additions to docs feat request for or implementation of a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant