- Version
0.1.0 - Purity pure zero-dep (browser-safe; only external dep is
zod, nonode:*/ 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
@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 viaisVerdictPromotable),governance/budgets.ts(recordSpendmirrorsbudgetStatusAfter).@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(breakerConfigSchemavalidation).@clawboo/team-orchestration,boardOrchestration.ts(checkFanoutCapfor the per-turn delegation fan-out cap); the SPA reaches it through the re-export shim atapps/web/src/features/group-chat/boardOrchestration.tsand imports nothing from this package directly.@clawboo/dbalso uses the cap predicates:board/repository.tscallscheckDepthCap/checkFanoutCapincreateCappedSubtaskand re-exportsDEFAULT_MAX_CHILDREN/DEFAULT_MAX_DEPTHby name, so@clawboo/mcpreads them without taking its own dependency on this package.
Source
Barrel:packages/governance/src/index.ts (re-exports ./verify, ./budget, ./caps, ./breaker).
See also
- Verification (builder≠judge)
- Governance: budgets, breakers, caps
- Governance REST API
@clawboo/db, the DB authority for budgets/verification/audit@clawboo/executor, theRuntimeEventunion the breaker signals derive from- Package overview