Decision Approval Kit

Structured approval workflows for high-impact agent decisions.

0 approved / 0 rejected / 5 pending

Configuration

Decision Queue
Deploy v2.3.1 to production
All users affected · Senior Ops
HIGH1500ms
Enable feature flag: dark-mode
Opt-in users only · Tech Lead
LOW600ms
Scale database replicas +2
Infrastructure cost · Infra Lead
MEDIUM900ms
Purge 30-day-old cache entries
Temporary latency spike · On-call
LOW400ms
Rotate API keys for service-A
Brief auth failures · Security
MEDIUM800ms

Integration Code

import { createDecisionApproval } from 'agent-tools-kit/human-command'

const approval = createDecisionApproval({
  workflow: 'multi-level',
  slaTimers: true,
  escalationPolicy: 'auto',
})

// Submit a decision for approval
const result = await approval.submit({
  action: 'deploy',
  version: 'v2.3.1',
  impact: 'all-users',
  riskLevel: 'high',
  approvers: ['senior-ops', 'tech-lead'],
})

// Handle approval outcomes
result.on('approved', () => console.log('Decision approved'))
result.on('rejected', (reason) => console.log('Rejected:', reason))
result.on('escalated', (level) => console.log('Escalated to:', level))