Skip to content

test(evals): released-enterprise-activated release-validation journey - #4743

Merged
yomgui merged 3 commits into
devfrom
test/released-enterprise-activated-journey
Sep 10, 2026
Merged

yomgui merged 3 commits into
devfrom
test/released-enterprise-activated-journey

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member

What

A reusable release-validation journey for the released enterprise desktop, plus the runbook to use it.

  • evals/specs/released-enterprise-activated.e2e.test.ts + evals/worlds/released-enterprise-activated.ts — boots the binary named by OPENWORK_EVAL_ELECTRON_BINARY with an activated bootstrap against a real Den (cold-booted by the testkit) and proves:
    1. the binary reports the pinned version (OPENWORK_EVAL_RELEASED_VERSION) and the enterprise flavor, the renderer received the activation stamp, the activation page does not show, the interactive /signin surface mounts, zero render crashes and zero missing-context crashes;
    2. with OPENWORK_EVAL_RELEASED_BASELINE_BINARY (an older release): the baseline signs in and selects a workspace on a fresh profile and quits; the release under test opens that same profile in place and again after a restart, landing on the same signed-in workspace route with zero renderer exceptions.
  • Registered in evals/scripts/journey-catalog.mjs as placement: 'local'. Without the binary env var both tests skip loudly (verdict: incomplete, exit 2) — never a silent pass.
  • .opencode/skills/release/SKILL.md — new Validate a published release section with the exact download/unpack commands and the packaged-first-launch + released-enterprise-activated (+ baseline-upgrade) commands, limited to what was proven.

Complements #4727's packaged-activated-launch (offline, closed-port Den, CI packaged-smoke): this journey targets the published asset, a real Den sign-in, and the profile-upgrade path.

Found while proving it

An activated install checks for updates and electron-updater installs the newest published release over its own bundle on quit. Once v0.18.46 shipped mid-validation, the 0.18.45 binary under test booted as 0.18.46 in a later run — the version pin failed loudly (good), so the world now copies the .app bundle per launch (signature/notarization intact, ~1 s) and the downloaded release stays pristine.

Conventions

Spec imports only @openwork/testkit and its world; raw CDP lives in the world. No new lint:layers / channel-ratchet / boundary-ratchet findings (39 / 19 / 14 pre-existing on dev, identical with and without these files). node --test evals/scripts/journey-ci.test.mjs 13/13. No product code, .github/, or other sessions' packaged specs touched.

Verification

Local lane (macOS arm64, released v0.18.45 assets, baseline v0.18.42, local Den via server()): see the test-evidence comment below.

V=0.18.45; B=0.18.42
ENT="/tmp/ow-release/enterprise-$V/OpenWork Enterprise.app/Contents/MacOS/OpenWork Enterprise"
OPENWORK_EVAL_ELECTRON_BINARY="$ENT" OPENWORK_EVAL_RELEASED_VERSION="$V" \
OPENWORK_EVAL_RELEASED_BASELINE_BINARY="/tmp/ow-release/enterprise-$B/OpenWork Enterprise.app/Contents/MacOS/OpenWork Enterprise" \
  pnpm evals:e2e released-enterprise-activated --local

… in-place update

Add the released-enterprise-activated journey: boot a RELEASED enterprise
binary (OPENWORK_EVAL_ELECTRON_BINARY) with an activated bootstrap against
a Den and prove it skips the activation page and mounts the interactive
sign-in surface with zero renderer exceptions; with
OPENWORK_EVAL_RELEASED_BASELINE_BINARY, an older release signs in on a
fresh profile and the release under test opens that profile in place and
after a restart into the same signed-in workspace.

Register it as a local-placement journey (it skips loudly without a
binary) and document the exact release-validation commands in the release
skill.
…ter cannot swap the release under test

An activated install downloads the newest published release and
electron-updater installs it over its own bundle on quit; once 0.18.46 was
published, the 0.18.45 binary under test booted as 0.18.46 within a run.
Each launch now copies the .app bundle (signature intact) so every launch
boots the version it was given.
@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Ignored Ignored Preview Sep 10, 2026 3:27am UTC
openwork-den Ignored Ignored Preview Sep 10, 2026 3:27am UTC
openwork-diagnostics Ignored Ignored Preview Sep 10, 2026 3:27am UTC
openwork-landing Ignored Ignored Preview Sep 10, 2026 3:27am UTC

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 1. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (41777 ms), confidentiality-review (41505 ms), spec-provenance-review (113613 ms).

Blockers

  • None.

Advisories

  • 474-P5Q · medium · spec-provenance-review · evals/specs/released-enterprise-activated.e2e.test.ts:115

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 2
  • Distinct heads in retained window: 2
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 2/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 10, 2026

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (421b559b566fe8fccb0cbf070674dab9388e1ba3). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Passed · 6/6 tests · 7/7 assertions · 5 images

Commit ee9fea7cca8534ddbfc18401964c32298e1201ea · selected evidence

Open review report

dev's packaged specs move ahead of published binaries, and an unactivated
pre-0.18.46 install also self-updates in place; say so in the runbook.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (ee9fea7cca8534ddbfc18401964c32298e1201ea). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui
yomgui merged commit b895227 into dev Sep 10, 2026
27 checks passed
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