Files
fil/.ai-rulez/domains/plugin-system/rules/plugin-registry-and-selection.md
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

554 B

priority
priority
critical
  • Separate typed registry per plugin type (ExtractorRegistry, OcrRegistry, etc.)
  • Thread safety: Arc<RwLock<>> for all registries
  • Priority system: 0-255, default 50, custom > 50, fallback < 50
  • Selection: highest priority plugin matching the MIME type wins
  • MIME type indexing for O(log n) lookup
  • Conflict resolution: if equal priority, prefer Rust-native over FFI plugins
  • Dynamic registration: plugins can be added/removed at runtime
  • Validate plugin before registration (check trait compliance, supported formats)