Skip to content

ci(filter): start the ui jobs on a diff confined to an ADR a ui test reads - #38124

Merged
os-zhuang merged 2 commits into
mainfrom
claude/issue-37935-ci-ui-filter-adr
Nov 28, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/issue-37935-ci-ui-filter-adr

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread
Fixes #37935

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改 CI 的触发清单与一个仓内门禁,产品行为前后不变。
  • 为什么做:Studio 菜单分组的设计记录与菜单代码之间有一条对齐测试,只改那份设计记录的 PR 以前不会跑这条测试,红灯会落到下一位作者头上。
  • 出错会怎样:最坏情况是只改那份设计记录的 PR 多跑一轮界面测试,或门禁误报一次;直接撤回本 PR 即可恢复原状。
  • 要你做什么:无;按改动内容判定属可自动合并的档位,席位复核通过后自动合并。

What changes

  • .github/workflows/ci.yml, the filter job's ui: 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 root docs/adr/ and pins its type-to-group table to the Studio menu code. Before this row a diff confined to the ADR set ui=false and ui_consumers=false, so no ui job started.

  • scripts/check-ci-filter-parity.mjs gains a fifth subject (the card's "pin it the way ci.yml filter job: .github/actions/** and .nvmrc match no paths filter, so a diff confined to them starts no gated job; plus two comment precisions from #27619's contract review #27673 did"). uiRootReadsOf reads every tracked ui/** test file through scanPathExpressions, the path walker that check:cross-package-test-inputs and ui/scripts/select-affected-tests.mjs already use, so the gate adds no recognizer of its own and keeps no list. It collects each read under the root docs/adr/, and judgeUiReads checks two things:

    • every such read is covered by a list that the test-ui job's if: ORs. The lists are read back from the if:, which must name ui; ui_consumers counts too.
    • every ui: row under docs/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-inputs applies 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 by docs/adr/**, not by a literal docs/adr row). 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-ui job, ui gone from that if:, 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_group the ui output comes from the queue diff (merge_group.base_sha against the head), through the same ui: list (see the comment above the ui: output). The filter step runs on merge_group with continue-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 by studioMenuPlacement.test.ts. The other files the card names resolve elsewhere:

  • product-neutral-renderer.ratchet.test.ts reads ui/docs/adr/0060-product-neutral-renderer.md. Its root is ui/, so ui/** already covers it.
  • ui/scripts/__tests__/check-doc-*.test.ts read the ui tree's own docs/adr/ (root ui/) or temp fixtures.
  • check-governed-queue-guard.test.ts and select-type-check-scope.test.ts only carry docs/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 in check:ci-filter-parity and names the row to add. The gate also accepts docs/adr/**, if a ruling ever prefers it.

Once Test UI starts, the selector runs the pin (measured). selectAffectedTests({ changed: [], outside: ['docs/adr/0084-…'] }) returns mode affected with 525 always-on files. studioMenuPlacement.test.ts is one of them because its disk read resolves outside every workspace package.

Tests

check-ci-filter-parity: self-test and real tree (head bd4c321)
$ node scripts/check-ci-filter-parity.mjs --self-test   EXIT=0
✓ check-ci-filter-parity --self-test: 161 assertions — … and Test UI's root ADR reads: a ui test's ADR read found through the shared walker and observed red by path, covered verbatim, by its subtree and by `ui_consumers`, a directory read needing its subtree, a bound-then-listed directory classified as one, a path not on disk read as nothing, a wildcard row covering nothing, a reader-less row reported as a leftover, five refusals, and the checked-in tree green with the #37935 row dropped observed red through the report path.

$ node scripts/check-ci-filter-parity.mjs   EXIT=0
OK: all 1 path(s) under docs/adr read by the 7253 tracked ui test file(s) are covered by `ui` or `ui_consumers`, which the `test-ui` job's `if:` reads, and every `ui` row under those roots still has a reader.

The real-tree rollback case removes the new ci.yml row. judgeUiReads then reports exactly ADR-0084, and main() 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 uiRootReadsOf on disk turns the self-test red, 2 of 161 (the bound-then-listed read comes back as a file row, 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's objectstack-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 to docs/adr as ruled. Its header states that bound.

  • Ledger blind spot (reported). ui/scripts/markdown-test-inputs.mjs deriveCandidates() accepts a read outside ui/ only under content/docs. So studioMenuPlacement.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.mjs went from about 0.31 s to about 1.5 s, 3 runs each, because the gate now reads 7253 ui test files. It runs inside Lint & Repo Gates. No ui job median changes, since only ADR-0084-only diffs start ui jobs that did not start before.

Verification

Read first:

  1. scripts/check-ci-filter-parity.mjs, judgeUiReads: the whole-name match of ui in the test-ui if: (ui is a prefix of ui_consumers and ui_tree) and the leftover rule.
  2. scripts/check-ci-filter-parity.mjs, uiRootReadsOf: the walker call with no package name, and the bound this puts on manifest-name findUp reads.
  3. .github/workflows/ci.yml, the new ui: row and its comment, and the line naming this class of row in the comment above the ui: 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 see ok 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

…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
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 28, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW

Final green head for L1 · 2026-11-28T03:25Z · Head-sha 3402071c314c3161fe6be8204dc73df7c313655a

  • l1-face.mjs --pr 38124 is CLEAN. Across all checks: 36 succeeded, 14 were expected skips, 0 failed, 0 pending.
  • check-governed-merges --pr 38124 reads GOVERNED, Tier S by content (ruling record 6722205630, letter C): .github/workflows/ci.yml hits .github/workflows/**; scripts/check-ci-filter-parity.mjs is not on the register. So after L1 the seat lands it on a ## Contract review PASS record for this head; the area does not.
  • +325/-9 (334 lines, under 3,000). L1 goes to the L1-a thread. The os-dev report is review follow-ups of PR #37927: ci.yml ui filter misses docs/adr/0084, which studioMenuPlacement.test.ts reads #37935 comment 7232776944.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 3402071 · 2026-11-28T03:27Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3402071c314c3161fe6be8204dc73df7c313655a
Local-runs: none
Scope: .github/workflows/ci.yml + scripts/check-ci-filter-parity.mjs

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 93fa9118a3dc61473890eafc6bb170a6fc1c3042 (2 files, +325 / -9), and the check-runs on the head. Code outside the diff was read at the head, never reviewed: .github/workflows/lint.yml, scripts/ci/lane-verdict.mjs, scripts/check-cross-package-test-inputs.mjs, ui/scripts/select-affected-tests.mjs, and the ui test files that mention docs/adr. origin/main (32dc5d8db5) has not moved ci.yml, the parity script or the walker since the merge base.

① Derived judgments

  • The ci.yml hunk, the only one (+12 / -0, lines 772 to 783 at the head). Eleven comment lines and one row, docs/adr/0084-application-builder-information-architecture.md, appended to the ui: list inside the filter job's with.filters string. Nothing is removed and no other line of the file moves. RIGHT.
  • Which jobs run on which paths. The paths-filter step carries no quantifier option, so a list matches when any row matches; an added literal row can only turn ui from false to true, and only for a diff that touches that one file. Every reader of needs.filter.outputs.ui in ci.yml was read: ui-deps, type-check-ui, test-ui-plan, test-ui, lint-ui, build-e2e-ui, live-e2e-ui and ui-published-artifacts all spell it != 'false' as a reason to START, and test-ui-gate reads it only to explain a skip. No reader treats ui == true as a reason to skip or to narrow. So the hunk is monotone in the restrictive direction: no job can skip, on any diff, that ran before. The permissive direction is closed for this hunk. RIGHT.
  • What newly runs. A diff confined to ADR-0084 now starts the five ui jobs plus ui-deps and the plan, on pull_request and, since the ui output reads the queue diff through the same list, on merge_group. On schedule / workflow_dispatch nothing changes (the step is skipped and the fallback already runs everything). The stated cost, the whole ui battery for an ADR-0084-only edit, is the trade the body names. RIGHT.
  • Does the started job run the pin. Read, not run: test-ui-plan hands the diff to ui/scripts/select-affected-tests.mjs; readRadius answers null for a read the walker names outside a workspace package, which keeps studioMenuPlacement.test.ts in the always-on set, and the always-on set is planned on every mode=affected run. This agrees with the dev's measurement (525 always-on files). The card's expected outcome holds on both events by reading. RIGHT.
  • The population claim in the ci.yml comment ("no other ui test reads under the root docs/adr/"). Checked independently on the head with git grep: seven ui test files mention docs/adr; one resolves to the repository root (studioMenuPlacement.test.ts:118, six levels up from ui/packages/app-shell/src/views/studio-design); product-neutral-renderer.ratchet.test.ts and check-doc-snippet-types.test.ts resolve against ui/ (their files exist under ui/docs/adr/); the other four carry fixture strings. No non-test ui module reads a root ADR either. RIGHT.
  • The gate's wiring. pnpm check:ci-filter-parity (self-test, then the real run) is a step of the lint-ci-engine lane in lint.yml, with no if: and no path filter; lint.yml triggers on pull_request, merge_group and push. The step is continue-on-error, and scripts/ci/lane-verdict.mjs reads the step outcome, so a red gate reds the lane; the lane is in the roster of Lint & Repo Gates, one of the eleven required contexts. The real run reads .github/workflows/ci.yml from the checkout through the yaml parser, twice, as the action does. So a later edit that drops the ADR-0084 row goes red in a required context, on the PR and in the queue; the self-test pins that with a rollback of the row on the real file. RIGHT.
  • Check-runs on the head. All eleven required contexts concluded success (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate); Lint · CI, release & engine gates, the lane that runs this gate, is success. No failure and nothing pending; the skips are the opt-in harnesses, the schedule and queue verdict jobs and the main-only jobs.
  • Tier. Read against ruling record 6722205630 (letter C) and the C2 list in the body it executes: the hunk adds no permissions:, no secrets.*, no pull_request_target, no uses:, no continue-on-error, no if:; it deletes no job, renames none and leaves the required-context set and the merge-queue trigger alone; ci.yml is not a release, publish or deploy workflow; the guard workflow and the three guard scripts are not in the diff; scripts/check-ci-filter-parity.mjs is not a register row. No Tier H trigger is present. The tier itself is the register's verdict (check-governed-merges --pr), not this record's.

② Semver level

Clause-②: no. The diff publishes nothing: a workflow file and a root scripts/ gate, in no published package. skip-changeset is the right label and Check Changeset is success. The body's Clause-②: no and Metadata-protocol: none match the tree.

③ Boundary flags

  • open_questions: empty. Nothing to answer.
  • Deviations in the dev report: a commit message amended before any push (the pushed commit carries the model-free trailer pair); a lock-queued local gate run used as the local record; an advisory cost of about 1.2 s on the gate. None changes the tree under review. The five local gates the report lists as NOT MEASURED are answered by the head's check-runs (Build Core and Type Check · debt ledger are success).
  • out_of_scope_findings, both answered, neither blocks: (1) ui tests reading other files outside ui/ that no ui list covers (a root markdown file, two server sources, a root script) are the same family and belong on one family card, as the dev proposes; the fifth subject's header states that bound. (2) ui/scripts/markdown-test-inputs.mjs not seeing the root ADR read is a separate ledger card. Both are the seat's to file.
  • The PR body's maintainer note and the claim comment still say the PR lands by the maintainer's hand; the later comment on the PR reads it Tier S by content. That is body prose outside ④; the seat corrects the note or leaves the landing to the register's verdict.
  • SQL push-down: not applicable; the diff touches no data access.
  • Outside the diff, rule level only: the parity gate reads the filter LISTS and the names in a job's if:, not the filter step's other inputs nor the boolean shape of the if:. A later workflow edit can therefore change what the lists mean without changing a row this gate reads. That edit is itself a governed workflow diff and gets this review; a follow-up card to pin the step's inputs is recommended. Specifics are in the reviewer's reply to the seat, not here.

④ Design judgment

.github/workflows/ci.yml (hits). Holds against the card and the code it cites. The row names the file studioMenuPlacement.test.ts really reads, the file exists at the head, the row is a literal with no pattern character, and it sits in the list all five ui jobs read. The comment's four claims (one reader today, the queue reads the same list, the ui tree's own ADRs are covered by ui/**, the gate holds the group both ways) were each checked against the tree; the first three hold as written, the fourth holds for today's tree and is qualified by S1 and S2 below. Verbatim over docs/adr/** is a defensible choice and is the stricter-cost one, not the permissive one: a new reader is caught by the gate, not by a silent skip. The card cites no ADR on CI scheduling and none exists under docs/adr/; ADR-0084 itself is not touched. No must-fix and no should-fix on this file.

scripts/check-ci-filter-parity.mjs (implementing). The fifth subject does pin today's tree: the population is derived (no kept list), the walker call is spelled correctly for a repo-root coordinate (hereDepth = segs.length - 1 makes the package root the repository root, so a workspace-root findUp resolves and a manifest-name one yields no name, as the header says), the whole-name match keeps ui from being satisfied by ui_consumers or ui_tree, every unread state refuses, the battery floor and roster floor were raised with the battery, and main() and --list both carry the new exit condition. Two places where the code and its own contract part, both in the direction that matters:

S1 (should-fix) — the collector takes the walker's files set without the kind filter the walker's first consumer applies to it. scanPathExpressions puts every path BINDING in files, directory prefixes included, and its own caller (findEscapingPackages) keeps a files name only when it is a real file and a dirs name only when it is a real directory. uiRootReadsOf keeps both sets by name and classifies with scan.dirs.has(name) && !scan.files.has(name), so a directory that a test first binds to a name and then lists is in both sets and is judged a FILE read. Two consequences, against the jsdoc sentence "a directory read is covered only by its subtree": (a) for that spelling the gate accepts a row that is not coverage and reports green, and its own failure text points at that row; (b) a directory binding that is only a prefix for building a path is reported as an uncovered read whose remedies are a row that matches nothing or the subtree row the header rules out. The self-test pins the directory case for the inline spelling only. Not live on this head (the one read is a file, correctly classified), so the card's hole is closed; but the gate is the pin for the next reader. Fix: let a listing win the classification, apply the same real-file / real-directory filter the walker's consumer applies (a files name that is a directory on disk and that no listing consumed is a prefix, not a read), and add battery cases for the bound-name listing and the prefix binding.

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:

  • N1: the gate matches ui in the test-ui if: by name, not by boolean shape, the same bound the first subject carries; the header could state it for this subject too.
  • N2: the comment above the ui output in ci.yml (near line 365) lists the classes of path ui covers and does not name "a root file a ui test reads"; it defers to the filter below, so it is not wrong.

S1 and S2 are open on this head. Neither touches the governed file; the fix moves the head and earns a delta review of scripts/check-ci-filter-parity.mjs alone.

Implemented-by: claude/issue-37935-ci-ui-filter-adr
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): REWORK at head 3402071c314c3161fe6be8204dc73df7c313655a (Fixes #37935).

Review summary

Tier. The diff is governed, and Tier S by content under ruling 6722205630 C, as check-governed-merges reads it. It has no Tier H trigger: no permissions, secrets, triggers, uses:, if:, or required-context change.

Contract review. I adopt record 7233195836, PASS at the contract tier (verify-review-tier PASS).

The ci.yml hunk is clean and only restrictive. It is one literal row (the ADR-0084 file) appended to the ui filter list, plus comments. An added row can only start ui jobs that would otherwise skip, on pull_request and merge_group alike, and no job can skip because of it.

The parity script pins today's filter against the real ci.yml, and dropping the row goes red. It runs ungated in the lint-ci-engine lane, which a required context aggregates.

Must fix before landing: two graded should-fix findings, both in the implementing gate scripts/check-ci-filter-parity.mjs. The queue guard reads them as open on this head.

  • S1 (should-fix): a bound directory that is then listed is judged as a file read. This contradicts the script's own rule that a directory read is covered only by its subtree, and the self-test covers only the inline spelling. The specifics go to the area privately.
  • S2 (should-fix): the leftover direction tells the author to delete rows the gate calls reader-less, from a population it cannot fully see, such as a read in a module a test imports. Either name that bound in the header and the failure text, or soften the direction to "check, then delete".

Nits, optional:

  • N1: test-ui's if: matches ui by name.
  • N2: the comment above the ui output does not name the new class of row.

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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cxRDKprCtjpEdtiPFW

Final green head for delta L1 · 2026-11-28T04:24Z · Head-sha bd4c3214470e19437533e30a464f0bafcffef5f4 (one commit on 3402071c31, no force-push)

  • Fix round 1 on L1-a REWORK 7233204240: S1 (the parity gate now classifies each read by what it is on disk, the same filter findEscapingPackages applies) and S2 (the header and the leftover text name the imported-module bound; "check each, then delete it"). N2 taken as a comment only in ci.yml; N1 not taken (it would change a job's if:). PR body realigned to Tier S by content.
  • Checks: 36 succeeded, 13 expected skips, 0 failed. mergeable_state clean. +370/-10.
  • os-dev report: review follow-ups of PR #37927: ci.yml ui filter misses docs/adr/0084, which studioMenuPlacement.test.ts reads #37935 comment 7234003275. Owed next: a delta contract record on scripts/check-ci-filter-parity.mjs and the ci.yml comment, a delta L1, then seat 1 lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · bd4c321 · 2026-11-28T04:25Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bd4c3214470e19437533e30a464f0bafcffef5f4
Local-runs: none
Scope: .github/workflows/ci.yml + scripts/check-ci-filter-parity.mjs

Delta record. It follows record 7233195836 (PASS at 3402071c314c3161fe6be8204dc73df7c313655a, S1 and S2 open). The new head is one commit on that head, no force-push; the merge base 93fa9118a3dc61473890eafc6bb170a6fc1c3042 is unchanged. Read for this record: the delta 3402071c31..bd4c3214 on both files (ci.yml +4 / -0, the parity script +51 / -11), the full net diff against the merge base where the delta touches it (now +370 / -10 over the same two files), card #37935 with its newer comments (claim amendment 7233440353, dev report 7234003275), PR #38124 with its newer comments (L1 verdict 7233204240, announcement 7234022159) and its current body, and the check-runs on the new head. The self-test was not run: the head is not checked out and the script needs installed dependencies, so the new pins are verified by reading.

S1 (should-fix): closed

S2 (should-fix): closed

① Derived judgments

  • The four new ci.yml lines (lines 735 to 738 at the head). All four are comment lines: each starts with # at the twelve-space indentation of the neighbouring comments, inside the with.filters block scalar and above the ui: key, where the action's own YAML parse drops them. They add no row, no key and no expression; the parsed filter lists are identical to the previous head. They answer N2 by naming the ADR class beside the existing "five paths outside ui/" paragraph, and "outside that count" is accurate: the five listed paths are still five. Comment-only. RIGHT.
  • Scheduling. Unchanged from the previous record: the net ci.yml diff is still one literal row plus comments (+16 / -0), and the row can only turn ui from false to true. No job can skip on any diff that ran before. RIGHT.
  • Tier, against ruling record 6722205630 letter C. The delta adds no permissions:, no secrets.*, no pull_request_target, no uses:, no continue-on-error, no if:; it deletes and renames no job and leaves the required-context set, the merge-queue trigger and the guard workflow and scripts alone. No Tier H trigger. The tier itself remains the register's verdict.
  • Check-runs on the new head. No failure and nothing pending; every non-success run is a skip of the same opt-in, schedule, queue and main-only jobs as before. All eleven required contexts concluded success, the lane that runs this gate (Lint · CI, release & engine gates) among the green lanes behind Lint & Repo Gates.

② Semver level

Clause-②: no. Unchanged: a workflow file and a root scripts/ gate, nothing published. skip-changeset stands.

③ Boundary flags

  • open_questions in dev report 7234003275: empty. out_of_scope_findings: empty this round; the two from the first round stay with the seat as follow-up cards.
  • Deviations: the PR body now ends with a signed trailer because the relay requires one; the commit trailer pair is model-free. Neither touches the tree.
  • The body and the claim were realigned: the maintainer note and a Tier: line now read Tier S by content, and claim amendment 7233440353 says the same. The earlier remark is answered.
  • N1 was not taken, with a reason (it would be a non-comment if: change outside this round's surface). Accepted as a deviation; it stays a stated bound of the gate.
  • The dev notes the branch is 22 commits behind origin/main with no merge taken. origin/main has not moved either file in scope since the merge base, and the PR reads mergeable.
  • SQL push-down: not applicable.
  • The rule-level observation of the first record (the gate reads the filter lists and the names in an if:, not the filter step's other inputs nor the boolean shape) is outside this diff and still stands as a follow-up for the seat.

④ Design judgment

.github/workflows/ci.yml (hits). The four lines hold against the tree: one row at the end of the ui: list is the ADR class, the gate derives it, and the paragraph they extend still counts its own five paths correctly. Nothing else in the file moved.

scripts/check-ci-filter-parity.mjs (implementing).

  • S1, the fix. uiRootReadsOf now builds typed candidates (the walker's files and imports as file candidates, dirs as directory candidates) and keeps a name only when realKindOf finds it on disk AND a candidate of that same kind exists. Walked through the three shapes: a directory bound to a name and then listed is in both sets, is a directory on disk, has a directory candidate, and becomes a dir row, which only its subtree covers; a directory bound only as a prefix has no directory candidate and is dropped, so it no longer demands a row; a file read is unchanged. This is the filter the walker's first consumer applies, as the jsdoc now says, and the jsdoc sentence "a directory read is covered only by its subtree" is true of the code. The kind is now decided by the disk, so it no longer depends on which reader is met first, and a reader is listed once.
  • S1, the pin. The new battery case binds docs/adr to a name, lists it, and asserts three things: the row's kind is dir, a literal docs/adr row leaves it uncovered, and docs/adr/** covers it. Under the previous classification the first two assertions cannot hold (the name sits in both sets and reads as a file, and the literal row satisfies the file rule), so the case is capable of failing; that agrees with the dev's reported ablation (two of 161 red with the old classification restored). The second new case (a path naming nothing on disk yields no row) also separates the two versions. The existing fixtures gained an on-disk ADR so that they still exercise a real read. Battery (12) is at 20 cases over a floor of 16.
  • S2, the fix. The header's known bounds now name the imported-module case and tie it to the leftover direction; the failure text reads "Check each, then delete it" and tells the author to confirm no imported helper reads the row first. The prescription no longer points one way from a population the gate cannot fully see.
  • Re-read of the net diff around the delta: the real-tree checks are unaffected (the ADR-0084 file exists at the head, so its row survives the disk filter, and the rollback of the ci.yml row still reports exactly that path); main(), --list and the refusals are untouched by the delta.

Nits, no effect on correctness or the contract:

  • N3: the prefix-binding shape (a directory bound to a name and used only to build a file path) is handled by construction but has no battery case of its own.
  • N4: a path that does not exist on disk is, by the new filter, not a read; a test that probes a root ADR not yet created is therefore outside the population. The jsdoc states it and the walker's first consumer makes the same trade.
  • N1 from the first record stays a stated bound, not taken.

No must-fix, no should-fix.

Implemented-by: claude/issue-37935-ci-ui-filter-adr
Reviewed-by: session_016WV4czzx9dtSEm3jWWL9c3

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3

L1 verdict (L1-a): ACCEPT (delta) at head bd4c3214470e19437533e30a464f0bafcffef5f4 (Fixes #37935). This follows REWORK 7233204240 at 3402071c31.

Review summary

Shape and gates.

  • The head is one commit on 3402071c31, and the merge base is unchanged.
  • l1-face --pr 38124 is CLEAN at bd4c321447: 36 success, 12 expected skip, 0 failed, 0 pending.
  • check-governed-merges --pr 38124: GOVERNED, Tier S by content under ruling 6722205630 letter C, with no Tier H trigger.
  • The delta contract record 7234059861 (PASS, tier verified) closes S1 and S2 and leaves no graded finding open.

Delta read against the REWORK.

  • S1, closed. uiRootReadsOf now classifies each candidate by what it is on disk (realKindOf, a statSync), the same filter check:cross-package-test-inputs applies to the walker's answer.
    • A directory that is bound to a name and then listed is a dir row, covered only by its subtree.
    • The new case pins kind dir, a literal docs/adr row left uncovered, and docs/adr/** covering it. Both fail under the old files-wins classification.
    • A reader is no longer counted twice for the same test file.
  • S2, closed. The header now names the bound: the walker reads only the test file's own text, so a read inside an imported helper is not seen. The leftover message says check each, then delete it, and asks the reader to first confirm that no imported helper reads the row.
  • The ci.yml delta. Four comment lines above the ui: key, and the parsed filter lists are unchanged.

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.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Seat record · 2026-11-28T04:29Z · PR #38124 (Fixes #37935) · head bd4c3214470e19437533e30a464f0bafcffef5f4 · governed .github/workflows/** — Tier H

维护者速读

  • 做什么:持续集成的触发过滤修了一处漏洞:一个只改了某篇架构决策记录(ADR)的提交,如果界面测试会读那篇记录,现在也会触发界面测试;以前这种提交会跳过界面测试。另加一个检查脚本,保证过滤规则和测试实际读取的文件保持一致。
  • 风险:2 个文件 +370/−10。ci.yml 只改了 4 行注释和过滤条目,其余是新的对照检查脚本;不碰产品代码。
  • 要你做什么:审批人批准即可。契约审核 PASS 7234059861,Head-sha bd4c3214470e19437533e30a464f0bafcffef5f4;批准后座位自主落地。
  • 不批会怎样:只改 ADR 的提交继续跳过会读它的界面测试,问题要到合并后才暴露。

Seat opinion: land.

席位核对 — ACCEPT · repo:objectstack#1 · head bd4c321447

  1. Shape. Draft, base main, 2 files (+370/−10): .github/workflows/ci.yml (the ui paths filter) and scripts/check-ci-filter-parity.mjs (a parity gate between that filter and the files ui tests read). Body: Fixes #37935, Clause-②: no, Metadata-protocol: none. check-governed-merges.mjs --pr 38124: GOVERNED, .github/workflows/** ×1 ⇒ Tier H. The review records read it Tier S by content under ruling 6722205630 C; the seat follows the instrument and routes it the Tier H way.
  2. Premise measured. Per the records: the ui jobs now start on a diff confined to an ADR a ui test reads, and the parity gate fails on a filter row that matches nothing. S1 and S2 of record 7233195836 are closed in delta record 7234059861.
  3. Gates (check-runs at this head). 36 success, 13 skipped, 0 failed. mergeable clean. landing-k: OK.
  4. Accepted deviations. None graded open.
  5. Out of scope → where it went. Pinning the filter step's other inputs and each ui job's condition shape: ci filter parity: pin the whole input of the ui paths-filter step and the shape of every ui job condition, not only the filter rows #38132. ui tests reading outside ui/: ui test scheduling: ui tests that read files outside ui/ that no ui filter row covers, beyond docs/adr #38133. The markdown-test-inputs ledger: markdown-test-inputs: the adjudicated ledger only admits out-of-tree markdown reads under content/docs, so other root markdown reads by ui tests are missing from it #38134. Security-touching: no: a CI path filter and a repo gate.
  6. Landing terms. L1-a delta ACCEPT 7234067648 + contract review delta PASS 7234059861 (CONTRACT_REVIEW_TIER, same head) ⇒ ②③ in one --handoff stroke. After an authorised APPROVED, seat 1 lands it (maintainer's seat-thread line 2026-11-26T13:33Z 「审批人批准后的 Tier H PR 你可以自主落地」). A head move other than a clean main merge withdraws the hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs

Approval request · governed .github/workflows/** (Tier H) · PR #38124 (Fixes #37935) · head bd4c3214470e19437533e30a464f0bafcffef5f4

@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 scripts/check-ci-filter-parity.mjs gate keeps the filter and the ui tests' reads in step. No product code. Records on this head:

  • L1-a delta ACCEPT 7234067648
  • contract review delta PASS 7234059861 (CONTRACT_REVIEW_TIER)
  • seat record ACCEPT above

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.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 04:53
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 7605e0c Nov 28, 2026
55 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-37935-ci-ui-filter-adr branch November 28, 2026 05:31
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd size/m 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.

review follow-ups of PR #37927: ci.yml ui filter misses docs/adr/0084, which studioMenuPlacement.test.ts reads

3 participants