Skip to content

feat(spec): export isListComparandOperator from @objectstack/spec/data; flow record nodes read it instead of a local copy - #29570

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-dgl9uc
Nov 2, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/project-thread-dgl9uc

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Warren · project thread

Fixes #29419

Clause-②: yes
Metadata-protocol: none

维护者速读

  • 改了什么:@objectstack/spec/data 新增导出谓词 isListComparandOperator(op),对声明列表比较值的字段运算符($in / $nin / $between)答 true,其余答 false;流程记录节点(crud-nodes.ts)改为导入它,删掉本地那份 LIST_COMPARAND_OPERATORS 副本及其对账测试。
  • 为什么改:fix(service-automation)!: a flow's record nodes treat a computed filter operand as a value, never as a query operator #29404 的合约评审 should-fix 2:执行器持有一份运算符拆分的副本,靠一条行为对账测试保持一致;现在只有 spec 一处来源,对账断言随谓词搬进 packages/spec。
  • 风险与回滚:纯新增导出(加宽),执行器的接受与拒绝行为不变;两份集合本身仍不导出。回滚即撤销本 PR。
  • 先看:packages/spec/src/data/filter-comparand-operators.ts(谓词与改写的模块说明),packages/spec/src/data/filter-comparand-operators.test.ts(对账断言的新家),packages/services/service-automation/src/builtin/crud-nodes.ts(导入替换)。
  • 两分钟验证:pnpm --filter @objectstack/spec exec vitest run src/data/filter-comparand-operators.test.ts,预期 1 个测试文件、2 个用例全部通过。
  • 需要你做的:无,席位落地。

What changes

  • isListComparandOperator(op: string): boolean (packages/spec/src/data/filter-comparand-operators.ts), exported from @objectstack/spec/data (packages/spec/src/data/index.ts, a named re-export). It answers whether a $-spelled field operator declares a LIST comparand, reading the same LIST_COMPARAND_OPERATORS set the comparand-type face reads. TSDoc is one sentence.
  • Why a predicate and not the set. The card allows either. A published ReadonlySet is still a live Set at run time: a caller that cast and mutated it would change what every comparand face in packages/spec judges. The predicate publishes the answer and keeps both sets module-private. The module docblock's section "Why it is NOT in the data barrel" is rewritten to say what the barrel now publishes from the file and why the sets stay out.
  • packages/services/service-automation/src/builtin/crud-nodes.ts: operandValueRefusal asks isListComparandOperator(last); the local LIST_COMPARAND_OPERATORS and its docblock are removed, and the function docblock names the spec predicate. An import swap, nothing else.
  • Retired test: crud-filter-guard.test.ts "every declared operator whose comparand is a list takes an evaluated list, and no other does", plus its now-unused FieldOperatorsSchema import. Its assertion, every operator FieldOperatorsSchema declares is a list operator exactly when its enforced slot takes a list, now lives in packages/spec/src/data/filter-comparand-operators.test.ts, against the predicate the executor calls. That is the same assertion at a layer closer to the code. The executor's own use of the predicate stays pinned by the file's remaining list-operator cases (see the ablation below).
  • Generated: packages/spec/api-surface/data.json and packages/spec/export-origins/data.json gain the one row each.
  • Changeset: .changeset/29419-list-comparand-operator-predicate.md, patch for @objectstack/spec and @objectstack/service-automation, carrying both declaration lines.

Tests

  • New packages/spec/src/data/filter-comparand-operators.test.ts (2 cases), importing through the data barrel: the predicate answers true exactly for each declared operator whose FieldOperatorsSchema slot accepts a two-item list (with a control that the grammar declares more than ten operators, and the derived list pinned to $between, $in, $nin), and false for undeclared spellings (in, between, $and, $or, $not, $IN, the empty string, has).
  • crud-filter-guard.test.ts loses the one retired case: 66 to 65.
  • Forced test edits: none beyond the retirement above.

Acceptance notes

  • Changeset level. The claim assumed a spec minor. AGENTS.md Post-Task Checklist step 3 ties the level to Metadata-protocol alone, and none takes patch, so both packages ship patch.
  • File surface addition. The new spec test file is outside the claim's listed surface. It is where the retired reconciliation lands, so I added it here.
  • Other local copies, not touched. packages/drivers/driver-sql/src/sql-driver.ts and packages/plugins/plugin-security/src/rls-check-stored-form.ts each hold their own LIST_COMPARAND_OPERATORS ($in, $nin, $between). Both equal the spec set today, and neither is in this card's scope. Not filed: there is no defect, only a possible follow-up to read the new predicate.
  • packages/spec/src/data/filter-comparand-shape.ts keeps its own module-private LIST_COMPARAND_OPERATORS map (operator to authoring spellings). It is a different shape, unchanged.
  • No protocol.ts file is touched.

Verification

Readings on head e5b9d970c (6e184de6c merges origin/main 390bd2aed, then the artifact regeneration), except where a line names 4cc2f8814, the pre-merge head.

Tests and typecheck
  • Under the verify lock on 4cc2f8814: turbo run build --filter='@objectstack/service-automation^...' 31/31 tasks; vitest run in packages/services/service-automation: 262 files / 3394 tests passed; pnpm --filter @objectstack/service-automation typecheck exit 0 (VERDICT command-exit 0).
  • Under the verify lock on e5b9d970c: spec filter-comparand-operators, filter-comparand-type, filter-comparand-shape tests: 3 files, 166 passed, 1 todo; crud-filter-guard.test.ts: 65 passed; pnpm --filter @objectstack/spec typecheck and pnpm --filter @objectstack/service-automation typecheck exit 0 (VERDICT command-exit 0).
  • pnpm --filter @objectstack/spec check:generated after a spec build on e5b9d970c: all 14 artifacts up to date.
  • test:repo is not run locally (no file of that project changed); it is CI's Test Core.
Ablations

Each through scripts/ablation-replace.mjs (anchor hit once, blob changed, restored to the HEAD blob, git status clean after), on 4cc2f8814. Both tests import the code under test from source, so no dist leg applies.

  • isListComparandOperator made to answer false for $between: filter-comparand-operators.test.ts 1 failed / 1 passed of 2.
  • crud-nodes.ts made to treat $nin as a scalar operator: crud-filter-guard.test.ts 4 failed / 61 passed of 65 (the three "an evaluated list at a list operator's comparand passes" cases and the empty-entry refusal).
Derived gates
  • node scripts/pm/dispatch-gates.mjs --commands derived 84 families on e5b9d970c; all 84 ran there, each exit 0, with exit codes captured before any pipe. --ran reconciliation: "84 derived, 84 run, 0 NOT-MEASURED, 0 UNRUN", exit 0.
  • On 4cc2f8814 the same 84 ran. check:dual-build-cjs-loads exited 3 there (PREREQUISITE NOT MET: no dist/ for packages outside this diff's closure), and check-plugin-teardown-shape --self-test exited 3 until its pinned fixture commit was fetched into the shallow clone, then exited 0.
  • The repo-wide families (pnpm lint first among them) are CI's.

Dogfood battery: not run (no ! in the title and no (narrowing) arm).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (The predicate is a constant lookup beside the constant it reads.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint is CI's.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

Generated by Claude Code

…a; flow record nodes read it

The list half of the field-operator split is published as a predicate, and
service-automation's crud nodes import it instead of holding a local copy.
The executor's reconciliation test retires; its assertion now lives beside
the predicate in packages/spec.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZwoKyGHFx3aiQohjE
@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 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

3 anchor(s) derived from 2 changed package(s); no hand-written page names any of them. ⚠️ 3 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, packages/spec/src/data/index.ts), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, packages/spec/src/data/index.ts) — pages documenting those are invisible to this run
  • the SDK route bridge reached 60 of 216 client-bound route-ledger rows — the other 156 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 156: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 101 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 — 168 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 32907ae9ce0f020a966c5363eaca2a688240e47a → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 337ad071d4c8f7f2a82e283dac88d4e3ed8aaa32 — the merge of head e5b9d970c302cc3eae5608f7b548212f890bfa47 into base 32907ae9ce0f020a966c5363eaca2a688240e47a, 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 337ad071d4c8f7f2a82e283dac88d4e3ed8aaa32 && git checkout 337ad071d4c8f7f2a82e283dac88d4e3ed8aaa32
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 32907ae9ce0f020a966c5363eaca2a688240e47a e5b9d970c302cc3eae5608f7b548212f890bfa47 && git checkout -B drift-repro 32907ae9ce0f020a966c5363eaca2a688240e47a && git merge --no-ff e5b9d970c302cc3eae5608f7b548212f890bfa47

node scripts/docs-audit/affected-docs.mjs --json 32907ae9ce0f020a966c5363eaca2a688240e47a

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#5 · os-warren · session_01JQwxbWR3K3h7i1ytwycVg1

Contract-review-claim: session_01JQwxbWR3K3h7i1ytwycVg1 · head e5b9d97 · 2026-11-02T19:18Z

The published-schema face (packages/spec/src/data/filter-comparand-operators.ts, packages/spec/src/data/index.ts; Clause-②: yes) is reviewed at CONTRACT_REVIEW_TIER by an isolated at-tier reviewer the dispatching seat spawns; it is not the drafter and is fed only the card, the PR and the check-runs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#5 · os-warren · session_01JQwxbWR3K3h7i1ytwycVg1

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e5b9d970c302cc3eae5608f7b548212f890bfa47
Local-runs: none
Scope: packages/spec/src/data/filter-comparand-operators.ts, packages/spec/src/data/index.ts + packages/services/service-automation/src/builtin/crud-nodes.ts, packages/services/service-automation/src/builtin/crud-filter-guard.test.ts, packages/spec/src/data/filter-comparand-operators.test.ts, packages/spec/api-surface/data.json, packages/spec/export-origins/data.json, .changeset/29419-list-comparand-operator-predicate.md, packages/spec/src/data/filter-comparand-type.ts, packages/spec/src/data/filter-comparand-shape.ts, packages/spec/src/data/filter-save-door-refusals.ts, packages/spec/package.json (exports map), scripts/check-changeset-no-major.mjs, scripts/pm/clause2-line.mjs

Inputs: card #29419 body and its three comments (triage 6583885988, claim 6584093337, os-dev-report 6585662916); PR #29570 body, its eight-file list and the net diff against main at the merge-base 390bd2aed; the 64 check-runs on the head: 55 success, 9 skipped, none failed or pending. Of the ten required contexts nine conclude success and Lint UI is skipped (the diff touches no ui/ path). Those conclusions are the gate verdicts; nothing was built, run or re-run here. The PR is a draft on an internal branch (head repo equals base repo); no governed surface is in the file list (Governed Surface Queue Guard success).

① Derived judgments

  • Public surface, @objectstack/spec/data gains one export and nothing else: isListComparandOperator(op: string): boolean — right. Name: an is-prefixed camelCase predicate beside isKnownFilterToken and isLegacyApiMethod in the same barrel. Signature: op is typed string on purpose, since the consumer hands it the last segment of an operand path, and a non-operator spelling answers false rather than failing to type. TSDoc: one sentence naming the three operators and the false case; the card's "one-line describe" is satisfied in the form a function takes (a function carries TSDoc, not a Zod .describe(), so check:docs has nothing new to render). index.ts re-exports the one name by a named export { … } from, not export *, so SCALAR_COMPARAND_OPERATORS and LIST_COMPARAND_OPERATORS stay off the barrel — right, and deliberate (the module docblock says why).
  • Ledgers — right. packages/spec/api-surface/data.json gains isListComparandOperator (function) in alphabetical position (between isLegacyApiMethod and isMaskedOnReadFieldType); packages/spec/export-origins/data.json gains src/data/filter-comparand-operators.ts#isListComparandOperator (function), the true origin. The root @objectstack/spec barrel does not re-export data (it documents the /data subpath and lifts one type from ./data/validation.zod only), so no root-ledger row is owed; TypeScript Type Check (the job carrying check:api-surface, check:export-origins, check:docs, check:dual-source-exports) is success, confirming the regenerated artifacts match the built dist.
  • Accept sets: none widen, none narrow — right. The split itself is untouched: LIST_COMPARAND_OPERATORS stays $in, $nin, $between; SCALAR_COMPARAND_OPERATORS is byte-identical; the three in-package readers (filter-comparand-type.ts, filter-comparand-shape.ts, filter-save-door-refusals.ts) import the same module unchanged. No Zod schema moves, no authorable key, value or type changes: Metadata-protocol: none is the right declaration.
  • Consumer behaviour: unchanged — right, read in the tree. operandValueRefusal in crud-nodes.ts keeps the same four-line decision, with !LIST_COMPARAND_OPERATORS.has(last) replaced by !isListComparandOperator(last) over the same three-element set; the typeof last !== 'string' guard, the 'a list' refusal and the per-entry scan are unchanged. The import lands on @objectstack/spec/data (Prime Directive 4). The removed local constant and its docblock have no other reader in the file.
  • Reach of the new spec test — right. packages/spec/tsconfig.json excludes **/*.test.ts, but the package's typecheck script runs check:test-typecheck, which compiles it (Type Check · debt ledger success); the vitest local project takes every test file under the package minus vitest.repo-tests.json, and the file reads nothing outside the package. It imports ./index with no extension, as ten sibling tests in src/data do (Lint · ESLint success).

② Semver level

  • patch on both @objectstack/spec and @objectstack/service-automation is right, and the card's "spec minor" assumption was wrong. AGENTS.md Post-Task Checklist step 3: "The level follows the kind alone: a kind takes at least minor on a package the diff moves, none takes patch". The gate agrees and would refuse the alternative: scripts/check-changeset-no-major.mjs grades a declared none as "patch, full stop" and returns the none-minor refusal when any introduced entry is graded minor or above (its failure title: "metadata-protocol declares none while a changeset entry is graded minor or above"). Check Changeset on the head is success. A new TypeScript export that changes nothing an author writes is exactly the non-protocol widening ruling A ships at patch.
  • Clause-②: yes is the right declaration, and the armless spelling equals the card's yes (widening). The clause's question, per the fleet's one reader (scripts/pm/clause2-line.mjs header), is whether the card widens an accept set OR expands the public surface (「本卡放宽接受集或扩大公开面吗」). A new public export expands the public surface, so yes is correct even though no accept set widens. The arm is optional by measurement, and the reader's own table states "yes / yes (widening) — a widening. The second spelling is the first", so the dev's deviation changes no reading. Both carriers (PR body and changeset body) carry both lines, line-initial.
  • The changeset body names what publishes and that the executor's accept and refuse behaviour is unchanged; no BREAKING banner, no !, no ADR-0087 disposition owed. skip-changeset would have been wrong (two released packages publish).

③ Boundary flags

  • Predicate rather than the set (dev's choice; the card allowed either) — accepted. The rationale holds in the tree: ReadonlySet is a compile-time type over a live Set, and the predicate closes over the module's set so nothing published can reach or mutate what the faces judge. The package.json exports map has ./data and no wildcard, so no consumer can deep-import the module either. One prose nit follows in ④.
  • New file outside the claimed surface: packages/spec/src/data/filter-comparand-operators.test.ts — accepted. It is the destination the deletion rule requires: AGENTS.md (Build & Test) lets a test be deleted only when the PR names a duplicate pinning that assertion at a layer at least as close to the code, and the PR names this file. See ④ for the carried-assertion reading.
  • driver-sql and plugin-security keep their own LIST_COMPARAND_OPERATORS (not filed) — accepted for this PR under Prime Directive 10: both equal the spec set today (read at sql-driver.ts and rls-check-stored-form.ts on the head), so there is no defect or contract violation to file, and the acceptance notes record them. Escalated to the owning seat as a should-fix outside this PR: a p3 follow-up card to point both at the predicate, since neither carries a reconciliation test and the card's own premise is that a silent copy is the drift to remove.
  • os-dev-report open_questions: empty. Deviations answered: the armless Clause-②: yes (② above, no reading changes); no labels at pr_create (the labeller applied protocol:data, size/m and the rest; nothing owed); the session-context assignee/reviewer MCP step skipped (the PR carries no assignee; the card's assignee is os-warren, the seat's own account, so no cross-seat record is missing). filter-comparand-shape.ts's same-named module-private Map is a different shape and is untouched, as the body says.

④ Design judgment

  • packages/spec/src/data/filter-comparand-operators.ts — holds. The predicate is a constant lookup beside the constant it reads, the same class as its barrel neighbours, so Prime Directive 2 is kept. Against its first consumer the scenario is: a flow's record node has an evaluated list at filter.X.OP; the executor passes it only when OP is one of the three list operators and every entry is an accepted scalar, else refuses it as a list. The predicate answers that question over exactly the set the comparand-type face uses, so the executor and the face cannot disagree. Tried to break it: a non-$ spelling (in, between), a wrong case ($IN), a combinator ($and, $or, $not) and the empty string all answer false and are pinned; a list operator added to FieldOperatorsSchema without joining the set reds the new test's per-operator reconciliation and filter-comparand-type.test.ts's union reconciliation; a scalar operator that one day accepts an array reds the same test loudly. Should-fix (prose, not blocking): the rewritten docblock says "the two sets stay module-private", and the index.ts comment and changeset repeat it as "module-private" / "stay unexported"; both sets are export const and are imported by three sibling modules. The true statement is that they stay off the published barrel (barrel-private, package-internal). A later author reading "module-private" may believe nothing imports them.
  • packages/spec/src/data/index.ts — holds. A named re-export is the right instrument here: export * would have published both sets and made the docblock's reason moot. The comment states what is published and why the sets are not; same prose nit as above. Placement after the two faces it serves reads naturally.
  • Consumer, crud-nodes.ts (read, not reviewed) — the import preserves behaviour exactly: same operator set, same branch, same refusal wording. The function docblock now cites the spec predicate instead of a local link, which is the right pointer.
  • Retiring the reconciliation test loses no guarantee. The retired case asserted two things per declared operator: (a) the grammar takes a two-item list at that operator if and only if the executor's split calls it a list operator, and (b) the executor forwarded the filter only in that case. (a) now lives in the spec test against the predicate, and the predicate IS the value the executor reads, so the layer is at least as close to the code. (b) is carried by the executor test's remaining cases, which pin both branches of the predicate call: the true branch by the %s: an evaluated list at a list operator's comparand passes case over $in, $nin and $between together, plus the two entry refusals at $in and $nin; the false branch by a list where one value belongs (filter.id, a non-operator key answering false) and a list at a list operator's element ($in[0], a numeric segment). The one shape no longer exercised at the executor layer, an evaluated list at a scalar $-operator such as $ne, takes the identical line and the identical false, which the spec test pins for every scalar operator by name. The dev's ablation reading (treat $nin as scalar: four executor cases fail) is consistent with this wiring, and is read as the dev's evidence, not re-run.
  • Must-fix: none. Should-fix: the "module-private" wording (above) and the follow-up card for the two remaining copies (③).

Implemented-by: claude/project-thread-dgl9uc
Reviewed-by: session_01JQwxbWR3K3h7i1ytwycVg1

VERDICT: PASS

@objectstack-fleet

objectstack-fleet Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

domain:spec#5 · os-warren · session_01JQwxbWR3K3h7i1ytwycVg1

维护者速读

  • 改了什么:@objectstack/spec/data 新导出谓词 isListComparandOperator(op)(判断 $in / $nin / $between);流程执行器 crud-nodes.ts 改为导入它,删掉本地副本与其对账测试,断言移到 spec 侧新测试。
  • 为什么改:执行器手抄了一份列表运算符集合,靠对账测试保持一致;共享一个来源后不会再漂移。
  • 风险与回滚:新增一个只读导出,执行器分支逐字等价(+75 / -39);回滚即 revert。
  • 先看:packages/spec/src/data/filter-comparand-operators.ts 的新谓词与 crud-nodes.ts 的导入处。
  • 两分钟验证:pnpm --filter @objectstack/spec exec vitest run src/data/filter-comparand-operators.test.ts。
  • 需要你做的:无,席位落地。
  • 席位意见:at-tier 合同审查 PASS(6586374020)。选谓词不选导出集合是对的(活的 Set 会被调用方改写);两处 should-fix 是措辞与后续卡,不挡落地。

席位核对

ACCEPT · domain:spec#5 · head e5b9d970c302cc3eae5608f7b548212f890bfa47 · 2026-11-02T19:26Z

  1. Shape: eight files: the predicate in filter-comparand-operators.ts and its named re-export in data/index.ts; the api-surface/data.json and export-origins/data.json rows; the new filter-comparand-operators.test.ts; crud-nodes.ts (an import swap) and crud-filter-guard.test.ts (the retired reconciliation); and .changeset/29419-list-comparand-operator-predicate.md (patch for @objectstack/spec and @objectstack/service-automation). The new test file is outside claim 6584093337's list; the PR body names it, and the review accepts it as the required home for the retired assertion. Draft, base main, Fixes #29419.
  2. Premise: precondition PR fix(service-automation)!: a flow's record nodes treat a computed filter operand as a value, never as a query operator #29404 is merged. The executor's branch is byte-equivalent: the same three operators and the same a list refusal path.
  3. Gates: 64 check-runs on this head: 55 success, 9 skipped (Lint UI: no ui/ path; the rest are opt-in or path-scheduled), 0 failed.
  4. Contract review: owed under Clause-②: yes with a packages/spec/src/** hit. The contract-review claim is 6586207407, and the isolated at-tier record 6586374020 is a PASS on this same head. Semver: patch is right (AGENTS.md step 3, check-changeset-no-major: Metadata-protocol: none ⇒ patch). The card's "spec minor" was the order's assumption, and it was wrong.
  5. Not carried, recorded: (a) should-fix wording: the docblock, the index.ts comment and the changeset say the sets are "module-private"; they are export const, read by sibling modules, and only barrel-private. That is prose, not behaviour, so it rides the next edit of the file. (b) driver-sql and plugin-security keep local copies equal to the spec set today. These are out of this card's scope and the follow-up is the seat's to file.
  6. Landing: not governed (check-governed-merges --pr 29570: NOT governed, 114 changed lines ≤ 3000), and mergeable_state is clean. The services half is the import swap the card allows in the same PR. The seat lands it via pr_ready + automerge_enable.

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.

spec(data): export the list-comparand operator split from @objectstack/spec/data so the flow executor reads it instead of a local copy (#29404)

1 participant