Skip to content

ADR-0150 addendum: knowledge_source joins bucket 3 — one slot per (package, name), the AI face spells NS-NAME #37325

Description

@objectstack-fleet

repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

Filing gate: ③ maintainer-directed (topic child). Source: topic #37000; maintainer ruling on #37304 Q1 = B (comment 7168239918, 「按应用+名字区分,都保留」, decision thread 2026-11-25). Step 1 of #37304's ruled execution, split out because an implementation card's file surface does not carry docs/adr/**.
Grading: area:ai · Task · p2 (topic) · reach: every package that ships a knowledge source · evidence: read.

维护者速读

What

  1. A dated addendum to ADR-0150 admitting knowledge_source to bucket 3 beside skill and ai_context, in the PR docs(adr): ADR-0150 addendum — ai_context joins the package-scoped bucket beside skill #37209 precedent's form: one slot per (package, name); the AI face spells NS-NAME and refuses a bare ambiguous name loudly (409); document ids and adapter tables are keyed by package too.
  2. Name what follows: knowledge_source: admit the governed metadata type with its loader — registry, stack collection, ADR-0087 renames and retirements, the two authoring guards, one name per source #37304 takes the four lists and readers and the store keying (memory, pgvector, turso); knowledge-pgvector: an open vector store on PostgreSQL — tables, exact search, listing, chunks #37100 / knowledge-turso moves into objectstack: Apache-2.0, the platform embedder and splitter, listing, generations, the contract suite #37107 inherit the keying if they land first.

Acceptance

  • The addendum quotes the ruling comment id and the maintainer's words; earlier text of the record unchanged.
  • Docs-only PR (docs/adr/**), Tier H: the maintainer merges.

Parent: #37000. Reader: the domain:skills lane via this project's card thread (repo:cloud#1). Blocks #37304.
Dedupe: ADR-0150 knowledge_source 1 (#37304); bucket 3 addendum 0 open.

Activity

  1. added
    priority:p2
    pm:queue
    domain:skills
    area:ai
    on Nov 25, 2026
  2. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

    Claim: PM loop round 2 (epic #37000 owner seat, card thread; step 1 of #37304)
    Session: session_01JQwxbW5anP6GDaVi5LKi2U
    Thread session: session_01JQwxbZjKjZ947xtTvgJuHX
    Account: os-warren
    Branch: claude/project-thread-4uapwf
    Worktree: objectstack-issue-37304
    Domain: domain:skills
    Seat: repo:cloud#1
    File surface: docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md (dated Amended clause, one dated D1 row, an addendum section after the ai_context one), docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md (one cross-reference note, no ruled sentence changed) (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: claude-fable-5-2 (dispatch-gates --tier: Model tier — MANDATORY: claude-fable-5-2, derived from the docs/adr/** surface; os-dev subagent at that tier), effort: xhigh (reason: ADR docs-only card, xhigh per the ADR rule)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds (thread's reading on main 829a45e: knowledge_source is in none of the four ADR-0150 lists; ADR-0161 mentions ADR-0150 0 times)
    Serial constraints cleared: #37324 (this seat, branch claude/project-thread-3zr6fx) adds a dated K8 note to the same ADR-0161 file; both PRs run overlap-check.mjs before each push and the second to land merges main. PR #37209 (merged) is the addendum precedent.

    Ownership: maintainer 2026-11-25 13:49Z, 「#4 只负责在手任务,你接手专题剩余任务」; ruling 7168239918 on #37304 (Q1 = B). Tier H: the maintainer merges.

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T17:33Z. Confirmed as filed: Task · area:ai · domain:skills · p2, a #37000 step that a maintainer ruling split out, already claimed by repo:cloud#1. Tier H (docs/adr/**): the seat hands it to the maintainer after ACCEPT and a same-head contract PASS (label-write --handoff).

  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbZjKjZ947xtTvgJuHX
    os-dev-report

    {
      "issue": 37325,
      "status": "done",
      "branch": "claude/project-thread-4uapwf",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37330",
      "pr_number": 37330,
      "head_sha": "05f35b6106e21b448474764c12ee88958b04fdaf",
      "session": "session_01JQwxbZjKjZ947xtTvgJuHX",
      "premise_still_valid": true,
      "summary": "Draft PR 37330 writes the maintainer's ruling of 2026-11-25 (record 7168239918 on card 37304, decision card tapped B 「按应用+名字区分,都保留」) into ADR-0150 as a dated addendum: one Amended clause appended to the status line, one dated row in the D1 table, and the section \"Addendum (2026-11-25): `knowledge_source` joins bucket 3\" after the `ai_context` addendum, plus one cross-reference note in ADR-0161 after point 3 of K4, away from K8. No ruled sentence is rewritten, and nothing is declared or implemented: none of the four lists is edited, no reader is moved, no store is re-keyed. The addendum states the type under D2 to D8, how D1's principle reads for it, the tree today, what the bucket changes, the five readers that move (it moves none), the follow-up on card 37304, and seven points that go past the ruling's words: one is the maintainer's (the fourth list, `NAMESPACE_UNIQUE_TYPES`), two follow from text already ruled, four are left open for the code card; none is decided in the addendum. All four mechanism hypotheses of the dispatch held when measured. main moved during the run (829a45e9 to fbb62e1c; PR 37287 changed six files the addendum anchors), so main was merged with a merge commit, every tree-today sentence and anchor was read again and holds, and the two dated readings name fbb62e1c. The PR is draft, assigned os-warren, labelled skip-changeset, has no review request, and was never readied.",
      "tests": "Docs-only diff under docs/adr: no package touched, so no closure build (no ①), no package test or typecheck (no ②) and no ablation is owed. One build ran only as a gate prerequisite, under the shared verify lock (slot issue-37325-adr0150-addendum), once before and once after the merge of main: `pnpm --workspace-concurrency=2 --filter '@objectstack/lint...' build` (5 packages: lint, formula, spec, metadata-core, sdui-parser) → on the merged tree `os-verify-lock: VERDICT command-exit 0 · held the lock 83s (1m23s) · waited 1s`; `git status` stayed clean after it. Additive proof at the final head against origin/main: ADR-0150 old 486 lines, new 541, every old line survives in order and the one changed line (line 3, the status line) keeps its old text as a strict prefix of the new; ADR-0161 old 519, new 521, every old line survives in order. Every quotation of the ruling in the addendum was compared verbatim with comment 7168239918. The stored PR body was judged with the repository's own parsers: closingKeywordTargets = [37325, Fixes] only; partOfTargets and refsTargets empty; l1-face firstContentLine = the card relation line; readClause2Line = declared, value no. Tree-today readings re-measured at fbb62e1c, each absence with a positive control: `knowledge_source` 0 lines in the four list files, in package-slotted-store.ts and in the registry rows (control: `skill` present in the first three lists and the registry); `knowledgeSources` 0 lines in stack.zod.ts (control `aiContexts` 3); `knowledge_source` 0 files under packages, examples, ui, skills, content (control `ai_context` 60 files); KnowledgeServicePlugin or registerSource 0 files under examples (control 25 under packages); knowledge-pgvector and knowledge-turso 0 tracked paths (control knowledge-memory 10); before this diff ADR-0161 named ADR-0150 on 0 lines (control ADR-0088 on 7) and ADR-0150 held the word knowledge on 0 lines (control `ai_context` on 6).",
      "gates": "LOCAL, at head 05f35b61 (git rev-parse --short HEAD, after the last commit), every exit code captured before any pipe; derived with `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands` (21 commands: 15 pnpm, 6 direct node; change set 2 paths, +58 / -1 against merge base fbb62e1cc) and reconciled with `--ran`: `Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN.` · `✓ dispatch-gates --ran: 21 derived famil(ies) accounted for — 21 run, 0 NOT-MEASURED (a DERIVED zero — all 21 recorded an exit code and none of them is 3).` All 21 exit 0: node scripts/check-adr-links.mjs (`✅ check-adr-links: 1225 relative link destination(s) under docs/adr/ resolve`) · node scripts/check-adr-links.mjs --self-test · node scripts/check-closing-keyword-parity.mjs (`check-closing-keyword-parity: OK (3 parsers agree on all 9 keywords and both measured separators; sweep found 5 file(s) carrying the grammar across 27969 tracked file(s), all registered).`) · node scripts/check-closing-keyword-parity.mjs --self-test · node scripts/check-comment-mask-corpus.mjs (`23929 files, 0 disagree, 0 unparseable`) · node scripts/ci/plan-test-core-shards.mjs --self-test · pnpm --filter @objectstack/lint run check:doc-formula-expressions (`29 record-scoped formula example(s) across 596 files / 1871 TS blocks judged clean`) · pnpm check:adr-anchors (`check-adr-anchors: OK (132 anchored file(s), every governing ADR still referenced; 157 decision number(s) ...`) · pnpm check:adr-index (`adr-index --report: OK — docs/adr/README.md is current, every record parsed, self-test 60 assertions green.`; the README is not in the diff) · pnpm check:adr-symbol-anchors (`✅ check-adr-symbol-anchors: 4220 anchors across 163 records resolve — 1437 symbol (1408 declaration, 29 literal), 2731 file-level, 52 cross-repo, 6 exempt, 96 continuation.`; 21 of the anchors are this diff's) · pnpm check:ci-filter-parity · pnpm check:closed-ceremony-text · pnpm check:cross-package-test-inputs · pnpm check:doc-authoring · pnpm check:driver-memory-census · pnpm check:gitlink-declared · pnpm check:nul-bytes (`check-nul-bytes: OK (scanned 27865 text file(s) ... no raw ASCII control bytes).`) · pnpm check:pm-governed-merges · pnpm check:pm-prior-rulings · pnpm check:refd-timer-probe · pnpm check:watch-hint-literal. The same 21 had also all exited 0 on the pre-merge head aca7eb4a. Outside the derived list, also at 05f35b61: `node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD` exit 0 (`3 commit message(s) on origin/main..HEAD carry no card relation and no model identifier in the trailer pair`; the pre-push hook printed the same on the push) · `node scripts/pm/overlap-check.mjs --branch=claude/project-thread-4uapwf` exit 0 (see overlap_check). NOT MEASURED locally, reason: the derivation names them as CI's own (values only a CI run has): the governed-merges audit with its since-window, the Plan Test Core shards job, the five type-check lanes. CI: PR check-runs on 05f35b61, one snapshot taken right after the create, not polled: 28 runs — Check Changeset: success; 17 in_progress (Check Documentation Links, Check PR Size, Governed Surface Queue Guard, Lint · CI, release & engine gates, Lint · ESLint, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates, Lint · scoped · query-options erasure, Lint · scoped · slot lookup & corpus, Lint · scoped · tooling self-tests, PR-body guards (claim · duplicate · Part-of · single-writer path), Type Check · consumer gates, Type Check · debt ledger, Type Check · source gates, Type Check · workspace, filter); 10 skipped (the opt-in and queue-only jobs). CI convergence is the seat's to read.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "overlap_check": "exit 0 — `overlap-check: claude/project-thread-4uapwf (05f35b6106) changes 2 file(s); against origin/main (fbb62e1cca) and 1 PR head(s)` · `✓ origin/main: merges cleanly` · `✓ #37329 (shares docs/adr/0161-…-governed-type.md): merges cleanly` · `VERDICT clean exit 0`. Run after the last commit and before the push. No conflict listed. PR 37329 is the K8 dated note of the sibling card (branch claude/project-thread-3zr6fx, open, draft); this PR's note sits after point 3 of K4 (new line 219), K8 starts at line 299.",
      "line_budget": "+58 / -1, 59 changed lines in 2 files, against the 3000-line human-merge threshold: under. docs/adr/0150-…: +56 / -1 (the one changed line is the status line, where a clause is appended). docs/adr/0161-…: +2 / -0. The dispatch's precedent figure was 44 added / 1 changed, so this is 14 lines over it: the paragraph that reads D1's principle for a type the ruling placed against the recommendation, and a seven-point list where the precedent had three. Commits: aca7eb4a (+58 / -1), b36889ef (the merge of origin/main at fbb62e1c), 05f35b61 (+2 / -2, the two measured-at readings). The PR object reports additions 58, deletions 1, changed_files 2, commits 3.",
      "files_changed": [
        "docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md — status line Amended clause (appended); one dated D1 table row after the ai_context row; the addendum section after the ai_context addendum and before D2",
        "docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md — one cross-reference note after point 3 of K4 and before K5; a pure addition",
        "nothing else: docs/adr/README.md is generated from the status keywords and stays current (check:adr-index green; not in the diff), no changeset (docs/adr ships in no package; skip-changeset rode the create), no file outside the claimed surface"
      ],
      "deviations": [
        "Dispatch vs AGENTS.md — commit trailer: the dispatch asked for a Co-Authored-By trailer that names a model. AGENTS.md and check:commit-card-trailers require the model-free pair (Claude-Session line, then Co-authored-by: Claude). Followed AGENTS.md on both authored commits; the merge commit carries git's default message. The check is green over the 3 commits.",
        "Dispatch vs AGENTS.md and os-dev.md — PR body footer: the dispatch asked the body to end with the harness's two-line block. AGENTS.md prescribes a blank line, a rule and one session-URL footer line, and the write-shape readings record that the stacked form stores several signature blocks. Sent the one-line form; the relay read the body back identical (15637 bytes sent, 15637 stored), nothing appended.",
        "PR body first line is the harness attribution comment, written by this run because the relay opens the PR, exactly as the dispatch spells it (os-dev.md's exception two: kept and reported). No signed trailer line: the dispatch did not ask for one.",
        "Dispatch vs AGENTS.md — pushes: the dispatch said push once when done and no empty-branch probe (platform-assigned branch); AGENTS.md asks for a pushed WIP commit before long steps. Followed the dispatch: work was committed locally, gated, then pushed once (3 commits in one push, exit 0).",
        "main moved under the diff's anchors: the dispatch's premise was read on 829a45e9; at push time origin/main was fbb62e1c (10 commits later), and PR 37287 had changed six anchored files (the knowledge service, its plugin, the memory adapter, three spec contracts). Merged origin/main with a merge commit (b36889ef; no rebase, no force-push), re-measured every tree-today sentence and anchor (all hold; `documentIdFor` moved from line 1401 to 1570 and is now exported), updated the two dated readings to fbb62e1c (05f35b61), and re-ran all 21 gates on the final head.",
        "Build-state refresh narrowed, declared: after the merge the run did `pnpm install --frozen-lockfile` and rebuilt the lint closure only (5 packages), not the whole-workspace build AGENTS.md asks for after a merge of main, because the one derived gate that reads compiled output is check:doc-formula-expressions.",
        "Line budget: 58 added / 1 changed against the precedent's 44 / 1 (see line_budget).",
        "Card change mid-run, followed: at dispatch card 37304 carried no claim; the seat then split step 1 out as card 37325 with the claim there (comment 7168570356). The PR closes 37325 only, the addendum and both notes cite 37325 as the carrier and record 7168239918 on 37304 as the ruling, and this report is on 37325. This run wrote no label, assignee or body on either card.",
        "Scratch reads: one control-byte grep earlier in the run was read after a pipe and is not counted; the reading that counts is `pnpm check:nul-bytes` exit 0 with the code captured before any pipe."
      ],
      "tier_check": "the model the harness reports for this run is the tier the claim's Container & model line names as MANDATORY for docs/adr; effort xhigh",
      "mcp_calls": "0 — no GitHub MCP call of any kind, read or write",
      "api_writes": "2 — both `POST /repos/objectstack-ai/objectstack/dispatches` (the fleet-write relay; nothing was written under the session's own login): (1) pr_create, request fw-20261125T173115Z-5111e0, run 45665641175 success, whose three legs ran as objectstack-fleet[bot]: POST /repos/objectstack-ai/objectstack/pulls (draft), POST /repos/objectstack-ai/objectstack/issues/37330/assignees, POST /repos/objectstack-ai/objectstack/issues/37330/labels; read back: body identical (15637 bytes), assignee os-warren, label skip-changeset, no reviewer; (2) this os-dev-report comment through post-stamped, which the relay executes as POST /repos/objectstack-ai/objectstack/issues/37325/comments. Not REST writes: 1 git push (3 commits, exit 0). The two relay dry-runs sent nothing. No label, assignee or body was written on card 37325 or card 37304.",
      "open_questions": [
        {
          "question": "Point 1 of \"Past the ruling's words\": does `knowledge_source` join the fourth list, `NAMESPACE_UNIQUE_TYPES`, so that inside one namespace a second package shipping the same source name is refused at install and in `os validate`? The ruling record counts \"the `domain:server` four lists\" and names none of them; the list's header reserves any further type to the maintainer.",
          "options": [
            "A — as the addendum writes it: the type joins the list, as `ai_context` does in the precedent PR 37291. `NS-NAME` then names one source. \"Two packages shipping one source name both work\" holds for two namespaces; inside one namespace the second is refused. Cost: one more narrowing for the code card to declare with a measured count; no first-party tree is refused today (0 files spell the type).",
            "B — struck before the merge: the list keeps its current members. Two co-owners of a namespace may ship one source name, both are kept, and the one face they derive is refused at each call that names it (D6), so a model cannot address either until one is renamed. Cost: a refusal at call time in place of one at install."
          ],
          "recommendation": "A, because D2 gives every bucket 3 type one holder per namespace, a face two sources derive is refused at every call anyway, and it is the form the precedent took. It is not this run's to decide: the addendum says the maintainer's merge accepts it or the maintainer strikes it first, and the 速读's last line names it in plain words."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: card 37304 (the code card, row 3a) · the four points the addendum leaves open, each stated there and decided nowhere: (4) what each shape carries — a hit's sourceId and documentId on the tool's answer, sourceId on a stored document and on an adapter's hit, and what the by-name members of IKnowledgeService take from a caller in code; (5) which coordinate a key carries, the package id or the namespace (only the package id tells every two packages apart, because the shareable namespaces admit two holders), how a document id and a table name spell it inside their length limits, and what removes an index left under the old key; (6) which holder a source registered in code is, and whether the refusal of a second arrival compares names or (package, name); (7) an environment source under a name a package later ships, whose row is then not served and whose index is the index of no source · noted, not filed · dedupe words: knowledge_source package key; documentIdFor package; knowledge index re-key; registerSource holder; NS-NAME sourceIds",
        "carrier: card 37304 · two narrowings the code card declares with counts measured on the tree it lands on: a `_`-led source name (today's id pattern admits one, packages/spec/src/ai/knowledge-source.zod.ts:176; the bucket's pattern at packages/spec/src/kernel/address-grammar.ts:68 does not), and D2's install refusal if point 1 stands · read from source, not measured through a public door · noted, not filed",
        "carrier: cards 37100 and 37107 (knowledge-pgvector, knowledge-turso; neither on main) · by the ruling's execution they are re-keyed if they land before the code card, and built on the package-carrying key if after; the addendum says so · noted, not filed",
        "carrier: PR 37329 (sibling card, same ADR-0161 file) · merges cleanly with this branch today; whichever lands second merges main · noted, not filed"
      ],
      "Dev-effort": "xhigh",
      "Rounds": 1
    }
  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

    ACCEPT → PR #37330 comment 7170044645 (L1 ACCEPT + contract review PASS at head 05f35b6). Tier H: handed to the approver (comment 7170066295, pm:awaiting-merge). For #37304 (3a): the addendum leaves points 2 and 4–7 open; point 6 (which holder a code registration is) gets an analysis before 3a is dispatched.

  7. removed
    pm:dispatched
    on Nov 25, 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:skillspriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions