Skip to content

feat(lint)!: refuse a lookupFilters { $record } path through or to a multi-valued field - #34489

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-th73j6
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-th73j6

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34378

Clause-②: no (narrowing) — a lookupFilters[].value { $record } path on a lookup, master_detail or user field whose first segment is a multi-valued field of the object owning that field (a plain path to it, or a hop through it), or whose leaf behind a single-valued hop is a multi-valued field, linted clean and published; it is now refused at error as object-field-ref-unknown by os lint, os validate, os build and the runtime publish door, and reported (never refused) on the package publish receipt's object probe.
Metadata-protocol: narrowed
Skills-docs: follow-up #34201 — no doc or skill teaches { $record } yet, so there is no teaching to correct here; the multi-valued clause rides the describes this change edits.

维护者速读

  • 改了什么:查找字段 lookupFilters 里的 { $record: "路径" }(读取正在编辑的记录)如果指向或穿过多值字段(multiple: true 的查找/选择/人员字段,或多选、复选框、标签字段),lint 现在直接报错并点名那个字段。
  • 为什么改:$record 代表"一个值",只配 eq/ne/gt/lt/gte/lte 这类单值比较;多值字段是一个列表,之前 lint 照样放行,结果选择器要么悄悄丢掉这条过滤,要么拿列表去比单值,过滤看着对、实际不生效。
  • 风险与回滚:只收紧同一条 lint 规则(object-field-ref-unknown 的 $record 成员);examples / 平台对象 / 插件 / skills / 文档样例实测 0 处写 $record 路径,无存量受影响。客户端半边(选择器丢弃该条并给开发提示)在 ui: a lookupFilters { $record } path through or to a multi-valued field is sent as a list (plain path) or silently dropped (hop) with no dev warning #34389,不在本 PR。回滚即 revert。
  • 先看:packages/lint/src/validate-object-field-refs.ts(multiValuedSegment 与 $record 槽位后的判读)、packages/lint/src/validate-object-field-refs.test.ts(多值一组 8 条)、packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-multi-valued-refused.ts。
  • 两分钟验证:pnpm --filter @objectstack/lint exec vitest run src/validate-object-field-refs.test.ts,预期 127 条全绿,其中多值一组 8 条。
  • 需要你做的:无,席位落地。

What changes

  • object-field-ref-unknown, lookupFilters[N].value.$record member: a path that already resolves is judged for cardinality too (a new slot property singleValued, set only on that member). The predicate is spec's own isMultiValueField (@objectstack/spec/data), the one FieldSchema reads: an inherently multi type (multiselect, checkboxes, tags), or multiple: true on a multi-capable type. No second copy of the type list.
    • A multi-valued FIRST segment of the owning object is refused at the head, whether the path ends there (tags) or hops through it (accounts.cb_market): message ... names "tags", a multi-valued field ... / ... goes through "accounts", a multi-valued field ....
    • Behind a single-valued hop, a multi-valued LEAF is refused at the leaf, naming the leaf's object (account.markets ends at markets on crm_account).
    • Judged only on a path the family's resolution did not already refuse (a misspelt leaf behind a multi hop is reported once, as the miss). A registry-injected column and a leaf on an object outside the stack stay unjudged, as today. A multi-valued head pointing outside the stack is still refused: the head is the owning object's own field.
    • Hint: Point $record at a single-valued field ....
  • rule-explanations.ts: the $record paragraph of os explain object-field-ref-unknown names the multi-valued refusal.
  • packages/spec/src/data/field.zod.ts: the LookupFilterRecordReferenceSchema describe and the lookupFilters[].value describe each gain one clause: such a path has no single value, is not resolved, and lint refuses it. No client behaviour is claimed; the picker's handling is ui: a lookupFilters { $record } path through or to a multi-valued field is sent as a list (plain path) or silently dropped (hop) with no dev warning #34389 (named in the jsdoc only — the describes carry no tracker ids). The value describe keeps main's sentence on the server refusal of an unresolved { $record }.
  • ADR-0087 semantic entry lookup-filter-record-path-multi-valued-refused (template: lookup-filter-record-path-unknown-refused); the id does not collide on main at 0e2e4f56.
  • Regenerated content/docs/references/data/field.mdx.

First-party exposure (measured at 7f731083)

git grep -lE for a $record: key with a string value, outside *.test.ts(x) and content/docs/references/**: zero files in examples/, packages/platform-objects, packages/plugins, packages/services, packages/qa, skills/, content/docs/ and ui/examples. Repo-wide the only hits are changesets, the spec/lint/core sources and semantic entries, and the ui picker reader. Positive control: the same expression counts 8 lines in packages/lint/src/validate-object-field-refs.test.ts. Verdict: nothing first-party to judge; no shipped app's picker changes.

Tests

packages/lint/src/validate-object-field-refs.test.ts, new block a path through or to a multi-valued field (8 cases); every refusal asserts severity: 'error', rule: OBJECT_FIELD_REF_UNKNOWN, the path and the hint:

case verdict
plain path to tags refused, names "tags" (full message pinned)
plain path to a multiple: true select refused
hop through a multiple: true lookup accounts.cb_market refused at the hop (full message pinned)
hop through a multiple: true user field refused at the hop
hop through a multi lookup to an object outside the stack refused at the head
multi-valued leaf account.markets behind a single hop refused at the leaf, on crm_account (full message pinned)
misspelt leaf behind a multi hop one finding, the miss
CONTROLS: plain single field, single lookup, single hop, multiple: false select, hop to an injected column clean

Forced edits to existing tests, named: the shared quote fixture's crm_account gains a markets: multiselect field (no existing case reads it), and the one-line-verdict fact list gains a path through or to a multi-valued field.

Ablation (scripts/ablation-replace.mjs; restored blob == HEAD)

Cardinality read disabled (if (!hit && slot.singleValued) { → guarded by an unset global marker): Tests 6 failed | 121 passed (127) — exactly the six refusal cases; the miss case and every control stayed green. Restored: blob fd916767 == HEAD, git diff HEAD empty. The test imports ./validate-object-field-refs.js relatively (source, not dist), so no rebuild leg applies.

Acceptance notes

Verification

Readings at head 7f731083 (merge of origin/main e8cba8fe; the incoming commits touch only ui/), after a full pnpm build --concurrency=2 (119 tasks, VERDICT command-exit 0).

  • @objectstack/lint typecheck exit 0; test: Test Files 214 passed (214), Tests 9091 passed (9091).
  • @objectstack/spec typecheck exit 0; vitest run src/data src/migrations: Test Files 178 passed (178), Tests 6556 passed | 1 todo (6557).
  • @objectstack/cli unit test/explain-rule-id.test.ts (iterates every os explain entry): Tests 14 passed (14).
  • pnpm --filter @objectstack/spec check:generated: content/docs/references/** stale until gen:schema && gen:docs regenerated field.mdx (committed); check:test-typecheck exit 0 when re-run with a 4 GB heap (the first run died in tsc without diagnostics, a heap reading, not a finding).
  • Full dogfood battery (title carries !, Clause-② carries (narrowing)): running at this head when the PR opened; the reading follows on the card report.
Derived gate round at 7f73108: dispatch-gates --commands gives 117 families; --ran gives 117 run, 0 NOT-MEASURED, 0 UNRUN

All 117 exited 0 on their first run at this head (check-plugin-teardown-shape --self-test after fetching its pinned fixture commit).


🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmR92m7ZN6cUVQTj1VE

…i-valued field

A { $record } comparand stands for one value under a scalar operator; a
path whose head is multi-valued (a plain path to it or a hop through it),
or whose leaf behind a single-valued hop is, now fails
object-field-ref-unknown, judged by isMultiValueField. The describes say
so, with an ADR-0087 semantic entry and a changeset.

Claude-Session: https://claude.ai/code/session_01ADHkmP9xmb6H4wxJ2AJQEW
Co-authored-by: Claude <noreply@anthropic.com>
…ers value describe

Claude-Session: https://claude.ai/code/session_01ADHkmR92m7ZN6cUVQTj1VE
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:data tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/lint, @objectstack/spec, touching 11 documentable anchor(s).

11 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-driven.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/external-datasources.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/field-types.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/validation-rules.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/deployment/troubleshooting.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/deployment/validating-metadata.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/getting-started/quick-reference.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/kernel/contracts/data-engine.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/backward-compatibility.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/objectql/types.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/objectui/concept.mdx (via FieldSchema (symbol, a top-level const))

⛔ 4 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-1.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-3.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-4.mdx (via FieldSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 4 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 24b6ae55016b74c4bcef81f09cdaa4684ffc9423 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c18c806474cdef99dddeb54c6eae08c669f8fdcf — the merge of head 7f7310830a0d4fa73576d316afafc25dbb134b2d into base 24b6ae55016b74c4bcef81f09cdaa4684ffc9423, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c18c806474cdef99dddeb54c6eae08c669f8fdcf && git checkout c18c806474cdef99dddeb54c6eae08c669f8fdcf
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 24b6ae55016b74c4bcef81f09cdaa4684ffc9423 7f7310830a0d4fa73576d316afafc25dbb134b2d && git checkout -B drift-repro 24b6ae55016b74c4bcef81f09cdaa4684ffc9423 && git merge --no-ff 7f7310830a0d4fa73576d316afafc25dbb134b2d

node scripts/docs-audit/affected-docs.mjs --json 24b6ae55016b74c4bcef81f09cdaa4684ffc9423

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 24b6ae55016b74c4bcef81f09cdaa4684ffc9423 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 7f73108 · 2026-11-16T23:22Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7f7310830a0d4fa73576d316afafc25dbb134b2d
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-multi-valued-refused.ts + packages/lint/src/validate-object-field-refs.ts, packages/lint/src/rule-explanations.ts, packages/lint/src/validate-object-field-refs.test.ts (narrowing floor, all in the diff); read, not reviewed: packages/spec/src/data/field-value.zod.ts (isMultiValueField, MULTI_CAPABLE_TYPES), packages/lint/src/object-graph.ts (GraphField, graphFieldOf, resolveFieldPath), ui/packages/fields/src/widgets/lookupRecordReference.ts (readRecordPath, resolveLookupFilters), packages/spec/src/migrations/entries/semantic/18.lookup-filter-record-path-unknown-refused.ts (the template entry), card #34389 (the client half the jsdoc cites)

Inputs read: card #34378 body and all 9 comments, PR #34489 body, file list and 2 comments, the net diff from merge-base e8cba8fe to the head (7 files, +218/-8), the 68 check-runs on the head, and the log of the one failed shard. No path this diff touches differs between the merge-base and current main.

① Derived judgments

  • Accept-set, narrowed, right. object-field-ref-unknown at lookupFilters[N].value.$record now also refuses a path that resolves when (a) its first segment is an authored multi-valued field of the owning object, whether the path ends there or hops through it, or (b) its leaf behind a single-valued hop is an authored multi-valued field. Read in validate-object-field-refs.ts: the check runs only when judge reported nothing (!hit) and only on the one slot carrying singleValued, so no other member of the family changes verdict, and a path the family already refuses gets one finding, never two (pinned by the misspelt-leaf case).
  • Predicate, right. multiValuedSegment calls spec's isMultiValueField with the graph slice's type and multiple === true; graphFieldOf carries multiple as true or undefined, so the call is exact. No second copy of the type list enters lint.
  • Unjudged cases, right and as declared. An injected head is not in fields and is skipped; an injected leaf is skipped by verdict.injected; a leaf on an object outside the stack is unknowable and skipped; a multi-valued head whose target is outside the stack is still refused, because the head is the owning object's own field (pinned by partners.anything and watchers.department).
  • Parse accept-set, unchanged, right. LookupFilterRecordReferenceSchema and its path regex are untouched; only two .describe strings and one jsdoc paragraph change in field.zod.ts. The parse still accepts the spelling; the refusal is lint's, which is what both describes say.
  • Public surface, right. One new ADR-0087 semantic entry id, lookup-filter-record-path-multi-valued-refused; no id collision at the head or on current main. The regenerated field.mdx rows match the two describes word for word.
  • Consumers, unchanged. The rule still reaches os lint / os validate / os build, the metadata doors and the publish receipt probe through the same exports (reference-integrity-suite.ts, authoring-rules.ts, build-probes.ts); the diff adds a finding to an existing rule at its existing severity, so the changeset's list of doors is the rule's existing wiring and not a new claim.

② Semver level

  • Changeset @objectstack/lint: minor, @objectstack/spec: minor, with Clause-②: no (narrowing) and Metadata-protocol: narrowed on both the PR body and the changeset, a BREAKING paragraph, FROM/TO and a fix. This matches what the diff publishes: lint refuses metadata it accepted before (a narrowing, carried as minor under the repo's no-major rule), and spec publishes new describe text plus one semantic entry. Check Changeset is green on the head.
  • The Clause-② sentence is accurate against the tree: first segment or leaf, the three picker field types, error severity, and "reported, never refused" on the receipt probe.
  • The exposure claim (zero first-party $record paths) is the dev's measurement; nothing in the diff or the green lint and dogfood gate families contradicts it.

③ Boundary flags

  • open_questions 1 (contract review needed): answered by this record.
  • open_questions 2 (Test Core red): read. Check-run Test Core (3/8) failed in step @objectstack/mcp#test; first error line: FAIL src/mcp-file-tools.test.ts - read_file extracts PDF and Word text on a worker pool, off the request thread - out of CPU budget on the worker: the pages read so far, truncated, with the budget note, as in-process, AssertionError at src/mcp-file-tools.test.ts:950:19 (expected content: "text", truncated: true; received content: "none"), 1 failed of 1226. The aggregate Test Core check is red for that shard alone; the other seven shards are green. It does not touch this diff: no file under packages/mcp is changed, the failing assertion is a CPU-budget timing reading on a PDF worker, and the diff's spec half is describe text plus a migration entry that the test does not read. By reading it is unrelated; it is NOT cleared here. The head still carries a red required check, and it needs a re-run of that job (or a fresh head) before landing. Option A of the dev's question stands.
  • open_questions 3 (describe wording, "is not resolved"): answered in ④ as N1; option A, keep as ruled.
  • Dev deviations: the attribution lines ahead of Fixes #34378 and the dev-run dogfood battery are process matters for the lane seat, with no contract effect.
  • SQL push-down: not applicable. The change is a pure in-memory judgment over the authored stack; no query, no id materialisation, no in-app join.
  • Skills-docs follow-up skills/docs: teach the lookupFilters { $record } reference and orEmpty (relationships.mdx, fields.mdx, field-types.md) #34201: accepted as declared; no skill or hand-written doc teaches $record in this diff's reach.

④ Design judgment

No must-fix, no should-fix.

Narrowing face. Read against the published spec on main: the $record comparand is declared as one value of the edited record, paired only with the six scalar comparisons, never a member of an in / notIn list. A multi-valued field holds an array by the spec's own value contract (isMultiValueField decides z.array(element)), so a path through or to one never had a declared single value. The refusal makes the spec's own limit real at authoring; it takes no declared capability away. Nothing was declared and left undelivered: the card measured both shapes as already broken in the picker (a hop is left out silently, a plain path sends the list under a scalar operator), confirmed here in readRecordPath.

packages/spec/src/data/field.zod.ts. The jsdoc and both describes state the same rule with the same field classes, and name isMultiValueField as the definition. "One flagged multiple: true, or a multiselect, checkboxes or tags field" agrees with the predicate on every stack that parses, since FieldSchema refuses multiple: true outside the multi-capable types and on radio. Its first consumer, the lint member, implements exactly these three shapes.

18.lookup-filter-record-path-multi-valued-refused.ts. Surface, replacement, reason and acceptance criteria agree with the code sentence by sentence: the doors and loaders are the template entry's, the two refused shapes match multiValuedSegment, "not judged" matches the injected and out-of-stack skips, and "no mechanical rewrite" is honest. The reason states the client's present behaviour for both shapes correctly.

packages/lint/src/validate-object-field-refs.ts. Attempts to break it, all held: a two-hop path returns before the check; a hop through a non-relationship multi-valued field (tags.x) is already a miss, reported once; a multi-valued head with a misspelt leaf is reported once as the miss; multiple: false and an absent flag read as single; a leaf reached through an injected hop is unknowable and skipped; the head lookup reads authored fields only, as the slot's docblock says. The header docblock, the slot docblock and the message agree with the code.

packages/lint/src/rule-explanations.ts. The added sentences match the three shapes and the reason; the one-line-verdict fact list pins the phrase.

packages/lint/src/validate-object-field-refs.test.ts. Six refusals each pin severity, rule, path and hint (three pin the full message), one pins the single finding on a miss, and one control set covers a plain field, a single lookup, a single hop, a multiple: false select and an injected-column leaf. The dev's ablation reading (exactly the six refusals fail) fits the shape of the guard.

N1 (nit) — "it is not resolved" in the two describes is true today of the hop shape only; for a plain path to a non-empty multi-valued field the picker on main still sends the list (readRecordPath returns the collapsed value, resolveLookupFilters pushes it). Card #34378 Expected item 2 rules this clause in these words and splits the client half to #34389, which is open, in the ui queue, and named in the jsdoc. Lint now refuses such a path at every door and measured exposure is zero, so no authored stack reaches the gap through a gated route. Accepted deviation, carried by #34389; no change on this head.

Observation outside the card, not a finding on this diff: a $record path to a structured field (json, repeater, location, address, vector) also yields no scalar and is not judged by this predicate. The card scopes the rule to multi-valued fields; a follow-up card may weigh it.

Implemented-by: claude/project-thread-th73j6
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Flake judgement · 2026-11-16T23:27Z · Test Core (3/8) on head 7f7310830a0d4fa73576d316afafc25dbb134b2d (run 43972894618, job 133670858206)

  • First error: packages/mcp/src/mcp-file-tools.test.ts:950, test "out of CPU budget on the worker", expected facts content: "text", got "none". The test gives the PDF worker a 30 ms CPU budget and expects at least one page read inside it; "none" means no page finished inside 30 ms on that runner, a timing outcome of a loaded machine.
  • This PR changes packages/lint/**, a packages/spec/src/data/field.zod.ts describe, a semantic migration entry and a generated docs page. It does not touch packages/mcp, and packages/mcp reads none of the changed rule code.
  • The dev's local run of @objectstack/mcp on this head: 1223/1223 passed. Every other required check on this head is green.

Judged a flake: the failed jobs are re-run once through scripts/pm/rerun-failed.mjs. A second failure is treated as real.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Final head · 2026-11-16T23:57Z
Head: 7f7310830a0d4fa73576d316afafc25dbb134b2d

  • CI: every required check green on this head; Test Core (3/8) passed on its one re-run (attempt 2, job 133692293516) after the flake judgement 6932525350, and the Test Core aggregate is green.
  • Contract review: PASS on this head (record 6932506491).
  • Dogfood battery: run by the dev on this head (report 6932366621).
    Sent to L1 for a first review on this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSmxJiAWk7fuq3Q1Sf

席位核对

L1 verdict: ACCEPT · card #34378 · area o2-A · first review · read at 2026-11-16T23:59Z
Head-sha: 7f7310830a0d4fa73576d316afafc25dbb134b2d (the final head announced in comment 6933122514)

Checklist, read against GitHub and origin/main, not against the report:

  • Shape. Draft, base main, mergeable_state: clean. The first card line is Fixes #34378, and a closing-keyword scan of the whole body finds no other match. Fixes is right: the card carries only the spec + lint half. The client half was split to ui: a lookupFilters { $record } path through or to a multi-valued field is sent as a list (plain path) or silently dropped (hop) with no dev warning #34389 (open, domain:ui), and that split is recorded on ui: a lookupFilters { $record } path through or to a multi-valued field is sent as a list (plain path) or silently dropped (hop) with no dev warning #34389 ("lookupFilters { $record }: a path through or to a multi-valued field has no declared answer #34378 now carries only the lint + describe half") and in the spec seat's delta. No ui/ file is in the diff.
  • File surface (get_files, 7 files, +218/-8): packages/lint/src/validate-object-field-refs.ts, its test, packages/lint/src/rule-explanations.ts, packages/spec/src/data/field.zod.ts (describes and jsdoc only), the new ADR-0087 semantic entry 18.lookup-filter-record-path-multi-valued-refused.ts, the regenerated content/docs/references/data/field.mdx, and .changeset/34378-…md. This is the delta's surface. The field.mdx change is generated, not hand-edited: its two rows match the two describes word for word, and Lint & Repo Gates, which carries check:generated, is success. No content/docs/releases/ change.
  • Resumed commits. ff1bf727, 5b520173 and 3781dec5 came from a stopped thread with no report. The body says every reading was re-taken on this branch, and the tests and ablation below are at this head.
  • Changeset. Both @objectstack/lint and @objectstack/spec publish, at minor with a BREAKING paragraph, FROM → TO and a Fix line. The ADR-0087 registration marker names the new entry. Clause-②: no (narrowing), Metadata-protocol: narrowed and Skills-docs: follow-up #34201 sit at line start in both the body and the changeset, and skills/docs: teach the lookupFilters { $record } reference and orEmpty (relationships.mdx, fields.mdx, field-types.md) #34201 is open with the matching scope. I checked its prose sentence by sentence:
    • "{ $record: "accounts.cb_market" } through a multiple: true lookup, or { $record: "tags" }, linted clean": true on base. The member judged names only.
    • "now refuses the path at the multi-valued field and names it": matches the pinned messages names "tags" / goes through "accounts" / ends at "markets".
    • "Multi-valued means isMultiValueField …": the lint calls spec's predicate and adds no second type list.
    • "A registry-injected column and a leaf on an object outside the stack are not judged": the injected-column-leaf control is clean, while the out-of-stack head case is refused, as worded ("leaf").
    • "Measured first-party exposure: zero": the body gives the git grep reading with a positive control (8 lines in the test file).
  • Tests and evidence. A new block of 8 cases.
    • Six refusals, each asserting severity: 'error', rule: OBJECT_FIELD_REF_UNKNOWN, the finding path and the hint; three pin the full message.
    • One case pins the miss-once behaviour, and one control set stays clean: plain single, single lookup, single hop, multiple: false select, and an injected-column leaf.
    • These are lint findings, not HTTP refusals, so ADR-0112 code/status does not apply; the lint finding's own rule + severity are asserted.
    • Ablation (scripts/ablation-replace.mjs, cardinality read guarded off): Tests 6 failed | 121 passed (127), exactly the six refusals; restored blob fd916767 == HEAD.
    • Forced test edits are named in the body: a markets: multiselect field on the shared fixture that no existing case reads, and one new phrase in the verdict-fact list. Nothing is loosened.
  • Gates (check-runs at 7f731083, filter=latest, 68 runs). 58 success, 10 path-filtered skipped, none red or pending.
    • Required floor: Lint & Repo Gates success, TypeScript Type Check success.
    • Test Core aggregate success, with shards 1–8/8 all success. Shard 3/8's first attempt failed on @objectstack/mcp mcp-file-tools.test.ts:950, a 30 ms CPU-budget timing reading in a package this diff does not touch. It was judged a flake in comment 6932525350 (with the package's local 1223/1223 at this head) and passed on its one re-run (job 133692293516).
    • Also success: Check Changeset, Governed Surface Queue Guard, Dogfood Regression Gate (aggregate).
    • Local dispatch-gates --ran: 117/117, 0 NOT-MEASURED. That is a local subset only; the check-runs are the reading I used.
  • Dogfood battery (owed: the title carries ! and Clause-② carries (narrowing)). Card report 6932366621 reads: 7f731083 · os-verify-lock VERDICT command-exit 0 · Test Files 478 passed | 3 skipped (481) · Tests 4030 passed | 44 skipped (4074) · no failures. It is pinned to this head and is the full package run; no red to fix or report.
  • Accepted deviations.
  • Out of scope. The L2 record notes that a $record path to a structured field (json, repeater, location, address, vector) is not judged either. That is outside this card, with no carrier yet. The seat weighs whether to file it; it does not block this PR.

L2 owed: yes, and it is in. The surfaces touched are published schema (packages/spec/src/**, non-test) and narrowing, so the tier is CONTRACT_REVIEW_TIER. Record 6932506491 (l2-review#4) carries Served-tier: CONTRACT_REVIEW_TIER and Head-sha: 7f7310830a0d4fa73576d316afafc25dbb134b2d. That is the current head. It covers ①–④, has no must-fix or should-fix, one nit (N1, accepted), and reads VERDICT: PASS. Its Scope: covers every non-prose file in the diff. No needs:contract-review label is on the PR, which is right with a same-form PASS at this head.

Landing tier. node scripts/pm/check-governed-merges.mjs --pr 34489 reads: "0 of 7 path(s) hit the register … ✅ NOT governed — ordinary queue landing applies"; 226 changed lines ≤ 3000. L1 ACCEPT and the L2 PASS are both on this head, and every check is green. The area lands it through the ordinary queue (ready → auto-merge). Per the area order, #34391 shares spec generated outputs: whichever of the two lands second runs scripts/pm/os-regen-merge.sh first.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Landing · 2026-11-17T00:01Z · head 7f7310830a0d4fa73576d316afafc25dbb134b2d

Probe Reading
check-governed-merges.mjs --pr 34489 NOT governed: 0 of 7 paths on the register; 226 changed lines (≤ 3000)
Generated drift against origin/main 14 commits on main since the head's base touch none of field.mdx, field.zod.ts, rule-explanations.ts, validate-object-field-refs.ts; git merge-tree merges clean

L1 ACCEPT 6933175205 and contract review PASS 6932506491 on this head; dogfood battery on this head (report 6932366621). Ready for review and auto-merge through the queue; #34378 closes with the merge.

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

Labels

documentation Improvements or additions to documentation protocol:data size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lookupFilters { $record }: a path through or to a multi-valued field has no declared answer

2 participants