You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cli: daemon_marker classifies a stat failure as 'not a node' #2086
Path::exists() collapses every stat error to false — the exact anti-pattern whoami.rs calls out by name and avoids with symlink_metadata.
That was tolerable when the classifier only chose which store to read. After #2078/#2081/#2082 it is the sole gate for three money-moving refusals (refuse_escrow, refuse_sweep, refuse_implicit_node_dir) and for pool list's node-vs-client routing. A stat that fails for a reason other than NotFound — EACCES on the parent, ELOOP, a transient EIO on NFS — classifies a node data dir as Client, and the guards return Ok.
Honest blast radius: in the EACCES case the subsequent ensure_data_dir / Database::create almost certainly fails too, so the practical outcome is an error rather than a stranded deposit. The residual risk is a transient or partial-permission stat failure where the create then succeeds. So: real but narrow.
If daemon_marker is the safety boundary for refusals that move USDC, it should treat a stat error as "unknown, refuse" rather than "not a node" — symlink_metadata, with a third outcome the callers must handle rather than a two-way Option.
Activity
fix(cli,client-pull): harden bundle pull failover, dedup complement, …