Skip to main content

git_paw/opsx/
mod.rs

1//! `OpenSpec` (`opsx`) integration support.
2//!
3//! Houses the role-gating guard (`opsx-role-gating` capability): a
4//! post-commit watcher hook that detects archive-activity commits by
5//! non-supervisor agents and reacts per the configured
6//! [`crate::config::RoleGatingMode`]. The capability is scoped to the
7//! `OpenSpec` spec engine — under Spec Kit / Markdown engines the guard is
8//! inert and the forbidden-command skill sections are omitted.
9
10pub mod role_guard;
11
12pub use role_guard::{
13    AgentAttribution, Classification, CommitDiff, RoleGatingContext, SUPERVISOR_AGENT_ID,
14    classify_commit, resolve_agent_id,
15};