Skip to content

[browser][platform] Creator capability write-path API — gated on the trust model #76

Description

@serge-ivo

[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

  • A creator can declare a permitted agent type via API (within their tier), sanitized + audited.
  • runtime:"browser" is grantable ONLY under the trust model's scoping/consent; ungated attempts are rejected.
  • Tests for sanitize + gate + audit.

Part of the open-browser-agents epic. Depends on the trust-model issue. Pairs with #58.

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser-agentsBrowser automation generalization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions