Skip to content

spec: the knowledge-source-id-to-name conversion says "no index is rebuilt" without the leading-underscore exception #38217

Description

@objectstack-fleet

repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP

Filing gate: ① follow-up of PR #38050 (#38022; L1 ACCEPT 7236095767, which names it worth a card) · Source: topic #37000
Grading: area:ai · Bug · p3 (suggested: an upgrade notice that is true for every source but one class; the tombstone and upgrade entry already teach the exception) · reach: an author upgrading from 18 whose knowledgeSources[].id starts with an underscore, reading os migrate meta --from 18 · evidence: read on origin/main e3bdc74: packages/spec/src/conversions/entries/19/knowledge-source-id-to-name.ts summary reads "the value is unchanged, so no index is rebuilt", and its jsdoc says "the rename starts no rebuild (K6 item 4)". PR #38050 teaches, on the id tombstone and in entry 19.knowledge-source-registration-governed's reason, that name refuses a leading underscore, so such a source takes a new name, is built again under it, and must drop its old index with dropSource.
Dedupe: is:issue knowledge-source-id-to-name underscore rebuilt → checked at filing; open: #38022 (the parent) only.
Reader: area o1-C of seat repo:objectstack#1 claims it after triage's first touch.

维护者速读

  • 问题:从 18 升级时,迁移工具对"知识源 id 改名为 name"的说明写着"值不变,所以不重建索引"。但 id 以下划线开头的知识源不能直接沿用(name 不允许下划线开头),要换新名字并重建索引。这一类没被说到。
  • 做什么:在迁移工具的那句说明里补上这个例外,与 PR docs(knowledge): the 18 to 19 id row names the underscore exception and the dropSource cleanup #38050 已改的说明保持一致。
  • 谁受益:从 18 升级、知识源 id 以下划线开头的作者(照提示做不会漏掉重建和清理旧索引)。
  • 需要你做的:无。

What

In knowledge-source-id-to-name.ts, qualify summary and the jsdoc's "the rename starts no rebuild" with the exception PR #38050 states. A source whose id starts with an underscore cannot keep it as name. It takes a new name and is built again under it, and its old index is dropped with dropSource, which the author runs: it is not automatic. Check what renameKey does with such a value today (rewrite it to a name the parse then refuses, or refuse it), and make the summary match.

Acceptance

Blocked-by: #38050

Activity

  1. added
    pm:blocked
    area:ai
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:spec · Bug · p3 · pm:blocked · size XS; rationale: the knowledge-source id-to-name conversion notice says "no index is rebuilt" without the leading-underscore exception. The tombstone and the upgrade entry already teach that exception, so the notice is incomplete for one class only. The filer's p3 stands. Recorded 2026-11-28T08:16Z.

  3. added
    domain:spec
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock · #38217 · 2026-11-28T08:41Z: its Blocked-by: PR #38050 merged at 2026-11-28T08:39Z. pm:blocked → pm:queue; the grade (p3, area:ai, domain:spec) is unchanged. Knowledge retrieval is outside the p1-only line. Answers seat repo:objectstack#1 (7236748251).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 6 · 2026-11-28T09:15Z
    Picked by card-pick.mjs --order area:ai --seat repo:objectstack#2 at 2026-11-28T09:11Z, p3 close-out; its Blocked-by PR #38050 merged at 2026-11-28T08:39Z. The higher-ranked rows are cloud-repo, blocked, awaiting a maintainer ruling or a design choice, or waiting for the paused eval rounds. The maintainer in this seat's project, verbatim: 「ai 并发10」.
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgTJs4WrxwVhFtrMRYq
    Account: os-sales
    Branch: claude/project-thread-r6cjhf (from main)
    Domain: domain:spec
    Seat: repo:objectstack#2
    Area: s2-ai
    File surface: packages/spec/src/conversions/entries/19/knowledge-source-id-to-name.ts (summary and jsdoc) and its fixture or test; one changeset.
    Container & model: XS, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high (reason: the thread session serves effort high)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: os migrate meta --from 18 stops telling an author with an underscore-led knowledge-source id that no index is rebuilt.
    Thread-read: none
    Premise: the thread first reads what renameKey does with an underscore-led id today and makes the notice match it, agreeing with the id tombstone and entry 19.knowledge-source-registration-governed as PR #38050 landed them. If matching it needs the conversion to behave differently (not only its text), the thread stops and reports before writing.
    Serial constraints cleared: no open PR edits this file (seat read).

    The PR says Fixes #38217.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-28T10:55Z

    PR #38248 merged at 2026-11-28T10:53Z through the merge queue on the seat's ACCEPT (7237876224), and its Fixes line closed this card. What changed:

    • os migrate meta --from 18's notice for the knowledge-source id → name conversion no longer says every source keeps its index. A source whose id starts with an underscore takes a new name, is built again, and its author drops the old index with dropSource; a plain id still reads "no index is rebuilt". The conversion's behaviour is unchanged, and the fixture gained an underscore-led row so the CLI print is pinned.

    It was never ejected. pm:dispatched is cleared on this card.

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

Metadata

Metadata

Assignees

Labels

area:aidomain:specpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions