Skip to content

Review follow-ups of PR #39207 #39210

Description

@objectstack-fleet

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

Source: contract review record 7362701980 on PR #39207 (#39146). The nits are carried here, one card per PR. Filed by seat repo:objectstack@os-justin.

Grade: p3 · area:ux · domain spec · size S · evidence: read (head 6f8e8ca249).

  • N1: { keywords: [] } parses at every door, because requiredOneOf tests key presence only (packages/spec/src/system/translation.zod.ts:1407). It is harmless at runtime, and coverage still reports the label. It is new with A translation bundle can give a navigation entry its keywords without pinning its label (#39050) #39146 and unpinned. Decide before the key ships: pin it as accepted, or refuse an empty list. Refusing it after release is a narrowing.
  • N2: the header of packages/spec/src/system/translation-contributed-nav-bundle.test.ts:24 still describes the old control ("still owes its own label, at both layers").
  • N3: the changeset's and the PR's "Widened:" sentence names two doors. PlatformTranslationData and ServedTranslationData (the body of GET /i18n/translations/:locale, packages/spec/src/api/protocol.zod.ts:5058) take the same change. Name them where the change is next described, or in a docs line.
  • N4: outside the diff. ui/packages/app-shell/src/layout/designModeMenuSave.ts:432 deletes the whole navigation node, keywords included, when a translated label is cleared. With keywords-only nodes now valid, clearing a label should keep the node's keywords. Confirm by reading the code, then fix it, or split it into its own card if it is a defect.

Blocked-by: #39146

Activity

  1. added
    domain:spec
    pm:blocked
    on Dec 3, 2026
  2. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

    Unlock · 2026-12-03T01:10Z

    Triage: 唯一的 Blocked-by #39146 已关闭(PR #39207 合并),pm:blocked → pm:queue。

  3. added
    pm:queue
    and removed
    pm:blocked
    on Dec 3, 2026
  4. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Claim: PM loop round 1 · 2026-12-03T14:30Z
    Session: session_01Utp6CXktGqE1JUHFoagYGj (card thread of zone ux-1203, session session_01Utp6CbFgiyGToVRBFwedwF)
    Account: os-bill
    Branch: claude/project-thread-gg5i69
    Worktree: card thread's own (base origin/main 850d240)
    Domain: domain:spec
    Seat: repo:objectstack@os-bill
    Area: ux-1203
    File surface: packages/spec/src/system/translation-contributed-nav-bundle.test.ts, .changeset/39146-nav-translation-keywords-without-label.md (unreleased; names PlatformTranslationData and ServedTranslationData), ui/packages/app-shell/src/layout/designModeMenuSave.ts (+ a new test beside it), and a ui patch changeset. Items N2–N4 only. N1 ({keywords: []} accepted) is a contract choice routed for a ruling; it is not in this claim, and if ruled before L1 an amendment adds its files.
    Container & model: S, mode:thread, model: default, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: review follow-ups of PR #39207: a stale test header, an unreleased changeset that does not name the served types, and writeMenuTranslation deleting a whole nav node (with its keywords) when only its label is cleared; spec + app-shell; administrators translating menus in design mode, today.
    Thread-read: 7364044714
    Premise: holds at origin/main 850d240: N2 test header line 24 still says the nav entry owes a label; N3 the #39146 changeset is still in .changeset/; N4 writeMenuTranslation does delete navigation[id] on a cleared label.
    Pre-claim lane: domain:spec p3.
    Pre-claim deps: none.
    Prior rulings read: none on this card.
    Serial constraints cleared: check-handover.mjs --inflight --card=39210 → CLEAR on the claimed files.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Ruling · 2026-12-03T14:48Z
    Ruling: N1 — Bill chose option (b) 「两端都拒收空列表(min 1)」 on the decision card in this card's thread (2026-12-03T14:48:09Z).
    Meaning: .min(1) on both navigation keywords arrays — navKeywordsSchema in app.zod and the translation bundle navigation node — plus the ui/packages/types mirror, [] added to the refused-keywords pins, regenerated JSON schema, and one sentence in each of the two pending changesets (#39146, #39052). Both changesets are unreleased, so this is not a narrowing of a shipped key.
    Status: not coded. All p3 work is paused by Bill (14:46Z); N1 goes into PR #39356 (or a follow-up PR) by claim amendment when p3 resumes. PR #39356 (N2–N4) is paused at d737f23. Its Check Changeset red is the deliberate N3 edit of the pending #39146 note, and the confirming PR comment is still owed before landing.

  7. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Claim amendment 1 · 2026-12-03T15:15Z
    Reason: Bill ruled N1 = (b), min(1) at both doors (ruling recorded on this card). Bill approved carrying PR #39356 to merge with N1 included (seat relay, Bill 15:02Z 「ok」). The PR body moves to Fixes #39210.
    File surface (added): packages/spec/src/ui/app.zod.ts (navKeywordsSchema .min(1)), packages/spec/src/system/translation.zod.ts (navigation node keywords .min(1)), packages/spec/src/ui/app-nav-keywords.test.ts ([] added to REFUSED_KEYWORDS at both doors), ui/packages/types/src/zod/app.zod.ts (mirror), content/docs/references/ui/app.mdx (generated describe text), .changeset/39052-nav-item-keywords.md (one sentence). The #39146 changeset already claimed gets one more sentence.
    Clause-②: no
    Metadata-protocol: none
    Note: both keys are unreleased; their changesets are still pending and no published version accepted []. No released contract narrows, so the thread reads this as not Tier H. The seat makes the governed/Tier call at ACCEPT.

  8. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Claim amendment 2 · 2026-12-03T15:55Z
    Reason: the premise changed under the PR. The version packages (next) cut 779ff41 published @objectstack/spec 19.0.0-next.4 on npm (2026-12-03T15:39Z) and consumed the #39052 and #39146 notes into .changeset/pre/. N1 (keywords: [] refused at both doors, Bill's ruling) now narrows a shape that a published prerelease accepts. The ruling stands; only the release state changed.
    File surface (changed): the two .changeset/pre/ edits are reverted. Added a new @objectstack/spec minor changeset (with an @object-ui/types patch) that declares the narrowing (empty keywords refused on the nav item and the translation node; prescription: leave the key out) and names PlatformTranslationData / ServedTranslationData for N3. Everything else is as in amendment 1 (7382845174).
    Clause-②: yes (narrowing)
    Metadata-protocol: narrowed
    Note: this lands as Tier H (narrowing declaration; os-zhuang approval plus a ## Contract review on the current head) and owes needs:dogfood-battery. The seat runs the L2 (fable, or Opus under Bill's 15:42Z rule) and lands it.

  9. objectstack-fleet commented on Dec 3, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Claim amendment 3 · 2026-12-03T16:00Z
    Reason: the ADR-0087 gate requires a narrowing to carry a registered semantic migration entry, and refuses no-migration-prescription.
    File surface (added): packages/spec/src/migrations/entries/semantic/19.nav-keywords-empty-list-refused.ts, packages/spec/src/migrations/semantic-relevance.test.ts, packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts, and .changeset/39210-nav-keywords-never-empty.md.
    Clause-②: yes (narrowing)
    Metadata-protocol: narrowed

  10. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF

    Close-out · 2026-12-04T00:30Z
    PR #39356 merged at 2026-12-04T00:28Z (head 5e3ec28). N1 (Bill ruling b): an empty keywords list is refused on the nav item and on the translation node. This narrows 19.0.0-next.4, is declared, and carries ADR-0087 entry nav-keywords-empty-list-refused. N2 and N3 text was fixed. N4: clearing a menu label keeps the node when keywords remain. The L2 nits are on #39447.

  11. removed
    pm:dispatched
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:specpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions