Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(data-objectstack): the entry-form filter refuses an empty or non-string icontains comparand, reading the spec's own predicate (objectui#9048) - #11192

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-9048-array-entry-text-comparand
Sep 30, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-9048-array-entry-text-comparand

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #9048
Clause-②: no

What this lands

This is the open half of maintainer ruling D (comment 5658597078, decision batch #133 item 1). The ruling asks for one implementation and three envelopes. objectFilterEntryToAST is the rule-entry arm of translateFilterArray. It now asks @objectstack/spec/data's isRefusedTextComparand after toAstFilterOperator's fold. On a refusal it throws MalformedFilterError (INVALID_FILTER / 400) carrying textComparandRefusalReason(field, ARRIVED_SPELLING, value) byte for byte, and it throws before any request is sent. The three envelopes are now:

  • FilterOperatorError from convertFiltersToAST and viewFilterRuleToNode;
  • exclude-and-log in ValueDataSource;
  • MalformedFilterError here.

All three read the spec's two functions. ⛔ No new export from @object-ui/core.

  • The door sits in objectFilterEntryToAST itself, so every caller meets it:
    • both find() routes, plain and $expand;
    • exportDownload;
    • aggregate()'s analytics lowering;
    • a nested rule group;
    • a bare rule spread under and / or. A bare rule now carries its position in the parent array as the index, which is why translateFilterChild gained an index argument.
  • The message names the spelling that arrived, for example ICONTAINS. The tail names the $-dialect twin '$icontains', so the row's mustMention holds. This is the seating viewFilterRuleToNode already uses for the same vocabulary.
  • MalformedFilterError's published signature is unchanged. The built .d.ts / .d.cts are byte-identical to BASE e978ed5ea, and a control on the round-0 head shows the instrument sees a difference. The refusal is an ordinary MalformedFilterError, built by the module-private refuseTextComparandEntry, which replaces its message with the refusal sentence. So instanceof, name, code INVALID_FILTER and httpStatus 400 are the class's own. The constructor's entry serialisation goes through a module-private describer that is BigInt- and cycle-safe, and its output is byte-identical for every entry that serialised before. (Patch round 1, answering contract review 5908617443.)
  • An absent value gets no carve-out. The stored-view lowering has one because it emits a 2-tuple for a valueless operator. This translator always emits a 3-tuple, so an absent value went out as JSON null, which is a non-string comparand (the table's second row). ValueDataSource refuses the same rule.

Premises re-measured at BASE e978ed5ea (installed @objectstack/spec 17.5.0)

  • packages/core/src/utils/text-comparand.ts re-exports both functions from @objectstack/spec/data. The only other isRefusedTextComparand / textComparandRefusalReason hits in core are call sites and one pin that reads them. Verified, ⛔ not redone.
  • The spec ROOT entry has no such functions (typeof require('@objectstack/spec').isRefusedTextComparand reads undefined); the /data subpath has both (function). This PR imports from /data, as core does.
  • @object-ui/data-objectstack already declares "@objectstack/spec": "^17.5.0" directly. There is no manifest or lockfile change. pnpm check:spec-floors fetched 17.5.0 and inspected this package's built dist, which now imports both names from @objectstack/spec/data, with no finding.
  • FILTER_OPERATOR_ALIASES has exactly one row whose value is icontains, the identity row. Case variants fold through toLowerCase. $icontains, containsCaseInsensitive and i_contains do not fold; they pass through raw, before and after this change.

Before and after, measured by a throwaway probe driving find() (deleted, not committed)

Both routes gave identical answers, so they are shown once.

input BASE e978ed5ea this branch
entry icontains, '' sent ["name","icontains",""] MalformedFilterError INVALID_FILTER/400, nothing sent
entry icontains, 42 / null / true / ["a"] / {} sent verbatim refused, nothing sent
entry icontains, value absent sent ["name","icontains",null] refused, nothing sent
entry ICONTAINS / iContains / IContains / op: key, '' sent refused, naming the spelling that arrived
bare rule under and; nested rule group sent refused (entry 1 / entry 0)
entry icontains, 'acme' (CONTROL) ["name","icontains","acme"] unchanged
entry contains, '' (SCOPE) ["name","contains",""] unchanged: the table declares no row for it
object { name: { $icontains: '' } } / 42 refused (objectui#9001) unchanged
ValueDataSource, same entry filter, each comparand above refuses all except 'acme' unchanged, and now the adapter agrees

Tests (round 0, HEAD d7bd5a111; the patch-round readings at the final head 26de698a1 are in the next section)

All runs are from the worktree root, under os-verify-lock.sh. Pass COUNTS are read, not exit codes.

  • pnpm exec vitest run packages/data-objectstack/ scripts/__tests__/spec-symbol-ledger-data-objectstack-7265.test.ts: Test Files 74 passed (74), Tests 1017 passed (1017), VERDICT command-exit 0.
  • The new pin file, packages/data-objectstack/src/filter-entry-text-comparand-9048.test.ts: 52 passed (52). It covers:
    • the spec's own rejection rows, derived from FILTER_TEXT_CASES with each row's code and mustMention asserted;
    • '' and 42 refused, with 'acme' as the control;
    • every spelling the alias table folds to icontains, plus two case variants, each paired with its own control;
    • the object form and the entry form refusing the same node with one reason;
    • a verdict-for-verdict parity table against ValueDataSource over nine comparands;
    • index naming at depth;
    • aggregate();
    • a BigInt comparand, driven through aggregate().
  • pnpm --filter @object-ui/data-objectstack type-check: exit 0, run after pnpm --workspace-concurrency=2 --filter '@object-ui/data-objectstack^...' build. tsc --noEmit --listFiles includes the new test file.
  • pnpm --filter @object-ui/data-objectstack build: exit 0.
  • The whole root scripts/__tests__/ suite ran once because the diff adds a markdown changeset. It ran in three chunks whose union equals the 179-file population read from git ls-tree at HEAD: 177 files passed and 2 were skipped by design (the network-escape fixtures, inert outside the pin that spawns them); 5371 tests passed and 2 were skipped. node scripts/markdown-test-inputs.mjs --audit: exit 0.
  • Gates, each exit captured before any pipe, all exit 0:
    • node scripts/check-changeset-presence.mjs ("2 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)");
    • check-changeset-no-major, check-changeset-fixed, check-changeset-overwrite, check-changeset-claims, check-pending-changeset-literals;
    • pnpm check:new-line-citations ("0 new citation(s)"), check:control-bytes, check:spec-symbols, check:phantom-deps, check:unused-deps, check:self-import, check:test-path-roots.
  • NOT MEASURED, prerequisite not met. pnpm check:readme-exports (exit 1) and pnpm check:spec-floors (exit 1) both went red only on sibling packages whose dist/ is not built here. The first reports 480 self-imports it could not judge; the second reports 17 [no-artifact] findings. This package itself was judged by both, with no finding (README rows: 0 unjudged, 0 wrong-path, 0 fabricated). The full reading is CI's.

Ablation, on the committed fix (HEAD 75db0a505). The direction was predicted before running: 37 red and 15 green, where the 15 are the two derivation guards plus every control or scope pin.

  • The mutation went through ablation-replace.mjs, which disabled the guard's condition. The anchor fell from 1 to 0 and the blob moved from d4ad4247 to 92aaf4e2.
  • The pin file read 37 failed, 15 passed (52), exactly as predicted, and none of the 37 was a control, scope or derivation pin.
  • The restore was proven by state: the blob went back to d4ad4247 (equal to HEAD), git diff HEAD was empty, and the marker count was 0.
  • The subject is imported relatively (./index), so it resolves to source and no dist staleness applies.

Lint, a declared narrowing. The package's lint is eslint . resolving the root flat config. That config lints **/*.{ts,tsx}, and this diff adds or changes exactly two such files.

  • pnpm exec eslint --format json over both files at HEAD d7bd5a111 read 2 files and 0 errors. The new test has 0 warnings. index.ts has 123 no-explicit-any warnings, the same count as BASE index.ts linted through stdin.
  • Invariance: type-aware linting is not enabled. The config extends tseslint.configs.recommended, not a type-checked variant, and languageOptions carries only ecmaVersion and globals, with no parserOptions.project and no projectService.
  • No local rule under eslint-rules/ reads the filesystem: a grep for fs reads matched no rule file, while the same grep matched a positive control. So this diff cannot move a verdict on any file it does not contain.

Patch round 1 (final head 26de698a1), answering contract review 5908617443

  • Finding 1 (semver). Fixed by option B: MalformedFilterError's published constructor is back to (entry, index), and the built .d.ts / .d.cts are byte-identical to BASE (0 diff lines; the control on d7bd5a111 differs). This keeps '@object-ui/data-objectstack': patch and Clause-②: no.
  • Finding 2 (README). "Rule-shaped arrays" now says an icontains entry whose value is empty, a number, null or missing throws MalformedFilterError (INVALID_FILTER / 400) before any request, naming the spelling that arrived. The export-listing comment is widened to match.
  • Readings at 26de698a1:
    • vitest packages/data-objectstack/ plus the spec-symbol ledger: 74 files, 1019 tests. The pin file has 54 tests.
    • Ablation leg A (the guard): 37 red / 17 green. Leg B (the BigInt-safe describer): 2 red / 52 green. Both were predicted in advance.
    • The root scripts/__tests__ suite is green, and markdown-test-inputs --audit exits 0.
    • CI: 43 runs, 40 success, 3 expected skips, 0 failure.

Acceptance notes

These are recorded rather than filed: none has a demonstrated public entrance or named producer.

  • An AST tuple is still passed through unjudged. $filter: ['name','icontains',''] reaches the wire unchanged, both before and after this change. translateFilterArray deliberately leaves an already-lowered comparison tuple for the server ("the server decides"). ValueDataSource's AST arm refuses the same tuple. The in-tree AST producers convertFiltersToAST and toFilterNode both refuse the shape first. Owner: none.
  • find() throws a bare TypeError when its params hold a BigInt. The throw comes from its request-coalescing key (stableStringify(params)), before any translation, and for any operator, contains included. No JSON-sourced filter can carry a BigInt. Owner: none.
  • objectui#9050 is untouched, per the ruling. Where render-time toFilterNode throws surface remains that card's decision.

Generated by Claude Code

…string icontains comparand, reading the spec's own predicate (objectui#9048)

objectFilterEntryToAST lowered `[{ field, operator: 'icontains', value: '' }]`
to `['name','icontains','']` and sent it, while the object form of the same
condition has been refused since objectui#9001. It now asks
@objectstack/spec's isRefusedTextComparand after the operator fold and throws
MalformedFilterError carrying textComparandRefusalReason verbatim, so the rule
entry, the `$` dialect and ValueDataSource judge one set with one reason.

MalformedFilterError takes an optional refusal sentence that replaces its
shape advice; the default message is unchanged.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…omparand refusal (objectui#9048)

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…nd the 9048 pins without any (objectui#9048)

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3570.9 KB 3607.4 KB
Main entry chunk (gzip) 149.5 KB 350 KB
Entry file index-DQvfEmgd.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 559.46KB 134.18KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 228.31KB 63.34KB
fields (index.js) 261.19KB 66.27KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.32KB 11.09KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 234.78KB 62.36KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.30KB 44.19KB
plugin-gantt (index.js) 172.43KB 42.85KB
plugin-grid (index.js) 230.25KB 63.22KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.82KB 28.67KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.42KB
plugin-tree (index.js) 11.21KB 3.89KB
plugin-view (index.js) 90.43KB 22.76KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 3.83KB 1.49KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.82KB 7.15KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d7bd5a1118a1d94a26aec8651591d32a892f49f3
Local-runs: none

Inputs: card #9048 (body and every comment, ruling D 5658597078, unlock 5904161615, claim 5907396601, dev report 5908407005), PR #11192 (body, 3-file list, net diff against main), the check-runs on the head, and contents/…?ref= reads of packages/data-objectstack/src/index.ts, package.json, README.md, CHANGELOG.md and AGENTS.md at the head plus packages/core/src/utils/filter-converter.ts at the base. Nothing was built, run or re-run.

Check-runs on the head, waited to completion: 43 in all — 40 success, 3 skipped by design (the two coverage jobs and dependabot), 0 failure, 0 still running. Lint, Type Check, all eight test shards and their Test rollup, Spec Main Shape Gate, Changeset Declaration, Changeset Bump Policy, Changeset Claim Re-read, README Export Check, Test (dist pins) and Build & E2E are green. Those conclusions are the derived-gate verdicts below; nothing in them is re-derived here.

① Derived judgments

  • The door sits in objectFilterEntryToAST itself — RIGHT. Read on the head: find()'s plain route calls translateFilterToAST(params.$filter) and its $expand route calls translateFilterArray(params.$filter); exportDownload calls translateFilterToAST(request.filter); aggregate()'s analytics lowering calls lowerAnalyticsFilterForWire, which calls translateFilterArray outside the analytics try (so the refusal is not swallowed into the client-side fallback), and aggregateViaFind forwards the filter to find(). Every one of those reaches objectFilterEntriesToAST or translateFilterChild, and both now call objectFilterEntryToAST(entry, index). A nested rule group reaches it through translateFilterChild → translateFilterArray → objectFilterEntriesToAST; a bare rule spread under a logical head reaches it through translateFilterChild's field !== undefined arm. One door, every caller.
  • The reason bytes and mustMention — RIGHT. The reason is a call into @objectstack/spec/data's textComparandRefusalReason(field, rawOp, entry.value), not a restatement, and it is seated as The …reason…. …tail… — the exact seating the spec function's own docblock prescribes for a throwing producer and the one viewFilterRuleToNode already uses on the base. rawOp is the spelling that ARRIVED (read before the fold), so the reason names icontains / ICONTAINS / whatever was written; the tail names the $-dialect twin '$icontains' verbatim, so the rows' mustMention: ['$icontains'] holds on every spelling. The pin derives the two rows from FILTER_TEXT_CASES and asserts each row's code and every mustMention entry, and checks the reason by calling the spec function rather than copying its text. rawOp is a string wherever the door runs: toAstFilterOperator answers null for a non-string and the function has already returned.
  • MalformedFilterError's optional third constructor argument — behaviour RIGHT, grading WRONG. The two-argument message is byte-identical to the base (same template, JSON.stringify(entry) ?? String(entry) inlined); the three-argument message does not re-serialise the entry, so a BigInt comparand gets the contract reason instead of a TypeError, and the pin drives that through aggregate(). But the emitted .d.ts of a published class grows a parameter a consumer may now write. That is additive public-surface growth, and this package's own CHANGELOG grades that shape minor in so many words ("Additive surface growth is minor", 17.5.0, citing objectui#4403 / fix(i18n): retire the orphaned report.editor.* namespace, 105 keys across ten packs (#4145) #4177 / fix(plugin-chatbot): widgets pass only whitelisted DOM props to the host element (#4431) #4485; the 5.1.0 entry that added an optional third opts argument shipped as minor too). Judged in ② as the finding.
  • The internal index argument on translateFilterChild — RIGHT. translateFilterChild and objectFilterEntryToAST carry no export; the index is the child's position in its parent array on all three call sites (i in the entry-form and legacy-flat branches, i + 1 under a logical head, which counts the head), and the pins assert index 1, index 0 in a nested group and index 2 for a bare rule after the head.
  • An absent value refused with no carve-out — RIGHT. The translator always emits a 3-tuple, so [field, 'icontains', undefined] serialised as ["name","icontains",null] on the wire; isRefusedTextComparand(undefined) is true; the spec docblock reserves the absence carve-out for a vocabulary with a valueless operator, which icontains in this form is not; ValueDataSource refuses the same rule, and the parity pin says so.
  • Every alias spelling that folds to icontains — RIGHT. On the head FILTER_OPERATOR_ALIASES has exactly one row whose value is icontains (the identity row); the fold lower-cases first, so ICONTAINS and iContains fold; the pin reads the folding rows off the table rather than listing them, adds the two case variants and the op key, and pairs each with a control. $icontains / containsCaseInsensitive do not fold and pass through raw, before and after — unchanged, and not this card's shape.
  • Parity with ValueDataSource over 9 comparands — RIGHT. Verdict-for-verdict on '', 42, null, undefined, no value key, true, ['a'], {} and 'acme', each also equated to isRefusedTextComparand(value), so both faces are tied to the one predicate rather than to each other.
  • The 52 pins and the ablation 37 red / 15 green — CONSISTENT, not re-run. Counting the it blocks in the diff: 11 + 17 + 6 + 10 + 8 = 52. The controls and derivation guards that must survive a disabled guard: 2 derivation + 2 + 8 + 2 + 1 = 15, leaving 37 that must go red. The dev's numbers match that arithmetic; Test shards, Type Check and Lint on the head are green.
  • No lockfile or manifest change — RIGHT. The file list is the changeset, the pin file and index.ts; packages/data-objectstack/package.json on the head already declares "@objectstack/spec": "^17.5.0" as a direct dependency, and the import is from the /data subpath, the same one core's text-comparand.ts re-exports from. No new export from @object-ui/core, as ruling D requires.
  • Scope held — RIGHT. contains with '' still goes to the wire (SCOPE pin); the object form is unchanged (objectui#9001); objectui#9050 is untouched, per the ruling.

② Semver level

  • The changeset declares '@object-ui/data-objectstack': patch and the PR body and claim read Clause-②: no. The diff publishes two things: a bug fix (the refusal) — patch on its own — and an additive change to a published class's constructor signature, which the changeset body itself names ("takes an optional third constructor argument") and the PR body calls "an additive .d.ts change on a published class".
  • The clause-② ruling is directional: widening the accept set or the public surface is a yes, and the fleet rule is that a yes takes at least minor. This package has already recorded the grading for exactly this shape: additive surface growth is minor (17.5.0, "Additive surface growth is minor"; 5.1.0's optional third argument, minor). Ruling D's pre-written patch / Clause-②: no described a door with no signature change; the diff as landed is the fact, the claim was the prediction, and they now differ.
  • ⇒ Finding 1: the level and the Clause-②: line do not match what the diff publishes. Two ways to close it, either acceptable: (a) keep the signature, re-declare Clause-②: yes (widening) on the PR body and the changeset, and bump the changeset to minor with the constructor growth named as the reason; or (b) keep patch / no by taking the growth back off the published surface — seat the refusal sentence through a module-private path (a non-exported subclass or factory, with the base constructor's JSON.stringify made BigInt-safe) so the emitted .d.ts for MalformedFilterError is byte-identical to the base.
  • The changeset body is otherwise accurate: the refused set, the three faces reading the two spec functions, the JSON null before/after, the untouched contains family, and the byte-identical two-argument message all match the diff.

③ Boundary flags

  • An AST tuple handed as $filter passes unjudged — answered, not owed. translateFilterArray deliberately leaves an already-lowered comparison tuple to the server ("the server decides"), which is the adapter's documented boundary; the in-tree AST producers (convertFiltersToAST, toFilterNode) refuse the shape before it can be handed over, and no producer of a raw refused tuple was demonstrated. Not this card's class (the card names the two rule-shaped producers). If the PM wants the adapter's AST arm to match ValueDataSource's, that is a new card, not a finding here.
  • find() throws a bare TypeError on a BigInt param — answered, not owed. Read on the head: the coalescing key stableStringify(params) runs before connect() and before any translation, for any operator; it is pre-existing, not created or widened by this diff, and no JSON-sourced filter can carry a BigInt. The pin drives the BigInt case through aggregate(), which is the route that reaches the translator, so the deviation is justified.
  • packages/data-objectstack/README.md "Rule-shaped arrays" does not mention the refusal — judged a docs-driven defect this PR owes (AGENTS.md Add automated testing infrastructure and CI/CD workflows #2). The README on the head is not false, but it is the package's contract document for this surface: it carries a dedicated paragraph for the $ dialect's comparand refusal (the objectui#9001 landing wrote it, "$icontains constrains its comparand…"), says every refusal row is decided by convertFiltersToAST, and in "Rule-shaped arrays" names only "A rule that cannot be translated" as what raises MalformedFilterError; the export listing's comment on MalformedFilterError says the same. So after this diff the README describes the object form as refusing and is silent for the entry form — the dialect asymmetry this card exists to close, kept alive in the docs. Add automated testing infrastructure and CI/CD workflows #2's "Not done until docs reflect the code" applies to a change that adds a refusal to a documented refusal surface, whatever its commit type. ⇒ Finding 2: add the entry-form refusal to "Rule-shaped arrays" (the icontains empty / non-string value raises MalformedFilterError, INVALID_FILTER / 400, before any request; naming the spelling that arrived) and widen the export-listing comment. It was outside the claim's declared file surface, which is why the dev did not touch it; the surface is the dispatching seat's prediction and the docs rule is the repo's.
  • objectui#9050 — answered. Where a render-time toFilterNode throw surfaces stays that card's, per ruling D; this adapter's refusal is a find() / aggregate() rejection and does not reach those entries.
  • Deviations recorded by the dev (three-chunk scripts/__tests__ run with a population diff, lock-queue retries, model-free commit trailers and the session-URL PR footer) are process notes with no bearing on the diff; nothing to escalate.
  • No open_questions in the report; none left open here.

Findings

  1. Semver / Clause-② mismatch. '@object-ui/data-objectstack': patch with Clause-②: no, while the diff grows the published .d.ts of MalformedFilterError by an optional third constructor argument. Either re-declare Clause-②: yes (widening) and bump to minor, or take the growth off the published signature and keep patch / no.
  2. README owed under AGENTS.md Add automated testing infrastructure and CI/CD workflows #2. "Rule-shaped arrays" (and the MalformedFilterError export comment) in packages/data-objectstack/README.md must say that an icontains entry with an empty or non-string value is refused with MalformedFilterError before any request, as the same README already says for the $ dialect.

Everything else judged in ① is right and stays as landed; the fix itself is correct, complete across every caller, reads the spec's predicate and reason bytes, and is green on every check-run on the head.

Implemented-by: claude/issue-9048-array-entry-text-comparand
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: FAIL


Generated by Claude Code

…vately, keeping MalformedFilterError's published signature (objectui#9048)

Contract review 5908617443, finding 1, option B. The optional third
constructor argument grew a published class's signature for an internal need.
MalformedFilterError goes back to its base constructor and JSDoc; the refusal
is now an ordinary MalformedFilterError built by the module-private
refuseTextComparandEntry, whose message is replaced by the refusal sentence.
The constructor's entry serialisation is BigInt-safe through a module-private
describer, so the BigInt pin still reaches the contract reason. The changeset
text is corrected to match.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…efusal in the README (objectui#9048)

Contract review 5908617443, finding 2 (AGENTS.md #2). "Rule-shaped arrays"
now says an icontains rule with an empty or non-string value throws
MalformedFilterError (INVALID_FILTER / 400) before any request, naming the
spelling that arrived, as the README already says for the $ dialect; the
export-listing comment and the INVALID_FILTER code line are widened to match.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 1 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/8568-retire-dollar-dialect-lowercase-aliases.md

  • names packages/data-objectstack/README.md → packages/data-objectstack/README.md — edited by this change

    packages/data-objectstack/README.md's operator tables follow the implementation, as does the reconciliation test that holds them to it.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with 81778b955 (merge-base with origin/main): 3 file(s) changed outside .changeset/, read against 1796 pending declaration(s) that publish a body (2403 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3570.9 KB 3607.4 KB
Main entry chunk (gzip) 149.5 KB 350 KB
Entry file index-18Xqjvl5.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 559.46KB 134.18KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 228.51KB 63.39KB
fields (index.js) 261.19KB 66.27KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.32KB 11.09KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 234.78KB 62.36KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.30KB 44.19KB
plugin-gantt (index.js) 172.43KB 42.85KB
plugin-grid (index.js) 230.25KB 63.22KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.82KB 28.67KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.42KB
plugin-tree (index.js) 11.21KB 3.89KB
plugin-view (index.js) 90.43KB 22.76KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 3.83KB 1.49KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.82KB 7.15KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 26de698a1f789d39b3f10f9444795a2760ae6ed9
Local-runs: none

Round 2, judging the WHOLE PR at the new head. The round-1 record was 5908617443 at d7bd5a111 (FAIL on two findings: the optional third constructor argument on the published MalformedFilterError, and the README owed under AGENTS.md #2). Inputs: card #9048 (body and all 12 comments — ruling D 5658597078, unlock 5904161615, claim 5907396601, dev reports 5908407005 and 5909283039), PR #11192 (body, 4-file list, net diff against main), the check-runs on the head, and contents/…?ref= reads for context: packages/data-objectstack/src/index.ts, README.md and package.json at the head, packages/core/src/utils/filter-converter.ts at the head, the spec's packages/spec/src/data/filter-text-comparand.ts at the 17.5.0 tag commit, the PR's commit list, and the round-1 record. Nothing was built, run or re-run.

Check-runs on the head, all completed before judging: 43 in all — 40 success, 3 skipped by design (the two coverage jobs and dependabot), 0 failure, 0 in progress. Lint, Type Check, all eight Test shards and the Test rollup, Test (dist pins), Build & E2E, Changeset Declaration, Changeset Bump Policy, Changeset Claim Re-read, Changeset Fixed Group Check, README Export Check, Doc Snippet Type Check, Doc Fence Language Check, Spec Main Shape Gate, Build Docs and Internal Docs Link Check are green. Those conclusions are the derived-gate verdicts; nothing in them is re-derived here.

① Derived judgments

  • Finding 1 of round 1 is closed — the published surface is unchanged, read from the diff. The MalformedFilterError constructor line constructor(entry: unknown, index: number) appears in the diff only as CONTEXT; the hunk @@ -209,7 +237,9 @@ replaces one body line (JSON.stringify(entry) ?? String(entry) becomes describeFilterEntry(entry)) and adds a body comment, and the class docblock is untouched. The two new functions describeFilterEntry and refuseTextComparandEntry carry no export (head lines 212 and 583), as objectFilterEntryToAST (607) and translateFilterChild (729) never did. The two added imports are value imports from @objectstack/spec/data. So nothing this diff adds or changes is reachable from the emitted .d.ts / .d.cts, and the dev's measurement (both byte-identical to BASE e978ed5ea, class block diff empty, control at d7bd5a111 showing refusal?: string) is what the diff predicts. The pin MalformedFilterError.length === 2 guards the parameter count.
  • The envelope is an ordinary MalformedFilterError — RIGHT. refuseTextComparandEntry constructs the class with the base two arguments, then assigns message (an own, writable data property set by super(message)) and throws. instanceof, name ('MalformedFilterError', set in the constructor), code 'INVALID_FILTER', httpStatus 400, entry and index are the class's own, and isMalformedFilterError matches on code or name. Option B of round 1 named "a non-exported subclass or factory"; a factory is the smaller of the two and leaves nothing new to surface. The stack-header pin (the header carries the refusal, not the discarded shape advice) relies on the engine formatting the stack lazily; it is green on CI's Node and is a test-side observation, not a contract point.
  • The describer's byte-identity claim — RIGHT. describeFilterEntry calls JSON.stringify(entry, replacer) with a replacer that returns every value unchanged except a bigint, which it renders as its literal (3n). A replacer function is applied to each post-toJSON value, so returning the value unchanged makes the serialisation identical to the bare call for every entry the bare call could serialise; ?? String(entry) is kept, so undefined and symbols read as before. The only inputs whose output differs are ones the bare call threw on — a BigInt anywhere in the entry, a cyclic entry, a throwing getter — which now render as the BigInt literal or, under the catch, as String(entry). The two-argument message is therefore byte-identical for every entry that serialised before, which is what the changeset states.
  • Ablation leg B — CONSISTENT with the diff, not re-run. Exactly two pins depend on the describer: the BigInt comparand through aggregate() (the refusal path constructs MalformedFilterError(entry, index), so a bare JSON.stringify throws a TypeError in the refusal's place) and the published-class pin that constructs the shape refusal over an entry carrying a BigInt. Replacing the describer with the bare template reds those two and nothing else: 2 red / 52 green, as reported. Leg A (the guard's if-condition disabled) at 37 red / 17 green is the round-1 arithmetic plus the two new published-class pins, which do not depend on the guard: 2 derivation + 2 + 8 + 2 + 1 + 2 = 17 green, 54 - 17 = 37 red.
  • The 54 pins. Counting the it blocks in the diff through their loops: 11 + 17 + 6 + 10 + 8 + 2 = 54 (21 static it( sites). The two added this round are the constructor parameter count and the BigInt-safe shape refusal. All eight Test shards are green on the head.
  • The door sits in objectFilterEntryToAST itself — RIGHT, verified on the head. find() (3465) reaches the translator on both routes: convertQueryParams calls translateFilterArray(params.$filter) (4939) and rawFindWithPopulate calls translateFilterToAST(params.$filter) (4784). exportDownload (4842) calls translateFilterToAST(request.filter) (4867). aggregate() (6150) calls lowerAnalyticsFilterForWire (6207), which calls translateFilterArray outside the analytics try, so the refusal is not re-classified into the client-side fallback. Every path ends in objectFilterEntriesToAST or translateFilterChild, and both now call objectFilterEntryToAST(entry, index). A nested rule group arrives through translateFilterChild to translateFilterArray to objectFilterEntriesToAST; a bare rule spread under a logical head arrives through translateFilterChild's field !== undefined arm. One door, every caller. exportDownload is not separately pinned; it shares translateFilterToAST with the $expand route, which is.
  • The reason bytes and mustMention — RIGHT. The reason is a call into the spec's textComparandRefusalReason(field, rawOp, entry.value), seated as Filter entry N is refused. The [reason]. [tail] — the seating the spec function's own docblock prescribes for a throwing producer ("a throwing producer raises [Face] The [reason]. [tail]") and the one viewFilterRuleToNode uses on the head ([ObjectUI] The ${textComparandRefusalReason(rule.field, arrived, rule.value)}. ${tail}). rawOp is the spelling that ARRIVED, read before the fold, so the reason names icontains / ICONTAINS / whatever was written, and the tail names the $-dialect twin '$icontains' verbatim, so the rows' mustMention: ['$icontains'] holds on every spelling — which the spec docblock says is the face's job ("the face that serves that vocabulary NAMES the $ twin in its own tail"). rawOp is a string wherever the door runs: toAstFilterOperator returns null for a non-string (head line 195) and the function has already returned. The pin derives the two rows from FILTER_TEXT_CASES, asserts each row's code and every mustMention entry, and checks the reason by calling the spec function rather than copying its bytes.
  • The internal index argument on translateFilterChild — RIGHT. Neither function is exported. The index is the child's position in its parent array on all three call sites: i in the entry-form and legacy-flat branches, i + 1 under a logical head (counting the head). The pins assert index 1 for a later entry, 0 inside a nested group, and 2 for a bare rule after the head. An untranslatable bare child still passes through as before; only a contract-refused one throws.
  • An absent value refused with no carve-out — RIGHT. The translator always emits a 3-tuple, so [field, 'icontains', undefined] went to the wire as ["name","icontains",null]; isRefusedTextComparand(undefined) is true; the spec docblock reserves the absence carve-out for a vocabulary with a valueless operator, which this form is not; ValueDataSource refuses the same rule, and the parity pin says so.
  • Every alias spelling that folds to icontains — RIGHT. On the head FILTER_OPERATOR_ALIASES has exactly one row whose value is icontains (the identity row, line 141); the fold lower-cases first, so ICONTAINS and iContains fold. The pin reads the folding rows off the table, adds the two case variants and the op key, and pairs each with a control. $icontains / containsCaseInsensitive do not fold and pass through raw, before and after.
  • Parity with ValueDataSource over 9 comparands — RIGHT. Verdict-for-verdict on '', 42, null, undefined, no value key, true, ['a'], {} and 'acme', each also equated to isRefusedTextComparand(value), so both faces are tied to the one predicate rather than to each other.
  • No lockfile or manifest change — RIGHT. The file list is the changeset, the README, the pin file and index.ts; packages/data-objectstack/package.json on the head already declares "@objectstack/spec": "^17.5.0" as a direct dependency, and the import is from the /data subpath, the one core's text-comparand.ts re-exports from. No new export from @object-ui/core, as ruling D requires.
  • Scope held — RIGHT. contains with '' still goes to the wire (SCOPE pin); the object form is unchanged (objectui#9001); objectui#9050 is untouched, per the ruling.

② Semver level

  • The changeset declares '@object-ui/data-objectstack': patch; the PR body and the claim read Clause-②: no. At this head the diff publishes one thing: a bug fix. The exported surface is unchanged (judged above from the diff, matching the dev's byte-identical .d.ts / .d.cts), and the runtime change narrows what the adapter SENDS to exclude only the two shapes the contract's own FILTER_TEXT_CASES declares REFUSED — shapes the $ dialect and ValueDataSource already refuse. That is enforcing a declared contract on the one dialect that lacked the door, not narrowing a published accept set, and it is the level ruling D pre-wrote (patch, Clause-②: no).
  • The Clause-②: no line is RIGHT. Round 1's finding was the constructor growth; option B removed it, and the level that was wrong for d7bd5a111 is right for 26de698a1.
  • The changeset body matches the diff: the refused set, the fold-then-judge order, the three faces reading the two spec functions, find() (both routes) and aggregate(), nesting, the JSON null before/after, the untouched contains family, the unchanged public signature, the BigInt-safe message that is otherwise byte-identical, and the README paragraph. Changeset Declaration, Changeset Bump Policy and Changeset Claim Re-read are green on the head.

③ Boundary flags

  • Finding 2 of round 1 is closed — the README paragraph judged against the diff. "Rule-shaped arrays" gains a paragraph mirroring the object form's $icontains paragraph. Each claim in it is in the diff: the empty / number / null / missing value (parity table pins), MalformedFilterError with INVALID_FILTER / 400 before any request (dataCalls 0 asserted on every refusal), the spec's own reason shared with the object form's objectui#9001 refusal (convertFiltersToAST calls the same textComparandRefusalReason), the arrived spelling named beside $icontains (spelling pins), refusal at the top level, in a nested group and spread into a logical node (depth pins), and on both find() and aggregate() (route and aggregate pins). The MalformedFilterError export-listing comment is widened by four comment-only lines inside the fence and points at the section. README Export Check, Doc Snippet Type Check and Doc Fence Language Check are green. The paragraph does not name exportDownload; that is an omission, not a false statement.
  • An AST tuple handed as $filter passes unjudged — answered, not owed (unchanged from round 1). translateFilterArray deliberately leaves an already-lowered comparison tuple to the server; the in-tree AST producers refuse the shape first, and no producer of a raw refused tuple was demonstrated. A new card if the PM wants the adapter's AST arm to match ValueDataSource's.
  • find() throws a bare TypeError on a BigInt param — answered, not owed. The coalescing key stableStringify(params) (head line 3472) runs before connect() and before either route translates; pre-existing, not widened by this diff, and no JSON-sourced filter can carry a BigInt. Driving the BigInt pin through aggregate() is the route that reaches the translator, so the deviation is justified.
  • PR body: the FALSE sentences, named exactly. The body was not patched; the seat's ACCEPT carries the correction. At this head these are false:
    1. "MalformedFilterError takes an optional third constructor argument." — FALSE: the constructor is (entry: unknown, index: number).
    2. "It is a refusal sentence that replaces the shape advice." — FALSE as written, since it describes a constructor argument that does not exist; the replacement happens inside the module-private refuseTextComparandEntry.
    3. "The refusal message does not re-serialise the entry, because JSON.stringify throws on a BigInt, and a pin below drives that case." — FALSE in its mechanism: the refusal path now constructs MalformedFilterError(entry, index), which serialises the entry through describeFilterEntry and discards the result; BigInt safety is the describer's, not an avoided serialisation.
    4. "## Tests (final HEAD d7bd5a111, tree clean)" — FALSE in "final HEAD": the head is 26de698a1. The readings under it (74 / 1017, 52 pins, ablation 37 / 15 on 75db0a505, lint at d7bd5a111) are stale-but-true for the heads they name and are not findings.
    5. Acceptance notes: "The README does not describe the new refusal.", "but does not yet say that an icontains entry with an empty or non-string value raises MalformedFilterError." and "It is outside this claim's file surface." — FALSE at this head: the README does say it, in this PR's own diff.
      Stale-but-true, not findings: the "Before and after" table, the premises section, and the "What this lands" bullets other than the MalformedFilterError one. The dev's pr_body_edits_needed in 5909283039 is the accurate replacement text for all three passages.
  • The docs commit message's clause "the export-listing comment and the INVALID_FILTER code line are widened to match" — inaccurate, and it does not matter for main. The README's INVALID_FILTER code line (head lines 644-646) is outside every hunk and already names MalformedFilterError. objectui squash-merges with the PR title and body, so the per-commit message never reaches main; it lives only on the branch. Not a finding. ⚠️ Escalated to the seat for the same reason: a squash merge makes the PR BODY the merged commit's message, so a correction that lives only in a comment does not reach main's history. Before merge, either PATCH the body per pr_body_edits_needed, or edit the squash commit message at merge time to replace the three passages named above. That is the seat's ACCEPT mechanics, not the diff, so it is escalated rather than found.
  • objectui#9050 — answered. Where a render-time toFilterNode throw surfaces stays that card's, per ruling D; this adapter's refusal is a find() / aggregate() / exportDownload rejection and does not reach those entries.
  • Deviations recorded by the dev. Factory rather than subclass: allowed by option B, and the smaller shape. The describer also hardens the two-argument SHAPE refusal against a BigInt or cyclic entry: additive, byte-identical for every entry that serialised before, declared in the changeset. Three-chunk scripts/__tests__ run with a population diff: a process note. Nothing to escalate beyond the squash-message point above.
  • No open_questions in either report; none left open here.

Both round-1 findings are closed at this head, everything judged in ① is right, the level and the Clause-②: line now match what the diff publishes, and every check-run on the head is green.

Implemented-by: claude/issue-9048-array-entry-text-comparand
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 30, 2026 10:33
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit 0b8c638 Sep 30, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-9048-array-entry-text-comparand branch September 30, 2026 10:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

data-adapter documentation Improvements or additions to documentation tests

Projects

None yet

2 participants