Skip to content

skills/objectstack-ai: knowledge-source guidance beyond documents (long free text only, one source per corpus with sourceIds, attachment text via a text field) #37976

Description

@objectstack-fleet

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

Filing gate: ③ maintainer-directed (topic child of #37000) · Source: maintainer (hotlong, cloud #5 project thread, 2026-11-27 13:41Z): 「但是我们作为元数据开发平台,不能只考虑制度库」 · Spec: objectstack#37000 comment 7220000671 · relayed by seat repo:objectstack#1 (mailbox #37561 comment 7220012379)
Grading: area:ai · Feature · p3 (topic) · reach: an author or agent setting up knowledge over CRM-style objects rather than a policy library · evidence: read on main 0b539b6.
Dedupe: is:issue knowledge skill guidance sourceIds → 2 (open: #37000 parent only).
Reader: area o1-C of seat repo:objectstack#1 claims it after triage's first touch. Governed skills/**; edits the same skill as #37310, so it waits for it.

维护者速读

  • 问题:技能文档只按「制度库」讲知识源,没有告诉作者和 AI 在通用业务对象上怎么配。
  • 做什么:在 objectstack-ai 技能里写明三点:只索引长文本(文章、记录正文、工单内容、附件提取出的文字),数字和短字段交给查询工具;一类语料一个知识源,调用时用 sourceIds 指定,避免每次扫所有知识源;附件文字要先落到一个文本字段再索引。
  • 谁受益:用 AI 搭应用的作者。
  • 需要你做的:无。

What

Premise re-read on main 0b539b6: sourceIds is already an argument of search_knowledge (.changeset/pre/36650-mcp-search-knowledge.md:16); the file and http source kinds are retired (packages/spec/src/ai/knowledge-source.zod.ts:130, kind is object only).

In skills/objectstack-ai, say:

  • (a) Index long free text only (articles, notes, ticket bodies, extracted attachment text), never numbers or short fields; counts and filters go to query tools.
  • (b) One source per corpus; agents and skills pass sourceIds so a question does not scan every source.
  • (c) Attachment text must first land in a text field, since the file and http source kinds are retired.

Acceptance

Blocked-by: #37310

Activity

  1. added
    pm:blocked
    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:skills · Task · p2 · pm:blocked · size S; rationale: the AI skill must teach knowledge sources beyond documents, per the maintainer (「不能只考虑制度库」). Without that guidance, agents model every corpus as a document library. A skill omission is p2 (p3 → p2). It stays pm:blocked until the features it teaches land, per its own Blocked-by: line. Recorded 2026-11-27T14:17Z.

  3. added
    domain:skills
    priority:p2
    and removed on Nov 27, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock · #37976 · 2026-11-28T10:22Z: its Blocked-by: card #37310 was closed as completed at 2026-11-28T10:19Z. pm:blocked → pm:queue; the grade (p2, area:ai, domain:skills) is unchanged. Knowledge retrieval is outside the p1-only line. Answers seat repo:objectstack#1 (7237849712).

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

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 16 · area o1-C (epic #37000; area concurrency 10 by the maintainer 2026-11-28T10:17Z; all priorities, maintainer 2026-11-28T06:54Z) · 2026-11-28T10:35Z
    Session: session_016WV4cwPhGV4g9p1BGQaZbP
    Account: os-elon-musk
    Branch: claude/area-o1C-37976
    Worktree: objectstack-issue-37976
    Domain: domain:skills
    Area: o1-C
    Seat: repo:objectstack#1
    File surface: skills/objectstack-ai/SKILL.md (section "Knowledge Sources (RAG)"), possibly skills/objectstack-ai/evals/skills-tools-knowledge.json, the scripts/check-skills-token-ratchet.mjs row (by ruling record 6513306068 only after duplicate deletions), an @objectstack/skills patch changeset.
    Container & model: XS, mode:subagent, model: claude-fable-5-2 (dispatch-gates --tier: "MANDATORY: claude-fable-5-2" for skills/**), effort: medium (reason: XS; three teaching points with one example each, paid for inside a ratcheted file)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack's own skill text, skills/objectstack-ai/SKILL.md | the skill teaches knowledge sources only for a policy library, not for ordinary business objects (long text only, one source per corpus with sourceIds, attachment text through a field) | every author and agent writing a knowledge source with the skill
    Thread-read: 7237856551
    Premise: holds, read on origin/main f19350b: the section is #37310's text (PRs #38053 and #38091 merged); sourceIds is a search_knowledge argument; kind is object only.
    Serial constraints cleared: open PR #38224 also edits skills/objectstack-ai/SKILL.md (the adapter row) and its ratchet row; this card edits other lines of the same section. They run in parallel; the second to land merges main and re-measures the row.
    Pre-claim lane: skills/** ⇒ domain:skills, Tier H at landing.
    Pre-claim deps: none.
    Prior rulings read: token ruling record 6513306068 (letter B); unlock 7237856551.
    Fold-or-serial: not folded (#38224 is a review follow-up on another row, already under review).

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 28, 2026
  8. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 37976,
      "status": "done",
      "branch": "claude/area-o1C-37976",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38292",
      "session": "session_016WV4cwPhGV4g9p1BGQaZbP",
      "premise_still_valid": true,
      "summary": "skills/objectstack-ai/SKILL.md, section Knowledge Sources (RAG), gains one block, Sources over business objects, with three rules and one example each: (a) content lists long free text only, counts and filters go to the record tools; (b) one source per corpus, a skill's instructions naming which to pass in sourceIds, the argument of search_knowledge, and no second shape; (c) attachment text goes through a textarea field, since no source reads a file. Two duplicate clauses were deleted first and one became a pointer; the ratchet row moves 6906 to 7109, the measured remainder (ruling record 6513306068, letter B). Eval case 15 added; patch changeset for @objectstack/skills. Draft PR 38292 on head d16dc4b0a4d; the adapter row and its note (PR 38224) are untouched, and both PRs move the same ratchet row, so the second to land re-measures. The card's assignee was not written by this run.",
      "tests": "Head d16dc4b0a4d. node scripts/check-skills-token-ratchet.mjs: exit 0, 'skills/objectstack-ai/SKILL.md is 7109 tokens (ceiling 7109; headroom 0)', '61 authored bundle file(s) within their ceilings'. --self-test: exit 0, 'self-test: 111 cases pass'. pnpm --filter @objectstack/spec run check:skill-docs: exit 0, 'Skill docs in sync'. check:skill-examples: exit 0, '351 prose examples type-check across 3 surface(s)' (first run exit 3 PREREQUISITE NOT MET; rerun after building the @objectstack/client-react closure under the verify lock, VERDICT command-exit 0). check:skill-refs: exit 0, '10 generated files in sync'. Before/after: file 489 to 505 lines, 27648 to 28461 bytes, priced 27621 to 28434, tokens 6906 to 7109 (+203); all skills/*/SKILL.md 4940 to 4956 lines, 262358 to 263171 bytes; ratcheted subtotal 199826 to 200029; bundle total 303542 to 303745. Eval case 15 with-skill and no-skill runs: NOT MEASURED, reason: no eval runner in the repository or reachable from the container. No package test or typecheck owed (no package source in the diff); no ablation (text, fixture and ceiling only).",
      "gates": "dispatch-gates --commands on d16dc4b0a4d: 67 commands for 4 paths. 65 with captured exit 0 (check-comment-mask-corpus and check-self-test-workflow-commands each timed out once under box load, exit 124 and 1 ETIMEDOUT, and exited 0 on rerun; check:doc-formula-expressions, check:dts-closure, check:lean-entry-closure and check:sourcemap-no-sources-content exited 3 before the client-react closure build and 0 after it, on a partly built tree). pnpm check:pm-dispatch-gates: ran detached, exit code not captured; verdict line 'dispatch-gates self-test (fast tier): 2369 cases pass; 9 slow section(s) deferred'. NOT MEASURED: gate families, pnpm check:dual-build-cjs-loads, reason: exit 3 PREREQUISITE NOT MET (reads every package's dist; only the client-react closure is built here), left to CI. --ran reconciliation: exit 1, '67 derived, 66 run, 0 NOT-MEASURED, 1 UNRUN' (the UNRUN is check:dual-build-cjs-loads; the record file carried no exit codes). check:nul-bytes exit 0. PR check-runs at report time: all queued or in_progress (Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards, Lint lanes, Type Check lanes, filter); four skipped by design (Queue verdict, Borrowed queue verdict, 18.x upgrade harness, Packed-tarball smoke, Schedule gate).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay pr_create (POST repos/objectstack-ai/objectstack/dispatches, run 46140150417, draft PR 38292, assignee os-elon-musk, read-back identical 7874 bytes); this os-dev-report comment via post-stamped.mjs. Plus git push x2 (empty-branch probe, d16dc4b0a4d).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "Commit trailers are the model-free pair AGENTS.md requires, not the harness reminder's model-named line. Two gate loops outran the foreground limit and were finished by the harness in the background; their logs were read after they ended. The PR body's 维护者速读 fourth line is 无: the +203 token raise rides the standing ruling. The row note on main said priced 27623 while main's file measures 27621 (same 6906); the new note is written against the measured 27621."
    }
  9. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 37976,
      "status": "done",
      "branch": "claude/area-o1C-37976",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38292",
      "session": "session_016WV4cwPhGV4g9p1BGQaZbP",
      "premise_still_valid": true,
      "summary": "Rework round on PR 38292, new head 742647d8f0b (d16dc4b0a4d, then c71105cb5bf for the review fixes, then 742647d8f0b for the changeset note; no rebase, no merge of main). M1: case 15's must_not_contain now names wrong shapes only (a literal `kind: 'file',` / `kind: 'http',`, `contentFields:`, a `content:` list starting with priority, status, amount or contract_pdf, and one of those four directly after 'description'). S1: case 15 ran on both arms, with-skill 1/1, no-skill 0/1. N1 to N5 fixed: a title or subject line belongs and 'names of people or accounts' replaces 'short names'; 'Never ids or system fields' is back on the content row and rule (c) no longer restates that no source reads a file; the agent.knowledge row points to instructions and the section; rule (a) names aggregate_records and aggregate_data; the stale trailing comment on the ratchet row is gone. The row is re-measured 6906 to 7148 (+242) and the note's arithmetic rewritten. The corrected PR body is written to the scratchpad file pr-body-v2.md for the seat to apply; this run did not patch the body.",
      "tests": "Head 742647d8f0b: check-skills-token-ratchet exit 0, 'skills/objectstack-ai/SKILL.md is 7148 tokens (ceiling 7148; headroom 0)'; --self-test exit 0, '111 cases pass'; check:skill-docs exit 0, 'Skill docs in sync'; check-nul-bytes exit 0. Head c71105cb5bf: check:skill-refs exit 0. Arithmetic: file 27648 to 28617 bytes, priced 27621 to 28590, ceil(28590/4) = 7148; ratcheted subtotal 199826 to 200068; eval fixtures 88864 to 89389; bundle total 303542 to 304309. Eval, `skill-evals --case objectstack-ai/skills-tools-knowledge#15` on c71105cb5bf (skills/ tree identical to 742647d8f0b), 1 rep per arm, served claude-opus-5-5, Claude Code 2.1.332, OAuth login: with-skill PASS (no missed, no forbidden; key lines: 'Listing a `file` field in a knowledge source adds no text from the file, so a hook, flow or import has to extract the PDF's text into a `textarea` field first'; `content: ['subject', 'description']` with `metadataFields: ['priority', 'status']`; 'Always pass sourceIds; never search all sources at once'; counts to aggregate_data). no-skill FAIL (missed `sourceIds`, `content:`, and none of aggregate_records / query_records / aggregate_data; key line: 'Treat the key names (`source`, `chunking`, `metadata`, …) as illustrative'; it invents `fileField: 'contract_pdf'` with an extraction block and a count tool file). Score with-skill 1/1, no-skill 0/1. Records: scratchpad issue-37976/eval-15 (round.json, summary.md, runs/). Runner setup: the verify lock was held by a full dogfood run, so the dist of the 16 built packages in the runner's closure was copied from sibling worktrees with byte-identical package sources (git diff --quiet per package, clean status).",
      "gates": "On 742647d8f0b, exit 0 each: check-skills-token-ratchet and its --self-test, check:skill-docs, check-nul-bytes, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, check-declaration-mirrors. NOT MEASURED: check:skill-examples, reason: exit 3 PREREQUISITE NOT MET on the recreated worktree (packages/client-react/dist not built; a borrowed dist is refused as older than src), and the verify lock answered queue-timeout (exit 99) four times, 9 minutes each, holder pid 21863 (dogfood closure build and test, held over 2031 s). It exited 0 on d16dc4b0a4d ('351 prose examples'), and the later commits change no marked code block. NOT MEASURED: the rest of the dispatch-gates --commands list on the new head, reason: declared narrowing, run on d16dc4b0a4d and left to CI. PR check-runs: on c71105cb5bf 45 runs, 29 success and 16 skipped, none red or pending at read time; on 742647d8f0b not read (just pushed), in_progress.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 this round — this os-dev-report comment via post-stamped.mjs. Plus git push x2 (c71105cb5bf, 742647d8f0b). The PR body was not written.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": "The eval's dependency dist was borrowed from sibling worktrees, as comment 7232993751 did, not built under the lock. check:skill-examples is not measured on the new head. Case 15's residual: a content list carrying a short field in another position is not caught, and a non-content list with priority directly after description would be refused. The eval made two model calls on the container's OAuth login (notional $0.42, nothing billed). The first report said no eval runner was reachable; that was wrong, the runner is packages/qa/scenarios skill-evals."
    }
  10. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Close-out · area o1-C · 2026-11-28T13:28Z

    Delivered by PR #38292 (merged ed4ec27 at 2026-11-28T13:24Z, Tier H through seat 1): the section "Knowledge Sources (RAG)" of skills/objectstack-ai teaches sources over business objects (long free text only; one source per corpus with sourceIds; attachment text through a text field), one example each, and eval case 15 scores with-skill 1/1, no-skill 0/1. Nothing else remains on this card for the area. pm:dispatched removed with this comment.

  11. removed
    pm:dispatched
    on Nov 28, 2026
  12. added a commit that references this issue on Dec 1, 2026
    ed4ec27
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