Skip to content

docs(qa): three studio-authoring knownGaps quote the vitest invocation the ui guard accepts - #29317

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-28750-studio-knowngaps-vitest-cwd
Nov 2, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-28750-studio-knowngaps-vitest-cwd

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by 田騏 · project thread

Fixes #28750

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:平台测试清单 studio-authoring 区里三个条目(对象设计器往返、记录页往返、权限矩阵编辑器)的 knownGaps[0],把跑 jsdom 单测的命令改成 ui vitest 守卫接受的写法(cd ui && pnpm exec vitest run --maxWorkers=1 packages/PKG/src/FILE),并注明旧的 --filter 写法会被拒绝;每个条目 revision +1、追加一行 history。第四个条目(打包自动化锁定)本来就是被接受的写法,未改动。
  • 为什么改:旧命令在包目录里启动 vitest,守卫在加载配置时直接拒绝,一个测试都不跑。下一轮照着清单跑的人要么浪费时间找正确命令,要么把单测误记成 blocked(environment)。
  • 风险与回滚:只改 QA 清单 JSON 里的说明文字,不动产品代码、不进任何发布包,没有任何判据被放宽。回滚就是 revert 本 PR。
  • 先看:docs/qa/platform-checklist/areas/studio-authoring.json 中 permission-matrix-editor-ux 的 knownGaps[0] 与新 history 行(三处改动文字完全相同,看一处即可)。
  • 两分钟验证:仓库根运行 pnpm check:platform-checklist,预期最后一行以 check-platform-checklist: OK — 16 areas, 352 items 开头。
  • 需要你做的:无,席位落地。

What changes

docs/qa/platform-checklist/areas/studio-authoring.json only. Three of the card's four items quoted pnpm --filter @object-ui/PKG exec vitest run --maxWorkers=2 FILE for their jsdom unit pin. That command runs Vitest in the package directory, and ui/scripts/vitest-invocation-guard.mjs (called from ui/vitest.config.mts) refuses any run whose Vitest root is not ui/ (verdict package-cwd). Each of the three now carries, byte for byte, the sentence #28701 landed in studio-authoring.expression-editors knownGaps[1]: cd ui && pnpm exec vitest run --maxWorkers=1 packages/PKG/src/FILE, followed by the ⛔ note that the --filter form is refused and why.

# item · clause outcome
1 studio-authoring.object-designer-roundtrip fixtures.knownGaps[0] edited; revision 10 → 11, one history row
2 studio-authoring.record-page-roundtrip fixtures.knownGaps[0] edited; revision 11 → 12, one history row
3 studio-authoring.permission-matrix-editor-ux fixtures.knownGaps[0] edited; revision 7 → 8, one history row
4 studio-authoring.packaged-automation-studio-lock fixtures.knownGaps[1] not edited, no revision bump: it already quotes cd ui && pnpm exec vitest run --root . --maxWorkers=2 FILE, which the guard accepts (measured below)

Each new history row cites #28656 (ref) and #28750, and says the change is wording only with no clause changed. Main's history is an exact prefix of each edited item's history, and no field other than revision, history and the one knownGaps string changed in any item (checked against a parsed copy of HEAD before the merge of origin/main).

Tests

Docs only: no package source changes, so no build closure and no package test suite is owed. skip-changeset: the diff touches only docs/qa/platform-checklist/areas/studio-authoring.json, which no package ships.

The guard verdicts were measured two ways at this head:

  • evaluateVitestInvocation from ui/scripts/vitest-invocation-guard.mjs, called directly: the new form (cwd ui/) is accepted; item 4's --root . form (cwd ui/) is accepted; the old --filter form (cwd ui/packages/app-shell) is refused with package-cwd.
  • A real run of item 3's pin with the new form, under the verify lock: cd ui && pnpm exec vitest run --maxWorkers=1 packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.fieldBulk.test.tsx printed RUN v4.1.12 .../ui, Test Files 1 passed (1), Tests 3 passed (3), lock VERDICT command-exit 0. The control, pnpm --filter @object-ui/app-shell exec vitest run --maxWorkers=2 src/views/metadata-admin/PermissionMatrixEditor.fieldBulk.test.tsx, exited 1 with the guard's package-cwd refusal (vitest root ui/packages/app-shell).

Every pin file the four items name under ui/ exists at this head: PermissionMatrixEditor.fieldBulk.test.tsx, .readonly.test.tsx, .artifactTier.test.tsx, StudioDesignSurface.automationsReadOnly-11124.test.tsx, ui/e2e/live/studio-object-designer.spec.ts, ui/e2e/live/studio-editor.spec.ts.

Acceptance notes

  • Item 4 is left untouched because its command is an accepted form. Its explanatory sentence still says the pnpm --filter @object-ui/app-shell exec vitest run FILE form "misses the ui/ setup". The measured behaviour today is a refusal at config load (package-cwd), not a run with the wrong setup. The command a runner copies is correct, so this is wording only and is left for the seat to decide.
  • The landed sentence this PR mirrors starts its last clause with a lower-case "a ui/e2e/live spec" after a full stop. It is copied byte for byte so that the four knownGaps stay identical and greppable; not changed here.
  • meta-save-preconditions-and-draft-rows, multi-package-item-rows and save-door-runs-authoring-rules quote pnpm --filter PKG exec vitest run --maxWorkers=2 FILE in a verify. Their automated.ref files are all under packages/ (backend packages), not ui/, so the ui guard does not apply; not touched.

Verification

Gates (head bfd7def, after one merge of origin/main)

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 16 families at bfd7def6fb: 1 path, +12 / -9, under the 3000 human-merge line. Each ran with stdin from /dev/null, exit captured before any pipe:

  • node scripts/check-adr-links.mjs :: exit 0
  • node scripts/check-adr-links.mjs --self-test :: exit 0
  • node scripts/check-closing-keyword-parity.mjs :: exit 0
  • node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
  • node scripts/check-comment-mask-corpus.mjs :: exit 0
  • node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0, after turbo run build --filter=@objectstack/formula --filter=@objectstack/lint (lock VERDICT command-exit 0)
  • pnpm check:ci-filter-parity :: exit 0
  • pnpm check:cross-package-test-inputs :: exit 0
  • pnpm check:doc-authoring :: exit 0
  • pnpm check:driver-memory-census :: exit 0
  • pnpm check:gitlink-declared :: exit 0
  • pnpm check:nul-bytes :: exit 0
  • pnpm check:platform-checklist :: exit 0 (OK — 16 areas, 352 items)
  • pnpm check:refd-timer-probe :: exit 0
  • pnpm check:watch-hint-literal :: exit 0

--ran reconciliation: 16 derived, 16 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero: all 16 recorded an exit code).

🤖 Generated with Claude Code

…n the ui guard accepts

object-designer-roundtrip, record-page-roundtrip and permission-matrix-editor-ux
fixtures.knownGaps[0] quoted `pnpm --filter @object-ui/PKG exec vitest run FILE`,
which runs in the package directory and is refused by
ui/scripts/vitest-invocation-guard.mjs (package-cwd verdict). Each now carries
the wording expression-editors knownGaps[1] landed: cd ui && pnpm exec vitest
run --maxWorkers=1 packages/PKG/src/FILE, with the refused form named.
Each item takes revision +1 and one history row.

packaged-automation-studio-lock knownGaps[1] already quotes
cd ui && pnpm exec vitest run --root . ..., which the guard accepts, so it is
left untouched.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 2, 2026
@github-actions github-actions Bot added the size/s label Nov 2, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#2 · marchtian · session_017ihL2gLghEqeDKTbDTC7Zd

席位核对 — ACCEPT · domain:devx#2 · head bfd7def6fb99a4e7fbfbf11960acbe8f7078eb87 · 2026-11-02T11:53Z

Checked against GitHub and the PR head, not against the report (os-dev-report 6576281346 on #28750).

  • Shape: a draft to main with Fixes #28750 once, Clause-②: no and Metadata-protocol: none. It has no assignees and no reviewers. skip-changeset is correct, because only docs/qa/platform-checklist/areas/studio-authoring.json changes.
  • Path surface: one file (+12/−9). It is not governed and touches no contract face, so the seat reads it with CI and no second agent.
  • Card rules, read in the diff:
  • Gates:
    • pnpm check:platform-checklist exits 0.
    • The guard's own evaluateVitestInvocation accepts the new form and refuses the old one (package-cwd).
    • A real pin, PermissionMatrixEditor.fieldBulk.test.tsx, passes 3/3 with the new form and exits 1 with the old one.
    • dispatch-gates --commands lists 16 commands, all exit 0, and --ran reports 16/16.
    • The seat lands once every check on this head is green.
  • Accepted deviations: the card's fourth item, packaged-automation-studio-lock knownGaps[1], is left untouched with no revision bump. It already quotes cd ui && pnpm exec vitest run --root . …, and the guard accepts that form. Its reason sentence says the --filter form "misses the ui/ setup", where the guard actually refuses it before any test runs. A runner still copies a working command, so this is left as it is, with no card.
  • Out of scope: three other items quote pnpm --filter PKG exec vitest run in a verify step. Their tests live under packages/, not ui/, so the ui guard does not apply. Skills-docs: none — checklist text only.
  • Landing: non-governed. Once every check on this head is green, the seat marks the PR ready and enables auto-merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 2, 2026 11:54
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 2, 2026 11:54
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 448940f Nov 2, 2026
48 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-28750-studio-knowngaps-vitest-cwd branch November 2, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(qa): four studio-authoring knownGaps still quote the pnpm --filter @object-ui/PKG exec vitest run form the ui vitest guard refuses

1 participant