Attachment resolution across the hierarchy¶
A bundle is attached at a level, and the levels form a hierarchy from the whole tenant down to a single step. Resolution walks that hierarchy and collects everything attached along the way.
Seven levels¶
| Level | Authored by | Covers |
|---|---|---|
tenant |
The organization's governance authority | Everything in the tenant |
workspace |
The workspace's owners | One workspace |
project |
The project's owners | One deployment |
flow |
The workflow's author | One workflow |
agent |
The agent's author | One agent |
capability |
The block's author or security | One reusable capability block |
inline |
The workflow author, at a step | One step |
Most levels are empty for most workflows. The hierarchy exists to put authoring at the right level, not to require activity at every level.
The capability level is where a reusable capability block protects itself:
rules that travel with the artifact wherever it is used, rather than depending
on every consumer attaching them.
Two authoring paths, one graph¶
Attachment is written centrally through the CLI or declared in a workflow's own YAML:
Both paths write the same attachment graph and use the same merge semantics and exemption rules. There is one policy model, with scope inferred by placement, rather than a separate system for locally authored policy.
Central-first is the default¶
Inheritance is invisible by default: a workflow's YAML carries business logic, and company-wide bundles are attached centrally rather than declared by each workflow author.
This is why a workflow that declares no policy is still governed. Its effective policy is whatever the levels above it attached.
Versions are pinned¶
An attachment names a bundle and a version. Bumping it is deliberate. Auto-tracking a moving version is opt-in per attachment and never the default, so a new bundle version does not take effect anywhere until someone attaches it.
Resolution collects, the merge decides¶
flowchart LR
subgraph T["tenant"]
direction TB
TB1[("bundles")]
subgraph W["workspace"]
direction TB
WB1[("bundles")]
subgraph P["project"]
direction TB
PB1[("bundles")]
subgraph F["flow or agent"]
direction TB
FB1[("bundles")]
subgraph C["capability, one block"]
direction TB
CB1[("bundles")]
subgraph I["inline, one step"]
direction TB
IB1[("bundles")]
end
end
end
end
end
end
COL{{"Collected set<br/>every box enclosing the step"}}
I --> COL
A step sits in the innermost box, and resolution collects the bundles of every box that encloses it. Nothing outside those boxes is collected, and an empty box contributes nothing.
Attachment resolution answers which bundles apply. It does not decide which value wins where they disagree; that is the merge, and the merge is most-restrictive-wins rather than nearest-wins. See Effective policy computation and provenance.
The distinction matters: a rule attached at inline does not override the
tenant's floor by being closer to the step.
The level is recorded in every decision¶
A policy decision records the attachment level the contributing bundle attached at, so an auditor can trace a refusal to "this rule fired because workspace governance attached it" rather than to policy in general.