Skip to the content
Vaubaan Gateway
Docs menu

The risk catalog file

risk-catalog.yaml, beside the plugin's src/index.ts, is read by the SDK's catalog loader when the plugin loads, in the gateway and in the tests; an unknown key, a value outside its list or a broken rule stops the load and names every problem with its path. How to write one: write the risk catalog.

The document

KeyTypeRequiredWhat
servicestringyesThe plugin's id; the prefix of every risk id and pattern.
catalog_versionpositive integeryesBumped on every reviewed change of the content; independent of the plugin's version.
catalog_datedate (YYYY-MM-DD)yesThe date of that change.
riskslist of risksyesThe permissions, below.
macro_actionslist of macro-actionsyesThe service's verbs, below. At least one; aim for 3 to 6.

presets is refused: presets were retired, and macro-actions replace them.

A risk

KeyTypeWhat
idservice.name, lowercase, dashesNever renamed, never deleted: missions store it.
labelstringThe permission's name, as people read it.
reasonstringWhy it is a risk, two sentences at most.
matchespattern, or list of patternsThe slices it covers. [*] one identifier, [**] any identifier and anything below it, [a,b] a list.
vectorthe five factsRequired; below.
vector_overridesfacts by environmentOptional: the facts that change in one environment (prod: ...).
acceptable_in_envslist of environment labelsMakes the permission depend on the environment; in a mission it is qualified, acme[prod].widget-write.
infra_limitscalls_per_minute_maxOptional: the ceiling of the rate limit a mission can carry for this permission. No other key.
fallbacktrueOn the catch-all only: exactly one per catalog, named service.uncategorized-…, matching service.**.W.
deprecatedtrueA retired permission: kept so missions that hold it still read, in no macro-action.
replaced_byrisk idWith deprecated: its successor.

The five facts

FactValues
reversibilityreversible, costly, irreversible
blastsingle, env, account, bulk
datametadata, data, secret, pii
costfree, moderate, unbounded
visibilityinternal, team, public

There is no sixth fact; the gateway never adds them up. It reads them in order, and the first that answers gives the permission its row:

RowWhen
4 · Cannot be repairedreversibility: irreversible
3 · Repairable, at a pricereversibility: costly, or cost: unbounded
2 · Worth a lookdata: secret or pii, blast: account or bulk, cost: moderate, or visibility: public
1 · Harmlessanything else

What a trust level does with a row

A mission's creator ticks a macro-action at a trust level; each of its permissions gets the gate its row has at that level, and its base budget multiplied by the level's factor.

RowCarefulTrustingAutonomous
4 · Cannot be repairednot includedask me firstask me first
3 · Repairable, at a priceask me firstask me firstruns freely
2 · Worth a lookask me firstruns freelyruns freely
1 · Harmlessruns freelyruns freelyruns freely
Budget×1×3×10

A macro-action

KeyTypeWhat
idlowercase, dashesUnique in the catalog.
labelstringThe verb, in the service's words ("Read", "Ship").
descriptionstringOne line under the macro-action in New mission.
narrativestring, 600 characters at mostTwo to four sentences: what an agent does under this verb, and why its permissions are cut this way. Shown on the plugin's public page only.
entrieslist of entriesNot empty.

An entry: risk_id (an unqualified permission of this catalog, never the catch-all), quota (the base budget per period, a positive integer) and rate_limit (max calls per window_seconds). Every permission but the catch-all and the deprecated ones belongs to exactly one macro-action; the gateway adds "Anything else" for the catch-all.

Last changed 2026-11-25. This page as Markdown: /docs/plugins-guide/reference/catalog.md