Skip to content

Keep model usage and enterprise workflow runs inside Analytics - #4591

Merged
benjaminshafii merged 4 commits into
devfrom
feat/analytics-home
Sep 7, 2026
Merged

benjaminshafii merged 4 commits into
devfrom
feat/analytics-home

Conversation

@benjaminshafii

@benjaminshafii benjaminshafii commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

Model activity, consumption, Langfuse integrations, and shared usage limits now live under Analytics → Models & usage. OpenWork Models is a compact subscription and model catalog page. Workflow Runs joins the shared Analytics navigation, with no standalone sidebar destination; existing run-history URLs redirect there.

Workflow run history uses the existing Enterprise analytics entitlement on both the page and API aliases. Paid Models analytics retains its separate subscription and explicit opt-in requirements. Running workflows and viewing their results in the Library remain available after an Enterprise downgrade. The generated SDK includes the new 402 response.

Validation on 12ec3029129778e60dd0cf25f5d94d3e6f6da5e1: 36 assertions passed, zero failures and zero skips, across three cold Daytona journeys.

  • pnpm evals:e2e workflow-run-previews: 8 assertions, passed; upgrade/downgrade, explicit redirects from both legacy URLs, both API aliases, saved version previews, member isolation, and workflow execution.
  • pnpm evals:e2e models-analytics-upgrade: 22 assertions, passed; compact Models page, navigation and consent persistence, existing subscription and model key, live desktop tasks, model switches, privacy, consumption, and Langfuse.
  • pnpm evals:e2e org-model-analytics: 6 assertions, passed; organization isolation, displayed session totals, error recovery, and shared navigation.
  • Den web typecheck passed. Warden and CodeQL are clear.

All E2E runs use cold Daytona environments with Infisical injection; no production customer data or real provider credentials are included in the evidence. Screenshots and assertion evidence are published in the PR's test-evidence comment.

@vercel

vercel Bot commented Sep 7, 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 7, 2026 1:28am UTC
openwork-den Ignored Ignored Preview Sep 7, 2026 1:28am UTC
openwork-diagnostics Ignored Ignored Preview Sep 7, 2026 1:28am UTC
openwork-landing Ignored Ignored Preview Sep 7, 2026 1:28am UTC

@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 7, 2026 01:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-app September 7, 2026 01:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 7, 2026 01:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 7, 2026 01:01 Inactive

@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 (148ac0cdfbfdbe694dd8994de609d1399cbb1318). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@benjaminshafii
benjaminshafii marked this pull request as ready for review September 7, 2026 01:23
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 7, 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 (148ac0cdfbfdbe694dd8994de609d1399cbb1318). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@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 (12ec3029129778e60dd0cf25f5d94d3e6f6da5e1). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@benjaminshafii

benjaminshafii commented Sep 7, 2026 •

Copy link
Copy Markdown
Member Author

Test evidence — an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with — ✅ passed

SHA 12ec302 · engine v1

✅ 0/8 screenshots passed · 22 assertions · 22 expectations passed · 0 failed · 0 pending

[world] den(daytona) · [seed] api GET /v1/org · [seed] api PATCH /v1/inference · web(signed in)
[user] see(label=Manage subscription, timeoutMs=90000) · notSee(text=Unlock custom insights) · notSee(label=Models & usage) · notSee(label=/^Usage & adoption$/) · notSee(text=Shared usage limits) · notSee(label=Activity) · screenshot · label=/^Analytics$/ · click(label=/^Analytics$/) · see(text=Usage analytics is part of the Enterprise plan.) · notSee(label=Workflow Runs) · label=Models & usage · click(label=Models & usage) · see(text=Shared usage limits) · notSee(label=Manage subscription) · notSee(text=Unlock custom insights) · reload · see(text=Unlock custom insights, timeoutMs=60000) · see(text=/Prompts, responses and file contents are excluded./) · screenshot · label=Not now · click(label=Not now) · see(text=Task analytics is off.) · reload · see(label=Enable task analytics, timeoutMs=60000) · notSee(label=Not now) · screenshot · label=Enable task analytics · click(label=Enable task analytics) · see(label=Activity) · navigate(/dashboard/inference) · see(label=Manage subscription) · notSee(label=Models & usage) · notSee(label=/^Usage & adoption$/) · notSee(text=Task analytics) · notSee(text=Shared usage limits) · notSee(label=Integrations) · label=/^Analytics$/ · click(label=/^Analytics$/) · label=Models & usage · click(label=Models & usage) · see(label=Activity) · see(label=Turn off analytics) · see(text=Your next OpenWork Models task appears here) · see(text=Tasks using your own provider connections)
[probe] eventually(two Models calls in one task)
[user] see(text=completed, timeoutMs=45000) · see(text=/^(MiniMax-M3, GLM-5.2|GLM-5.2, MiniMax-M3)$/) · notSee(text=Your next OpenWork Models task appears here) · screenshot · label=Consumption · click(label=Consumption) · see(text=$0.0123) · screenshot · reload · see(label=Consumption, timeoutMs=60000) · label=Consumption · click(label=Consumption) · see(text=Could not refresh analytics., timeoutMs=45000) · notSee(text=No usage events yet) · notSee(text=No model usage recorded yet) · notSee(text=Model calls over time) · label=Refresh analytics · click(label=Refresh analytics) · see(text=$0.0123, timeoutMs=30000) · notSee(text=Could not refresh analytics.)
[probe] eventually(incomplete and failed call accounting)
[user] label=Turn off analytics · click(label=Turn off analytics) · see(label=Enable task analytics) · label=Enable task analytics · click(label=Enable task analytics) · see(label=Activity) · reload · see(label=Integrations, timeoutMs=60000) · label=Integrations · click(label=Integrations) · label=Data region · click(label=Data region) · label=Self-hosted · click(label=Self-hosted) · type(label=Langfuse address, "https://127.0.0.1", replace) · type(label=Public key, "fixture-public", replace) · type(label=Secret key, , replace) · label=Test connection · click(label=Test connection) · see(text=Could not connect.) · type(label=Langfuse address, "https://8792-cijbwdqa1kljl862.daytonaproxy01.net", replace) · label=Test connection · click(label=Test connection) · see(text=Connection verified.) · label=Connect Langfuse · click(label=Connect Langfuse) · see(label=Disconnect Langfuse) · screenshot
[probe] eventually(new metadata reaches the Langfuse witness)
[user] label=Turn off analytics · click(label=Turn off analytics) · see(label=Enable task analytics)
[probe] eventually(a new assistant reply)
[user] see(label=Run task, timeoutMs=60000) · notSee(testId=session-error-card)
[probe] eventually(the desktop encounters an unavailable analytics endpoint)
[user] reload · see(label=Enable task analytics, timeoutMs=60000) · label=Enable task analytics · click(label=Enable task analytics) · see(label=Activity)
[probe] eventually(a new assistant reply)
[user] see(label=Run task, timeoutMs=60000) · notSee(testId=session-error-card) · screenshot
[probe] eventually(live task correlated with its model call) · eventually(a new assistant reply)
[user] see(label=Run task, timeoutMs=60000) · notSee(testId=session-error-card)
[probe] eventually(model switch keeps the conversation's task history)
[user] see(text=Summarize the plan before enabling task analytics.) · screenshot
[probe] eventually(a new assistant reply)
[user] see(label=Run task, timeoutMs=60000) · notSee(testId=session-error-card)
[probe] eventually(native skill and tool activity reaches Models analytics)
[user] label=Turn off analytics · click(label=Turn off analytics) · see(label=Enable task analytics)
[probe] eventually(a new assistant reply)
[user] see(label=Run task, timeoutMs=60000) · notSee(testId=session-error-card) · label=Enable task analytics · click(label=Enable task analytics) · see(label=Activity) · see(text=Keep working after turning off task analytics.)
verdict passed · 69 user observations (see ×37, notSee ×24, screenshot ×8) · 12 probes · steps 0/0

ℹ️ ASSERTION — 1. Paid Models usage lives in Analytics independently of the Enterprise plan

The existing subscriber's Models page contains subscription controls without analytics or usage limits. Analytics exposes Models & usage and shared limits, while enterprise adoption analytics is locked and Workflow Runs is absent.

  • ✅ PASS Paid Models usage lives in Analytics independently of the Enterprise plan — The existing subscriber's Models page contains subscription controls without analytics or usage limits. Analytics exposes Models & usage and shared limits, while enterprise adoption analytics is locked and Workflow Runs is absent.

ℹ️ ASSERTION — 2. An existing paid Models organization keeps model access while analytics is unreleased and inaccessible

Managed model request returned 200; subscription remained enabled; analytics was absent from the UI and read API returned 403

  • ✅ PASS An existing paid Models organization keeps model access while analytics is unreleased and inaccessible — Managed model request returned 200; subscription remained enabled; analytics was absent from the UI and read API returned 403

ℹ️ ASSERTION — 3. Existing workspace deletion remains available before the analytics migration

A separate workspace was deleted through the public API while the analytics tables were absent

  • ✅ PASS Existing workspace deletion remains available before the analytics migration — A separate workspace was deleted through the public API while the analytics tables were absent

ℹ️ ASSERTION — 4. Applying the analytics migration preserves an existing paid subscription and model key

The real Models API served the existing key before the new tables existed and after the additive migration; subscription status stayed identical

  • ✅ PASS Applying the analytics migration preserves an existing paid subscription and model key — The real Models API served the existing key before the new tables existed and after the additive migration; subscription status stayed identical

ℹ️ ASSERTION — 5. Existing subscribers are asked for an explicit choice; Not now persists and leaves Models working

No consent by default, missing confirmation rejected with 400, decline survives reload, same model key still returns 200

  • ✅ PASS Existing subscribers are asked for an explicit choice; Not now persists and leaves Models working — No consent by default, missing confirmation rejected with 400, decline survives reload, same model key still returns 200

ℹ️ ASSERTION — 6. Moving between Models and Analytics preserves consent and keeps the Models page focused

After opting in, the Models page still contains no task analytics, usage limits, analytics navigation or integrations. Returning through Analytics restores the enabled Activity view without asking again.

  • ✅ PASS Moving between Models and Analytics preserves consent and keeps the Models page focused — After opting in, the Models page still contains no task analytics, usage limits, analytics navigation or integrations. Returning through Analytics restores the enabled Activity view without asking again.

ℹ️ ASSERTION — 7. The ingestion API preserves submitted metadata, deduplicates retries and excludes content

No pre-consent backfill; 2 real inference calls plus 4 events submitted through the ingestion API after retry; private prompt absent; content and client-supplied costs rejected

  • ✅ PASS The ingestion API preserves submitted metadata, deduplicates retries and excludes content — No pre-consent backfill; 2 real inference calls plus 4 events submitted through the ingestion API after retry; private prompt absent; content and client-supplied costs rejected

ℹ️ ASSERTION — 8. Members cannot view organization analytics, change the choice or attach events to another member's task

Read/write settings returned 403; forged task batch accepted zero events

  • ✅ PASS Members cannot view organization analytics, change the choice or attach events to another member's task — Read/write settings returned 403; forged task batch accepted zero events

ℹ️ ASSERTION — 9. A second paid, opted-in organization cannot see the first organization's activity

The second organization has analytics access, returns HTTP 200, and sees zero events

  • ✅ PASS A second paid, opted-in organization cannot see the first organization's activity — The second organization has analytics access, returns HTTP 200, and sees zero events

ℹ️ ASSERTION — 10. New Models activity appears without a manual refresh

The empty activity screen became a completed task showing both real inference models, MiniMax-M3 and GLM-5.2, without reloading or pressing Refresh; provider coverage guidance was visible before the first task

  • ✅ PASS New Models activity appears without a manual refresh — The empty activity screen became a completed task showing both real inference models, MiniMax-M3 and GLM-5.2, without reloading or pressing Refresh; provider coverage guidance was visible before the first task

ℹ️ ASSERTION — 11. Unavailable Models consumption is an error, not an empty chart

An analytics storage outage returned HTTP 500 and hid the consumption chart and empty-state claims; Refresh restored the recorded costs after recovery

  • ✅ PASS Unavailable Models consumption is an error, not an empty chart — An analytics storage outage returned HTTP 500 and hid the consumption chart and empty-state claims; Refresh restored the recorded costs after recovery

ℹ️ ASSERTION — 12. Streaming and JSON responses remain usable; failed or incomplete calls do not invent zero-cost usage

Both response formats returned their expected text; missing usage has no cost; upstream 503 remains 503 and is recorded as failed

  • ✅ PASS Streaming and JSON responses remain usable; failed or incomplete calls do not invent zero-cost usage — Both response formats returned their expected text; missing usage has no cost; upstream 503 remains 503 and is recorded as failed

ℹ️ ASSERTION — 13. Turning analytics off preserves the Models subscription and existing key; downgrade and rollout removal stop analytics

Same key returns 200 after disable and rollout removal; subscription status is unchanged; reads are denied and no disabled-period events reappear

  • ✅ PASS Turning analytics off preserves the Models subscription and existing key; downgrade and rollout removal stop analytics — Same key returns 200 after disable and rollout removal; subscription status is unchanged; reads are denied and no disabled-period events reappear

ℹ️ ASSERTION — 14. The Langfuse UI verifies project access, rejects private addresses, and exports only newly collected metadata

Private address rejected; HTTPS witness connected; new model usage arrived without prompt text, keys or historical activity

  • ✅ PASS The Langfuse UI verifies project access, rejects private addresses, and exports only newly collected metadata — Private address rejected; HTTPS witness connected; new model usage arrived without prompt text, keys or historical activity

ℹ️ ASSERTION — 15. Turning off task analytics stops export while Models keeps responding

New Models request returned 200 after disable; no extra spans arrived across a full export interval

  • ✅ PASS Turning off task analytics stops export while Models keeps responding — New Models request returned 200 after disable; no extra spans arrived across a full export interval

ℹ️ ASSERTION — 16. Opt-out finishes only after an already-authorized export has finished

The Langfuse witness held an export response; the UI could not confirm opt-out until the response was released, then no later export arrived

  • ✅ PASS Opt-out finishes only after an already-authorized export has finished — The Langfuse witness held an export response; the UI could not confirm opt-out until the response was released, then no later export arrived

ℹ️ ASSERTION — 17. A newer desktop keeps Models working when Den has no analytics endpoint

The real desktop received an injected HTTP 404 for analytics settings, still produced the assistant reply, and never attempted to upload task events

  • ✅ PASS A newer desktop keeps Models working when Den has no analytics endpoint — The real desktop received an injected HTTP 404 for analytics settings, still produced the assistant reply, and never attempted to upload task events

ℹ️ ASSERTION — 18. Real desktop tasks correlate with inference usage after opt-in without replacing the conversation or collecting earlier prompts

The same conversation produced new replies before and after opt-in; runtime task start/completion joined the model call by task ID; two models and two tasks retained; prompt text absent

  • ✅ PASS Real desktop tasks correlate with inference usage after opt-in without replacing the conversation or collecting earlier prompts — The same conversation produced new replies before and after opt-in; runtime task start/completion joined the model call by task ID; two models and two tasks retained; prompt text absent

ℹ️ ASSERTION — 19. A real desktop skill invocation produces task analytics

The model invoked the native skill tool; OpenCode loaded the arranged skill and the resulting skill.loaded event reached the API without a handcrafted ingestion event

  • ✅ PASS A real desktop skill invocation produces task analytics — The model invoked the native skill tool; OpenCode loaded the arranged skill and the resulting skill.loaded event reached the API without a handcrafted ingestion event

ℹ️ ASSERTION — 20. A real desktop file search produces tool activity within the same task

The model invoked the native glob tool; its completed tool.executed event reached analytics with the skill invocation's task ID, without a handcrafted ingestion event

  • ✅ PASS A real desktop file search produces tool activity within the same task — The model invoked the native glob tool; its completed tool.executed event reached analytics with the skill invocation's task ID, without a handcrafted ingestion event

ℹ️ ASSERTION — 21. Turning analytics off leaves the existing desktop conversation and selected model usable

A new assistant reply arrived from the same selected model after disable; the independent HTTP witness observed no task-event uploads across opt-out, re-enable and 40 seconds of background reporting, the disabled-period task was absent, and the earlier conversation was still visible

  • ✅ PASS Turning analytics off leaves the existing desktop conversation and selected model usable — A new assistant reply arrived from the same selected model after disable; the independent HTTP witness observed no task-event uploads across opt-out, re-enable and 40 seconds of background reporting, the disabled-period task was absent, and the earlier conversation was still visible

ℹ️ ASSERTION — 22. Deleting a workspace erases its task analytics and stored export credentials

Workspace deletion returned 200; an independent data-store witness found no retained history or analytics configuration

  • ✅ PASS Deleting a workspace erases its task analytics and stored export credentials — Workspace deletion returned 200; an independent data-store witness found no retained history or analytics configuration

⚪ UNVALIDATED — 23. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 1

  • ⚪ UNVALIDATED — no visual expectations recorded.

an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 1

⚪ UNVALIDATED — 24. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 6

  • ⚪ UNVALIDATED — no visual expectations recorded.

an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 6

⚪ UNVALIDATED — 25. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 8

  • ⚪ UNVALIDATED — no visual expectations recorded.

an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 8

⚪ UNVALIDATED — 26. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 14

  • ⚪ UNVALIDATED — no visual expectations recorded.

an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 14

⚪ UNVALIDATED — 27. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 15

  • ⚪ UNVALIDATED — no visual expectations recorded.

an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 15

⚪ UNVALIDATED — 28. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 19

  • ⚪ UNVALIDATED — no visual expectations recorded.

an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 19

⚪ UNVALIDATED — 29. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 24

  • ⚪ UNVALIDATED — no visual expectations recorded.

an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 24

⚪ UNVALIDATED — 30. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 25

  • ⚪ UNVALIDATED — no visual expectations recorded.

an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 25


Test run created 2026-09-07T01:34:17.211Z · Source: evals/results/test-runs/2026-09-07T01-34-17-211Z-an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4591 --test-run 2026-09-07T01-34-17-211Z-an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with


Test evidence — workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib — ✅ passed

SHA 12ec302 · engine v1

✅ 0/4 screenshots passed · 8 assertions · 8 expectations passed · 0 failed · 0 pending

[world] den(daytona) · [seed] api GET /v1/org · [seed] api POST /v1/mcp/token · [seed] api POST /v1/workflows/cob_01m1wqvnh2etwt1hh2cgj51kzf/run · web(signed in)
[probe] api(GET /v1/workflow-runs) · api(GET /v1/codemode-runs)
[user] see(text=Workflow Runs is part of the Enterprise plan., timeoutMs=90000)
[probe:raw] [probe:raw] eval()
[user] navigate(/dashboard/script-runs) · see(text=Workflow Runs is part of the Enterprise plan.)
[probe:raw] [probe:raw] eval()
[user] see(label=/^Usage & adoption$/) · see(label=Models & usage) · notSee(testId=nav-workflow-runs) · notSee(label=Workflow Runs) · notSee(testId=workflow-run-link-wfr_01m1wqvnppeapr5fsmty5ftkqy) · navigate(/dashboard/analytics/workflow-runs) · see(text=Workflow Runs is part of the Enterprise plan.) · notSee(testId=workflow-run-link-wfr_01m1wqvnppeapr5fsmty5ftkqy) · screenshot · reload · label=/^Usage & adoption$/ · click(label=/^Usage & adoption$/) · label=Workflow Runs · click(label=Workflow Runs) · notSee(text=Workflow Runs is part of the Enterprise plan.) · notSee(testId=nav-workflow-runs)
[probe] api(GET /v1/workflow-runs)
[user] see(text=Workflow Runs, timeoutMs=90000) · see(text=Workflows are repeatable tasks you and your team can save, share, and run again. See their recent activity here.) · see(testId=workflow-run-visualization-wfr_01m1wqvnppeapr5fsmty5ftkqy, text=/^(?![\s\S]*Revised count)(?=[\s\S]*Get workers)(?=[\s\S]*For each item in workers workers)(?=[\s\S]*Topic is set)(?=[\s\S]Finish with: Topic, Count)[\s\S]$/) · see(testId=workflow-run-link-wfr_01m1wqvnppeapr5fsmty5ftkqy, text="Weekly briefing") · see(testId=workflow-run-time-wfr_01m1wqvnppeapr5fsmty5ftkqy) · see(testId=workflow-run-visualization-wfr_01m1wqvp4he3ebr4p7mpr4cj4w, text=/^(?![\s\S]*Revised count)(?=[\s\S]*Get workers)(?=[\s\S]*For each item in workers workers)(?=[\s\S]*Topic is set)(?=[\s\S]Finish with: Topic, Count)[\s\S]$/) · see(testId=workflow-run-link-wfr_01m1wqvp4he3ebr4p7mpr4cj4w, text="Weekly briefing") · see(testId=workflow-run-time-wfr_01m1wqvp4he3ebr4p7mpr4cj4w) · notSee(testId=den-workflow-flow-diagram) · see(testId=workflow-run-link-wfr_01m1wqvnppeapr5fsmty5ftkqy, text="Weekly briefing") · see(testId=workflow-run-time-wfr_01m1wqvnppeapr5fsmty5ftkqy) · see(text=Succeeded) · see(text=Failed) · notSee(text=plugin:plg_01m1wqvnh1e7qs5817cy0ngkk4:cob_01m1wqvnh2etwt1hh2cgj51kzf) · see(testId=workflow-run-wfr_01m1wqvnw2eecttrbpmgmyyd90, text=/One-off task[\s\S]*Succeeded[\s\S]*Technical details/) · see(testId=workflow-run-time-wfr_01m1wqvnw2eecttrbpmgmyyd90) · notSee(testId=workflow-run-link-wfr_01m1wqvnw2eecttrbpmgmyyd90) · notSee(testId=workflow-run-visualization-wfr_01m1wqvnw2eecttrbpmgmyyd90) · testId=workflow-run-details-wfr_01m1wqvnw2eecttrbpmgmyyd90 · click(testId=workflow-run-details-wfr_01m1wqvnw2eecttrbpmgmyyd90) · see(testId=workflow-run-wfr_01m1wqvnw2eecttrbpmgmyyd90, text=/Source[\s\S]*adhoc[\s\S]*Tool calls[\s\S]*den.getWorkers[\s\S]Duration[\s\S]\d+(?:.\d+)? (?:ms|s)/) · testId=workflow-run-details-wfr_01m1wqvnw2eecttrbpmgmyyd90 · click(testId=workflow-run-details-wfr_01m1wqvnw2eecttrbpmgmyyd90) · notSee(label=One-off task) · notSee(label=One-off task workflow visualization) · screenshot · testId=workflow-run-link-wfr_01m1wqvnppeapr5fsmty5ftkqy · click(testId=workflow-run-link-wfr_01m1wqvnppeapr5fsmty5ftkqy) · see(testId=den-workflow-detail, timeoutMs=60000) · see(text=How it works) · see(text=Weekly briefing)
[probe] api(GET /v1/workflow-runs)
[user] navigate(/dashboard/workflow-runs) · see(text=Workflow Runs)
[probe:raw] [probe:raw] eval()
[user] testId=workflow-run-details-wfr_01m1wqvnppeapr5fsmty5ftkqy · click(testId=workflow-run-details-wfr_01m1wqvnppeapr5fsmty5ftkqy) · see(text=plugin:plg_01m1wqvnh1e7qs5817cy0ngkk4:cob_01m1wqvnh2etwt1hh2cgj51kzf)
[probe] api(GET /v1/workflow-runs) · api(GET /v1/org)
[seed] [seed] api POST /v1/config-objects/cob_01m1wqvnh2etwt1hh2cgj51kzf/access
[probe] api(GET /v1/workflow-runs)
[seed] [seed] api DELETE /v1/config-objects/cob_01m1wqvnh2etwt1hh2cgj51kzf/access/coa_01m1wqzzbceg49raxnwyc6mnad
[probe] api(GET /v1/workflow-runs) · api(GET /v1/workflows/cob_01m1wqvnh2etwt1hh2cgj51kzf)
[user] navigate(/dashboard/library/workflows/cob_01m1wqvnh2etwt1hh2cgj51kzf) · see(testId=workflow-overview, text=/Run workflow[\s\S]*Latest result[\s\S]*How it works/, timeoutMs=60000) · see(testId=den-workflow-input-form) · notSee(label=Run input details)
[probe] api(GET /v1/workflow-runs)
[user] see(testId=workflow-overview, text=/^(?![\s\S]*No custom display yet)[\s\S]*Customize result display/) · text=Customize result display · click(text=Customize result display) · see(text=/No custom display yet/) · text=Customize result display · click(text=Customize result display) · see(testId=workflow-overview, text=/^(?![\s\S]*No custom display yet)[\s\S]*Customize result display/) · type(label=/^Topic/, "A fresh briefing", replace) · text=Advanced input · click(text=Advanced input) · see(label=Run input details, value="{\n "topic": "A fresh briefing"\n}") · text=Advanced input · click(text=Advanced input) · notSee(label=Run input details)
[probe] api(GET /v1/workflow-runs)
[user] label=Run workflow · click(label=Run workflow) · see(testId=den-workflow-artifact-result, text=/A fresh briefing/, timeoutMs=60000)
[probe] api(GET /v1/workflow-runs)
[user] see(label=Run workflow) · see(testId=den-workflow-flow-diagram) · screenshot · navigate(/dashboard/analytics/workflow-runs) · see(text=Workflow Runs is part of the Enterprise plan.) · notSee(testId=workflow-run-link-wfr_01m1wqvnppeapr5fsmty5ftkqy) · notSee(label=Workflow Runs)
[probe] api(GET /v1/workflow-runs)
[user] navigate(/dashboard/library/workflows/cob_01m1wqvnh2etwt1hh2cgj51kzf) · see(label=Run workflow) · type(label=/^Topic/, "Briefing after plan change", replace) · label=Run workflow · click(label=Run workflow) · see(testId=den-workflow-artifact-result, text=/Briefing after plan change/, timeoutMs=60000)
[probe] api(GET /v1/workflow-runs)
[user] screenshot
steps 1 ✅ restrict workflow analytics before an Enterprise upgrade (15.5s) · 2 ✅ read existing diagrams directly in the run list (23.0s) · 3 ✅ open the linked workflow in the existing library (3.1s) · 4 ✅ respect member access when enriching activity (1.2s) · 5 ✅ run the saved workflow from its simple form (13.7s) · 6 ✅ keep workflow execution working after Enterprise access is removed (10.5s)
verdict passed · 57 user observations (see ×37, notSee ×16, screenshot ×4) · 17 probes · steps 6/6

ℹ️ ASSERTION — 1. Workflow run analytics is Enterprise-only through navigation, saved links and both API paths

The free workspace's already executed workflows are hidden from analytics: both API aliases return 402 without runs, both legacy page URLs resolve to /dashboard/analytics/workflow-runs, which shows the Enterprise gate, and there is no standalone sidebar destination or Workflow Runs analytics link.

  • ✅ PASS Workflow run analytics is Enterprise-only through navigation, saved links and both API paths — The free workspace's already executed workflows are hidden from analytics: both API aliases return 402 without runs, both legacy page URLs resolve to /dashboard/analytics/workflow-runs, which shows the Enterprise gate, and there is no standalone sidebar destination or Workflow Runs analytics link.

ℹ️ ASSERTION — 2. An Enterprise upgrade unlocks Workflow Runs inside Analytics with existing history intact

The upgraded workspace opens Workflow Runs from the shared Analytics navigation and the API returns its pre-upgrade receipts, including the original saved version.

  • ✅ PASS An Enterprise upgrade unlocks Workflow Runs inside Analytics with existing history intact — The upgraded workspace opens Workflow Runs from the shared Analytics navigation and the API returns its pre-upgrade receipts, including the original saved version.

ℹ️ ASSERTION — 3. Saved runs show the existing visualization of their executed version

The API graph matches the original version and differs from the later edit. The activity page renders both saved-run diagrams with a library link, status and time; one-off runs have neither a fabricated link nor a visualization.

  • ✅ PASS Saved runs show the existing visualization of their executed version — The API graph matches the original version and differs from the later edit. The activity page renders both saved-run diagrams with a library link, status and time; one-off runs have neither a fabricated link nor a visualization.

ℹ️ ASSERTION — 4. Workflow activity explains reuse and keeps raw run details collapsed

The introduction is visible and the closed details element keeps raw source values out of the visible run card.

  • ✅ PASS Workflow activity explains reuse and keeps raw run details collapsed — The introduction is visible and the closed details element keeps raw source values out of the visible run card.

ℹ️ ASSERTION — 5. The run opens its library workflow and technical details remain available

Clicking the workflow name opens the existing library detail without creating any new runs. Expanding Technical details reveals its saved source.

  • ✅ PASS The run opens its library workflow and technical details remain available — Clicking the workflow name opens the existing library detail without creating any new runs. Expanding Technical details reveals its saved source.

ℹ️ ASSERTION — 6. Run previews follow workflow access without widening run visibility

A member sees none of the admin's runs, then sees a redacted preview of their own shared workflow run. Revoking the workflow grant preserves their receipt but removes its preview and library metadata.

  • ✅ PASS Run previews follow workflow access without widening run visibility — A member sees none of the admin's runs, then sees a redacted preview of their own shared workflow run. Revoking the workflow grant preserves their receipt but removes its preview and library metadata.

ℹ️ ASSERTION — 7. The workflow opens with a simple run form and shows the submitted result

The form precedes the latest result and existing diagram. Advanced input starts hidden and stays synchronized with the named field; editing and inspecting it create no runs. Submitting creates exactly one successful run of the current saved version and displays the entered topic in its result.

  • ✅ PASS The workflow opens with a simple run form and shows the submitted result — The form precedes the latest result and existing diagram. Advanced input starts hidden and stays synchronized with the named field; editing and inspecting it create no runs. Submitting creates exactly one successful run of the current saved version and displays the entered topic in its result.

ℹ️ ASSERTION — 8. Removing Enterprise access hides history without breaking workflow execution

After the downgrade, previously viewed receipts and the Workflow Runs link are absent and the API is locked. Running the saved workflow from the Library still succeeds and displays the newly submitted result.

  • ✅ PASS Removing Enterprise access hides history without breaking workflow execution — After the downgrade, previously viewed receipts and the Workflow Runs link are absent and the API is locked. Running the saved workflow from the Library still succeeds and displays the newly submitted result.

⚪ UNVALIDATED — 9. workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 1

  • ⚪ UNVALIDATED — no visual expectations recorded.

workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 1

⚪ UNVALIDATED — 10. workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 4

  • ⚪ UNVALIDATED — no visual expectations recorded.

workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 4

⚪ UNVALIDATED — 11. workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 9

  • ⚪ UNVALIDATED — no visual expectations recorded.

workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 9

⚪ UNVALIDATED — 12. workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 11

  • ⚪ UNVALIDATED — no visual expectations recorded.

workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 11


Test run created 2026-09-07T01:29:24.424Z · Source: evals/results/test-runs/2026-09-07T01-29-24-424Z-workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4591 --test-run 2026-09-07T01-29-24-424Z-workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib


Test evidence — organization-model-analytics-aggregate-session-dimensions-without-cross-org-leak — ✅ passed

SHA 12ec302 · engine v1

✅ 0/1 screenshots passed · 6 assertions · 6 expectations passed · 0 failed · 0 pending

[world] den(daytona) · web(signed in)
[user] see(text=Understand how your team works in OpenWork, timeoutMs=60000) · label=Refresh analytics · click(label=Refresh analytics) · see(text=/^prov/model-a\s+1$/, timeoutMs=30000) · see(text=/^prov/model-b\s+1$/) · notSee(text=No model usage yet) · screenshot · reload · see(text=Could not load analytics., timeoutMs=60000) · notSee(text=No model usage yet) · notSee(text=No usage events yet) · label=Refresh analytics · click(label=Refresh analytics) · see(text=prov/model-a, timeoutMs=30000) · notSee(text=Could not load analytics.) · label=Models & usage · click(label=Models & usage) · see(text=Understand your team’s OpenWork Models activity, consumption, and shared limits.) · notSee(label=Subscribe) · label=/^Usage & adoption$/ · click(label=/^Usage & adoption$/) · see(text=Understand how your team works in OpenWork) · see(text=prov/model-b)
verdict passed · 14 user observations (see ×8, notSee ×5, screenshot ×1) · 0 probes · steps 0/0

ℹ️ ASSERTION — 1. Model usage is aggregated by distinct session

[{"id":"prov/model-a","label":"prov/model-a","sessions":1},{"id":"prov/model-b","label":"prov/model-b","sessions":1}]

  • ✅ PASS Model usage is aggregated by distinct session — [{"id":"prov/model-a","label":"prov/model-a","sessions":1},{"id":"prov/model-b","label":"prov/model-b","sessions":1}]

ℹ️ ASSERTION — 2. Default and manual model selections are counted

{"default":1,"manual":1}

  • ✅ PASS Default and manual model selections are counted — {"default":1,"manual":1}

ℹ️ ASSERTION — 3. Model analytics are isolated by organization

{"usage30d":[],"selection30d":{"default":0,"manual":0}}

  • ✅ PASS Model analytics are isolated by organization — {"usage30d":[],"selection30d":{"default":0,"manual":0}}

ℹ️ ASSERTION — 4. Usage and adoption shows the same model usage returned by the organization API

Both model rows show exactly one session, matching the API totals, and the empty-state message is absent

  • ✅ PASS Usage and adoption shows the same model usage returned by the organization API — Both model rows show exactly one session, matching the API totals, and the empty-state message is absent

ℹ️ ASSERTION — 5. An analytics outage is shown as an error and can recover without inventing zero usage

An analytics storage outage returned HTTP 500 and produced the error state with no empty charts; Refresh restored the previously ingested models after recovery

  • ✅ PASS An analytics outage is shown as an error and can recover without inventing zero usage — An analytics storage outage returned HTTP 500 and produced the error state with no empty charts; Refresh restored the previously ingested models after recovery

ℹ️ ASSERTION — 6. Shared navigation connects adoption and Models analytics

Both views are reachable through the shared navigation and returning preserves access to the same organization’s model analytics

  • ✅ PASS Shared navigation connects adoption and Models analytics — Both views are reachable through the shared navigation and returning preserves access to the same organization’s model analytics

⚪ UNVALIDATED — 7. organization-model-analytics-aggregate-session-dimensions-without-cross-org-leak artifact 4

  • ⚪ UNVALIDATED — no visual expectations recorded.

organization-model-analytics-aggregate-session-dimensions-without-cross-org-leak artifact 4


Test run created 2026-09-07T01:44:04.394Z · Source: evals/results/test-runs/2026-09-07T01-44-04-394Z-organization-model-analytics-aggregate-session-dimensions-without-cross-org-leak/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4591 --test-run 2026-09-07T01-44-04-394Z-organization-model-analytics-aggregate-session-dimensions-without-cross-org-leak

@benjaminshafii
benjaminshafii marked this pull request as ready for review September 7, 2026 01:49

@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 (12ec3029129778e60dd0cf25f5d94d3e6f6da5e1). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

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