Skip to content

console: the docs route /docs/NAME should show the candidate packages when the doc read answers 409 RESOURCE_CONFLICT (two enabled packages ship the name) #34070

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jUcj2x2Wr4UErwBi12

Filing gate: ② a UI follow-up a recorded ruling names. Filed by area S5 (E1b) for the ui lane, as ruling 6893582352 on #33264 requires.

维护者速读

What is owed

Ruling 6893582352: "The Console /docs/<name> route must show the candidate packages on a 409: a UI-lane follow-up."

Acceptance:

  • On a 409 RESOURCE_CONFLICT from the doc read, the docs route lists the candidate packages named in the refusal.
  • Each candidate opens that package's doc through its package address.
  • Pin it in the docs-portal test harness (ui/apps/console/src/pages/docs-portal.*.test.tsx).
  • CONTROL: one holder renders as today.

Depends on: PR #34036 (server refusal) merging. Note that #34040 tracks an exact ?package= doc read on a composed artifact server answering the other holder's doc. The candidate links depend on that read answering right.

Prior rulings read: ruling 6893582352. client-sdk.mdx documents the /meta 409 holder list.

Dedupe: searched "docs 409 candidates Console" and found nothing.

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 3 · 2026-11-15T18:10Z
    Session: session_01ADHkmP4uQusF8yrKtRnvqJ (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
    Account: os-steve
    Branch: claude/project-thread-mr9g83
    Worktree: objectstack-issue-34070
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: the Console docs route under ui/apps/console/src/pages/** (DocsSlug.tsx / DocShell.tsx, as located) and its docs-portal tests, @object-ui/i18n pack keys for the new strings, root .changeset/. packages/** stays read-only.
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: yes (widening) — the chooser's strings add @object-ui/i18n pack keys; if the dev adds none, the report and PR say no
    Metadata-protocol: none
    Responsibility: a doc name two enabled packages ship answers 409 with candidates, and the Console docs route shows only a generic error | ruling 6893582352 on #33264 owes this UI follow-up to server PR #34036 | every Console reader of a docs page whose name two packages ship
    Thread-read: none
    Premise: the refusal shape is read from open PR #34036's head and content/docs/api/client-sdk.mdx; the dev cites file:line and stops if the two disagree
    Serial constraints cleared: no other pm:dispatched domain:ui card claims a docs-route file (live read: seat 1 holds #33864 #33980 #33838, #33723/#33831 at PR; seat 2 holds #33988 #33987 #28085 #33857 #33856)
    Scope: On a 409 RESOURCE_CONFLICT doc read, list the candidate packages, each linking to its package doc address; one holder and other errors render as today; pins + ablation. Fixes #34070; the PR stays a draft with Waits-on: #34036 and lands only after #34036 merges. Order: /mnt/project-files/ui-seat1/standard-order.md + 34070-delta.md. Summons: the maintainer's 「优先还是 p1 p2 哦」 (2026-11-15T17:14Z); this is the lane's only queued p2.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmP4uQusF8yrKtRnvqJ
    os-dev-report

    {
      "issue": 34070,
      "status": "done",
      "branch": "claude/project-thread-mr9g83",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34109",
      "session": "session_01ADHkmP4uQusF8yrKtRnvqJ",
      "premise_still_valid": true,
      "summary": "DocPage now reads a 409 RESOURCE_CONFLICT doc rejection's details.candidates (the envelope PR #34036's head throws as PackageScopedNameRefusedError, which GET /meta/:type/:name answers with details.candidates and @objectstack/client exposes as err.details; client-sdk.mdx's /meta 409 section agrees) and renders a 'Choose a package' list: each package labelled as the portal names it (its home book for this doc) with its id beside it, linking to /apps/PACKAGE/docs/NAME. The refusal lands in DocPage (the in-book reader's read names no package), not DocsSlug. Bounded rider: homeBook takes an optional packageId and DocsSlug passes the container's package when it ships the name, else a candidate link opened in the other package's book (content right, sidebar wrong). Three @object-ui/i18n help.* keys in all 11 packs (zh-Hant regenerated). Draft PR with Waits-on: #34036 under Fixes #34070.",
      "tests": "docs-portal.test.tsx new top-level describe (4 pins: two candidates listed with package-address links; each candidate opens its package's doc in its own book; CONTROL one holder; CONTROL non-409 500 keeps 'Failed to load documentation'): 28/28 passed; at head be6b38f6 apps/console/src/pages/ 159 files 1333 passed; packages/i18n 102 files 1894 passed 13 skipped. Ablation via ablation-replace.mjs at 9854afce (console tree byte-identical to be6b38f6): A conflict branch disabled -> 2 failed 2 passed; B container package not passed to homeBook -> 1 failed 3 passed (landed in com.example.beta's book); both restored blob==HEAD, git diff HEAD empty. No build needed: ui vitest resolves @object-ui/* and the Console to src.",
      "gates": "dispatch-gates --commands at be6b38f6: 39 derived, 39 run under os-verify-lock (VERDICT command-exit 0), each exit 0; --ran: 39 accounted, 0 NOT-MEASURED. Outside the derived list: ui check-i18n-call-site-keys / dead-keys / en-drift exit 0; ui check:new-line-citations 0 new; eslint on the 4 console files 0 errors; console type-check (tsc --noEmit + tsc -b tsconfig.node.json, after building @object-ui/console^...) VERDICT command-exit 0, --listFiles covers all 4 edited files. PR check-runs: in_progress at report time (not awaited).",
      "dogfood_battery": "n/a — no ! in the PR title and Clause-② is yes (widening), no (narrowing) arm",
      "mcp_calls": "5 — reads only: issue_read get x1, issue_read get_comments x2, pull_request_read get x2 (PR #34036, PR #34109); no MCP write",
      "api_writes": "2 — relay pr_create (PR #34109, assignee os-steve, read-back identical 10042 bytes), this os-dev-report comment via post-stamped; plus git push (not REST)",
      "open_questions": [
        {
          "question": "Candidate label: the Console has no package-label source; the chooser shows the package's home-book label for this doc (implicit book = humanized id, authored book = book label) with the id beside it. Keep, or add a package-manifest label read?",
          "options": [
            "A keep the book label + id (no new fetch)",
            "B read installed package labels (a new client read)"
          ],
          "recommendation": "A, because the portal already names a package by its book everywhere else and B adds a fetch for one rare state"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #34040 · candidate links rely on the exact ?package= doc read answering the named package's doc; on a composed artifact server it can answer the other holder's (measured in #34036's body) · noted, not filed",
        "carrier: none · DocsSlug refusalFor (single-name probe for a name the member's lists do not carry) still treats a 409 as no answer; unreachable for a two-holder name in the member's list · Acceptance notes only"
      ]
    }
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landed

    PR #34109 MERGED at 2026-11-15T22:37Z as b4eea88505 through the merge queue; Fixes #34070 closed this card. Delivered: when /docs/NAME matches doc copies in more than one package (the server's 409 RESOURCE_CONFLICT with details.candidates, from #34036), the Console docs page shows a chooser that links each candidate package's copy at /apps/<package>/docs/NAME, instead of an error; the book navigation keeps the chosen package. Three new help.* keys ship in all locale packs. Nothing remains on this card.

    State change: pm:dispatched removed and the assignee cleared in this stroke.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions