Repository navigation
Conversation
…iagnostics `pnpm --dir evals typecheck` was red on clean dev with 399 errors, 322 of them in apps/, ee/ and packages/ sources that specs and worlds pull in transitively: den-db is written for bundler resolution (extensionless re-exports), email templates need jsx, and apps/server enums/namespaces reject evals' erasable syntax flags. Those projects compile themselves with their own tsconfigs. Adopt module: preserve + moduleResolution: bundler (the resolution vitest actually uses, and what tsconfig.primitives.json already does), lib es2024 for Promise.withResolvers, customConditions development so @openwork/sdk resolves to source instead of an unbuilt dist/, and the @/ alias for apps/app imports. Then report only diagnostics for files under evals/ or explicitly included, the same way check:browser already scopes its claim. Nothing inside evals/ is silenced: the remaining 43 errors are real spec-vs-testkit drift.
The locator already matched [role="combobox"] and [role="listbox"] candidates
and resolved a <select> to combobox, but TargetRole never listed them, so
desktop-policy-restricted-mode's { role: "combobox" } targets failed to type.
connector-catalog asserts notSee({ role: "alert" }) against the catalog's
<p role="alert"> error line; alert was neither in the type nor in the candidate
selector, so that absence claim could never observe an alert. Add all three to
the type and alert to the candidates so the claim is real.
seed.desktop({ den }) always yields an App (signed in against that Den, with a
workspaceId), but the single signature returned App | DesktopHandle, so every
world.member.workspaceId read failed to type. Add the den overload to the Seed
contract and its SeedChannel implementation.
Annotate the combobox target as Target so its role literal is not widened to
string, and test the rejection regex against probe.text() instead of passing a
RegExp to probe.has(): the RegExp was serialized to {} on the way into the
browser, so the fallback branch for a rejected unadvertised call always
returned false.
…l-key-upsert
The default value narrowed auth to { "x-api-key": string }, rejecting the
reader-session and If-Match header sets the spec already passes at runtime.
…nnector-parity createPlugin and desktopReadiness are function declarations, so the if-throw narrowing on marketplace and plugin does not reach them. Read the ids once after the guards and use those.
The eventually probe returned string | undefined, so the settled value could not be recorded as assertion evidence. An absent #product now reads as "", which the until predicate still rejects.
…er-hot-inject server is a let that is cleared in cleanup, so its narrowing does not reach the eventually probe closure. Capture the started server once and drop the optional chaining that made baseline possibly undefined.
…y-thread The background world is built on builtinBrowserWorld, which never exposed readBrowserState; the same read is probe.browserState() and the test already holds probe.
…n connection-action-mcp-app typeof checks narrow unknown to object, not Record<string, unknown>; use the world's type guard the spec already imports from.
…arch-intent typeof checks narrow unknown to object, not Record<string, unknown>; add the usual isRecord guard and derive record() from it.
EventuallyOptions takes within, not timeoutMs; the unknown key left the deadline NaN, so the route wait never timed out.
…per in remote-session-first-use Function declarations do not see the if-throw narrowing, so orgId reached queryDenDatabase as unknown.
enterprise-tls-chain-repair and worlds/infra.ts import apps/desktop/electron modules that ship as .mjs; without allowJs they were implicit any (TS7016). tsconfig.primitives.json already enables allowJs for the same reason.
A getter whose body only throws infers void; annotate the guardedDen fixture getters with the DenRef, DenSession and MockMcpHandle types the Den contract expects.
…n litellm.test Symbol.asyncDispose returns PromiseLike<void>, which assert.rejects does not accept directly; await it inside an async block.
pnpm --dir evals typecheck is green on this branch; run it as its own step so a spec that drifts from the testkit API fails by name instead of only at runtime.
…s list Since #4693 the Connectors page shows configured connections as an icon strip and the connection rows (Connect, more menu, Test tools) live at /dashboard/mcp-connections/configured, so tool-tester-page timed out on its first claim on clean dev. Start the admin browser where the rows are.
Conflicts: - evals/packages/cdp/src/input.ts: TargetRole is the union of both sides (dev added alert; this branch added combobox, listbox, alert). - evals/specs/browser-tabs-owned-by-thread.e2e.test.ts: take dev's suspend control assertions after release_tab; dev already reads browser state through probe.browserState(), which subsumes this branch's fix. Post-merge typecheck (15 new errors from PRs merged since the base), fixed to the current testkit API without any/casts and without dropping a claim: - connector-search-intent: annotate the invoke table (TS7022 cycle through the flow-narrowed token). - den-connector-catalog uses role "heading": the locator now knows heading (h1-h6 implicit role, candidates only when that role is requested). - helpers/member-grant-fixture: typed grants accumulator (also fixes the downstream implicit any in scim-deprovisioned-sso-reprovision). - library-mcp-servers-from-config: browserScript callback instead of a raw code string with a non-existent args option. - new-task-draft-return: keep both draft comparisons as separate booleans. - route-session-list: RouteWorkspace literal gains the required preset. - worlds/saved-apps + labs mock-mcp: MockMcpTool.result declares the structuredContent and _meta the mock already serves verbatim. Signed-off-by: Guillaume Loret <[email protected]>
Signed-off-by: Guillaume Loret <[email protected]>
Split of #4828: this branch keeps the evals-only typecheck fixes (tsconfig, evals-scoped diagnostics, spec/testkit drift) and drops the 3-line `Typecheck evals` step in .github/workflows/ci-tests.yml so Warden can self-clear it. The CI step follows in a stacked PR that needs a human review. Signed-off-by: Guillaume Loret <[email protected]>
… step The typecheck fixes now live in #4899 (self-clearable by Warden). This branch keeps only the `Typecheck evals` step in .github/workflows/ci-tests.yml and the README sentence that says CI runs it; the tree is unchanged. Signed-off-by: Guillaume Loret <[email protected]>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This was referenced Sep 11, 2026
Closed
Closed
…erge) Signed-off-by: Guillaume Loret <[email protected]>
Contributor
Warden review summary — ClearNative 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 (13390 ms), confidentiality-review (4452 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
Contributor
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remainder to review (head
be27ef308, +5/−2 in 2 files): oneTypecheck evalsstep (pnpm evals:typecheck, 3 lines) in thetest-frameworkjob of.github/workflows/ci-tests.yml, plus theevals/README.mdsentence saying CI runs it; everything else from #4828 already landed ondevvia #4899 (f31e9b839), and the branch was resynced with one signed--no-ffmerge oforigin/devso the diff is now exactly this.What is left here (needs one human approving review)
Two files, five lines:
.github/workflows/ci-tests.yml: oneTypecheck evalsstep (pnpm evals:typecheck) in the existingtest-frameworkjob of the extended lane, afterRun test-framework checks, sameif:guard. No new workflow, no new job, no secrets.evals/README.md: the sentence saying CI runs the check.Why it is worth an approval
pnpm evals:typecheckwas red for months because nothing ran it; #4899 makes it green, and without this step it will silently go red again the first time a spec drifts from the testkit. This step is the regression guard. It runs in the extended lane only (same job aspnpm test:eval-runner), so it cannot block a docs-only or model-snapshot-only PR.Warden never self-clears a PR touching
.github/(warden-clearance.yml:100-107), so this needs @benjaminshafii or another human approver. Merge order: #4899 first, then this (GitHub retargets it todevwhen #4899's branch is deleted; the step'spnpm evals:typecheckscript only passes with #4899's fixes in the tree).Head after the split:
354e31f6c(a-s oursmerge of #4899's branch; tree unchanged, no history rewritten).Original description (pre-split, evidence refers to heads 0672c27 / a1c5e53 / 1356685)
Root cause
pnpm --dir evals typecheckwas red on cleandevwith 399 errors and no CI job ran it (evals/README.mddocumented the red). Session AD's diagnosis (reports/e2e-red-2026-09-09/flake-recheck.md§B, E2E fix AD) found three independent causes:moduleResolution: nodenext, butworlds/infra.tsimportsee/apps/den-api/src/mcp/remote-session-capabilities.js, which pulls in@openwork-ee/den-db(written forBundlerresolution, extensionless re-exports) andpackages/email.tsxtemplates withoutjsx.erasableSyntaxOnly/verbatimModuleSyntax/ missingbun+vite/clienttypes applied toapps/serverandapps/appsources that specs import transitively. Those projects compile themselves with their own tsconfigs.evals/.What changed
Config (1 commit,
11daadc64) –evals/tsconfig.jsonadoptsmodule: preserve+moduleResolution: bundler(what Vitest uses, and whattsconfig.primitives.jsonalready did),lib: es2024(Promise.withResolvers),customConditions: ["development"](@openwork/sdkresolves to source, not an unbuiltdist/),jsx,resolveJsonModule, the@/*alias. Newevals/scripts/typecheck.mjsreports only diagnostics for files underevals/or explicitly included by the config – the same scopingcheck:browseralready applies. Nothing insideevals/is filtered (43 → 43 before the drift fixes).pnpm evals:typechecknow delegates to it. A later commit (2112ae56f) addsallowJsso twoapps/desktop/electron/*.mjsimports are typed from their JS instead of implicitany.Testkit restorations (2 commits) – where the spec was right and the testkit was narrower than its own runtime:
6438d49b7TargetRolegainscombobox | listbox | alert. The locator already matched[role="combobox"]/[role="listbox"]candidates and resolved<select>to combobox.connector-catalogassertsnotSee({ role: "alert" })againstconnector-catalog.tsx's<p role="alert">error line, butalertwas in neither the type nor the candidate selector, so that absence claim was vacuous; it now really looks for alerts.47ed2e139Seed.desktop({ den })overload returnsApp(it always does at runtime), soworld.member.workspaceIdtypes.Spec drift (12 commits, one spec each) – each fixes the spec to the testkit's current API; no claim removed, no
any/casts:desktop-policy-restricted-modeTargetannotation; regex tested againstprobe.text()instead of passing a RegExp toprobe.has()(it was serialized to{}in the browser, so the "rejected unadvertised call" fallback always returnedfalse)tool-tester-pagetimeoutMs→within(unknown key left the deadlineNaN, so the route wait never timed out)connector-catalogalertcandidate above makes itsnotSeeobservablemcp-connection-external-key-upsertauth: Record<string, string>parameter typeplugin-mcp-connector-parity,remote-session-first-useif-throw-narrowed ids into hoistedfunctionhelperslanding-pricing?? ""so the settled value is astring(untilstill requires the text)opencode-v2-provider-hot-injectserver?.in the probe closurebrowser-tabs-owned-by-threadworld.readBrowserState()(never existed on that world) →probe.browserState()connection-action-mcp-app,connector-search-intentisRecordtype guard instead oftypeofnarrowing toobjectpackages/testkit/test/testkit.test.tsDenRef,DenSession,MockMcpHandle)packages/env/test/litellm.test.tsasyncDisposePromiseLikeinsideassert.rejectsTool Tester world (
a1c5e537b) –toolTesterWorldstarts on/dashboard/mcp-connections/configured: since #4693 (440504bb9, after the last green dev lane) the Connectors page shows configured connections as an icon strip and the rows the spec drives (Connect, more menu, Test tools) live on the configured list, sotool-tester-pagetimed out on its first claim on clean dev (control below). One-line route fix, no claim changed.Docs + CI –
evals/README.mddocuments the check and its scope;ci-tests.ymlgets oneTypecheck evalsstep (pnpm evals:typecheck) in the existing test-framework job. No new workflow file.Proof (at
0672c2776, final heada1c5e537b)pnpm --dir evals typecheck→Type-checked 372 evals source files: no errors.exit 0 (baseline at2ed12f72d= origin/dev: exit 2, 399 errors; after config only: 43, all insideevals/).pnpm --dir evals check:browser→Checked 838 browser callbacks…exit 0 (it shares the tsconfig).node --test runner/*.test.ts packages/*/test/*.test.ts bin/*.test.mjs scripts/*.test.mjs→ 309 tests, 308 pass, 1 fail:packages/labs/test/mock-google.test.ts"mock Google attributes drafts to one mailbox…" – fails identically on clean origin/dev @ 2ed12f7 (controlled in a detached worktree).pnpm --dir evals testas a whole is red on clean dev independently of this PR:lint:layersexits 39 with 39specs-use-testkit-onlyviolations,spec-channel-ratchetandspec-boundary-ratchetboth fail – all identical on origin/dev @ 2ed12f7 (diffed). Not touched here; see "Noticed".OPENWORK_EVAL_REF=0672c2776…(sandbox log showsHEAD is now at 0672c277):connector-catalog0672c2776alertlocator candidate vianotSee({ role: "alert" })tool-tester-page0672c2776see(connection.name)on/dashboard/mcp-connections) – before the changed lineorigin/dev @ 2ed12f72dfails identically → pre-existing since #4693tool-tester-pagea1c5e537bwithin: 60_000route wait now runsdesktop-policy-restricted-modea1c5e537bpress("Escape")not dismissing the Library add dialog (notSee({ role: "textbox", label: "App name" })at line 108,notSee({ testId: "library-add-choices" })at line 876) – this is triage Cluster 6 / Brief G (#4645 Library add flow), owned by the siblinge2e/library-restricted-mode-driftbranch (3086f1315 fix(app): hide the Dialog popup synchronously on dismiss). Test 2 "POLICY-ROLLBACK" fails in its world withwhich opencode2on the runner host (this Mac has noopencode2; that world shims local binaries) – environment, not product. My changed line (1172, the rejection-regex fallback) is inside test 4 after line 876 and was not reached; it will be exercised once Brief G lands.All sandboxes my runs created (
openwork-server-*,openwork-connector-*with runner PIDs 26570, 60889, 96490, 50824) were deleted by the runner;daytona sandbox listshows none left.Remaining typecheck errors
None. The 36 cause-2 errors in
apps/app/apps/serversources are no longer reported by this check (they belong to those projects' own typechecks); they are unchanged in number and listed in AD's report.Noticed, not touched
pnpm --dir evals test(test:eval-runnerin CI) is red ondev:lint:layers(39 violations across 24 specs importing@openwork/{behaviors,cdp,hosts,env,test-evidence}directly), both ratchets (stale baselines and new-layer specs with raw channel escapes), andmock-google.test.ts(draft witness returns extradraftId/messageId/mimefields the assertion does not expect). CI'sRun test-framework checksstep must be failing on dev today.eventually'suntilcannot narrow ((value: T) => boolean); a type-predicate overload would remove the?? ""style fixes in specs.desktop-policy-restricted-modetest 2 (POLICY-ROLLBACK) requiresopencodeandopencode2on the driver host PATH (worlds/desktop-policies.ts:64); on a Mac withoutopencode2the whole test fails in world setup before any claim. It should declare that inneeds()so it skips loudly.v0.210.0vsv0.213.0), as AD noted.Recreated from #4828, which GitHub auto-closed when its stacked base branch was deleted after the base PR merged. Same head branch (
e2e/evals-typecheck-green), same commits; base is nowdev. Reviewers: see the original thread on #4828 for context and Warden discussion.