Skip to content

knowledge_source tombstones: say what a code-door (registerSource) author does, and that an underscore-led 18 id keeps its old index key #37741

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6Cb4BAjgQ43tqy1DvVJ

Filing gate: ② follow-up out of #37304 (PR #37676, contract record 7206413701 nit N5, seat REWORK 7206423476), filed by the owning zone ai-37000 under #37304 at the seat's direction, per the maintainer's standing permission for areas to file their own follow-up cards. Handed to repo:objectstack#1 with the #37000 ledger (7206523866).
Grading: area:ai · domain:spec · Task · p3 (seat-directed) · reach: authors upgrading a code-registered knowledge source from 18 · evidence: read.

维护者速读

  • 做什么:旧写法的报错提示让作者去跑迁移命令,但在代码里注册的知识源没东西可迁;提示要改成告诉他们直接改代码,并说明旧 id 带下划线的源改名后会留下旧索引。
  • 谁受益:升级的开发者照提示就能改对。
  • 不做会怎样:提示指向一个没用的命令;功能不受影响。
  • 需要你做的:无。

What

Each retired-key tombstone for knowledge_source ends by sending the author to os migrate meta --from 18. The only 18 instance is a registration in code (registerSource), which that command cannot walk. The ADR-0087 D3 entry says the compiler and the parse carry it; the tombstone does not. The entry also does not say that a source whose 18 id began with an underscore keeps an index under the old key once it is renamed.

Acceptance

  • The tombstone text names the code-door fix (edit the registration) beside the migrate command, and the D3 entry states the underscore-led id's stale index and how it is dropped (rebuild / dropSource).
  • Pins on the tombstone text updated; no shape change.

Blocked-by: #37304

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:spec · Task · priority:p3 · pm:blocked · size XS; rationale: the knowledge_source tombstones should say what a code-door (registerSource) author does when upgrading from 18. Seat-directed p3; blocked by #37304.

  3. added
    pm:blocked
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 6 · area o1-C (epic #37000 hand-over 7206523866; area concurrency 8) · 2026-11-27T12:56Z
    Session: session_016WV4cwPhGV4g9p1BGQaZbP
    Account: os-elon-musk
    Branch: claude/area-o1C-37740
    Worktree: objectstack-issue-37740
    Domain: domain:spec
    Area: o1-C
    Seat: repo:objectstack#1
    File surface: the knowledge_source tombstone prescriptions in packages/spec/src/ai/knowledge-source.zod.ts (:28, :159 and siblings) and their pins (knowledge-source.test.ts :118 and siblings), the ADR-0087 D3 entry for knowledge_source in docs/adr/0087-metadata-protocol-upgrade-contract.md, generated spec artifacts only if a gate asks. ⛔ No schema shape change.
    Container & model: XS, mode:subagent, model: ceiling tier (dispatch-gates --tier: "MANDATORY: claude-fable-5-2", path docs/adr/0084-application-builder-information-architecture.md and docs/adr/0087-metadata-protocol-upgrade-contract.md ⇢ docs/adr/**), effort: xhigh (reason: ADR revision, standing order quoted by the --tier line)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack's own text, packages/spec/src/ai/knowledge-source.zod.ts | each retired-key tombstone sends the author to os migrate meta --from 18 (:28, :159), which cannot walk the only 18 instance, a registerSource call in code; the D3 entry omits the underscore-led id's stale index | authors upgrading a code-registered knowledge source from 18
    Thread-read: 7207144089
    Premise: holds, read — on origin/main bc17334 knowledge-source.zod.ts:28 and :159 prescribe os migrate meta --from 18 only, pinned at knowledge-source.test.ts:118.
    Serial constraints cleared: #37306 (this area, no PR yet) edits knowledge-source.zod.ts at the adapter line (:251), another region; the dev re-runs overlap-check before every push and merges main if it lands first.
    Pre-claim lane: packages/spec/src/** + docs/adr/**; folded into #37740's governed hand-off.
    Pre-claim deps: Blocked-by #37304 (closed, PR #37676 merged); pm:blocked → pm:dispatched in this stroke.
    Prior rulings read: ADR-0087 D3 (the compiler and the parse carry a tombstone's prescription).
    Fold-or-serial: folded into #37740 (same contract record, both docs/adr; one governed hand-off).

  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

    Close-out · area o1-C · 2026-11-27T17:22Z

    Delivered by PR #38015 (#37740 + #37741 folded; merged 3c53b85 at 2026-11-27T17:18Z, Tier H via seat 1). Its review follow-up is #38022 (now unblocked). Nothing remains on this card; pm:dispatched removed with this comment.

  7. removed
    pm:dispatched
    on Nov 27, 2026
  8. added a commit that references this issue on Dec 1, 2026
    3c53b85
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