Skip to content

[v5] Adopt tool-approval as an explicit, ACMM-gated operation #4000

Description

@clubanderson

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions