Repository navigation
test(computer): add live SaaS canary plumbing and CUA evaluation skill - #1178
Conversation
There was a problem hiding this comment.
Request changes (4 P1, 2 P2, 1 P3) · merge base bfaa78d · 1 commit, 9 files
Findings
P1
-
apps/computer/benchmarks/real-app-eval/runners/summarize_3os.mjs:375-380,436,555-573— E5 canary reports fail passing E0 (Tier 0) gates and can mask skipped E3/E4 cases in mixed reports.
Three flaws break the stated invariant that E5 canaries never mask or fail E0–E4 release gates:summarizeReportGroupreturnscaseStats: mergedCaseStatsincludingE5entries (line 436). When a passing Tier 0 (E0) report (caseStats: []) is aggregated with an executedE5report,allCaseStats.length > 0(line 555) invokesevaluateV5Gates, which filters outtier === "E5"(lib/stats.mjs:249-255), computestotalExecutedRounds === 0, and fails the gate with"No evaluation rounds executed".- When a passing Tier 0 (
E0) report is aggregated with a skippedE5report (allCaseStats.length === 0), the fallbackrows.every((r) => r.status === "PASS")(line 562) fails because the observational row has status"SKIPPED (E5)"(producinggate.passed = falsewith emptyreasons). isObservationalE5(lines 375-380) treats any report withmergedCaseStats.length > 0 && mergedCaseStats.every((c) => c.tier === "E5")as observational without checkingtrials.every((t) => t.tier === "E5"). If a mixed run skips anE3/E4scenario inprecheck(pushed only totrials, notcaseStats) while anE5canary executes, the row is markedobservational: true(OBSERVED (...)) instead of failing closed asEMPTY, silently masking the skippedE3/E4leg.
Fix: Require bothmergedCaseStatsandtrialsto be all-E5inisObservationalE5; excludetier === "E5"from thecaseStatsreturned toaggregateReports; and in theallCaseStats.length === 0fallback, computepassedanddevtotals overgateRows = rows.filter((r) => !r.dryRun && !r.observational)(gateRows.length > 0 && gateRows.every((r) => r.status === "PASS")).
-
apps/computer/benchmarks/real-app-eval/suites/live_web_saas.mjs:77-87,276-278,300,392-405,471-508— Mutation and URL guards scan DOM outputs and unquoted substrings, causing falseSAFETY_VIOLATIONs on read-only runs.
extractCanaryObservedStateputs full tool outputs intotraceTextinstead of reusingcollectToolCallInputsTrace(lib/fixture_common.mjs:163),gradeStripeTestCanaryscansobservedOutputTextfor anydashboard.stripe.commatch (lines 471, 481-488), andhasClickNearTarget(lines 77-87) uses optional quotes with no word boundaries over JSON-stringified scripts whose\nescapes are not unescaped (unescapeJsonTrace, lines 71-75).
As a result: (a) a read-only Playwright snapshot ofx.com/homeemits the left-sidebar compose link (- /url: /compose/post,browser.go:1064) into tool output, matchingapiOrRouteMutationRe(line 393) and triggeringSAFETY_VIOLATION; (b) any non-/testlink rendered on Stripe's Test Mode page (e.g., an "Exit test mode" link tohttps://dashboard.stripe.com/paymentsor baredashboard.stripe.comtext) failsisAllowedStripeDashboardPathand triggersSAFETY_VIOLATION; and (c) benign scripts such asawait p.click("Payments");\nconst shot = await p.capture();onT4-STRIPE(matchingCaptureacross the escaped\n) orv.click("Bookmarks");\nreturn topPost/ clicking X's"Following"tab onT4-X(matchingPost/Follow) trigger falseSAFETY_VIOLATIONs.
Fix: ReusecollectToolCallInputsTrace(lib/fixture_common.mjs:163, unescaping\n) for action/click/API-mutation checks; require quoted or word-bounded action targets inhasClickNearTarget; and for Stripe URL checks inspect only tool-call inputs plus explicit page-URL lines (- Page URL:) rather than arbitrary links in page snapshots. -
apps/computer/benchmarks/real-app-eval/suites/live_web_saas.mjs:279-283,301— Failed Codex tool outputs leak intoobservedOutputTextand can false-pass graders.
collectToolEntryskips failed tools viaif (t.isError === true) return;(line 301), andtest_real_app_eval.mjs:2450-2463tests this using a hand-crafted tool object withisError: true. In real Codex runs (runLocalCodexAgainstMcp->scanCodexRolloutJsonl), however,harness_lib.mjs:613-618,703-720never setsisErrorontoolCallsitems, andextractCodexRolloutSegments(lines 279-283) appends every*_outputpayload without checkingp.is_error === trueor"isError": true. A failedui_execcall whose error output echoes target tokens (e.g.,is_error: true,output: '{"isError":true,"error":"Error: article @elonmusk"}') leaks intoobservedOutputTextand false-passesgradeXReadOnlyCanary(and similarlygradeStripeTestCanary/gradeGa4DemoCanary).
Fix: Skip*_outputpayloads inextractCodexRolloutSegmentswhenp.is_error === trueor"isError": trueis present (matchingharness_lib.mjs:715-719), propagatecallRec.isError = isErrinscanCodexRolloutJsonl(or detect"isError": trueincollectToolEntry), and test with a real Codex rollout JSONL fixture. -
apps/computer/benchmarks/real-app-eval/suites/live_web_saas.mjs:189-207,294-346— Component-chain host disables everyday Chrome andrun_small_modeltruncates tool outputs to 600 chars.
resolveCanaryPrecheckrejects--chain product(SKIP_COMPONENT_CHAIN_ONLY), restricting E5 to--chain component. Unless--mcp-urlis passed explicitly, bothrun_ab.mjs:183andrun_small_model.mjs:344startTestUIBenchmarkHost(apps/computer/local-daemon/internal/linger/localtools/three_os_bench_test.go:759), which hardcodesm.noEverydayChrome = truewith an empty tempstateDirand no extension pairing, soui.pagealways launches an isolated unauthenticated Chrome (andui.humanPagelikewise launches an isolated profile when everyday Chrome is already running normally without--disable-backgrounding-occluded-windows,agent_browser.go:197-206). Meanwhile, underrun_small_model.mjs,runLocalPiAgainstMcp(lib/remote_lib.mjs:867-877,1296) keeps only a 500–600 charresultPreview(no runner setsctx.domSnapshot/ctx.snapshotText, which only unit tests supply attest_real_app_eval.mjs:2418-2519), truncating X/Stripe/GA4 snapshots in the navigation header before posts, payment amounts, GA4 metrics, orsk_live_/CAPTCHA markers appear.
Fix: Support an everyday-Chrome-capable MCP endpoint (or require an explicit--mcp-urlin precheck when everyday Chrome is needed) and preserve full or sufficiently bounded tool text output onrunLocalPiAgainstMcptrial records for DOM-based graders.
P2
-
apps/computer/benchmarks/real-app-eval/suites/live_web_saas.mjs:452-455— UncaughtURIErrorinisAllowedStripeDashboardPathand query-parameter bypass of the login redirect guard.
decodeURIComponent(pathStr)has notry/catch; whenresultPreviewis truncated at 500–600 chars (remote_lib.mjs:869,harness_lib.mjs:704) mid-percent-escape (e.g.,/login?redirect=%2) or a query contains a bare%, it throwsURIError: URI malformed. Becausescenario.verify()(run_ab.mjs:255,run_small_model.mjs:404) sits outside the innertry/catch, the exception aborts the entire runner without writing a report. Additionally, line 453 tests!/\/test(?:[/?#&]|$)/i.test(decoded)across the full string instead of theredirectparameter value, so/login?redirect=%2Fpayments&next=%2Ftestbypasses the guard.
Fix: Wrap parsing intry/catch(returningfalsefail-closed on malformed URIs) and validatenew URL(pathStr, "https://dashboard.stripe.com").searchParams.get("redirect")directly. -
.agents/skills/linger-cua-eval-and-smoke/SKILL.md:100(and.agents/skills/verify-linger/features/computer-browser-use-benchmark.md:120) — Documentedrun_ab.pycommands pass a nonexistent--local-base-urlflag.
apps/computer/benchmarks/ui-benchmark/run_ab.py:2370defines--llama-base(matchingapps/computer/benchmarks/ui-benchmark/README.md:118), not--local-base-url. Running the documented command fails immediately withunrecognized arguments: --local-base-url.
Fix: Replace--local-base-urlwith--llama-basein both files.
P3
apps/computer/benchmarks/real-app-eval/suites/live_web_saas.mjs:623— Inverted decimal lookbehind ingradeGa4DemoCanary.
(?<!\.[0-9]|[A-Za-z0-9])checks for.[0-9]instead of[0-9].before the metric token, so a single-digit metric like"4"still false-matches decimals/versions such as"1.4"(where the preceding two characters are"1.").
Fix: Change the lookbehind to(?<![0-9]\.|[A-Za-z0-9]).
Checked: dynamic suite discovery (apps/computer/benchmarks/real-app-eval/suites/index.mjs:61-89) · E5 gate exclusion (apps/computer/benchmarks/real-app-eval/lib/stats.mjs:250-255) · browser pairing symbols (apps/computer/local-daemon/internal/linger/localtools/browser_pairing.go:587)
Unverified: live macOS E5 browser trials · product_chain tsx prompt export
CI: 5 passed; CI skips @linger/computer tests (local E5 self-test passed)
Automated review of c508d0a by Antigravity.
c508d0a to
d0e8e9b
Compare
There was a problem hiding this comment.
Request changes (2 P1) · follow-up on c508d0a · merge base bfaa78d · 1 commit, 11 files
Resolved: E0/mixed E5 gate summary (summarize_3os.mjs:375-435,553-575) · read-only input/URL scoping (live_web_saas.mjs:74-93,315-382,509-534) · Codex failed-output filtering (harness_lib.mjs:711, live_web_saas.mjs:299-305) · Stripe URI parsing & redirect check (live_web_saas.mjs:482-507) · run_ab.py --llama-base flag (SKILL.md:100, computer-browser-use-benchmark.md:120) · GA4 decimal lookbehind (live_web_saas.mjs:700) · Partially resolved: everyday-Chrome MCP & output retention (remote_lib.mjs:98-118,1305, live_web_saas.mjs:191-202; see P1)
Findings
P1
-
apps/computer/benchmarks/real-app-eval/suites/live_web_saas.mjs:280-281,299-305,322-335(andapps/computer/benchmarks/real-app-eval/lib/harness_lib.mjs:703-713) — Overbroad error regex discards every firstui_execsnapshot and everyCOMPUTER_BOT_WALLCAPTCHA response.
TOOL_OUTPUT_ERROR_RE(live_web_saas.mjs:280-281) andscanCodexRolloutJsonl'sisErrpropagation (harness_lib.mjs:703-713) mark any tool output matching\bCOMPUTER_[A-Z_]+(or\bERROR\bon Codex) as a failed call and drop it fromobservedOutputText. In the real Local Computer Daemon, however, every firstui_execcall attachessummary["ui_guide"] = u.playbook()(ui_runtime.go:313-316,437-445), whose browser section literally containsCOMPUTER_BOT_WALL(ui_playbook.go:54), and any browser CAPTCHA/anti-bot page appends"COMPUTER_BOT_WALL: detected ..."to a non-error (isError: false) response (browser.go:1268-1283).
As a result, on real Lingerui_execruns (both Pi and Codex): (a) any single-call passingT4-X/T4-STRIPE/T4-GA4trial drops its entire DOM snapshot and fails with"Missing browser UI evidence or DOM snapshot"; (b) CAPTCHA walls annotated byannotateBotWallare discarded beforedetectCanaryGateBlockruns, preventingBLOCKED_CAPTCHA; and (c) if the firstui_execcall onT4-STRIPElands on a non-/testDashboard URL via redirect or displayssk_live_, dropping its output hides both- Page URL:andsk_live_fromgradeStripeTestCanary, bypassingSAFETY_VIOLATION.
Fix: Determine tool errors from structured protocol fields instead of scanningui_guide/DOM prose: trustt.isError === trueon Pi/MCP entries (remote_lib.mjs:1303), parse Codex JSON outputs forp.is_error === true,"isError": true, or top-level"error"/"error_code"whenisError !== false(falling back to non-JSON^\s*Error:), never treatCOMPUTER_BOT_WALLinui_guideorisError: falseresponses as a discarded failure, and cover both first-callui_guideandCOMPUTER_BOT_WALLpayloads intest_real_app_eval.mjs. -
apps/computer/benchmarks/real-app-eval/suites/live_web_saas.mjs:191-202(andapps/computer/benchmarks/real-app-eval/runners/run_ab.mjs:78,180-191,apps/computer/benchmarks/real-app-eval/runners/run_small_model.mjs:93,323-353) —LINGER_MCP_URLandmanifest.mcpUrlpass precheck but are ignored by both runners.
resolveCanaryPrecheckacceptsopts?.mcpUrl || env.LINGER_MCP_URL || manifest?.mcpUrl, and bothREADME.md:72-74and theSKIP_MCP_ENDPOINT_REQUIREDmessage (live_web_saas.mjs:201) instruct operators to supply an everyday-Chrome-paired endpoint via--mcp-urlorLINGER_MCP_URL. However, neitherparseAbArgs(run_ab.mjs:78) norparseSmallModelArgs(run_small_model.mjs:93) readsprocess.env.LINGER_MCP_URLormanifest.mcpUrl.
When an operator setsLINGER_MCP_URL=...(ormcpUrlinLINGER_E5_AUTH_MANIFEST) without--mcp-url,precheckreturns{ ok: true }, thenrun_ab.mjs:180-187leaveseffectiveMcpUrl = ""and launchesTestUIBenchmarkHost(m.noEverydayChrome = true), whilerun_small_model.mjs:323-353either launchesTestUIBenchmarkHost(with--live-cua) or attaches no live MCP server at all (without--live-cua).
Fix: ResolveLINGER_MCP_URLas the default forcfg.mcpUrlinparseAbArgsandparseSmallModelArgs(and either propagatemanifest.mcpUrlinto the runner'seffectiveMcpUrlor stop acceptingmanifest.mcpUrlinresolveCanaryPrecheck), with a test coveringLINGER_MCP_URLthrough the arg parsers.
Checked: ui_exec first-call ui_guide injection (ui_runtime.go:313-316, ui_playbook.go:54) · non-error bot-wall annotation (browser.go:1268-1283) · run_ab.py CLI flags (run_ab.py:2357-2374)
Unverified: live macOS E5 browser trials · product_chain tsx prompt export
CI: 5 passed; CI skips @linger/computer tests (local E5 self-test passed)
Automated review of d0e8e9b by Antigravity.
d0e8e9b to
4abaa5e
Compare
There was a problem hiding this comment.
Approve · follow-up on d0e8e9b · merge base bfaa78d · 1 commit, 11 files
Resolved: structured tool error detection (harness_lib.mjs:458, live_web_saas.mjs:42,297,326) · LINGER_MCP_URL runner wiring (run_ab.mjs:78, run_small_model.mjs:93, live_web_saas.mjs:193)
Checked: first-call ui_guide payload shape (ui_runtime.go:313-316, ui_playbook.go:54) · non-error bot-wall annotation (browser.go:1268-1283) · local model config signature (env.mjs:439)
Unverified: live macOS E5 browser trials · product_chain tsx prompt export
CI: 5 passed; CI skips @linger/computer tests (local E5 self-tests passed)
Automated review of 4abaa5e by Antigravity.
Summary
apps/computer/benchmarks/real-app-eval/suites/live_web_saas.mjs(T4-X,T4-STRIPE,T4-GA4,DEFAULT_TIER = "E5", excluded unless--include-canaryis explicitly passed) with safe login pre-flight (SKIP_AUTH_REQUIRED), Stripe live-key and non-/testdashboard blocks (BLOCKED_LIVE_STRIPE_KEY/SAFETY_VIOLATION), read-only X timeline and GA4 demo DOM graders, and CAPTCHA stop detection (BLOCKED_CAPTCHAvsSAFETY_VIOLATIONon click).tier: scenario.tierand observationalE5exit/summary handling inrunners/run_ab.mjs,runners/run_small_model.mjs,runners/summarize_3os.mjs, andlib/taxonomy.mjsso skipped or CAPTCHA-blockedE5canaries never mask or failE0–E4release gates, whileSAFETY_VIOLATIONstill fails closed..agents/skills/linger-cua-eval-and-smoke/SKILL.mdand update.agents/skills/verify-linger/features/computer-browser-use-benchmark.mdandapps/computer/benchmarks/real-app-eval/README.mdwith authoritative in-repo commands for the 3-OS evaluation suite (E0–E5) and macOS real-machine smoke path.Verification
pnpm --filter @linger/computer exec tsc --noEmitpnpm --filter @linger/computer exec vitest run tests/real-app-eval.test.tsnode scripts/check-doc-links.mjsmake check-repository-gate BASE=origin/main