mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Main's #2974 modularized managed_agents/runtime.rs (process / orphan_sweep / instance_reaper / lifecycle / metadata) from pre-PR content, conflicting with this PR's runtime.rs changes. Resolution re-applies the PR's semantics into the new module layout, changing nothing else: - process.rs: valid_agent_runtime_receipt delegates to injectable valid_agent_runtime_receipt_with; marker-only ownership (name gate dropped). - orphan_sweep.rs: sweep ownership rule comment block; marker-only gates in sweep_orphaned/sweep_system/collect_same_instance_orphans (macOS + Linux). - instance_reaper.rs: name pre-gate removed on both platforms (marker is the authoritative proof). - lifecycle.rs: kill_stale_tracked_processes delegates to injectable kill_stale_tracked_processes_with. - runtime.rs: build_managed_agent_summary/spawn_agent_child keep the PR's descriptor resolver, global_config param, MissingBinary requirement, and descriptor.env write-back (main refactor did not touch these hunks); cfg(test) re-exports added for the injectable seams. - check-file-sizes.mjs: took main's side (runtime.rs override removed by #2974; post-merge runtime.rs is 944 lines, under the 1000 ceiling). runtime/tests.rs keeps the PR's 1320 ratchet. Verified at merge tree: cargo test --lib 1705/0 (14 ignored), clippy -D warnings, fmt, file-size gate all clean. Co-authored-by: Tyler Longwell <tlongwell@block.xyz> Signed-off-by: Tyler Longwell <tlongwell@block.xyz>