feat(revyl): drive booked sessions through hostedAttachment

Merged
TH
4h ago
+1157-54

Summary

The Revyl plugin declares hostedAttachment (ADR 0042, #5319), so core can hand it a booked session.

  • inspect checks the platform, refuses plugin data, and requires proxyBaseUrl to be exactly /v1/sessions/<booked id>/revyl with no userinfo, query or fragment; that route is the assignment.
  • bind builds an action-only client on the route with the scoped token, with no start, stop or credential-check call. One lease holds the session; the runtime never starts or stops it and keeps the device from idling until expiresAt, or until the route reports the session ended or the token refused.
  • Route 401 → cloud_attachment_token_rejected, 409 session_not_running → cloud_session_ended, 413 → provider-request-too-large.

Core change (scope expansion): readiness required a settings text-size read, which Revyl cannot back, so every Revyl connect rolled back. The probe now tries text-size, then an unrecorded snapshot, moving on only after a typed unsupported refusal. Providers that read text size, such as ADC, keep their check. No vendor names in core.

Before / after

agent-device connect cloud --platform ios booking a Revyl session:

  • Before: rolled back with probe_unsupported.
  • After: committed after a snapshot read on the route.

Validation

Head dd743c91a5: pnpm check:affected --run --base origin/0.22 passed, exactCommit: true.

Tests: connect cloud commits on iOS and Android through a real attachment daemon, the Revyl plugin and a fake route (fails without the core change); probe order with a fictitious client; ADC sends no snapshot; plugin tests against a fake route. Hosted CI pending.