Skip to content

finding(tests): the last cwd-rooted test read is a Playwright spec, and its repair cannot be measured from a Vitest seat #9188

Description

@claude

Found while landing objectui#8953's gate (scripts/check-test-path-roots.mjs). ⛔ No assignee — PM triage.

The read

e2e/live/inline-edit-polish-2572.spec.ts:34

const state = JSON.parse(readFileSync('e2e/live/.auth/state.json', 'utf8'));

A bare relative path handed to readFileSync names no root, which is exactly how it gets the ambient one. It is the same class objectui#7799 repaired 13 instances of and objectui#8953 gated: the verdict depends on the directory the run was launched from, not on anything written in the file.

⭐ Note the spelling: there is no cwd token here for any text search to find. objectui#7799's census regex and a plain process.cwd grep both return zero on this line. It is in objectui#8953's KNOWN_CWD_ROOTED registry, which is ⛔ SHRINK-ONLY and pinned at a length of at most 1 — so this card is the only way that number goes to zero.

⚠️ Why objectui#8953 registered it instead of repairing it

The other three instances in the tree were repaired there and measured green under both cwds. This one was not, and the reason is that it cannot be measured from an execution seat:

  • it is a Playwright spec, not a Vitest test. It runs only in live-e2e.yml, against a real backend, so neither the defect nor the repair can be reproduced locally.
  • whether import.meta — which the landed repair spelling (objectui#7791 / PR objectui#7796, reused by PR objectui#7806) depends on — survives Playwright's own TypeScript transform is unmeasured here. ⛔ Shipping the repair unverified would be trading a measured hazard for an unmeasured one.

⇒ the repair needs a seat that can run the live lane, or a measurement of what import.meta.url evaluates to under Playwright's transform in this repository.

What this is NOT

⛔ Not a request to loosen the gate, and ⛔ not a request to widen KNOWN_CWD_ROOTED. Either would be the false-green direction. The registry entry carries the reason; this card carries the repair.

Related

objectui#8953 (the gate) · objectui#7799 / PR objectui#7806 (the 13) · objectui#7791 / PR objectui#7796 (the landed spelling) · objectui#7807 (the other registered entry, a different and deliberate cwd read)


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:devxobjectui devx stream: fix lands on .github/, scripts/ or release pipeline — devx lane cross-repofindingpriority:p3tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions