Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ Impure shell around pure decision cores:
- Each tick: `local_snapshot` + `index_snapshot` → pure `reconcile()` → `Vec<Action>`
{Import, WriteFile, DeleteLocal, Tombstone, Merge} → execute → settle into `SyncState`
(atomic temp+rename to `data_dir/state.toml`).
- The `Wiremap` (ssync-core `wiremap.rs`) owns the adapters, the per-agent excludes, and
the path-map resolver: every wire-key ↔ local-path translation and every freeze verdict
(excluded key #14, dropped-agent guard, failed mapping #49) lives behind it — Engine
never touches adapters directly, and the freeze invariants are unit-tested there
without iroh.
- Import path: file → age-encrypt (subprocess) → `Node::publish` (blob + index entry keyed
`{agent}/{relative_path}`; the ONLY write path — temp-tag prevents the GC race).
- Export path: index entry → `Node::blob` (local miss → bounded fetch from peers behind
Expand Down
2 changes: 1 addition & 1 deletion crates/ssync-core/src/cleanup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn plan(adapters: &[Box<dyn Adapter>], filter: &Filter) -> Result<Vec<Victim
{
continue;
}
let files = crate::session_files(adapter.session_root(), adapter.as_ref());
let files = crate::wiremap::session_files(adapter.session_root(), adapter.as_ref());
let mut selected = Vec::new();
for path in &files {
let old_enough = match filter.before {
Expand Down
Loading