Skip to content

feat: run session profiles without a local checkout - #65

Draft
kylexrich wants to merge 3 commits into
mainfrom
kylexrich/run-session-profiles-without
Draft

kylexrich wants to merge 3 commits into
mainfrom
kylexrich/run-session-profiles-without

Conversation

@kylexrich

@kylexrich kylexrich commented Nov 23, 2026 •

Copy link
Copy Markdown

Problem

Verify can run a session profile only from a local .revyl/config.yaml, so a script outside the app's checkout can't start a session with that project's setup.

After this PR

open() in TypeScript, Python and Go takes a Revyl project ID beside a named profile, and Revyl runs that session profile from the project's Git repository, with no local config, script files or branch sent. A checkout's own default keeps working, and against a backend that takes session profile defaults it's sent as one, so Revyl skips it for an app its project doesn't target.

Changes

  • Project-ID starts: a project ID needs a named profile, skips .revyl/config.yaml, and sends no script files or Git branch.
  • Checked before any request: a missing name, none or an invalid UUID fails locally with INVALID_ARGUMENT.
  • Checkout defaults: on web, iOS and Android, a default goes out as default only when the backend lists device_session_session_profile_picks, else as named; Mac always sends named.
  • New outcomes: SESSION_PROFILE_FAILED can carry script_execution_unknown or cancelled_before_script_execution, each with its fix.

Interfaces

Option on open / Open Value
TypeScript sessionProfileProjectId Project UUID with a named profile
Python session_profile_project_id Project UUID with a named profile, sync or async
Go SessionProfileProjectID Project UUID with a named Profile

Capabilities read: GET /api/v1/backend-capabilities?contract=session_profile_starts, made only for a checkout's default.

Impact to customers

Once a backend lists device_session_session_profile_picks, open() with no profile on web, iOS or Android sends the checkout's session.default_profile as a default, so on an app that project doesn't target the session starts with no session profile. A failed setup can also report script_execution_unknown or cancelled_before_script_execution. Mac and every explicit profile send what they send today.

Verification

  • Local HTTP captures: project-ID starts on web, iOS, Android and Mac sent only the project and name, even beside a malformed local config.
  • Capabilities present, absent, malformed, failed and 404: each SDK sent the expected instruction and the checkout's script bytes unchanged.
  • An active web session with no profile report succeeded for a negotiated default and failed for a named profile.
  • On a Revyl stack with staging workers, TypeScript and Python open() on web with a project ID ran the named profile from Git, and the session held that profile's cookie.

@kylexrich
kylexrich force-pushed the kylexrich/run-session-profiles-without branch from 1e9e75c to 8a3d63f Compare November 24, 2026 23:42
@kylexrich
kylexrich force-pushed the kylexrich/run-session-profiles-without branch from 4c59a80 to 64d8b68 Compare November 26, 2026 07:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant