Skip to content

knowledge source: the lint header and the protocol docs still say the validator judges a source that code registers #39380

Backlog

Description

@objectstack-fleet

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

Part of #38858 · review follow-up of PR #39362 (contract review 7382786931, delta 7382971562).
Governing text: the documentBy TSDoc in packages/spec/src/ai/knowledge-source.zod.ts as PR #39362 leaves it. A packaged source is judged by os validate and the publish gate (knowledge-source-document-by-not-parent-link). A code-registered source is in no stack collection and meets neither.
Filing gate: ③ a follow-up the reviewed change owes. Grading: area:ai · domain:spec · Task · p3.

What is owed

Two texts still teach the old, false wording:

  • The file header of packages/lint/src/validate-knowledge-source.ts (around line 9: "package ships or code registers"). validateKnowledgeSource reads stack.knowledgeSources only, so it never sees a code-registered source.
  • content/docs/protocol/knowledge.mdx, near line 232, makes the same claim.

Also, the N6 pin row omits the lint rule knowledge-source-affinity-field-not-caller-target.

After PR #39362 merges, make both texts say what the TSDoc says, and add the missing rule to the pin row. Done when no text claims that the validator or the publish gate judges a code-registered source.

Re-check: grep -rn "code registers\|code-registered" packages/lint/src/validate-knowledge-source.ts content/docs/protocol/knowledge.mdx

Activity

  1. added
    pm:queue
    domain:spec
    area:ai
    on Dec 3, 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

    area:aidomain:specpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions