You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Studio form, docs and skill text for knowledge source documentBy #38538
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:skillsDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Filing gate: ③ maintainer-directed (topic child). Source: topic #38536. Key words (maintainer, 2026-11-29, this session): 「立新的专题卡,用 fable 分拆任务,然后立刻交给5号座位优先派发」.
Grading: area:ai · Task · p1 (topic's grade) · reach: authors configuring a knowledge source in Studio or from the docs · evidence: read from the code on main 63acc6c.
Form: a single field picker (dependsOn: 'object') next to metadataFields in packages/spec/src/ai/knowledge-source.metadata-form.ts:74.
Docs: content/docs/ai/knowledge-rag.mdx, content/docs/references/ai/knowledge-source.mdx, content/docs/protocol/knowledge.mdx; skill text skills/objectstack-ai/SKILL.md; the search_knowledge tool description (packages/services/service-knowledge/src/knowledge-tools.ts:223).
The docs say: an app that cuts its own passages writes them as child records with split: { strategy: 'whole' }; the index stays one record = one document; documentBy is the counted and default-grouped unit.
Acceptance
The form test lists the field; the three docs pages and the skill state the rule above.
Reader
repo:objectstack#5. Size S. Blocked-by: #38537.
Dedupe: documentBy 0.
Triage: lands in packages/spec/src/ai/knowledge-source.metadata-form.ts, three content/docs pages, skills/objectstack-ai/SKILL.md and the search_knowledge tool description · area:ai · domain:skills (the shipped skill text is the governed part) · Task · p1 (the maintainer's grade, kept) · pm:blocked (the body's Blocked-by: #38537) · size S. Rationale: the card had no state. It waits on the key from #38537; the daily unlock scan puts it back when #38537 closes.
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb
Scope note · 2026-11-29T10:06Z
The form half of this card rides PR #38564 (#38537 PR 1): the form-coverage gate refused the new key without its form row, so the single field picker beside metadataFields and its form-test row are in that PR (claim amendment on #38537).
What remains here once #38564 merges:
The search_knowledge tool description in packages/services/service-knowledge/src/knowledge-tools.ts, and the TSDoc of KnowledgeSearchOptions.granularity / topK in packages/spec/src/contracts/knowledge-service.ts, which still say record is one hit per record (for a documentBy source it is one per parent).
Acceptance unchanged for those: the pages and the skill state that an app cutting its own passages writes them as child records with split: { strategy: 'whole' }, the index stays one record = one document, and documentBy is the counted and default-grouped unit.
Blocked-by: feat(knowledge): a knowledge source declares its document unit (source.documentBy); record search groups by it by default #38564 merged.
Provenance (third-party instruction): the maintainer, Yibo Wang, in this account's fleet project thread, verbatim 「标签没刷新的 你负责处理」 (2026-12-01T04:44Z), answering the zone's note that this card's blockers had merged.
Before claiming: whether the maintainer's knowledge-task pause of 2026-11-30 (「暂时不开工新的知识任务」) covers this card is being ruled separately; a taker reads that ruling first.
Ruling · 2026-12-01T04:59Z · the maintainer answered on a decision card in this account's fleet project (2026-12-01T04:54Z).
Question, verbatim: 「定知识暂停:#38538 和 #38475 两张说明文字卡现在做吗?」
Option tapped, verbatim: 「不算新任务,现在做」. Consequence line: 「交 ai 区补齐文档和技能说明,一小一极小;技能文字的 PR 要你批。暂停仍然管住新的知识功能。」
Options not taken: 「算在暂停内,继续挂着」, 「只做 #38538(p1)」.
What it settles: the knowledge pause of 2026-11-30 (「暂时不开工新的知识任务」) does not hold #38538 (documentBy docs and skill text) or #38475 (the held-state skill sentence). Both are text owed for behaviour that has already merged (#38537 and #38369 are closed). The pause still holds new knowledge features, such as #38671 and #38692 phase 1b. Zone osa-ai takes both cards. Any skills/** wording is Tier H and goes to the maintainer for approval.
Claim: PM loop round 2 · 2026-12-01T05:04Z
Area: osa-ai
Ruling-ref: 7301309674
Session: session_01WGufzeatqKfTRUzTJVa9jQ
Account: os-support-ai
Branch: claude/issue-38538-documentby-docs-skill
Worktree: objectstack-issue-38538
Domain: domain:skills
Seat: repo:objectstack@os-support-ai
File surface: skills/objectstack-ai/SKILL.md, content/docs/ai/knowledge-rag.mdx, content/docs/protocol/knowledge.mdx, packages/services/service-knowledge/src/knowledge-tools.ts (the search_knowledge tool description only), packages/spec/src/contracts/knowledge-service.ts (TSDoc of KnowledgeSearchOptions.granularity / topK only; no shape change), one .changeset/*.md. Net skills/objectstack-ai/SKILL.md budget for this fold: ≤ +12 lines, duplicates cut first (skills ratchet, standing ruling 6513306068). Stop on breach; explain in the report.
Container & model: S, mode:subagent, model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: "Model tier — MANDATORY … 'skills/**' — clause ①"; no one-line exit for this root), effort: high (reason: two cards' wording read against merged behaviour from several PRs — #38564 and the three #38369 PRs — a judgement, not mechanical)
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7301309674
Premise: holds at origin/main — #38537 closed and PR #38564 merged (the documentBy key, its form row and the regenerated reference page landed there, per scope note 7254212284); what remains is the two docs pages, the skill text, the tool description and the two TSDoc lines that still say record is one hit per record. The dev re-reads each against the tree before writing.
Pre-claim lane: domain:skills per triage 7253149901 (file ownership only). Seat routing 05:01Z gives this card to zone osa-ai; content/docs/**, knowledge-tools.ts and the spec contract TSDoc are claimed card by card here. skills/** ⇒ Tier H: the PR goes to the seat, then the maintainer.
Pre-claim deps: Blocked-by: #38537 → closed; Blocked-by: #38564 merged. → merged (unlock 7301072797).
Prior rulings read: ruling 7301309674 (maintainer, decision card 2026-12-01T04:54Z, option 「不算新任务,现在做」: "the knowledge pause of 2026-11-30 does not hold #38538 … Any skills/** wording is Tier H and goes to the maintainer for approval"); check-prior-rulings.mjs --card 38538 --paths …: thread 0 ruling comments by first-line shape, surface ruling grep 0 hits (零命中 → 无裁决).
Fold-or-serial: folded with #38475 (five gates: ① same file skills/objectstack-ai/SKILL.md, text-only arm, Clause-②: no; ② one worktree, one changeset, same landing tier H and same L2 tier; ③ both ruled (7301309674, 7301316285) and graded; ④ each has its own named criterion — #38538 the documentBy rule stated in the two pages and the skill, #38475 the held-state sentence; ⑤ excluded: #38671 and #38692 phase 1b, held by the knowledge pause). This card (p1) heads the chain; one PR, one commit per card, a Fixes line per card.
Serial constraints cleared: check-handover.mjs --inflight NO OVERLAP over the five files. PR #38798 (repo:objectstack#2, #38676) also touches content/docs/protocol/knowledge.mdx: ordinary concurrency; overlap-check.mjs before each push, and a textual conflict queues this page's edit behind #38798 (Notify: serial).
{
"issue": 38538,
"also_covers": [
38475
],
"status": "done",
"branch": "claude/issue-38538-documentby-docs-skill",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38855",
"session": "session_01WGufzeatqKfTRUzTJVa9jQ",
"premise_still_valid": true,
"summary": "One draft PR, two commits on origin/claude/issue-38538-documentby-docs-skill, head ac64b997eb. Commit de04044835 (card 38538): content/docs/ai/knowledge-rag.mdx, content/docs/protocol/knowledge.mdx and skills/objectstack-ai/SKILL.md now state that an app cutting its own passages writes them as child records with split strategy whole, that the index stays one record = one document, and that documentBy is the unit a record-level search counts in topK and groups by when no groupBy is sent. Commit ac64b997eb (card 38475): the skill sentence says a shipped item mounts the service and its store and that the service is held (sources listed, never built or searched, search_knowledge not offered, a search or a run-time save answers 503 SERVICE_UNAVAILABLE naming the missing half, os knowledge status prints the state and why, os knowledge rebuild exits 1 with it) until an embedder provider is saved, the deployment's store is mounted and the server restarts; no example added. Premise, part by part: H1 holds (the form row and its test are on main, landed with PR 38564); H2 holds (wording read from heldSourcesText, heldSourceSaveText, heldIndexReading, the rebuild and index_status actions, describeEnablement, the two CLI commands and noKnowledgeServiceRefusal, on main 13a0d3fedf); the tool-description and TSDoc part of scope note 7254212284 is ALREADY TRUE on main (knowledge-tools.ts and the spec contract both say one hit per parent for a documentBy source since PR 38564), so those two files are unchanged. The PR stays draft (Tier H, skills wording); the dev did not mark it ready and requested no reviewer.",
"tests": "No behaviour changed: no test added or changed, no ablation owed (docs, skill text, a ratchet row and a changeset). No package source is in the diff, so no build closure, package test or typecheck is owed; test:repo was not run locally (CI's). Searched for pins of the edited text across *.test.ts and scripts/ (the skill path, both page paths, the removed phrases): none. All local readings below are on head ac64b997eb.",
"gates": "Local, head ac64b997eb, list = node scripts/pm/dispatch-gates.mjs --commands (93 commands, exit 0), every exit code captured before any pipe, reconciled: 'dispatch-gates --ran: 93 derived famil(ies) accounted for — 92 run, 1 NOT-MEASURED (0 DERIVED from a recorded exit 3, 1 claimed)', exit 0. 92 exit 0, among them check-skills-token-ratchet.mjs ('skills/objectstack-ai/SKILL.md is 7489 tokens (ceiling 7489; headroom 0)') and its --self-test, check:skill-docs, check:skill-examples, check:skill-identifier-liveness, check:skill-links, check:skill-frame-sync, check:skill-compatibility, check:docs, check:doc-anchors, check:doc-authoring, check:docs-single-h1, check:docs-spec-enumerations, check:docs-transcript-drift, check:doc-formula-expressions, check:doc-security-posture, check:nul-bytes, check:pm-skill-id-lint, check:pm-dispatch-gates (2904 cases, 523 s), check-empty-changeset.mjs, check-changeset-no-major.mjs, check-adr-0087-registration.mjs. NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3 PREREQUISITE NOT MET (needs a full pnpm build; whole-tree build is CI's). Five gates first answered exit 3 for a missing build (check:doc-formula-expressions, check:doc-security-posture, check:skill-examples, check:docs-transcript-drift, check:lean-entry-closure) and answered exit 0 after turbo run build of formula, lint, client-react and client under os-verify-lock (VERDICT command-exit 0, held 244 s); spec build under the lock: VERDICT command-exit 0, held 85 s. Outside the derived list: pnpm --filter @objectstack/spec run check:generated exit 0 ('All 14 generated artifacts are up to date', check:skill-docs and check:skill-refs included, so nothing under content/docs/references or any generated file was regenerated); check:skill-served-sections exit 0; overlap-check.mjs before each push: 'VERDICT clean exit 0' against origin/main 13a0d3fedf, PR 38798 (shares content/docs/protocol/knowledge.mdx) and PR 38821 (shares scripts/check-skills-token-ratchet.mjs). CI on the PR head ac64b997eb, read once at report time, not waited for: Governed Surface Queue Guard = success; in_progress = Check Changeset, Check Documentation Links, Check PR Size, the eight 'Lint ·' jobs, PR-body guards, Spec property liveness, the four 'Type Check ·' jobs, filter; skipped (opt-in or schedule) = Dogfood battery (opt-in) and its shard, 18.x upgrade harness (opt-in), Packed-tarball smoke (opt-in), Queue verdict, Borrowed queue verdict, Schedule gate. NOT MEASURED: every in_progress family, reason: CI had not concluded when the report was written.",
"line_budget": {
"file": "skills/objectstack-ai/SKILL.md",
"budget_lines": "+12 max for both cards together",
"lines_before": 507,
"lines_after": 518,
"lines_delta": 11,
"bytes_before": 29014,
"bytes_after": 29980,
"token_ratchet_before": "check-skills-token-ratchet.mjs on 13a0d3fedf: 7247 tokens (ceiling 7247; headroom 0); authored bundle 189821; whole shipped tree 295693",
"token_ratchet_after": "check-skills-token-ratchet.mjs on ac64b997eb: 7489 tokens (ceiling 7489; headroom 0); authored bundle 190063; whole shipped tree 295935",
"token_delta": 242,
"per_commit": "de04044835: 7247 to 7401 (+154, card 38538, +7 lines); ac64b997eb: 7401 to 7489 (+88, card 38475, +4 lines)",
"all_skill_md_lines": "14 files: 2769 before, 2780 after",
"paid_down_first": [
"the maxChars sentence's 'the longest passage' (the setting named Longest passage is in the same sentence)",
"the '(KnowledgeSourceSchema in @objectstack/spec/ai)' aside (the section's example imports that schema from that path)",
"the second 'SERVICE_UNAVAILABLE, nothing written' (the held refusal beside it says both)",
"'to the stack' and 'the server' of the remedy"
],
"raise_path": "standing ruling 「A:先削重复,余额按实测提高」, ruling record 6513306068 letter B, quoted in the PR body; the row is pinned at the measurement"
},
"files_changed": [
"content/docs/ai/knowledge-rag.mdx (+32 -3)",
"content/docs/protocol/knowledge.mdx (+39 -2)",
"skills/objectstack-ai/SKILL.md (+22 -11)",
"scripts/check-skills-token-ratchet.mjs (+38 -1) — OUTSIDE the claim's file surface, see deviations",
".changeset/38538-knowledge-document-unit-skill-text.md (+12, new; @objectstack/skills patch)"
],
"deviations": [
"FILE SURFACE: scripts/check-skills-token-ratchet.mjs was edited (the skills/objectstack-ai/SKILL.md row, 7247 to 7489, and its two history notes). It is not in the claim's list. The gate reds a row above or below its measurement and main had headroom 0, so any byte change to the skill moves that row in the same PR; the standing ruling the dispatch names (6513306068) is the raise path and every earlier raise of this row sits in that script. I did not stop on this breach: stopping would have delivered a PR that cannot go green. The seat should add the path to the claim, or order the row edit taken out.",
"packages/services/service-knowledge/src/knowledge-tools.ts and packages/spec/src/contracts/knowledge-service.ts are unchanged: the text the scope note asks for is already on main. No spec TSDoc edit, so no generated-artifact gate was tripped and nothing was regenerated.",
"The guide page gains one six-line source snippet in its new subsection. I read 'No new example' as the skill's constraint (card 38475, third Expected line); the skill gains none. If it was meant for the pages too, the snippet comes out without touching the rule text.",
"'Counted' is stated as far as this repository delivers it (topK counts parents). The hosted document-quota half (cloud) is not stated: the cloud repository answered 403 to this session (GitHub access not enabled), so its state is NOT MEASURED.",
"The skill does not list the rule id knowledge-source-document-by-not-parent-link (two lines, outside the line budget); the row says any other field is refused. Both pages name the rule.",
"test:repo not run locally (CI's Test Core). pnpm check:dual-build-cjs-loads NOT MEASURED locally (needs a full build).",
"PR body: line 1 is the attribution HTML comment and the last non-empty line is the signed trailer, both as the dispatch order requires; the footer is the AGENTS.md session-URL form, not the harness reminder's two-line block. Commits end with the model-free trailer pair of AGENTS.md; the harness reminder's Co-Authored-By line carries a model name and was not used.",
"A local-only wip commit was amended into de04044835 before the first content push; nothing was force-pushed."
],
"mcp_calls": "0",
"api_writes": "2 relay strokes, each one POST /repos/objectstack-ai/objectstack/dispatches (fleet-write): (1) pr_create, run 46587794014 success, executed as objectstack-fleet[bot]: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/38855/assignees (os-support-ai); read-back 10802 bytes sent, 10802 stored, identical. (2) this os-dev-report comment through post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/38538/comments. git push: 3 (the empty-branch probe, de04044835, ac64b997eb), not REST. No label write, no card assignee write, no reviewer request.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed (prose drift, read only) — the TSDoc of documentBy in packages/spec/src/ai/knowledge-source.zod.ts says a source registered in code or installed with a package 'meets no save, so that rule does not judge it yet'; packages/lint/src/validate-knowledge-source.ts (rule knowledge-source-document-by-not-parent-link) now judges it in os validate and at the publish gate. The .describe string and the generated reference page are accurate. In the PR's Acceptance notes. Dedupe words: documentBy TSDoc, does not judge it yet, document-by-not-parent-link.",
"carrier: none · noted, not filed (observation, read only) — skills/objectstack-ai/SKILL.md, Knowledge Sources, names no source.affinity (the order for the asker, landed by PR 38606). Outside both cards. In the PR's Acceptance notes. Dedupe words: affinity, objectstack-ai skill, Skills-docs follow-up, order for the asker.",
"carrier: cloud · noted, not filed — whether a hosted plan's document cap counts documentBy parents (the cloud half of topic 38536) could not be read from this session, so the pages do not state it; when it lands, one sentence in content/docs/ai/knowledge-rag.mdx would complete 'counted'."
]
}
Claim amendment · 2026-12-01T06:10Z · claim 7301395331 (fold with #38475) · file surface
File surface, added: scripts/check-skills-token-ratchet.mjs (the skills/objectstack-ai/SKILL.md row only, 7247 → 7489, and its history notes). Main had headroom 0 on that row, so any byte change to the skill moves the row in the same PR; the raise path is standing ruling 6513306068 (duplicates cut first, the rest raised to the measurement), as the claim already names. The dev made this edit before the amendment and said so (report on #38538); this amendment records it. PR #38855 delivers both cards.
{
"issue": 38538,
"also_covers": [
38475
],
"status": "done",
"round": "delta on report 7302512997, after contract review 7302929201 (PASS, one should-fix)",
"branch": "claude/issue-38538-documentby-docs-skill",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38855",
"session": "session_01WGufzeatqKfTRUzTJVa9jQ",
"premise_still_valid": true,
"head": "ff79a0e739a (was ac64b997eb); one new commit, pushed, no force",
"summary": "One commit on the same branch closes the review's S1 and takes its first nit. S1: the source.documentBy row of skills/objectstack-ai/SKILL.md now ends 'Setting it rebuilds nothing; newly listing the field rebuilds the source in place', the guide page's sentence. Nit: the held sentence reads 'A shipped item mounts the knowledge service, which does not enable it' ('and its store' dropped), so it no longer reads against 'until the deployment's store is mounted'. The second nit (a host-mounted service is not held) asked for no change and got none. The ratchet row is re-pinned at the measurement with a dated note in the row's form, and the changeset says the same two things and the new ceiling.",
"tests": "Text only, no test owed. Readings below are on head ff79a0e739.",
"gates": "Local, head ff79a0e739, each exit code recorded before any pipe: node scripts/check-skills-token-ratchet.mjs exit 0 ('skills/objectstack-ai/SKILL.md is 7499 tokens (ceiling 7499; headroom 0)'); its --self-test exit 0; check:skill-docs exit 0; check:skill-examples exit 0 ('348 prose examples type-check across 3 surface(s)'); check:skill-identifier-liveness exit 0; check:skill-links exit 0; check:skill-refs exit 0; check:nul-bytes exit 0; check-empty-changeset.mjs --base origin/main exit 0. Prerequisite build (spec, client-react, client) under os-verify-lock: VERDICT command-exit 0, a full turbo cache replay. overlap-check.mjs before the push: 'VERDICT clean exit 0' against origin/main 13a0d3fedf and PRs 38857 (shares the skill file), 38821 and 38798. The full derived list of round 1 was not re-run: the dispatch for this round names the skills gates, and the diff of this commit is the skill, its ratchet row and the changeset. CI on ff79a0e739: NOT MEASURED, reason: not read, the report does not wait for it.",
"line_budget": {
"file": "skills/objectstack-ai/SKILL.md",
"lines_before_main": 507,
"lines_after": 518,
"lines_delta": 11,
"budget_lines": "+12 max; this round moves no line",
"bytes": "29014 on main, 29980 at ac64b997eb, 30020 at ff79a0e739",
"token_ratchet": "7247 on main, 7489 at ac64b997eb, 7499 at ff79a0e739 (ceiling 7499; headroom 0); this round +10",
"bundle": "authored 190073 (main 189821); whole shipped tree 295945 (main 295693)",
"paid_down_first": "the held sentence's 'and its store' (the same sentence names the deployment's store)",
"raise_path": "standing ruling 「A:先削重复,余额按实测提高」, ruling record 6513306068 letter B"
},
"files_changed": [
"skills/objectstack-ai/SKILL.md (+2 -2)",
"scripts/check-skills-token-ratchet.mjs (+14 -1; the row and one dated note)",
".changeset/38538-knowledge-document-unit-skill-text.md (+3 -3)"
],
"deviations": [
"The PR body was written once at pr_create and is now stale in three places, for the seat to bring to the new head (a dev subagent does not patch it): the Skills budget table (bytes 30020, +1006; tokens 7499, +252; authored bundle 190073; whole tree 295945; lines unchanged at 518), the sentence on the ratchet row (a third move, 7489 to 7499, with 'and its store' as the deletion shown), and the head named in Verification (ff79a0e739; the two-minute check now prints 7499).",
"PR 38857 is new since round 1 and shares skills/objectstack-ai/SKILL.md; it merges cleanly with this branch. If it changes priced bytes of that file, whichever of the two lands second re-pins the row.",
"The worktree of round 1 had been removed after the first report; this round rebuilt it on the existing local branch with git worktree add (dev-worktree.sh refuses an existing local branch), then pnpm install."
],
"mcp_calls": "0",
"api_writes": "1 this round: this comment through post-stamped.mjs, one POST /repos/objectstack-ai/objectstack/dispatches (relay comment on issue 38538). git push: 1 (ff79a0e739), not REST. No PR body write, no label, no assignee, no reviewer request.",
"classifier_refusals": [
{
"command": "a compound gate-runner line that began with a recursive delete of a scratchpad log directory named through a shell variable and then ran each gate through bash -c",
"reason": "built-in safety check: the command passes a shell -c script that runs rm, and the script could not be checked for dangerous removals",
"mode": "subagent",
"human_turn_before": "unknown",
"resend": "none for the removal; the gates were then run one command at a time with no delete and no bash -c, writing to a new directory, and passed"
}
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:skillsDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 29, 2026
triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4
Triage: lands in
packages/spec/src/ai/knowledge-source.metadata-form.ts, threecontent/docspages,skills/objectstack-ai/SKILL.mdand thesearch_knowledgetool description · area:ai · domain:skills (the shipped skill text is the governed part) · Task · p1 (the maintainer's grade, kept) · pm:blocked (the body'sBlocked-by: #38537) · size S. Rationale: the card had no state. It waits on the key from #38537; the daily unlock scan puts it back when #38537 closes.objectstack-fleet commentedon Nov 29, 2026
repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb
Scope note · 2026-11-29T10:06Z
The form half of this card rides PR #38564 (#38537 PR 1): the form-coverage gate refused the new key without its form row, so the single field picker beside
metadataFieldsand its form-test row are in that PR (claim amendment on #38537).What remains here once #38564 merges:
content/docs/ai/knowledge-rag.mdx,content/docs/protocol/knowledge.mdx(the generatedcontent/docs/references/ai/knowledge-source.mdxis regenerated by feat(knowledge): a knowledge source declares its document unit (source.documentBy); record search groups by it by default #38564).skills/objectstack-ai/SKILL.md(Tier H: skills wording).search_knowledgetool description inpackages/services/service-knowledge/src/knowledge-tools.ts, and the TSDoc ofKnowledgeSearchOptions.granularity/topKinpackages/spec/src/contracts/knowledge-service.ts, which still sayrecordis one hit per record (for adocumentBysource it is one per parent).Acceptance unchanged for those: the pages and the skill state that an app cutting its own passages writes them as child records with
split: { strategy: 'whole' }, the index stays one record = one document, anddocumentByis the counted and default-grouped unit.Blocked-by: feat(knowledge): a knowledge source declares its document unit (
source.documentBy); record search groups by it by default #38564 merged.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
Unlock ·
pm:blocked→pm:queue· 2026-12-01T04:45ZBlocked-by:on this card (body and thread) was read now, and each target is done:Blocked-by: #38537(body) → service-knowledge: a knowledge source declares its document unit (source.documentBy); record search groups by it by default #38537 closed (completed);Blocked-by: #38564 merged.(comment 7254212284) → PR feat(knowledge): a knowledge source declares its document unit (source.documentBy); record search groups by it by default #38564 merged. Grade and other labels unchanged; no claim.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS
Ruling · 2026-12-01T04:59Z · the maintainer answered on a decision card in this account's fleet project (2026-12-01T04:54Z).
Question, verbatim: 「定知识暂停:#38538 和 #38475 两张说明文字卡现在做吗?」
Option tapped, verbatim: 「不算新任务,现在做」. Consequence line: 「交 ai 区补齐文档和技能说明,一小一极小;技能文字的 PR 要你批。暂停仍然管住新的知识功能。」
Options not taken: 「算在暂停内,继续挂着」, 「只做 #38538(p1)」.
What it settles: the knowledge pause of 2026-11-30 (「暂时不开工新的知识任务」) does not hold #38538 (
documentBydocs and skill text) or #38475 (the held-state skill sentence). Both are text owed for behaviour that has already merged (#38537 and #38369 are closed). The pause still holds new knowledge features, such as #38671 and #38692 phase 1b. Zoneosa-aitakes both cards. Anyskills/**wording is Tier H and goes to the maintainer for approval.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
Claim: PM loop round 2 · 2026-12-01T05:04Z
Area: osa-ai
Ruling-ref: 7301309674
Session:
session_01WGufzeatqKfTRUzTJVa9jQAccount:
os-support-aiBranch:
claude/issue-38538-documentby-docs-skillWorktree:
objectstack-issue-38538Domain:
domain:skillsSeat:
repo:objectstack@os-support-aiFile surface:
skills/objectstack-ai/SKILL.md,content/docs/ai/knowledge-rag.mdx,content/docs/protocol/knowledge.mdx,packages/services/service-knowledge/src/knowledge-tools.ts(thesearch_knowledgetool description only),packages/spec/src/contracts/knowledge-service.ts(TSDoc ofKnowledgeSearchOptions.granularity/topKonly; no shape change), one.changeset/*.md. Netskills/objectstack-ai/SKILL.mdbudget for this fold: ≤ +12 lines, duplicates cut first (skills ratchet, standing ruling 6513306068). Stop on breach; explain in the report.Container & model:
S,mode:subagent,model: CONTRACT_REVIEW_TIER (dispatch-gates --tier: "Model tier — MANDATORY … 'skills/**' — clause ①"; no one-line exit for this root),effort: high (reason: two cards' wording read against merged behaviour from several PRs — #38564 and the three #38369 PRs — a judgement, not mechanical)Clause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 7301309674
Premise: holds at
origin/main— #38537 closed and PR #38564 merged (thedocumentBykey, its form row and the regenerated reference page landed there, per scope note 7254212284); what remains is the two docs pages, the skill text, the tool description and the two TSDoc lines that still sayrecordis one hit per record. The dev re-reads each against the tree before writing.Pre-claim lane:
domain:skillsper triage 7253149901 (file ownership only). Seat routing 05:01Z gives this card to zone osa-ai;content/docs/**,knowledge-tools.tsand the spec contract TSDoc are claimed card by card here.skills/**⇒ Tier H: the PR goes to the seat, then the maintainer.Pre-claim deps:
Blocked-by: #38537→ closed;Blocked-by: #38564 merged.→ merged (unlock 7301072797).Prior rulings read: ruling 7301309674 (maintainer, decision card 2026-12-01T04:54Z, option 「不算新任务,现在做」: "the knowledge pause of 2026-11-30 does not hold #38538 … Any
skills/**wording is Tier H and goes to the maintainer for approval");check-prior-rulings.mjs --card 38538 --paths …: thread 0 ruling comments by first-line shape, surface ruling grep 0 hits (零命中 → 无裁决).Fold-or-serial: folded with #38475 (five gates: ① same file
skills/objectstack-ai/SKILL.md, text-only arm,Clause-②: no; ② one worktree, one changeset, same landing tier H and same L2 tier; ③ both ruled (7301309674, 7301316285) and graded; ④ each has its own named criterion — #38538 the documentBy rule stated in the two pages and the skill, #38475 the held-state sentence; ⑤ excluded: #38671 and #38692 phase 1b, held by the knowledge pause). This card (p1) heads the chain; one PR, one commit per card, aFixesline per card.Serial constraints cleared:
check-handover.mjs --inflightNO OVERLAP over the five files. PR #38798 (repo:objectstack#2, #38676) also touchescontent/docs/protocol/knowledge.mdx: ordinary concurrency;overlap-check.mjsbefore each push, and a textual conflict queues this page's edit behind #38798 (Notify: serial).objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
os-dev-report
{ "issue": 38538, "also_covers": [ 38475 ], "status": "done", "branch": "claude/issue-38538-documentby-docs-skill", "pr": "https://github.com/objectstack-ai/objectstack/pull/38855", "session": "session_01WGufzeatqKfTRUzTJVa9jQ", "premise_still_valid": true, "summary": "One draft PR, two commits on origin/claude/issue-38538-documentby-docs-skill, head ac64b997eb. Commit de04044835 (card 38538): content/docs/ai/knowledge-rag.mdx, content/docs/protocol/knowledge.mdx and skills/objectstack-ai/SKILL.md now state that an app cutting its own passages writes them as child records with split strategy whole, that the index stays one record = one document, and that documentBy is the unit a record-level search counts in topK and groups by when no groupBy is sent. Commit ac64b997eb (card 38475): the skill sentence says a shipped item mounts the service and its store and that the service is held (sources listed, never built or searched, search_knowledge not offered, a search or a run-time save answers 503 SERVICE_UNAVAILABLE naming the missing half, os knowledge status prints the state and why, os knowledge rebuild exits 1 with it) until an embedder provider is saved, the deployment's store is mounted and the server restarts; no example added. Premise, part by part: H1 holds (the form row and its test are on main, landed with PR 38564); H2 holds (wording read from heldSourcesText, heldSourceSaveText, heldIndexReading, the rebuild and index_status actions, describeEnablement, the two CLI commands and noKnowledgeServiceRefusal, on main 13a0d3fedf); the tool-description and TSDoc part of scope note 7254212284 is ALREADY TRUE on main (knowledge-tools.ts and the spec contract both say one hit per parent for a documentBy source since PR 38564), so those two files are unchanged. The PR stays draft (Tier H, skills wording); the dev did not mark it ready and requested no reviewer.", "tests": "No behaviour changed: no test added or changed, no ablation owed (docs, skill text, a ratchet row and a changeset). No package source is in the diff, so no build closure, package test or typecheck is owed; test:repo was not run locally (CI's). Searched for pins of the edited text across *.test.ts and scripts/ (the skill path, both page paths, the removed phrases): none. All local readings below are on head ac64b997eb.", "gates": "Local, head ac64b997eb, list = node scripts/pm/dispatch-gates.mjs --commands (93 commands, exit 0), every exit code captured before any pipe, reconciled: 'dispatch-gates --ran: 93 derived famil(ies) accounted for — 92 run, 1 NOT-MEASURED (0 DERIVED from a recorded exit 3, 1 claimed)', exit 0. 92 exit 0, among them check-skills-token-ratchet.mjs ('skills/objectstack-ai/SKILL.md is 7489 tokens (ceiling 7489; headroom 0)') and its --self-test, check:skill-docs, check:skill-examples, check:skill-identifier-liveness, check:skill-links, check:skill-frame-sync, check:skill-compatibility, check:docs, check:doc-anchors, check:doc-authoring, check:docs-single-h1, check:docs-spec-enumerations, check:docs-transcript-drift, check:doc-formula-expressions, check:doc-security-posture, check:nul-bytes, check:pm-skill-id-lint, check:pm-dispatch-gates (2904 cases, 523 s), check-empty-changeset.mjs, check-changeset-no-major.mjs, check-adr-0087-registration.mjs. NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3 PREREQUISITE NOT MET (needs a full pnpm build; whole-tree build is CI's). Five gates first answered exit 3 for a missing build (check:doc-formula-expressions, check:doc-security-posture, check:skill-examples, check:docs-transcript-drift, check:lean-entry-closure) and answered exit 0 after turbo run build of formula, lint, client-react and client under os-verify-lock (VERDICT command-exit 0, held 244 s); spec build under the lock: VERDICT command-exit 0, held 85 s. Outside the derived list: pnpm --filter @objectstack/spec run check:generated exit 0 ('All 14 generated artifacts are up to date', check:skill-docs and check:skill-refs included, so nothing under content/docs/references or any generated file was regenerated); check:skill-served-sections exit 0; overlap-check.mjs before each push: 'VERDICT clean exit 0' against origin/main 13a0d3fedf, PR 38798 (shares content/docs/protocol/knowledge.mdx) and PR 38821 (shares scripts/check-skills-token-ratchet.mjs). CI on the PR head ac64b997eb, read once at report time, not waited for: Governed Surface Queue Guard = success; in_progress = Check Changeset, Check Documentation Links, Check PR Size, the eight 'Lint ·' jobs, PR-body guards, Spec property liveness, the four 'Type Check ·' jobs, filter; skipped (opt-in or schedule) = Dogfood battery (opt-in) and its shard, 18.x upgrade harness (opt-in), Packed-tarball smoke (opt-in), Queue verdict, Borrowed queue verdict, Schedule gate. NOT MEASURED: every in_progress family, reason: CI had not concluded when the report was written.", "line_budget": { "file": "skills/objectstack-ai/SKILL.md", "budget_lines": "+12 max for both cards together", "lines_before": 507, "lines_after": 518, "lines_delta": 11, "bytes_before": 29014, "bytes_after": 29980, "token_ratchet_before": "check-skills-token-ratchet.mjs on 13a0d3fedf: 7247 tokens (ceiling 7247; headroom 0); authored bundle 189821; whole shipped tree 295693", "token_ratchet_after": "check-skills-token-ratchet.mjs on ac64b997eb: 7489 tokens (ceiling 7489; headroom 0); authored bundle 190063; whole shipped tree 295935", "token_delta": 242, "per_commit": "de04044835: 7247 to 7401 (+154, card 38538, +7 lines); ac64b997eb: 7401 to 7489 (+88, card 38475, +4 lines)", "all_skill_md_lines": "14 files: 2769 before, 2780 after", "paid_down_first": [ "the maxChars sentence's 'the longest passage' (the setting named Longest passage is in the same sentence)", "the '(KnowledgeSourceSchema in @objectstack/spec/ai)' aside (the section's example imports that schema from that path)", "the second 'SERVICE_UNAVAILABLE, nothing written' (the held refusal beside it says both)", "'to the stack' and 'the server' of the remedy" ], "raise_path": "standing ruling 「A:先削重复,余额按实测提高」, ruling record 6513306068 letter B, quoted in the PR body; the row is pinned at the measurement" }, "files_changed": [ "content/docs/ai/knowledge-rag.mdx (+32 -3)", "content/docs/protocol/knowledge.mdx (+39 -2)", "skills/objectstack-ai/SKILL.md (+22 -11)", "scripts/check-skills-token-ratchet.mjs (+38 -1) — OUTSIDE the claim's file surface, see deviations", ".changeset/38538-knowledge-document-unit-skill-text.md (+12, new; @objectstack/skills patch)" ], "deviations": [ "FILE SURFACE: scripts/check-skills-token-ratchet.mjs was edited (the skills/objectstack-ai/SKILL.md row, 7247 to 7489, and its two history notes). It is not in the claim's list. The gate reds a row above or below its measurement and main had headroom 0, so any byte change to the skill moves that row in the same PR; the standing ruling the dispatch names (6513306068) is the raise path and every earlier raise of this row sits in that script. I did not stop on this breach: stopping would have delivered a PR that cannot go green. The seat should add the path to the claim, or order the row edit taken out.", "packages/services/service-knowledge/src/knowledge-tools.ts and packages/spec/src/contracts/knowledge-service.ts are unchanged: the text the scope note asks for is already on main. No spec TSDoc edit, so no generated-artifact gate was tripped and nothing was regenerated.", "The guide page gains one six-line source snippet in its new subsection. I read 'No new example' as the skill's constraint (card 38475, third Expected line); the skill gains none. If it was meant for the pages too, the snippet comes out without touching the rule text.", "'Counted' is stated as far as this repository delivers it (topK counts parents). The hosted document-quota half (cloud) is not stated: the cloud repository answered 403 to this session (GitHub access not enabled), so its state is NOT MEASURED.", "The skill does not list the rule id knowledge-source-document-by-not-parent-link (two lines, outside the line budget); the row says any other field is refused. Both pages name the rule.", "test:repo not run locally (CI's Test Core). pnpm check:dual-build-cjs-loads NOT MEASURED locally (needs a full build).", "PR body: line 1 is the attribution HTML comment and the last non-empty line is the signed trailer, both as the dispatch order requires; the footer is the AGENTS.md session-URL form, not the harness reminder's two-line block. Commits end with the model-free trailer pair of AGENTS.md; the harness reminder's Co-Authored-By line carries a model name and was not used.", "A local-only wip commit was amended into de04044835 before the first content push; nothing was force-pushed." ], "mcp_calls": "0", "api_writes": "2 relay strokes, each one POST /repos/objectstack-ai/objectstack/dispatches (fleet-write): (1) pr_create, run 46587794014 success, executed as objectstack-fleet[bot]: POST /repos/objectstack-ai/objectstack/pulls (draft) and POST /repos/objectstack-ai/objectstack/issues/38855/assignees (os-support-ai); read-back 10802 bytes sent, 10802 stored, identical. (2) this os-dev-report comment through post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/38538/comments. git push: 3 (the empty-branch probe, de04044835, ac64b997eb), not REST. No label write, no card assignee write, no reviewer request.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed (prose drift, read only) — the TSDoc of documentBy in packages/spec/src/ai/knowledge-source.zod.ts says a source registered in code or installed with a package 'meets no save, so that rule does not judge it yet'; packages/lint/src/validate-knowledge-source.ts (rule knowledge-source-document-by-not-parent-link) now judges it in os validate and at the publish gate. The .describe string and the generated reference page are accurate. In the PR's Acceptance notes. Dedupe words: documentBy TSDoc, does not judge it yet, document-by-not-parent-link.", "carrier: none · noted, not filed (observation, read only) — skills/objectstack-ai/SKILL.md, Knowledge Sources, names no source.affinity (the order for the asker, landed by PR 38606). Outside both cards. In the PR's Acceptance notes. Dedupe words: affinity, objectstack-ai skill, Skills-docs follow-up, order for the asker.", "carrier: cloud · noted, not filed — whether a hosted plan's document cap counts documentBy parents (the cloud half of topic 38536) could not be read from this session, so the pages do not state it; when it lands, one sentence in content/docs/ai/knowledge-rag.mdx would complete 'counted'." ] }objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
Claim amendment · 2026-12-01T06:10Z · claim 7301395331 (fold with #38475) · file surface
File surface, added:
scripts/check-skills-token-ratchet.mjs(theskills/objectstack-ai/SKILL.mdrow only, 7247 → 7489, and its history notes). Main had headroom 0 on that row, so any byte change to the skill moves the row in the same PR; the raise path is standing ruling 6513306068 (duplicates cut first, the rest raised to the measurement), as the claim already names. The dev made this edit before the amendment and said so (report on #38538); this amendment records it. PR #38855 delivers both cards.objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
os-dev-report
{ "issue": 38538, "also_covers": [ 38475 ], "status": "done", "round": "delta on report 7302512997, after contract review 7302929201 (PASS, one should-fix)", "branch": "claude/issue-38538-documentby-docs-skill", "pr": "https://github.com/objectstack-ai/objectstack/pull/38855", "session": "session_01WGufzeatqKfTRUzTJVa9jQ", "premise_still_valid": true, "head": "ff79a0e739a (was ac64b997eb); one new commit, pushed, no force", "summary": "One commit on the same branch closes the review's S1 and takes its first nit. S1: the source.documentBy row of skills/objectstack-ai/SKILL.md now ends 'Setting it rebuilds nothing; newly listing the field rebuilds the source in place', the guide page's sentence. Nit: the held sentence reads 'A shipped item mounts the knowledge service, which does not enable it' ('and its store' dropped), so it no longer reads against 'until the deployment's store is mounted'. The second nit (a host-mounted service is not held) asked for no change and got none. The ratchet row is re-pinned at the measurement with a dated note in the row's form, and the changeset says the same two things and the new ceiling.", "tests": "Text only, no test owed. Readings below are on head ff79a0e739.", "gates": "Local, head ff79a0e739, each exit code recorded before any pipe: node scripts/check-skills-token-ratchet.mjs exit 0 ('skills/objectstack-ai/SKILL.md is 7499 tokens (ceiling 7499; headroom 0)'); its --self-test exit 0; check:skill-docs exit 0; check:skill-examples exit 0 ('348 prose examples type-check across 3 surface(s)'); check:skill-identifier-liveness exit 0; check:skill-links exit 0; check:skill-refs exit 0; check:nul-bytes exit 0; check-empty-changeset.mjs --base origin/main exit 0. Prerequisite build (spec, client-react, client) under os-verify-lock: VERDICT command-exit 0, a full turbo cache replay. overlap-check.mjs before the push: 'VERDICT clean exit 0' against origin/main 13a0d3fedf and PRs 38857 (shares the skill file), 38821 and 38798. The full derived list of round 1 was not re-run: the dispatch for this round names the skills gates, and the diff of this commit is the skill, its ratchet row and the changeset. CI on ff79a0e739: NOT MEASURED, reason: not read, the report does not wait for it.", "line_budget": { "file": "skills/objectstack-ai/SKILL.md", "lines_before_main": 507, "lines_after": 518, "lines_delta": 11, "budget_lines": "+12 max; this round moves no line", "bytes": "29014 on main, 29980 at ac64b997eb, 30020 at ff79a0e739", "token_ratchet": "7247 on main, 7489 at ac64b997eb, 7499 at ff79a0e739 (ceiling 7499; headroom 0); this round +10", "bundle": "authored 190073 (main 189821); whole shipped tree 295945 (main 295693)", "paid_down_first": "the held sentence's 'and its store' (the same sentence names the deployment's store)", "raise_path": "standing ruling 「A:先削重复,余额按实测提高」, ruling record 6513306068 letter B" }, "files_changed": [ "skills/objectstack-ai/SKILL.md (+2 -2)", "scripts/check-skills-token-ratchet.mjs (+14 -1; the row and one dated note)", ".changeset/38538-knowledge-document-unit-skill-text.md (+3 -3)" ], "deviations": [ "The PR body was written once at pr_create and is now stale in three places, for the seat to bring to the new head (a dev subagent does not patch it): the Skills budget table (bytes 30020, +1006; tokens 7499, +252; authored bundle 190073; whole tree 295945; lines unchanged at 518), the sentence on the ratchet row (a third move, 7489 to 7499, with 'and its store' as the deletion shown), and the head named in Verification (ff79a0e739; the two-minute check now prints 7499).", "PR 38857 is new since round 1 and shares skills/objectstack-ai/SKILL.md; it merges cleanly with this branch. If it changes priced bytes of that file, whichever of the two lands second re-pins the row.", "The worktree of round 1 had been removed after the first report; this round rebuilt it on the existing local branch with git worktree add (dev-worktree.sh refuses an existing local branch), then pnpm install." ], "mcp_calls": "0", "api_writes": "1 this round: this comment through post-stamped.mjs, one POST /repos/objectstack-ai/objectstack/dispatches (relay comment on issue 38538). git push: 1 (ff79a0e739), not REST. No PR body write, no label, no assignee, no reviewer request.", "classifier_refusals": [ { "command": "a compound gate-runner line that began with a recursive delete of a scratchpad log directory named through a shell variable and then ran each gate through bash -c", "reason": "built-in safety check: the command passes a shell -c script that runs rm, and the script could not be checked for dangerous removals", "mode": "subagent", "human_turn_before": "unknown", "resend": "none for the removal; the gates were then run one command at a time with no delete and no bash -c, writing to a new directory, and passed" } ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Dec 1, 2026
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ
Landed · 2026-12-01T08:51Z · zone osa-ai
Fixesboth), approved Tier H by the maintainer: the two knowledge docs pages andskills/objectstack-ai/SKILL.mdteachsource.documentByas the document unit and the held state of a shipped knowledge service. Seat ACCEPT 7303476395; L2 PASS 7302929201 + delta 7303425331; L1 delta ACCEPT 7303442073.documentByTSDoc says a code-registered or package-installed source is not judged by the parent-link rule, but os validate and the publish gate now judge it #38858 (staledocumentByTSDoc), skills: objectstack-ai teaches a knowledge source's affinity key (order hits by the asker's relation to a declared field), which #38503 adds #38610 (source.affinityin the skill).pm:dispatchedand the zone's assignee removed in this stroke.feat(knowledge): a knowledge source declares its document unit (`sour…
docs(knowledge): the docs and the AI skill state the document unit (d…