Skip to content

test(evals): fail loudly when a spec clicks a disabled control - #4770

Merged
yomgui merged 3 commits into
devfrom
e2e/click-disabled-guard
Sep 11, 2026
Merged

yomgui merged 3 commits into
devfrom
e2e/click-disabled-guard

Conversation

@yomgui

@yomgui yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member

Merge order: land this AFTER #4757 (e2e/fresh-session-send-gate). Until #4757 is in, the Cluster 1 specs that click Run task during the first ~0.9 s of a new session will fail immediately with DisabledTargetError instead of after a 90 s timeout — that is the intended behaviour of this PR, but it means their red turns from "timeout" into a named failure until the product fix lands.

Root cause

Triage: reports/e2e-red-2026-09-09/triage.md → Cluster 1 ("Fresh-session Run task click swallowed", 7 files) and Brief B2.

What changed (evals/packages/cdp, evals/packages/testkit only)

  • locate() now reports Located.disabled: string | null — what disables the control (disabled via :disabled, so a disabled <fieldset> counts, and/or aria-disabled="true"), or null. The value is validated like every other located field (a non-string/non-null value is "invalid located-element geometry"). This matches how the app itself decides a control is actionable (session-number-shortcuts.ts: !button.matches('[disabled], [aria-disabled="true"]')).
  • New clickTarget(surface, target, { timeoutMs, mustHitTest, button, clickCount }):
    1. waitForLocated as before (visible + hit-test);
    2. throw DisabledTargetError immediately if the control is disabled — Refused to click disabled button "Run task" (disabled); the page would ignore the click. No mouse event is dispatched. It does not wait for the control to become enabled: a spec that needs to wait must say so, otherwise the guard would hide exactly the bug Cluster 1 is about.
    3. re-locate immediately before dispatch; click at the fresh centre if it is still visible/hit-testable and enabled, otherwise fail with both rects: Target "Workflow Runs" moved before the click could be dispatched: 0,252 120×32 → 0,228 120×32 (visible=true, hitTestOk=false). Covered by ….
  • user.click, user.rightClick, user.dblclick and the focusing click inside user.type go through clickTarget. The target trace entry now records the geometry that was actually clicked. hitTest: false still works (visibility-only on both inspections).
  • user.see / user.notSee / user.hover are untouched; they only gain the extra disabled field in Located (visible in the last state dump of a see timeout).
  • Fixtures: the fake located values in cdp/test/input.test.ts and specs/spec-primitives.test.ts gained disabled: null.

Proof (sha 80d6824b6adc5b9179e1067b3a54bfa1d4d5539b, OPENWORK_EVAL_REF exported, fresh sandboxes, both verified source verified 80d6824b6… in the log)

  • Unit: node --test packages/cdp/test/*.test.ts packages/testkit/test/*.test.ts → 53 pass / 0 fail (4 new clickTarget tests: refuses disabled and aria-disabled="true" by name with no Input.dispatchMouseEvent; rejects a malformed disabled value; clicks the re-located centre; fails with both rects when the fresh location is covered or turned disabled).
  • PR lane: pnpm evals:pr specs/spec-primitives.test.ts → 3 passed, 1 skipped (that skip is the spec's own "unmet needs skip before building the world" fixture, not new).
  • pnpm evals:e2e visualization --daytona → passed:1 failed:0 skipped:0, placement line: {"command":"evals:e2e","lane":"e2e","daytona":true,"placement":"daytona","engine":"legacy","surface":"legacy",…,"passed":1,"failed":0,"skipped":0,"skips":[],"verdict":"passed"} (236 s). Trace: 5 clicks (Run task ×2, Mobile preview, Desktop preview, Request changes) + 2 composer types all through clickTarget; test-run.json gitSha = 80d6824b6….
  • pnpm evals:e2e models-analytics-upgrade --daytona (guard-not-over-eager check: 24 clicks on links, tabs, options and buttons across Den Web + desktop, including a click right after the spec's own button:not(:disabled) wait) → passed:1 failed:0 skipped:0, "placement":"daytona", "verdict":"passed" (595 s). All 24 click + 4 type trace entries ok.
  • tsc -p evals introduces no errors in the touched files (the checkout has 366 pre-existing errors in worlds/* and packages/email).

Noticed, not touched

  • pnpm --dir evals test is red on origin/dev independent of this change: lint:layers (39 specs-use-testkit-only violations), spec-channel-ratchet (19 stale/increased baselines) and spec-boundary-ratchet (5 specs) all name spec files this PR does not touch.
  • test-run.json still does not record OPENWORK_EVAL_REF / placement (placement: null even for a Daytona run); the triage already flags this (Cluster 10).
  • user.hover still uses waitForLocated directly (hovering a disabled control for its tooltip is legitimate), and evals/packages/behaviors has its own click paths (sendComposerMessage waits for !button.disabled) that were not changed.
  • Located.disabled could back a user.see(target, { disabled }) option so specs can assert "the button is disabled" without a raw probe; not added here to keep see semantics unchanged.

locate() now reports what disables a control (disabled / aria-disabled="true")
and clickTarget() waits for a visible target, refuses a disabled one by name
with DisabledTargetError, then re-locates immediately before dispatching so a
layout shift after the first inspection fails with both rects instead of
silently absorbing the click.
…kTarget

A spec that clicks a disabled control now fails immediately with the control's
label and disabled state instead of dispatching a mouse event the app ignores;
the trace target rect is the geometry that was actually clicked.
@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 11, 2026 3:18am UTC
openwork-den Ready Ready Preview Sep 11, 2026 3:18am UTC
openwork-diagnostics Ready Ready Preview Sep 11, 2026 3:18am UTC
openwork-landing Ready Ready Preview, v0 Sep 11, 2026 3:18am UTC

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. 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 (67568 ms), confidentiality-review (53125 ms), spec-provenance-review (14326 ms).

Blockers

  • None.

Advisories

  • None.

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

@yomgui

yomgui commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Test evidence — an existing Models subscriber can decline, enable and disable task analytics without losing Models — ✅ passed

SHA 80d6824 · engine v1

✅ 0/8 screenshots passed · 23 assertions · 23 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-kmh08hounrlccvry.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.) · reload · see(text=pagination-model-200, timeoutMs=60000)
[probe] api(GET /v1/inference/analytics/activity?days=30)
[user] label=Load more activity · click(label=Load more activity)
[probe] eventually(the old activity page body is held)
[user] see(text=pagination-model-newest, timeoutMs=45000)
[probe] api(GET /v1/inference/analytics/activity?days=30) · dom("[data-testid="models-task-analytics"] button:not(:disabled)") · eventually(the late page finishes in the refreshed view)
[user] see(text=pagination-model-newest) · see(text=pagination-model-199) · notSee(text=pagination-model-200) · notSee(text=pagination-model-400)
[probe] text
[user] label=Load more activity · click(label=Load more activity) · see(text=pagination-model-200) · see(text=pagination-model-399) · notSee(text=pagination-model-400) · label=Load more activity · click(label=Load more activity) · see(text=pagination-model-400) · notSee(label=Load more activity)
[probe] text
verdict passed · 80 user observations (see ×44, notSee ×28, screenshot ×8) · 19 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. Refreshing model activity rejects a late old page and preserves a complete traversal

The real page after task 200 was held while a newer event triggered automatic refresh. After releasing the old body and observing completion, only the refreshed 200 rows remained, with no stale tasks 200 or 400. The next UI request used the refreshed cursor, recovered task 200 through 399, and the final page reached 400. All 401 fixture tasks appeared exactly once, with no further page available.

  • ✅ PASS Refreshing model activity rejects a late old page and preserves a complete traversal — The real page after task 200 was held while a newer event triggered automatic refresh. After releasing the old body and observing completion, only the refreshed 200 rows remained, with no stale tasks 200 or 400. The next UI request used the refreshed cursor, recovered task 200 through 399, and the final page reached 400. All 401 fixture tasks appeared exactly once, with no further page available.

ℹ️ ASSERTION — 23. 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 — 24. an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 1

  • ⚪ UNVALIDATED — no visual expectations recorded.

an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 1

⚪ UNVALIDATED — 25. an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 6

  • ⚪ UNVALIDATED — no visual expectations recorded.

an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 6

⚪ UNVALIDATED — 26. an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 8

  • ⚪ UNVALIDATED — no visual expectations recorded.

an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 8

⚪ UNVALIDATED — 27. an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 14

  • ⚪ UNVALIDATED — no visual expectations recorded.

an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 14

⚪ UNVALIDATED — 28. an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 15

  • ⚪ UNVALIDATED — no visual expectations recorded.

an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 15

⚪ UNVALIDATED — 29. an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 19

  • ⚪ UNVALIDATED — no visual expectations recorded.

an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 19

⚪ UNVALIDATED — 30. an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 24

  • ⚪ UNVALIDATED — no visual expectations recorded.

an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 24

⚪ UNVALIDATED — 31. an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 25

  • ⚪ UNVALIDATED — no visual expectations recorded.

an existing Models subscriber can decline, enable and disable task analytics without losing Models artifact 25


Test run created 2026-09-10T04:40:28.420Z · Source: evals/results/test-runs/2026-09-10T04-40-28-419Z-an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4770 --test-run 2026-09-10T04-40-28-419Z-an-existing-models-subscriber-can-decline-enable-and-disable-task-analytics-with

@yomgui

yomgui commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 120e740a9f501afe92fdd7b21948af75d4217522 · selected evidence

Open review report

Resolves evals/packages/cdp/test/input.test.ts: both sides extended the import
line (clickTarget/DisabledTargetError here, pressKey from dev); keep the union and
all 14 tests (8 base + 4 clickTarget here + 2 key/click-readiness from dev).

Semantic follow-up for dev's stable-geometry rule in waitForLocated (two
inspections with identical rects before a hit-tested target is returned):
- dev's click-readiness fixture gains disabled: null, which locate() now requires;
- clickTarget mocks enqueue the enabled button twice so stability is satisfied
  before the pre-dispatch re-locate, keeping each test's intent;
- the disabled-guard mock budget rises from 100ms to 500ms to cover two polls.
No assertion changed.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: 120e740
Status: ✅  Deploy successful!
Preview URL: https://65615159.openwork.pages.dev
Branch Preview URL: https://e2e-click-disabled-guard.openwork.pages.dev

View logs

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

@yomgui

yomgui commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Resynced with dev — merge commit 120e740a9f501afe92fdd7b21948af75d4217522

Merge of origin/dev @ bc9a2867d (signed, no rebase/force). Parents: 80d6824b6 (PR head) + bc9a2867d.

Conflict — evals/packages/cdp/test/input.test.ts: only the import line (this PR added clickTarget, DisabledTargetError; dev added pressKey via #4853/#4761). Kept the union and all 14 tests (8 base + 4 clickTarget here + 2 from dev: key dispatch…, click readiness waits for stable geometry…).

Semantic follow-up — dev's waitForLocated now requires two inspections with identical rects before returning a hit-tested target. That interacted with this PR's tests in three ways, fixed in the merge commit without changing any assertion:

  • dev's click readiness fixture gained disabled: null (this PR's locate() validation rejects a Located without it — same fixture change this PR made everywhere else);
  • the clickTarget mocks enqueue the enabled button twice so stability is satisfied before the pre-dispatch re-locate; the third value is what the re-locate sees (keeps the tests' intent — previously [enabled, moved] would have been consumed by the stability loop and the "re-locates" test would pass vacuously);
  • the disabled-guard mock budget timeoutMs: 100 → 500 (two polls ~100 ms apart no longer fit in 100 ms).

Verification on 120e740a9

  • node --test packages/cdp/test/*.test.ts packages/testkit/test/*.test.ts → 59 pass / 0 fail / 0 skipped.
  • pnpm evals:pr specs/spec-primitives.test.ts → 3 passed, 1 skipped (the spec's own "unmet needs" fixture, pre-existing).
  • pnpm --dir evals typecheck → 0 errors in packages/cdp. The tree has 423 pre-existing errors (worlds/*, packages/email, ee/den-api, and 3 in packages/testkit/test/testkit.test.ts); a clean origin/dev @ bc9a2867d control worktree produces the identical 423-error set (diff differs only in absolute paths), so none are introduced here.
  • Daytona proof: OPENWORK_EVAL_REF=120e740a9… pnpm evals:e2e visualization --daytona → Tests 1 passed, exit 0. Placement line: {"command":"evals:e2e","lane":"e2e","daytona":true,"placement":"daytona","engine":"legacy","surface":"legacy",…,"sandboxRef":"120e740a9f501afe92fdd7b21948af75d4217522","sandboxSha":"120e740a9f501afe92fdd7b21948af75d4217522","refMismatch":false,"passed":1,"failed":0,"skipped":0,"skips":[],"verdict":"passed"} — log shows source verified 120e740a9…; both sandboxes deleted after the run.

@yomgui
yomgui merged commit 222fde9 into dev Sep 11, 2026
29 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 120e740a Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-app — 120e740a Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-den — 120e740a Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-diagnostics — 120e740a Deployed Sep 11, 2026 by vercel[bot]
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