Skip to content

A translation bundle can give a navigation entry its keywords without pinning its label (#39050) #39146

Description

@objectstack-fleet

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF

Source: topic #39050 · category ③ (child of the maintainer's epic), filed on the seat's word (ruling 7347779833 on #39055: item (b) becomes its own card under #39050, any priority). Origin: #39052 hand-over 7347620600, item 2; L2 N1 on PR #39125.

Grade: p3 · area:ux · type Feature · suggested domain server (triage sets it) · size S · evidence: read (objectstack main 3dfffef, 2026-12-02).

What

The translation bundle's navigation node (apps.<app>.navigation.<id>, packages/spec/src/system/translation.zod.ts) requires label. Since #39052 it also takes keywords, so an entry that keeps its source label can get per-locale keywords only by pinning a label as well. That pinned label then goes stale when the source label changes.

  • Decide whether label becomes optional on the node when keywords is present, and if so make it optional (spec change; os i18n check and the label gates must still count a missing label as untranslated where one is owed).

Acceptance

  • A bundle node carrying only keywords parses, and the entry keeps its source (or other-locale) label.
  • A node with neither label nor keywords is still refused.

Reader: the dev who takes this card; ADR-0149 D1 and the seat ruling 7347779833 (a locale's keywords add to the source list) are read first.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    First touch · 2026-12-02T14:08Z

    定级:area:ux · Feature · p3 · 翻译包只想给导航项加关键词,却必须连带固定标签,标签会过期 · 读码

  2. added
    domain:server
    pm:queue
    on Dec 2, 2026
  3. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim: PM loop (epic:#39050 pick; the maintainer's 「setup 专题 你要加速处理」, recorded 7360379234 on #34830)
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-39146-bundle-keywords-without-label
    Worktree: objectstack-issue-39146
    Domain: domain:server
    Seat: repo:objectstack@os-justin
    File surface:

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 2, 2026
  5. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Dispatched 2026-12-02T22:18Z · os-dev subagent of session session_01QSeKYnrQ7UMtHofKQVjcH2 (mode:subagent, model: opus, effort: medium), on the claim above.

  6. objectstack-fleet commented on Dec 2, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
      "issue": 39146,
      "status": "done",
      "branch": "claude/issue-39146-bundle-keywords-without-label",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/39207",
      "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
      "premise_still_valid": true,
      "summary": "The app navigation translation node's label is now optional and the node carries refine(requiredOneOf(['label','keywords'])) in packages/spec/src/system/translation.zod.ts, so a keywords-only node parses at the bundle and registered-item doors and a node with neither is refused at ...navigation.ID.label with a sentence naming both keys; the built JSON Schema projects it as anyOf required label / required keywords. translateApp (it lives in packages/spec/src/system/i18n-resolver.ts, not metadata-protocol) needed no change: lookupNavLabel walks the locale chain per key, so a keywords-only node serves the next locale's label, else the source label. Coverage (os i18n check / os lint via computeI18nCoverage) needed no change and still reports the label as untranslated. Two existing pins that encoded the old requirement were rewritten (app-nav-keywords.test.ts CONTROL; an unused ts-expect-error in translation-contributed-nav-bundle.test.ts); both are tests of the edited node schema.",
      "tests": "At 6f8e8ca249: new spec file translation-nav-keywords-only.test.ts plus resolver/translation/contributed-nav files: 4 files 247 passed. Full spec test: 1 failed / 29224 passed before rewriting the reversed pin app-nav-keywords.test.ts (CONTROL 'node still owes its label'); rewritten file 42 passed. CLI: i18n-nav-keywords-only-coverage + i18n-contributed-nav-coverage + i18n-coverage: 3 files 47 passed. spec + cli typecheck exit 0. Ablation via scripts/ablation-replace.mjs: refine(requiredOneOf(...)) -> refine(() => true): anchor 1->0, blob f90c1682d6e5 -> 4aeb94ca6be2, 'refuses a node with neither label nor keywords' red (1 failed / 5 passed); restored blob f90c1682d6e5 == HEAD, git diff HEAD empty (spec tests import src, no dist leg).",
      "gates": "dispatch-gates --commands at 6f8e8ca249: 95 families; 94 exit 0 (five spec dist readers, check:i18n-walk-parity and check:type-check-debt first exit 3 on stale dist, green after rebuilding spec and cli); NOT MEASURED check:dual-build-cjs-loads, reason: needs every package's dist (full pnpm build), owed to CI. dispatch-gates --ran: 95 derived accounted, 94 run, 1 NOT-MEASURED. check:generated --fix regenerated check:docs only. PR check-runs not yet concluded at report time: NOT MEASURED, PM reads CI.",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39207/assignees); post-stamped comment on #39146 (POST /issues/39146/comments)",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed — neither skills/objectstack-i18n/SKILL.md nor content/docs/ui/translations.mdx teaches bundle nav keywords (pre-existing since #39052); recorded as Skills-docs: none in the PR body"]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:serverpm:dispatchedpriority:p3

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions