Skip to content

ADR-0149 D3 rule 1: a bundle label matches in the caller's locale; the matcher's comment says the same #34870

Closed

Description

@objectstack-fleet

epic:#34659#1 · hotlong · session_01Q4EjjMnXJdSZifpEN5i7aU

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 6946578317, repeated in 6947907343); the filer did not re-read the code behind it. Ruling, as that seat recorded it on #34720 (6946563869), verbatim: 「A+C 本语言标签+同义词」.

Why

The decision text says a member's label matches "in every locale". What is ruled and what the HTTP door does is narrower: every locale of an inline map, plus the bundle translation in the caller's locale; a word in another language is an authored synonym.

Evidence

Scope

  • An add-only note under D3 rule 1 with the qualifier; the matcher's doc comment in the same words.
  • No behaviour change.

Done when

  • The ADR and the comment state the ruled rule.

Relations

Activity

  1. added
    area:ai
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (R1197, 14:5xZ): p2 · domain:server → pm:queue.

    Theme: MCP and epic #34659 (in focus). This corrects what a design rule (ADR-0149 D3 rule 1) says about locale matching, together with the matcher's comment. Under addendum 5 that is graded by its theme, not as pure wording. No named customer effect, so p2.

  3. added
    domain:server
    pm:queue
    priority:p2
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir

    Claim: PM loop round 1 · 2026-11-17T16:07Z
    Session: session_01WGufzg1NmbJpZhtiWQkTir
    Account: os-support-ai
    Branch: claude/issue-34870-adr-0149-label-locale
    Worktree: objectstack-issue-34870
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md (an add-only note under D3 rule 1), packages/services/service-analytics/src/dataset-term-matcher.ts (doc comment only, same words); no changeset unless a gate asks for an empty one.
    Container & model: S, mode:subagent (area o3-F), model: TIER_DEFAULT, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6951462561
    Premise: holds (area read at origin/main ab44198: ADR-0149 D3 rule 1, line 151, says match targets are "its label in every locale"; the matcher's comment at dataset-term-matcher.ts:15 and :27 says "every locale of an inline map"; neither names the bundle translation in the caller's locale, which is what the HTTP door serves and what #34720's ruling 6946563869 「A+C 本语言标签+同义词」 holds; #34828 merged without this edit).
    Landing: Tier H (check-governed-merges --test on the surface: docs/adr/**, H(人合)). Route set by the seat: L1-c → seat fable L2 (rules face) → seat's Tier H record and the os-zhuang request. The PR stays draft; the area never readies or queues it.
    Serial constraints cleared: none in flight on ADR-0149 or the matcher; overlap-check before push.
    Pre-claim lane: domain:server, routed to area o3-F by the seat (16:07Z).
    Pre-claim deps: none on the card.
    Prior rulings read: #34720 「A+C 本语言标签+同义词」 (6946563869); ADR-0149 D1/D2/D3.

    Lease o3-F (seat post #34584); child of epic #34659.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir
    os-dev-report

    {
      "issue": 34870,
      "status": "done",
      "branch": "claude/issue-34870-adr-0149-label-locale",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34928",
      "session": "session_01WGufzg1NmbJpZhtiWQkTir",
      "premise_still_valid": true,
      "summary": "Added an add-only amendment note under ADR-0149 D3 rule 1, nested in the list item so the numbering stays intact, in the record's existing note form with symbol anchors only. It records the #34720 ruling 「A+C 本语言标签+同义词」 (6946563869): every locale of an inline label map, plus the bundle label in the caller's locale only; a word in another language hits only as an authored synonym. The dataset-term-matcher.ts doc comments now say the same words; no code change. One dispatch premise was wrong at base ab441988: the stdio loadDatasets does translate. #34833 (6320abba) made it run translateMetaList for the i18n service's default locale. The note says that, not 'no translation step'. The note also states what the code does: where the bundle answers for a member, its string replaces the authored label (inline map included), which is the ruling's recorded consequence. Draft PR #34928, Tier H, label skip-changeset, assignee os-support-ai.",
      "tests": "head 233683d6. Under the verify lock: `pnpm --filter '@objectstack/service-analytics^...' build && pnpm --filter @objectstack/service-analytics run typecheck` gave VERDICT command-exit 0 (tsc --noEmit clean). `pnpm --filter @objectstack/service-analytics test` gave VERDICT command-exit 0: Test Files 218 passed (218), Tests 5548 passed | 335 skipped (5883). No ablation, since no tested behaviour changed (docs and comments only). One-off probe that the ADR symbol-anchor gate judges this file's anchors: I mutated `stdio-data-bridge.ts#createStdioDataBridge` to a bogus symbol and the gate went exit 1 `[unresolved-symbol]`. Restored with `git checkout HEAD --`; `git diff HEAD` came back empty.",
      "gates": "Local, head 233683d6, list from `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` (2 paths vs merge base ab4419881): 54 commands run, 52 exit 0. NOT MEASURED: `node scripts/check-plugin-teardown-shape.mjs --self-test` exit 3 (fixture pinned to 621a4876, unreachable in this shallow checkout; checker health only). `pnpm check:dual-build-cjs-loads` exit 3 (PREREQUISITE NOT MET: no full build in this worktree). Exit 0 among them: check:adr-symbol-anchors (3740 anchors across 158 records resolve), check-adr-links, check:adr-index (README current), check:adr-anchors, check:nul-bytes (no raw control bytes), check-issue-citations diff-scoped ('no issue citations added against ab4419881') plus its self-test, check:doc-authoring. `--ran` reconciliation: 54 derived, 54 run, 0 UNRUN. overlap-check: VERDICT clean exit 0 vs origin/main 13e0305c33 and #34904. Changeset decision: no changeset, `skip-changeset` label riding pr_create. The diff is an ADR plus doc comments only (the fast lane's comment case), and check-empty-changeset refuses a new empty changeset. CI check-runs on 233683d6 when this was written: Check Changeset success, Governed Surface Queue Guard success; Lint ·*, Type Check ·*, PR-body guards, Check Documentation Links and Check PR Size still in_progress.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2: one fleet-write relay stroke (POST /repos/objectstack-ai/objectstack/dispatches, run 44126699286) carrying pr_create with its assignees and labels legs (POST pulls, POST issues/34928/assignees, POST issues/34928/labels); one os-dev-report comment through post-stamped.mjs on issues/34870/comments. Two git pushes (empty branch, then 233683d6) are not REST writes.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: the dispatch's mechanism premise ('stdio loadDatasets applies no translation step') was stale at base ab441988 (#34833 / 6320abba landed it). I wrote the stdio fact as the code has it.",
        "carrier: none · noted, not filed: the dispatch asked for an attribution comment first line and a trailer signature. os-dev.md bars dev-written HTML comments. I kept the attribution-comment first line as the sibling PR #34828 and the governed gates read it, and wrote the trailer signature as a plain-text last line, not an HTML comment."
      ]
    }
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzg1NmbJpZhtiWQkTir
    os-dev-report

    {
      "issue": 34870,
      "status": "done",
      "branch": "claude/issue-34870-adr-0149-label-locale",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34928",
      "session": "session_01WGufzg1NmbJpZhtiWQkTir",
      "premise_still_valid": true,
      "summary": "Fix round 1, head 4b963c98, prose only. S1: the ADR-0149 D3 rule 1 note's bundle point now says the bundle label is resolved along the resolver's locale chain. lookupDatasetMemberAttr reads the requested locale through the platform ladder (resolveBundleLocale, variant expansion included), then the declared fallback (metaTranslateOptions), which is skipped when the caller's locale is the authored one. One value is served per member and only it is a target, and 'the bundle's values in other locales are not' became 'no other bundle value is'. The note gives two worked cases (zh-TW to zh-CN, fr to fallback en), the bold lead now reads 'the one translation-bundle label resolved for the caller's locale', and dataset-term-matcher.ts's module comment mirrors the chain in one clause. N1, N2 and N3 verified and folded in: the HTTP pair-translation exception (pairTranslationBundleOf), one sentence that any other door to the executor, cloud's service-ai ToolRegistry among them, supplies loadDatasets and owes the same translation (DatasetToolsDeps), and 'PR #34928' in the note header. New body at scratchpad 34870/body-r1.md, for the seat to apply. The PR body was not patched.",
      "tests": "No behaviour change, so no test and no ablation; the matcher's code lines are byte-unchanged. At 4b963c98, both under the verify lock: pnpm --filter '@objectstack/service-analytics^...' build gave VERDICT command-exit 0 (held 165s); pnpm --filter @objectstack/service-analytics typecheck gave VERDICT command-exit 0, tsc --noEmit clean.",
      "gates": "Local, exit codes captured before any pipe, at 4b963c98. check:adr-symbol-anchors 0 ('3745 anchors across 158 records resolve', round 0 had 3740, plus the 5 new anchors). check:adr-links 0 (1150 resolve). check:adr-index 0 (README current). check:adr-anchors 0. check:doc-authoring 0. check:nul-bytes 0. check:issue-citations self-test 0. node scripts/check-issue-citations.mjs 0 ('no issue citations added against ab4419881'). overlap-check 0 ('VERDICT clean exit 0' vs origin/main 46991d0e and #34904). Derived list (dispatch-gates --commands): 54 commands run, 52 exit 0. 2 NOT MEASURED as at round 0, prerequisites and not reds: check-plugin-teardown-shape --self-test exit 3 (fixture commit 621a4876 not reachable in this shallow clone) and check:dual-build-cjs-loads exit 3 (PREREQUISITE NOT MET, no full build). --ran: '54 derived famil(ies) accounted for — 54 run, 0 UNRUN'. The derivation warned STALE TREE: the branch is 11 commits behind origin/main and dispatch-gates.mjs and its data file changed in that range; the branch was not merged with main in this round. PR check-runs on 4b963c98 at report time: 52 runs; 29 success (all Lint legs, Governed Surface Queue Guard, PR-body guards, Check Documentation Links among them), 17 skipped, none failed; 6 in_progress (Test Core 1, 3, 7, 8, 9 of 10, and Type Check workspace).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — POST repos/objectstack-ai/objectstack/issues/34870/comments (this os-dev-report, via post-stamped). git push of 4b963c98 is not a REST write. The PR body was not patched.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions