Two mixins, one host, and the update that must stop
RolesAgent Systems EngineeringCustomer AI Deployment
The question
Your composition is one workload and two mixins. Mixin A allows api.example.com outright. Mixin B allows api.example.com with methods: [GET] only and denies DELETE on it. Next week mixin A ships a version that removes one of its deny entries and adds a credential@1. Predict the merged grant set, say which updates apply silently, and design the review step.
Answer it first, aloud or on paper. Then open the answer.
The answer
Show short answer
Allow entries union per phase, deny entries union per phase, and deny wins on the result. A's unbounded host allow swallows B's bounded GET entry, because the union of an unbounded grant and a bounded one is the unbounded grant, while B's DELETE deny survives and wins. Every grant maps onto one normalized set that the consumer stores in its lock file, and a candidate version whose set stays inside the stored set applies silently; any widening stops for approval, and a removed deny and a new credential are both on that list, so A's new version stops twice.
Show full answer
What a capability is
A kit grants itself nothing. Each entry in capabilities is a typed, versioned request, <namespace>/<name>@<version>, that the host answers with granted, refused or prompted. The config is decoded strictly for the types the specification defines, so an unknown key is an error, and the reason is policy: a misspelled key that the parser ignored would be a policy that is missing without a warning. Unknown types are allowed by design; a required unknown type fails resolution and an optional one is skipped and recorded.
network-policy@2 and credential@1
A network-policy@2 entry is a plain host string, which grants the connection for any protocol, or an object with hosts, methods and paths, which grants those HTTP requests and nothing else on that host. Deny entries list what to refuse, and the runtime answers a refused request with HTTP status 403. A credential@1 entry names a service and a phase and never the place where the secret is kept, and every inject domain must appear in the allow list of the same phase.
Resolution
A composition has exactly one workload, and two kits that provide the same normalized name fail resolution. Inside sbx, the grant arrives as a policy rule with created_via: provisioned and editable: false, which --source kit lists, and check network answers allowed: true for it.
Updates and the lock
The widening list is explicit: a new allow entry, a removed deny entry, a new credential, path or port, and write access over a read-only skills path. A removed deny counts because the deny was part of what made the grant acceptable. optional does not change the set. Six types contribute nothing to it: resources@1, lifecycle@1, agent-context@1, agent-sessions@1, sbx@1 and long-running@1.
The review step
- Build with a
docker-containerbuilder, because the default driver drops the descriptor annotation and an image without it is not a kit to any consumer. - Pin each kit by digest and store its normalized set; diff the set on every candidate.
- Require signatures: set
kit.trustedSignersbeforekit.requireSignature, or only the vendor's own identities pass. - Let the diff decide: a subset applies, a widening opens a ticket that names the entry, and a removed deny is a widening.
Follow-ups
L3SeniorWhy does the strict decoder treat an unknown key as an error instead of a warning?
Show expected answer
a silently ignored key is a policy that is absent without anyone knowing.
L3SeniorYou want B's
GET-only grant to hold. What do you change?Show expected answer
remove A's unbounded allow, or add deny entries for the other methods in B, since a deny wins while a bounded allow is swallowed by an unbounded one.
L4StaffWhich capability types never trigger approval on update, and why is that safe?
Show expected answer
the six constraint and launch types, because they ask for nothing from the host.
L4StaffA published kit shows no descriptor annotation on its index. What happened and what does a consumer do?
Show expected answer
the default builder dropped it; a consumer that finds no annotation on the index reads the platform manifest, and an image with none anywhere is not a kit.
Wrong answers
Show the wrong answers that interviewers hear
“The narrowest grant wins when kits overlap.”
Allows union; the unbounded entry swallows the bounded one, and only a deny narrows.
“
optional: truemakes a capability safe to add.”It changes whether resolution fails, not the grant set.
“Every version bump needs approval.”
A candidate whose set stays inside the stored set applies silently; the lock is what makes that cheap and safe.
Taught in
The capabilities section gives the union, the deny and the widening list, the descriptor section shows the strict decode and the dropped annotation, and the signing section names the signer settings.