Skip to content

ADR-0161 K8 item 17: a dated note fixes the record-scope shape — scope: [{ object, ids }] on search and the adapter filter, a parent object reached through a lookup the source lists in metadataFields #37324

Description

@objectstack-fleet

repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

Filing gate: ③ maintainer-directed (topic child). Source: topic #37000; maintainer ruling on #37308 Q3 = B (comment 7168192820, decision thread 2026-11-25). Split out of #37308 because an implementation card's file surface does not carry docs/adr/**.
Grading: area:ai · Task · p2 (topic) · reach: the knowledge search contract every adapter implements · evidence: read.

维护者速读

What

  1. A dated note under ADR-0161 K8 item 17 (today "Deferred"), in the PR docs(adr): ADR-0161 dated note — the document hash covers the organization of a document that has one (K8 items 2 and 9) #37263 precedent's form: the member's name and type on the service's search options and on AdapterSearchOptions (scope: [{ object, ids }]), what an adapter must do with it (apply before ranking), and the ruling's parent arm: an entry may name a parent object when the source lists a lookup to it in metadataFields; an entry whose object no searchable source indexes or reaches answers no hits (the same answer for a withheld source).
  2. State that K8 rules 3 and 5 are amended by this one member only; no other member is added.
  3. Name service-knowledge: search takes a record scope (scope: [{ object, ids }]) and hands adapters a typed filter they apply before ranking #37308 as the implementing card and search_knowledge: the one definition gains scope, granularity and groupBy, for the MCP door and the in-app agent alike #37311 (row 12) as the tool-argument card.

Acceptance

  • The note quotes the ruling comment id and the maintainer's words; it changes no earlier text of the record.
  • 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 #37308.
Dedupe: "K8 item 17" 1 (#37308); ADR-0161 scope note 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 #37308)
    Session: session_01JQwxbW5anP6GDaVi5LKi2U
    Thread session: session_01JQwxbZmjM1KubX3ZAoJPPm
    Account: os-warren
    Branch: claude/project-thread-3zr6fx
    Worktree: objectstack (the card thread's own checkout)
    Domain: domain:skills
    Seat: repo:cloud#1
    File surface: docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md only (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; authored by the thread's Fable subagent), effort: xhigh (reason: ADR docs-only card, xhigh per the ADR rule)
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Premise: holds (ruling 7168192820 on #37308: Q3 = B; K8 item 17 reads "Deferred" on main)
    Serial constraints cleared: no open PR edits ADR-0161; PR #37263 (merged) is the dated-note precedent. #37308's code PR waits for this note.

    Ownership: maintainer 2026-11-25 13:49Z, 「#4 只负责在手任务,你接手专题剩余任务」; ruling as cited. 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

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

    Card thread report for #37324 at head 8a64f99f, 2026-11-25T17:14Z. Note authored by the thread's Fable subagent at effort xhigh, as the claim's Container & model line orders.

    {
      "issue": 37324,
      "status": "done",
      "branch": "claude/project-thread-3zr6fx",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37329",
      "session": "session_01JQwxbZmjM1KubX3ZAoJPPm",
      "premise_still_valid": true,
      "summary": "Draft PR #37329 adds one dated note under ADR-0161 K8's table (after the #37097 note) and one Amended header bullet: +17 -0, one file, Status line byte-identical. The note records ruling 7168192820 (Q3 = B, quoted verbatim) and gives item 17 its shape: AdapterSearchOptions.scope?, a list of resolved terms ({ kind: 'record', ids } on sourceRecordId, { kind: 'metadata', field, ids } on a listed lookup), built by the service from KnowledgeSearchOptions.scope [{ object, ids }], applied before ranking, absent/present/empty read as organizationIds; the service post-checks every hit fail-closed and logs once per adapter, with no capability flag; the opaque filter stays unchanged. ◆ readings for the approver: several entries union; only lookup/master_detail are parent links (a user field is not); a source listing two lookups to the same parent is not reached by that entry. One deliberate difference from #37324's body words: the adapter receives resolved terms, not [{ object, ids }], as #37308 item 1 and K8 item 17 ('built by the service from') say.",
      "tests": "No test changes: docs/adr only. Prerequisite build for one gate under the verify lock (turbo build of @objectstack/formula and @objectstack/lint): VERDICT command-exit 0.",
      "gates": "dispatch-gates --commands derived 21 families at 8a64f99f; all 21 run, each exit 0 (check-adr-links and --self-test, check-closing-keyword-parity and --self-test, check-comment-mask-corpus, plan-test-core-shards --self-test, check:doc-formula-expressions, check:adr-anchors, check:adr-index, check:adr-symbol-anchors, check:ci-filter-parity, check:closed-ceremony-text, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:pm-governed-merges, check:pm-prior-rulings, check:refd-timer-probe, check:watch-hint-literal). --ran: 'Run reconciliation — 21 derived, 21 run, 0 NOT-MEASURED, 0 UNRUN.' PR check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0 — no MCP GitHub calls; reads went through REST",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/37329/assignees, POST /issues/37329/labels), and this comment (POST /issues/37324/comments)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — KnowledgeSearchOptions.filter / AdapterSearchOptions.filter has no producer in this tree (the one non-test caller of IKnowledgeService.search, createKnowledgeTools, passes none) and gets no service guarantee; the note leaves it unchanged and says its retirement is its own card. Dedupe words: knowledge opaque filter, AdapterSearchOptions filter retire, KnowledgeSearchOptions filter producer"
      ]
    }

    Left to #37308's code PR (named in the PR's Acceptance notes): whether the refill after the permission filter counts hits the scope check removed; whether an empty scope or an entry with no ids is answered empty or refused; the bound numbers; log levels.

  5. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    First touch 2026-11-25T17:32Z. 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).

  6. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbW5anP6GDaVi5LKi2U

    ACCEPT → PR #37329 comment 7169539288 (L1 ACCEPT + contract review PASS at head 8a64f99). Tier H: handed to the approver (comment 7169652471, pm:awaiting-merge).

  7. removed
    pm:dispatched
    on Nov 25, 2026
  8. added 2 commits that reference this issue on Dec 1, 2026
    13ffe1c
    98b17fe
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