Skip to content

evals: retire 104 laundered unit tests from evals/specs, colocate 18 - #4402

Merged
benjaminshafii merged 6 commits into
devfrom
evals/spec-cleanup
Sep 4, 2026
Merged

benjaminshafii merged 6 commits into
devfrom
evals/spec-cleanup

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Why

#4398 added the spec boundary ratchet and grandfathered 116 legacy evals/specs files. This PR is the cleanup it promised. It also unbreaks test:eval-runner on dev: #4390 merged in parallel with a pure-function test in evals/specs, and the ratchet correctly rejects it.

What

Every one of the 116 baselined files was read and put in one of three buckets:

Bucket Count Rule
Delete 104 Regexes product source text (Tailwind classes, string literals); asserts on workflow / vercel.json / Dockerfile / package.json text; spawns bun test / node --test / vitest and grades its output; tests the testkit itself; or duplicates an existing colocated unit or .e2e.test.ts journey (named in the executor reports).
Move 18 Genuine pure-function tests with real branching → colocated under the module's own runner: 8 → apps/app/tests (bun), 5 → apps/server/src/** (bun), 2 → ee/apps/den-api/test, 1 → ee/apps/den-web/tests, 1 → apps/desktop/electron (node:test), 1 → scripts/release. Explicit "test" lists updated where the package uses one. @openwork/testkit imports, evidence fixtures, and evidence recording dropped.
Keep (baselined) 13 Observe a live boundary through a raw channel the ratchet does not recognise yet (denFetch, raw HTTP to a spawned server, TLS lab, kubectl). Untouched; tagged needs server() migration.

boundary-ratchet.baseline.json: 116 → 13. Net −9,173 lines.

Verification

  • pnpm --dir evals test — exit 0: 232 pass; spec-boundary-ratchet: 67 specs checked, 0 errors (169 before).
  • Each moved test run under its package runner: all pass (app 8 files, server 5, den-api 2 → suite 24/24, den-web 1 → suite 167/167, desktop 1, release 1).
  • Full package suites compared against clean origin/dev in a second worktree: app 7 fail / server 1 fail (node:sqlite under bun) / desktop 1 fail (runtime-ca) — identical on dev, none in moved files.
  • pnpm --dir evals run test:pr: 4 fails on first run were a fresh-worktree race (parallel den-db builds → ENOTEMPTY dist/drizzle); after a single prebuild 3/4 pass serially; thread-approvals-engine-memory (a KEEP file, untouched) times out identically on clean dev — pre-existing.
  • No new evals/specs files. This PR is deletions and relocations, so no journey spec verdict applies.

@vercel

vercel Bot commented Sep 4, 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 4, 2026 8:04am UTC
openwork-den Ready Ready Preview Sep 4, 2026 8:04am UTC
openwork-diagnostics Ready Ready Preview Sep 4, 2026 8:04am UTC
openwork-landing Ready Ready Preview, v0 Sep 4, 2026 8:04am UTC

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 4, 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 (17d55a0dd9ec33ea079be2f3c2140cec55337acc). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@vercel
vercel Bot temporarily deployed to Preview – openwork-app September 4, 2026 07:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 4, 2026 07:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 4, 2026 07:14 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 4, 2026 07:14 Inactive
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 4, 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 (149996fa999ee386dc55841f1f1dc69794728a57). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 4, 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 (f59474ca342a8a865e3e281400595d5b2d312098). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 4, 2026 07:52 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 4, 2026 07:52 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 4, 2026 07:52 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-app September 4, 2026 07:52 Inactive
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 4, 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 (cfe918cf15c0bfde9fba9da8bfa0dd4b3c7484c9). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

Every legacy evals/specs file flagged by the boundary ratchet was read and
classified. 104 are deleted: they regex product source text, assert on
workflow/config text, spawn another test runner and grade its output, or
duplicate an existing colocated unit or journey spec. 18 genuine
pure-function tests move next to their module under that package's own
runner (bun:test for app/server/den-api/den-web, node:test for desktop and
release scripts). 13 remain baselined: they observe a live boundary through
a raw channel and are tagged for server() migration.

Also moves dashboard-element-identity (merged in #4390 alongside the
ratchet) to den-web tests, which unbreaks test:eval-runner on dev.

boundary-ratchet.baseline.json: 116 -> 13.

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

@benjaminshafii
benjaminshafii merged commit e23e2f2 into dev Sep 4, 2026
35 checks passed
@benjaminshafii
benjaminshafii deleted the evals/spec-cleanup branch September 4, 2026 08:13
reachjalil added a commit that referenced this pull request Sep 4, 2026
evals/specs now only holds specs that cross a product boundary (#4398,
#4402). The den-web link → desktop parser → composer chip round trip is a
unit contract, so it moves beside chat-link-parse.test.ts as a bun test and
the boundary ratchet is clean again.
reachjalil added a commit that referenced this pull request Sep 4, 2026
evals/specs now only holds specs that cross a product boundary (#4398,
#4402). The den-web link → desktop parser → composer chip round trip is a
unit contract, so it moves beside chat-link-parse.test.ts as a bun test and
the boundary ratchet is clean again.
reachjalil added a commit that referenced this pull request Sep 6, 2026
evals/specs now only holds specs that cross a product boundary (#4398,
#4402). The den-web link → desktop parser → composer chip round trip is a
unit contract, so it moves beside chat-link-parse.test.ts as a bun test and
the boundary ratchet is clean again.

This branch was successfully deployed

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

2 participants