Command Override Kit

Human operators can override any agent decision with full audit trail.

0/4 audited

Configuration

Override Pipeline
Override #o1Safety: 95%
Agent: Auto-deploy v2.3.1
Human: BLOCK deployment
Reason: Unresolved P0 bug in staging
Override #o2Safety: 98%
Agent: Purge 30-day logs
Human: EXTEND retention 90d
Reason: Audit scheduled next week
Override #o3Safety: 88%
Agent: Route to primary DC
Human: FAILOVER to backup
Reason: Primary showing latency spikes
Override #o4Safety: 92%
Agent: Accept incoming webhook
Human: REJECT payload
Reason: Schema mismatch detected

Integration Code

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

const override = createCommandOverride({
  authority: 'tiered',
  auditAll: true,
  safetyChecks: true,
})

// Override an agent decision
const result = await override.replace(
  agentDecision,
  humanDecision,
  {
    reason: 'Agent lacked context about upcoming audit',
    operator: 'senior-ops-01',
    priority: 'high',
  }
)

// Full audit trail is automatically recorded
console.log(result.auditId)        // 'audit_abc123'
console.log(result.safetyScore)    // 0.95
console.log(result.approved)       // true
console.log(result.effectiveAt)    // ISO timestamp