From a3baf4688cea572087286841d70966892873ec2f Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 20:33:57 +0000 Subject: [PATCH 01/10] test(mcp): pin validate_expression keeping the search companion out of scope Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- packages/mcp/package.json | 1 + .../mcp/src/mcp-validate-expression.test.ts | 61 ++++++++++++++++++- pnpm-lock.yaml | 3 + 3 files changed, 64 insertions(+), 1 deletion(-) diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 71714fad20b..13ad24be6c8 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -32,6 +32,7 @@ "@objectstack/formula": "workspace:*", "@objectstack/lint": "workspace:*", "@objectstack/metadata-core": "workspace:*", + "@objectstack/objectql": "workspace:*", "@objectstack/spec": "workspace:*", "@objectstack/types": "workspace:*", "unpdf": "1.9.1", diff --git a/packages/mcp/src/mcp-validate-expression.test.ts b/packages/mcp/src/mcp-validate-expression.test.ts index 8d741036e50..d6e90d3b6a4 100644 --- a/packages/mcp/src/mcp-validate-expression.test.ts +++ b/packages/mcp/src/mcp-validate-expression.test.ts @@ -16,8 +16,9 @@ import { } from '@objectstack/lint'; import { applyInjectedSystemColumns } from '@objectstack/metadata-core'; +import { provisionSearchCompanion, SEARCH_COMPANION_FIELD } from '@objectstack/objectql'; -import { MCPServerRuntime } from './mcp-server-runtime.js'; +import { MCPServerRuntime, describeServedObject } from './mcp-server-runtime.js'; import type { McpDataBridge } from './mcp-http-tools.js'; /** @@ -919,3 +920,61 @@ describe('validate_expression judges the field being authored at the formula sit expect((json as { result: { isError?: boolean } }).result.isError).toBe(true); }); }); + +describe('validate_expression keeps the hidden search companion out of scope', () => { + // A field-scoped search object as the registry serves it with pinyin search + // on: the companion stamped beside the declared fields, then projected the + // way the transports project it. + const authored = { + name: 'sc_contact', + label: 'Contact', + fields: { + name: { type: 'text', label: 'Name', required: true }, + email: { type: 'email', label: 'Email' }, + }, + }; + const served = provisionSearchCompanion(applyInjectedSystemColumns(authored)); + const bridge = (): McpDataBridge => ({ + ...makeBridge(), + async listObjects() { + return [{ name: 'sc_contact', label: 'Contact', fieldCount: Object.keys(served.fields).length }]; + }, + async describeObject(name: string) { + return name === 'sc_contact' ? describeServedObject(served as never) : null; + }, + }); + + let runtime: MCPServerRuntime; + beforeEach(() => { + runtime = new MCPServerRuntime({ name: 'objectstack-test', version: '9.9.9' }); + }); + + it('the served object really carries the companion (precondition)', () => { + expect(Object.keys(served.fields)).toContain(SEARCH_COMPANION_FIELD); + }); + + it('inScope.fields lists the ordinary fields and no companion', async () => { + const r = await validate(runtime, bridge(), { objectName: 'sc_contact', expression: "record.name != ''", site: 'validation' }); + expect(r.ok).toBe(true); + expect(r.inScope.fields).toContain('name'); + expect(r.inScope.fields).toContain('email'); + expect(r.inScope.fields).toContain('created_at'); + expect(r.inScope.fields).not.toContain(SEARCH_COMPANION_FIELD); + }); + + it('a read of the companion is refused as a field the object does not have, as os validate refuses it', async () => { + const expression = `record.${SEARCH_COMPANION_FIELD} != ''`; + const gate = validateStackExpressions({ + objects: [{ ...authored, validations: [{ name: AUTHORED_RULE_NAME, type: 'script', condition: expression, message: 'm' }] }], + }).filter((i) => i.where.includes(`'${AUTHORED_RULE_NAME}'`)); + expect(gate.map((i) => i.severity ?? 'error')).toEqual(['error']); + expect(gate[0]!.message).toContain(SEARCH_COMPANION_FIELD); + + for (const site of ['validation', 'formula', 'flow_condition'] as const) { + const r = await validate(runtime, bridge(), { objectName: 'sc_contact', expression, site }); + expect(r.ok, site).toBe(false); + const refused = r.errors.filter((e: { code?: string }) => e.code === 'unknown-field'); + expect(refused.map((e: { params?: { field?: string } }) => e.params?.field), site).toEqual([SEARCH_COMPANION_FIELD]); + } + }); +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index caee2b8d3a8..b2528064279 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1427,6 +1427,9 @@ importers: '@objectstack/metadata-core': specifier: workspace:* version: link:../metadata-core + '@objectstack/objectql': + specifier: workspace:* + version: link:../objectql '@objectstack/spec': specifier: workspace:* version: link:../spec From 9cfc99e13aeb7d344e9c31657bcdd1530d20edbe Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 20:37:36 +0000 Subject: [PATCH 02/10] fix(mcp): validate_expression keeps the search companion out of scope Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- packages/mcp/src/mcp-http-tools.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/mcp/src/mcp-http-tools.ts b/packages/mcp/src/mcp-http-tools.ts index 218e9312312..53858a178b6 100644 --- a/packages/mcp/src/mcp-http-tools.ts +++ b/packages/mcp/src/mcp-http-tools.ts @@ -2632,8 +2632,17 @@ export function registerObjectTools( const fieldDefs = Array.isArray(def.fields) ? (def.fields as Array>) : []; const fields: string[] = []; const fieldTypes: Record = {}; + // The hidden search companion is served beside the declared fields + // (the registry stamps it where pinyin search is on), but no + // expression may read it: every read strips it, and `os validate` + // judges against the declared and injected columns, which never + // include it. Left in, it is listed in `inScope.fields` and a read + // of it answers ok here while the gate refuses it. The name is the + // engine's own constant, loaded on the first call like `@objectstack/lint`. + const { SEARCH_COMPANION_FIELD } = await import('@objectstack/objectql'); for (const f of fieldDefs) { if (typeof f?.name !== 'string') continue; + if (f.name === SEARCH_COMPANION_FIELD) continue; fields.push(f.name); if (typeof f?.type === 'string') fieldTypes[f.name] = f.type; } From 7f24b188e554d00938386b21bcbf69d9b8136962 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 20:38:28 +0000 Subject: [PATCH 03/10] chore(changeset): mcp validate_expression search companion Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- .../mcp-validate-expression-search-companion.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .changeset/mcp-validate-expression-search-companion.md diff --git a/.changeset/mcp-validate-expression-search-companion.md b/.changeset/mcp-validate-expression-search-companion.md new file mode 100644 index 00000000000..b6934c30be0 --- /dev/null +++ b/.changeset/mcp-validate-expression-search-companion.md @@ -0,0 +1,12 @@ +--- +'@objectstack/mcp': patch +--- + +fix(mcp): `validate_expression` no longer lists the hidden `__search` search companion in `inScope.fields`, and a read of it is refused as `os validate` refuses it + +Clause-②: no +Metadata-protocol: none + +Where pinyin search is on, the object an MCP caller is served carries the hidden `__search` companion column beside its declared fields. `validate_expression` took its field list from that object, so it named `__search` in `inScope.fields` and answered `ok` for an expression such as `record.__search != ''`. Every record read strips that column, and `os validate` judges an expression against the declared and injected columns only, so the same rule failed there with `unknown-field`. + +The tool now leaves the companion out of the fields it judges and lists. The name comes from the engine's own constant (`SEARCH_COMPANION_FIELD`, `@objectstack/objectql`), so `@objectstack/mcp` now depends on `@objectstack/objectql`. It is loaded on the first `validate_expression` call, the way `@objectstack/lint` is, and not when the package loads. Every other field, injected system columns such as `organization_id` among them, is listed and judged as before. From 8fd19455fb69d60ef3eb2a02cda85c590634bc7a Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 21:11:49 +0000 Subject: [PATCH 04/10] test(mcp): judge the engine's companion constant from source Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- packages/mcp/vitest.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/mcp/vitest.config.ts b/packages/mcp/vitest.config.ts index 42c891e4e27..5bd59bfed59 100644 --- a/packages/mcp/vitest.config.ts +++ b/packages/mcp/vitest.config.ts @@ -57,10 +57,18 @@ export default defineConfig({ // which drives the stdio exit through the shared ADR-0106 case table: the // table is a VALUE import too, and judging this transport against a stale // build of it would be the same silent wrong-tree verdict. + // + // The `@objectstack/objectql` entry is for `mcp-validate-expression.test.ts`, + // which provisions the search companion with the engine's own + // `provisionSearchCompanion` and reads its name from `SEARCH_COMPANION_FIELD`, + // the constant `validate_expression` leaves out of scope: both VALUE imports, + // judged against the source in the checkout, not a build of it. Anchored + // because `@objectstack/objectql` exports a `./core` subpath. alias: [ { find: /^@objectstack\/metadata-core$/, replacement: path.resolve(__dirname, '../metadata-core/src/index.ts') }, { find: /^@objectstack\/metadata-core\/testing$/, replacement: path.resolve(__dirname, '../metadata-core/src/testing.ts') }, { find: /^@objectstack\/lint$/, replacement: path.resolve(__dirname, '../lint/src/index.ts') }, + { find: /^@objectstack\/objectql$/, replacement: path.resolve(__dirname, '../objectql/src/index.ts') }, ], }, }); From f6bb127575bab0be7f66f36c576ddc3a761d74bd Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 21:43:53 +0000 Subject: [PATCH 05/10] fix(mcp): validate_expression loads the companion name from the lean objectql entry The first validate_expression call imported the @objectstack/objectql barrel, whose metadata-protocol graph a standalone process has not loaded; under the source alias that first call outran a 5 s test budget. Load SEARCH_COMPANION_FIELD from @objectstack/objectql/core (ADR-0076) instead. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- packages/mcp/src/mcp-http-tools.ts | 2 +- packages/mcp/src/mcp-validate-expression.test.ts | 2 +- packages/mcp/vitest.config.ts | 16 +++++++++------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/packages/mcp/src/mcp-http-tools.ts b/packages/mcp/src/mcp-http-tools.ts index 53858a178b6..7a3ee4ac425 100644 --- a/packages/mcp/src/mcp-http-tools.ts +++ b/packages/mcp/src/mcp-http-tools.ts @@ -2639,7 +2639,7 @@ export function registerObjectTools( // include it. Left in, it is listed in `inScope.fields` and a read // of it answers ok here while the gate refuses it. The name is the // engine's own constant, loaded on the first call like `@objectstack/lint`. - const { SEARCH_COMPANION_FIELD } = await import('@objectstack/objectql'); + const { SEARCH_COMPANION_FIELD } = await import('@objectstack/objectql/core'); for (const f of fieldDefs) { if (typeof f?.name !== 'string') continue; if (f.name === SEARCH_COMPANION_FIELD) continue; diff --git a/packages/mcp/src/mcp-validate-expression.test.ts b/packages/mcp/src/mcp-validate-expression.test.ts index d6e90d3b6a4..65dcb2200c4 100644 --- a/packages/mcp/src/mcp-validate-expression.test.ts +++ b/packages/mcp/src/mcp-validate-expression.test.ts @@ -16,7 +16,7 @@ import { } from '@objectstack/lint'; import { applyInjectedSystemColumns } from '@objectstack/metadata-core'; -import { provisionSearchCompanion, SEARCH_COMPANION_FIELD } from '@objectstack/objectql'; +import { provisionSearchCompanion, SEARCH_COMPANION_FIELD } from '@objectstack/objectql/core'; import { MCPServerRuntime, describeServedObject } from './mcp-server-runtime.js'; import type { McpDataBridge } from './mcp-http-tools.js'; diff --git a/packages/mcp/vitest.config.ts b/packages/mcp/vitest.config.ts index 5bd59bfed59..232c207412d 100644 --- a/packages/mcp/vitest.config.ts +++ b/packages/mcp/vitest.config.ts @@ -58,17 +58,19 @@ export default defineConfig({ // table is a VALUE import too, and judging this transport against a stale // build of it would be the same silent wrong-tree verdict. // - // The `@objectstack/objectql` entry is for `mcp-validate-expression.test.ts`, - // which provisions the search companion with the engine's own - // `provisionSearchCompanion` and reads its name from `SEARCH_COMPANION_FIELD`, - // the constant `validate_expression` leaves out of scope: both VALUE imports, - // judged against the source in the checkout, not a build of it. Anchored - // because `@objectstack/objectql` exports a `./core` subpath. + // The `@objectstack/objectql/core` entry (the lean engine entry, ADR-0076) + // serves `validate_expression`, which loads `SEARCH_COMPANION_FIELD` from it + // on the first call, and `mcp-validate-expression.test.ts`, which provisions + // the search companion with the engine's own `provisionSearchCompanion`: + // both VALUE imports, judged against the source in the checkout, not a + // build of it. The lean entry, not the barrel: transforming the barrel's + // `@objectstack/metadata-protocol` graph on that first call outran a test's + // 5 s budget. alias: [ { find: /^@objectstack\/metadata-core$/, replacement: path.resolve(__dirname, '../metadata-core/src/index.ts') }, { find: /^@objectstack\/metadata-core\/testing$/, replacement: path.resolve(__dirname, '../metadata-core/src/testing.ts') }, { find: /^@objectstack\/lint$/, replacement: path.resolve(__dirname, '../lint/src/index.ts') }, - { find: /^@objectstack\/objectql$/, replacement: path.resolve(__dirname, '../objectql/src/index.ts') }, + { find: /^@objectstack\/objectql\/core$/, replacement: path.resolve(__dirname, '../objectql/src/core.ts') }, ], }, }); From 1ffa893bd01a85188fba76350149d77c68efacb7 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 22:06:21 +0000 Subject: [PATCH 06/10] fix(mcp): validate_expression reads the companion name from the spec, not the engine The first validate_expression call imported the engine to read one constant; under the test source alias that first call outran a 5 s budget, and in a standalone process it loads the engine for a string. The name now lives in @objectstack/spec/data as SEARCH_COMPANION_FIELD; objectql provisions under it and re-exports it unchanged, and mcp imports it statically from the spec, so mcp keeps objectql as a test-only dependency. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- .../mcp-validate-expression-search-companion.md | 8 ++++++-- packages/mcp/package.json | 2 +- packages/mcp/src/mcp-http-tools.ts | 5 ++--- packages/mcp/vitest.config.ts | 12 +++++------- packages/objectql/src/search-companion.ts | 11 ++++++----- packages/spec/api-surface/data.json | 1 + packages/spec/src/data/search-fields.ts | 17 +++++++++++++++++ pnpm-lock.yaml | 6 +++--- 8 files changed, 41 insertions(+), 21 deletions(-) diff --git a/.changeset/mcp-validate-expression-search-companion.md b/.changeset/mcp-validate-expression-search-companion.md index b6934c30be0..81a3fc5f77b 100644 --- a/.changeset/mcp-validate-expression-search-companion.md +++ b/.changeset/mcp-validate-expression-search-companion.md @@ -1,12 +1,16 @@ --- '@objectstack/mcp': patch +'@objectstack/spec': minor +'@objectstack/objectql': patch --- fix(mcp): `validate_expression` no longer lists the hidden `__search` search companion in `inScope.fields`, and a read of it is refused as `os validate` refuses it -Clause-②: no +Clause-②: yes (widening) — `@objectstack/spec/data` gains the `SEARCH_COMPANION_FIELD` constant (`'__search'`); `@objectstack/objectql` re-exports the same value it exported before. Metadata-protocol: none Where pinyin search is on, the object an MCP caller is served carries the hidden `__search` companion column beside its declared fields. `validate_expression` took its field list from that object, so it named `__search` in `inScope.fields` and answered `ok` for an expression such as `record.__search != ''`. Every record read strips that column, and `os validate` judges an expression against the declared and injected columns only, so the same rule failed there with `unknown-field`. -The tool now leaves the companion out of the fields it judges and lists. The name comes from the engine's own constant (`SEARCH_COMPANION_FIELD`, `@objectstack/objectql`), so `@objectstack/mcp` now depends on `@objectstack/objectql`. It is loaded on the first `validate_expression` call, the way `@objectstack/lint` is, and not when the package loads. Every other field, injected system columns such as `organization_id` among them, is listed and judged as before. +The tool now leaves the companion out of the fields it judges and lists. Every other field, injected system columns such as `organization_id` among them, is listed and judged as before. + +The companion's name now lives in the protocol, as `SEARCH_COMPANION_FIELD` in `@objectstack/spec/data`, so a layer that only needs the name does not have to load the engine to read it. `@objectstack/objectql` provisions and strips the column under that same constant and still exports it under the same name, so engine callers change nothing. `@objectstack/mcp` reads it from the spec and gains no runtime dependency on the engine. diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 13ad24be6c8..20479ff2a2e 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -32,13 +32,13 @@ "@objectstack/formula": "workspace:*", "@objectstack/lint": "workspace:*", "@objectstack/metadata-core": "workspace:*", - "@objectstack/objectql": "workspace:*", "@objectstack/spec": "workspace:*", "@objectstack/types": "workspace:*", "unpdf": "1.9.1", "zod": "^4.6.6" }, "devDependencies": { + "@objectstack/objectql": "workspace:*", "@types/node": "^26.6.5", "typescript": "^6.0.3", "vitest": "^4.1.11" diff --git a/packages/mcp/src/mcp-http-tools.ts b/packages/mcp/src/mcp-http-tools.ts index 7a3ee4ac425..9f5fb2f02b7 100644 --- a/packages/mcp/src/mcp-http-tools.ts +++ b/packages/mcp/src/mcp-http-tools.ts @@ -48,7 +48,7 @@ import type { EngineAggregateOptions } from '@objectstack/spec/data'; // entry IS this node, so this door and the REST query door (which parses // `FindDataRequestSchema`, whose `aggregations` are this node) judge one shape // with one refusal. -import { AggregationNodeSchema } from '@objectstack/spec/data'; +import { AggregationNodeSchema, SEARCH_COMPANION_FIELD } from '@objectstack/spec/data'; // [#23529] The catalogue's spelling of `PERMISSION_DENIED`, the code whose // `details` `errorResultFromThrown` withholds. Imported, never hand-spelled. import { StandardErrorCode, type ErrorCode } from '@objectstack/spec/api'; @@ -2638,8 +2638,7 @@ export function registerObjectTools( // judges against the declared and injected columns, which never // include it. Left in, it is listed in `inScope.fields` and a read // of it answers ok here while the gate refuses it. The name is the - // engine's own constant, loaded on the first call like `@objectstack/lint`. - const { SEARCH_COMPANION_FIELD } = await import('@objectstack/objectql/core'); + // protocol's one constant, the same one the engine provisions under. for (const f of fieldDefs) { if (typeof f?.name !== 'string') continue; if (f.name === SEARCH_COMPANION_FIELD) continue; diff --git a/packages/mcp/vitest.config.ts b/packages/mcp/vitest.config.ts index 232c207412d..c2b90be2860 100644 --- a/packages/mcp/vitest.config.ts +++ b/packages/mcp/vitest.config.ts @@ -59,13 +59,11 @@ export default defineConfig({ // build of it would be the same silent wrong-tree verdict. // // The `@objectstack/objectql/core` entry (the lean engine entry, ADR-0076) - // serves `validate_expression`, which loads `SEARCH_COMPANION_FIELD` from it - // on the first call, and `mcp-validate-expression.test.ts`, which provisions - // the search companion with the engine's own `provisionSearchCompanion`: - // both VALUE imports, judged against the source in the checkout, not a - // build of it. The lean entry, not the barrel: transforming the barrel's - // `@objectstack/metadata-protocol` graph on that first call outran a test's - // 5 s budget. + // is for `mcp-validate-expression.test.ts`, which provisions the search + // companion with the engine's own `provisionSearchCompanion` and reads its + // name from `SEARCH_COMPANION_FIELD`: VALUE imports, judged against the + // source in the checkout, not a build of it. Only the test loads the + // engine; the tool reads the name from `@objectstack/spec/data`. alias: [ { find: /^@objectstack\/metadata-core$/, replacement: path.resolve(__dirname, '../metadata-core/src/index.ts') }, { find: /^@objectstack\/metadata-core\/testing$/, replacement: path.resolve(__dirname, '../metadata-core/src/testing.ts') }, diff --git a/packages/objectql/src/search-companion.ts b/packages/objectql/src/search-companion.ts index 85e580c35b3..c3af9ddfb54 100644 --- a/packages/objectql/src/search-companion.ts +++ b/packages/objectql/src/search-companion.ts @@ -40,16 +40,17 @@ * the same column. */ -import { resolveDisplayField, TITLE_ELIGIBLE_TYPES } from '@objectstack/spec/data'; +import { resolveDisplayField, SEARCH_COMPANION_FIELD, TITLE_ELIGIBLE_TYPES } from '@objectstack/spec/data'; import { SystemFieldName } from '@objectstack/spec/system'; import { isFederatedObject } from './federated-object.js'; /** - * Name of the hidden companion column. Double-underscore prefixed so it can - * never collide with an author-declared field (machine names are snake_case - * words) and reads as platform plumbing in raw rows. + * Name of the hidden companion column. The name is the protocol's + * (`@objectstack/spec/data`), re-exported here so engine callers keep + * importing it from the engine; see the declaration there for why it lives in + * the spec. */ -export const SEARCH_COMPANION_FIELD = '__search'; +export { SEARCH_COMPANION_FIELD }; /** * Normalizers applied to the companion column. Generalization seam: pinyin is diff --git a/packages/spec/api-surface/data.json b/packages/spec/api-surface/data.json index 3dd6a05f3f6..3113cd53203 100644 --- a/packages/spec/api-surface/data.json +++ b/packages/spec/api-surface/data.json @@ -725,6 +725,7 @@ "SEARCHABLE_TEXTUAL_TYPES (const)", "SEARCH_AUTO_EXCLUDED_FIELDS (const)", "SEARCH_AUTO_EXCLUDED_TYPES (const)", + "SEARCH_COMPANION_FIELD (const)", "SEARCH_FLAG_EXCLUDED_TYPES (const)", "SEARCH_VIRTUAL_TYPES (const)", "SECRET_MASK (const)", diff --git a/packages/spec/src/data/search-fields.ts b/packages/spec/src/data/search-fields.ts index cf5226ff43a..19397bb5d19 100644 --- a/packages/spec/src/data/search-fields.ts +++ b/packages/spec/src/data/search-fields.ts @@ -359,3 +359,20 @@ export function resolveSearchFields(opts: SearchFieldResolutionOptions): string[ } return allowed; } + +/** + * Name of the hidden search companion column (#2486): the lowercase, + * normalised copy of an object's searchable text that the engine provisions + * where pinyin search is on, and the one extra `$contains` clause above scans. + * It is platform plumbing: every record read strips it, `resolveSearchFields` + * never returns it, and no expression may read it. + * + * ONE name for every layer that must recognise the column: the engine + * (`@objectstack/objectql` provisions and strips it under this name and + * re-exports it) and the MCP `validate_expression` tool (which leaves it out + * of the fields an expression may name). It lives here, not in the engine, so + * a layer that only needs the name does not have to load the engine to read it. + * Double-underscore prefixed so it can never collide with an author-declared + * field (machine names are snake_case words). + */ +export const SEARCH_COMPANION_FIELD = '__search'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b2528064279..3b7a0e39ed6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1427,9 +1427,6 @@ importers: '@objectstack/metadata-core': specifier: workspace:* version: link:../metadata-core - '@objectstack/objectql': - specifier: workspace:* - version: link:../objectql '@objectstack/spec': specifier: workspace:* version: link:../spec @@ -1443,6 +1440,9 @@ importers: specifier: ^4.6.6 version: 4.6.7 devDependencies: + '@objectstack/objectql': + specifier: workspace:* + version: link:../objectql '@types/node': specifier: ^26.6.5 version: 26.6.5 From a182226e1eb93d3fad64542faaec597b68d140cb Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 23:07:18 +0000 Subject: [PATCH 07/10] chore(spec): record SEARCH_COMPANION_FIELD's export origin Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- packages/spec/export-origins/data.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/spec/export-origins/data.json b/packages/spec/export-origins/data.json index 24f322456c9..43682052021 100644 --- a/packages/spec/export-origins/data.json +++ b/packages/spec/export-origins/data.json @@ -713,6 +713,7 @@ "SEARCHABLE_TEXTUAL_TYPES": "src/data/search-fields.ts#SEARCHABLE_TEXTUAL_TYPES (const)", "SEARCH_AUTO_EXCLUDED_FIELDS": "src/data/search-fields.ts#SEARCH_AUTO_EXCLUDED_FIELDS (const)", "SEARCH_AUTO_EXCLUDED_TYPES": "src/data/search-fields.ts#SEARCH_AUTO_EXCLUDED_TYPES (const)", + "SEARCH_COMPANION_FIELD": "src/data/search-fields.ts#SEARCH_COMPANION_FIELD (const)", "SEARCH_FLAG_EXCLUDED_TYPES": "src/data/search-fields.ts#SEARCH_FLAG_EXCLUDED_TYPES (const)", "SEARCH_VIRTUAL_TYPES": "src/data/search-fields.ts#SEARCH_VIRTUAL_TYPES (const)", "SECRET_MASK": "src/data/secret-mask.ts#SECRET_MASK (const)", From 3c1cdfab46a834fff8cbbe27c931c78b2560dae2 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 23:14:09 +0000 Subject: [PATCH 08/10] chore(changeset): grade the spec entry patch (no metadata-protocol change) Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- .changeset/mcp-validate-expression-search-companion.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/mcp-validate-expression-search-companion.md b/.changeset/mcp-validate-expression-search-companion.md index 81a3fc5f77b..af8564fab39 100644 --- a/.changeset/mcp-validate-expression-search-companion.md +++ b/.changeset/mcp-validate-expression-search-companion.md @@ -1,6 +1,6 @@ --- '@objectstack/mcp': patch -'@objectstack/spec': minor +'@objectstack/spec': patch '@objectstack/objectql': patch --- From 59ae25a92d9954d0ec48801dda51648ea764667e Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 00:09:36 +0000 Subject: [PATCH 09/10] fix(mcp): describe_object skips the hidden search companion on both transports The registry serves an object with the hidden __search companion beside its display field where pinyin search is on. describe_object listed it, while no caller may read, write or name it. Both describeServedObject twins now skip SEARCH_COMPANION_FIELD (from @objectstack/spec/data), pinned on the stdio tool and resource and on the HTTP bridge over a real engine. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cw787kMeaX7oyz7DDC --- .../mcp-describe-object-search-companion.md | 13 ++++ packages/mcp/src/mcp-server-runtime.ts | 11 ++- ...dio-data-bridge.object-schema-mask.test.ts | 67 ++++++++++++++++ .../domains/mcp-object-schema-mask.test.ts | 76 +++++++++++++++++++ packages/runtime/src/domains/mcp.ts | 11 ++- 5 files changed, 174 insertions(+), 4 deletions(-) create mode 100644 .changeset/mcp-describe-object-search-companion.md diff --git a/.changeset/mcp-describe-object-search-companion.md b/.changeset/mcp-describe-object-search-companion.md new file mode 100644 index 00000000000..40527d8105e --- /dev/null +++ b/.changeset/mcp-describe-object-search-companion.md @@ -0,0 +1,13 @@ +--- +'@objectstack/mcp': patch +'@objectstack/runtime': patch +--- + +fix(mcp): `describe_object` no longer lists the hidden `__search` search companion, on either MCP transport + +Clause-②: no +Metadata-protocol: none + +Where pinyin search is on, the registry serves an object with the hidden `__search` companion column beside its display field. `describe_object` described every served field, so it offered an agent that column (as `readonly` and `system`), while no caller may read, write or name it: a record never echoes it, a `$searchFields` override naming it is refused, and `validate_expression` answers `unknown-field` for a read of it. + +`describe_object` now leaves the companion out on both transports: the HTTP bridge in `@objectstack/runtime`, and the stdio bridge and the `objectstack://objects/{name}` resource in `@objectstack/mcp`. Both skip it by the protocol's one constant, `SEARCH_COMPANION_FIELD` from `@objectstack/spec/data`. Every other field is listed as before, the injected system columns such as `organization_id` and `created_at` included. diff --git a/packages/mcp/src/mcp-server-runtime.ts b/packages/mcp/src/mcp-server-runtime.ts index 487fb1756a7..f73e1a4c099 100644 --- a/packages/mcp/src/mcp-server-runtime.ts +++ b/packages/mcp/src/mcp-server-runtime.ts @@ -59,7 +59,7 @@ import { z } from 'zod'; // [#28715] The engine's own reading of "this field declares options" (its // `label()` map is built from it), never a second spelling here. import { declaresOptions } from '@objectstack/formula'; -import { RUNTIME_OWNED_FIELD_TYPES, isVirtualSearchField } from '@objectstack/spec/data'; +import { RUNTIME_OWNED_FIELD_TYPES, SEARCH_COMPANION_FIELD, isVirtualSearchField } from '@objectstack/spec/data'; /** * Configuration for the MCP Server Runtime. @@ -124,6 +124,13 @@ interface ServedFieldDef { * — ⛔ never its condition, pattern or transition table: the rule's message is * what a refused write answers with, and its expression is server policy. * + * ⛔ Never the hidden search companion (`SEARCH_COMPANION_FIELD`), which the + * registry serves beside the display field where pinyin search is on: no + * caller may read, write or name it (a record never echoes it, a + * `$searchFields` override naming it is refused, `validate_expression` + * answers `unknown-field`), so the door that offers an agent a field to use + * does not list it. The HTTP twin skips it by the same constant. + * * One projection for this package's two readers of it: the stdio bridge's * `describeObject` (`stdio-data-bridge.ts`) and the `objectstack://objects/{name}` * resource ({@link buildObjectSchemaResource}), each handing it the object as @@ -140,7 +147,7 @@ export function describeServedObject(def: ServedObjectDef, declared: ServedObjec return { name: def.name, label: def.label ?? def.name, - fields: Object.entries(def.fields ?? {}).map(([key, f]) => ({ + fields: Object.entries(def.fields ?? {}).filter(([key]) => key !== SEARCH_COMPANION_FIELD).map(([key, f]) => ({ name: key, type: f?.type, label: f?.label ?? key, diff --git a/packages/mcp/src/stdio-data-bridge.object-schema-mask.test.ts b/packages/mcp/src/stdio-data-bridge.object-schema-mask.test.ts index f18303ff42d..a15910bfdc8 100644 --- a/packages/mcp/src/stdio-data-bridge.object-schema-mask.test.ts +++ b/packages/mcp/src/stdio-data-bridge.object-schema-mask.test.ts @@ -40,9 +40,12 @@ import { } from '@objectstack/metadata-core/testing'; import { OBJECT_SCHEMA_MASK_DISABLE_ENV, + applyInjectedSystemColumns, assertEngineUpdateDispatch, type ObjectSchemaReadDelegateSource, } from '@objectstack/metadata-core'; +import { SEARCH_COMPANION_FIELD } from '@objectstack/spec/data'; +import { provisionSearchCompanion } from '@objectstack/objectql/core'; import { callerObjectView, createStdioDataBridge, stdioObjectView } from './stdio-data-bridge.js'; import { registerObjectTools } from './mcp-http-tools.js'; import { MCPServerPlugin } from './plugin.js'; @@ -721,3 +724,67 @@ describe('stdio describe_object and the objects resource judge readonly on the D expect((await describeOverResource()).json.fields).toEqual((await describeOverStdio()).json.fields); }); }); + +describe('stdio describe_object and the objects resource never list the hidden search companion', () => { + // A field-scoped search object as the registry serves it with pinyin search + // on: the injected system columns, and the companion the engine stamps + // beside the display field (`provisionSearchCompanion`, the producer's own + // function, not a transcription of its output). The companion is a column + // no caller may read, write or name, so the door that offers an agent a + // field to use does not list it. The HTTP twin is pinned on a real engine in + // `packages/runtime/src/domains/mcp-object-schema-mask.test.ts`. + const CONTACT = 'sc_contact'; + const served = () => provisionSearchCompanion(applyInjectedSystemColumns({ + name: CONTACT, + label: 'Contact', + fields: { + name: { type: 'text', label: 'Name', required: true }, + email: { type: 'email', label: 'Email' }, + }, + })); + const metadataService = () => ({ + listObjects: vi.fn(async () => [served()]), + getObject: vi.fn(async (name: string) => (name === CONTACT ? served() : undefined)), + }) as unknown as IMetadataService; + const KEPT = ['name', 'email', 'created_at', 'updated_at', 'organization_id']; + const namesOf = (described: any): string[] => described.fields.map((f: any) => f.name); + + it('precondition: the served object carries the companion', () => { + expect(Object.keys(served().fields)).toContain(SEARCH_COMPANION_FIELD); + }); + + it('describe_object over stdio', async () => { + const bridge = createStdioDataBridge({ + engine: {} as unknown as IDataEngine, + metadataService: metadataService(), + resolvePrincipal: async () => ({ userId: 'u_member' }) as unknown as ExecutionContext, + }); + expect(Object.keys((await bridge.servedObjectDefinitionOf!(CONTACT))!.fields as object)).toContain(SEARCH_COMPANION_FIELD); + const server = new McpServer({ name: 'pin', version: '0' }); + registerObjectTools(server, bridge); + const [clientSide, serverSide] = InMemoryTransport.createLinkedPair(); + await server.connect(serverSide); + const client = new Client({ name: 'pin', version: '0' }); + await client.connect(clientSide); + try { + const res = (await client.callTool({ name: 'describe_object', arguments: { objectName: CONTACT } })) as { + isError?: boolean; + content: Array<{ text: string }>; + }; + expect(res.isError === true).toBe(false); + const names = namesOf(JSON.parse(res.content[0]!.text)); + expect(names).not.toContain(SEARCH_COMPANION_FIELD); + expect(names).toEqual(expect.arrayContaining(KEPT)); + expect(res.content[0]!.text).not.toContain(SEARCH_COMPANION_FIELD); + } finally { + await client.close(); + } + }); + + it('the objectstack://objects/{name} resource', async () => { + const result = await buildObjectSchemaResource(metadataService(), CONTACT); + const text = result.contents[0]!.text; + expect(namesOf(JSON.parse(text))).toEqual(expect.arrayContaining(KEPT)); + expect(text).not.toContain(SEARCH_COMPANION_FIELD); + }); +}); diff --git a/packages/runtime/src/domains/mcp-object-schema-mask.test.ts b/packages/runtime/src/domains/mcp-object-schema-mask.test.ts index 1fc72b8a059..108ab921664 100644 --- a/packages/runtime/src/domains/mcp-object-schema-mask.test.ts +++ b/packages/runtime/src/domains/mcp-object-schema-mask.test.ts @@ -42,6 +42,7 @@ import { SysMetadataObject, } from '@objectstack/metadata-core'; import { PermissionSetSchema } from '@objectstack/spec/security'; +import { SEARCH_COMPANION_FIELD } from '@objectstack/spec/data'; import { ObjectQL } from '@objectstack/objectql'; import { SqlDriver } from '@objectstack/driver-sql'; import { SecurityPlugin } from '@objectstack/plugin-security'; @@ -1711,3 +1712,78 @@ describe('[#32530] describe_object serves readonly where a write never stands expect((engine.getSchema(OBJ) as any).fields.marked_up.expression, 'the declaration still carries it').toBeDefined(); }); }); + +// The hidden search companion the registry provisions beside an object's +// display field (`provisionSearchCompanion`, `@objectstack/objectql`) is a +// column no caller may read, write or name: a record never echoes it, a +// `$searchFields` override naming it is refused, and `validate_expression` +// answers `unknown-field` for a read of it. `describe_object` is the door that +// offers an agent a field to use, so it does not list it either. The stdio +// twin is pinned in `packages/mcp/src/stdio-data-bridge.object-schema-mask.test.ts`. +describe('describe_object never lists the hidden search companion — the real engine', () => { + const OBJ = 'mcp_search_contact'; + let engine: ObjectQL; + let services: Record; + const CALLER = { userId: 'usr_search_member', positions: [] as string[], permissions: [] as string[], systemPermissions: [] as string[] }; + const prevPinyin = process.env.OS_SEARCH_PINYIN_ENABLED; + + beforeAll(async () => { + // The deployment switch the registry provisions the companion under, + // read once, when the registry is built. + process.env.OS_SEARCH_PINYIN_ENABLED = 'true'; + engine = new ObjectQL(); + const driver = new SqlDriver({ client: 'better-sqlite3', connection: { filename: ':memory:' }, useNullAsDefault: true } as any); + const storeObjects = [SysMetadataObject, SysMetadataHistoryObject, SysMetadataAuditObject] as any[]; + await driver.initObjects(storeObjects); + engine.registerDriver(driver as any, true); + await engine.init(); + for (const o of storeObjects) engine.registry.registerObject(o, '@objectstack/platform-objects'); + engine.registerApp({ + id: 'com.objectstack.qa.mcp-describe-search-companion', + name: 'MCP describe search companion', + version: '1.0.0', + type: 'plugin', + scope: 'system', + objects: [{ + name: OBJ, + label: 'Contact', + sharingModel: 'public_read_write', + fields: { + // The display field: the companion's source. + name: { name: 'name', type: 'text', label: 'Name', required: true }, + email: { name: 'email', type: 'email', label: 'Email' }, + }, + }], + } as never); + await engine.syncSchemas(); + vi.spyOn((engine as unknown as { logger: { warn: () => void } }).logger, 'warn').mockImplementation(() => undefined); + services = { protocol: new ObjectStackProtocolImplementation(engine as any), objectql: engine }; + vi.spyOn(console, 'warn').mockImplementation(() => undefined); + }, 60_000); + + afterAll(async () => { + vi.restoreAllMocks(); + if (prevPinyin === undefined) delete process.env.OS_SEARCH_PINYIN_ENABLED; + else process.env.OS_SEARCH_PINYIN_ENABLED = prevPinyin; + try { await engine?.destroy(); } catch { /* noop */ } + }); + + const describedNames = async (): Promise => { + const { bridge } = await bridgeFor(kernelOver(services), CALLER); + return ((await bridge.describeObject(OBJ)) as any).fields.map((f: any) => f.name); + }; + + it('precondition: the registry serves the object WITH the companion', async () => { + expect(Object.keys((engine.getSchema(OBJ) as any).fields)).toContain(SEARCH_COMPANION_FIELD); + const { bridge } = await bridgeFor(kernelOver(services), CALLER); + expect(Object.keys((await bridge.servedObjectDefinitionOf(OBJ)).fields)).toContain(SEARCH_COMPANION_FIELD); + }); + + it('the answer has no companion, and keeps the declared fields and the platform\'s other system columns', async () => { + const names = await describedNames(); + expect(names).not.toContain(SEARCH_COMPANION_FIELD); + expect(names).toEqual(expect.arrayContaining(['name', 'email', 'created_at', 'updated_at', 'organization_id'])); + const { bridge } = await bridgeFor(kernelOver(services), CALLER); + expect(JSON.stringify(await bridge.describeObject(OBJ))).not.toContain(SEARCH_COMPANION_FIELD); + }); +}); diff --git a/packages/runtime/src/domains/mcp.ts b/packages/runtime/src/domains/mcp.ts index 261d8bc7615..8b51baf8536 100644 --- a/packages/runtime/src/domains/mcp.ts +++ b/packages/runtime/src/domains/mcp.ts @@ -43,7 +43,7 @@ import { readDispatchedBody } from '../deferred-request-body.js'; // [#28715] The engine's own reading of "this field declares options" (its // `label()` map is built from it), never a second spelling here. import { declaresOptions } from '@objectstack/formula'; -import { RUNTIME_OWNED_FIELD_TYPES, isVirtualSearchField } from '@objectstack/spec/data'; +import { RUNTIME_OWNED_FIELD_TYPES, SEARCH_COMPANION_FIELD, isVirtualSearchField } from '@objectstack/spec/data'; // [#15705] The resume door's one refusal table, shared with // `POST /automation/:name/runs/:runId/resume` so the two doors answer one // engine result identically. @@ -676,6 +676,13 @@ async function warnIfSkillListIncomplete( * ⛔ never its condition, pattern or transition table: the rule's message is * what a refused write answers with, and its expression is server policy. * + * ⛔ Never the hidden search companion (`SEARCH_COMPANION_FIELD`), which the + * registry serves beside the display field where pinyin search is on: no + * caller may read, write or name it (a record never echoes it, a + * `$searchFields` override naming it is refused, `validate_expression` + * answers `unknown-field`), so the door that offers an agent a field to use + * does not list it. The stdio twin skips it by the same constant. + * * `declared` is the object `def` was projected from (the caller's mask * applied to it gives `def`): `readonly` is judged on it, * {@link writeNeverSetsField}. Nothing else is read from it. @@ -690,7 +697,7 @@ function describeServedObject(def: any, declared: any): Record return { name: def.name, label: def.label ?? def.name, - fields: Object.entries(def.fields ?? {}).map(([k, f]: [string, any]) => ({ + fields: Object.entries(def.fields ?? {}).filter(([k]) => k !== SEARCH_COMPANION_FIELD).map(([k, f]: [string, any]) => ({ name: k, type: f?.type, label: f?.label ?? k, From 616d63ad78a103000ebc37df025b3a7e249ac61b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 05:47:41 +0000 Subject: [PATCH 10/10] chore(spec): regenerate api-surface and export-origins on the merged tree Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_016WV4cxkE5YceM1ZSSAeofZ --- packages/spec/api-surface/data.json | 13 ++++++++++++- packages/spec/export-origins/data.json | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/packages/spec/api-surface/data.json b/packages/spec/api-surface/data.json index 3113cd53203..ee2428e0623 100644 --- a/packages/spec/api-surface/data.json +++ b/packages/spec/api-surface/data.json @@ -304,6 +304,9 @@ "FILTER_LOGIC_CASES (const)", "FILTER_LOGIC_ROWS (const)", "FILTER_OPERATORS (const)", + "FILTER_STRING_STORED_COMPARAND_CASES (const)", + "FILTER_STRING_STORED_COMPARAND_FIELDS (const)", + "FILTER_STRING_STORED_COMPARAND_ROWS (const)", "FILTER_SUBTREE_PROVENANCE (const)", "FILTER_TEXT_CASES (const)", "FILTER_TEXT_ROWS (const)", @@ -743,6 +746,9 @@ "SSL_DETAIL_BELONGS_ON_DATASOURCE (const)", "STACK_KEY_GUIDANCE (const)", "STACK_RUNTIME_MEMBERS (const)", + "STRING_STORED_COMPARAND_DOOR_FAMILIES (const)", + "STRING_STORED_COMPARAND_DOOR_LIST_OPERATORS (const)", + "STRING_STORED_COMPARAND_DOOR_SCALAR_OPERATORS (const)", "STRING_VALUE_TYPES (const)", "STRUCTURED_JSON_TYPES (const)", "SYS_ACTIVITY_BUILTIN_TYPES (const)", @@ -817,6 +823,10 @@ "StateMachineValidationParsed (type)", "StateMachineValidationSchema (const)", "StringOperatorSchema (const)", + "StringStoredComparandCase (interface)", + "StringStoredComparandDoorFieldMeta (interface)", + "StringStoredComparandDoorVerdict (type)", + "StringStoredComparandRow (interface)", "SysActivityBuiltinType (type)", "TEMPORAL_CASES (const)", "TEMPORAL_NOW (const)", @@ -935,7 +945,6 @@ "deriveInlineRowFormFields (function)", "deriveRecordFlowSurface (function)", "deriveRecordSurface (function)", - "describeManagedApiMethodConflicts (function)", "discriminateDefaultValueShape (function)", "driverConfigJsonSchema (function)", "driverHasLocalDefault (function)", @@ -1087,6 +1096,8 @@ "resolveSearchFields (function)", "seedFile (function)", "sequenceWidth (function)", + "stringStoredComparandDoorVerdict (function)", + "stringStoredComparandFieldVerdict (function)", "stripLegacyApiMethods (function)", "suggestDefaultValueToken (function)", "suggestFieldTypeForSqlType (function)", diff --git a/packages/spec/export-origins/data.json b/packages/spec/export-origins/data.json index 43682052021..2772660ae01 100644 --- a/packages/spec/export-origins/data.json +++ b/packages/spec/export-origins/data.json @@ -299,6 +299,9 @@ "FILTER_LOGIC_CASES": "src/data/filter-logic-conformance.ts#FILTER_LOGIC_CASES (const)", "FILTER_LOGIC_ROWS": "src/data/filter-logic-conformance.ts#FILTER_LOGIC_ROWS (const)", "FILTER_OPERATORS": "src/data/filter.zod.ts#FILTER_OPERATORS (const)", + "FILTER_STRING_STORED_COMPARAND_CASES": "src/data/filter-comparand-type-conformance.ts#FILTER_STRING_STORED_COMPARAND_CASES (const)", + "FILTER_STRING_STORED_COMPARAND_FIELDS": "src/data/filter-comparand-type-conformance.ts#FILTER_STRING_STORED_COMPARAND_FIELDS (const)", + "FILTER_STRING_STORED_COMPARAND_ROWS": "src/data/filter-comparand-type-conformance.ts#FILTER_STRING_STORED_COMPARAND_ROWS (const)", "FILTER_SUBTREE_PROVENANCE": "src/data/filter-subtree-provenance.ts#FILTER_SUBTREE_PROVENANCE (const)", "FILTER_TEXT_CASES": "src/data/filter-text-conformance.ts#FILTER_TEXT_CASES (const)", "FILTER_TEXT_ROWS": "src/data/filter-text-conformance.ts#FILTER_TEXT_ROWS (const)", @@ -731,6 +734,9 @@ "SSL_DETAIL_BELONGS_ON_DATASOURCE": "src/data/driver/common.zod.ts#SSL_DETAIL_BELONGS_ON_DATASOURCE (const)", "STACK_KEY_GUIDANCE": "src/data/authoring-key-lint.ts#STACK_KEY_GUIDANCE (const)", "STACK_RUNTIME_MEMBERS": "src/data/authoring-key-lint.ts#STACK_RUNTIME_MEMBERS (const)", + "STRING_STORED_COMPARAND_DOOR_FAMILIES": "src/data/filter-string-stored-comparand-declared-type.ts#STRING_STORED_COMPARAND_DOOR_FAMILIES (const)", + "STRING_STORED_COMPARAND_DOOR_LIST_OPERATORS": "src/data/filter-string-stored-comparand-declared-type.ts#STRING_STORED_COMPARAND_DOOR_LIST_OPERATORS (const)", + "STRING_STORED_COMPARAND_DOOR_SCALAR_OPERATORS": "src/data/filter-string-stored-comparand-declared-type.ts#STRING_STORED_COMPARAND_DOOR_SCALAR_OPERATORS (const)", "STRING_VALUE_TYPES": "src/data/field-value.zod.ts#STRING_VALUE_TYPES (const)", "STRUCTURED_JSON_TYPES": "src/data/field-value.zod.ts#STRUCTURED_JSON_TYPES (const)", "SYS_ACTIVITY_BUILTIN_TYPES": "src/data/feed.zod.ts#SYS_ACTIVITY_BUILTIN_TYPES (const)", @@ -805,6 +811,10 @@ "StateMachineValidationParsed": "src/data/validation.zod.ts#StateMachineValidationParsed (type)", "StateMachineValidationSchema": "src/data/validation.zod.ts#StateMachineValidationSchema (const)", "StringOperatorSchema": "src/data/filter.zod.ts#StringOperatorSchema (const)", + "StringStoredComparandCase": "src/data/filter-comparand-type-conformance.ts#StringStoredComparandCase (interface)", + "StringStoredComparandDoorFieldMeta": "src/data/filter-string-stored-comparand-declared-type.ts#StringStoredComparandDoorFieldMeta (interface)", + "StringStoredComparandDoorVerdict": "src/data/filter-string-stored-comparand-declared-type.ts#StringStoredComparandDoorVerdict (type)", + "StringStoredComparandRow": "src/data/filter-comparand-type-conformance.ts#StringStoredComparandRow (interface)", "SysActivityBuiltinType": "src/data/feed.zod.ts#SysActivityBuiltinType (type)", "TEMPORAL_CASES": "src/data/temporal-conformance.ts#TEMPORAL_CASES (const)", "TEMPORAL_NOW": "src/data/temporal-conformance.ts#TEMPORAL_NOW (const)", @@ -921,7 +931,6 @@ "deriveInlineRowFormFields": "src/data/inline-grid-columns.ts#deriveInlineRowFormFields (function)", "deriveRecordFlowSurface": "src/data/record-surface.ts#deriveRecordFlowSurface (function)", "deriveRecordSurface": "src/data/record-surface.ts#deriveRecordSurface (function)", - "describeManagedApiMethodConflicts": "src/data/managed-api-affordance.ts#describeManagedApiMethodConflicts (function)", "discriminateDefaultValueShape": "src/data/default-value-shape.ts#discriminateDefaultValueShape (function)", "driverConfigJsonSchema": "src/data/driver/common.zod.ts#driverConfigJsonSchema (function)", "driverHasLocalDefault": "src/data/driver/config-registry.zod.ts#driverHasLocalDefault (function)", @@ -1073,6 +1082,8 @@ "resolveSearchFields": "src/data/search-fields.ts#resolveSearchFields (function)", "seedFile": "src/data/seed-file.zod.ts#seedFile (function)", "sequenceWidth": "src/data/autonumber-format.ts#sequenceWidth (function)", + "stringStoredComparandDoorVerdict": "src/data/filter-string-stored-comparand-declared-type.ts#stringStoredComparandDoorVerdict (function)", + "stringStoredComparandFieldVerdict": "src/data/filter-string-stored-comparand-declared-type.ts#stringStoredComparandFieldVerdict (function)", "stripLegacyApiMethods": "src/data/object.zod.ts#stripLegacyApiMethods (function)", "suggestDefaultValueToken": "src/data/default-value-shape.ts#suggestDefaultValueToken (function)", "suggestFieldTypeForSqlType": "src/data/type-compat.ts#suggestFieldTypeForSqlType (function)",