Repository navigation
Keep model usage and enterprise workflow runs inside Analytics - #4591
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Test evidence — an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with — ✅ passedSHA 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) ℹ️ ASSERTION — 1. Paid Models usage lives in Analytics independently of the Enterprise planThe 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 inaccessibleManaged 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 migrationA 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 keyThe 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 workingNo 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 focusedAfter 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 contentNo 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 taskRead/write settings returned 403; forged task batch accepted zero events
ℹ️ ASSERTION — 9. A second paid, opted-in organization cannot see the first organization's activityThe second organization has analytics access, returns HTTP 200, and sees zero events
ℹ️ ASSERTION — 10. New Models activity appears without a manual refreshThe 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 chartAn 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 usageBoth 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 analyticsSame 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 metadataPrivate 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 respondingNew 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 finishedThe 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 endpointThe 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 promptsThe 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 analyticsThe 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 taskThe 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 usableA 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 credentialsWorkspace 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 — 24. 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 — 26. 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 — 28. 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 — 30. an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with artifact 25
Test run created 2026-09-07T01:34:17.211Z · Source: Test evidence — workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib — ✅ passedSHA 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) ℹ️ ASSERTION — 1. Workflow run analytics is Enterprise-only through navigation, saved links and both API pathsThe 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 intactThe 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 versionThe 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 collapsedThe 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 availableClicking 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 visibilityA 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 resultThe 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 executionAfter 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 — 10. 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 — 12. workflow-activity-shows-linked-version-diagrams-and-keeps-one-off-and-inaccessib artifact 11
Test run created 2026-09-07T01:29:24.424Z · Source: Test evidence — organization-model-analytics-aggregate-session-dimensions-without-cross-org-leak — ✅ passedSHA 12ec302 · engine v1 ✅ 0/1 screenshots passed · 6 assertions · 6 expectations passed · 0 failed · 0 pending [world] den(daytona) · web(signed in) ℹ️ 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}]
ℹ️ ASSERTION — 2. 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}}
ℹ️ ASSERTION — 4. Usage and adoption shows the same model usage returned by the organization APIBoth 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 usageAn 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 analyticsBoth 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
Test run created 2026-09-07T01:44:04.394Z · Source: |
There was a problem hiding this comment.
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













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.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.