Internals
WatchConfig contains roots, recursion, include/exclude patterns, debounce/coalescing intervals, batch sizes, queue capacity, backpressure_policy, and restart configuration.
Configuration fields
WatchConfig contains roots, recursion, include/exclude patterns, debounce/coalescing intervals, batch sizes, queue capacity, backpressure_policy, and restart configuration. The builder's backpressure(...) method fills that field; the struct field is not named backpressure.
RestartConfig contains enabled, min_backoff_ms, max_backoff_ms, and jitter. The earlier max_attempts, initial_backoff, and max_backoff fields do not exist. These declarations should not be treated as proof of a full restart supervisor: the current implementation declares restart settings without consuming them in its watcher task.
Events carry an ID, type, path, optional old path and file metadata, monotonic timestamp, and optional wall-clock/coalescing information. Batches add sequence and source metadata. The raw-event and downstream-batch channels are unbounded. The configured queue policy acts on a temporary local queue, so it does not impose an end-to-end memory bound. The debounce/coalescing duration values are currently assigned but not used for per-path deduplication. Reconcile actual filesystem state when correctness depends on complete changes.
Watcher declarations and implementation fields. Source: local/agentfs-watch/src/lib.rs.