Repository navigation
fix(lint)!: knowledge-source review follow-ups: absent platform objects refused at publish, ai_context accepts id, search refusal names list - #38038
objectstack-fleet[bot] wants to merge 12 commits into
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): 5 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 8b29383c9d57663a26ef9ee1c6d5a8cbac684e37 && git checkout 8b29383c9d57663a26ef9ee1c6d5a8cbac684e37
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 6e2a8f2bb577b9fff5225a1280bc6cbbea680c7c 80a26dfbc5c5794a7e87fc02800fd7547d91e2e5 && git checkout -B drift-repro 6e2a8f2bb577b9fff5225a1280bc6cbbea680c7c && git merge --no-ff 80a26dfbc5c5794a7e87fc02800fd7547d91e2e5
node scripts/docs-audit/affected-docs.mjs --json 6e2a8f2bb577b9fff5225a1280bc6cbbea680c7c
|
|
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
|
repo:objectstack#1 · os-elon-musk · session_016WV4cwPhGV4g9p1BGQaZbP
Fixes #38019
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37310
维护者速读
id不再被提示字段不存在;升级指南只对用到知识源的应用列出相关条目。Stacked on PR #37971 (branch
claude/area-o1C-37307, frozen at 8301509). Item 3 editspackages/lint/src/validate-knowledge-source.ts, which only that branch has, so this branch starts from it and its diff includes #37971's commits until #37971 merges; after it merges the area mergesmainhere and the diff narrows to this card's one commit. Reviewing this card alone: read commit 80a26df.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 (29 entries, 2 of protocol 19). 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 nothing: everyai_contextfinding is a warning and the tier never refuses, so the accept set ofos validateand of publish is unchanged; only a false warning goes. 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: NOT MEASURED. The shared verification lock was saturated for the whole round (a full dogfood battery for #37971, then other areas' verify rounds; this slot queued 85+ minutes without being granted), so no package was built or tested here.
Test Core,TypeScript Type CheckandLint & Repo Gateson this PR are the verdict.Local gates that need no build (head 80a26df)
node scripts/check-adr-0087-registration.mjs --base origin/main: exit 0, "2 declared-breaking changeset(s), each carrying an ADR-0087 disposition."node scripts/check-changeset-no-major.mjs --base origin/main: exit 0.node scripts/check-empty-changeset.mjs --base origin/main: exit 0.pnpm check:nul-bytes: exit 0, "no raw ASCII control bytes".pnpm check:doc-authoring: exit 0.pnpm check:issue-citations: exit 0.pnpm check:cross-package-test-inputs: exit 0.node scripts/check-closing-keyword-parity.mjs: exit 0.node scripts/pm/overlap-check.mjs --exclude-pr=37971: VERDICT clean exit 0 (origin/main, feat(knowledge): a knowledge source needs no adapter and no requires entry; it binds to the deployment's store #38026, feat(lint): warn when a select option colour renders neutral on the option badge #37986, fix(service-knowledge)!: retire the knowledge field gate's title arm behind a per-source recipe proof #37963, feat(spec)!: action locations say what an action acts on #37929 merge cleanly).Acceptance notes
registeredwhile the branch carries fix(lint)!: a knowledge source is checked for its object, its fields and the search gates that need no caller, also at publish #37971's commit that adds the entry; once fix(lint)!: a knowledge source is checked for its object, its fields and the search gates that need no caller, also at publish #37971 merges andmainis merged here, the honest disposition becomesalready-registered(the entry is only edited), and that merge owes the one-word change.(narrowing)arm) and was not run: the lock never granted. NOT MEASURED.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