Skip to main content

Module mount

Module mount 

Source
Expand description

Mount module: path-alias system (RFC-025).

A Mount is a lightweight name bound to one or more filesystem paths (oxios/Volumes/MERCURY/PROJECTS/oxios). It is the path-alias role that RFC-011’s Project conflated with memory partitioning.

The agent explores a Mount’s paths with tools (ls/read/grep) and accumulates auto_description / auto_meta over time. Mounts are living objects — they are refreshed during sessions, on marker drift, and during Dream consolidation (RFC-008).

§Structure

  • mod.rsMount, MountMeta, MountSource, MountId (this file)
  • mount_db.rs — SQLite persistence (mounts table)
  • manager.rsMountManager (CRUD, lookup, detection, touch)
  • detection.rsdetect_mounts (name/path/meta matching)

Re-exports§

pub use detection::DetectionResult;
pub use detection::detect_mounts;
pub use detection::extract_path;
pub use detection::find_by_id;
pub use detection::find_by_name;
pub use manager::MountManager;
pub use manager::MountManagerError;
pub use meta_detection::detect_meta;
pub use meta_detection::snapshot_markers;
pub use path_promotion::PathFrequency;
pub use path_promotion::PromotionConfig;

Modules§

detection
Mount detection: find a Mount matching user input (RFC-025).
manager
MountManager: CRUD + detection for Mounts (RFC-025).
meta_detection
Auto-meta detection: cheap heuristics on marker files (RFC-025 §Auto-Meta).
mount_db
Mount SQLite persistence (RFC-025).
path_promotion
Path promotion: auto-create Mounts for frequently-used paths (RFC-025 Phase 5).

Structs§

Mount
A path alias: a name bound to one or more filesystem paths.
MountMeta
Auto-detected metadata, written/refined by the agent as it explores.

Enums§

MountSource
How a Mount was registered.

Type Aliases§

MountId
Unique identifier for a Mount.