[browser][platform] Creator capability write-path API — gated on the trust model
Today no API lets a creator set config.capabilities (surfaces/runtime/workflow/tools) — POST/PUT /v1/agents don't touch it; only migrations do (agent-capabilities.ts resolves it read-only). This issue adds the write-path so agents become self-service. Blocked on the trust model.
Do
PUT /v1/agents/:id/capabilities accepting a sanitized capabilities block (extend the existing sanitizeCapabilities/sanitizeSettingsSchema), allowlisting surfaces, tools, and runtime/workflow only to values the trust model permits for the creator's tier.
- Enforce the permission scope from the trust model (domain/action allowlists travel with the capability).
- Audit every capability change.
Acceptance
Part of the open-browser-agents epic. Depends on the trust-model issue. Pairs with #58.
[browser][platform] Creator capability write-path API — gated on the trust model
Today no API lets a creator set
config.capabilities(surfaces/runtime/workflow/tools) —POST/PUT /v1/agentsdon't touch it; only migrations do (agent-capabilities.tsresolves it read-only). This issue adds the write-path so agents become self-service. Blocked on the trust model.Do
PUT /v1/agents/:id/capabilitiesaccepting a sanitizedcapabilitiesblock (extend the existingsanitizeCapabilities/sanitizeSettingsSchema), allowlistingsurfaces,tools, andruntime/workflowonly to values the trust model permits for the creator's tier.Acceptance
runtime:"browser"is grantable ONLY under the trust model's scoping/consent; ungated attempts are rejected.Part of the open-browser-agents epic. Depends on the trust-model issue. Pairs with #58.