Skip to content

Review follow-up of PR #38015: the knowledge_source id-to-name docs name the underscore exception #38022

In progress

Description

@objectstack-fleet

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

Filing gate: ① follow-up of PR #38015 (#37740/#37741; L1-a ACCEPT 7223565918: "File one small card, or accept it by name"; dev report 7222932379 out-of-scope note; one card per PR, review-follow-ups exception) · Source: topic #37000
Grading: area:ai · Task · p3 (suggested: docs text; the upgrade entry already states the exception) · reach: an author upgrading a knowledge source whose 18 id began with an underscore · evidence: read (dev report 7222932379; probe in PR #38015).
Dedupe: is:issue "PR #38015" → #37740, #37741 only; is:issue knowledge_source id name underscore → none open.
Reader: area o1-C of seat repo:objectstack#1 claims it after triage's first touch.

维护者速读

  • 问题:知识源的 id 改为 name 后,文档说原有索引会被找回,但 id 以下划线开头的知识源要改名,会从头重建,旧索引留在旧 id 下,文档没写这个例外。
  • 做什么:在两处文档里补上这个例外,以及如何清掉旧索引。
  • 需要你做的:无。

What

content/docs/protocol/knowledge.mdx (the id row of the 18 → 19 table) says the index is found again after id becomes name, with no exception. PR #38015's upgrade entry knowledge-source-registration-governed states that a source whose 18 id began with an underscore is renamed, built from nothing under the new name, and leaves the index under the old id with its adapter until dropSource is called with the old id as the source's name (probed in PR #38015). Add that exception and the dropSource step to the page. .changeset/37304-knowledge-source-governed-type.md (landed) carries the same row; correct it only if the changeset is still pending, as a deliberate correction with its declaration, otherwise leave it.

Acceptance

  • knowledge.mdx names the underscore exception and the dropSource cleanup, in the same words as the upgrade entry.
  • check:generated and the docs gates green.

Blocked-by: #37740

Activity

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

    @objectstack-fleet
    ContributorAuthor

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

    Amendment (2026-11-27T16:44Z): this card also carries contract-review nits N1 and N2 of PR #38015 (record 7223548043; seat 1 record names one follow-up card for the gap plus N1 and N2).

    Added to What:

    • N1. The upgrade entry knowledge-source-registration-governed (packages/spec/src/migrations/entries/semantic/19.knowledge-source-registration-governed.ts) says the old index stays "with its adapter" until dropSource is called. That holds only where the store outlives the process (Turso, pgvector); on the memory adapter nothing survives a restart. Qualify the sentence.
    • N2. The id tombstone in packages/spec/src/ai/knowledge-source.zod.ts could say that the entry's manual notices (the underscore rename and the dropSource cleanup) still apply after os migrate meta --from 18.

    Added to Acceptance: N1 and N2 worded as above; the regenerated reference page follows (check:generated).

  3. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:docs · Task · p3 · pm:blocked · size XS; rationale: the knowledge_source id-to-name docs should name the underscore exception, which the upgrade entry already states. A small docs gap, so the filer's p3 stands. Recorded 2026-11-27T17:13Z.

  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 9 · area o1-C (epic #37000; area concurrency 8 by the maintainer 2026-11-27T11:26Z) · 2026-11-27T20:26Z
    Session: session_016WV4cwPhGV4g9p1BGQaZbP
    Account: os-elon-musk
    Branch: claude/area-o1C-38022
    Worktree: objectstack-issue-38022
    Domain: domain:docs
    Area: o1-C
    Seat: repo:objectstack#1
    File surface: content/docs/protocol/knowledge.mdx (the id row of the 18 → 19 table: the underscore exception and the dropSource cleanup, in the upgrade entry's words); the landed .changeset/37304-knowledge-source-governed-type.md only if still pending.
    Container & model: XS, mode:subagent, model: default tier (dispatch-gates --tier: "no path-derived mandate"), effort: medium (reason: XS docs; one table row worded to match an existing upgrade entry)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack's own code, content/docs/protocol/knowledge.mdx | the upgrade table says every 18 source's index is found again under its name, with no exception | an operator upgrading a source whose 18 id began with an underscore
    Thread-read: 7224179983
    Premise: holds, read on origin/main 8d34c44 — the id row names no exception; knowledge-source-registration-governed (PR #38015) states it.
    Serial constraints cleared: probe overlap-check (knowledge.mdx) against origin/main and every open PR: VERDICT clean exit 0 (#38043 and #37963 share the file and merge cleanly).
    Pre-claim lane: content/docs/** ⇒ domain:docs.
    Pre-claim deps: #37740 closed; #37306 closed.
    Prior rulings read: card thread — amendment 7223636019 (N1/N2), triage 7224179983 (XS).
    Fold-or-serial: not folded.

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

    @objectstack-fleet
    ContributorAuthor

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

    os-dev-report

    {"issue":38022,"status":"done","branch":"claude/area-o1C-38022","pr":"https://github.com/objectstack-ai/objectstack/pull/38050","head":"d60a6cef7d","premise_still_valid":true,"summary":"The id row of the 18 to 19 table in knowledge.mdx names the underscore exception and the dropSource cleanup in the upgrade entry's words. N1 (entry qualifies that only a persistent store keeps the old index) and N2 (id tombstone says the entry's notices still apply after migrate) applied, reference page mirrored by hand. The landed changeset sits in .changeset/pre/ and was left alone; a new patch changeset covers the spec string change.","tests":"NOT MEASURED: knowledge-source.test.ts and retired-key-migrate-sentence.test.ts, verify lock never acquired (VERDICT queue-timeout exit 99, 4 attempts, slot issue-38022)","gates":"check:doc-authoring 0, doc-anchors 0, doc-frontmatter 0, docs-nav-label 0, docs-image-tag 0; docs-transcript-drift exit 3 NOT MEASURED; gen:docs/check:generated NOT MEASURED (needs spec build under lock), CI judges; overlap-check d60a6cef7d VERDICT clean exit 0","dogfood_battery":"n/a","mcp_calls":"0","api_writes":"2 (fleet-write pr_create with assignees; post-stamped comment)","open_questions":[],"security_findings":"none","out_of_scope_findings":[]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:docspm:dispatchedpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions