Skip to main content
  • Version 0.1.0
  • Purity pure zero-dep (browser-safe; only external dep is zod, no node:* / DB / network)
  • Purpose The shared typed vocabulary for verification (builder≠judge) and governance (budgets, caps, circuit breakers): pure functions + zod schemas the board, server libs, and SPA all consume identically.
  • Workspace deps none
  • External deps zod ^3.25.0
DB-bound concerns (tables, atomic SQL, audit inserts) live in @clawboo/db; runtime I/O (spawning the verify command, the review worktree) lives server-side. This package is purely the decision layer. The barrel re-exports four module groups: ./verify, ./budget, ./caps, ./breaker. The package exposes a single . entry point (no subpath exports).

Public API

Functions

verify budget caps breaker

Types & interfaces

verify budget caps breaker

Constants

Classes

None: this package exports only functions, types, and constants.

Used by

  • @clawboo/db, board/repository.ts, board/verification.ts (state-machine gate via isVerdictPromotable), governance/budgets.ts (recordSpend mirrors budgetStatusAfter).
  • @clawboo/evals, the ±verifier ablation scorecard.
  • apps/web (server), lib/verification/{index,critic,deterministicGate}.ts (the verify gate), lib/executorRunner.ts (budget kill-switch + breaker feed), lib/routines/openclawDispatch.ts, lib/teamChat/dispatchChatTurn.ts, lib/worktrees.ts, lib/defaults.ts (SOFT_CAP_PERCENT), api/runtimes.ts (breakerConfigSchema validation).
  • @clawboo/team-orchestration, boardOrchestration.ts (checkFanoutCap for the per-turn delegation fan-out cap); the SPA reaches it through the re-export shim at apps/web/src/features/group-chat/boardOrchestration.ts and imports nothing from this package directly.
  • @clawboo/db also uses the cap predicates: board/repository.ts calls checkDepthCap / checkFanoutCap in createCappedSubtask and re-exports DEFAULT_MAX_CHILDREN / DEFAULT_MAX_DEPTH by name, so @clawboo/mcp reads them without taking its own dependency on this package.

Source

Barrel: packages/governance/src/index.ts (re-exports ./verify, ./budget, ./caps, ./breaker).

See also

Last modified on August 21, 2026