Skip to content

Four apps.setup.navigation translation keys have no declaring nav item anywhere in the repo — dead weight that reads as coverage #6660

Closed

Description

@os-project-manager

Found while implementing #5750. Observation-class: nothing a user hits today, but it is the exact shape app-nav-translation-parity.test.ts already guards against for Studio ("a translation for an id the app no longer declares is dead weight that reads as coverage — nav_workflows outlived its menu entry in all four locales and nothing said so").

Measurement

Booting the real Setup composition and diffing the merged nav ids against each locale's apps.setup.navigation keys, on origin/main 487a197b5:

key en zh-CN ja-JP es-ES
nav_approval_processes present present present present
nav_metadata present present present present
nav_verifications present — present present
nav_device_codes present — present present

None of the four is declared by any nav item in the repo:

$ for k in nav_approval_processes nav_metadata nav_verifications nav_device_codes; do
    echo "$k: $(grep -rn "id: '$k'" --include=*.ts packages/ | grep -vc node_modules)"
  done
nav_approval_processes: 0
nav_metadata: 0
nav_verifications: 0
nav_device_codes: 0

Control probe with a live id (nav_webhooks) returns a hit, so the zeros are real.

Two of them have a recorded reason to be gone. setup-nav.contributions.ts explains that sys_verification and sys_device_code deliberately omit list from apiMethods (sensitive, ephemeral secrets — not browsable), so a nav entry for them "can only ever render 'failed to load'". The entries were removed; their translations were not.

Why this was not just deleted in the #5750 PR

That PR adds pnpm check:app-nav-i18n, which judges the merged Setup app. It deliberately does NOT assert the reverse direction, because from one runtime composition a dead key and a conditionally-contributed key are indistinguishable — nav_sso_providers is contributed only when an external IdP is wired (see the sibling finding). Asserting "no translation without a declaring nav item" against a single composition would delete the labels of gated-off entries.

The four above are safe to delete because they were checked individually against a repo-wide grep, not against one boot. But doing that on a verdict the gate itself cannot reach would leave the deletion unguarded, so it belongs in its own change with its own reasoning — either:

  1. Delete the four keys (16 lines across four locale files), plainly, citing the grep; or
  2. Close it structurally together with the sibling finding, by giving the gate a way to see the union of declared contributions rather than one realisation — at which point the reverse direction becomes assertable for Setup exactly as it already is for Studio.

Filed unassigned.

Activity

  1. added
    finding
    on Aug 8, 2026
  2. os-zhuang commented on Aug 8, 2026

    @os-zhuang
    Contributor

    Findings-round routing repair: domain:metadata appended — finding grade untouched, no ownership taken.

    本评论来自分诊座位 Routine(#5474 试点),不构成认领。


    Generated by Claude Code

  3. added
    pm:dispatched
    on Aug 8, 2026
  4. self-assigned this
    on Aug 8, 2026
  5. os-zhuang commented on Aug 8, 2026

    @os-zhuang
    Contributor

    Claim: PM loop round 2 (domain:metadata seat, sticker #6367)
    Session: session_01W6bLax4KMrSfnE1ydFU8Dw
    Branch: claude/issue-6660-drop-dead-nav-keys
    Worktree: objectstack-issue-6660
    Domain: domain:metadata
    File surface: packages/platform-objects/src/apps/translations/{en,zh-CN,ja-JP,es-ES}.ts (the four hand-written locale files — NOT the *.objects.generated.ts bundles) + tests if the parity suite gains a pin + one .changeset/*.md
    Serial constraints cleared: disposition fixed by the findings sweep of 2026-08-08 10:22Z — option 1 only (delete the four dead apps.setup.navigation keys; do NOT couple the union-aware reverse gate, that fork belongs to #6659). #6659 touches the same four locale files and is deliberately held for a later round (same-file serialization). PR #6661 (merged) touched en.ts without removing these keys — work off current origin/main. #6700 (in queue) touches only the *.objects.generated.ts bundles — different files.


    Generated by Claude Code

  6. os-zhuang commented on Aug 8, 2026

    @os-zhuang
    Contributor

    Review verdict: ACCEPT — PM domain:metadata seat, session session_01W6bLax4KMrSfnE1ydFU8Dw.

    PR #6767 executes the sweep ruling (option 1 only) with better-than-card precision:

    CI already converged green on the dev's watch (both required jobs success) — flipping ready + queueing now.


    Generated by Claude Code

  7. os-zhuang commented on Aug 8, 2026

    @os-zhuang
    Contributor

    Landing confirmed — PR #6767 merged as d42a92fc6 (verified on origin/main). The four dead apps.setup.navigation keys are gone with their provenance recorded, and the tombstone pin holds the line. #6659 (the union-aware reverse-gate fork, same files) is now dispatchable. — domain:metadata PM, session session_01W6bLax4KMrSfnE1ydFU8Dw


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

pm:dispatchedpm:queue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions