Skip to content

fix(pm): dispatch-gates derives the pins that hold nested served key sets - #38361

Merged
os-zhuang merged 7 commits into
mainfrom
claude/issue-37884-nested-keyset-derive
Nov 28, 2026
Merged

os-zhuang merged 7 commits into
mainfrom
claude/issue-37884-nested-keyset-derive

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #37884
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:只改派发工具,开发者改动嵌套的元数据结构时,派发清单会点名那几个包外的守卫测试。
  • 属于派发工具链的门禁推导;替改 spec 嵌套结构的开发者省掉一轮白跑的 CI。
  • 出错只会让派发清单多列或少列一条本地测试,CI 仍是兜底;整个改动可直接撤回。
  • 无。

Population search (what was searched, what was found)

Measured at 4cb162b, by search, not from a list:

  • Searched: the 14746 tracked test files outside packages/spec; narrowed to those that import the spec package and enumerate a schema's keys (Object.keys of a shape or of a JSON Schema properties map, a declared-keys / shape-keys helper, .keyof(), or the length of an anyOf / options list): 145 files. Narrowed again to assertions that compare such an enumeration whole (an equality, a count, or a filter that must come back empty), then the hits under packages/ and the ui files named below were read. The rest of ui/ was NOT measured: this is not a census of ui, and the re-measure is carried by dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362.
  • Found, in this card's class (a schema nested in a metadata type's declaration, or a served union's member list, held whole so a key ADDED reds it), and now read from the diff:
    • metadata-core object-schema-fls-references.test.ts: InlineGridColumnSchema, ListColumnSchema, ColumnPrefixSchema, ColumnSummaryConfigSchema, the lookupAutofill pair (all both ways) - joined to the existing object-reference pin.
    • metadata-protocol protocol.meta-types-degenerate-derivation.test.ts: the view four-arm union control - joined to the existing served-type pin.
    • metadata-protocol protocol.meta-types-unauthorable-columns.test.ts: the page component row (13 columns, tombstones included), the dashboard widget row (named list), the view four-arm union - new row served-row-key-set.
    • ui plugin-dashboard/.../dashboard-widget-options-census.test.ts: DashboardWidgetOptionsSchema, both ways - new row dashboard-widget-options-key-set (Test UI).
    • service-datasource datasource-pool-support.test.ts: DatasourceSchema's inline pool block, an ordered literal list - new row datasource-pool-key-set.
    • ui plugin-charts/.../normalizeChartSchema.specAxisKeys-7690.test.ts: ChartAxisSchema (named strictObject) - new row chart-axis-key-set (Test UI); added in rework 1 for L2 S1 (record 7242162643).
    • ui app-shell/.../EmbeddedItemEditor.indexFallback.test.tsx: IndexSchema (named strictObject) - new row index-console-key-set (Test UI); rework 1, same.
    • ui plugin-charts/.../normalizeChartSchema.xAxisPresentationGate-10516.test.ts: ChartAxisSchema less field, held equal to its SAMPLE - new row chart-axis-presentation-key-set (Test UI); added in rework 2 for the L2 delta S2 (record 7242763992). A key added to ChartAxisSchema now derives both chart normalizer tests.
  • Read and NOT pins (a new key cannot red them): the lint declared-key receiver guards (validate-expressions, validate-org-axis-red-lines, validate-security-posture, validate-rule-compilability), the cli explain table rows, the client unwrap-misfire guard, the response-conformance tests (keys returned must be declared), the MCP authoring derivation comparisons.

What this fix does NOT cover

What changes

scripts/pm/dispatch-gates.mjs, .data.mjs, .self-test.mjs only.

  • One mechanism for nested key sets. A SERVED_KEY_SET_DECLARATIONS row may now carry schema (a nested key set) besides type / spread, and a pin may hold schemas besides types. A named nested schema is read exactly as a type is (its own strictObject / z.object literal); a schema declared inline is read through within: the enclosing declaration, then one step per level naming the member and the call inside that member's value. How the lookupAutofill pair is read: it has no binding, so its row is FieldSchema's declaration plus one step (lookupAutofill member, the strictObject call in it, argument 1). A key added to the pair moves the pair's row and not FieldSchema's; a key added to FieldSchema moves FieldSchema's and not the pair's; the member gone or reshaped reads wide. The datasource pool block is the same shape, read the same way.
  • The view arm count is read as the key set of VIEW_METADATA_MEMBERS, the record the union is mapped from (an arm added or removed must touch it; the satisfies clause ties it to the branch list).
  • N2: spreads are followed transitively (a member object spread inside a spread object, or a nested schema that spreads one), and the live unwatched census now covers every row, not the type rows alone.
  • N3: the data docblock now says where "cannot join quietly" holds: the self-test's lint.yml read set skips it on a spec-only PR, so the census first reds on main's push or scheduled run (no workflow change; the sentence is corrected, not the selector).
  • N4: objectLiteralMembers reads its lookahead over the masked text with no 200-character window (sticky regexes), and cuts a non-name spread's text from comment-masked text, so a long trailing comment no longer turns a last bare-name spread into a text member, and rewording a comment inside a spread's span derives nothing.
  • Six new change-kind rows (served-row-key-set, dashboard-widget-options-key-set, datasource-pool-key-set, from rework 1 chart-axis-key-set, index-console-key-set, and from rework 2 chart-axis-presentation-key-set), each bound to its CI job with its measured build prerequisite; the object-reference and served-type rows' text names the nested sets they now cover; each chart row's repair text names both chart normalizer tests; the deletion criteria cover ten key-set entries.
  • Rework 2 docblocks: the SERVED_KEY_SET_PINS docblock now says only what was measured (every hit under packages/ and the named ui files; the rest of ui/ not measured, whole-set holders exist outside ui/packages/types, dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362 carries the re-measure). The HookBodySchema reason now says the language set has no record to read, and that the two arm key sets are named declarations a row could read, left to dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362.

Tests

  • Failing probe re-measured before the fix at 4cb162b: probeKey37884 added inside ListColumnSchema -> dispatch-gates.mjs --commands printed 173 lines, 0 naming metadata-core. After the fix, same probe: line 51 is pnpm --filter @objectstack/metadata-core exec vitest run src/object-schema-fls-references.test.ts.
  • New self-test cases: the N4 member-reader cases, the member-value reader, the inline descent (pair and pool), the field.zod.ts nested edits read through every pin, one key-added + one describe() control per nested row, transitive spreads, the N2 census and its control, ten-pin rendering / union / --ran / STALE, and live censuses holding each nested row equal to its pin's table, count or list; rework 1 adds a key-added case and a describe() control each for ChartAxisSchema and IndexSchema, a LIVE census of ChartAxisSchema against the pin's sample (9 = 9), a LIVE check that the index pin enumerates IndexSchema.shape, and a LIVE check that VIEW_METADATA_BRANCHES equals the member record (4); rework 2 adds a case that a key added to ChartAxisSchema derives BOTH chart pins and a describe() control that derives neither, and a LIVE census that ChartAxisSchema's keys less field (8) equal the 10516 test's SAMPLE (8) and that the test filters the shape on field.
Self-test and gates (head 6001cc2, rework 2)
  • pnpm check:pm-dispatch-gates under os-verify-lock: ✓ dispatch-gates self-test (fast tier): 2459 cases pass; 9 slow section(s) deferred. · VERDICT command-exit 0 (2444 at 652b1c8, 2455 at 1a5158d after rework 1).
  • dispatch-gates --ran: 63 derived famil(ies) accounted for - 62 run, 1 NOT-MEASURED. The one is pnpm check:i18n-coverage, exit 3 PREREQUISITE NOT MET (needs built packages; this diff touches no package) - CI's Lint & Repo Gates runs it.
Ablations (fast tier, mutation landed and restored, git diff HEAD empty after each)
  • Run A, four mutations: descent ignored (within loop over an empty list), lookahead back to a 200-character window, spread text from the unmasked source, transitive frontier push disabled -> 21 of 2444 red, each mutation's own cases among them (long-comment spreads, comment-in-span, descent pair/pool, nested pair rows, inner spread, live census of the pair and pool).
  • Run B, nested rows not held by any pin (rowsHeldBy ignoring schemas) -> 23 of 2444 red: every nested key-added case, the pair / grid edits, the page-component spread case, seven-pin rendering, --ran and STALE (at 652b1c8).
  • Run C (rework 1, head 1a5158d), both new pins' schemas lists emptied -> 10 of 2455 red, including both key-added cases and the nine-pin rendering, --ran and STALE cases.
  • Run D (rework 2, head 6001cc2), the presentation pin's schemas list emptied -> 9 of 2459 red, including the ChartAxisSchema key-added case, the BOTH-pins case, ten-pin rendering, the runnable union, the unrun-ui-pin case and STALE.

Acceptance notes

Verification

  • Read first: declaredKeySet / objectLiteralMemberValue in dispatch-gates.mjs (the descent), the new rows in dispatch-gates.data.mjs, the per-schema loop in the self-test.
  • Two-minute check: add any key inside ListColumnSchema in packages/spec/src/ui/view.zod.ts, run node scripts/pm/dispatch-gates.mjs --commands; expect the metadata-core object-schema-fls-references.test.ts line.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Final green head · 2026-11-28T15:50Z · area o5-fleet

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, area o5-fleet) · read 2026-11-28T16:02Z · Head-sha: 652b1c8940c6bf535a48725a2d595696b377c2bf · verdict REWORK (body only, the head stands)

One item to fix, in the PR body only (no new push needed):

  1. "What this fix does NOT cover", bullets 1 and 2 (the ui spec-parity battery; the whole-set pins over schemas not nested in a metadata type) still say "Reported to the seat for a family card" / "reported, not covered". That card now exists: dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362. Name it in both bullets (e.g. "carried by dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362"), with no closing keyword next to the number. The acceptance-notes line "reported to the seat, not filed here" goes the same way. The maintainer reads the body for a Tier H hand-off, so a residual there needs its #N.

Once the body carries #38362, I re-read the body at this same head and turn this into ACCEPT. Everything below already holds at 652b1c8.

Checklist (l1-face --pr 38361 at 652b1c8: CLEAN, 13 items, exit 0)

  • Shape: open, draft, base main. First line Fixes #37884, and that is right: the card's whole family is delivered (the five nested sets in metadata-core's fls-references test plus the view arm count). No closing keyword binds another card.
  • Scope: 3 files, all scripts/pm/dispatch-gates{,.data,.self-test}.mjs, matching the card's Surface line. No published package, skip-changeset, no changeset, no content/docs/releases/. Clause-②: no · Metadata-protocol: none; Skills-docs not owed.
  • Gates at 652b1c8 (check-runs): 26 success, 23 expected skip, 0 failed, 0 pending; Lint & Repo Gates and TypeScript Type Check success; Lint · PM dispatch-gates (job 141026078197) success, and its log shows check:pm-dispatch-gates --self-test and the fast tier ran on this head. mergeable_state clean.
  • L2: none of the four faces (no Clause-②: yes, no narrowing, no packages/spec/src/**, no governed rule text). I agree with the area: no contract review owed. Landing tier H (guard instrument scripts/pm/dispatch-gates.mjs), 654 lines ≤ 3,000, so the seat hands it over after ACCEPT.

Spot readings (mine, in a detached worktree at 652b1c8; tree restored, git status empty after each)

  • Key added, dispatch-gates.mjs --commands:
    • ListColumnSchema +key → metadata-core object-schema-fls-references derived.
    • lookupAutofill pair +key → object-schema-fls-references only (no field-schema pin: FieldSchema's own members unchanged, as the body says).
    • DatasourceSchema.pool +key → datasource-pool-support.
    • VIEW_METADATA_MEMBERS +arm → meta-types-degenerate-derivation and meta-types-unauthorable-columns.
    • DashboardWidgetOptionsSchema +key → dashboard-widget-options-census.
    • PageComponentSchema +key and DashboardWidgetSchema +key → meta-types-unauthorable-columns each.
  • Controls (nothing may derive): a .describe() edit inside the pool block, a .describe() edit inside the pair, a comment added inside VIEW_METADATA_MEMBERS → none of those six pins derived.
  • Positive control: the merge-base's three dispatch-gates files (c6a1328d) on the same tree, ListColumnSchema +key and pool +key → neither pin derived, so the probes above measure this PR.
  • Declaration sites read by eye: the pair is z.array(strictObject({surface…}, {target, source, overwrite})) and the pool is strictObject({surface…}, {…}), so within: [{ member, call: 'strictObject', argument: 1 }] addresses the key literal; VIEW_METADATA_MEMBERS = { takes call: null; DashboardWidgetOptionsSchema is z.object({ (argument 0). The new Test UI row has the same shape as the existing report-inspector row.
  • Engine read: objectLiteralMemberValue refuses a duplicate or unclosed member (null, then the caller reads wide); a within step never leaves the member's own value (end bound plus open >= span.end); spreadByAPinnedDeclaration walks spread rows once each with a seen set, and pin gaps for schemas are refused at load the same as for types.

Accepted deviations

  • A reorder of the datasource pool list reds its ordered test and derives nothing (the row reads a set). It is stated in the row's own ⚠ text and in the body. The card asks about the key set, and a reorder is not one.
  • A schema nested one level further than any row derives nothing. The rows are the measured population (search over 14,746 tests, 145 key enumerators, whole-set assertions read). That is a checkable reason, so no card is needed.
  • N3 corrects a docblock sentence only (an unwatched spread can land green once and red main's push or schedule run). No workflow change, and the area's patrol owns that red.
  • Nit, no action: the two code commits carry "(wip)" in their subjects. A squash takes the PR title.

Out of scope: dev findings 1–2 → #38362 (filed by the area, pm:blocked on #37884). Finding 3 is the L2 note, no carrier needed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, area o5-fleet) · read 2026-11-28T16:05Z · Head-sha: 652b1c8940c6bf535a48725a2d595696b377c2bf · verdict ACCEPT (delta on REWORK comment 7241933532; head unchanged)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

维护者速读

  • 用户无感:只改派发工具 scripts/pm/dispatch-gates*,开发者改了嵌套的元数据结构时,派发清单会点名包外那几条守卫测试。
  • 为什么做:以前改 ListColumnSchema 这类嵌套结构,派发清单漏掉 metadata-core 的守卫测试,开发者要白跑一轮 CI 才发现。
  • 出错会怎样:只会让派发清单多列或少列一条本地测试,CI 仍兜底;三文件改动可直接撤回。
  • 要你做什么:批准合并 PR fix(pm): dispatch-gates derives the pins that hold nested served key sets #38361(守卫仪器 ⇒ Tier H),Head-sha 652b1c8940c6bf535a48725a2d595696b377c2bf;L2 契约审核不欠(契约四面皆不碰)。

席位意见:同意合并。机制单一(嵌套键集读法与类型行同构),同族遗漏已立卡 #38362 承接,不在本 PR 扩写。

席位核对 — ACCEPT · repo:objectstack#5 · Head-sha 652b1c8940c6bf535a48725a2d595696b377c2bf · 2026-11-28T16:06Z

  1. 形态:open draft → main,3 files(scripts/pm/dispatch-gates.mjs / .data.mjs / .self-test.mjs,+530/−124,654 行 ≤ 3000),Fixes #37884,Clause-②: no,Metadata-protocol: none,skip-changeset。
  2. 前提实测:卡的失败探针由 dev 在 4cb162b 复测(修前 173 行无 metadata-core,修后第 51 行点名 object-schema-fls-references.test.ts);席位自读 diff:只增读法与行,无新 I/O、无新进程调用、无环境读取。
  3. 门禁 check-runs:L1-a 在本 head 读 27 success · 26 expected skip · 0 failed · 0 pending,mergeable_state clean(ACCEPT 7241970401,delta on 7241933532)。
  4. 接受的偏差:无。
  5. 范围外去向:同族两类(ui spec-parity 组;非元数据嵌套的整集钉)→ dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362。Skills-docs: 不欠(Metadata-protocol: none,无收窄)。
  6. 落地条款:check-governed-merges --pr 38361 读 Tier H(守卫仪器 scripts/pm/dispatch-gates.mjs);契约四面皆不碰 ⇒ L2 不欠(contract-review.md:CI + 席位自读)。维护者批准后由席位落地(ready + auto-merge),⛔ 未批不入队。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 652b1c8940c6bf535a48725a2d595696b377c2bf
Local-runs: none
Scope: scripts/pm/dispatch-gates.mjs + scripts/pm/dispatch-gates.data.mjs, scripts/pm/dispatch-gates.self-test.mjs
Security-touching: yes
Rule-change-verified: none

PR #38361 for card #37884. Read: the card body and its six comments (scope notes 7214316940 and 7222990290, triage 7214456259, the unblock note, claim 7240023959, dev report 7241556901), the PR body, the three-file list, the net diff against main (merge base c6a1328d, which is origin/main), and the 53 check-runs on this head: every one success or skipped, none red, none pending. The cited spec files and pin tests were read at this head; nothing was built or run.

① Derived judgments

No published package path is in the diff, so no public accept-set moves. What the diff changes is the instrument's own derivation, each item judged:

  • declaredKeySet takes a within path (member, call, argument per level). Existing rows pass no within and read exactly as before: the call-argument walk was lifted unchanged into callArgumentStart. Right.
  • changesServedKeySet and servedKeySetPinGaps read a pin's optional schemas beside types; a pin naming a schema with no row is refused at load, as a type is. Right.
  • New export objectLiteralMemberValue, consumed by the self-test only. Right.
  • SERVED_KEY_SET_DECLARATIONS gains ten schema rows; SERVED_KEY_SET_PINS gains schemas on two pins and three new pins; CHANGE_KIND_ROWS gains three rows. The derivation WIDENS: a nested key-set change now owes up to five more commands (metadata-core FLS references, the two metadata-protocol tests, the ui widget options census, the service-datasource pool test). Right, and it is the card's ask.
  • Spread following became transitive (a spread row reached through a spread row). Widening, wide on a lost place. Right.
  • objectLiteralMembers (N4): the lookahead has no 200-character window, and a non-name spread's text is cut from comment-masked text. (a) turns a mis-read text member back into the bare name; (b) NARROWS the derivation by exactly the comment-only edits inside a spread's span, which move no key. Right, and it is the fix record 7222932507 named, as scope note 7222990290 quotes it.

② Semver level

skip-changeset is right: the diff is three files under scripts/pm/, in no package, reachable from no exports map, so nothing is published and no bump is owed. Check Changeset is success on this head. Clause-②: no and Metadata-protocol: none on the PR body both match the tree: no accept-set, no wire shape, no protocol surface is touched.

③ Boundary flags

  • open_questions in the dev report is empty. Nothing to answer.
  • Dev flag, "L2: none owed in my reading": not so. scripts/pm/dispatch-gates.mjs is a governed path, so the review is owed at this tier; this record is it.
  • Dev flag, pnpm check:i18n-coverage NOT MEASURED locally (exit 3, built packages needed): answered by CI. Lint & Repo Gates and Lint · repo & tooling gates are success on this head.
  • Dev flag, "PR check-runs: not yet read": read here, all green or skipped, Lint · PM dispatch-gates among the green.
  • Dev flag, slow tier not run: the PR event runs the fast tier only (lint.yml's tiering), so the nine slow sections have no verdict on this tree until main's push run. The whole key-set section, its LIVE censuses included, sits outside every slow( block and did run. Escalated to the seat as a watch item on the push run after landing, not a finding against the diff.
  • Dev flag, ablations on the fast tier only: accepted, for the same reason; the mutated code is all in the fast-tier section.
  • Dev deviations (one merge of origin/main, the model-free trailer pair, the session-URL footer): none touches the contract. The net diff is the three claimed files.
  • out_of_scope_findings: two class-a families (the ui spec-parity battery under ui/packages/types; whole-set pins over schemas outside a metadata type). The PR body says dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362 carries them. That card is outside this review's inputs and was not read; S1 below adds to what it must carry.
  • The security line above reads yes on purpose, and narrowly: the changed why text of the object-reference-key-set row tells a dev how the field-level-security scrub's reference tables must classify a new nested key. No permission, sharing, credential, token or authentication code moves.
  • The rule-change line above reads none: the file list holds no path under .claude/.
  • SQL push-down: the diff reads source text and git blobs only. No query, no id materialisation, no in-app join.
  • PR author is objectstack-fleet[bot]: no off-relay write to name.

④ Design judgment

Graded: S1 (should-fix); N1, N2, N3 (nit).

scripts/pm/dispatch-gates.mjs (hits). Holds against the code it cites and against the card's probe.

  • The probe. ListColumnSchema (packages/spec/src/ui/view.zod.ts:1418) is strictObject(options, shape); its row reads argument 1; a key added there changes the member list, rowsHeldBy puts the row under object-reference-key-set, and that pin's one gate is pnpm --filter @objectstack/metadata-core exec vitest run src/object-schema-fls-references.test.ts. The test does hold the set both ways (:848 to :858). The fast-tier case "a key added to the nested ListColumnSchema derives exactly the pins that hold it" is green in CI.
  • The inline pair. FieldSchema's shape (field.zod.ts:1718) carries lookupAutofill: z.array(strictObject(options, shape)) at :2711. The descent takes the member's value span at the literal's own depth, the first strictObject( inside that span, argument 1. A key in the pair moves the pair's row only; a key in FieldSchema moves the type row only; the member gone or reshaped reads null, and null on either side derives. The pool block (datasource.zod.ts:820) is the same walk; the pooling: 'pool' alias in argument 0 is never reached.
  • Attempts to break it. (1) A call found past the member: refused by the span.end bound. (2) A comma inside type arguments in the named member's value cuts the span short: the call is then not found before the end, the read is null, the row derives wide, and the live control "the live files, read at base and head alike, derive no pin" reds on main. Wide and loud, never quiet. (3) The member named twice, quoted or computed: null, wide. (4) The module-level sticky regexes: lastIndex is set before every exec, and nothing here re-enters. (5) A pin type with no row no longer answers wide inside the spread walk; the load-time refusal makes that unreachable on the real tables. (6) Cycles between spread rows: the seen set ends the walk.
  • VIEW_METADATA_MEMBERS for the arm count: the union maps VIEW_METADATA_BRANCHES over the record (view.zod.ts:8173), and the record's satisfies clause over the branch type refuses both a missing and an excess key, so in any tree that type-checks the record's key set is the arm list. Both pins read 4 (degenerate-derivation :442, unauthorable-columns :529). See N2.
  • Each docblock sentence that moved was read against the code under it and agrees: the member reader, the value span, the descent never leaving the member's value, the spread walk, the pin gaps.

scripts/pm/dispatch-gates.data.mjs (implementing). Rows and why texts read against the cited code, sentence by sentence; they agree, with one exception.

  • Agrees: the five metadata-core tables and their directions; the view four-arm controls in both tests; the component row (11 live plus 2 retired, count 13 at :268) and the widget row (:275, :286); the widget options census, both directions plus the read site the repair text names; the pool list at :791 with the stated ordered-list limit; service-datasource's vitest aliases (core, metadata-core, objectql, platform-objects/system, driver-memory, driver-odata, not the spec); the three job bindings, which the LIVE binding case holds. N2: both census rewrites (every row, transitive follow) are in the tree. N3: the corrected sentence matches select-gate-families.sh, whose pm_dispatch_gates arm does not run on a spec-only diff.

S1 (should-fix) — the population statement on SERVED_KEY_SET_PINS is not what the search it describes returns. Scope note 7214316940 asks for the population "from a search over tests outside packages/spec, not from a list", listed as searched and found. The docblock (:1595) admits a ui test to the class only when "a scope note named" it, which is a list for the ui half, and its "Found and NOT in this table" sentence (:1600) names two groups as the whole remainder. The same search criterion (imports the spec, enumerates a schema's keys, compares whole) also returns at least these, each a nested spec key set held whole by a hand-kept ui table, outside ui/packages/types, so in neither group:

  • ui/packages/plugin-charts/src/normalizeChartSchema.specAxisKeys-7690.test.ts: ChartAxisSchema (chart.zod.ts:189, under ChartConfigSchema.xAxis and .yAxis, so inside dashboard.widgets[].chartConfig and report.chart). Its own case is titled "a new spec key fails here first".

  • ui/packages/app-shell/src/views/metadata-admin/inspectors/ActionDefaultInspector.scriptBodyLanguage-11921.test.tsx: HookBodySchema's arms (hook.body, action.body), the language set and each arm's keys, "none missing, none extra", against BODY_KEYS_BY_LANGUAGE.

  • ui/packages/app-shell/src/views/metadata-admin/EmbeddedItemEditor.indexFallback.test.tsx: IndexSchema's authorable keys (object.indexes[]) against the console's fallback properties.
    Read, not probed. A key added to any of the three derives no row today, and the self-test uses chart.zod.ts as its "declares no row" control (:5935). Fix, either way: give the mechanical ones a row (ChartAxisSchema and IndexSchema are named strictObject declarations, the Test UI binding already exists), or name all three in the "NOT in this table" sentence and on the family card, and drop the "scope note named" qualifier or say plainly that the ui half was not measured.

  • N1 (nit) — the docblocks of objectLiteralMembers and objectLiteralMemberValue now sit above MEMBER_BARE_SPREAD (:12279) and MEMBER_VALUE_HEAD (:12345), so each documents a regex constant and its function carries none. This one is in the hits file.

  • N2 (nit) — why the VIEW_METADATA_MEMBERS row reads the record while the union maps the branch list is argued in the PR body only; the data docblock and the row do not carry the satisfies tie, and no live case holds it.

  • N3 (nit) — the unauthorable-columns test also holds TOMBSTONE sets whole (:276, and the removed-path list for dashboard at :366 to :380). A key retired in place moves no key set, so no row here can derive it; that is a different trigger from this card's, but the docblock's remainder list does not name it. A line for the family card.

scripts/pm/dispatch-gates.self-test.mjs (implementing). Agrees with the contract. Every schema row gets a key-added case that must fire exactly the pins that hold it (a row no pin holds is refused there, by the owed.length guard) and a describe() control that must fire none; the descent has its null cases (member gone, a call only past the member); N4 has both halves and a string-kept control; N2 has the census over every row plus a control that names the unwatched spread by its row; the spread walk has the inner-spread case and its control. The LIVE censuses hold each nested row equal to the table, count or list its own test spells, so a row that drifts from its pin reds here. The cost is the one N3's sentence states: those censuses read five test files in other lanes, and a refactor there first reds on main's push run.

Implemented-by: claude/issue-37884-nested-keyset-derive
Reviewed-by: session_01FEkQ5mzSTSPADAvwapnhxr

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Final green head (rework 1) · 2026-11-28T16:55Z · area o5-fleet

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 delta (thread L1-a, area o5-fleet) · read 2026-11-28T17:03Z · Head-sha: 1a5158d8644374ea1f9e01c6c502fa917b165b9f · verdict ACCEPT (delta on ACCEPT 7241970401 at 652b1c8)

Delta read: git diff 652b1c8940 1a5158d864 -- scripts/pm/. The rest of the range is the origin/main merge; the net diff against the merge base is still the three dispatch-gates files.

Spot readings (mine, detached worktree at 1a5158d; tree restored, git status empty)

  • ChartAxisSchema +key → normalizeChartSchema.specAxisKeys-7690 derived. IndexSchema +key → EmbeddedItemEditor.indexFallback derived.
  • Regression: ListColumnSchema +key still → object-schema-fls-references.
  • Control: a comment added inside ChartAxisSchema's shape → no pin derived.
  • Positive control: the 652b1c8 engine files on the same tree, ChartAxisSchema +key and IndexSchema +key → neither derived, so these probes measure the delta.

Checklist: l1-face --pr 38361 at 1a5158d: CLEAN, 13 items, exit 0. 26 success, 22 expected skip, 0 failed, 0 pending; mergeable_state clean. Lint · PM dispatch-gates (job 141040054291) success on this head. The body matches the delta (five rows, nine pins, 2455 cases, ablation run C), and every residual names #38362 with no closing keyword. Still Fixes #37884, still right.

Accepted deviation (new): the index LIVE check holds only that the pin enumerates IndexSchema.shape, not a set equality. The console's fallback properties are a component's output, not a literal list the self-test can read. The key-added case and the probe above cover the derivation itself.

Correction to my earlier record (7241933532): I read "no L2 owed". The seat's contract-tier record 7242162643 is right that the governed guard-instrument path owes L2. Its delta on S1 at this head is the seat's, and landing stays the seat's hand-off (Tier H, 712 lines ≤ 3,000).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1a5158d8644374ea1f9e01c6c502fa917b165b9f
Local-runs: none
Scope: scripts/pm/dispatch-gates.mjs + scripts/pm/dispatch-gates.data.mjs, scripts/pm/dispatch-gates.self-test.mjs
Security-touching: yes
Rule-change-verified: none

Delta review of PR #38361 for card #37884, on the head after rework 1. The round-1 record is 7242162643 on 652b1c89: PASS, one should-fix (S1), three nits (N1 to N3). Between the two heads sit one merge of main (fe94ff95, second parent bc31d453, the PR's base; main's side touches no file under scripts/pm/) and one fix commit (1a5158d8, +92/-32 over the three files). Read: the card body and its seven comments (rework dev report 7242585756 among them), the PR body, and of its comments the round-1 record and area comment 7242631409 (the seat's own check comments were not read), the three-file list, the net diff against main (+589/-123, the same three files) and the fix commit alone, and the 48 check-runs on this head: 26 success, 22 skipped, none red, none pending. The cited spec files and ui pin tests were read at this head. The family card #38362 was read (GET) because the tree's docblock cites it as the carrier. Nothing was built or run.

Result: S1: open (should-fix), narrowed; S2 (should-fix), new in the delta; N1, N2, N3 closed; N4, N5 (nit), new. No must-fix.

① Derived judgments

Still no published package path in the diff, so no public accept-set moves. What the delta changes in the instrument's own derivation, each judged:

  • SERVED_KEY_SET_DECLARATIONS gains two schema rows: ChartAxisSchema (packages/spec/src/ui/chart.zod.ts:189) and IndexSchema (packages/spec/src/data/object.zod.ts:658), each call: 'strictObject', argument: 1. Both declarations are lazySchema(() => strictObject(options, shape)) at this head, so argument 1 is the shape: nine keys (field, title, format, min, max, stepSize, showGridLines, position, logarithmic) and three (name, fields, unique). Right.
  • SERVED_KEY_SET_PINS gains chart-axis-key-set and index-console-key-set, each types: [], one schema, throughSpreads: true. Neither schema spreads anything today; a spread arriving reads wide. Right.
  • CHANGE_KIND_ROWS gains one row per pin, each one ui command bound to Test UI with the seven-package build prerequisite, the same binding and wording as the two ui rows round 1 judged. The derivation WIDENS by one command per schema. Right as far as it goes; S2 is that the chart row goes one test short.
  • chart.zod.ts and object.zod.ts each hold a nested row now. An edit elsewhere in either file (ChartSeriesSchema, ObjectSchemaBase) moves no member the new rows read, and a key in IndexSchema moves the index row only, not the object type row. The per-schema loop in the self-test covers both rows (key added fires exactly the holding pin; a describe() fires none), and it is green in CI.
  • The self-test's "declares no row" control moved from chart.zod.ts to packages/spec/src/ui/action-params.zod.ts (exists; no row names it). Right.
  • dispatch-gates.mjs: three sticky regex constants and stickyAt moved above the two docblocks, one comment line added. No behaviour moves.

② Semver level

skip-changeset is still right: the net diff is three files under scripts/pm/, in no package and behind no exports map, so nothing is published and no bump is owed. The label is on the PR. Check Changeset reads skipped on this head (twice), which is the label fast path in pr-automation.yml's job condition, not a missed run. Clause-②: no and Metadata-protocol: none still match the tree.

③ Boundary flags

  • open_questions in the rework dev report is empty. Nothing to answer.
  • Dev flag, "PR check-runs on the new head not read": read here. Lint · PM dispatch-gates, Lint & Repo Gates and Lint · repo & tooling gates are success; nothing is red or pending.
  • Dev flag, pnpm check:i18n-coverage NOT MEASURED locally (exit 3): answered by CI on this head, as in round 1.
  • The Test UI shards are skipped on this PR (no ui path in the diff), so the two newly cited ui tests were read here, not run. Neither they nor the spec moved in this diff. The whole key-set section of the self-test sits outside every slow( block and ran in the green dispatch-gates check, its LIVE cases included.
  • Slow tier: nine sections deferred on the PR event, as in round 1. Still a watch item for the seat on main's push run, not a finding.
  • Dev deviations (dev-worktree.sh --resume-from refused, a plain git worktree add, one more merge of origin/main, a local branch ref left behind): none touches the contract. The net diff against the PR's base is the three claimed files.
  • pr_body_false_sentences (five): the body at this head carries the two rows, five rows, nine entries, 2455 cases and ablation C. Two body sentences still do not match the tree and belong to S1: "the ui hits outside ui/packages/types were read", and registry-inputs-spec-parity listed under ui/packages/types/src/__tests__ (it is at ui/apps/console/src/__tests__/). The record judges the tree; the body is the seat's to correct.
  • out_of_scope_findings, carrier dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362: its body names the ui battery and the pins over schemas outside a metadata type; its scope note 7242618366 adds the HookBodySchema arm census and the tombstone sets. So "carried by dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362" in the docblock holds for the four groups it names. S1 and S2 add members that card does not carry yet.
  • The security line reads yes on the same narrow ground as round 1: the net diff still changes the why text of the object-reference-key-set row, which tells a dev how the field-level-security scrub's reference tables must classify a new nested key. The two new rows teach no permission, sharing, credential, token or authentication behaviour.
  • The rule-change line reads none: no path under .claude/ in the file list.
  • SQL push-down: the delta reads source text only. No query, no id materialisation, no in-app join.

④ Design judgment

Graded: S1 (should-fix, open), S2 (should-fix, new); N4, N5 (nit, new). Closed: N1, N2, N3.

scripts/pm/dispatch-gates.data.mjs (implementing): the two new rows against the tests they name.

  • chart-axis-key-set. Gate: pnpm --dir ui exec vitest run packages/plugin-charts/src/normalizeChartSchema.specAxisKeys-7690.test.ts. The file exists at that path under ui/. It reads Object.keys(SpecChartAxisSchema.shape) (:35), holds its hand-kept SAMPLE (:38, nine keys) equal to that list (:52), drives every spec key through the normalizer (:55) and holds the normalized y axis's keys equal to the list (:63). The row's key set is that schema's nine keys, and the why sentence (a sample of one value per key, the normalizer's output axis, both held equal; repair in SAMPLE and in the normalizer) is what the test does. The row matches the test it names.
  • index-console-key-set. Gate: pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/EmbeddedItemEditor.indexFallback.test.tsx. The file exists. Its case at :116 filters Object.keys(IndexSchema.shape) to the keys some probe value parses and holds the console's FALLBACK_SCHEMAS.index properties equal to them (:128); the per-property case at :97 reds a control whose key the spec refuses. The why sentence says exactly that, and its tombstone warning is true of the test: a key retired in place stays in the shape, drops out of authorable, reds the equality, and moves no member this row reads. The row matches the test it names, and it states its own limit.
  • The docblock's count (eleven key sets and one arm count) equals the twelve schema rows, and "the nine key-set entries" in the ledger docblock equals the nine pins.

S2 (should-fix) — the chart-axis-key-set row names one of the two tests in that directory that hold ChartAxisSchema's keys whole. ui/packages/plugin-charts/src/normalizeChartSchema.xAxisPresentationGate-10516.test.ts reads the same shape (:46, every key but field), keeps its OWN hand-kept SAMPLE (:51), and holds the two equal at :67 in a case titled "the sample covers exactly the spec presentation keys — a new spec key fails here first". A card that adds an axis key is told to run the 7690 test and repair that file's SAMPLE; the 10516 test still reds in Test UI a round later, which is the miss this card exists to remove. Read, not probed. Fix: a second gate for that file (a second pin on the same schema, or the one gate naming both files; the LIVE binding case reads one path per gate today), and the 10516 file in the row's repair text. Two more holders of the same shape sit under ui/packages/types (chart-axis-config-7690, object-chart-axis-config-10518); those are the battery's, carried by #38362.

S1: open (should-fix) — the three pins round 1 named are answered; the population statement is still not what the search it describes returns. Answered: ChartAxisSchema and IndexSchema have rows; the HookBodySchema census is named in the "Found and NOT in this table" sentence and on #38362; the "a scope note named" qualifier is gone. But the rewritten docblock on SERVED_KEY_SET_PINS now says more than before: that under ui/ every hit outside ui/packages/types was read, and that the class holds eleven key sets and one arm count plus the four groups it lists. The same criterion (imports the spec, enumerates a schema's keys, compares whole by an equality, a count or a filter that must come back empty) also returns at least these, each outside ui/packages/types, each in neither the table nor that sentence:

scripts/pm/dispatch-gates.mjs (hits). The delta is the move N1 asked for. MEMBER_VALUE_HEAD now sits with the other two constants, all four declared before any function that reads them. Round 1's judgment of the reader, the descent and the spread walk stands unchanged: the fix commit touches none of it, and declaredKeySet reads both new rows through the path it already had (the declaration's =, the first strictObject( after it, argument 1).

scripts/pm/dispatch-gates.self-test.mjs (implementing). Agrees with the two rows. The roster, job and holder tables each carry both pins; the row count is nine; the rendering, the runnable union, the unrun-pin loop and the STALE case all run over the nine. The LIVE census reads the 7690 test's SAMPLE through declaredKeySet (the declaration regex steps over the type annotation to the =) and holds its keys equal to the row's read of ChartAxisSchema, so the row and its pin cannot drift apart quietly. The LIVE binding loop checks each new gate's file exists under ui/ and that Test UI runs the runner. N5 is the one place the coverage is thinner than its neighbours.

Implemented-by: claude/issue-37884-nested-keyset-derive
Reviewed-by: session_01FEkQ5mzSTSPADAvwapnhxr

VERDICT: PASS

…t axis key; population docblock says what was read

Claude-Session: https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oPfjnm2yWHEwkiYrn

Final green head (rework 2) · 2026-11-28T17:45Z · area o5-fleet

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 delta (thread L1-a, area o5-fleet) · read 2026-11-28T17:50Z · Head-sha: 6001cc23fcff5f763d0b92dad284f20ff09dfa0e · verdict ACCEPT (delta on ACCEPT 7242727482 at 1a5158d)

Delta read: git diff 1a5158d864 6001cc23fc -- scripts/pm/. The rest of the range is the origin/main merge (b29b77a); the net diff against the merge base is still the three dispatch-gates files.

Spot readings (mine, detached worktree at 6001cc2; tree restored, git status empty)

  • ChartAxisSchema +key → normalizeChartSchema.specAxisKeys-7690 and xAxisPresentationGate-10516 both derived.
  • IndexSchema +key → EmbeddedItemEditor.indexFallback. Regression: ListColumnSchema +key → object-schema-fls-references.
  • Control: a comment inside ChartAxisSchema's shape → nothing derived.

Checklist: l1-face --pr 38361 at 6001cc2: CLEAN, 13 items, exit 0. 26 success, 22 expected skip, 0 failed, 0 pending; mergeable_state clean. Lint · PM dispatch-gates (job 141052652279) success on this head. Still Fixes #37884, still right; no closing keyword next to #38362.

Accepted (nit, no action):

L2: the seat's contract-tier delta on this head stays owed. Landing stays the seat's hand-off (Tier H).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6001cc23fcff5f763d0b92dad284f20ff09dfa0e
Local-runs: none
Scope: scripts/pm/dispatch-gates.mjs + scripts/pm/dispatch-gates.data.mjs, scripts/pm/dispatch-gates.self-test.mjs
Security-touching: yes
Rule-change-verified: none

Delta review 2 of PR #38361 for card #37884, on the head after rework 2. Earlier records: 7242162643 on 652b1c89 (PASS, S1) and 7242763992 on 1a5158d8 (PASS, S1 open, S2 new, N4, N5). Between 1a5158d8 and this head sit one merge of main (7eda1f84, second parent b29b77a3, the PR's base; main's side touches no file under scripts/pm/, the chart spec file or the plugin-charts tests) and one fix commit (6001cc23, +59/-28 over the data file and the self-test; dispatch-gates.mjs is not in it). Read: the card's comments (rework 2 dev report 7243210786 among them), the PR body, area comment 7243275796, the three-file list, the net diff against the base (+620/-123, the same three files) and the fix commit alone, the 48 check-runs on this head (26 success, 22 skipped, none red, none pending) and the log of the Lint · PM dispatch-gates job, and family card #38362 with its three comments. The 10516 test, the 7690 test and ChartAxisSchema were read at this head. Nothing was built or run.

Result: S1: closed. S2: closed. N4: closed. N5 (nit) stands, unchanged in the tree. N6 (nit), new. No must-fix, no should-fix.

① Derived judgments

Still no published package path in the diff, so no public accept-set moves. What the delta changes in the instrument's own derivation:

  • SERVED_KEY_SET_PINS gains chart-axis-presentation-key-set: types: [], schemas: ['ChartAxisSchema'], throughSpreads: true. It reads the row chart-axis-key-set already reads (packages/spec/src/ui/chart.zod.ts:189, strictObject(options, shape), argument 1, nine keys). No new declaration row is needed and none was added. Right.
  • CHANGE_KIND_ROWS gains one row for it: one ui command, bound to Test UI, with the seven-package build prerequisite, the same binding as the four ui rows before it. The derivation WIDENS by one command: a change to ChartAxisSchema's key set now owes both chart normalizer tests. Right, and it is S2's ask.
  • The pin fires on any change to the schema's key set, a change to field included, while the row's kind text says "field aside". That is wide by one key and right for a rename: the 10516 test filters on the literal name field, so a renamed key lands in its presentation list and reds its sample. A field removed alone runs one test more than it must. Wide, never quiet.
  • The self-test's tables, counts and titles move from nine pins to ten (roster, job, holder, rendering at 20 lines, union, unrun-pin loop, STALE). Bookkeeping, and it agrees with the data.

② Semver level

skip-changeset is still right: three files under scripts/pm/, in no package and behind no exports map, so nothing is published and no bump is owed. The label is on the PR. Check Changeset reads skipped on this head (twice), the label fast path, not a missed run. Clause-②: no and Metadata-protocol: none still match the tree.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix. Closed: S1, S2, N4. Standing: N5 (nit). New: N6 (nit).

S2: closed — scripts/pm/dispatch-gates.data.mjs (implementing), the new row against the test it names. Gate: pnpm --dir ui exec vitest run packages/plugin-charts/src/normalizeChartSchema.xAxisPresentationGate-10516.test.ts. The file exists at that path under ui/ at this head. It reads Object.keys(SpecChartAxisSchema.shape) filtered on field (:46 to :48), keeps its own hand-kept SAMPLE (:51, eight keys: title, format, min, max, stepSize, showGridLines, position, logarithmic), holds the two equal at :67, and drives each key alone beside field through the normalizer's x axis (:70), expecting the object kept whole. The schema's shape at chart.zod.ts:189 is those eight keys plus field. So the pin's key set is the set the test holds, and each clause of the why sentence is what the test does: a sample of one value per presentation key, held equal to the declared keys less field; each key driven through the x axis; the repair in this file's SAMPLE and in the normalizer's x-axis gate. Both chart rows now name the sibling file and its separate SAMPLE in their repair text, which is the second half of S2's fix. A card that adds an axis key is told to run both tests and repair both samples.

S1: closed — the population docblock on SERVED_KEY_SET_PINS now claims what was measured. The sentence that said every ui hit outside ui/packages/types was read is gone. In its place: every hit under packages/ was read, and under ui/ only the files named there; the rest of the ui/ half is NOT measured, whole-set holders exist outside ui/packages/types (spec-parity files among them), this is not a census of ui/, and #38362 carries the re-measure. Each of those is true against what record 7242763992 read and against #38362 as read above. The class statement now speaks for the rows, not for the population ("the rows read eleven key sets and one arm count"), and the count is right: twelve schema rows, the ten pins reading them, the two chart tests named as two holders of one key set. "The ten key-set entries" in the ledger docblock equals the ten pins and names each. This is the route the seat chose (a narrowed claim and a carried remainder), and the tree takes it whole. No census is owed here.

scripts/pm/dispatch-gates.mjs (hits). Not in the fix commit. The judgment of the reader, the descent and the spread walk from the two earlier records stands. The new pin reaches ChartAxisSchema through the path the first chart pin uses: rowsHeldBy puts the one row under both pins, and changesServedKeySet answers the same for each. Two pins on one row is a shape the engine already had (VIEW_METADATA_MEMBERS under two pins).

scripts/pm/dispatch-gates.self-test.mjs (implementing). Agrees with the row. The roster, job and holder tables each carry the new pin; the per-schema loop now owes both chart pins for a key added to ChartAxisSchema and none for a describe(); a targeted case holds the same pair by name with its own control. The new LIVE census reads the 10516 test's SAMPLE through declaredKeySet (the declaration regex steps over the type annotation to the =, and the reader sorts both sides) and holds it equal to the row's read of ChartAxisSchema less field, and it checks that the test still filters the shape on field. So the row and its pin cannot drift apart quietly, and a test that stopped excluding field would red here. The LIVE binding loop checks the gate's file exists under ui/ and that Test UI runs the runner. All of it sits outside every slow( block and is green in CI on this head.

Implemented-by: claude/issue-37884-nested-keyset-derive
Reviewed-by: session_01FEkQ5mzSTSPADAvwapnhxr

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

维护者速读

  • 用户无感:只改派发工具 scripts/pm/dispatch-gates*,开发者改了嵌套的元数据结构时,派发清单会点名包外那几条守卫测试。
  • 为什么做:以前改 ListColumnSchema、ChartAxisSchema、IndexSchema 这类嵌套结构,派发清单漏掉对应的守卫测试,开发者要白跑一轮 CI 才发现。
  • 出错会怎样:只会让派发清单多列或少列一条本地测试,CI 仍兜底;三文件改动可直接撤回。
  • 要你做什么:批准合并 PR fix(pm): dispatch-gates derives the pins that hold nested served key sets #38361(守卫仪器 ⇒ Tier H)。契约档审核 PASS 评论 7243349977,Head-sha 6001cc23fcff5f763d0b92dad284f20ff09dfa0e。

席位意见:同意合并。契约档审核三轮(7242162643 → 7242763992 → 7243349977),两条须修均已闭;未普查的 ui 余量由 #38362 承接。本记录取代 7241987288(那条写的"L2 不欠"有误)。

席位核对 — ACCEPT · repo:objectstack#5 · Head-sha 6001cc23fcff5f763d0b92dad284f20ff09dfa0e · 2026-11-28T17:52Z

  1. 形态:open draft → main,3 files(scripts/pm/dispatch-gates.mjs / .data.mjs / .self-test.mjs),743 行 ≤ 3000,Fixes #37884,Clause-②: no,Metadata-protocol: none,skip-changeset。
  2. 前提实测:卡的失败探针(ListColumnSchema 加键不派生 metadata-core 测试)修后派生;L1-a 在本 head 自测 ChartAxisSchema/IndexSchema/ListColumnSchema 加键各派生对应测试,注释改动对照不派生(7243334087)。
  3. 门禁 check-runs:本 head 26 success · 22 expected skip · 0 failed · 0 pending,mergeable_state clean;Lint · PM dispatch-gates 2459 cases pass。
  4. 接受的偏差:慢速档 9 段在 PR 事件不跑,合并后看 main push 跑;nit N5/N6 与 field 一键放宽,不改。
  5. 范围外去向:同族未普查 ui 余量、HookBodySchema 臂、tombstone 集、N5 → dispatch-gates: whole-set key pins outside the served metadata types (ui spec-parity battery, TemplateManifestSchema, EmailServiceConfigSchema, CloneFlowRequestSchema, engine options, ExplainOperationSchema) derive no test when a key changes #38362。Skills-docs: 不欠。
  6. 落地条款:Tier H(守卫仪器);契约档 L2 PASS 7243349977 在本 head,无未闭须修;L1-a ACCEPT 7243334087。维护者批准后由席位落地(ready + auto-merge),⛔ 未批不入队。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5mzSTSPADAvwapnhxr

Approval requested (Tier H, guard instrument scripts/pm/dispatch-gates.mjs) · 2026-11-28T17:53Z

  • Head-sha: 6001cc23fcff5f763d0b92dad284f20ff09dfa0e
  • 维护者速读 and the seat's ACCEPT: comment 7243363452. Contract-tier PASS on this head: 7243349977 (no open must-fix or should-fix). L1-a ACCEPT: 7243334087.
  • After your approval the seat lands it (ready + auto-merge); it stays draft until then.

@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit 7a83d12 Nov 28, 2026
58 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-37884-nested-keyset-derive branch November 28, 2026 23:16
Nenzyz pushed a commit to Nenzyz/objectstack that referenced this pull request Dec 1, 2026
…ta types, the enum value sets and the os-regen self-test (objectstack-ai#38474)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XHogQ9ogKPxHhiFfT2UQgJi)_

Part of objectstack-ai#38362

Clause-②: no
Metadata-protocol: none

Round 2 (head 1d29ce8): answers the contract review's S1 and S2, plus
N3 and N6. The nav target editor's shared base and the navigation
union's arm list are rowed, and the translation preview census is named
as unreadable. Four value-set holders outside the spec-parity files are
rowed, and every other value-set holder is stated as unmeasured,
`packages/` included. N1, N2, N4, N5 and N7 stay on the card (Acceptance
notes).

## 维护者速读

- 用户能看到什么变化:用户无感;开发 agent
改动发布清单、邮件配置、流程复制请求、引擎查询选项、权限解释动词、导航条目类型或若干界面与字段类型枚举时,派发工具现在会点名会因此变红的那条测试,改动生成产物的合并路由时也会点名合并脚本的自检。
- 为什么做:属于派发工具的门禁推导收口工作,替开发 agent 省掉"本地全绿、CI 才红"的一轮返工。
- 出错会怎样:最坏是多点名或漏点名一条测试,CI 仍是兜底;改动只在内部工具里,可以直接撤回。
- 要你做什么:这是受管的派发工具文件,需要你按人合档审核后合并。

## What changes

`scripts/pm/dispatch-gates.mjs` now derives, from the diff, the
whole-set pins the card lists that derived nothing, using the `schema` /
`schemas` / `within` rows objectstack-ai#38361 added (no path match anywhere):

- **Non-metadata key sets.** New `SERVED_KEY_SET_DECLARATIONS` rows and
one `SERVED_KEY_SET_PINS` entry per pinning test: the template manifest
(three rows: the create-package request literal, the `.omit()` literal
whose keys are the dropped keys, the `.extend()` literal) to the cli
publish partition; the email service config to plugin-email's config
parity; the clone request to the runtime clone route test; the base
engine options plus the five `.extend()` bags to objectql's engine
option drift pin.
- **Enum value sets.** `declaredKeySet` reads a bracket-opened literal
through the new `arrayLiteralElements`, so a `call: 'z.enum'` row
answers the VALUE set: the explain operation enum to the three
plugin-security tests that hold it to a table each, and nine ui
value-set holders (bulk operations, column summaries, field types, chart
types on three tests, report types, chart aggregates, notification
positions on two tests, notification types).
- **ui spec-parity battery, by measurement.** One key or value added to
each of 43 spec schemas the 37 `*spec-parity*` files (and the two
app-shell censuses scope note 2 names) import, spec dist rebuilt, those
files run. Rows for every file that went red: the console
registry-inputs parity (list view, record picker, text input props), the
navigation mirror's doc arm (DocNavItemSchema plus a spread row for the
BaseNavItemSchema it spreads, which the unwatched-spread census
requires), and the nine value-set holders above.
- **Round 2: the nav union's arm list and the nav target editor.** A new
declaration row reads the navigation item union's arm list
(`z.discriminatedUnion`, argument 1, through `arrayLiteralElements`:
each arm, or a chained arm's whole text, is one element). The doc arm's
pin now holds it as well, because `navigation-spec-parity` holds the
spec discriminators equal to a triaged list. A new pin
`nav-target-key-set` derives `nav-target.navEntryTypes-11790`, which
holds the editor's entry types equal to the union's arms and needs a
carried value for every key the non-separator arms share. It holds the
union row and the doc arm, so a key added to the base derives it through
the doc arm's spread. A key added to the doc arm's own members derives
it too, which is wide (the shared set does not move) but never quiet.
The arm list is read as a set, so a reorder derives nothing.
- **Round 2: value-set holders outside the spec-parity files.** These
four rows were read from each test's assertion. Each test compares the
enum's options whole; the three ui ones were also measured red below.
They are the analytics `measure-result-type` table (FieldType), the cli
`generate-field-type-vocabulary.pin` (FieldType), the types
`object-chart-families-11513` mirror (ChartTypeSchema) and the
plugin-grid `spec-symbol-batch7` probe (ColumnSummarySchema). Every
other value-set holder is unmeasured, and the data docblock now says so;
FieldType's options alone are enumerated by some 46 test files outside
the spec package.
- **Round 2: docblock and kinds.** The pins docblock no longer says the
spec-parity battery and the non-metadata pins are unrowed (N3). It names
the translation preview census as unreadable: its set is
`TranslationDataSchema.shape`, which `appTranslationDataShape()`
returns, and a row has no literal to address. The three explain rows
carry distinct `kind` strings, so the self-test binds each to its own
pin (N6).
- **Folded row.** New change-kind row `os-regen-merge-input`:
`scripts/pm/os-regen-merge.sh` on any edit, or `.gitattributes` when its
`merge=os-regen` patterns differ between merge base and working tree,
derives `bash scripts/pm/os-regen-merge.sh --self-test`. It binds
through the existing `ciJob`/`ciRunner` mechanism to the `Lint · repo &
tooling gates` step (the family discovery reads only `node … .mjs
--self-test`, so no family carried it).

## Tests

<details><summary>Probe table: measured before (e4a02be) and after, one
probe per member</summary>

Each probe adds one key (or one enum value) to the literal the row
reads, runs `node scripts/pm/dispatch-gates.mjs --commands` (no paths,
off the merge base), and counts the pinning test's lines. The edit was
in the working tree, never committed or pushed, and was reverted after
each probe.

| Member (probe) | Pinning test | Before | After |
|---|---|---|---|
| TemplateManifestSchema `.extend()` key | cli
`package-publish-uncarried-manifest-keys` | 0 of 72 | 1 |
| TemplateManifestSchema `.omit()` key | same | not probed separately
(no predicate on the file) | 1 |
| CreatePackageRequestSchema key | same | 0 of 72 | 1 |
| EmailServiceConfigSchema key | plugin-email
`capability-arg.config-parity.contract` | 0 of 71 | 1 |
| CloneFlowRequestSchema key | runtime
`automation-flow-clone-custom-package` | 0 of 73 | 1 |
| BaseEngineOptionsSchema key | objectql `engine-unknown-option` | 0 of
75 | 1 |
| EngineQueryOptionsSchema `.extend()` key | same | 0 of 75 | 1 |
| ExplainOperationSchema value | plugin-security: three tests | 0 of 75
| 3 |
| 43 ui schemas at once (combined probe) | any ui spec-parity file | 0
of 83 | per-member rows below |
| ListViewShapeSchema / ElementRecordPickerPropsSchema /
ElementTextInputPropsSchema key | console `registry-inputs-spec-parity`
| 0 (combined) | 1 each |
| DocNavItemSchema key / BaseNavItemSchema key | types
`navigation-spec-parity`; round 2 also app-shell
`nav-target.navEntryTypes-11790` | 0 (combined) / not probed | round 1:
1 / 1; round 2: 2 / 2 |
| Round 2: an arm added to the navigation union |
`navigation-spec-parity` and `nav-target.navEntryTypes-11790` | 0
(review's measurement at 6dae2e6) | 2 |
| Round 2: a describe() reworded inside a chained arm's text | same |
n/a | 2 (wide, never quiet: the arm's text moved) |
| Round 2 CONTROL: a describe() reworded in BaseNavItemSchema | any pin
| n/a | 0 |
| Round 2: a group added to the translation shape builder | app-shell
`TranslationPreview.categories-11765` | 0 | 0 (no row can read it; named
in the docblock and below) |
| BulkActionOperationSchema value | types `bulk-action-spec-parity` | 0
(combined) | 1 |
| ColumnSummarySchema value | plugin-grid `summary-spec-parity`; round 2
also plugin-grid `spec-symbol-batch7` | 0 (combined) | round 1: 1; round
2: 2 |
| FieldType value | app-shell `field-types.spec-parity-11909`; round 2
also service-analytics `measure-result-type` and cli
`generate-field-type-vocabulary.pin` | 0 (combined) | round 1: 1; round
2: 3 |
| ChartTypeSchema value | widget-dispatch, chart-type, report
spec-parity; round 2 also types `object-chart-families-11513` | 0
(combined) | round 1: 3; round 2: 4 |
| ChartAggregateFunctionSchema value | plugin-dashboard
`pivot-aggregation-spec-parity` | 0 (combined) | 1 |
| ReportType value | plugin-report `report-spec-parity` | 0 (combined) |
1 |
| NotificationPositionSchema value | toaster-position,
animation-notification spec-parity | 0 (combined) | 2 |
| NotificationTypeSchema value | react
`animation-notification-spec-parity` | 0 (combined) | 1 |
| CONTROL: a describe() reworded in the email config | any new pin | n/a
| 0 |
| `.gitattributes`: a `merge=os-regen` line added | `os-regen-merge.sh
--self-test` | 0 of 12 (path named) | 1 |
| CONTROL: `.gitattributes`: an unrelated attribute line added | same |
n/a | 0 |
| `scripts/pm/os-regen-merge.sh` edited | same | 0 of 26 (path named) |
1 |

Before-readings for the folded row name the path on argv (the predicate
did not exist, so diff mode cannot differ); after-readings are diff
mode.

</details>

<details><summary>ui measurement: which spec-parity files go red on a
probe</summary>

43 probes landed at once, spec built with `OS_SKIP_DTS=1` plus the seven
packages Test UI builds, then `pnpm --dir ui exec vitest run` over the
39 files. Red on a probe (rows added): registry-inputs (3 cases),
navigation doc arm, bulk-action, summary, field-types (3),
widget-dispatch, chart-type, report (2), pivot-aggregation,
toaster-position, animation-notification (2). Green for the probed key
(mostly mirrors that derive from the spec schema): list-view,
page-app-dashboard, object-view, export-options, select-option,
spec-subschema, validation-rule, view-navigation-config,
zod-mirror-parity, number-field-step, sectionFields,
record-picker-inputs, text-input-inputs, the three plugin-detail inputs
files, timeline-scale, dataset-result-field, gesture,
add-record-position, user-filter-arity. Round 1 also listed nav-target
navEntryTypes and TranslationPreview categories as green, but those
greens measured nothing: the nav probe landed on the doc arm's own keys,
while the editor holds the shared base and the arm list; and the
translation probe had no literal to land on. Red for a reason that is
not a probe: auth, share-filter-sort, offline-nav (export-NAME parities
that read the declaration files, absent from a no-dts build). Not
measured: page-nav-misc, report-chart-query (their suites read the
declaration files).

Round 2, measured at the new head's tree with the same seven-package
build: a clean run of five files is green (navigation-spec-parity 57,
nav-target 33, object-chart-families 27, spec-symbol-batch7 6,
TranslationPreview 25 cases). Probe A added a key to BaseNavItemSchema,
a value each to ChartTypeSchema and ColumnSummarySchema, and a group to
the translation shape builder. It turned all five red:
navigation-spec-parity 1 case (doc arm keys), nav-target 3 (the shared
base), object-chart-families 1, spec-symbol-batch7 1, TranslationPreview
24. `--commands` on probe A named the first four, and not
TranslationPreview. Probe B added an arm to the union (a new `probe`
type spreading the base). It turned navigation-spec-parity red (1 case:
"the spec discriminator is still the triaged set") and nav-target red
(2: "offers every member the spec declares", "isNavEntryType answers the
same membership"), with the other three files green. `--commands` on
probe B named exactly those two. Every probe was reverted, its
build-written `authorable-surface/*.json` restored, and the dist rebuilt
clean before the gates ran.

</details>

<details><summary>Self-test and ablation</summary>

- `node scripts/pm/dispatch-gates.mjs --self-test --fast` at e471b76:
`✓ dispatch-gates self-test (fast tier): 2593 cases pass; 9 slow
section(s) deferred.`
- New cases: the element reader (quoted, spread, call, comments,
unclosed); a `z.enum` row and a chained `.omit()`/`.extend()`; the
generic per-row loops now cover every new row (a key or value added
derives exactly the pins that hold it; a describe() derives none) with
fixtures for enum and chained declarations; the doc arm's spread of the
base nav item (derives once spread, CONTROL not); eighteen LIVE spelling
checks plus LIVE censuses against the clone and email literal lists and
the manifest's composed key set; the os-regen predicate on seven edit
shapes, the unchanged and script-path cases, its binding resolving
against lint.yml, its rendering, `--ran` and STALE.
- Ablation at e471b76 (three mutations landed with
`scripts/ablation-replace.mjs --hold`, grep-counted on disk): the
bracket branch of `declaredKeySet` removed, the `.gitattributes` diff
read replaced with `return false`, and the clone pin's `schemas`
emptied. Fast tier: `66 of 2593 case(s) failed`, each in the mutated
family (every enum row and every fixture file holding one, the three
`.gitattributes` derive cases and the os-regen rendering, the clone
pin's nested-row, rendering and `--ran` cases). Restored with
`--restore`: blob equals HEAD and `git diff HEAD` empty.
- Round 2, `--fast` at 1d29ce8: `✓ dispatch-gates self-test (fast
tier): 2615 cases pass; 9 slow section(s) deferred.` New cases cover
several things. The union row's reader: a chained arm is read as its own
text, a comment is no arm, and a declaration with no union is null. An
arm added or removed derives both nav pins and no other, and a reorder
derives nothing. A key added to the base now derives both nav pins
through the doc arm's spread. A LIVE census checks that the union's arm
count equals the triaged list the doc arm's test holds, and that the doc
arm is an arm. There are five more LIVE spellings, each matching the
test's whole-set assertion rather than a bare schema name. The pin/row
agreement and rendering tables were updated, and ksLines is now 66. One
ablation (`ablation-replace.mjs --hold`): `NavigationItemSchema` removed
from the nav target pin's `schemas` gave `3 of 2615 case(s) failed`.
They were the pin-table case and the two arm cases; the generic per-row
loop stayed green because its expectation is derived from the pin table.
`--restore`: blob `ccdc84b98f61` equals HEAD.

</details>

## Acceptance notes

- Uses `Part of`, not a closing keyword (L1 accepted): the card's scope
notes carry members this PR does not close. Left on the card:
- The rest of ComponentPropsMap's props schemas the registry-inputs
parity walks (three are rowed). The list view entry is among them: its
registered props schema declares keys of its own beside the list view
shape the row reads (N4).
- The two dogfood tests holding the explain verbs: they run only in the
queue's dogfood shards, and no gate binding names that job.
- `page-nav-misc` and `report-chart-query`: not measured, because their
suites read the declaration files.
- The translation preview census
(`TranslationPreview.categories-11765`). It goes red when a group is
added, but its set is a function's return, so no row can read it. A
reader for an arrow function's returned literal would be needed.
- Every value-set holder outside the spec-parity files other than the
four rowed here, `packages/` included, is unmeasured. No search for an
enum's options held whole was run.
- Scope note 1's HookBodySchema arm census: there is no record to read
the language set from.
- Scope note 3's LIVE census of the console index editor's own property
list.
  - A census of `ui/` beyond the spec-parity files.
  - Review nits for the card:
    - N1: a chain link added after a rowed literal is not read.
- N2: a lost place on a spread row now derives the 32 pins that read
through spreads, up from 27 at round 1.
- N5: `os-regen-merge.sh --self-test` also holds `OS_REGEN_CLASSES` to
the regen driver's `mixed:` rows, which the folded row does not watch.
    - N7: nine LIVE spellings are a bare schema name.
- The tombstone sets stay out by construction: a key retired in place
moves no key set.
- The nine package-test rows were classified by reading each assertion
(each compares the schema's keys or the enum's options whole), not by
running a probe through them. The ui rows were classified by running.
- Guard instrument (`scripts/pm/dispatch-gates.mjs`): Tier H, stays
draft.

## Verification

Read first, by risk: (1) the `nav-target-key-set` and
`nav-doc-arm-key-set` pins and the `NavigationItemSchema` declaration
row in `scripts/pm/dispatch-gates.data.mjs`, which read the base through
the doc arm and the arm list as a set; (2) `changesOsRegenRouting` and
`arrayLiteralElements` in `scripts/pm/dispatch-gates.mjs`, the new
readers; (3) the `SERVED_KEY_SET_PINS` docblock, which says what is
measured and what is not.

Two-minute check: add `docs/x/** merge=os-regen` to `.gitattributes` and
run `node scripts/pm/dispatch-gates.mjs --commands`; the list contains
`bash scripts/pm/os-regen-merge.sh --self-test`.

<details><summary>Local gates at 1d29ce8 (round 2, after merging
origin/main at 194f3d9)</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 63 commands, the same set as round
1. They ran sequentially in one `os-verify-lock.sh` batch (slot
issue-38362, `VERDICT command-exit 0`), together with the round-2 arm
probe and the clean rebuild before it. Each exit code was captured
before any pipe:
- 62 exited 0.
- `pnpm check:i18n-coverage` exited 3 (`PREREQUISITE NOT MET — the
workspace CLI is not built`). The diff touches no package, and CI's Lint
& Repo Gates runs it.
- `check:pm-dispatch-gates`: `✓ dispatch-gates self-test (fast tier):
2615 cases pass; 9 slow section(s) deferred.` The slow tier was not run
locally; it runs on CI's push/schedule tier.
- `--ran`: `✓ dispatch-gates --ran: 63 derived famil(ies) accounted for
— 62 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).`
- `node scripts/pm/overlap-check.mjs` reported `VERDICT clean exit 0`
before the push.

Round 1 at 6dae2e6 had the same 63 commands with the same results,
except that the self-test ran 2593 cases.

</details>

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No spec file touched.)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (CI owns the repo-wide
lint run.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset: nothing publishes
(`scripts/pm/**`), labelled `skip-changeset`; both declaration lines are
above.
- [x] 6. `packages/spec` touched: not touched.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English (the 维护者速读 block is the
template's Chinese section).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5oPfjnm2yWHEwkiYrn)_
<!-- signed: repo:objectstack#5 · os-project-manager ·
session_01FEkQ5oPfjnm2yWHEwkiYrn -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/l skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

3 participants