Skip to content

service-knowledge: a markdown section that fits maxChars is still cut into several passages #38351

Description

@objectstack-fleet

repo:objectstack#8 · sunhaolin · session_017xRBcSSm1UGomShRsemA1N

Filing gate: ② a decision only the maintainer can make (topic child). Source: topic #38346 (opened on the maintainer's words quoted there).
Grading: area:ai · Feature · p3 (dispatched in the topic's order, not by grade) · reach: every source on split.strategy: 'markdown' · evidence: measured on main 600197a against a real 4,224-document corpus (BrightRule, private), and read from the code.
Blocked-by: #38349

维护者速读

  • 问题:用知识检索查长文档(制度、合同、手册)时,一条条文或一个小节明明放得下一段,却常被切成两三段,检索命中的只是半条。
  • 选项:A 把「放得下的最小章节整节一段」做成默认行为,所有用标题切分的知识源都受益,一个小改动,已有索引重建一次;B 不改代码,只在文档里教作者把合并阈值设成和最大长度一样。
  • 推荐:待决策线程按四轴写(本卡只给证据)。
  • 不定会怎样:默认配置下,约十五分之一的条文被拆开,作者不知道要改哪个配置。

What

In the markdown strategy each section is split on its own (packages/services/service-knowledge/src/split/splitter.ts, splitMarkdown and withPrefix), and pieces inside a section are merged only while the running piece is shorter than minChars (default 200; mergeShort). A leaf section that fits maxChars but holds several paragraphs of 200+ characters is therefore cut into several passages.

Measured, with every numbered article written as a heading (the shape the docs recipe in #38290 will teach):

minChars passages articles split though the whole article fits 800 chars mixed passages
200 (default) 69,274 1,569 of 37,901 0
800 (= maxChars) 59,862 0.2% (independent re-measure) 0

On documents whose units are NOT headings, minChars = maxChars makes passages coarser (51,435 → 34,353 passages; mixed passages rise from 74% to 86% by the independent re-measure), because a section then holds several units.

Options (for the decision thread)

Decision owed

Analysis (four axes, facets block, prior-rulings line, workload precedents) is owed by a decision thread, requested through repo:objectstack#8. Not dispatched before a ruling is recorded here.

Reader

repo:objectstack#8, zone knowledge-split, after the ruling and triage's first touch.
Dedupe: minChars 5 (#38290 open, the parent ask; others closed or unrelated) · leaf section one passage 0.

Activity

  1. added
    needs-user-decision
    area:ai
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/services/service-knowledge/src/split/splitter.ts (splitMarkdown, mergeShort) · area:ai · domain:server · Feature · p3 · needs-user-decision (as filed) · Blocked-by: #38349. Note for the decision thread: the same mechanism as #38290 (the external report asking for one passage per article, also in this topic and in the decision box). Analyse the two together. A ruling here likely answers #38290's option 2, and #38290's measured corpus (28 articles → 10 passages; 84% → 94%) is evidence for this card.
    Path: none

    Recorded 2026-11-28T14:46Z.

  3. added
    domain:server
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

    Decision analysis · 2026-11-28T23:15Z · fable tier (CONTRACT_REVIEW_TIER). An independent subagent of seat 8 wrote it, read on origin/main bc31d453. Posted unchanged except the opening line and the scratchpad path. The decision thread this card asked for.

    维护者速读

    • 问题:用标题切分的长文档(制度、合同、手册),一条条文明明一段放得下,只要里面有两三个稍长的自然段,就被切成两三段;实测约每 24 条里有 1 条这样,检索命中的只是半条,作者看不出该改哪项设置。
    • 选项:一是改默认,放得下的小节整节一段,所有按标题切分的知识源自动受益,一个小改动,和已排队的"标题丢失"修复同一次重建;二是不改代码,只在文档里教作者手动调一个合并阈值,这个阈值对不按标题写的文档会让段落明显变粗。
    • 推荐改默认:主流切分工具默认都是"放得下的小节不拆",而切分功能目前只在预发布版里,现在改几乎没有存量成本。
    • 不定会怎样:文档那张卡和"标题丢失"修复都在等这张卡,默认配置下半条命中继续出现;拖到正式版之后再改,每个已上线的知识源都要多重建一次。

    Background

    The markdown split strategy cuts one section per heading, then cuts each section as recursive does, and merges neighbouring pieces only while the running piece is under minChars (default 200). A section that fits maxChars (default 800) but holds several paragraphs of 200+ characters therefore becomes several passages.

    Governing text

    Protocol declaration

    • A: Clause-②: no (no accepted key or value is added, no public surface widens). Metadata-protocol: semantic, because the meaning of strategy: 'markdown' and of minChars under it changes for the same written metadata (AGENTS.md Post-Task Checklist step 3: "a changed meaning or default is semantic").
      • That takes at least a minor changeset on the moved package.
      • The diff owes edits to the packages/spec/src/** docblocks (zod.ts:96-97, :116-121; knowledge-source.metadata-form.ts:96 help text), so it touches a governed surface: regenerated spec artifacts, a contract-tier L2 review, and a Skills-docs: line.
      • knowledge.mdx:575 and the ADR-0161 wording note follow.
    • B: Clause-②: no, Metadata-protocol: none. Docs only.

    Premises (each with a re-check)

    1. Sections are cut independently, with the merge threshold passed through. splitMarkdown builds flat sections (splitter.ts:493-514); withPrefix calls splitRecursive(body, left, Math.min(minChars, left.maxChars)) (:561). Re-check: git show origin/main:packages/services/service-knowledge/src/split/splitter.ts | sed -n 488,565p
    2. A run stops taking pieces once it reaches minChars. mergeShort's joinable requires into.text.trim().length < minChars && fits(...) (:237-240). Re-check: same file, sed -n 233,269p
    3. Defaults are 800 and 200, and minChars is clamped to maxChars. :49, :52, :108. Re-check: git grep -n "DEFAULT_SPLIT_M" origin/main -- packages/services/service-knowledge/src/split/splitter.ts
    4. The fingerprint hashes the resolved strategy, maxChars, minChars, the token budget, and one global SPLIT_ALGORITHM_VERSION (knowledge-index-fingerprint.ts:95-103; splitter.ts:65). A mismatch reads as new-fingerprint and the index is "built anew" (knowledge-service.ts:1277-1281); the next reconcile picks it up as a new generation (:2070-2073). Re-check: git show origin/main:packages/services/service-knowledge/src/knowledge-index-fingerprint.ts | sed -n 88,106p
      • Consequence the card does not state: B's recipe changes minChars, so every source that adopts it also rebuilds once.
    5. service-knowledge: the split algorithm version is global, so a change to one strategy rebuilds every source #38349 has not landed; the version is still global. Re-check: git grep -n "SPLIT_ALGORITHM_VERSION = " origin/main -- packages/services/service-knowledge
    6. The splitter is pre-release only. Re-check: git show origin/main:packages/services/service-knowledge/CHANGELOG.md | grep -n "^## \|one splitter" | head
    7. No in-repo app writes strategy: 'markdown'; it appears only in docs, one skill eval and a spec form test. Re-check: git grep -n "strategy: 'markdown'" origin/main -- . ':!**/CHANGELOG.md' ':!**/__tests__/**'
    8. The code has no "leaf" section. A parent heading's own text before its first child is a section of its own (:497-513), so A has to be stated as "a section whose own text, with its heading path, fits".

    Local-runs: one node run of a copy of origin/main's splitter.ts and token-estimate.ts in the scratchpad, on a seeded synthetic corpus. It is not the private corpus. Shape: 400 documents, 9,116 articles, article length lognormal with median 96 and about 78% under 200, maxChars 800. A was emulated per section: the minChars = 800 result where that is one passage, otherwise the default result.

    Shape Setting Passages Mixed passages Fitting articles split
    Units are headings default (200) 9,947 0% 293 (3.2%)
    Units are headings B recipe (800) 9,439 0% 0
    Units are headings A (emulated) 9,630 0% 0
    Units are bold paragraphs under chapter headings default (200) 5,150 66.8% 782
    Units are bold paragraphs under chapter headings B recipe (800) 3,107 83.9% 268
    Units are bold paragraphs under chapter headings A (emulated) 4,534 67.6% 663

    Embedded characters moved by under 1% in every cell.

    The concrete question

    When an author picks "split by heading", should a section that fits in one passage always be one passage, or only when the author also knows to raise a second number?

    Options × real cost × workload

    Option What is done What the customer sees Workload
    A A section whose text plus heading path fits maxChars and the token budget is one passage. minChars is unchanged for sections that do not fit and for recursive. Zero-config: no fitting article is split (card: 4.1% → about 0.2%; synthetic: 3.2% → 0). On documents whose units are not headings, passages get slightly coarser only inside chapters that fit (synthetic: passages −12%, mixed +0.8 points). Every markdown source rebuilds once, in the same rebuild #38350 already forces. Server lane, 1 PR (or folded into #38350's PR), plus spec docblock, form help text and protocol doc. semantic, minor changeset, L2 contract review. No comparable landed precedent: the only landed splitter PR is #37287 (+2,553/−233, the whole splitter).
    B Docs only: teach minChars = maxChars. Authors who find and apply the recipe get the same result on heading-shaped documents. Everyone else keeps split articles. A source with mixed document shapes gets much coarser passages on the non-heading ones (card: 51,435 → 34,353 passages, mixed 74% → 86%; synthetic: −40%, mixed +17 points). Each adopting source rebuilds once. Docs lane, 0 extra PRs (rides #38290's docs PR). No precedent needed.

    Business meaning per option

    • A: "split by heading" means what it says. It is the difference between a filing clerk who keeps each clause on one card when it fits, and one who cuts every clause at 200 characters unless told otherwise.
    • B: the product keeps its current behaviour and ships a tuning tip. The tip is a source-wide setting, so it also changes how every long or heading-less document in that source is cut.

    Four axes

    ① Long-term soundness. In two years the platform's structural split should behave as the mainstream structure-aware splitters do: the document's own units are the passages, and size limits only cut what does not fit.

    • LangChain MarkdownHeaderTextSplitter emits one document per header section with no size cap. Size control is a separate explicit step (RecursiveCharacterTextSplitter), which leaves a fitting section whole.
    • LlamaIndex MarkdownNodeParser emits one node per header section. Its default SentenceSplitter fills up to the chunk size (1,024 tokens), so a fitting section is one node.
    • Unstructured chunk_by_title treats section boundaries as hard and by default combines within a section up to the maximum size.
    • LlamaIndex HierarchicalNodeParser with auto-merging is the analogue of hit expansion, not of this card. SemanticSplitterNodeParser ignores structure and is not a model for a heading strategy.
    • I recalled these defaults from knowledge; I did not re-read the libraries in this session.

    Today's default (stop merging at 200 inside a section) is the outlier. B makes it permanent and turns minChars into a hidden switch with a second meaning. A removes a special case and adds no key.

    ② Business pull. Measured and named.

    ③ AI authoring errors.

    • Under B, an AI or human author who writes split: { strategy: 'markdown' } gets split articles with no error and no signal. The fix depends on remembering to set a second number to the value of the first.
    • The effective maximum may come from the settings page or the embedder limit, so the author cannot see it in the source. The clamp at splitter.ts:108 softens this (any large number works) but makes the recipe a magic number.
    • When B's recipe is applied to the wrong document shape, passages silently get coarser.
    • Under A the plain declaration is correct by construction. Neither option produces a loud rejection.

    ④ No spread.

    Other weights the brief asked for:

    • Retrieval quality: A never makes a passage longer than the author's own maximum, so the "whole article per passage against precision" trade is bounded by a limit the author already chose. A half-article passage embeds without its other half and competes with it in the top results; that hurts ranking, not only reading.
    • Embedding and rerank cost: near neutral. Fewer passages means fewer repeated heading prefixes; total embedded characters moved under 1% in the synthetic run. The card's B figure is 13.6% fewer passages on heading-shaped documents.
    • Rebuild cost: A's marginal cost is about zero. service-knowledge: the markdown split drops body-less headings and files them under the wrong chapter #38350 forces the same markdown rebuild, service-knowledge: the split algorithm version is global, so a change to one strategy rebuilds every source #38349 confines it to markdown sources, and the splitter has no stable release. B is not rebuild-free either (premise 4).
    • Hit expansion (phase 2, row 2-3): complementary. Expansion repairs sections that do not fit, at query time, and costs model context on every query. A repairs sections that fit, once, at index time, and fixes what is embedded and ranked, which expansion cannot.

    os-decision-facets
    ① Long-term soundness: A shrinks a special case (a heading strategy that cuts fitting sections) and adds no contract; B freezes it and gives minChars a second, undeclared job.
    ② Business pull: a named external app and a measured 4.1% of fitting articles split at the default; the answer-quality effect is unmeasured until the phase-1 ablation.
    ③ AI authoring errors: B fails silently for anyone who omits the recipe and coarsens silently when it is misapplied; A makes the plain declaration correct. Neither is a loud rejection.
    ④ No spread: A adds no key, value, gate or export; B adds a recipe to maintain and keeps the unit-pattern ask alive.
    Prior rulings read: minChars, "leaf section", markdown split passage default → 7 / 16 / 22 issue hits, none a ruling on this default (#37098, #37001, #37292, #37309 are closed and concern the splitter's shape; the "leaf section" hits beyond this topic were not opened); ADR-0161 K7 and K8 item 10 (ownership, key location and fingerprint only; strategy rules deferred to #37098); thread: none

    Recommendation

    A. On ① alone: it is the mainstream default, it matches the published spec sentence, and it removes a special case without adding surface.

    • B is not taken because it makes correct behaviour depend on an undiscoverable second setting whose side effect on other document shapes is measurably worse than A's.
    • Workload: B is cheaper (docs only), but A is one small PR in a train that already exists, so the gap does not approach the level that needs calling out as a reason.

    Confidence gaps:

    • A's downside is real but small. A chapter that fits and holds several non-heading units becomes one passage. My only number for it is synthetic; the card measured only B on that shape. The dev should measure A on the non-heading shape as part of acceptance.
    • No answer-quality number isolates splitting. The recommendation rests on structure and on the split-rate measurement, not on an evaluation score.
    • A figure on the card needs correcting. Its 速读 says "约十五分之一"; its own table gives 1,569 / 37,901 = 4.1%, about one in 24.
    • The card's 0.2% residual under B was not reproduced. The synthetic run gave 0; it probably comes from the token budget or the heading-path fallback in withPrefix.

    只看①选 A;②③④ 是否翻转:否

    Post-ruling execution

    1. Record the ruling on service-knowledge: a markdown section that fits maxChars is still cut into several passages #38351; drop needs-user-decision; keep Blocked-by: #38349.
    2. Settle these execution parameters in the same ruling:
      • "Leaf section" means every section whose own text plus the heading-path prefix that withPrefix selects fits maxChars and the token budget, including a parent's text before its first child and the text before the first heading.
      • minChars is unchanged for sections that do not fit and for recursive.
      • minChars: 0 does not opt out.
    3. Land in the same train as service-knowledge: the markdown split drops body-less headings and files them under the wrong chapter #38350 with one markdown version bump (after service-knowledge: the split algorithm version is global, so a change to one strategy rebuilds every source #38349), so pre-release deployments rebuild once.
    4. The PR carries Clause-②: no, Metadata-protocol: semantic, a minor changeset, the spec docblock and form help text edits with regenerated artifacts, knowledge.mdx §3.5, the ADR-0161 wording note, and a Skills-docs: line. It gets an L2 contract-tier review.
    5. Acceptance as on the topic (≤0.5% of fitting units split, 0 mixed on heading-shaped input), plus one new reading: passage count and mixed share on a non-heading-shaped synthetic corpus, before and after.
    6. service-knowledge: no split that keeps one passage per article; short articles are merged and tables lose the note after them #38290's docs PR then teaches "one heading per unit" without the minChars = maxChars step, and keeps minChars documented as a merge threshold for sections that do not fit.

    给席位的三行小结

    • 字母:A(改默认,放得下的小节整节一段)。
    • 最强理由:这是主流按结构切分工具的默认行为,也让"按标题切分"名副其实;另一条路的手动阈值对不按标题写的文档副作用大得多(段落数少四成,混合段多十几个点),而且作者不设就静默出错。
    • 主要代价:所有按标题切分的知识源重建一次(与"标题丢失"修复同一次,功能尚在预发布期);属于语义变更,要改规范注释并过契约审核;能放进一段的章节里若有多个非标题单元,会略微变粗。

    Files read: splitter.ts, knowledge-index-fingerprint.ts, knowledge-service.ts (service-knowledge), knowledge-source.zod.ts and knowledge-source.metadata-form.ts (spec), knowledge.mdx, knowledge-rag.mdx and ADR-0161, all at origin/main via git show. The measurement script stayed in the seat's scratchpad.

  5. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8

    Ruled · 2026-11-28T23:16Z · A: under split.strategy: 'markdown', a section that fits maxChars (and the token budget) is one passage by default, and minChars keeps its meaning for sections that do not fit.

  6. added
    pm:queue
    and removed
    needs-user-decision
    on Nov 28, 2026
  7. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5mCvGQKiCEBneFwp1j
    Claim: PM loop round 1 · 2026-11-29T00:56Z
    Session: session_01FEkQ5mCvGQKiCEBneFwp1j
    Account: os-project-manager
    Branch: claude/issue-38351-markdown-fitting-section
    Worktree: objectstack-issue-38351
    Domain: domain:server
    Seat: repo:objectstack#5
    Area: o5-ai37000
    File surface: packages/services/service-knowledge/src/split/** and its tests under packages/services/service-knowledge/src/__tests__/, the split docblocks in packages/spec/src/ai/knowledge-source.zod.ts, the minChars help text in packages/spec/src/ai/knowledge-source.metadata-form.ts with the spec artifacts they regenerate, content/docs/ai/knowledge-rag.mdx and content/docs/protocol/knowledge.mdx section 3.5, one minor changeset (stop on breach; explain in the report)
    Container & model: M, mode:thread (card thread of area o5-ai37000; it dispatches one os-dev subagent), model: default (dispatch-gates --tier at 3579cf1, Model tier — no path-derived mandate; floor sonnet · default opus · ceiling fable; ruling implementation with design judgement on "fits", so not floor), effort: high (the "fits" reading includes the heading-path prefix withPrefix selects and the token budget)
    Clause-②: no
    Metadata-protocol: semantic
    Responsibility: n/a — not a defect card
    Ruling-ref: 7247322956 — A, maintainer verbatim 「#38351 同意」: "under split.strategy: 'markdown', a section that fits maxChars (and the token budget) is one passage by default, and minChars keeps its meaning for sections that do not fit."
    Thread-read: 7247322956
    Premise: holds at 3579cf1 — withPrefix passes each section body to splitRecursive(body, left, Math.min(minChars, left.maxChars)) (splitter.ts:652), and mergeShort joins a piece only while the run is shorter than minChars (splitter.ts:267), so a fitting section with several 200+ character paragraphs is cut; SPLIT_ALGORITHM_VERSION_BY_STRATEGY reads markdown: 2 and .changeset/38350-markdown-bodyless-headings.md is still pending (not in the published 19.0.0-next.2 changelog), so this card rides markdown: 2 and adds no version bump
    Serial constraints cleared: #38349 (PR #38375) and #38350 (PR #38380) merged; #38383 merged; no open PR touches packages/services/service-knowledge/src/split (search, 3579cf13); sibling #38377 (retire SPLIT_ALGORITHM_VERSION, same file, another hunk) is unclaimed with no PR — overlap-check runs before every push, queue only on a real merge-tree conflict
    Fold-or-serial: not folded with #38377 — fold gate ① fails (a behaviour change under a ruling and a constant retirement narrowing are not one defect shape) and gate ② fails (different L2 faces and changeset kinds); #38290 (docs recipe) follows this card's merge.
    Pre-claim lane: packages/services/service-knowledge/src/split ⇒ domain:server; spec docblocks and form help text ⇒ domain:spec; docs ⇒ domain:devx (file ownership only); all stay in this seat per area-lease 留道; in lane.
    Pre-claim deps: Blocked-by: #38349 closed as completed (PR #38375 merged ba33ea2); #38350 merged (PR #38380, 9b783ee).
    Prior rulings read: this card's ruling 7247322956 (A, with execution reading items 1–6 under the maintainer's veto window); check-prior-rulings on the surface: 24 hits, surface ruling grep 0; the ADR decision hits (ADR-0019, 0006, 0021, 0076, 0079, 0093, 0094) are keyword matches on "section"/"fits" — only ADR-0161 names the splitter in docs/adr (K7: the version changes when passages change, honoured by riding markdown: 2); no conflict.
    Skills-docs: follow-up owed — skills/objectstack-ai/SKILL.md (the markdown and minChars lines); the area files the card before ACCEPT.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5mCvGQKiCEBneFwp1j
    os-dev-report

    {
      "issue": 38351,
      "status": "done",
      "branch": "claude/issue-38351-markdown-fitting-section",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38439",
      "session": "session_01FEkQ5mCvGQKiCEBneFwp1j",
      "premise_still_valid": true,
      "summary": "Under split.strategy 'markdown', withPrefix now returns a section as one passage when its emitted passage (the prefix withPrefix selects, unchanged, plus the trimmed text) fits maxChars and the token budget, whatever minChars is; the path-less branch (text before the first heading) takes the same rule, and a parent's text before its first child is covered because it is already its own section. Sections that do not fit go through splitRecursive unchanged and are byte-identical to before (measured: 20,000 random docs, 162,790 sections identical, 7,735 now one passage, 0 other differences). 'Fits' is judged on the emitted passage, not on body vs the bounds left after the prefix: estimateTokens rounds up per text, so the emitted check is the looser of the two by at most one token and is exactly the passage bound the splitter promises (pinned by a test). markdown stays at version 2 (38350's changeset still pending at base d751790c; npm next = 19.0.0-next.2). Spec docblocks, the minChars .describe, the form help text, the regenerated reference page, knowledge.mdx 3.5 and knowledge-rag.mdx restate the ruling; changeset is minor for service-knowledge and spec. Card assignee untouched.",
      "tests": "head 4723a4fe. Red first, on the unmodified splitter: `vitest run src/__tests__/split.test.ts -t 'fits is one passage'` -> Tests 8 failed | 3 passed (the 3 pin unchanged behaviour). After: `pnpm --filter @objectstack/service-knowledge test` -> Test Files 21 passed (21), Tests 737 passed (737), lock VERDICT command-exit 0; `pnpm --filter @objectstack/service-knowledge typecheck` -> tsc clean, check:test-typecheck OK 0 errors; spec `vitest run src/ai/knowledge-source.metadata-form.test.ts src/ai/knowledge-source.test.ts` -> 2 files, 42 passed; `pnpm --filter @objectstack/spec typecheck` exit 0. Golden headings.markdown unchanged. Corpus (seeded synthetic, 400 docs/shape, maxChars 800): heading-shaped default before 6,814 passages, 0% mixed, 261/6,018 fitting split (4.34%), table+note 209/251 -> after 6,537 passages, 0% mixed, 0/6,018 (0%), 251/251; non-heading (bold units under chapters) before 4,245 passages, 59.22% mixed -> after 3,951 (-6.9%), 59.68% (+0.46 pt). Hypothesis 5 (0.2% residual under the minChars=maxChars recipe) not reproduced: 0 on synthetic.",
      "gates": "local, head 4723a4fe: `dispatch-gates.mjs --commands` (merge base d751790c, 8 paths) -> 114 commands run, each exit captured before any pipe; 110 exit 0; 4 exit 3 PREREQUISITE NOT MET = NOT MEASURED (check-plugin-teardown-shape --self-test: shallow clone; spec check:skill-examples, check:dual-build-cjs-loads, check:i18n: full workspace build absent); `dispatch-gates.mjs --ran` -> '114 derived famil(ies) accounted for — 110 run, 4 NOT-MEASURED', exit 0. `pnpm --filter @objectstack/spec check:generated` -> 1 of 14 stale (check:docs), fixed with --fix, re-committed; authorable-surface.base.json untouched. `overlap-check.mjs --branch=HEAD` -> VERDICT clean exit 0 (merges cleanly, 0 overlapping PR heads). Local-only check:dev-prereqs scan -> exit 1, workspace not fully built (32 packages without dist) — a reading about this container, not the diff. CI check-runs on PR #38439: NOT MEASURED, reason: report delivered at PR open per os-dev.md, CI not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/38439/assignees), run 46212764645; plus this os-dev-report comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/38351/comments). git push is not counted.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #38377 (edits the same constant block) · noted, not filed — the `markdown: 2` entry comment in SPLIT_ALGORITHM_VERSION_BY_STRATEGY names only the body-less heading change; left untouched here to avoid a hunk conflict; this PR changeset records that version 2 carries both changes"
      ]
    }
  10. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5mCvGQKiCEBneFwp1j
    os-dev-report

    Patch round 1 delta (head c645c31).

    {
      "issue": 38351,
      "status": "done",
      "branch": "claude/issue-38351-markdown-fitting-section",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38439",
      "session": "session_01FEkQ5mCvGQKiCEBneFwp1j",
      "premise_still_valid": true,
      "summary": "Patch round 1 (CI red on check:i18n, plus L2 FAIL record 7249205899). New head c645c319, two commits on 4723a4fe. Main not merged. Commit 9aeceaa2 is M1: one regenerated file, en.metadata-forms.generated.ts (the minChars helpText leaf only), written by `node scripts/check-i18n-bundles.mjs --write`, the generator check:i18n names in its own failure text. The regen changed no source-hashes file. Commit c645c319 has three parts. S1: the zh-CN, ja-JP and es-ES minChars helpText leaves are re-translated by hand in their *.metadata-forms.generated.ts files. AGENTS.md says translated-locale values in those bundles are hand-written, so editing them is allowed. Those leaves have no entry in the generated source-hashes files, so they are trusted as legacy and no hash is owed. Changeset: '@objectstack/platform-objects': minor added. Precedent 37309 is patch with Metadata-protocol none, and AGENTS.md step 3 says a semantic kind takes at least minor on every package it moves; all three packages are in one fixed group. N2: the zod `markdown` docblock now says 'its text together with the heading path it is given (the whole path, or the innermost heading when the whole path is too long)'. knowledge.mdx 3.5 and knowledge-rag.mdx make the same claim and are aligned the same way. The .describe string and the form help text make no heading-path claim, so they are unchanged and nothing regenerated. N1 is left to #38377. Noted, not fixed (pre-existing): the minChars helpText in ar, de, fr, ko, pt-BR, ru and zh-Hant is an English copy of an older sentence that lacks 'In characters. Needs a strategy.'. The PR body was not edited (os-dev.md: subagents write it only at pr_create), so its 'Local runs' block still reads head 4723a4fe.",
      "tests": "Reproduced red at 4723a4fe, after building the closure check:i18n names (turbo build of cli, platform-objects and 9 plugins/services under os-verify-lock, Tasks 70 successful, VERDICT command-exit 0): `pnpm check:i18n` exit 1, 'platform-objects DRIFTED (1)', 'check-i18n-bundles: 1 bundle problem(s) · platform-objects: 1 bundle(s) drifted from the schema'. Green at c645c319: `pnpm check:i18n` exit 0, 'platform-objects in sync (32 bundle(s))', 'check-i18n-bundles: OK (10 package(s) — all bundles in sync, no undeclared authoring keys)'. `pnpm check:i18n-stale-fill` exit 0, 'no new stale fills, 1 baselined'. `pnpm --filter @objectstack/platform-objects exec vitest run src/apps/translations`: Test Files 28 passed (28), Tests 625 passed (625). Splitter and service-knowledge results from round 0 still hold: no service-knowledge file changed in this round.",
      "gates": "At c645c319: `pnpm --filter @objectstack/spec build && check:generated` gave '✓ All 14 generated artifacts are up to date', VERDICT command-exit 0. Re-derived `dispatch-gates.mjs --commands` gives 118 commands; 4 are new (spec check:error-code-provenance, check:i18n-stale-fill, check:optional-error-sink, check:settings-bind-window). Re-run at c645c319: those 4 plus 27 doc, changeset, nul-bytes and closing-keyword families, 31 commands, all exit 0. check:i18n now exit 0. `--ran` over the merged record: '118 derived famil(ies) accounted for — 115 run, 3 NOT-MEASURED' (exit 3, prerequisite not met: check-plugin-teardown-shape --self-test needs a full clone, spec check:skill-examples and check:dual-build-cjs-loads need a full workspace build). The other 84 families were measured at 4723a4fe, and this round touched none of their inputs except bundle and docs files whose families were re-run. `overlap-check.mjs --branch=HEAD`: VERDICT clean exit 0; merges cleanly with origin/main 0c1b2ffe and with PR #38421, which shares the 4 bundle files. CI on c645c319: NOT MEASURED, because the report is delivered at push.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "1 this round — the os-dev-report delta comment on #38351 via post-stamped.mjs over the relay (POST /repos/objectstack-ai/objectstack/issues/38351/comments). git push not counted.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  11. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Execution reading item 4 of ruling 7247322956, "the ADR-0161 wording note": none owed. Recorded by the card thread on area o5-ai37000's reading.

  12. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered: PR #38439 merged as f19ee34; Fixes #38351 closed this card as completed. pm:dispatched removed in this stroke.

  13. removed
    pm:dispatched
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:aidomain:serverpriority:p3

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions