Repository navigation
docs(skills): objectstack-ai names the os validate rules for a knowledge_source, each with its fix - #38091
Conversation
… with its fix The knowledge source section lists the five rules os validate and publish report for a source: an unknown object, an unknown field, an object the API does not serve for search, a system object without enable.aiReadable, and the warning for a credential-class or internal member the index never carries. Each comes with its fix, as the rule's own message and hint give it. Restatements are paid down first: the content row's never-indexed clause and egress reason, the name row's identity clause, and the example's adapter comment. The token ratchet row moves 6695 -> 6893 by the measured remainder. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · 3626163 · 2026-11-28T02:09Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Read: card #37310 (body and its seven comments, the amendments 7221575164 and 7224082428 and the dev report 7232154829 among them), PR #38091 (body, its three-file list, its one comment), the net diff against merge base ① Derived judgments
② Semver level
Clause-②: no. Right: the rules themselves landed with #37971; this diff narrows nothing. ③ Boundary flags
④ Design judgmentskills/objectstack-ai/SKILL.md, each new sentence against
The four deletions leave nothing untaught:
The checked example is otherwise unchanged and scripts/check-skills-token-ratchet.mjs (implementing file). The new comment block agrees with the gate's contract sentence by sentence: what was added, the four deletions with the home each keeps, the ruling and record, the byte arithmetic, and a reproduction line that gives 6893. Nits, none of which moves correctness or the contract:
No must-fix, no should-fix. Not reviewed (lane seat's ACCEPT at Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head Review summaryContract review. I adopt record 7232385536 at this head. It is PASS at the contract tier, and
Landing keyword. Gates. All 45 check-runs on the head are done: 29 success, 16 skipped, 0 failed. A conflict to plan for. #38013 now owes an edit to this same section, and the same ratchet row, after main brought in #38053 (REWORK 7232242349). Whichever of the two lands second must merge main and re-measure the ratchet row. If that changes skill text, it needs a delta read. Nits, optional:
Next: this touches |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T02:29Z · PR #38091 (Part of #37310) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · governed @os-zhuang:
Every check is green or expected-skip. An APPROVED review on this head lets seat repo:objectstack#1 ready and land it; nothing else is asked. |
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Part of #37310
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-ai/SKILL.md§ Knowledge Sources (RAG) now lists whatos validateand publish report for aknowledge_source, by rule id, with the fix for each. I took the wording from the rules' own messages and hints inpackages/lint/src/validate-knowledge-source.tsonmain, not from the card:knowledge-source-object-unknown:source.objectis no object of the stack or its packages. On the CLI it is a warning while the manifest declares a dependency thatpackages[]does not carry. Fix: name a defined object, or declare and install its package.knowledge-source-field-unknown: acontent/metadataFieldsmember is no field of the object;idand the injected system columns resolve. Fix: correct the spelling, or remove the member.knowledge-source-object-not-searchable: the API does not serve the object forsearch. Fix: leaveenable.apiEnabledon; anenable.apiMethodslist must grantlist, withenable.searchablenot false.knowledge-source-system-object-not-ai-readable: asys_object withoutenable.aiReadable: true. Fix: index a business object.knowledge-source-field-never-indexed(warning): a credential-class orinternal: truemember, which the index never carries. Fix: remove it.The section says that an error refuses the publish.
Token ratchet. Raise path: the standing maintainer ruling 2026-10-27 「A:先削重复,余额按实测提高」 (ruling record 6513306068, letter B).
Paid down first: four restatements in the same section.
source.contentrow's "credential-class andinternalfields are never indexed". The-field-never-indexedline now says it.namerow's "with the package, its identity". The intro says it.// no adapter: the deployment's storecomment. Theadapterrow says it.Then the row moves
6695 -> 6893(+198), by the measured remainder only:Changeset:
.changeset/37310-skill-knowledge-source-validate-rules.md,'@objectstack/skills': patch.Skill size readings (
skills/**).skills/objectstack-ai/SKILL.md: 471 -> 487 lines, 26806 -> 27596 bytes, 6695 -> 6893 tokens.Tests
All readings are at
36261634ad.os validateon the section's example: exit 0,"valid": true, zero knowledge-source findings.kb, with objectkb_article(title,body,category,published,sharingModel: 'private') and the example's source verbatim.examples/app-todo, then the directory was deleted.enable: { apiEnabled: false }, content['title', 'bodyy', 'secret']and aField.secretmember. Exit 1, with:knowledge-source-object-not-searchable(error,source.object);knowledge-source-field-unknown(error,content[1]);knowledge-source-field-never-indexed(warning,content[2]).objectstack-ai/skills-tools-knowledge#14, an app that ships no source and authors one at run time), 1 rep per arm:requires: ['knowledge'];Acceptance notes
grep -o 'knowledge-source-[a-z-]*' skills/objectstack-ai/SKILL.md | sort | uniq -cgives each of the five once.os validatewith zero knowledge-source findings (Tests).Part of #37310, notFixes: the card's create seed still waits for knowledge_source: a Studio form to create and edit a knowledge source (object, content fields, metadata fields, where, split) #37309, which is the Studio form that buildssourcefrom the author's input.knowledge_sourcestays onKNOWN_UNSEEDEDwith that reason.Verification
Skill gates under the verify lock (VERDICT command-exit 0)
pnpm turbo run build --filter='@objectstack/cli...' --concurrency=2: exit 0check:skill-docs: exit 0, "Skill docs in sync"check:skill-refs: exit 0, "10 generated files in sync with packages/spec"check:yaml-examples: exit 0, "19 tagged YAML example(s) across 1 file(s) validate"node scripts/check-skills-token-ratchet.mjs: exit 0, "61 authored bundle file(s) within their ceilings"Local subset of the derived gate families (28, each exit 0)
dispatch-gates --commands --repo objectstack-ai/objectstackderives 67 families at36261634ad. I ran 28 of them locally, each exit 0: the ratchet with its self-test,check:nul-bytes,check-empty-changeset,check-adr-0087-registration,check-changeset-no-major,check:doc-authoring,check:skill-links,check:skill-identifier-liveness,check:skill-compatibility,check:skill-frame-sync,check:published-filesand the rest of that set. CI runs the full set.Read first.
skills/objectstack-ai/SKILL.md, the new rule list just above the example. Risk: a fix that departs from the rule's hint.scripts/check-skills-token-ratchet.mjs, the6695 -> 6893comment. Check its arithmetic.Two-minute check. Run
node scripts/check-skills-token-ratchet.mjs | grep objectstack-ai/SKILL. Expect6893 / 6893.Generated by Claude Code