Weave Core
Filesystem Runtime
Mirror::new(source, target, config) creates state.
Workflow and current contract
Mirror::new(source, target, config) creates state. Transfer work starts through start(source_locus, target_locus).await, with actual source and target Arc<Locus> instances. status() reports current mirror state; stop().await controls the lifecycle. Construction alone leaves a configured mirror, not a completed synchronization.
The feature-gated core AgentFs wrapper takes an AgentFsConfig, owner Did, and Arc<Locus>. Keep this wrapper separate from the local weave-agentfs package and its AgentFS type.
Source reference
filesystem::mirrordeclarations —libs/weave-core/src/filesystem/mirror.rs.filesystem::agentfsdeclarations —libs/weave-core/src/filesystem/agentfs.rs.filesystem::diffdeclarations —libs/weave-core/src/filesystem/diff.rs.