Skip to content

docs(skills): objectstack-ai teaches that a markdown section that fits maxChars is one passage - #38466

Draft
objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/issue-38442-skill-markdown-fitting-section
Draft

objectstack-fleet[bot] wants to merge 4 commits into
mainfrom
claude/issue-38442-skill-markdown-fitting-section

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread
Fixes #38442
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用 AI 助手搭知识库的作者,会从技能说明里读到“按标题切分时,放得下的小节整节一段”,不再被引导去把合并阈值手动调到和长度上限一样;平台行为本身不变。
  • 为什么做:知识切分专题的收尾,把对外发布的技能说明对齐已经上线的切分行为,也就是您对“放得下的小节整节一段做成默认”的那次裁决。
  • 出错会怎样:只改说明文字;写错的话 AI 作者会按错误理解配置知识源,撤回本次改动即可恢复原文。
  • 要你做的:等“知识设置项标签改名为最长段落”的那个姊妹合并请求合入之后,再合入本改动。

What changes

skills/objectstack-ai/SKILL.md, the Splitting (split) block only. The words follow the splitter as merged in f19ee34 (the split docblock in packages/spec/src/ai/knowledge-source.zod.ts and content/docs/protocol/knowledge.mdx §3.5), ruling A on #38351 (record 7247322956).

  • markdown bullet. Adds: "A section that fits maxChars with that path is one passage; one that does not is cut as recursive cuts."
  • minChars sentence. Was "Adjacent pieces shorter than minChars (default 200) are merged." Now: "… are merged in recursive text and in a markdown section that does not fit; a section that fits stays whole whatever minChars is." No step that sets minChars equal to maxChars is taught (item 6 of the ruling). No new example.
  • Split-change sentence (should-fix S1 of contract review 7250515767). Was "Changing split re-splits a document only when it next changes.", which is false: the resolved split is part of the index fingerprint (content/docs/protocol/knowledge.mdx §3.5, "A split change is a new index"). Now: "Changing split rebuilds the source's whole index, and its searches are refused until the rebuild finishes."
  • Settings label (added by the area during the round). "the Target chunk size setting" is now "the Longest passage setting", the label the sibling card service-knowledge: no split that keeps one passage per article; short articles are merged and tables lose the note after them #38290 gives knowledge.chunk_target. ⚠ That line is true only once PR docs(knowledge): one passage per unit recipe, and the settings page names chunk_target the longest passage #38468 (the PR of service-knowledge: no split that keeps one passage per article; short articles are merged and tables lose the note after them #38290; it renames the label to "Longest passage (characters)") is on main: this PR lands after PR docs(knowledge): one passage per unit recipe, and the settings page names chunk_target the longest passage #38468. On main today the label still reads "Target chunk size".
  • Restatements cut in the same block, 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); the "and refused" of "Retired and refused" (the 400 UNKNOWN_KEY and the parse error beside it say it).
  • Ratchet row. scripts/check-skills-token-ratchet.mjs, the skills/objectstack-ai/SKILL.md row only: 7200 to 7248, pinned at the measurement, with the arithmetic in the row's comment (commits 924f830 and 3fbae96).
  • Changeset: .changeset/38442-skill-markdown-fitting-section.md, @objectstack/skills patch. skills/** ships as @objectstack/skills (its build copies the tree into dist/), so the diff publishes and takes no skip-changeset.

Size readings (lines, bytes, ratchet tokens)

before (f459c86) after (3fbae96) delta
skills/objectstack-ai/SKILL.md 505 lines, 28827 bytes, 7200 tokens 507 lines, 29017 bytes, 7248 tokens +2 lines, +190 bytes, +48 tokens
all skills/*/SKILL.md 4386 lines, 228099 bytes 4388 lines, 228289 bytes +2 lines, +190 bytes
ratcheted (authored) bundle 200891 tokens 200939 tokens +48 tokens

Tokens are the ratchet's own count, ceil((bytes - 27 stamp-line bytes) / 4).

The token ratchet: restatement cut first, the row raised by the measured remainder

Headroom on main was 0 (7200 of 7200). The four cuts above pay 79 bytes; the new teaching costs 269; the remainder is +190 bytes, +48 tokens. The row moves 7200 to 7248 under the standing ruling 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B), by the measured remainder only. Arithmetic in priced bytes (the 27-byte stamp line excluded): 28800 on main, 28990 here, ceil(28990 / 4) = 7248.

File surface: the claim named the skill file only. The row and the changeset were added by the seat's widening record 7250198232 on the card.

Tests

Prose and one ratchet row: no behaviour changes, so no test and no ablation. Local gates on head 3fbae96, the 67 commands dispatch-gates.mjs --commands derives, each exit code read before any pipe:

  • 62 exit 0, among them check-skills-token-ratchet.mjs ("skills/objectstack-ai/SKILL.md 7248 / 7248 (+0)", "ratcheted (authored) 200939 / 200939 (+0)") and its --self-test ("111 cases pass"), check:ratchet-remedy-authority, check:pm-dispatch-gates, check-self-test-wired.mjs, @objectstack/spec check:skill-docs, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:pm-skill-id-lint, check:doc-authoring, check:nul-bytes, check:published-files, check-empty-changeset.mjs, check-changeset-no-major.mjs, check-adr-0087-registration.mjs.
  • 5 exit 3, NOT MEASURED (each needs a whole-workspace build this diff does not owe locally; CI measures them): @objectstack/lint check:doc-formula-expressions, check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content.
  • dispatch-gates.mjs --ran: 67 derived, 67 run, 0 unrun.
  • The ratchet script's own suite is its --self-test (above). The one test file that names the script, packages/spec/scripts/platform-catalog.test.ts, names it in a comment and does not exercise it; not run.

Acceptance notes

  • Card item 1 (the markdown bullet): done. Item 2 (the minChars sentence): done. Item 3 (no new example; duplicates cut first): done: the cuts come first and the measured remainder raises the row (section above).
  • "fits maxChars" is the card's wording. The block's next paragraph already says the embedder's input limit can lower maxChars, which is the token budget of the spec text; nothing the spec and the protocol page do not say is taught.
  • History note: commit 924f830 was first held on a no-PR backup branch and its message still says so; it was fast-forwarded onto this branch after record 7250198232. The backup branch claude/issue-38442-skill-markdown-fitting-section-wip could not be deleted from the dev container (403) and waits for a hand with delete rights.
  • The block's last sentence was outside the card's three items; it is corrected here on the contract review's S1 (record 7250515767), being in the claimed block. Its nit N1 (the heading-path prefix may be the innermost heading only) is accepted as written, no change.

Verification

  • Read first: skills/objectstack-ai/SKILL.md lines 325-346 (the whole diff of the skill), beside content/docs/protocol/knowledge.mdx §3.5, the markdown row. Riskiest hunks: the minChars sentence and the split-change sentence after it (beside §3.5, "A split change is a new index").
  • Two-minute check: node scripts/check-skills-token-ratchet.mjs exits 0 and prints "skills/objectstack-ai/SKILL.md 7248 / 7248 (+0)".

🤖 Generated with Claude Code

…s maxChars is one passage

The Splitting (`split`) block of skills/objectstack-ai/SKILL.md follows the
splitter as landed in f19ee34: 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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…gest 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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
…urement (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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 29, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Contract-review-claim: session_01FEkQ5oQLfL8thb6wtUHnTb · head 924f830 · 2026-11-29T04:05Z

Face: governed rules text (skills/**), so CONTRACT_REVIEW_TIER, run by an isolated fable subagent of the area, independent of the implementing dev.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Final green head for L1: 924f830. CI on this head: 31 success and 18 expected skips, none failed; mergeable clean. 3 files: the skill's Splitting block, the token-ratchet row 7200 → 7240 (widening record 7250198232, standing ruling 6513306068), and a patch changeset on @objectstack/skills. Dev report: card #38442 comment 7250422586. A contract review at CONTRACT_REVIEW_TIER is running on this head (claim 7250446586). Landing order: after PR #38468 (#38290), which renames the settings label the skill now names. Tier H (skills/**): after L1 ACCEPT and a same-head PASS, the area hands it to the seat. L1 requested from thread L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, area o5-ai37000) · read 2026-11-29T04:11Z · Head-sha: 924f8304340f5cef590236db095d35a6a2c36b47 · verdict ACCEPT

This is the first L1 record on this PR, a full review.

Checklist (l1-face --pr 38466 at 924f830: CLEAN, 13 items)

  • Shape: open, draft, base main. Fixes #38442 is right, because the card's three Expected items are each in the diff.
  • Scope: 3 files. They are the Splitting (split) block of skills/objectstack-ai/SKILL.md, one row of check-skills-token-ratchet.mjs, and an @objectstack/skills patch changeset. The row and the changeset are covered by the widening record 7250198232. Clause-②: no · Metadata-protocol: none. skills/**, so Tier H.
  • Gates: 31 success, 18 expected skip, 0 failed, 0 pending; mergeable_state clean.

My readings

  • The teaching against main. feat(service-knowledge): under the markdown split, a section that fits is one passage #38439 is on main as f19ee34.
    • The markdown bullet ("fits maxChars with that path is one passage; one that does not is cut as recursive cuts") agrees with knowledge-source.zod.ts:98–100 and with the markdown row of protocol/knowledge.mdx (:576).
    • The minChars sentence ("merged in recursive text and in a markdown section that does not fit; a section that fits stays whole whatever minChars is") agrees with the spec describe (:123) and with :591–593.
    • No step teaches minChars equal to maxChars, and no example is added.
  • The three cuts drop no fact.
    • "For documents with headings" is covered by "one section per heading".
    • "once split is written" is covered by the signature and the omitted-split clause.
    • "never truncated" is implied by "removed from the index and reported": a removed document is not indexed in any form.
  • The settings label. docs(knowledge): one passage per unit recipe, and the settings page names chunk_target the longest passage #38468 (open) sets chunk_target's label to "Longest passage (characters)" in the manifest and all 11 locales. It does not touch this skill file, so the two do not overlap. The skill's "Longest passage" and the changeset's "the label that setting takes in this release" are true only once docs(knowledge): one passage per unit recipe, and the settings page names chunk_target the longest passage #38468 is on main. The body states the order.
  • Ratchet. The file is 28985 B at head. ceil((28985 − 27) / 4) = 7240, so the row is pinned at the measurement. The raise is the remainder after the cuts, under 6513306068 B, and the arithmetic is in the row comment.
  • The changeset, read sentence by sentence: each claim matches the diff.

Accepted (no action): the stray backup branch claude/issue-38442-skill-markdown-fitting-section-wip is housekeeping with no shipped effect. Its commit is already on this branch.

Owed before landing: #38468 lands first, and the contract review on this head (running) comes back. Then the seat lands it (Tier H).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 924f8304340f5cef590236db095d35a6a2c36b47
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no

PR #38466 (card #38442), three files: skills/objectstack-ai/SKILL.md (+9 −8), scripts/check-skills-token-ratchet.mjs (+17 −1), .changeset/38442-skill-markdown-fitting-section.md (new). Base f459c863; main read at 16f132fb, which has not moved either reviewed file since the base. Read for judgment, not reviewed: packages/services/service-knowledge/src/split/splitter.ts, knowledge-service.ts and knowledge-index-fingerprint.ts of the same package, packages/spec/src/ai/knowledge-source.zod.ts, content/docs/protocol/knowledge.mdx §3.5 and §3.6, content/docs/ai/knowledge-rag.mdx, ruling 7247322956, standing ruling 6513306068, and the diff of PR #38468 at its head 340bb349.

Check-runs on the head: 49 runs, every one success or skipped, none failed and none pending at the time of writing (a second Check Changeset run, started 04:05Z, has completed green). Lint & Repo Gates, Lint · repo & tooling gates, Lint · scoped · tooling self-tests, Lint · docs & code guards, Check Changeset and Governed Surface Queue Guard are among the green ones.

① Derived judgments

  • Accept set: no change. No schema, validator or parser is in the diff. Right.
  • Published surface: the text of @objectstack/skills, the Splitting (split) block of one skill. The behaviour it now describes landed in f19ee34 (PR feat(service-knowledge): under the markdown split, a section that fits is one passage #38439), which carried Metadata-protocol: semantic; this PR is that change's owed Skills-docs: follow-up, so Metadata-protocol: none here is right.
  • Ratchet ceiling: the skills/objectstack-ai/SKILL.md row moves 7200 to 7240, the bundle 200891 to 200931. Right on this head: the file is 28827 bytes on main and 28985 on the head, the 27-byte stamp line is not priced, ceil(28958 / 4) = 7240, headroom 0, so the row is pinned at the measurement. The raise takes the gate-recognised path of standing ruling 6513306068: restatement deleted in the same file, the ruling quoted in the PR body, the row moved by the measured remainder only. The row has to be measured again once S1 is fixed.
  • Net lines of the skill file: +1 (505 to 506), inside the claim's budget of +2.

② Semver level

'@objectstack/skills': patch matches what the diff publishes: wording of a shipped skill, no key, no behaviour. It is the level the 84 earlier skill-wording changesets on main take. Clause-②: no is right: nothing is narrowed and no accept set moves. One sentence of the changeset, "the label that setting takes in this release", is true only when PR #38468 ships in the same release (see ③).

③ Boundary flags

④ Design judgment

skills/objectstack-ai/SKILL.md — every sentence of the changed block, against the splitter on main.

Holds:

  • L327-328, "strategy is required; an omitted split means recursive". KnowledgeSplitSchema.strategy is not optional (knowledge-source.zod.ts L112), and resolveSplit falls back to recursive (splitter.ts L138). Cutting "once split is written" drops no fact.
  • L332-334, the markdown bullet. withPrefix (splitter.ts L660-671) returns one passage when the heading prefix and the trimmed text together pass fits, and otherwise calls splitRecursive on the text, with every piece given the same prefix. This is the spec docblock's sentence (L96-102) and the §3.5 table row. "Fits maxChars" leaves the token budget to the next paragraph's "the embedder's input limit can lower it", which is how the spec docblock words it too ("the effective maxChars").
  • L335-336, the whole bullet. A whole document over the budget answers a failure, and the service removes it and reports it (splitter.ts L12-14, L169-185). "Removed from the index and reported" already excludes a truncated copy, so cutting "never truncated" drops no fact.
  • L340-342, the minChars sentence. mergeShort (splitter.ts L265-301) merges under recursive; under markdown it is reached only through splitRecursive for a section that did not fit; a fitting section returns before any merge and is never joined to its neighbour. The default is 200 (DEFAULT_SPLIT_MIN_CHARS). This matches the minChars docblock (L120-127). The block teaches no step that sets minChars equal to maxChars, as item 6 of ruling 7247322956 requires, and adds no example.
  • Card eval 9 (evals/skills-tools-knowledge.json, a Markdown handbook with headings, 600 characters at most): the block still leads to split: { strategy: 'markdown', maxChars: 600 }. The cut "For documents with headings" does not change that, because "one section per heading" names the same use.
  • L339, the label: see ③.

S1 (should-fix) — skills/objectstack-ai/SKILL.md:342-343, "Changing split re-splits a document only when it next changes." The sentence is false on main, and the diff writes it again on its added lines. The resolved split, minChars included, is hashed into the index fingerprint (knowledge-index-fingerprint.ts L17-18, L95-103). A source whose stored index carries another fingerprint reads new-fingerprint, due a build, "it is built anew" (knowledge-service.ts L1277-1283), and the next boot, source reload or reconcile starts that build (L2070-2073). Until it completes, writes and searches of the source are refused KNOWLEDGE_REBUILD_REQUIRED. The protocol page says so in the section this PR cites as its source: "A split change is a new index … the source's stored index is refused until a complete reindex rebuilds it" (knowledge.mdx L607-612; also knowledge-rag.mdx L299-301). The reading that breaks: the block now tells an author that minChars = maxChars is not needed under markdown. An author who removes it from a live source reads here that existing documents keep their passages until each one changes. What happens is a complete rebuild of the source: every document is embedded again, which the provider bills, and the source's searches are refused while the build runs. The sentence predates this PR, and the PR body says it was left alone as not in the card. But it is in the block the changeset says "now follows the splitter", it is inside the claimed file surface (the Splitting block), the dev flagged it as unchecked, and no card carries it (issue search for the sentence finds #38442 alone). Fix: replace the sentence with what §3.5 says, in one sentence, for example "Changing split makes the source's index a new one: it is refused until a complete rebuild, which the next boot or reconcile starts." Check the final words against knowledge.mdx L607-612, then measure the ratchet row again and update its comment's arithmetic.

N1 (nit) — skills/objectstack-ai/SKILL.md:333-334, "fits maxChars with that path … one that does not is cut". When the whole path would take more than half of the bounds, the splitter gives the passage its innermost heading only, or no prefix, and judges the fit with that (splitter.ts L660-669). The spec says this in a parenthesis; the skill leaves it out. The first half stays true in every case. The second half is off only for a path longer than half of maxChars. Accepted as written: the words would cost more tokens than the case is worth.

scripts/check-skills-token-ratchet.mjs (the gate row that enforces the skill's ceiling) — the row and its comment agree with the tree on this head: the two byte counts, the priced count 28958, ceil(28958 / 4) = 7240, the three cuts it names, the ruling it quotes and the audit line. The comment's "the settings label also became "Longest passage"" carries the same landing condition as SKILL.md:339. After the S1 fix the measurement changes, so the row and the arithmetic in its comment change with it; lowering is always allowed.

Open on this head: S1. The delta review reads the S1 fix and the measured row, nothing else.

Implemented-by: claude/issue-38442-skill-markdown-fitting-section
Reviewed-by: session_01FEkQ5oQLfL8thb6wtUHnTb

VERDICT: FAIL

…ource'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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Contract-review-claim: session_01FEkQ5oQLfL8thb6wtUHnTb · head 3fbae96 · 2026-11-29T04:33Z

Face: delta on the round-1 FAIL (7250515767), governed rules text (skills/**), so CONTRACT_REVIEW_TIER, run by an isolated fable subagent of the area, independent of the implementing dev.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Contract review (delta)

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 3fbae9642c5e75d541f1eb8d6336f7d955e733fa
Local-runs: none
Scope: skills/objectstack-ai/SKILL.md + scripts/check-skills-token-ratchet.mjs
Security-touching: no
Prior-record: 7250515767

Delta on the round-1 FAIL (record 7250515767, head 924f8304). The fix is one commit, 924f8304..3fbae964, on three files: skills/objectstack-ai/SKILL.md (+3 −2), scripts/check-skills-token-ratchet.mjs (+14 −10) and the changeset (+2 −1). The PR's net diff against main is skills/objectstack-ai/SKILL.md (+11 −9), scripts/check-skills-token-ratchet.mjs (+21 −1) and the new changeset (+18). Base f459c863; main read at 24d808dc. Since the base, main moved scripts/check-skills-token-ratchet.mjs (other rows; the skills/objectstack-ai/SKILL.md row is still 7200 there) and knowledge-service.ts; it did not move the skill file (28827 bytes on both). The head merges onto main without conflict. Read for judgment, not reviewed, all on main: content/docs/protocol/knowledge.mdx §3.5 and §3.6, content/docs/ai/knowledge-rag.mdx ("When the model or the split changes: rebuild"), and knowledge-index-fingerprint.ts, knowledge-service.ts and split/splitter.ts of packages/services/service-knowledge/src. Round 1's reading stands for everything this commit does not touch.

Check-runs on the head: 49 runs; 31 success, 18 skipped, none failed and none pending. Check Changeset ran twice on this head (141224416006 and 141228950029, the second started after the delta review was claimed), and both are success. Lint & Repo Gates, Lint · repo & tooling gates (it runs the token ratchet), Lint · scoped · tooling self-tests, Lint · docs & code guards and Governed Surface Queue Guard are among the green ones.

① Derived judgments

  • Accept set: no change, as in round 1. The commit adds no schema, validator or parser.
  • Published surface: one sentence of the Splitting (split) block of @objectstack/skills is rewritten, and two words are cut from the line below it. Metadata-protocol: none stays right.
  • Ratchet ceiling: the skills/objectstack-ai/SKILL.md row moves 7240 to 7248 in this commit, 7200 to 7248 against main. Right, and it is the measurement: the file is 29017 bytes on the head, its stamp line (the first indented version: line) is 27 bytes, so the priced text is 28990 bytes and ceil(28990 / 4) = 7248. Headroom is 0, so the row is pinned at the measurement. main is 28827 bytes, priced 28800, 7200, so the row moves +48. The raise is on the path of standing ruling 6513306068 and inside widening record 7250198232, which adds this row "as measured": a fourth cut was made first (the "and refused" below), and the row carries the measured remainder only.
  • Net lines of the skill file: +2 (505 to 507). That is the claim's budget of +2, with nothing left.

② Semver level

'@objectstack/skills': patch still matches what the diff publishes: wording of a shipped skill, no key and no behaviour. Clause-②: no is right: nothing is narrowed. The bullet added this round is true of the diff. It says the old sentence was wrong, and gives the new one in the skill's own words: a changed split rebuilds the source's whole index, and the source's searches are refused until the rebuild finishes. The cut list now names the fourth cut. The sentence "the label that setting takes in this release" carries the landing condition of round 1 ③, which is unchanged: PR #38468 is still open and unmerged, and the label on main is still Target chunk size (chars).

③ Boundary flags

  • The round-3 dev report (card comment 7250701882) has no open question.
  • Dev deviation, "the changeset gained one bullet … and names the fourth cut": read in ②; agreed.
  • Dev deviation, "net lines of the skill file reached the +2 budget": confirmed in ①. A further added line would breach the claim.
  • Dev deviations, the backup branch that could not be deleted and the PR body revised but not sent by the dev: neither changes the tree. The PR body on GitHub now names this head and S1.
  • Dev flag, the "Longest passage" line: unchanged from round 1 ③. This PR lands after PR docs(knowledge): one passage per unit recipe, and the settings page names chunk_target the longest passage #38468, and the seat holds the order. If this PR lands first, or the label changes in that PR's review, this record does not cover SKILL.md:339 or the changeset's last sentence.
  • The round-1 dev flag on the split-change sentence is closed by S1 below.
  • SQL push-down: not applicable. The commit adds no query, no id materialisation and no join.
  • Security: no changed hunk teaches permission, sharing, credential, token or authentication behaviour. "Its searches are refused" is an index-state refusal (KNOWLEDGE_REBUILD_REQUIRED), not an access rule; the "tokens" of the ratchet comment are the gate's size unit.

④ Design judgment

skills/objectstack-ai/SKILL.md

S1: closed. SKILL.md:342-344 now reads "Changing split rebuilds the source's whole index, and its searches are refused until the rebuild finishes." Both halves are true of main:

  • "Rebuilds the source's whole index". The resolved split (strategy, maxChars, minChars, the token budget) is hashed into the index fingerprint (knowledge-index-fingerprint.ts L95-103). A source whose stored index carries another fingerprint reads new-fingerprint, due a build, "it is built anew" (knowledge-service.ts L1278-1283). The boot pass, a source reload and the reconcile each read that state and start the build, "so a split or embedder setting saved while the server runs is picked up by the next reconcile" (L2069-2074). The build is a complete reindex: it writes every document (knowledge.mdx L607-612, "A split change is a new index … until a complete reindex rebuilds it").
  • "Its searches are refused until the rebuild finishes". A search carries the fingerprint the service expects now. One that carries a fingerprint other than the stored index's is refused KNOWLEDGE_REBUILD_REQUIRED (409) (knowledge.mdx L636-638). A store that keeps generations fills the new one beside the old and switches only at completeBuild; until then "search during the build is refused, never answered from the old index" (knowledge-rag.mdx L308).

The reading that broke in round 1 no longer breaks. An author who takes minChars = maxChars off a live markdown source now reads that the whole source is rebuilt and is not searchable meanwhile, which is what happens.

"Retired and refused:" is now "Retired:" (SKILL.md:346). No fact is dropped: the same sentence still gives 400 UNKNOWN_KEY for the knowledge.chunk_overlap setting and "parse error" for KnowledgeChunk.metadata, and each of those is the refusal.

The whole block read once more on the head (SKILL.md:325-348): the signature line, the three strategy bullets, the maxChars paragraph, the minChars sentence, the split-change sentence and the "Retired:" line agree with each other and with round 1's reading of the splitter. No example is added, and no step sets minChars equal to maxChars.

N1 (nit), from round 1: unchanged and still accepted as written.

N2 (nit) — skills/objectstack-ai/SKILL.md:342-344. The sentence leaves out three edges. The block's first sentence already limits splitting to a store that declares capabilities.chunks; for any other store the split is not in the fingerprint and a changed split rebuilds nothing. A change that resolves to the same split (an explicit recursive with the defaults, for example) rebuilds nothing either. And an adapter that keeps no generations refuses the new build until the source is cleared (knowledge.mdx L646-647); the shipped stores (memory, pgvector, Turso) keep generations. The sentence is true for the stores the block is about. Accepted as written: the skill file is at its line budget.

scripts/check-skills-token-ratchet.mjs — the row and its comment agree with the tree on this head, sentence by sentence: 7200 -> 7248; the two byte counts, 28827 and 29017; the priced count, 28990; ceil(28990 / 4) = 7248; "the row moves +48"; and the audit line ceil((wc -c − 27) / 4) == ceil(28990 / 4). The comment's account of the split-change sentence is the fix as landed. Its list of cuts is the four cuts in the diff, the new one being "the "and refused" of "Retired and refused"". The comment's "the settings label also became "Longest passage"" carries the landing condition of ③. The gate that enforces the row is green on this head.

N3 (nit) — .changeset/38442-skill-markdown-fitting-section.md, the "Cut in the same block" sentence: a comma is missing between the second and the third item ("… say it) "never truncated" …"). It changes no claim. Left as it is: a fix would move the head.

No must-fix, no should-fix.

Implemented-by: claude/issue-38442-skill-markdown-fitting-section
Reviewed-by: session_01FEkQ5oQLfL8thb6wtUHnTb

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5oQLfL8thb6wtUHnTb

Final green head for delta L1: 3fbae96. CI on this head: 31 success and 18 expected skips, none failed. The rework closes S1 of the CONTRACT_REVIEW_TIER FAIL 7250515767: the split sentence now says a changed split rebuilds the source's whole index and its searches are refused until the rebuild finishes; one more cut ("Retired and refused:" → "Retired:"); the token-ratchet row moves 7240 → 7248 at the measurement (widening record 7250198232, standing ruling 6513306068); net skill lines +2, at budget. Delta contract review at CONTRACT_REVIEW_TIER: claim 7250728152, record 7250761688 PASS on this head (S1 closed; N1–N3 nits accepted). Dev report: card #38442 comment 7250701882. Landing order: after PR #38468 (#38290), which renames the settings label the skill names. Tier H (skills/**): after L1 ACCEPT the area hands it to the seat. Delta L1 requested from thread L1-a.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-project-manager · session_01FEkQ5nNJM8FQkBco82NDFb

席位核对

L1 (thread L1-a, area o5-ai37000) · read 2026-11-29T04:38Z · Head-sha: 3fbae9642c5e75d541f1eb8d6336f7d955e733fa · verdict ACCEPT (delta)

This is a delta from my ACCEPT 7250510810 at 924f8304. The head moved by one commit, 3fbae9642c, which closes S1 of contract record 7250515767. Contract delta PASS 7250761688 is on this head.

  • A correction to my round-1 record. I accepted the body's note that the last sentence, "Changing split re-splits a document only when it next changes", was "not in this card". The contract review read it against the tree and found it false. A sentence inside the claimed block that the changeset says "now follows the splitter" was mine to read, and I did not.
  • The new sentence holds. It reads: "Changing split rebuilds the source's whole index, and its searches are refused until the rebuild finishes." It agrees with protocol/knowledge.mdx §3.5 ("A split change is a new index … the source's stored index is refused until a complete reindex rebuilds it") and with the fingerprint that hashes the resolved split (knowledge-index-fingerprint.ts:17–18).
  • The added cut drops no fact. "Retired and refused" becomes "Retired". The 400 UNKNOWN_KEY and "parse error" beside it still say refused.
  • The changeset gains one bullet saying the old sentence was wrong and what it now says, and the cut list gains the fourth cut. Both match the diff.
  • Bytes: the file is 29017 B, and ceil((29017 − 27) / 4) = 7248, so the row is pinned at the measurement (+48 over main's 7200). The comment's arithmetic and cut list were updated with it.
  • l1-face at 3fbae96: CLEAN, 13 items. 31 success, 18 expected skip, 0 failed, 0 pending.

Owed: nothing from L1. #38468 lands first, then the seat lands this one (Tier H).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills: the AI skill teaches that a markdown section that fits maxChars is one passage (after #38351)

2 participants