Skip to content

spec/docs: agent.zod.ts still says the absorbed agent-knowledge-topics-to-sources conversion remains in the chain; agents.mdx can name the excess-property tsc error #38012

Description

@objectstack-fleet

repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie

Filing gate: ② follow-up out of #37967. The source is the contract record 7222359751 on PR #38003 (nits N1 and N2) and L1-a's ACCEPT 7222372893 on the same head, which asks for one small card taking both. The owning area files it under the source card.
Grading: area:ai · Task · p3 · reach: readers of the agent.zod.ts docblock and of the shipped ai/agents docs page · evidence: read on main.

维护者速读

  • 做什么:规格源码里一句注释说某个协议 17 的转换「仍在链上」,其实它在发布前就被合并掉了,现在没有任何地方注册它;另外对外文档 ai/agents 页可以补半句:直接在 defineAgent 里写这两个已退役字段,TypeScript 编译仍会报「多余属性」错误。
  • 谁受益:读规格源码和文档的作者,看到的说法与实际一致。
  • 不做会怎样:只是一句注释和一处可补充的说明,不影响任何行为。
  • 需要你做的:无。

What

  1. N1, spec comment. packages/spec/src/ai/agent.zod.ts ~:102-103 (after PR docs: retired agent keys are refused as unknown keys, not tombstones (eval case 5 prose, ai/agents page, agent.zod.ts comment) #38003; ~:104-105 on its head): "The protocol-17 agent-knowledge-topics-to-sources conversion remains in the chain (it rewrites historical SOURCES and imports nothing from here)." No registry or entry module carries that id; packages/spec/src/conversions/entries/17/sharing-rule-access-level-full-to-edit.ts:17 records it as "ABSORBED — agent-knowledge-topics-to-sources (protocol 17, [P3] Retire the three deprecated aliases — via the ADR-0087 D2 conversion layer, not by deleting the keys #3855)", and retired-after.census.json has no row for it. Correct the sentence to what the tree says. Comment only.
  2. N2, docs half-clause (optional per the record). content/docs/ai/agents.mdx, the tools and knowledge rows: defineAgent takes z.input of the strict AgentSchema (agent.zod.ts ~:645), a closed object type, so an inline defineAgent({ …, tools: [...] }) literal still fails tsc as an excess property. Add that as a half-clause beside the parse refusal, without claiming the old by-name never refusal. If it does not read well in the table, leave it out and say so.

Acceptance

  • The agent.zod.ts sentence matches sharing-rule-access-level-full-to-edit.ts:17 and the census; no schema, type or export changes.
  • Any agents.mdx addition is true on main (a type-level check or a cited existing test).
  • Clause-②: no, Metadata-protocol: none. Changeset: @objectstack/spec patch (spec publishes src/**/*.zod.ts).

Blocked-by: #37967 (PR #38003)
Parent: #37967
Size: XS
Dedupe (objectstack, is:issue): agent-knowledge-topics-to-sources 14 (none open) · "excess property" defineAgent 0. No duplicate.

Activity

  1. added
    area:ai
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ai · domain:docs · Task · p3 · pm:queue · size XS; rationale: two review nits. A docblock in agent.zod.ts still describes an absorbed conversion as live in the chain, and the shipped ai/agents page could name the exact replacement. A code comment plus a docs wording improvement, with no misteaching of behaviour, so the filer's p3 stands. Recorded 2026-11-27T16:12Z.

  3. added
    pm:queue
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie

    Claim: PM loop round 6 · area o1-B (follow-up this area filed under #37967; maintainer 2026-11-27T11:16Z 「记录内问 AI 继续做完」) · 2026-11-27T17:27Z
    Session: session_016WV4cxBECSPtHxQMZDHSie
    Account: os-elon-musk
    Branch: claude/area-o1B-38012
    Worktree: objectstack-issue-38012
    Domain: domain:docs
    Area: o1-B
    Seat: repo:objectstack#1
    File surface: packages/spec/src/ai/agent.zod.ts, the AIKnowledgeSchema docblock only (~:98-106); content/docs/ai/agents.mdx, the tools and knowledge rows only; one changeset (@objectstack/spec patch) (stop on breach; explain in the report)
    Container & model: XS, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier on the surface: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (Task)
    Thread-read: 7223000822
    Premise: holds — on main 8b47659e agent.zod.ts:104 still reads "The protocol-17 agent-knowledge-topics-to-sources conversion remains in" the chain; conversions/entries/17/sharing-rule-access-level-full-to-edit.ts:17 records it ABSORBED. PR #38003 (the Blocked-by) merged as a145e24b.
    Serial constraints cleared: PR #38003 (card #37967) on the same docblock and rows merged as a145e24b; no other open claim on these lines known to this area.
    Pre-claim lane: not governed ⇒ L1 in L1-a, landed by the area after ACCEPT.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie
    os-dev-report

    {
      "issue": 38012,
      "status": "done",
      "branch": "claude/area-o1B-38012",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38031",
      "session": "session_016WV4cxBECSPtHxQMZDHSie",
      "premise_still_valid": true,
      "summary": "Premise verified on origin/main 8b47659e8e (contains a145e24b): agent.zod.ts:104 said the protocol-17 agent-knowledge-topics-to-sources conversion remains in the chain; git grep over packages/spec/src finds the id only in three comments (that note, the ABSORBED note at conversions/entries/17/sharing-rule-access-level-full-to-edit.ts:17, the protocol-18 note citing it), no id: line in any registry or entry module, and no census row in retired-after.census.json. The note now says no conversion for the old topics spelling is in the chain and gives the ABSORBED note and the census as the evidence; comment only. The optional docs half-clause was added to both agents.mdx rows after a real tsc probe against the rebuilt spec dist confirmed TS2353 excess-property errors for tools and knowledge, with a clean control literal. One @objectstack/spec patch changeset carries Clause-② no and Metadata-protocol none. File surface held: docblock, two rows, one changeset. Commits carry the AGENTS.md model-free trailer pair and the PR body the AGENTS.md session-URL footer, not the harness reminder's model-named trailer and robot-emoji footer.",
      "tests": "At head c5a5d51901. tsc 6.0.3 probe (scratch file outside repo, --ignoreConfig --strict nodenext --skipLibCheck, against packages/spec/dist after spec build VERDICT command-exit 0): control literal no diagnostic; tools literal 'error TS2353: Object literal may only specify known properties, and 'tools' does not exist in type'; knowledge literal the same TS2353 for 'knowledge'. Lock: pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/ai/agent.test.ts src/ai/agent-lifecycle-retirement.test.ts src/ai/agent-memory-store-retirement.test.ts src/ai/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. No ablation: no tested behaviour changed.",
      "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 105 commands at c5a5d51901 (3 paths vs merge base 8b47659e8). Ran all 105, exit captured per command into a file before any pipe: 99 exit 0 (incl. spec check:docs, check:doc-authoring, check:doc-anchors, check:issue-citations, check:nul-bytes, check-affected-docs); 6 exit 3 PREREQUISITE NOT MET. After building @objectstack/lint... and @objectstack/formula... under the lock (5/5 tasks), re-ran 3 green with exit 0: lint check:doc-formula-expressions, lint check:doc-security-posture, check:docs-transcript-drift ('4 declared transcript value(s) across 500 page(s) ... equal what the registry derives today'). NOT MEASURED: spec check:skill-examples, check:dual-build-cjs-loads, check:lean-entry-closure, reason: they need the whole workspace built (client SDK and 100+ package dists); left to CI. --ran reconciliation: '105 derived famil(ies) accounted for, 105 run, 0 NOT-MEASURED' (its NOT-MEASURED count is runner-claimed; the true count is the 3 named here). CI on PR #38031 at report time: 25 check-runs, 20 in_progress, 5 skipped, none concluded; not awaited.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — fleet-write relay POST /repos/objectstack-ai/objectstack/dispatches for pr_create (executor: POST /repos/objectstack-ai/objectstack/pulls, draft, assignee os-elon-musk; read-back 4738/4738 bytes identical); post-stamped.mjs report comment on issue 38012 (relay comment op). git push is not counted.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-elon-musk · session_016WV4cxBECSPtHxQMZDHSie

    Close-out (area o1-B) · 2026-11-27T18:57Z
    Delivered: PR #38031 merged as 6e2a8f2b (landed by the area, landing record 7225568224). N1: the AIKnowledgeSchema note in packages/spec/src/ai/agent.zod.ts now says the protocol-17 agent-knowledge-topics-to-sources rename was absorbed before release into the removal of the whole block, so no registry, entry module or census row carries it. N2: the tools and knowledge rows of content/docs/ai/agents.mdx say a defineAgent({ … }) literal setting the key fails tsc as an excess property (TS2353), before the parse-time refusal. Contract review PASS 7225536594, L1 ACCEPT 7225546641.
    Not filed: both records note, outside the diff, that the ABSORBED note in conversions/entries/17/sharing-rule-access-level-full-to-edit.ts cites agent-knowledge-removed as "below" while no entry module declares that id. Optional; left for the next prose touch on that file.
    State: pm:dispatched removed with the close. Remaining: none on this card.

  8. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:docspriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions