Files
goclaw/migrations/000052_agent_hooks.down.sql
viettranx 3fe5ae0b50 feat(hooks): introduce agent lifecycle hooks foundation with fail-closed blocking semantics
Phase 1 of agent-hooks-system establishes:
- Hook types, matchers, and CEL evaluation engine for event-driven extensibility
- Edition-gated command handlers (Lite disabled) with dedup_key-indexed audit log
- Dual-DB store layer (PostgreSQL + SQLite) with transaction boundary enforcement
- Blocking-event semantics: hook execution failures propagate to agent loop, graceful retry
- Tenant-isolated audit trail with per-hook execution context tracing
- Integration tests verifying store correctness and hook dispatch atomicity

Lays groundwork for post-v3.0 phase-02 (per-tenant onboarding hooks).
2026-04-15 14:25:59 +07:00

5 lines
188 B
SQL

-- Migration 000052 rollback: drop agent hooks tables in dependency order.
DROP TABLE IF EXISTS tenant_hook_budget;
DROP TABLE IF EXISTS hook_executions;
DROP TABLE IF EXISTS agent_hooks;