Skip to content

Vault lint, scan and batch maintenance

State: open/building · Kind: module · Audience: system

  • Maintains a markdown vault: lints it, scores its health, finds empty and duplicate files, validates frontmatter against schemas, and applies reversible batch fixes.
  • Everything it computes is derived and rebuildable from the vault directory, except the batch journal (undo and ignores).

The crate scans a vault with the rumdl lint engine and stores results, health scores and scan history in SQLite. It also finds empty files and content-hash duplicates, validates frontmatter against per-vault JSON Schemas matched by glob, and merges all sources into one findings view. Fixes edit exact byte spans and never round-trip a document through a parser. Batch operations splice one frontmatter key, repoint inbound links when a duplicate is deleted, and move deleted files to .trash. A journal supports undo and ignores, with git status, commit and revert around a batch. A monitor re-checks files live. The domain modules are host-agnostic; port.rs binds them to the platform as the PolishPort implementation.

  • Lint engine wrapper, rule table and three-granularity byte-offset auto-fix
  • Weighted health scoring and a SQLite result and scan-history store
  • Empty-file and duplicate-file scans
  • Frontmatter JSON Schema validation with glob-to-schema rules
  • Unified findings view across lint, schema, scan and media sources
  • Batch fix, delete and undo with a journal and git commit
  • Live monitoring and the PolishBackend port
  • solutions/determined/crates/determined-polish/: domain modules are host-agnostic; src/port.rs (PolishBackend) is the only module bound to the platform
  • Consumed by determined-platform; builds on determined-vault, vault-transform, determined-git, determined-media and dir-aspect
  • solutions/determined/crates/determined-polish/
  • solutions/determined/crates/determined-polish/src/port.rs#PolishBackend
  • solutions/determined/crates/determined-polish/src/lint/fix.rs#apply_fixes
  • solutions/determined/crates/determined-polish/src/lint/health.rs#calculate_health
  • solutions/determined/crates/determined-polish/src/schema/engine.rs
  • solutions/determined/crates/determined-polish/src/batch/mod.rs

← Back to Capabilities