Skip to content

Require sign-in only for new desktop installations - #4619

Closed
reachjalil wants to merge 6 commits into
feature/streamlined-onboardingfrom
feature/new-install-signin
Closed

reachjalil wants to merge 6 commits into
feature/streamlined-onboardingfrom
feature/new-install-signin

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Stack

Parent: #4608 (feature/streamlined-onboarding). This PR contains only the new-install sign-in requirement above that onboarding revamp. The Luna allowance follows separately.

Experience

Only genuinely new public desktop profiles require an OpenWork session to use the app. Existing installations retain optional sign-in, including empty profiles, empty workspace registries, and existing local/provider settings.

  • Classify the installation before initialization can create evidence; persist the decision outside resettable onboarding/workspace preferences.
  • A new installation opens the sign-in gate, with no local-use bypass. A verified session unlocks the prepared workspace. Logout, expiry, revocation, and offline restart lock new task admission again.
  • Verify through the main process against the configured Den authority. Keep tokens during outages, reject redirects and stale-origin responses, and expose only fixed diagnostic categories.
  • Guard session/task admission in the embedded server as well as the UI. Preserve reads, abort operations, existing enterprise activation, and legacy behavior.
  • Preserve the cohort across normal updates, workspace deletion and app resets. A complete data wipe is indistinguishable from a new install; this is not device fingerprinting or anti-tamper enforcement.

Already-admitted generation is not retroactively canceled by this change; new task/continuation admissions are denied while unverified. No model, billing, or allowance change is included here.

Verification — Passed

Exact head: 3867af41bbef547d3d3592d9423178a4acf0ef11.

Published exact-head evidence for all four journeys.

OPENWORK_EVAL_REF=3867af41bbef547d3d3592d9423178a4acf0ef11 pnpm evals:e2e first-run-local

  • Exit 0; 4 passed, 0 failed, 0 skipped.
  • placement: daytona (daytona CLI authenticated).
  • Cold resources, real desktop/server/Den, deterministic generation witness.
  • Existing empty profile runs its first prompt signed out with the unchanged starter model.
  • Fresh profile produces zero unauthenticated generation, authenticates through runtime-discovered Den without rewriting bootstrap, completes its first task, retains credentials but blocks work during an outage, detects expiry/revocation, and remains locked after logout/restart. Direct v1/v2/mounted admissions are also checked.
  • Legacy empty and populated registries retain optional access, workspace state and defaults across restart.

Focused checks also passed: desktop cohort/workspace/reset tests, auth/bootstrap tests, app/server/Electron typechecks, app/server builds, fixture tests and browser-code checks. They supplement rather than replace the journey.

The first attempts exposed two test-infrastructure defects: cumulative world fixtures and a fault proxy redirecting API requests through Den Web. Both are repaired and have focused regression checks; the final run above passes without increasing timeouts or weakening auth. The account-menu test now uses its actual “Log out” action.

Deferred: native installer matrix, real external identity-provider login, cancellation of already-admitted generation, and unrelated full-repository checks. No missing core journey or skipped test is presented as passed.

No Vercel deployment

Before the first push, all four Vercel project configs disabled native Git deployments for the exact feature/new-install-signin and feature/luna-weekly-allowance branch names using git.deploymentEnabled. Other branches are unchanged. GitHub reports zero deployment records for both branches. No deployment command, merge, release, or production setting change was performed.

Merge the stack bottom-up only after separate approval, refreshing the base and exact-head evidence after any rebase.

@reachjalil

reachjalil commented Sep 8, 2026 •

Copy link
Copy Markdown
Member Author

Test evidence — an-existing-empty-profile-keeps-optional-sign-in-and-its-free-starter-default — ✅ passed

SHA 3867af4 · engine v1

✅ passed · 0 expectations passed · 0 failed · 0 pending

screenshots not attached (gh < 2.99; run brew upgrade gh)

[world] mock(mcp) · den(daytona) · desktop(daytona)
[user] see(text=/What do you need done?/, timeoutMs=180000) · see(composer, editable, text="") · see(Run task) · see(testId=account-status-menu, text=/Sign in/) · notSee(text=Welcome to OpenWork) · notSee(Use Without Cloud) · notSee(text=/Choose (a )?folder|Choose (a )?model/) · notSee(text=Power your first task) · notSee(text=How did you hear about OpenWork?) · notSee(text=/Something went wrong/)
[probe] storage(openwork.den.authToken) · storage(openwork.den.activeOrgId) · composer · desktopApi(GET /workspaces) · desktopApi(GET /workspace/ws_7b02ceef088a/opencode/session)
[user] see(text=/Using the free starter model/)
[probe] storage(openwork.defaultModel)
[user] type(composer, "Create a short welcome checklist for this OpenWork workspace. Use exactly three bullets and mention one thing I can do next.")
[probe] composer · eventually(first task ready without choosing a model) · hash
[user] Run task · click(Run task) · see(text=Create a short welcome checklist for this OpenWork workspace. Use exactly three bullets and mention one thing I can do next., timeoutMs=30000) · see(text=Your workspace is ready. You can draft a document next., timeoutMs=180000)
[probe] composer
[user] notSee(text=The free starter model is busy right now) · notSee(text=/subscribe to Go/i) · notSee(text=/Error from provider/) · notSee(text=/Something went wrong/) · notSee(text=Power your first task) · notSee(text=How did you hear about OpenWork?)
steps 1 ✅ Start directly in the normal empty app (29.3s) · 2 ✅ The default folder is provisioned without creating a blank session (0.9s) · 3 ✅ The first prompt runs on the default provider without setup (22.5s)
verdict passed · 19 user observations (see ×7, notSee ×12) · 10 probes · steps 3/3


Test run created 2026-09-08T11:57:13.864Z · Source: evals/results/test-runs/2026-09-08T11-57-13-863Z-an-existing-empty-profile-keeps-optional-sign-in-and-its-free-starter-default/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4619 --test-run 2026-09-08T11-57-13-863Z-an-existing-empty-profile-keeps-optional-sign-in-and-its-free-starter-default

Test evidence — a-new-installation-requires-verified-sign-in-for-ui-and-automated-tasks-across-l — ✅ passed

SHA 3867af4 · engine v1

✅ passed · 0 expectations passed · 0 failed · 0 pending

screenshots not attached (gh < 2.99; run brew upgrade gh)

[world] mock(mcp) · den(daytona) · faultProxy(daytona) · [seed:raw] evalIn()
[user] see(text=Sign in to OpenWork) · notSee(composer) · notSee(Use Without Cloud) · notSee(Run task)
[probe] storage(openwork.den.authToken)
[agent] run(route.session)
[user] notSee(composer)
[agent] ❌ run(session.create_task) · desktopApi(POST /opencode/session) · run(auth.exchange-grant)
[user] see(composer, editable, text="", timeoutMs=180000) · type(composer, "Create a short welcome checklist for this OpenWork workspace. Use exactly three bullets and mention one thing I can do next.")
[probe] composer · eventually(verified first task ready)
[user] Run task · click(Run task) · see(text=Your workspace is ready. You can draft a document next., timeoutMs=180000)
[probe] hash · storage(openwork.den.authToken)
[user] see(text=Sign in to OpenWork, timeoutMs=60000) · notSee(composer)
[probe] storage(openwork.den.authToken)
[agent] desktopApi(POST /workspace/ws_815145b8bcbc/opencode/session/ses_f7f1652ddffeEPAfKDBP4dQ0CZ/prompt_async)
[user] Refresh · click(Refresh) · see(composer, editable, timeoutMs=90000)
[agent] desktopApi(POST /workspace/ws_815145b8bcbc/opencode/session/ses_f7f1652ddffeEPAfKDBP4dQ0CZ/prompt_async)
[user] see(text=Sign in to OpenWork, timeoutMs=45000)
[probe] storage(openwork.den.authToken)
[agent] run(auth.exchange-grant)
[user] see(composer, editable, timeoutMs=90000)
[agent] desktopApi(POST /workspace/ws_815145b8bcbc/opencode/session/ses_f7f1652ddffeEPAfKDBP4dQ0CZ/prompt_async)
[user] see(text=Sign in to OpenWork, timeoutMs=45000)
[probe] storage(openwork.den.authToken)
[agent] run(auth.exchange-grant)
[user] see(composer, editable, timeoutMs=90000) · testId=account-status-menu · click(testId=account-status-menu) · text=Log out · click(text=Log out) · see(text=Sign in to OpenWork, timeoutMs=30000) · notSee(Use Without Cloud) · notSee(composer)
[probe] storage(openwork.den.authToken)
[agent] desktopApi(POST /workspace/ws_815145b8bcbc/opencode/session/ses_f7f1652ddffeEPAfKDBP4dQ0CZ/prompt_async) · desktopApi(POST /workspace/ws_815145b8bcbc/opencode2/session/ses_f7f1652ddffeEPAfKDBP4dQ0CZ/message) · desktopApi(POST /w/ws_815145b8bcbc/opencode/session/ses_f7f1652ddffeEPAfKDBP4dQ0CZ/command) · desktopApi(POST /opencode/session/ses_f7f1652ddffeEPAfKDBP4dQ0CZ/summarize)
[user] see(text=Sign in to OpenWork) · notSee(composer)
[agent] desktopApi(POST /opencode/session)
steps 1 ✅ A genuinely fresh signed-out profile makes zero generation calls (19.4s) · 2 ✅ A successful handoff unlocks the prepared empty workspace (14.7s) · 3 ✅ session_expired blocks admission immediately and relocks the idle renderer (24.0s) · 4 ✅ session_revoked blocks admission immediately and relocks the idle renderer (29.2s) · 5 ✅ Offline restart retains the token but cannot run work until verified (109.0s) · 6 ✅ Signed-out restart remains locked and does not generate (32.2s)
verdict passed · 19 user observations (see ×11, notSee ×8) · 9 probes · steps 6/6


Test run created 2026-09-08T12:02:18.463Z · Source: evals/results/test-runs/2026-09-08T12-02-18-463Z-a-new-installation-requires-verified-sign-in-for-ui-and-automated-tasks-across-l/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4619 --test-run 2026-09-08T12-02-18-463Z-a-new-installation-requires-verified-sign-in-for-ui-and-automated-tasks-across-l

Test evidence — legacy-empty-keeps-its-workspace-registry-and-optional-sign-in-after-restart — ✅ passed

SHA 3867af4 · engine v1

✅ passed · 0 expectations passed · 0 failed · 0 pending

screenshots not attached (gh < 2.99; run brew upgrade gh)

[world] mock(mcp) · den(daytona)
[user] see(composer, editable, timeoutMs=180000)
[probe] storage(openwork.den.authToken) · desktopApi(GET /workspaces) · storage(openwork.defaultModel)
[user] see(composer, editable, timeoutMs=180000)
[probe] storage(openwork.defaultModel)
steps 1 ✅ Existing profile state is not mistaken for a new installation (0.7s) · 2 ✅ The legacy default and optional access survive relaunch (31.3s)
verdict passed · 2 user observations (see ×2) · 4 probes · steps 2/2


Test run created 2026-09-08T12:09:01.643Z · Source: evals/results/test-runs/2026-09-08T12-09-01-643Z-legacy-empty-keeps-its-workspace-registry-and-optional-sign-in-after-restart/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4619 --test-run 2026-09-08T12-09-01-643Z-legacy-empty-keeps-its-workspace-registry-and-optional-sign-in-after-restart

Test evidence — legacy-populated-keeps-its-workspace-registry-and-optional-sign-in-after-restart — ✅ passed

SHA 3867af4 · engine v1

✅ passed · 0 expectations passed · 0 failed · 0 pending

screenshots not attached (gh < 2.99; run brew upgrade gh)

[world] mock(mcp) · den(daytona)
[user] see(composer, editable, timeoutMs=180000)
[probe] storage(openwork.den.authToken) · desktopApi(GET /workspaces) · storage(openwork.defaultModel)
[user] see(composer, editable, timeoutMs=180000)
[probe] storage(openwork.defaultModel)
steps 1 ✅ Existing profile state is not mistaken for a new installation (5.2s) · 2 ✅ The legacy default and optional access survive relaunch (27.8s)
verdict passed · 2 user observations (see ×2) · 4 probes · steps 2/2


Test run created 2026-09-08T12:13:38.268Z · Source: evals/results/test-runs/2026-09-08T12-13-38-268Z-legacy-populated-keeps-its-workspace-registry-and-optional-sign-in-after-restart/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4619 --test-run 2026-09-08T12-13-38-268Z-legacy-populated-keeps-its-workspace-registry-and-optional-sign-in-after-restart

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