Repository navigation
ci(filter): start the ui jobs on a diff confined to an ADR a ui test reads - #38124
Conversation
…reads The ui paths filter now names docs/adr/0084, which studioMenuPlacement.test.ts reads, and check:ci-filter-parity gains a fifth subject that derives the root docs/adr reads of every tracked ui test through the shared path walker and holds the ui list to them both ways. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW
|
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW Final green head for L1 · 2026-11-28T03:25Z · Head-sha
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 3402071 · 2026-11-28T03:27Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Read for this record: card #37935 (body and its three comments, the dev report 7232776944 included), PR #38124 (body, file list, both comments), the net diff against merge base ① Derived judgments
② Semver levelClause-②: no. The diff publishes nothing: a workflow file and a root ③ Boundary flags
④ Design judgment
S1 (should-fix) — the collector takes the walker's S2 (should-fix) — the leftover direction prescribes deletion from a population the gate cannot fully see, and the header does not say so. The population is the source of tracked ui TEST files only; a read that sits in a module a test imports is outside it (the ui selector follows that closure, this gate does not), as is any read the walker cannot name. When a pin's read moves to such a place, the gate reports the still-needed row as "no ui test reads any more" and says "Delete them"; following that reopens the card's hole with the gate green. The earlier subjects derive their leftover direction from exact declarations; this one derives it from a bounded source scan, so its text needs the caveat. Fix: name the imported-module bound among the header's known bounds, and reword the leftover text so that it asks for the reader to be confirmed gone before the row is deleted (or follow the relative-import closure, as the selector does). Nits, no effect on correctness or the contract:
S1 and S2 are open on this head. Neither touches the governed file; the fix moves the head and earns a delta review of Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): REWORK at head Review summaryTier. The diff is governed, and Tier S by content under ruling 6722205630 C, as Contract review. I adopt record 7233195836, PASS at the contract tier ( The The parity script pins today's filter against the real Must fix before landing: two graded should-fix findings, both in the implementing gate
Nits, optional:
The body's maintainer note and the claim still say Tier H. Align them with the content reading. Next: fix S1 and S2. Then a delta contract-tier record on the parity script alone, a delta L1, and the seat for the contract-review landing. |
… say check-then-delete uiRootReadsOf took the walker's bound names as file reads, so a directory bound to a name and then listed came back as a FILE row that a literal directory row "covered" while matching no changed file. Each candidate now counts only as what it is on disk, the filter the walker's own consumer applies; a name on no disk is a synthetic fixture path. The leftover direction names its bound (a read inside an imported module is unseen) and says check, then delete. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxRDKprCtjpEdtiPFW
|
repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW Final green head for delta L1 · 2026-11-28T04:24Z · Head-sha
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · bd4c321 · 2026-11-28T04:25Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta record. It follows record 7233195836 (PASS at S1 (should-fix): closed S2 (should-fix): closed ① Derived judgments
② Semver levelClause-②: no. Unchanged: a workflow file and a root ③ Boundary flags
④ Design judgment
Nits, no effect on correctness or the contract:
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT (delta) at head Review summaryShape and gates.
Delta read against the REWORK.
Nit, optional. A path a ui test spells that names nothing on disk now counts as no read. This is pinned and stated in the jsdoc. The consequence: a test whose ADR was renamed away shows its row as a leftover, not as a hole, while the test itself fails on the missing file. N1 stays a stated bound. Next: governed Tier S, so it goes to seat 1 for landing on this record and this verdict. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T04:29Z · PR #38124 (Fixes #37935) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang: the ci.yml ui paths filter now starts the ui jobs on a diff confined to an ADR that a ui test reads, and a new
Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked. |
Requested by Elon · project thread
Fixes #37935
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
.github/workflows/ci.yml, thefilterjob'sui:list gains one row:docs/adr/0084-application-builder-information-architecture.md.ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts(Test UI) reads that ADR from the rootdocs/adr/and pins its type-to-group table to the Studio menu code. Before this row a diff confined to the ADR setui=falseandui_consumers=false, so no ui job started.scripts/check-ci-filter-parity.mjsgains a fifth subject (the card's "pin it the way ci.yml filter job:.github/actions/**and.nvmrcmatch no paths filter, so a diff confined to them starts no gated job; plus two comment precisions from #27619's contract review #27673 did").uiRootReadsOfreads every trackedui/**test file throughscanPathExpressions, the path walker thatcheck:cross-package-test-inputsandui/scripts/select-affected-tests.mjsalready use, so the gate adds no recognizer of its own and keeps no list. It collects each read under the rootdocs/adr/, andjudgeUiReadschecks two things:test-uijob'sif:ORs. The lists are read back from theif:, which must nameui;ui_consumerscounts too.ui:row underdocs/adr/still has a ui test that reads it. A row with no reader is reported as a leftover, and the failure text says check, then delete: the walker reads each test file's own text, so a read made inside a module the test imports is not seen. The header names that bound.Each read counts only as what it is on disk, the same real-file / real-directory filter
check:cross-package-test-inputsapplies to the walker's answer. The walker puts every bound name in its file set, so a bound-then-listed directory read is classified as a directory (covered bydocs/adr/**, not by a literaldocs/adrrow). A spelled path that names nothing on disk is a synthetic fixture path, not a read.There are five refusals: no tracked ui test, no
test-uijob,uigone from thatif:, reads not supplied, reads refused. Self-test battery (12) has 20 cases at a floor of 16. The roster floor goes from 10 to 11.Merge group, measured from ci.yml. On
merge_grouptheuioutput comes from the queue diff (merge_group.base_shaagainst the head), through the sameui:list (see the comment above theui:output). The filter step runs on merge_group withcontinue-on-error, and on failure|| 'true'runs everything. So the new row starts the ui jobs for an ADR-0084-only entry in the queue too. Before this PR they were skipped there, as they were on the PR.Which ui tests a docs/adr-only diff can turn red (measured, tree 3402071). I ran the walker over all 7253 tracked ui test files. Exactly one read lands under the root
docs/adr/: ADR-0084, read bystudioMenuPlacement.test.ts. The other files the card names resolve elsewhere:product-neutral-renderer.ratchet.test.tsreadsui/docs/adr/0060-product-neutral-renderer.md. Its root isui/, soui/**already covers it.ui/scripts/__tests__/check-doc-*.test.tsread the ui tree's owndocs/adr/(rootui/) or temp fixtures.check-governed-queue-guard.test.tsandselect-type-check-scope.test.tsonly carrydocs/adr/...as string fixtures.Trade-off and choice. I named the file verbatim rather than adding
docs/adr/**. With a subtree row, every ADR edit would start the whole ui battery (five jobs, 16 Test UI shards) for the one ADR a ui test reads. With the verbatim row, a new ui test reading another root ADR goes red incheck:ci-filter-parityand names the row to add. The gate also acceptsdocs/adr/**, if a ruling ever prefers it.Once Test UI starts, the selector runs the pin (measured).
selectAffectedTests({ changed: [], outside: ['docs/adr/0084-…'] })returns modeaffectedwith 525 always-on files.studioMenuPlacement.test.tsis one of them because its disk read resolves outside every workspace package.Tests
check-ci-filter-parity: self-test and real tree (head bd4c321)
The real-tree rollback case removes the new ci.yml row.
judgeUiReadsthen reports exactly ADR-0084, andmain()returns 1. That red-then-green proof runs on the real file inside the self-test.Ablation of the classification: restoring the old name-set rule in
uiRootReadsOfon disk turns the self-test red, 2 of 161 (the bound-then-listed read comes back as afilerow, the not-on-disk path as a read); with the fix restored it is green again.Acceptance notes
Same family, not fixed here (reported to the seat for a family card). The same walker finds other reads outside
ui/that no ui list covers:CONTRIBUTING.md(ui/scripts/__tests__/quick-reference-commands-4149.test.ts)packages/plugins/plugin-auth/src/admin-import-users.ts(identityImportFields.endpointColumns-34536.test.ts)packages/mcp/src/skill-md(the Console'sobjectstack-skill.test.ts). ci.yml already records this one as a deliberate trade-off.scripts/ci-shard-matrix.mjs(ui selector and plan tests)Fixture strings also show up (
elsewhere/x.js,scripts/helper.mjs,tools/helper.mjs). Each real gap is a scheduling trade-off, not a missing row, so the new subject is scoped todocs/adras ruled. Its header states that bound.Ledger blind spot (reported).
ui/scripts/markdown-test-inputs.mjsderiveCandidates()accepts a read outsideui/only undercontent/docs. SostudioMenuPlacement.test.ts's ADR read is not in its adjudicated ledger, and that audit cannot see it. That file is outside this card's file surface.Cost (advisory, shared box).
node scripts/check-ci-filter-parity.mjswent from about 0.31 s to about 1.5 s, 3 runs each, because the gate now reads 7253 ui test files. It runs insideLint & Repo Gates. No ui job median changes, since only ADR-0084-only diffs start ui jobs that did not start before.Verification
Read first:
scripts/check-ci-filter-parity.mjs,judgeUiReads: the whole-name match ofuiin thetest-uiif:(uiis a prefix ofui_consumersandui_tree) and the leftover rule.scripts/check-ci-filter-parity.mjs,uiRootReadsOf: the walker call with no package name, and the bound this puts on manifest-namefindUpreads..github/workflows/ci.yml, the newui:row and its comment, and the line naming this class of row in the comment above theui:list.Tier: S by content (ruling 6722205630, letter C), not H.
Two-minute check: run
node scripts/check-ci-filter-parity.mjs --list | tail -3. You should seeok docs/adr/0084-application-builder-information-architecture.md via literal … (ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts). Then delete the row from ci.yml, re-run, and the gate exits 1 naming ADR-0084.Generated by Claude Code