Repository navigation
fix(lint)!: knowledge-source review follow-ups: absent platform objects refused at publish, ai_context accepts id, search refusal names list - #38038
Conversation
…rincipal-free gates (WIP) Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
…s fit one line Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
… source checks Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
…unseen declared dependency, `list`-based search prescription - M1: a member's existence is judged through `injectedColumnsFor`, so `id` (driver-provisioned, absent from `injectedColumnDefsFor`) resolves. - S1: on the CLI, while the manifest declares a dependency the artifact does not carry, an unresolved object is a warning with the hedge; under a stated closure or against the whole collection (door) it stays an error. - S2/N2: the search gate prescribes `list` with `searchable` not false; `searchable: false` refuses only beside an `apiMethods` list. - N1: per-verdict wording of what each finding costs. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
…d collection Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
The save door's not-served refusal names list and searchable; ai_context resolves field existence through injectedColumnsFor so id passes; an absent platform object name against the whole served collection is an error at publish; the publish-refuses upgrade entry carries relevantWhen. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
📓 Docs Drift CheckThis PR changes 3 package(s): 3 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin ed96abb48aa1bc1ed871e5c2021ccedd1b6e7d5a && git checkout ed96abb48aa1bc1ed871e5c2021ccedd1b6e7d5a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f72f335393f40e27194c56911e6de46052cb6f4c 4cdbceedc242ee2b5d63b73cbf47b7f387397224 && git checkout -B drift-repro f72f335393f40e27194c56911e6de46052cb6f4c && git merge --no-ff 4cdbceedc242ee2b5d63b73cbf47b7f387397224
node scripts/docs-audit/affected-docs.mjs --json f72f335393f40e27194c56911e6de46052cb6f4c
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head 80a26df · 2026-11-27T19:23Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Stacked PR. The branch carries PR #37971 at 8301509, whose commits are covered by its own records (7221784031, then 7224039424 on that head). This record judges the one commit 80a26df ( Inputs read: card #38019 body and its three comments (triage 7224148251, claim 7224310710, dev report 7226457832), card #37307, PR #38038 body and comments, records 7221784031 and 7224039424 and seat ruling 7221816104 on #37971, and the check-runs on the head. ① Derived judgments
② Semver level
ADR-0087 marker. It reads ③ Boundary flags
④ Design judgmentThe narrowing against the published spec. ADR-0161 K4 on main says a Tried to break it: can a legitimately served platform object be refused?
Not broken. Every refusal the new condition produces is of a name the host does not serve. Consistency with the siblings. The list-view member never consulted the platform-name predicates under the whole collection, so a list view over an absent Item 1, wording. The shipped text is the card's sentence, cause and fix, character for character, and it is the wording #37971's rule message carries (validate-knowledge-source.ts:287-292). It agrees with Item 2, Item 4. Judged in ③: rule A is the contract's reading. No must-fix, no should-fix. N1 (nit) — under a stated closure an absent known platform name is still skipped. The closure keeps every system object unconditionally (runtime-gate.ts, limb 1), so for a N2 (nit) — the rule header says the two platform arms apply "both on the CLI and under a closure". Under a closure only the first does: a platform-prefixed name no known package registers reaches the closure arm and is an error with the dependency remedy, never the warning. The N3 (nit) — the PR body says item 2 leaves the accept set of N4 (nit) — a N5 (nit) — the PR body's Tests section still reads NOT MEASURED while the dev report carries measured runs and an ablation at this head. The seat aligns the body, as the report asks. N6 (nit) — at a write that names no package the refusal says "which this stack does not define" and the hint offers "declare that package in the manifest's Owed before queueing, none of it a change to this head: a green re-run of Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head 席位核对Shape. The PR is stacked on #37971 at 8301509, whose commits are covered by that PR's own records. This verdict judges the one commit 80a26df (11 files, +150/-24). Contract review. Record 7226609684 at this head: PASS at the contract tier (
Before the seat's handoff.
Nits, PR-body or follow-up. N3: the body's item-2 accept-set sentence, which differs under Landing: narrowing, so it goes through the seat's Tier H handoff. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP Re-run receipt · area o1-C · head
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP
…ded; relevance counts on the merged tree 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 · 4cdbcee · 2026-11-28T03:45Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: Delta record. The previous record (7226609684) passed head 80a26df with no graded finding open, so this record closes none; it judges what moved between that head and this one. Since then PR #37971 landed on main as the squash 3550665, merge 2634eef brought main at f72f335 into the branch, and commit 4cdbcee edited the changeset marker and the relevance counts. The design judgment of the previous record carries unchanged, because the reviewed bytes carry unchanged (see ①). ① Derived judgments(a) Net diff, old against new. The old net diff is 8301509 to 80a26df; the new one is the merge base f72f335 to this head. Both are 11 files, +150/-24, the same 11 paths. Compared changed line by changed line, they differ in exactly two places and nowhere else:
Nothing is lost and nothing is gained beyond those two. Every hunk of the eight code files and of the two rule tests is identical in both diffs. Right. (b) The add/add resolutions. The squash added four paths the branch also carried. For each, main's blob at f72f335 is byte-identical to the stack base's blob, so the squash carried no later change that taking this branch's side could drop:
"This branch's side" is right for all three resolved files: it is main's content plus this card's hunks and nothing else. (d) The counts. Main's table at f72f335 has 29 rows (the 28 the stack base had, plus Accept sets and public surface: as judged in the previous record, items 1 to 8 of its ①. No line that decides any of them moved. ② Semver levelUnchanged and still right: (c) The marker.
③ Boundary flags
④ Design judgmentNothing in the design moved. The rule file, the The one thing the merge could have changed is the ground the narrowing stands on: the registry entry of the rule, the gate's The marker change is a statement about the registry, judged in ②, and it is true. No must-fix, no should-fix. N4 (nit) — carried from the previous record and still unanswered: a Closed by the delta, by id: N3 (the body now gives the right reason, with the texts cited), N5 (the body reports measured runs). Moved to #38041: N1, N2, N6. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head Review summaryContract review. I adopt delta record 7233405121 at this head. It is PASS at the contract tier (
This round's conditions, from ACCEPT 7226623864, are all met: main is merged after #37971, the marker is flipped, and the N3 and N5 body edits are made. Gates.
Notes for the landing.
Next: this is a narrowing, so it goes to the seat for the Tier H approval. The PR is still a draft. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Seat record · 2026-11-28T03:50Z · PR #38038 (Fixes #38019) · head 维护者速读
Seat opinion: land. 席位核对 — ACCEPT · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwoXEE1amuRAGHdPBs Approval request · @os-zhuang: review follow-ups of #37971. A knowledge source whose
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
Fixes #38019
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37310
维护者速读
id不再被提示字段不存在;升级指南只对用到知识源的应用列出相关条目。Was stacked on PR #37971, which merged as 3550665.
main(f72f335) is merged here (2634eef, no rebase); the diff againstmainis now this card's 11 files, +150/−24. The add/add conflicts the squash left were resolved to this branch's side forvalidate-knowledge-source.ts, its test and the step-19 entry (main's blob equals the stack base 8301509 for each), andrule-explanations.tsmerged three-way clean against that base.What changes
service-knowledge). Theobject-api-not-servedrefusal ofadmitAuthoredSourcenow uses the wording PR fix(lint)!: a knowledge source is checked for its object, its fields and the search gates that need no caller, also at publish #37971 settled for its S2 fix: the cause isenable.apiEnabledfalse, anenable.apiMethodslist that does not grantlist(from which search derives), orlistbesideenable.searchable: false; the fix is to keepapiEnabledtrue and includelistwithsearchablenot false, or index another object. It no longer tells the author to grantsearch, a retired list value the parse strips. The admission module's gate-2 header says the same.ai_contextandid(validate-ai-context.ts). Field existence (fields, a related list'sfields,where,orderBy,body.field) is now asked throughinjectedColumnsFor, assystem-fields.tsprescribes for an existence check, beside the effective field map.id(driver-provisioned, absent frominjectedColumnDefsForby contract) is no longerai-context-field-unknown; abody.fieldofidis reported as not long text. The type questions (body type, sortability, links) still read the definition map.validate-knowledge-source.ts). Against the whole collection the host serves (no package scope at publish), an absent platform-prefixed name and an absent known platform name (sys_user) are nowknowledge-source-object-unknownerrors, as an unprefixed name already was. The CLI arms stay: a prefixed name no known package registers warns, a known platform name the stack does not carry is not judged. Under a stated closure nothing changes. Theos explainentry and the upgrade entry'ssurfacesay which arm is the CLI's.relevantWhen(spec).knowledge-source-publish-refuses-missing-references-and-gated-objectscarriesrelevantWhen: { kind: 'stack-declares', keys: ['knowledgeSources'] };semantic-relevance.test.ts's reviewed table gains the row (30 entries, 3 of protocol 19:mainhad meanwhile added19:action-locations-page-parts-retired, so the merge corrected the counts). The four sibling19.knowledge-source-*entries are deliberately left without one: each names a surface outside the stack (a source registered in code throughKnowledgeServicePlugin({ sources })/registerSource, or host calls toindexDocument), andSemanticMigration.relevantWhen's contract says to omit the question unless the surface lives ONLY under the keys it names, so a stack with noknowledgeSourcesis not proven clear of them.Declaration: item 3 narrows the publish accept set (a source over an absent platform object was published with a warning or unjudged, and is now refused 422), hence
no (narrowing)andMetadata-protocol: narrowed(a value refused). Item 2 widens no published accept set. Under--strict, where a warning fails the run, a pack namingidis now accepted; the refusal it removes is one the published contract already denies, sinceidexists on every object:packages/spec/src/data/injected-system-columns.tsnames it the primary key the driver provisions on every physical table (PRIMARY_KEY_COLUMN = 'id', around lines 74-79), andpackages/lint/src/system-fields.tsreports it frominjectedColumnsFor, the existence helper (its note near line 100 saysinjectedColumnDefsForleaves it out by design). Removing a refusal the contract already denies, with that text cited, reads asno; so the PR staysClause-②: no (narrowing), the narrowing being item 3 alone. The claim carriedMetadata-protocol: none; the dispatch left the kind to the diff, and AGENTS.md's definition ("a value refused ... isnarrowed") fits item 3.Tests
packages/services/service-knowledge/src/__tests__/knowledge-source-admission.test.ts: alist+searchable: falserow in the refusal table; a pin that the not-served refusal namesdoes not grant \list`andinclude `list` with `enable.searchable` not false, and never prescribes asearch` grant, for all three not-served shapes.packages/lint/src/validate-ai-context.test.ts:idinfields, relatedfields,whereandorderByis clean, through the rule and throughrunAuthoringRules('validate', …); a control misspelling is still reported;body.field: 'id'is not long text, never unknown.packages/lint/src/validate-knowledge-source.test.ts: at the door with no scope,sys_kb_article(prefixed, unregistered) andsys_user(known platform) absent from the served collection are refused as errors; the CLI arms stay (warning, not judged); a control with the platform object served publishes clean.packages/spec/src/migrations/semantic-relevance.test.ts: the enumeration table and its counts.Local runs at head
4cdbceedc2, each underscripts/pm/os-verify-lock.sh(verdictcommand-exit 0):@objectstack/lint: 244 test files, 9859 tests passed.@objectstack/service-knowledge: 19 files, 648 tests passed.@objectstack/specsrc/migrations: 5 files, 207 tests passed.idpins and the whole-collection platform pin), service-knowledge 1 failed (the wording pin), spec 2 failed (the enumeration table and CHAINabsentTodos); restored, all green.(narrowing)arm): 490 files passed, 3 skipped; 4144 tests passed, 68 skipped; no failures.Gates at head 4cdbcee
dispatch-gates --commands: 98 commands derived over the 11 paths, all 98 run, each exit 0 (two first answered "not built yet" inside the lock job,migrate-meta-engine-guidancevitest andcheck:dual-build-cjs-loads, and exit 0 once the dogfood closure build had built their packages).node scripts/check-adr-0087-registration.mjs --base origin/main: exit 0, reading the marker asnot-required (already-registered).node scripts/pm/overlap-check.mjs: VERDICT clean exit 0 against origin/main 5b8ca36, fix(lint)!: publish-time checks for views, dashboards and the app shell that save and do not work #38107 and feat(knowledge)!: refuse a knowledge_source save that names an adapter the running deployment does not mount #38060.Acceptance notes
not-required (already-registered knowledge-source-publish-refuses-missing-references-and-gated-objects): fix(lint)!: a knowledge source is checked for its object, its fields and the search gates that need no caller, also at publish #37971 registered the entry and this PR only edits it (commit 4cdbcee).4cdbceedc2and is green (above).cloud_andai_names), N2 (the rule header and explain text on which platform arm applies where) and N6 (the stack/manifest wording at a write that names no package).Verification
Read first:
packages/lint/src/validate-knowledge-source.ts(thewholecondition on the two platform rungs, the one behavioural narrowing),packages/lint/src/validate-ai-context.ts(fieldExistsand thebody.fieldbranch),packages/services/service-knowledge/src/knowledge-service.ts(theobject-api-not-servedtext).Two minutes:
pnpm --filter @objectstack/lint exec vitest run --maxWorkers=2 src/validate-knowledge-source.test.ts src/validate-ai-context.test.tsafter building lint's closure: all green, including "against the whole collection, an absent platform name, prefixed or known, is refused as an unprefixed one is".🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cwPhGV4g9p1BGQaZbP