You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcp: a pin for the dataset tools when the i18n service resolves but its reads throw #34876
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p3
Filing gate: ④ a child of the cross-lane parent #34659 (the 「MCP 二期与问数」 epic). The maintainer set who files this epic's cards, in this session's chat, 2026-11-17, verbatim: 「你应该负责立卡,对方只是派发处理」. The gap was reported to this session by the dispatching seat repo:objectstack#3 on #34659 (comment 6948693475); the filer did not re-read the code behind it. Source: the L1 record on PR #34833, 6948646042, N3. Left open at landing under the maintainer's merge standard for nits.
Why
When the i18n service is present but a read throws, the dataset catalogue degrades to untranslated text on both transports. That may be the right behaviour; nothing pins it, so a later change can turn it into a refusal or a silent wrong answer unnoticed.
Evidence
Per the report: no test covers an i18n service whose getLocales / getTranslations throws; the case reaches the dataset executor as a degraded read on HTTP and stdio alike.
Scope
One pin beside stdio-data-bridge in packages/mcp/src/, and the matching HTTP-door case if it is unpinned too: the read degrades, and says so the way the door's degradation rule requires.
Done when
Both pins are green and fail when the degraded read is removed.
First touch (R1197, 14:5xZ): p3 · domain:server → pm:queue.
Theme: MCP. A missing pin for a degraded i18n read. It is a nit carried under the maintainer's land-with-nits merge standard, and the filer's p3 is kept. Not dispatched while p3 is paused. Whether such nit cards stay open is asked of the maintainer on #6015 (R1197).
one new pin beside stdio-data-bridge (an i18n service whose getLocales / getTranslations throws: the dataset read degrades and says so per the door's degradation rule);
the matching HTTP-door case beside mcp-dataset-tools.test.ts, if it is unpinned too.
No source edit is planned. If the premise measurement finds the degraded read missing or wrong (a refusal or a silent wrong answer), the dev stops and the area reports to the seat before any source edit.
Container & model: S, mode:subagent, model: TIER_DEFAULT, effort: high (seat order)
Clause-②: no (tests only; no accepted input or served answer changes)
Metadata-protocol: none
Responsibility: MCP dataset tools (objectstack): when the i18n service resolves but its reads throw, the dataset catalogue degrades to untranslated text on HTTP and stdio, and nothing pins that | a later change can turn the degraded read into a refusal or a silent wrong answer unnoticed | every MCP client of an app whose i18n service fails at read time
Thread-read: 6951590194
Premise: to be measured on origin/main first (the degraded read on both transports, and whether either already has a pin).
Serial constraints cleared: open PRs touching packages/mcp/src/: docs(skills): the ask-data skill's zero-match rows read list_datasets candidates #34977 (ask-skill.generated.ts only, no overlap)
Pre-claim lane: domain:server
Pre-claim deps: none
Prior rulings read: i18n,degraded,getTranslations,dataset → none touching a test-only pin
Lease o3-A (seat post #34584); epic #34659 p3 under seat 3 (seat order 2026-11-17 21:46Z). L1: L1-d.
Premise is wider than the card says. No source or test edit was written and no PR was opened; this is a measurement for the area to take to the seat.
{
"issue": 34876,
"status": "blocked",
"branch": "claude/issue-34876-i18n-throw-pin",
"pr": null,
"session": "session_01WGufzg2evNa1V3zxrQq3KX",
"premise_still_valid": false,
"summary": "Measured on origin/main db1a05cdaee. The card says that when the i18n service resolves but getLocales/getTranslations throws, the dataset catalogue 'degrades to untranslated text'. It does not. translationBundleOf (packages/rest/src/meta-item-read-gate.ts:3264 getLocales, :3268 getTranslations) calls both reads with no guard, and translateMetaList calls it at :3611 before anything else, so translateMetaList REJECTS with the i18n error. Both transports call it inside loadDatasets with no catch: stdio packages/mcp/src/stdio-data-bridge.ts:1483, HTTP packages/runtime/src/domains/mcp.ts:1600 (only the service LOOKUP is caught: stdio-data-bridge.ts:1184-1190, mcp.ts:1560-1566). The dataset executor then answers the throw as a degraded read (packages/services/service-analytics/src/dataset-tools.ts:177-178): list_datasets returns datasets: [] with partial: true and the warning 'The dataset catalogue could not be read: MSG' (:401-407), and query_dataset refuses with 503 SERVICE_UNAVAILABLE (:481-488). So the whole catalogue goes missing and every query is refused because a label bundle could not be read. The answer does say it degraded, and it follows the executor's declared contract. It is still a refusal, not untranslated text, which is the dispatch's stop condition ('the read refuses').",
"premise": {
"measurement": "Scratch vitest file (removed, never committed) run under os-verify-lock at db1a05cdaee. Output: 'PREMISE stdio getLocales throws [{ok:false,error:locales exploded}]', 'PREMISE translateMetaList getLocales throws rejected locales exploded', 'PREMISE stdio getTranslations throws [{ok:false,error:bundle offline}]', 'PREMISE translateMetaList getTranslations throws rejected bundle offline'. Test Files 2 passed (2), Tests 8 passed (8), lock VERDICT command-exit 0. The stdio half drove createStdioDataBridge with a stand-in executor that records what loadDatasets does. The HTTP half is the same shared translateMetaList call (mcp.ts:1598-1604), read but not driven end to end. The executor's throw handling is already pinned in packages/services/service-analytics/src/__tests__/dataset-tools.test.ts:283-286 (partial) and :477-482 (503).",
"degradation_rule_cited": "Executor contract, dataset-tools.ts:177-178: 'A throw is a degraded read: list_datasets answers partial, query_dataset 503.' HTTP door, mcp.ts:1579-1581: 'A throwing read is left to throw: the executor answers it as a degraded read (partial / 503), never as an empty catalogue.' Stdio, stdio-data-bridge.ts:1462-1463: same wording. The only untranslated-text rule is for a LOOKUP that throws (mcp.ts:1546-1547 'a lookup that throws is none, and the text is then served untranslated'; stdio-data-bridge.ts:1178 'a resolver that throws is none'). That is a different case from a resolved service whose reads throw.",
"existing_pins": "None for this case on either transport. stdio-data-bridge.dataset-locale.test.ts:127 pins a throwing RESOLVER only. stdio-data-bridge.object-locale-34872.test.ts and stdio-data-bridge.object-descriptions-34721.test.ts have no throwing getLocales/getTranslations. mcp-dataset-tools.test.ts runs over a fake bridge, so it cannot see the door's translation. The real HTTP door is packages/runtime/src/domains/mcp.ts, and its harness packages/runtime/src/mcp-dataset-tools-bridge.test.ts has zero i18n cases. That file is outside the claim's surface (tests under packages/mcp/src only)."
},
"tests": "No pins written (stopped at premise). Ablation: n/a, nothing was built to ablate. Measurement run: pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/zz-premise-34876.test.ts src/stdio-data-bridge.dataset-locale.test.ts under os-verify-lock, EXIT=0, Test Files 2 passed (2), Tests 8 passed (8). The scratch file was deleted afterwards; git status --porcelain was empty.",
"gates": "No diff, so no gate family is owed. Dependency closure built for the measurement: pnpm --workspace-concurrency=2 --filter '@objectstack/mcp^...' build under os-verify-lock, VERDICT command-exit 0. dispatch-gates --commands not run (empty change set).",
"dogfood_battery": "n/a: no PR, no `!` in a title, no (narrowing) arm",
"mcp_calls": "2: mcp__github__issue_read (get, get_comments) on #34876. Reads only, no MCP writes.",
"api_writes": "1: this comment via scripts/pm/post-stamped.mjs (POST issues/34876/comments). Also git push of the empty branch claude/issue-34876-i18n-throw-pin at db1a05cdaee (a landing marker; not a REST write). One REST read: gh api issues/comments/6948646042.",
"head_sha": "db1a05cdaee (empty branch, equal to origin/main at cut)",
"deviations": [
"Stopped before the build step, as the dispatch orders for a premise wider than filed. The remote empty branch is left in place for a successor; nothing was committed to it.",
"Rule conflict for whoever resumes: AGENTS.md (Build and Test) says 'A new pin for a component that already has a shared harness file goes into that file as a top-level describe, not a new file' (ruling record 6583487846). The dispatch prefers new files (stdio-data-bridge.i18n-throw-34876.test.ts). stdio-data-bridge.dataset-locale.test.ts is the shared harness for this exact seam, so AGENTS.md points to adding a describe there. Not decided here."
],
"open_questions": [
{
"question": "A resolved i18n service whose getLocales/getTranslations throws blanks the dataset catalogue (list_datasets: datasets [], partial true, with a warning) and makes every query_dataset answer 503, on stdio and HTTP. Is that the intended degradation, or should a translation fault serve untranslated text the way an unresolvable i18n service does?",
"options": [
"A: Intended. Re-scope #34876 to pin the measured answer on both transports (list_datasets partial + warning naming the i18n error; query_dataset 503 SERVICE_UNAVAILABLE), for getLocales and for getTranslations throwing. Stays tests-only (Clause-②: no). The HTTP pin goes in packages/runtime/src/mcp-dataset-tools-bridge.test.ts, which needs a claim-surface amendment. Ablation: wrap translateMetaList in loadDatasets in a catch that falls back to the items, and watch the pin go red. Cost S.",
"B: A defect. A translation fault should degrade to untranslated text. That is a source change to a served answer: either guard translationBundleOf/translateMetaList in packages/rest (which also moves REST /meta and the MCP object tools, whose current answer to this fault was not measured), or catch in the two loadDatasets callers (a consumer-side fallback, which os-dev rule 5 pushes back toward the producer). Needs a seat or maintainer ruling and a Clause-② call. Cost M."
],
"recommendation": "A. Today's answer follows the executor's declared contract (dataset-tools.ts:177-178) and says that it degraded, so nothing is silently wrong. Pinning it now is truthful, and a later B would flip the pin deliberately. If the seat thinks blanking the catalogue over a label bundle is too much, B is its own decision card, because it reaches REST /meta through the shared translator."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"class: none (read-only inference, not measured) · The object tools call the same unguarded translator: stdio inServedLocale at stdio-data-bridge.ts:1207 and the HTTP object translation at mcp.ts:1038. By reading, a throwing getLocales/getTranslations would fail list_objects/describe on both transports too. Not driven, so not a filing class · carrier: repo:objectstack#3 seat · noted, not filed · dedupe words: translationBundleOf throw, getLocales throws, translateMetaList reject, i18n read failure, inServedLocale"
],
"Dev-effort": "high",
"Rounds": 1
}
Claim amendment: area o3-A · 2026-11-17T22:05Z · amends claim 6962008069 after the premise report 6962311179 and the seat's ruling A (relayed to the area at 22:05Z).
Premise corrected
The card says a resolved i18n service whose getLocales / getTranslations throws degrades to untranslated text. Measured on origin/main db1a05cdae, it does not. translationBundleOf (packages/rest/src/meta-item-read-gate.ts:3264, :3268) calls both reads with no guard, so translateMetaList rejects. loadDatasets does not catch the rejection on either transport (packages/mcp/src/stdio-data-bridge.ts:1483, packages/runtime/src/domains/mcp.ts:1600). The executor answers it as a degraded read (packages/services/service-analytics/src/dataset-tools.ts:177-178):
list_datasets returns datasets: [] with partial: true and the warning "The dataset catalogue could not be read: …";
query_dataset answers 503 SERVICE_UNAVAILABLE.
Seat ruling A
That answer is the one to pin. It follows the executor's declared contract and says it degraded. Serving untranslated text instead (B) moves the shared translator, and with it REST /meta, the MCP object tools and the dataset tools. The seat sends B to triage as one follow-up, and the pin will flip on purpose there.
Scope (re-scoped)
Pin the measured answer on both transports, for getLocales throwing and for getTranslations throwing: list_datasets partial plus a warning that names the i18n error, and query_dataset 503.
File surface (tests only):
stdio: a new top-level describe in packages/mcp/src/stdio-data-bridge.dataset-locale.test.ts, the seam's shared harness, per the AGENTS.md shared-harness rule (ruling record 6583487846);
HTTP door, added: a new top-level describe in packages/runtime/src/mcp-dataset-tools-bridge.test.ts, the harness of the real HTTP door (packages/runtime/src/domains/mcp.ts). The claim named packages/mcp/src/ only.
Ablation for each pin: catch translateMetaList in loadDatasets and fall back to the untranslated items. The pin must go red.
Clause-②: no (tests only; no accepted input or served answer changes)
Metadata-protocol: none
Serial constraints: open PRs touching either file: none at this amendment. Area o3-C's #34919 (claim 6961976823) will touch packages/mcp/src/** and merges main over this.
BUILD round for #34876 under seat ruling A: draft PR #35029, tests only, head 0cdcef6.
{
"issue": 34876,
"status": "done",
"branch": "claude/issue-34876-i18n-throw-pin",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35029",
"head_sha": "0cdcef6ea635b19d0e2351ead789563846128c87",
"session": "session_01WGufzg2evNa1V3zxrQq3KX",
"premise_still_valid": true,
"summary": "Tests only, under seat ruling A (amendment 6962350323). One new top-level describe in each shared harness: packages/mcp/src/stdio-data-bridge.dataset-locale.test.ts (stdio, createStdioDataBridge) and packages/runtime/src/mcp-dataset-tools-bridge.test.ts (HTTP door, buildMcpBridge over packages/runtime/src/domains/mcp.ts, i18n resolved through the request's resolveService). Both drive the REAL executor: the analytics service AnalyticsServicePlugin registers, admission wired, over an open security double and an engine double that declares crm_opportunity. The stand-ins are those two doubles and the protocol's getMetaItems. Per describe: a control (when the reads answer, the same harness lists the dataset in its bundle label); then, for getLocales throwing and for getTranslations throwing, list_datasets equals {datasets: [], partial: true, warning} with the warning starting 'The dataset catalogue could not be read: ' and naming the i18n error, and query_dataset refuses code SERVICE_UNAVAILABLE / status 503 with a message containing 'the dataset read failed (MSG)', which tells it apart from the executor's 'not available on this deployment' 503. Each describe's comment says the answer is pinned on purpose under ruling A and that follow-up B would flip it deliberately. No source edits.",
"remeasure": "origin/main 4443014630c (the branch base) against db1a05cdae: git diff --stat over meta-item-read-gate.ts, stdio-data-bridge.ts, domains/mcp.ts, dataset-tools.ts and both harnesses is empty. The new pins are green on 4443014630c, so the measured answer is unchanged: list partial plus a warning naming the error, query 503.",
"tests": "At head 0cdcef6ea63. pnpm --filter @objectstack/mcp test: Test Files 71 passed (71), Tests 1257 passed (1257), MCP_EXIT=0. pnpm --filter @objectstack/runtime test: Test Files 618 passed (618), Tests 11459 passed | 23 skipped (11482), RT_EXIT=0. Both ran in one os-verify-lock call joined with ';', so the lock printed batch-last-exit 0, and each part's exit was captured on its own as above. Targeted runs: stdio harness 9 passed (9), HTTP harness 11 passed (11). Typecheck: mcp and runtime typecheck, lock VERDICT command-exit 0; check:test-typecheck compiles both edited files and the ledgers are unchanged. ABLATION through node scripts/ablation-replace.mjs (wrap mode; the anchor hit exactly once and the on-disk blob changed): catch translateMetaList in loadDatasets with .catch(() => items). stdio (stdio-data-bridge.ts, blob f4f5d631df30 -> e3a455986ba4): 4 failed | 5 passed (9). 'AssertionError: expected { datasets: [ { …(6) } ] } to deeply equal { datasets: [], partial: true, …(1) }': the dataset opp_metrics was listed untranslated, and 'expected undefined to match object { code: SERVICE_UNAVAILABLE, …(1) }': the query resolved. Restored: blob == HEAD f4f5d631df30, git diff HEAD empty. HTTP (domains/mcp.ts, blob b4a8eb66b4e3 -> dd2d96eb1cb2): 4 failed | 7 passed (11), the same two assertion failures (sales_analysis listed untranslated; the query resolved). Restored: blob == HEAD b4a8eb66b4e3, git diff HEAD empty. Both harnesses import the door by relative path, so they read src/ and no dist rebuild sits between mutation and run. An earlier ablation, run before the engine and security doubles were added, also went red, but only on the warning, because the executor could not resolve admission and listed nothing in either case. The doubles and the control case were added so that the datasets assertion carries weight too.",
"gates": "dispatch-gates --commands at 0cdcef6ea63: 50 derived. 49 exited 0 (among them check:cross-package-test-inputs, check:test-source-alias, check:engine-double-contract, check:nul-bytes, check:issue-citations, check:doc-authoring, check:type-check-coverage, check:type-check-debt, check:undeclared-dep-imports, check:published-files). NOT MEASURED: pnpm check:dual-build-cjs-loads exited 3, PREREQUISITE NOT MET (it needs every package's dist; only the mcp/runtime closure was built here). dispatch-gates --ran with per-command exit codes: '50 derived famil(ies) accounted for — 49 run, 1 NOT-MEASURED', exit 0. overlap-check: 'VERDICT clean exit 0' (origin/main merges cleanly, 0 open PR heads share a file). Changeset: none. Both packages publish files [dist, README.md, CHANGELOG.md]. After building both, a search of dist for test-only symbols (i18nWhoseReadThrows, 'locales exploded') found 0 files in each; the positive control translateMetaList found 2 files in mcp and 3 in runtime. skip-changeset was sent in pr_create labels and read back. PR check-runs at the time of this report (one read, no polling): Check Changeset success, Governed Surface Queue Guard success; Lint ·*, Type Check ·*, PR-body guards and Check PR Size in_progress. Test Core, Build Core and the rest are CI's to run.",
"dogfood_battery": "n/a: no ! in the PR title, Clause-②: no with no (narrowing) arm",
"mcp_calls": "0. All reads used gh api (REST reads), and this run made no MCP calls.",
"api_writes": "2 relay writes: (1) fleet-write/dispatch.mjs pr_create, which opened draft PR #35029 with assignees os-support-ai and labels skip-changeset in one stroke (POST pulls, POST issues/35029/assignees, POST issues/35029/labels; read-back reported the body identical, 9869 bytes); (2) this report comment via post-stamped.mjs (POST issues/34876/comments). Five git pushes to claude/issue-34876-i18n-throw-pin: a fast-forward from db1a05cdae to 4443014630c, then 91c48cc1838, 89e537d0e01, 0cdcef6ea63 (not REST writes).",
"deviations": [
"PR body order follows the dispatch and standard-order (attribution comment, Requested-by, signature line, then Closes #34876). os-dev.md wants the closing keyword right after the attribution comment. GitHub reads the keyword anywhere in the body, so the card still closes on merge.",
"The PR body ends with the AGENTS.md session-URL footer followed by the signed trailer as the last line. The harness's own attribution footer (an emoji line) was not used: AGENTS.md's footer form and the seat's last-line trailer rule take precedence.",
"Both package suites ran in one lock call joined with ';'. The lock's VERDICT is batch-last-exit, and each part's exit was captured on its own (MCP_EXIT=0, RT_EXIT=0). The lock was held 957s, mostly by the runtime suite."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: repo:objectstack#3 seat (follow-up B) · The object tools (list_objects / describe) call the same unguarded translator on both transports (stdio inServedLocale, HTTP object translation). Read from the code, not driven; already named in the premise report. Dedupe words: translationBundleOf throw, getLocales throws, translateMetaList reject, inServedLocale"
],
"Dev-effort": "high",
"Rounds": "1 premise + 1 build"
}
Delivered · 2026-11-18T00:48Z · PR #35029 merged (0ad4f48); its Closes line closed this card.
Premise corrected. The card said a resolved i18n service whose getLocales / getTranslations throws degrades the dataset catalogue to untranslated text. It does not. The shared translator (translationBundleOf / translateMetaList in packages/rest) rejects, loadDatasets lets it through on both transports, and the executor answers a degraded read: list_datasets returns datasets: [] with partial: true and the warning "The dataset catalogue could not be read: …", and query_dataset answers 503 SERVICE_UNAVAILABLE ("the dataset read failed (…)"). Report 6962311179; seat ruling A, amendment 6962350323.
Pinned (tests only). That answer is pinned on purpose, for both reads, on stdio (stdio-data-bridge.dataset-locale.test.ts) and on the HTTP door (packages/runtime/src/mcp-dataset-tools-bridge.test.ts). Both drive the real analytics executor, with a control where the reads answer. Catching the translator's rejection in loadDatasets turns both red.
Follow-up B (the seat sends it to triage): serve untranslated text on a translation fault through the shared translator. That moves REST /meta, the MCP object tools and the dataset tools together, and flips these pins on purpose. L1 note for B: the pinned warning and 503 carry the i18n service's raw error text to the client. pm:dispatched removed.
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p3
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1197, 14:5xZ): p3 · domain:server →
pm:queue.Theme: MCP. A missing pin for a degraded i18n read. It is a nit carried under the maintainer's land-with-nits merge standard, and the filer's p3 is kept. Not dispatched while p3 is paused. Whether such nit cards stay open is asked of the maintainer on #6015 (R1197).
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
Claim: PM loop round 1 · area o3-A · 2026-11-17T21:49Z
Session:
session_01WGufzg2evNa1V3zxrQq3KXAccount:
os-support-aiBranch:
claude/issue-34876-i18n-throw-pinWorktree:
objectstack-issue-34876Domain:
domain:serverSeat:
repo:objectstack#3File surface: tests only, under
packages/mcp/src/:stdio-data-bridge(an i18n service whosegetLocales/getTranslationsthrows: the dataset read degrades and says so per the door's degradation rule);mcp-dataset-tools.test.ts, if it is unpinned too.No source edit is planned. If the premise measurement finds the degraded read missing or wrong (a refusal or a silent wrong answer), the dev stops and the area reports to the seat before any source edit.
Container & model:
S,mode:subagent,model: TIER_DEFAULT,effort: high(seat order)Clause-②: no (tests only; no accepted input or served answer changes)
Metadata-protocol: none
Responsibility:
MCP dataset tools (objectstack): when the i18n service resolves but its reads throw, the dataset catalogue degrades to untranslated text on HTTP and stdio, and nothing pins that | a later change can turn the degraded read into a refusal or a silent wrong answer unnoticed | every MCP client of an app whose i18n service fails at read timeThread-read: 6951590194
Premise: to be measured on origin/main first (the degraded read on both transports, and whether either already has a pin).
Serial constraints cleared: open PRs touching
packages/mcp/src/: docs(skills): the ask-data skill's zero-match rows read list_datasets candidates #34977 (ask-skill.generated.tsonly, no overlap)Pre-claim lane:
domain:serverPre-claim deps: none
Prior rulings read: i18n,degraded,getTranslations,dataset → none touching a test-only pin
Lease
o3-A(seat post #34584); epic #34659 p3 under seat 3 (seat order 2026-11-17 21:46Z). L1: L1-d.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
os-dev-report
Premise is wider than the card says. No source or test edit was written and no PR was opened; this is a measurement for the area to take to the seat.
{ "issue": 34876, "status": "blocked", "branch": "claude/issue-34876-i18n-throw-pin", "pr": null, "session": "session_01WGufzg2evNa1V3zxrQq3KX", "premise_still_valid": false, "summary": "Measured on origin/main db1a05cdaee. The card says that when the i18n service resolves but getLocales/getTranslations throws, the dataset catalogue 'degrades to untranslated text'. It does not. translationBundleOf (packages/rest/src/meta-item-read-gate.ts:3264 getLocales, :3268 getTranslations) calls both reads with no guard, and translateMetaList calls it at :3611 before anything else, so translateMetaList REJECTS with the i18n error. Both transports call it inside loadDatasets with no catch: stdio packages/mcp/src/stdio-data-bridge.ts:1483, HTTP packages/runtime/src/domains/mcp.ts:1600 (only the service LOOKUP is caught: stdio-data-bridge.ts:1184-1190, mcp.ts:1560-1566). The dataset executor then answers the throw as a degraded read (packages/services/service-analytics/src/dataset-tools.ts:177-178): list_datasets returns datasets: [] with partial: true and the warning 'The dataset catalogue could not be read: MSG' (:401-407), and query_dataset refuses with 503 SERVICE_UNAVAILABLE (:481-488). So the whole catalogue goes missing and every query is refused because a label bundle could not be read. The answer does say it degraded, and it follows the executor's declared contract. It is still a refusal, not untranslated text, which is the dispatch's stop condition ('the read refuses').", "premise": { "measurement": "Scratch vitest file (removed, never committed) run under os-verify-lock at db1a05cdaee. Output: 'PREMISE stdio getLocales throws [{ok:false,error:locales exploded}]', 'PREMISE translateMetaList getLocales throws rejected locales exploded', 'PREMISE stdio getTranslations throws [{ok:false,error:bundle offline}]', 'PREMISE translateMetaList getTranslations throws rejected bundle offline'. Test Files 2 passed (2), Tests 8 passed (8), lock VERDICT command-exit 0. The stdio half drove createStdioDataBridge with a stand-in executor that records what loadDatasets does. The HTTP half is the same shared translateMetaList call (mcp.ts:1598-1604), read but not driven end to end. The executor's throw handling is already pinned in packages/services/service-analytics/src/__tests__/dataset-tools.test.ts:283-286 (partial) and :477-482 (503).", "degradation_rule_cited": "Executor contract, dataset-tools.ts:177-178: 'A throw is a degraded read: list_datasets answers partial, query_dataset 503.' HTTP door, mcp.ts:1579-1581: 'A throwing read is left to throw: the executor answers it as a degraded read (partial / 503), never as an empty catalogue.' Stdio, stdio-data-bridge.ts:1462-1463: same wording. The only untranslated-text rule is for a LOOKUP that throws (mcp.ts:1546-1547 'a lookup that throws is none, and the text is then served untranslated'; stdio-data-bridge.ts:1178 'a resolver that throws is none'). That is a different case from a resolved service whose reads throw.", "existing_pins": "None for this case on either transport. stdio-data-bridge.dataset-locale.test.ts:127 pins a throwing RESOLVER only. stdio-data-bridge.object-locale-34872.test.ts and stdio-data-bridge.object-descriptions-34721.test.ts have no throwing getLocales/getTranslations. mcp-dataset-tools.test.ts runs over a fake bridge, so it cannot see the door's translation. The real HTTP door is packages/runtime/src/domains/mcp.ts, and its harness packages/runtime/src/mcp-dataset-tools-bridge.test.ts has zero i18n cases. That file is outside the claim's surface (tests under packages/mcp/src only)." }, "tests": "No pins written (stopped at premise). Ablation: n/a, nothing was built to ablate. Measurement run: pnpm --filter @objectstack/mcp exec vitest run --maxWorkers=2 src/zz-premise-34876.test.ts src/stdio-data-bridge.dataset-locale.test.ts under os-verify-lock, EXIT=0, Test Files 2 passed (2), Tests 8 passed (8). The scratch file was deleted afterwards; git status --porcelain was empty.", "gates": "No diff, so no gate family is owed. Dependency closure built for the measurement: pnpm --workspace-concurrency=2 --filter '@objectstack/mcp^...' build under os-verify-lock, VERDICT command-exit 0. dispatch-gates --commands not run (empty change set).", "dogfood_battery": "n/a: no PR, no `!` in a title, no (narrowing) arm", "mcp_calls": "2: mcp__github__issue_read (get, get_comments) on #34876. Reads only, no MCP writes.", "api_writes": "1: this comment via scripts/pm/post-stamped.mjs (POST issues/34876/comments). Also git push of the empty branch claude/issue-34876-i18n-throw-pin at db1a05cdaee (a landing marker; not a REST write). One REST read: gh api issues/comments/6948646042.", "head_sha": "db1a05cdaee (empty branch, equal to origin/main at cut)", "deviations": [ "Stopped before the build step, as the dispatch orders for a premise wider than filed. The remote empty branch is left in place for a successor; nothing was committed to it.", "Rule conflict for whoever resumes: AGENTS.md (Build and Test) says 'A new pin for a component that already has a shared harness file goes into that file as a top-level describe, not a new file' (ruling record 6583487846). The dispatch prefers new files (stdio-data-bridge.i18n-throw-34876.test.ts). stdio-data-bridge.dataset-locale.test.ts is the shared harness for this exact seam, so AGENTS.md points to adding a describe there. Not decided here." ], "open_questions": [ { "question": "A resolved i18n service whose getLocales/getTranslations throws blanks the dataset catalogue (list_datasets: datasets [], partial true, with a warning) and makes every query_dataset answer 503, on stdio and HTTP. Is that the intended degradation, or should a translation fault serve untranslated text the way an unresolvable i18n service does?", "options": [ "A: Intended. Re-scope #34876 to pin the measured answer on both transports (list_datasets partial + warning naming the i18n error; query_dataset 503 SERVICE_UNAVAILABLE), for getLocales and for getTranslations throwing. Stays tests-only (Clause-②: no). The HTTP pin goes in packages/runtime/src/mcp-dataset-tools-bridge.test.ts, which needs a claim-surface amendment. Ablation: wrap translateMetaList in loadDatasets in a catch that falls back to the items, and watch the pin go red. Cost S.", "B: A defect. A translation fault should degrade to untranslated text. That is a source change to a served answer: either guard translationBundleOf/translateMetaList in packages/rest (which also moves REST /meta and the MCP object tools, whose current answer to this fault was not measured), or catch in the two loadDatasets callers (a consumer-side fallback, which os-dev rule 5 pushes back toward the producer). Needs a seat or maintainer ruling and a Clause-② call. Cost M." ], "recommendation": "A. Today's answer follows the executor's declared contract (dataset-tools.ts:177-178) and says that it degraded, so nothing is silently wrong. Pinning it now is truthful, and a later B would flip the pin deliberately. If the seat thinks blanking the catalogue over a label bundle is too much, B is its own decision card, because it reaches REST /meta through the shared translator." } ], "security_findings": "none", "out_of_scope_findings": [ "class: none (read-only inference, not measured) · The object tools call the same unguarded translator: stdio inServedLocale at stdio-data-bridge.ts:1207 and the HTTP object translation at mcp.ts:1038. By reading, a throwing getLocales/getTranslations would fail list_objects/describe on both transports too. Not driven, so not a filing class · carrier: repo:objectstack#3 seat · noted, not filed · dedupe words: translationBundleOf throw, getLocales throws, translateMetaList reject, i18n read failure, inServedLocale" ], "Dev-effort": "high", "Rounds": 1 }Dev-effort: high
Rounds: 1
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
Claim amendment: area o3-A · 2026-11-17T22:05Z · amends claim 6962008069 after the premise report 6962311179 and the seat's ruling A (relayed to the area at 22:05Z).
Premise corrected
The card says a resolved i18n service whose
getLocales/getTranslationsthrows degrades to untranslated text. Measured on origin/maindb1a05cdae, it does not.translationBundleOf(packages/rest/src/meta-item-read-gate.ts:3264,:3268) calls both reads with no guard, sotranslateMetaListrejects.loadDatasetsdoes not catch the rejection on either transport (packages/mcp/src/stdio-data-bridge.ts:1483,packages/runtime/src/domains/mcp.ts:1600). The executor answers it as a degraded read (packages/services/service-analytics/src/dataset-tools.ts:177-178):list_datasetsreturnsdatasets: []withpartial: trueand the warning "The dataset catalogue could not be read: …";query_datasetanswers 503SERVICE_UNAVAILABLE.Seat ruling A
That answer is the one to pin. It follows the executor's declared contract and says it degraded. Serving untranslated text instead (B) moves the shared translator, and with it REST /meta, the MCP object tools and the dataset tools. The seat sends B to triage as one follow-up, and the pin will flip on purpose there.
Scope (re-scoped)
Pin the measured answer on both transports, for
getLocalesthrowing and forgetTranslationsthrowing:list_datasetspartial plus a warning that names the i18n error, andquery_dataset503.File surface (tests only):
describeinpackages/mcp/src/stdio-data-bridge.dataset-locale.test.ts, the seam's shared harness, per the AGENTS.md shared-harness rule (ruling record 6583487846);describeinpackages/runtime/src/mcp-dataset-tools-bridge.test.ts, the harness of the real HTTP door (packages/runtime/src/domains/mcp.ts). The claim namedpackages/mcp/src/only.translateMetaListinloadDatasetsand fall back to the untranslated items. The pin must go red.Clause-②: no (tests only; no accepted input or served answer changes)
Metadata-protocol: none
Serial constraints: open PRs touching either file: none at this amendment. Area o3-C's #34919 (claim 6961976823) will touch
packages/mcp/src/**and merges main over this.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
os-dev-report
BUILD round for #34876 under seat ruling A: draft PR #35029, tests only, head 0cdcef6.
{ "issue": 34876, "status": "done", "branch": "claude/issue-34876-i18n-throw-pin", "pr": "https://github.com/objectstack-ai/objectstack/pull/35029", "head_sha": "0cdcef6ea635b19d0e2351ead789563846128c87", "session": "session_01WGufzg2evNa1V3zxrQq3KX", "premise_still_valid": true, "summary": "Tests only, under seat ruling A (amendment 6962350323). One new top-level describe in each shared harness: packages/mcp/src/stdio-data-bridge.dataset-locale.test.ts (stdio, createStdioDataBridge) and packages/runtime/src/mcp-dataset-tools-bridge.test.ts (HTTP door, buildMcpBridge over packages/runtime/src/domains/mcp.ts, i18n resolved through the request's resolveService). Both drive the REAL executor: the analytics service AnalyticsServicePlugin registers, admission wired, over an open security double and an engine double that declares crm_opportunity. The stand-ins are those two doubles and the protocol's getMetaItems. Per describe: a control (when the reads answer, the same harness lists the dataset in its bundle label); then, for getLocales throwing and for getTranslations throwing, list_datasets equals {datasets: [], partial: true, warning} with the warning starting 'The dataset catalogue could not be read: ' and naming the i18n error, and query_dataset refuses code SERVICE_UNAVAILABLE / status 503 with a message containing 'the dataset read failed (MSG)', which tells it apart from the executor's 'not available on this deployment' 503. Each describe's comment says the answer is pinned on purpose under ruling A and that follow-up B would flip it deliberately. No source edits.", "remeasure": "origin/main 4443014630c (the branch base) against db1a05cdae: git diff --stat over meta-item-read-gate.ts, stdio-data-bridge.ts, domains/mcp.ts, dataset-tools.ts and both harnesses is empty. The new pins are green on 4443014630c, so the measured answer is unchanged: list partial plus a warning naming the error, query 503.", "tests": "At head 0cdcef6ea63. pnpm --filter @objectstack/mcp test: Test Files 71 passed (71), Tests 1257 passed (1257), MCP_EXIT=0. pnpm --filter @objectstack/runtime test: Test Files 618 passed (618), Tests 11459 passed | 23 skipped (11482), RT_EXIT=0. Both ran in one os-verify-lock call joined with ';', so the lock printed batch-last-exit 0, and each part's exit was captured on its own as above. Targeted runs: stdio harness 9 passed (9), HTTP harness 11 passed (11). Typecheck: mcp and runtime typecheck, lock VERDICT command-exit 0; check:test-typecheck compiles both edited files and the ledgers are unchanged. ABLATION through node scripts/ablation-replace.mjs (wrap mode; the anchor hit exactly once and the on-disk blob changed): catch translateMetaList in loadDatasets with .catch(() => items). stdio (stdio-data-bridge.ts, blob f4f5d631df30 -> e3a455986ba4): 4 failed | 5 passed (9). 'AssertionError: expected { datasets: [ { …(6) } ] } to deeply equal { datasets: [], partial: true, …(1) }': the dataset opp_metrics was listed untranslated, and 'expected undefined to match object { code: SERVICE_UNAVAILABLE, …(1) }': the query resolved. Restored: blob == HEAD f4f5d631df30, git diff HEAD empty. HTTP (domains/mcp.ts, blob b4a8eb66b4e3 -> dd2d96eb1cb2): 4 failed | 7 passed (11), the same two assertion failures (sales_analysis listed untranslated; the query resolved). Restored: blob == HEAD b4a8eb66b4e3, git diff HEAD empty. Both harnesses import the door by relative path, so they read src/ and no dist rebuild sits between mutation and run. An earlier ablation, run before the engine and security doubles were added, also went red, but only on the warning, because the executor could not resolve admission and listed nothing in either case. The doubles and the control case were added so that the datasets assertion carries weight too.", "gates": "dispatch-gates --commands at 0cdcef6ea63: 50 derived. 49 exited 0 (among them check:cross-package-test-inputs, check:test-source-alias, check:engine-double-contract, check:nul-bytes, check:issue-citations, check:doc-authoring, check:type-check-coverage, check:type-check-debt, check:undeclared-dep-imports, check:published-files). NOT MEASURED: pnpm check:dual-build-cjs-loads exited 3, PREREQUISITE NOT MET (it needs every package's dist; only the mcp/runtime closure was built here). dispatch-gates --ran with per-command exit codes: '50 derived famil(ies) accounted for — 49 run, 1 NOT-MEASURED', exit 0. overlap-check: 'VERDICT clean exit 0' (origin/main merges cleanly, 0 open PR heads share a file). Changeset: none. Both packages publish files [dist, README.md, CHANGELOG.md]. After building both, a search of dist for test-only symbols (i18nWhoseReadThrows, 'locales exploded') found 0 files in each; the positive control translateMetaList found 2 files in mcp and 3 in runtime. skip-changeset was sent in pr_create labels and read back. PR check-runs at the time of this report (one read, no polling): Check Changeset success, Governed Surface Queue Guard success; Lint ·*, Type Check ·*, PR-body guards and Check PR Size in_progress. Test Core, Build Core and the rest are CI's to run.", "dogfood_battery": "n/a: no ! in the PR title, Clause-②: no with no (narrowing) arm", "mcp_calls": "0. All reads used gh api (REST reads), and this run made no MCP calls.", "api_writes": "2 relay writes: (1) fleet-write/dispatch.mjs pr_create, which opened draft PR #35029 with assignees os-support-ai and labels skip-changeset in one stroke (POST pulls, POST issues/35029/assignees, POST issues/35029/labels; read-back reported the body identical, 9869 bytes); (2) this report comment via post-stamped.mjs (POST issues/34876/comments). Five git pushes to claude/issue-34876-i18n-throw-pin: a fast-forward from db1a05cdae to 4443014630c, then 91c48cc1838, 89e537d0e01, 0cdcef6ea63 (not REST writes).", "deviations": [ "PR body order follows the dispatch and standard-order (attribution comment, Requested-by, signature line, then Closes #34876). os-dev.md wants the closing keyword right after the attribution comment. GitHub reads the keyword anywhere in the body, so the card still closes on merge.", "The PR body ends with the AGENTS.md session-URL footer followed by the signed trailer as the last line. The harness's own attribution footer (an emoji line) was not used: AGENTS.md's footer form and the seat's last-line trailer rule take precedence.", "Both package suites ran in one lock call joined with ';'. The lock's VERDICT is batch-last-exit, and each part's exit was captured on its own (MCP_EXIT=0, RT_EXIT=0). The lock was held 957s, mostly by the runtime suite." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: repo:objectstack#3 seat (follow-up B) · The object tools (list_objects / describe) call the same unguarded translator on both transports (stdio inServedLocale, HTTP object translation). Read from the code, not driven; already named in the premise report. Dedupe words: translationBundleOf throw, getLocales throws, translateMetaList reject, inServedLocale" ], "Dev-effort": "high", "Rounds": "1 premise + 1 build" }Dev-effort: high
Rounds: 1 premise + 1 build
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
Delivered · 2026-11-18T00:48Z · PR #35029 merged (0ad4f48); its
Closesline closed this card.Premise corrected. The card said a resolved i18n service whose
getLocales/getTranslationsthrows degrades the dataset catalogue to untranslated text. It does not. The shared translator (translationBundleOf/translateMetaListin packages/rest) rejects,loadDatasetslets it through on both transports, and the executor answers a degraded read:list_datasetsreturnsdatasets: []withpartial: trueand the warning "The dataset catalogue could not be read: …", andquery_datasetanswers 503SERVICE_UNAVAILABLE("the dataset read failed (…)"). Report 6962311179; seat ruling A, amendment 6962350323.Pinned (tests only). That answer is pinned on purpose, for both reads, on stdio (
stdio-data-bridge.dataset-locale.test.ts) and on the HTTP door (packages/runtime/src/mcp-dataset-tools-bridge.test.ts). Both drive the real analytics executor, with a control where the reads answer. Catching the translator's rejection inloadDatasetsturns both red.Follow-up B (the seat sends it to triage): serve untranslated text on a translation fault through the shared translator. That moves REST /meta, the MCP object tools and the dataset tools together, and flips these pins on purpose. L1 note for B: the pinned warning and 503 carry the i18n service's raw error text to the client.
pm:dispatchedremoved.