Skip to content

fix(core,spec): the AMBIGUOUS_MATCH import row refusal names the key by label and reads in the caller's locale - #37213

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-37157-ambiguous-match-row-language
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-37157-ambiguous-match-row-language

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #37157
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:导入时某行的匹配键匹配到多条已有记录而被拒,这条提示改用用户自己的语言,并用字段名称代替内部字段名和接口参数名;控制台导入向导下载的失败行表格和接口调用方会看到新句子,向导页面上的错误列表本来就按代码显示自己的本地化文案,不变。
  • 为什么做:属于「导入体验」这一组工作,是重复匹配键、空匹配键、多值匹配键三条提示本地化的同族收尾,替非英文用户解决导入结果里看到英文和内部名称、不知道该改哪个键的问题。
  • 出错会怎样:只影响这一条提示的文字,哪些行被拒、错误代码和写入结果都不变,可以直接撤回。
  • 要你做的:无。

What changes

The import runner's last English row refusal, AMBIGUOUS_MATCH (a row whose match key finds more than one stored record), now renders through the mechanism its siblings use (#36980 and #37025): renderValidationMessage with the caller's locale (context.locale) and override hook (translate).

  • packages/spec/src/system/validation-message.ts: one new BUILTIN_VALIDATION_MESSAGES row, import_ambiguous_match, in all four locales (en, zh-CN, ja-JP, es-ES), plus a docblock paragraph beside the sibling ones. {{label}} is the key set the row was matched by, by field LABEL joined with +, and {{field}} is the same names as API names. No sentence ends in a full stop; zh-CN uses the sibling punctuation. en: The match key (Email) matches more than one record, so the row was not written: match on fields whose values identify one record.
  • packages/core/src/utils/import-runner.ts: ambiguousMatchMessage(keySet) beside blankMatchKeyMessage / multiValueMatchKeyMessage, sharing fieldLabel. The AMBIGUOUS_MATCH row uses it on matchedKeySet. The code AMBIGUOUS_MATCH and the row shape are unchanged.
  • Per the seat's ruling (card comment 7151513753, option B), the sentence names the key fields by label only, like the siblings. The object is not named at all. The old sentence named the API parameter matchFields and the object's API name.
  • Caller paths: the import endpoint (POST /data/:object/import and the async import job) passes both the request locale and the deployment's translator, so the row reads in the request language and takes an override under validation.field.import_ambiguous_match. The connector and datasource pulls pass neither, so they read English and the override is not consulted.

Tests

New top-level describe [#37157] the ambiguous-match row refusal reads in the request language in the shared harness packages/core/src/utils/import-runner-duplicate-match-key-36980.test.ts. A protocol double answers two records for every lookup. It has five cases:

  • zh-CN, exact sentence 匹配键(邮箱)匹配到多条记录,因此该行未写入:请改用取值能唯一确定一条记录的字段匹配, row shape and code kept, nothing written;
  • English control;
  • no locale reads English;
  • multi-field key with an unlabelled field falling back to its API name;
  • a deployment override filled with {{label}} and {{field}}.

Acceptance notes

  • Premise correction (where the sentence is read): the console import wizard's on-screen lists already render AMBIGUOUS_MATCH by code with the console's own grid.import.matchAmbiguous text (ui/packages/plugin-grid/src/ImportWizard.tsx ~615, formatDryRunError, on both the dry-run panel and the completion screen). So the on-screen row list was never English. The server sentence reaches two places: the wizard's failed-rows CSV download (handleDownloadFailed, the _error column) and REST callers. Both now get the localized sentence. The wizard is not changed.
  • ui/packages/plugin-grid/src/importDryRun.test.ts feeds the old English sentence as an input fixture to formatDryRunError. It asserts the wizard's own text, so it is unaffected.
  • Hand-written docs: content/docs/data-modeling/import-mappings.mdx (~269, ~305) and the matchFields .describe() describe AMBIGUOUS_MATCH by code and meaning and never state the sentence. They stay true and are unchanged. check:generated reports nothing stale.

Verification

Two-minute check: pnpm --filter @objectstack/core exec vitest run --maxWorkers=2 src/utils/import-runner-duplicate-match-key-36980.test.ts. Expect 14 passed, including "zh-CN: the sentence is the zh-CN catalog entry, naming the key by its label".

Local readings at 584d821
  • Build @objectstack/core... (core and its dependency closure, spec included): lock VERDICT command-exit 0.
  • Harness file: Test Files 1 passed (1), Tests 14 passed (14).
  • Full @objectstack/core vitest: Test Files 165 passed (165), Tests 3871 passed (3871).
  • Typecheck @objectstack/core and @objectstack/spec: VERDICT command-exit 0.
  • @objectstack/spec src/system/ vitest (every locale defines every key): Test Files 78 passed (78), Tests 2779 passed (2779).
  • @objectstack/spec check:generated: "All 14 generated artifacts are up to date".
  • Ablation through scripts/ablation-replace.mjs: the row put back to the old English template (anchor 1 to 0, blob db4f26baa550 to d67f32257c80), harness 5 failed / 14 (all five Import wizard: the AMBIGUOUS_MATCH row refusal is still an English sentence naming the matchFields parameter and the object API name #37157 cases). Restore: blob == HEAD (db4f26baa550), git diff HEAD empty.
  • Derived gates (dispatch-gates.mjs --commands, 89 families): 86 exit 0, 3 exit 3 (PREREQUISITE NOT MET, so NOT MEASURED: check:doc-formula-expressions, because @objectstack/formula is not built; check:dual-build-cjs-loads and check:lean-entry-closure, which need a full workspace build). --ran: "89 derived famil(ies) accounted for — 86 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)".
  • check-nul-bytes: OK. overlap-check --branch=origin/claude/issue-37157-ambiguous-match-row-language: VERDICT clean exit 0.

L2 owed: this PR edits non-test packages/spec/src/** (one catalog key in four locales and one docblock paragraph). It changes no Zod shape, export, error code or authorable key.

Responsibility: the platform's own @objectstack/core import runner | the validation-message catalog its siblings already use, not reached by this row | non-English users importing in update or upsert mode whose row matches two records, from the console import wizard.


Generated by Claude Code

…and the object by label and reads in the caller's locale

Claude-Session: https://claude.ai/code/session_01QSeKYmRepQK9DkZeU7F53D
Co-authored-by: Claude <noreply@anthropic.com>
…pins move into the shared harness

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

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

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

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

  • content/docs/api/client-sdk.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/api/wire-format.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/data-modeling/currency.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it), /:object/import/jobs (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/data-modeling/fields.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/data-modeling/import-mappings.mdx (via AMBIGUOUS_MATCH (literal, a string literal in runImport), /:object/import (route, bridged from symbol runImport — its route source's handler names it), /:object/import/jobs (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/permissions/system-context.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it), /:object/import/jobs (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/protocol/objectql/state-machine.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it), /:object/import/jobs (route, bridged from symbol runImport — its route source's handler names it))

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

  • content/docs/releases/v12.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/releases/v17/17-6.mdx (via runImport (symbol, a top-level function), /:object/import (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/releases/v18/18-1.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it))
  • content/docs/releases/v18/18-2.mdx (via /:object/import (route, bridged from symbol runImport — its route source's handler names it))

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

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

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

Which tree this was computed on

This run read content/docs from 55c95da0a55d5a625e46b84d10536521b1fe96db — the merge of head 584d821df4209559d62ba04c755701a8f44d71bf into base a33691e567aa21090e2cb567cedd9d47dba22165, which is what actions/checkout gives a pull_request run. Not the PR head.

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

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 55c95da0a55d5a625e46b84d10536521b1fe96db && git checkout 55c95da0a55d5a625e46b84d10536521b1fe96db
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a33691e567aa21090e2cb567cedd9d47dba22165 584d821df4209559d62ba04c755701a8f44d71bf && git checkout -B drift-repro a33691e567aa21090e2cb567cedd9d47dba22165 && git merge --no-ff 584d821df4209559d62ba04c755701a8f44d71bf

node scripts/docs-audit/affected-docs.mjs --json a33691e567aa21090e2cb567cedd9d47dba22165

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

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Final head for L1 + L2 · area a4-U · 2026-11-25T04:27Z
Head-sha: 584d821df4209559d62ba04c755701a8f44d71bf

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 584d821df4209559d62ba04c755701a8f44d71bf
Local-runs: none
Scope: packages/spec/src/system/validation-message.ts + packages/core/src/utils/import-runner.ts, packages/core/src/utils/import-runner-duplicate-match-key-36980.test.ts, .changeset/37157-import-ambiguous-match-language.md

Full review of PR #37213 (card #37157) at its head: 3 commits, 4 files, +111/-1. Schema face: one hit, the catalog module under packages/spec/src/**. Sibling precedent: PR #37126 (card #37025), same mechanism.

① Derived judgments

  • Catalog key (validation-message.ts). One row, import_ambiguous_match, added under each of en, zh-CN, ja-JP, es-ES, plus one docblock paragraph. BUILTIN_VALIDATION_MESSAGES is an open Record<string, Record<string, string>> and messageKey is string; no Zod enum, literal union or api-surface row lists the keys, and the diff touches no api-surface or generated file. It is data in an open record, not a shape: nothing a parser accepts or refuses moves, so the accept-set is unchanged and no public export is added, removed or retyped.
  • Override name. validation.field.import_ambiguous_match becomes a name the renderer asks the i18n service for. translation.messages is an open string record, so a bundle carrying it parsed before and parses now; what changes is that the name is read. Same class as import_duplicate_match_key (fix(core,plugin-grid): the duplicate-match-key import row refusal reads in the request language, and a record-level row error shows no _record: prefix #37009) and the two fix(core,spec): the blank and multi-value match-key import row refusals name fields by label and read in the caller's locale #37126 keys, all declared no / none. Clause-②: no holds, and yes (widening) would be wrong. Metadata-protocol: none holds: no authorable key, no stored-metadata shape.
  • Row text. ImportRowResult.error changes for one row. code (AMBIGUOUS_MATCH), action, ok, row and the member set are as before (import-runner.ts ~1667; the zh-CN case asserts the sorted key list). The error-code ledger row (error-code-ledger.zod.ts ~1304) is untouched.
  • Does a caller's text change in English too? Yes. An English REST caller now reads The match key (Email) matches more than one record, so the row was not written: match on fields whose values identify one record where it read matchFields matched more than one <object> record. That is human text; the machine vocabulary is code. Grep at head for the old sentence finds one non-doc reader, ui/packages/plugin-grid/src/importDryRun.test.ts ~129, which feeds it as an input fixture to formatDryRunError and asserts the wizard's own text, so it does not depend on it. Not a clause-② event.
  • Hand-written docs. import-mappings.mdx ~269 and ~305 and the matchFields .describe() name the row by code and meaning and never quote the sentence; they stay true. No sibling key is enumerated anywhere outside the catalog, the runner, the harness and changesets, so no list is left one short.

② Semver level

  • @objectstack/spec patch, @objectstack/core patch: correct for Metadata-protocol: none on a text-only change. No other released package is in the diff (rest, service-automation, plugin-auth, plugin-grid untouched).
  • Clause-②: no and Metadata-protocol: none are line-initial and identical in the PR body and the changeset. Check Changeset and PR-body guards are success on the head.
  • No BREAKING banner is owed: nothing an author can write is removed, renamed or tightened.

③ Boundary flags

  • open_questions: [] and security_findings: none in the dev report (7152386849): nothing to answer. Read independently: no read, write or permission path is added (ruling B removed the object read the first commit considered); label and field are interpolated once as values, so a label spelling a placeholder prints as written. In the wizard's failed-rows CSV the built-in sentence starts with fixed words in all four locales, so a label cannot lead the _error cell.
  • Deviation 1 (an edit to packages/rest/src/import-prepare.ts attempted, refused, never landed): confirmed, the diff has no packages/rest path; the seat then ruled B (7151513753).
  • Deviation 2 (pins moved into the shared harness): confirmed, see ④.
  • Deviation 3 (first overlap-check as --branch=HEAD): the final one used the origin form and read clean; git merge-tree --write-tree origin/main <head> is clean here.
  • Deviation 4 (no main merge before the PR): origin/main (93bd45957bc4) is K = 10 first-parent commits past the merge base 3b4f0b983283; none touches the four files of this PR, the runImport callers (data-action-routes.ts, connector-pull.ts, datasource-pull.ts, admin-import-users.ts) or ImportWizard.tsx.
  • Out-of-scope item (the wizard's own grid.import.matchAmbiguous text names no key field; carrier: none, noted, not filed): accepted as outside the card. That text is localized in every console locale and is not a defect.
  • Three derived gates were NOT MEASURED locally by the dev (check:doc-formula-expressions, check:dual-build-cjs-loads, check:lean-entry-closure, prerequisite builds missing): answered by CI at this head: lint.yml runs the first and ci.yml the other two (~3510, ~3534), and every lint and build check-run on the head is success.
  • SQL push-down: no new id materialisation, query or in-app join. The lookup (findExisting, limit: 2) is unchanged; only the string built after it differs.
  • Check-runs on the head: 69, of which 58 success and 11 skipped, none failed or pending. Test Core 10/10 shards and aggregate, Spec property liveness and Governed Surface Queue Guard are success. This matches the zone note (7152862581).
  • The ablation (row back to the English template, 5 of 14 red) is the zone's reading, taken as reported; nothing was run here. It is consistent with the file: 14 it( cases at head, the 5 new ones each assert the exact new sentence with toBe, and the other 9 never reach the ambiguous branch.

④ Design judgment

Held against the ruling (7151513753, option B) and the code:

  • B, exactly. No template in any of the four locales names an object, and the helper passes no object: ambiguousMatchMessage(keySet) supplies label (field labels joined with +) and field (API names joined with +) only, the same join duplicateMatchKeyMessage uses for one key set. objectName no longer appears in the row. The card's own Acceptance ("names the object and the key fields by label", "with the object and field labels") is superseded by B; the PR body says so and cites the ruling.
  • Right key set. The site passes matchedKeySet, the set findExisting actually matched by, so with ordered key sets the sentence names the set that was ambiguous, not all of them.
  • Label over name. Shared fieldLabel (metaMap.get(f)?.label?.trim() || f); the unlabelled-field case pins the API-name fallback. On the REST door the labels are already the locale-translated ones (import-prepare.ts ~711, applyLocalizedFieldLabels).
  • {{field}} filled. Supplied by the helper and pinned by the override case (邮箱 + 公司 [email + company]). No built-in template prints it, as the catalog docblock says.
  • Templates. Each carries {{label}} and no other placeholder. None ends in a full stop. Terms match the siblings (匹配键, 一致キー, clave de coincidencia), and zh-CN keeps the table's ASCII punctuation.
  • Caller paths, each claim read in code at head (the check fix(core,spec): the blank and multi-value match-key import row refusals name fields by label and read in the caller's locale #37126's S1 set):
    • REST synchronous (data-action-routes.ts ~691) and import job (~879) pass context from resolveExecCtx (built with requestLocale: this.extractLocale(req), rest-server.ts ~3561) and translate from resolveMessageTranslator; the job resolves its translator before the 201, while the request is alive. Both: true as stated.
    • Connector pull (connector-pull.ts ~912) and datasource pull (datasource-pull.ts ~370) pass no translate and a context with no locale. English, override not consulted: true as stated.
    • admin-import-users.ts ~1020 passes neither context nor translate. It matches on email or phone_number in upsert mode, so it does run findExisting, but both columns carry unique: 'global' indexes on sys_user (sys-user.object.ts ~1688, ~1692), so two stored records for one key are not a state the store allows. The PR's sentence does not name this caller and does not claim to be exhaustive; see N3.
  • Premise correction, verified. formatDryRunError (ImportWizard.tsx ~615) returns t('grid.import.matchAmbiguous') for the code before it reads r.error, and both the dry-run panel (~2678) and the completion screen (~3392) go through it; the key exists in all 11 console locale packs. The server sentence reaches result.errors[].message (~1159, ~2939), which handleDownloadFailed (~3088) writes to the _error column, and REST callers. So the on-screen list was never English, the card's "sees it in English in the wizard's row-error list" was wrong, and the PR's narrower statement is the true one. No wizard change is owed.
  • Test placement. The five cases are a top-level describe in the shared harness import-runner-duplicate-match-key-36980.test.ts, beside the sibling describes, reusing its OBJECT and imports; no new test file. They cover zh-CN exact sentence with row shape and code, the English control, no locale, a two-field key with an unlabelled field, and a deployment override.
  • 维护者速读. Accurate on what changes, where it is read (failed-rows file and API callers; the on-screen list unchanged), blast radius and reversibility. One imprecise phrase, see N2.

Findings: none graded.

N1 — The changeset's second sentence reads "It names the key set the row was matched by its field labels": a "by" is lost ("matched by, by its field labels"). It becomes release-note text for two packages; the PR body's wording is right.

N2 — 维护者速读 says the new text "用字段名称代替内部字段名和接口参数名". The old sentence carried the object's API name and matchFields, not field API names; "内部对象名和接口参数名" is what was replaced, and the new sentence names no object at all.

N3 — runImport has five non-test callers and the changeset and PR body name four. The fifth (admin-import-users.ts) passes neither locale nor translator, so if the row were ever produced there it would read English; the unique indexes on both of its match columns make that unreachable in practice. Same shape as the #37126 note; no text is false.

N4 — Test strength: every case runs dryRun: true, so createData / updateData not.toHaveBeenCalled() in the zh-CN case holds on any dry run and does not show the committing path refuses the row (the branch is shared by both, ~1664). ja-JP and es-ES are covered for presence only (the catalog completeness test), not through the runner.

No must-fix, no should-fix.

Implemented-by: claude/issue-37157-ambiguous-match-row-language
Reviewed-by: fresh subagent of session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 584d821df4209559d62ba04c755701a8f44d71bf · 2026-11-25T04:33Z

L1 for card #37157, requested by zone a4-U (7152862581). Beside the contract review at this head (CONTRACT_REVIEW_TIER, schema face): PASS.

  • Ruling B (7151513753) is followed exactly. AMBIGUOUS_MATCH renders the new import_ambiguous_match catalog entry in en, zh-CN, ja-JP, es-ES; the sentence names the matched key set by field label and names no object. This supersedes the card's "names the object" Acceptance line; the maintainer's veto window on B stays open.
  • Contract. One data row in an open string-keyed catalog: no shape, export, enum, error code or api-surface row moves and no accept-set changes. Clause-②: no, Metadata-protocol: none, spec patch and core patch are right, as for the siblings on fix(core,spec): the blank and multi-value match-key import row refusals name fields by label and read in the caller's locale #37126.
  • Unchanged. Code AMBIGUOUS_MATCH, row shape, the lookup and which rows are refused. Only error text moves, in English too.
  • Caller paths, read in code. REST sync and job paths pass the request locale and the deployment translator. Connector and datasource pulls pass neither and read English. admin-import-users passes neither and cannot reach the row (unique indexes on email and phone_number).
  • {{field}} is filled with the API names and pinned by the override case.
  • Premise correction holds. The wizard's on-screen lists render this code with the console's own grid.import.matchAmbiguous text in every console locale; the server sentence reaches the failed-rows CSV _error column and REST callers. No wizard change is owed, and the 维护者速读 says this correctly.
  • Tests. Five cases as a top-level describe in the shared harness import-runner-duplicate-match-key-36980.test.ts, no new file. The zone's ablation (5 of 14 red, the five new cases) is consistent with the file; not re-run here.
  • Gates. Check-runs at this head: 58 success, 11 skipped, 0 failed or pending. The three gates the dev could not measure locally are covered by green CI.
  • Nits, at the zone's discretion (none blocks landing): N1 the changeset's "matched by its field labels" drops a "by"; N2 the 维护者速读 says "内部字段名" where the old sentence carried the object's API name; N3 the caller-path sentence names four of the five runImport callers; N4 the "nothing written" assertions run under dryRun: true.
  • Out of scope, agreed: the wizard's on-screen text names no key field; it is localized and not a defect, no card.
  • Landing. Not Tier H. K = 10 first-parent commits on main since the merge base, none touching this PR's files or the runImport callers, and the merge is clean. The PR is still a draft: with this L1 and the contract review both on record for this head, the zone readies and lands it. A merge-only move of main keeps this ACCEPT.

No must-fix, no should-fix.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYmRepQK9DkZeU7F53D

Landing · area a4-U · 2026-11-25T04:35Z · head 584d821df4209559d62ba04c755701a8f44d71bf

reading value
L1 ACCEPT 7152960757 (seat repo:objectstack#4) on this head
L2 contract review PASS 7152952656 on this head (CONTRACT_REVIEW_TIER)
nits N1–N4 at the zone's discretion, none blocking; not taken, so the reviewed head lands unchanged
check-governed-merges.mjs --pr 37213 NOT governed · 112 changed lines ≤ 3000
overlap-check.mjs clean against origin/main
check-runs at this head 58 success, 11 expected skip, 0 failed, 0 pending
K 10 (under 15), so no merge of main first

State change: ready for review + auto-merge armed; the queue lands it. On MERGED the card #37157 closes through Fixes #37157.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 04:35
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit d15e439 Nov 25, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-37157-ambiguous-match-row-language branch November 25, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import wizard: the AMBIGUOUS_MATCH row refusal is still an English sentence naming the matchFields parameter and the object API name

2 participants