Repository navigation
docs(spec,ai): agent.zod.ts stops saying the absorbed topics-to-sources conversion is in the chain; agents page names the excess-property tsc error - #38031
Conversation
…s conversion is not in the chain Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
…oved tools and knowledge keys; spec patch changeset Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxBECSPtHxQMZDHSie
📓 Docs Drift Check
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): |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie Final head for review: |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract-review-claim: session_016WV4czzx9dtSEm3jWWL9c3 · head c5a5d51 · 2026-11-27T18:25Z |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 Contract reviewServed-tier: First record on PR #38031 for card #38012 (the follow-up to N1 and N2 of record 7222359751 on PR #38003). Read: the card body and its three comments (triage 7223000822, claim 7224432682, dev report 7224881775); the PR title, body, its 3-file list and its comments (docs-drift 7224891493, head comment 7225468412, review claim 7225491125); the net diff against the merge base
① Derived judgments
② Semver level
Clause-②: no. Correct on the PR body and in the changeset: no accept set moves. The changeset, sentence by sentence against the tree:
③ Boundary flags
④ Design judgment
Tried to break it: the new sentence could be read as saying a removal conversion is still in the chain. It does not say so. It says the rename was absorbed into the removal, which is the history the cited note records, and it makes no claim about where the removal entry lives today.
Observation, outside the diff and not graded: the ABSORBED note the docblock cites says "( No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-elon-musk · session_016WV4czzx9dtSEm3jWWL9c3 L1 verdict (L1-a): ACCEPT at head 席位核对Shape and gates. 3 files, +16/-4: a jsdoc comment, two docs rows and a Contract review. The comment change in What I read myself. This closes N1 and N2 of record 7222359751 (#38003).
Follow-up, optional. The ABSORBED note says "( Landing: not governed, so the area lands it after ACCEPT. |
|
repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie Landing by area o1-B · 2026-11-27T18:30Z · head
Optional observation from both records, outside this diff and not filed: the ABSORBED note in |
Requested by Elon · project thread
Fixes #38012
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
packages/spec/src/ai/agent.zod.ts, the note whereAIKnowledgeSchemaused to live. It said the protocol-17agent-knowledge-topics-to-sourcesconversion "remains in the chain". It does not: the rename was absorbed before release into the removal of the wholeagent.knowledgeblock (the ABSORBED note atconversions/entries/17/sharing-rule-access-level-full-to-edit.ts:17), no registry or entry module carries the id, andretired-after.census.jsonhas no row for it. The sentence now says exactly that. Comment only: no schema, type or export changes.content/docs/ai/agents.mdx, thetoolsandknowledgerows. Each gains a half-clause: adefineAgent({ … })literal that sets the removed key failstscas an excess property (TS2353), beside the existing parse refusal.defineAgenttakesz.inputof the strictAgentSchema, a closed object type. The old by-nameneverrefusal is not claimed.@objectstack/specpatch (spec publishessrc/**/*.zod.ts), carrying both declaration lines.Tests
All readings at head
c5a5d51901, worktree fromorigin/main8b47659e8e.Type check of the new docs claim (throwaway probe against the rebuilt spec dist)
A scratch file outside the repo, compiled with tsc 6.0.3 (
--ignoreConfig --noEmit --strict --module nodenext --moduleResolution nodenext --skipLibCheck) againstpackages/spec/dist/index.jsafterpnpm --filter @objectstack/spec build(VERDICT command-exit 0):defineAgent({ name, label, role, instructions }): no diagnostic;tools: [...]:error TS2353: Object literal may only specify known properties, and 'tools' does not exist in type ...;knowledge: { topics: [...] }:error TS2353: ... and 'knowledge' does not exist in type ....No existing type test pins this. The probe file was not committed.
Spec tests and typecheck (under the verify lock)
pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2oversrc/ai/agent.test.ts,agent-lifecycle-retirement.test.ts,agent-memory-store-retirement.test.ts,agent-model-provider-retirement.test.ts,src/conversions/retired-after.census.test.ts: Test Files 5 passed (5), Tests 122 passed (122); VERDICT command-exit 0.pnpm --filter @objectstack/spec typecheck: VERDICT command-exit 0.Derived gates (dispatch-gates --commands, 105 commands)
check:docs,check:doc-authoring,check:doc-anchors,check:issue-citations,check:nul-bytesandcheck-affected-docs.@objectstack/lintand@objectstack/formulawith their dependencies:check:doc-formula-expressions,check:doc-security-posture,check:docs-transcript-drift.check:skill-examples(client SDK dist),check:dual-build-cjs-loads,check:lean-entry-closure.--ranreconciliation: 105 derived, 105 run, 0 UNRUN.Acceptance notes
!in the title, so the full dogfood battery is not owed.Verification
Read first (by risk):
content/docs/ai/agents.mdx(the two table rows: the only claim a reader acts on), thenpackages/spec/src/ai/agent.zod.ts(the rewritten note).Two-minute check:
git grep -n "agent-knowledge-topics-to-sources" -- packages/spec/srcshows three hits, all comments (the ABSORBED note, the protocol-18 note that cites it, and this note), and noid:line, which is what the rewritten sentence says.Generated by Claude Code