Run one metadata-only reconcile pass inside the balanced atomic-bridge watcher bracket.
(root: &Path, sink: &(dyn Fn(WatchNoticeKind, &str) + '_))
| 412 | /// Run one metadata-only reconcile pass inside the balanced atomic-bridge |
| 413 | /// watcher bracket. |
| 414 | fn bracket_pass(root: &Path, sink: &(dyn Fn(WatchNoticeKind, &str) + '_)) -> CliResult<()> { |
| 415 | let sink_ref: &WatchNoticeSink<'_> = sink; |
| 416 | let operation = format!("shim-watch:{}", std::process::id()); |
| 417 | let root_owned = root.to_path_buf(); |
| 418 | atomic_agent::watcher::bridge::bracket_bridge_transaction( |
| 419 | atomic_agent::watcher::bridge::watcher_config(root), |
| 420 | &operation, |
| 421 | move || { |
| 422 | reconcile_transaction_budgeted( |
| 423 | &root_owned, |
| 424 | ReconcileEffectBudget::MetadataOnly, |
| 425 | Some(sink_ref), |
| 426 | ) |
| 427 | }, |
| 428 | ) |
| 429 | } |
| 430 | |
| 431 | /// Write one pending notice for every active managed session (RFC §11.2 |
| 432 | /// rule 6: "pushed into the session as a notice before the agent's next |
no test coverage detected