Skip to content

Browser Capability & Authentication Profiles

UWS supports two distinct inert browser profile families alongside Registration Authoring:

  1. Browser Capability Profiles (uws.browser.1.5–1.10) — bound from UWS operations via sourceDescriptions[].type: browser-profile and sourceOperationId / sourceOperationRef.
  2. Browser Authentication Profiles (uws.browser-authentication.1.0/1.1) — separate, secret-free sign-in recipes paired with the uws.browser-authentication-call.1.1 operation supplement (x-uws-browser-authentication and x-uws-browser-session).

Both families are inert metadata contracts. Browser drivers, cookies, session handles, credentials, and execution protocols (WebDriver, WebDriver BiDi, CDP, Playwright, Puppeteer) remain runtime-private. When a provider publishes an API or event contract (openapi, asyncapi, etc.), prefer that contract over browser-profile.

Browser Capability Profiles (1.5–1.10)

Current opt-in version: versions/browser.1.10.md (versions/browser.1.10.json). Empty profile schema lookup retains uws.browser.1.8 as its compatibility default; consumers select 1.9 or 1.10 explicitly. Earlier 1.5–1.9 profiles remain immutable and accepted.

Core Model & Closed Action Vocabulary

Every capability profile declares profile, info (title, origin allowlist, optional loginStateRequired), observationKind (accessibility_snapshot, dom_text, screenshot_ocr, other), evidence, confidence, expiresAfter, verification, and actions.

  • Locators are accessibility-tree first (role, accessible name, optional value/text matching). CSS, XPath, and raw coordinates are forbidden as locators.
  • Closed 7-action vocabulary: navigate, click, type_text, check_radio, uncheck, select_option, and wait_for.
  • Safety metadata: every action declares non-empty sideEffects (read_only, or state-changing labels such as state_change, sends_email, creates_record, updates_record, deletes_resource) and confirmationPolicy (required: true for any side-effectful action).

Capabilities Added Since browser.1.5

Version Key Additions
browser.1.6 Optional bounded contexts graph (popup and frame targets, implicit main, max depth 4, exact origin checks, opensContext on click).
browser.1.7 Locale-free typed scalar conversions for accessibility outputs (string, integer, number, boolean); presence remains Boolean without text access.
browser.1.8 Single-pass {{name}} scalar parameter templates in navigate path/query values (RFC 3986 component-encoded), type_text.value, select_option.value, and confirmationPolicy.prompt. Compatibility default for empty profile lookup.
browser.1.9 Literal-brace escapes ({{{{ → {{, }}}} → }}), Cc/line-separator/bidi control-character rejection in type_text.value and prompts, value-setting type_text without synthesized keyboard/Enter/submit events, and safe-integer bounds (-9007199254740991..9007199254740991).
browser.1.10 Opt-in CSS match-count outputs (matchCount: true, optional unique within root, visibility: all | rendered) returning exact nonnegative safe integers; CSS stays output-only and never becomes a locator.

Minimal uws.browser.1.10 Example

profile: uws.browser.1.10
info:
  title: Issue Tracker
  origin: https://tracker.example.test
  loginStateRequired: true
observationKind: accessibility_snapshot
evidence:
  learnedAt: "2026-09-25T00:00:00Z"
  source: reviewed_browser_session
confidence: high
expiresAfter: P30D
verification:
  lastVerifiedAt: "2026-09-25T00:00:00Z"
  successfulRuns: 1
actions:
  count_open_items:
    description: Count rendered open items inside the results panel.
    parameters:
      type: object
      required: [filter]
      properties:
        filter: { type: string }
    sequence:
      - navigate: "/issues?q={{filter}}"
      - wait_for: { role: region, name: "Results" }
    outputs:
      open_count:
        type: integer
        source: css
        selector: ".issue-row"
        within: "#results-panel"
        matchCount: true
        visibility: rendered
        fallbackReason: no_a11y_region
        validation:
          type: integer
          minimum: 0
    sideEffects: [read_only]
    confirmationPolicy:
      required: false

See testdata/browser-profile/count-outputs-1.10.yaml for the complete synthetic fixture.

Browser Authentication Profiles (1.1)

versions/browser-authentication.1.1.md and versions/browser-authentication-call.1.1.md define inert sign-in recipes and operation-extension bindings without embedding secrets, cookies, or session handles:

  • Profile structure: declares applicationOrigins and authenticationOrigins (exact HTTPS origins; HTTP permitted only on loopback fixtures), optional contexts (popup/frame), symbolic credentialSlots (identifier, password, totp_seed), and flows.
  • Closed 5-step vocabulary: navigate, type_credential, click, challenge (push, push_number_match, totp, sms_otp, email_otp, voice_otp, passkey, security_key), and wait_for. Every flow declares establishes_session (plus sends_mfa_challenge when a challenge step is present) and a verified success origin/locator check.
  • UWS workflow hook: operations bind authentication recipes and named sessions via x-uws-browser-authentication and x-uws-browser-session under the call supplement.
  • Scope limits: sign-in only; enrollment, password reset, logout, account creation, and CAPTCHA bypass are out of scope (unknown challenges and CAPTCHAs fail closed).

References