From ae01b013c76e758a4bd2d37c4dffa9dca54da491 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 03:25:13 +0000 Subject: [PATCH 1/4] docs(skills): objectstack-ai teaches that a markdown section that fits maxChars is one passage The Splitting (`split`) block of skills/objectstack-ai/SKILL.md follows the splitter as landed in f19ee341: under `split.strategy: 'markdown'` a section that fits `maxChars` with its heading path is one passage, and `minChars` merges only the pieces of `recursive` text and of a `markdown` section that does not fit. Three restatements are cut in the same block. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb --- .../38442-skill-markdown-fitting-section.md | 15 +++++++++++++++ skills/objectstack-ai/SKILL.md | 15 ++++++++------- 2 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 .changeset/38442-skill-markdown-fitting-section.md diff --git a/.changeset/38442-skill-markdown-fitting-section.md b/.changeset/38442-skill-markdown-fitting-section.md new file mode 100644 index 00000000000..cfcf0574479 --- /dev/null +++ b/.changeset/38442-skill-markdown-fitting-section.md @@ -0,0 +1,15 @@ +--- +'@objectstack/skills': patch +--- + +docs(skills): `objectstack-ai` teaches that a `markdown` section that fits `maxChars` is one passage + +Clause-②: no +Metadata-protocol: none + +`skills/objectstack-ai` § Knowledge Sources (RAG), the **Splitting (`split`)** block now follows the splitter: + +- The `markdown` bullet says that a section that fits `maxChars` together with its heading path is one passage, and that a section that does not fit is cut as `recursive` cuts. +- The `minChars` sentence says that pieces shorter than `minChars` are merged in `recursive` text and in a `markdown` section that does not fit, and that a section that fits stays whole whatever `minChars` is. An author no longer sets `minChars` equal to `maxChars` to keep a short clause, or a table with its note, in one passage. + +Cut in the same block, with no fact dropped: "For documents with headings" (the bullet's "one section per heading" says it), "once `split` is written" (the signature and the omitted-`split` clause say it) and "never truncated" (the `whole` bullet's "removed from the index and reported" says it). diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index a18f07ce0e9..464e86a3b1a 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -324,22 +324,23 @@ export const supportKb: KnowledgeSource = KnowledgeSourceSchema.parse({ **Splitting (`split`).** The knowledge service cuts each document into passages for a store declaring `capabilities.chunks`; any other store receives whole -documents. `split: { strategy, maxChars?, minChars? }` — `strategy` is required -once `split` is written; an omitted `split` means `recursive`: +documents. `split: { strategy, maxChars?, minChars? }` — `strategy` is +required; an omitted `split` means `recursive`: - `recursive`: cuts at blank lines, then line breaks, then sentence ends. For prose. - `markdown`: one section per heading, each passage embedded with its heading - path. For documents with headings. + path. A section that fits `maxChars` with that path is one passage; one that + does not is cut as `recursive` cuts. - `whole`: one passage per document. For short records only: a document over - the embedder's input budget is removed from the index and reported, never - truncated. + the embedder's input budget is removed from the index and reported. `maxChars`, the longest passage in characters (`whole` ignores it), overrides the **Target chunk size** setting (`knowledge.chunk_target`, else 800); the embedder's input limit can lower it. Adjacent pieces shorter than `minChars` -(default 200) are merged. Changing `split` re-splits a document only when it -next changes. +(default 200) are merged in `recursive` text and in a `markdown` section that +does not fit; a section that fits stays whole whatever `minChars` is. Changing +`split` re-splits a document only when it next changes. Retired and refused: the `knowledge.chunk_overlap` setting (`400 UNKNOWN_KEY`; passages never overlap) and `KnowledgeChunk.metadata` (parse error; a passage From 572e912643e2dd9c4e55753f2d1336580e02de2b Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 03:28:05 +0000 Subject: [PATCH 2/4] docs(skills): the Splitting block names the chunk_target setting "Longest passage" The settings label of `knowledge.chunk_target` is renamed to "Longest passage" by a sibling change; the skill's Splitting block names the setting by that label. This line is true once that change is on main. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb --- .changeset/38442-skill-markdown-fitting-section.md | 2 ++ skills/objectstack-ai/SKILL.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.changeset/38442-skill-markdown-fitting-section.md b/.changeset/38442-skill-markdown-fitting-section.md index cfcf0574479..1bddf8aac70 100644 --- a/.changeset/38442-skill-markdown-fitting-section.md +++ b/.changeset/38442-skill-markdown-fitting-section.md @@ -13,3 +13,5 @@ Metadata-protocol: none - The `minChars` sentence says that pieces shorter than `minChars` are merged in `recursive` text and in a `markdown` section that does not fit, and that a section that fits stays whole whatever `minChars` is. An author no longer sets `minChars` equal to `maxChars` to keep a short clause, or a table with its note, in one passage. Cut in the same block, with no fact dropped: "For documents with headings" (the bullet's "one section per heading" says it), "once `split` is written" (the signature and the omitted-`split` clause say it) and "never truncated" (the `whole` bullet's "removed from the index and reported" says it). + +The same block names the `knowledge.chunk_target` setting by its settings-page label "Longest passage", the label that setting takes in this release. diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index 464e86a3b1a..e2f326430e0 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -336,7 +336,7 @@ required; an omitted `split` means `recursive`: the embedder's input budget is removed from the index and reported. `maxChars`, the longest passage in characters (`whole` ignores it), overrides -the **Target chunk size** setting (`knowledge.chunk_target`, else 800); the +the **Longest passage** setting (`knowledge.chunk_target`, else 800); the embedder's input limit can lower it. Adjacent pieces shorter than `minChars` (default 200) are merged in `recursive` text and in a `markdown` section that does not fit; a section that fits stays whole whatever `minChars` is. Changing From 924f8304340f5cef590236db095d35a6a2c36b47 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 03:37:53 +0000 Subject: [PATCH 3/4] chore(skills): move the objectstack-ai SKILL.md token row to its measurement (7200 -> 7240) Backup of the row move the Splitting-block wording owes under the standing skills ratchet path (cut restatement first, raise by the measured remainder). Held on a no-PR branch: the row file is outside the claim's file surface. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb --- scripts/check-skills-token-ratchet.mjs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/check-skills-token-ratchet.mjs b/scripts/check-skills-token-ratchet.mjs index 20083a325da..f706bd8f12e 100644 --- a/scripts/check-skills-token-ratchet.mjs +++ b/scripts/check-skills-token-ratchet.mjs @@ -544,7 +544,23 @@ export const CEILINGS = new Map([ // 28800 -> ceil(28800 / 4) = 7200; the row moves +52, the measured remainder // only. Pinned AT the measurement. // ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(28800 / 4) - ['skills/objectstack-ai/SKILL.md', 7200], + // 7200 -> 7240 (2026-11-29, the fitting `markdown` section): the Splitting + // block taught "one section per heading" and a `minChars` merge for every + // strategy; under `markdown` a section that fits `maxChars` with its heading + // path is one passage, and `minChars` merges only in `recursive` text and in + // a section that does not fit. Raise path the standing ruling + // 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). PAID DOWN + // FIRST, in the same block: "For documents with headings" (the bullet's "one + // section per heading" says it), "once `split` is written" (the signature + // and the omitted-`split` clause say it), "never truncated" (the `whole` + // bullet's "removed from the index and reported" says it); the settings label + // also became "Longest passage". Arithmetic in priced bytes (stamp line + // excluded), against `main`'s 28800 (the row's 7200, headroom 0): the file is + // 28827 -> 28985 bytes, so the LANDED priced text is 28958 -> + // ceil(28958 / 4) = 7240; the row moves +40, the measured remainder only. + // Pinned AT the measurement. + // ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(28958 / 4) + ['skills/objectstack-ai/SKILL.md', 7240], // -12 (was 6331): the `http.server` decision-table row dropped a trailing // clause that taught `contributes.routes` as a key that "parses but serves // nothing". The key is retired — an authored entry is now REFUSED, carrying From 3fbae9642c5e75d541f1eb8d6336f7d955e733fa Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 04:13:41 +0000 Subject: [PATCH 4/4] docs(skills): the Splitting block says a changed split rebuilds the source's index The block's last sentence said a changed `split` re-splits a document only when it next changes. The resolved split is part of the index fingerprint, so a changed `split` rebuilds the source's whole index and its searches are refused until the rebuild finishes; the sentence now says that. One more restatement is cut ("and refused"), and the token row moves to its measurement, 7248. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb --- .../38442-skill-markdown-fitting-section.md | 3 ++- scripts/check-skills-token-ratchet.mjs | 24 +++++++++++-------- skills/objectstack-ai/SKILL.md | 5 ++-- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.changeset/38442-skill-markdown-fitting-section.md b/.changeset/38442-skill-markdown-fitting-section.md index 1bddf8aac70..79871ef0207 100644 --- a/.changeset/38442-skill-markdown-fitting-section.md +++ b/.changeset/38442-skill-markdown-fitting-section.md @@ -11,7 +11,8 @@ Metadata-protocol: none - The `markdown` bullet says that a section that fits `maxChars` together with its heading path is one passage, and that a section that does not fit is cut as `recursive` cuts. - The `minChars` sentence says that pieces shorter than `minChars` are merged in `recursive` text and in a `markdown` section that does not fit, and that a section that fits stays whole whatever `minChars` is. An author no longer sets `minChars` equal to `maxChars` to keep a short clause, or a table with its note, in one passage. +- The block's last sentence said that a changed `split` re-splits a document only when it next changes. That was wrong. It now says that changing `split` rebuilds the source's whole index, and that the source's searches are refused until the rebuild finishes. -Cut in the same block, with no fact dropped: "For documents with headings" (the bullet's "one section per heading" says it), "once `split` is written" (the signature and the omitted-`split` clause say it) and "never truncated" (the `whole` bullet's "removed from the index and reported" says it). +Cut in the same block, with no fact dropped: "For documents with headings" (the bullet's "one section per heading" says it), "once `split` is written" (the signature and the omitted-`split` clause say it) "never truncated" (the `whole` bullet's "removed from the index and reported" says it) and the "and refused" of "Retired and refused" (the `400 UNKNOWN_KEY` and the parse error beside it say it). The same block names the `knowledge.chunk_target` setting by its settings-page label "Longest passage", the label that setting takes in this release. diff --git a/scripts/check-skills-token-ratchet.mjs b/scripts/check-skills-token-ratchet.mjs index f706bd8f12e..f8fc615a6b6 100644 --- a/scripts/check-skills-token-ratchet.mjs +++ b/scripts/check-skills-token-ratchet.mjs @@ -544,23 +544,27 @@ export const CEILINGS = new Map([ // 28800 -> ceil(28800 / 4) = 7200; the row moves +52, the measured remainder // only. Pinned AT the measurement. // ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(28800 / 4) - // 7200 -> 7240 (2026-11-29, the fitting `markdown` section): the Splitting + // 7200 -> 7248 (2026-11-29, the fitting `markdown` section): the Splitting // block taught "one section per heading" and a `minChars` merge for every // strategy; under `markdown` a section that fits `maxChars` with its heading // path is one passage, and `minChars` merges only in `recursive` text and in - // a section that does not fit. Raise path the standing ruling + // a section that does not fit. Its last sentence said a changed `split` + // re-splits a document only when it next changes; a changed `split` rebuilds + // the source's whole index and its searches are refused until the rebuild + // finishes, and the block now says so. Raise path the standing ruling // 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). PAID DOWN // FIRST, in the same block: "For documents with headings" (the bullet's "one // section per heading" says it), "once `split` is written" (the signature // and the omitted-`split` clause say it), "never truncated" (the `whole` - // bullet's "removed from the index and reported" says it); the settings label - // also became "Longest passage". Arithmetic in priced bytes (stamp line - // excluded), against `main`'s 28800 (the row's 7200, headroom 0): the file is - // 28827 -> 28985 bytes, so the LANDED priced text is 28958 -> - // ceil(28958 / 4) = 7240; the row moves +40, the measured remainder only. - // Pinned AT the measurement. - // ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(28958 / 4) - ['skills/objectstack-ai/SKILL.md', 7240], + // bullet's "removed from the index and reported" says it), and the "and + // refused" of "Retired and refused" (its `400 UNKNOWN_KEY` and "parse error" + // say it); the settings label also became "Longest passage". Arithmetic in + // priced bytes (stamp line excluded), against `main`'s 28800 (the row's + // 7200, headroom 0): the file is 28827 -> 29017 bytes, so the LANDED priced + // text is 28990 -> ceil(28990 / 4) = 7248; the row moves +48, the measured + // remainder only. Pinned AT the measurement. + // ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(28990 / 4) + ['skills/objectstack-ai/SKILL.md', 7248], // -12 (was 6331): the `http.server` decision-table row dropped a trailing // clause that taught `contributes.routes` as a key that "parses but serves // nothing". The key is retired — an authored entry is now REFUSED, carrying diff --git a/skills/objectstack-ai/SKILL.md b/skills/objectstack-ai/SKILL.md index e2f326430e0..9ea69808248 100644 --- a/skills/objectstack-ai/SKILL.md +++ b/skills/objectstack-ai/SKILL.md @@ -340,9 +340,10 @@ the **Longest passage** setting (`knowledge.chunk_target`, else 800); the embedder's input limit can lower it. Adjacent pieces shorter than `minChars` (default 200) are merged in `recursive` text and in a `markdown` section that does not fit; a section that fits stays whole whatever `minChars` is. Changing -`split` re-splits a document only when it next changes. +`split` rebuilds the source's whole index, and its searches are refused until +the rebuild finishes. -Retired and refused: the `knowledge.chunk_overlap` setting (`400 UNKNOWN_KEY`; +Retired: the `knowledge.chunk_overlap` setting (`400 UNKNOWN_KEY`; passages never overlap) and `KnowledgeChunk.metadata` (parse error; a passage takes its document's `metadata`).