Summary
Model tool approval as an explicit, ordered operation in the agent turn — each tool request resolves through one of: auto-approve, security-scan, or operator-approval — rather than being decided ad-hoc inside the loop.
Why it fits hive
Hive already gates what agents may do by ACMM level and enforces security/authorship guardrails, but those gates are spread across the loop. Making tool approval a first-class, inspectable operation would let hive:
- Resolve every tool request through a single, testable decision point:
auto-approve | security-scan | operator-approve | deny.
- Key the decision on ACMM level (e.g. L4 → operator-approve for side-effectful tools; L6 → auto-approve on green) instead of ad-hoc checks scattered through the loop.
- Route the "security-scan" path through the existing sec-check surface before a tool runs, not after.
- Produce an auditable record of why each tool call was allowed or blocked.
Proposed scope
- Introduce a tool-approval decision function taking (tool request, ACMM level, agent identity) → verdict.
- Wire the existing ACMM gates + sec-check into it as the policy source.
- Emit the verdict + rationale to the audit log.
Notes
Architectural enhancement; no external dependency. Pairs with a state-triggered hooks mechanism and the broader re-entrant turn model tracked in sibling issues.
Summary
Model tool approval as an explicit, ordered operation in the agent turn — each tool request resolves through one of: auto-approve, security-scan, or operator-approval — rather than being decided ad-hoc inside the loop.
Why it fits hive
Hive already gates what agents may do by ACMM level and enforces security/authorship guardrails, but those gates are spread across the loop. Making tool approval a first-class, inspectable operation would let hive:
auto-approve | security-scan | operator-approve | deny.Proposed scope
Notes
Architectural enhancement; no external dependency. Pairs with a state-triggered hooks mechanism and the broader re-entrant turn model tracked in sibling issues.