Skip to main content

ralph_workflow/git_helpers/
runtime.rs

1//! Runtime primitives for git_helpers boundary module.
2//!
3//! This module is a boundary seam for signal-handler registration and
4//! the test serialisation lock. Process-global phase-state lives in
5//! `phase_state` to keep it importable from non-boundary modules.
6
7pub use crate::git_helpers::hooks;
8
9#[cfg(any(test, feature = "test-utils"))]
10#[must_use]
11pub fn agent_phase_test_lock() -> &'static std::sync::Mutex<()> {
12    static TEST_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(());
13    &TEST_LOCK
14}