Skip to content

Commit 1330750

Browse files
docs(knowledge): the docs and the AI skill state the document unit (documentBy) and the held knowledge service (#38855)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBG4YD4RMAt72Ga5PdYYZDAQ)_ Fixes #38538 Fixes #38475 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感。写给开发者和 AI 的知识库说明补了两段:一是应用自己把长文档拆成一条条子记录时该怎么配,搜索结果按上级文档去重和计数;二是知识库装上了但还没配好向量模型时,知识源只是挂着、搜不了,配好并重启后才生效。 - 为什么做:这两段都是已上线功能欠下的说明文字,分属知识库专题里的「按上级文档计数」和「装上不等于启用」两项;你已裁定它们不算新任务、现在补齐。 - 出错会怎样:只改说明文字,产品行为不变。最坏情况是 AI 照新说明把某个配置写错,保存时会被拒绝并告诉它怎么改;这次改动可以直接撤回。 - 要你做什么:技能说明的文字需要你审批后才能合并。 ## What changes Two cards, one commit each. Text only: no schema, no runtime code, no generated page. **Card 38538, the document unit (`de04044835`).** The two knowledge pages and the AI skill did not name `source.documentBy`. They now state the rule in one voice: an app that cuts its own passages writes each one as a child record and indexes the child object with `split: { strategy: 'whole' }`; the index stays one record = one document; `documentBy` is the unit a record-level search counts in `topK` and groups by when no `groupBy` is sent. - `content/docs/ai/knowledge-rag.mdx`: a paragraph under "Retrieving knowledge"; the `topK` and `granularity` rows of the `search_knowledge` argument table; a new subsection, "An app that cuts its own passages", with the four rules (child records with `whole`, the index unchanged, the counted and grouped unit, the single parent link and where it is refused). The same-record recipe above it now points at the subsection for an app that already keeps one row per unit. - `content/docs/protocol/knowledge.mdx`: the key in section 3.1 (what it is, what it leaves unchanged, what it must be and where it is refused); the default grouping in "Records, not passages" (one hit per parent, a record with no parent is its own hit, the group is keyed with the source, `groupValue` on a tool hit, an explicit `groupBy` takes its place); one pointer in section 3.5. - `skills/objectstack-ai/SKILL.md`: the key's row in the source table, and one rule beside the corpus rules. **Card 38475, mounted is not enabled (`ac64b997eb`).** The skill said "A shipped item mounts the knowledge service and its store", which read as "shipped, so searchable". The sentence now reads "A shipped item mounts the knowledge service, which does not enable it" ("and its store" dropped after review, `ff79a0e739`) and says the service is held until an embedder provider is saved, the deployment's store is mounted and the server restarts; that held sources are listed and never built or searched; that `search_knowledge` is not offered; that a search or a run-time save answers `503 SERVICE_UNAVAILABLE` naming the missing half, with nothing written; that `os knowledge status` prints the state and why, and `os knowledge rebuild` exits 1 with it. The remedy for an app that ships no source gains the embedder save and its restart. No example is added. The wording was read from the code on `main` at `13a0d3fedf`, not from the cards: `heldSourcesText` and `heldSourceSaveText` (`knowledge-service-top-level.ts`), `heldIndexReading` (`knowledge-build.ts`), the `rebuild` and `index_status` actions (`knowledge-build-actions.ts`), `describeEnablement` and the two CLI commands (`packages/cli/src/commands/knowledge/`), and `noKnowledgeServiceRefusal` (`knowledge-source-save-admission.ts`). **Two files of the card's list do not change.** The `search_knowledge` description (`knowledge-tools.ts`) and the TSDoc of `KnowledgeSearchOptions.granularity` / `topK` (`knowledge-service.ts` in the spec contracts) already say one hit per parent for a `documentBy` source on `main`: that text landed with the key itself. The Studio form row and its test are on `main` too. ### Skills budget Standing ruling, quoted: 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). Restating text of the same file is deleted first, and the token row moves by the measured remainder, pinned at the measurement. | Reading | Before (`13a0d3fedf`) | After (`ff79a0e739`) | Delta | |:--|--:|--:|--:| | `skills/objectstack-ai/SKILL.md`, lines | 507 | 518 | +11 | | `skills/objectstack-ai/SKILL.md`, bytes | 29014 | 30020 | +1006 | | `skills/objectstack-ai/SKILL.md`, tokens (stamp line excluded) | 7247 | 7499 | +252 | | Every `SKILL.md` of the catalog, lines (14 files) | 2769 | 2780 | +11 | | Authored bundle, tokens | 189821 | 190073 | +252 | | Whole shipped tree, tokens | 295693 | 295945 | +252 | Deleted first, all in the same file: the `maxChars` sentence's "the longest passage" (the setting it overrides is named **Longest passage** 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. The row in `scripts/check-skills-token-ratchet.mjs` moves 7247 to 7401 in the first commit 7401 to 7489 in the second, and 7489 to 7499 in the review fix (`ff79a0e739`: the `documentBy` row now ends "Setting it rebuilds nothing; newly listing the field rebuilds the source in place", and "and its store" is the deletion shown), each with its arithmetic in the row's history. The dispatch's budget for the two cards together is at most +12 lines; the file moves +11. ## Tests No behaviour changes, so no test is added or changed and no ablation applies. No test or script pins the edited sentences (searched: the skill path, the two page paths and the removed phrases, across `*.test.ts` and `scripts/`). ## Acceptance notes - **File surface, one path outside the claim's list.** `scripts/check-skills-token-ratchet.mjs` is edited: one row and its two history notes. The gate reds a row that sits above or below its measurement, so any change to the skill's bytes moves that row in the same PR; the standing ruling the dispatch names is the path that moves it. It is declared here so the seat can add the path to the claim. - **"Counted" is stated as far as this repository delivers it.** The pages and the skill say `topK` counts parents for a `documentBy` source. Whether a hosted plan's document quota counts parents is the cloud repository's half of the topic; it could not be read from this session, so nothing here states it. - **One snippet in the guide, none in the skill.** The new guide subsection shows a six-line `source` block, in the style of the split and ordering sections beside it. The "no new example" rule of card 38475 is about the skill, and the skill gains none. - **The skill does not list the rule id** `knowledge-source-document-by-not-parent-link`. The row says any other field is refused, and the refusal names the fix; the two lines the bullet would cost are outside the line budget. The guide and the protocol page name the rule. - **Noted, not changed (outside the file surface).** The TSDoc of `documentBy` in `packages/spec/src/ai/knowledge-source.zod.ts` still says a source registered in code or installed with a package "meets no save, so that rule does not judge it yet"; since the lint rule above landed, `os validate` and the publish gate judge it. Prose drift only: the `.describe` string, and with it the generated reference page, is accurate. - **Noted, not changed.** The skill's Knowledge Sources section does not mention `source.affinity` (the order for the asker). It is outside both cards. - **The other open PR on the protocol page** (the embed-once change, section 3.4) shares `content/docs/protocol/knowledge.mdx`. `overlap-check.mjs` before each push: merges cleanly, exit 0. ## Verification Read first, by risk: 1. `skills/objectstack-ai/SKILL.md`, the first paragraph of "Knowledge Sources (RAG)": the held-state wording, the Tier H text. 2. `scripts/check-skills-token-ratchet.mjs`, the `skills/objectstack-ai/SKILL.md` row: 7247 to 7499, and the three history notes above it. 3. `content/docs/ai/knowledge-rag.mdx`, "An app that cuts its own passages": the new subsection. Two-minute check: `node scripts/check-skills-token-ratchet.mjs` prints, on its first line, `skills/objectstack-ai/SKILL.md is 7499 tokens (ceiling 7499; headroom 0)` (at `ff79a0e739`). <details> <summary>Local gates at <code>ac64b997eb</code> (the review fix <code>ff79a0e739</code> re-ran the skills gates: os-dev delta 7303030228 on #38538)</summary> The list is `node scripts/pm/dispatch-gates.mjs --commands` on the final head: 93 commands. Each exit code was recorded before any pipe, and the record was reconciled with `--ran`: `✓ dispatch-gates --ran: 93 derived famil(ies) accounted for — 92 run, 1 NOT-MEASURED (0 DERIVED from a recorded exit 3, 1 claimed).` - 92 commands exit 0. Among them: `check-skills-token-ratchet.mjs` 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`, `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. It reads built output of every package and asks for a full `pnpm build`; the whole-tree build is CI's, and this diff changes no package source. - Five of the 92 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 were run again after `turbo run build` of `@objectstack/formula`, `@objectstack/lint`, `@objectstack/client-react` and `@objectstack/client`: exit 0 each. - 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` among them, so no generated file is regenerated); `check:skill-served-sections` exit 0. - `node scripts/pm/overlap-check.mjs`: `VERDICT clean exit 0` against `origin/main` `13a0d3fedf` and the two open PRs that share a file. No package source changes, so no package build closure, test or typecheck is owed by this diff; the full farm is CI's. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ)_ <!-- signed: repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 81aacd3 commit 1330750

5 files changed

Lines changed: 156 additions & 17 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the objectstack-ai skill teaches a knowledge source's document unit, `source.documentBy`, and that a mounted knowledge service is held until it is enabled
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-ai/SKILL.md`, Knowledge Sources: the key table lists `source.documentBy`, the single-valued `lookup` / `master_detail` field, listed in `metadataFields`, that links each indexed record to its parent record; setting the key rebuilds nothing, and listing the parent field in `metadataFields` for the first time rebuilds the source in place. One rule is added beside the corpus rules: an app that cuts its own passages writes each one as a child record and indexes the child object with `split: { strategy: 'whole' }` and `documentBy`. The index stays one record = one document, and `documentBy` is the unit a `granularity: 'record'` search counts in `topK` and groups by when no `groupBy` is sent.
11+
The same section no longer reads as "a shipped source is searchable". A shipped item mounts the knowledge service, and the service is held until an embedder provider is saved, the deployment's store is mounted and the server restarts. Held sources are listed and never built or searched: `search_knowledge` is 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, and `os knowledge rebuild` exits 1 with it. Where an app ships no source, the remedy for a refused run-time save now includes saving an embedder provider and the restart after it.
12+
The file's token ceiling moves from 7247 to 7499: restating clauses of the same file are deleted first, and the row moves by the measured remainder.

‎content/docs/ai/knowledge-rag.mdx‎

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,15 @@ const policies = await knowledge.search('parental leave', {
167167
});
168168
```
169169

170+
A source whose records are parts of a larger document, such as the clauses of
171+
a policy, can name that parent as its **document unit** (`source.documentBy`,
172+
[below](#an-app-that-cuts-its-own-passages)). For such a source
173+
`granularity: 'record'` with no `groupBy` answers one hit per parent record
174+
(the best passage among that parent's records), and `topK` counts parents. The
175+
parent's id is in the hit's `metadata`, under the field `documentBy` names. A
176+
record with no parent is still its own hit, and `granularity: 'chunk'`, an
177+
explicit `groupBy` and every source without `documentBy` answer as before.
178+
170179
A record-level hit is checked against its record as it reads now: a record
171180
deleted, out of the source's `where`, or changed since it was indexed is not
172181
returned (its index entry is repaired in the background, unless the source
@@ -236,8 +245,8 @@ An AI client searches through one tool, `search_knowledge`, defined once by the
236245
|:--|:--|
237246
| `query` | What to look for, in plain words. Required. |
238247
| `sourceIds` | Only these sources, by the ids every answer lists in `sources`. Omit to search them all. |
239-
| `topK` | At most this many hits, 1 to 20, default 5. Counts records or groups in the two modes below. |
240-
| `granularity` | `"chunk"` (the default): one hit per passage. `"record"`: one hit per record, its best passage. |
248+
| `topK` | At most this many hits, 1 to 20, default 5. Counts records (parent records, for a source that declares `documentBy`) or groups in the two modes below. |
249+
| `granularity` | `"chunk"` (the default): one hit per passage. `"record"`: one hit per record, its best passage. For a source that declares a document unit (`documentBy`), `"record"` answers one hit per parent record instead, which the hit carries as `groupValue`; a record with no parent is its own hit. |
241250
| `groupBy` | One hit per value of a field the source lists in `metadataFields`, such as `policy`: "which policies", not "which clauses". Implies `"record"`; refused with `"chunk"`. A source of indexed records that does not list the field answers nothing for that call; a file or web source still answers, one hit per document, with no `groupValue`. |
242251
| `scope` | Only inside these records: a list of `{ object, ids }`, as `KnowledgeSearchOptions.scope` reads it above. At most 10 entries of at most 500 ids. |
243252

@@ -317,7 +326,7 @@ source: {
317326
}
318327
```
319328

320-
Keeping the index text on the same record, rather than in a second object with one row per unit, means a hit names the record people open, the search re-checks that record as the asking user, and `where` and `metadataFields` read the record's own fields. There is no second object to secure, keep in step with the first, or delete with it. The field is indexed like any other content field: its text is sent to the embedder, and a credential or internal field is never indexed.
329+
Keeping the index text on the same record, rather than in a second object with one row per unit, means a hit names the record people open, the search re-checks that record as the asking user, and `where` and `metadataFields` read the record's own fields. There is no second object to secure, keep in step with the first, or delete with it. An app that already keeps one row per unit indexes those rows instead ([below](#an-app-that-cuts-its-own-passages)). The field is indexed like any other content field: its text is sent to the embedder, and a credential or internal field is never indexed.
321330

322331
**An optional top heading names the document.** The text the embedder sees is the passage: neither the record's title nor the department that owns it is in it unless the text says so. Starting the index text with one top-level heading that names them, with every unit one level below it, makes each passage's heading path begin with that heading:
323332

@@ -340,6 +349,26 @@ Article 7 is then one passage that begins `Group travel policy · Finance depart
340349

341350
Moving an existing source to this shape changes its `content` and `split`, so its index is rebuilt once ([below](#when-the-model-or-the-split-changes-rebuild)), and the rebuild sends the whole source to the embedding provider again.
342351

352+
### An app that cuts its own passages
353+
354+
Some apps already keep each unit as a record of its own: a clause object under a policy, an article under a contract, a section under a manual. Such an app has cut its own passages. Index the child object, one record per passage, and name the link to the parent as the source's **document unit**:
355+
356+
```ts
357+
source: {
358+
kind: 'object',
359+
object: 'policy_clause',
360+
content: ['body'],
361+
metadataFields: ['policy'], // the lookup from a clause to its policy
362+
documentBy: 'policy', // the document unit: one policy is one document
363+
split: { strategy: 'whole' }, // one clause record is one passage
364+
}
365+
```
366+
367+
- **Each passage is a child record, indexed with `split: { strategy: 'whole' }`.** The app's cut is the passage, and the service does not cut a clause again. A clause over the embedder's input budget is removed from the index and reported ([above](#splitting-documents-into-passages)), so keep each one within it.
368+
- **The index stays one record = one document.** `documentBy` changes nothing in it: a hit still names the clause record, and the search re-checks that record as the asking user. Setting or changing `documentBy` rebuilds nothing; listing the parent field in `metadataFields` for the first time rebuilds the source in place, as any new metadata field does.
369+
- **`documentBy` is the unit a search counts and groups by.** `granularity: 'record'` with no `groupBy` answers one hit per parent, the best passage among that policy's clauses, and `topK` counts parents. The parent's id is the hit's `metadata[documentBy]`, and also `groupValue` on a `search_knowledge` hit. A clause with no parent is its own hit, two sources never share a parent, and an explicit `groupBy` takes its place for that search.
370+
- **It must be a single parent link.** `documentBy` names a `lookup` or `master_detail` field of the indexed object that is listed in `metadataFields`, is not `multiple: true`, and is neither a credential nor an `internal` field. Any other field is refused, each time naming the fix: by the parse when `metadataFields` does not list it, at a save in Studio, the metadata API or MCP, and by `os validate` and the publish gate (`knowledge-source-document-by-not-parent-link`). Studio's source form offers the key as **Document unit**.
371+
343372
## Embedder input limits
344373

345374
Every embedding model accepts a text up to some length, counted in tokens. A provider that is sent a longer text truncates it **without an error** — the tail is never embedded, so a search for it finds nothing. `@objectstack/embedder-openai` refuses such an input instead:

‎content/docs/protocol/knowledge.mdx‎

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,29 @@ The mode is read by search alone: it enters neither the index fingerprint nor
209209
the recipe hash, so changing it rebuilds nothing, and a refused source still
210210
builds and syncs its index.
211211

212+
**The document unit: `source.documentBy`.** An app that cuts its own passages
213+
writes each one as a child record (a clause of a policy, an article of a
214+
contract) and indexes the child object with `split: { strategy: 'whole' }`
215+
([§3.5](#35-the-split)), so each record is one passage. `documentBy` names the
216+
field that links each of those records to its parent record, and that parent
217+
is the source's document unit: the unit a record-level search counts and, with
218+
no `groupBy`, groups by ([Records, not passages](#records-not-passages)). The
219+
index does not change. It stays one record = one document (ADR-0161 K1): a
220+
hit names the child record, and the permission re-check and the record sync
221+
read that record. The key enters neither the index fingerprint nor the recipe
222+
hash, so setting it rebuilds nothing; listing the parent field in
223+
`metadataFields` for the first time does, as any new metadata field does.
224+
225+
The field must be one of `metadataFields`, since grouping reads the value the
226+
index stores beside each passage: the parse refuses one that is not listed.
227+
It must also be a single-valued parent link: a `lookup` or `master_detail`
228+
field the object declares, with a readable `reference`, not `multiple: true`,
229+
and neither credential-class nor `internal`. Any other field is refused at a
230+
save (`VALIDATION_ERROR`, 400, naming the field and the fix), and by
231+
`os validate` and the publish gate
232+
(`knowledge-source-document-by-not-parent-link`), which judge a source a
233+
package ships or code registers.
234+
212235
**What mounts the service.** A stack that ships a `knowledge_source` — any
213236
item in its `knowledgeSources`, at the top level or in a package — is served
214237
the knowledge service and the deployment's store, exactly as
@@ -406,14 +429,25 @@ for `topK × 5` passages, for every caller, and refilled once at `topK × 20`
406429
when fewer than `topK` records survive; that is the cap, and fewer records
407430
within it means fewer hits, logged at `debug`.
408431

432+
A source that declares a document unit (`source.documentBy`, §3.1) answers
433+
parents instead. Under `granularity: 'record'` with no `groupBy`, its hits are
434+
grouped by the parent each one carries in `metadata[documentBy]`: one hit per
435+
parent, the best-scoring passage among that parent's records, and `topK`
436+
counts parents. A record with no parent (the value is absent, null or empty)
437+
is its own hit, never dropped. The group is keyed with the source, so two
438+
sources never share a parent, however equal their parent ids. A
439+
`search_knowledge` hit carries the parent as `groupValue` too. A source
440+
without `documentBy` answers one hit per record, as above.
441+
409442
`groupBy` names a metadata field and groups by its value instead — "which
410443
policies", not "which clauses" — with the best hit of each group and the
411444
value in the hit's `metadata`; it implies record granularity, and is refused
412445
with `granularity: 'chunk'` (`VALIDATION_ERROR`, 400, as are an empty
413446
`groupBy` and an unknown `granularity`). Hits with the same value are one group whichever
414447
source they come from. An `object` source that does not list the field in
415448
its `metadataFields` is not searched, and a record with no value for it is
416-
not answered: a hit is never answered ungrouped.
449+
not answered: a hit is never answered ungrouped. An explicit `groupBy` takes
450+
the place of a source's `documentBy` for that search.
417451

418452
Each record-level hit is checked against its record as it reads now, one
419453
system-context read per source of only the records about to be answered
@@ -692,7 +726,10 @@ one passage per unit that fits, and no passage ever holds two units; it
692726
needs no `minChars` setting. Text stored in another shape is indexed through a
693727
derived field on the same record that carries that rewrite, optionally under
694728
one top heading that names the document; the recipe is in
695-
[the knowledge guide](/docs/ai/knowledge-rag#one-passage-per-unit).
729+
[the knowledge guide](/docs/ai/knowledge-rag#one-passage-per-unit). An app
730+
that keeps each unit as a record of its own indexes those records with
731+
`whole`, and names their parent as the source's document unit
732+
(`source.documentBy`, §3.1).
696733

697734
**`whole` over the limit.** A `whole` document whose estimate is over the 80%
698735
budget is **removed from the index and reported, never truncated**:

‎scripts/check-skills-token-ratchet.mjs‎

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,57 @@ export const CEILINGS = new Map([
570570
// (the registry's 409 names both doors), and "Rerank and hybrid weighting"
571571
// became one clause. Banked at the measurement.
572572
// ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(28987 / 4)
573-
['skills/objectstack-ai/SKILL.md', 7247],
573+
// 7247 -> 7401 (2026-12-01, the document unit): the Knowledge Sources section
574+
// did not name `source.documentBy`. It gains the key's row (the single-valued
575+
// `lookup` / `master_detail` parent link, listed in `metadataFields`; any
576+
// other field is refused; setting it rebuilds nothing) and one rule beside
577+
// the corpus rules: an app that cuts its own passages writes each as a child
578+
// record indexed with `split: { strategy: 'whole' }`, the index stays one
579+
// record = one document, and `documentBy` is the unit `granularity: 'record'`
580+
// counts in `topK` and groups by. Raise path the standing ruling
581+
// 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B). PAID DOWN
582+
// FIRST: the `maxChars` sentence's "the longest passage" (the setting it
583+
// overrides is named **Longest passage** in the same sentence). Arithmetic in
584+
// priced bytes (stamp line excluded), against `main`'s 28987 (the row's 7247,
585+
// headroom 0): the file is 29014 -> 29629 bytes, so the LANDED priced text is
586+
// 29602 -> ceil(29602 / 4) = 7401; the row moves +154, the measured remainder
587+
// only. Pinned AT the measurement.
588+
// ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(29602 / 4)
589+
// 7401 -> 7489 (2026-12-01, mounted is not enabled): the section said a
590+
// shipped item mounts the knowledge service and its store, which read as
591+
// "shipped, so searchable". ADR-0161 K8's dated note on item 12 holds a
592+
// runtime-mounted service until an embedder provider is saved, the
593+
// deployment's store is mounted and the server restarts, and the sentence
594+
// now says so: held sources are listed and never built or searched,
595+
// `search_knowledge` is not offered, a search or a run-time save answers
596+
// `503 SERVICE_UNAVAILABLE` naming the missing half, `os knowledge status`
597+
// prints the state and why, and `os knowledge rebuild` exits 1 with it; the
598+
// remedy where an app ships none gains the embedder save and its restart.
599+
// Raise path the standing ruling 「A:先削重复,余额按实测提高」 (ruling record
600+
// 6513306068, letter B). PAID DOWN FIRST, in the same paragraph: the
601+
// "(`KnowledgeSourceSchema` in `@objectstack/spec/ai`)" aside (the section's
602+
// example imports that schema from that path), the second
603+
// "`SERVICE_UNAVAILABLE`, nothing written" (the held refusal beside it says
604+
// both), and "to the stack" / "the server" of the remedy. Arithmetic in
605+
// priced bytes (stamp line excluded), against 29602 (the row's 7401,
606+
// headroom 0): the file is 29629 -> 29980 bytes, so the LANDED priced text is
607+
// 29953 -> ceil(29953 / 4) = 7489; the row moves +88, the measured remainder
608+
// only. Pinned AT the measurement.
609+
// ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(29953 / 4)
610+
// 7489 -> 7499 (2026-12-01, the same two additions' review round): the
611+
// `source.documentBy` row ended "Setting it rebuilds nothing" right after
612+
// requiring the field in `metadataFields`. The key is in neither hash, but
613+
// `metadataFields` is in the recipe hash, so listing the parent field there
614+
// for the first time rebuilds the source in place; the row now says both
615+
// halves. Raise path the standing ruling 「A:先削重复,余额按实测提高」 (ruling
616+
// record 6513306068, letter B). PAID DOWN FIRST: the held sentence's "and
617+
// its store" (the same sentence names the deployment's store as one of the
618+
// halves the service waits for). Arithmetic in priced bytes (stamp line
619+
// excluded), against 29953 (the row's 7489, headroom 0): the file is 29980 ->
620+
// 30020 bytes, so the LANDED priced text is 29993 -> ceil(29993 / 4) = 7499;
621+
// the row moves +10, the measured remainder only. Pinned AT the measurement.
622+
// ceil(($(wc -c < skills/objectstack-ai/SKILL.md) - 27) / 4) == ceil(29993 / 4)
623+
['skills/objectstack-ai/SKILL.md', 7499],
574624
// -12 (was 6331): the `http.server` decision-table row dropped a trailing
575625
// clause that taught `contributes.routes` as a key that "parses but serves
576626
// nothing". The key is retired — an authored entry is now REFUSED, carrying

0 commit comments

Comments
 (0)