You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(spec): fix AgentSchema's @example and four stale .strict() tombstone rationales (#10922)
`AgentSchema`'s own `@example` wrote `knowledge: { sources, indexes }` — a key the
same file declares as `retiredKey()` about 110 lines below. The canonical example an
upgrading author copies taught a key the schema rejects, and typed `never` fails
`tsc` at the authoring site. Drop the line; the example keeps `skills`, which is the
whole point of the block.
Four tombstone rationales still argued from "the schema is not `.strict()`, so a
plain deletion would silently strip the key". The #4001 `strictObject` conversion
made that false for `AgentSchema`, `FieldSchema` and `ActionSchema`, and for the
premise in `shared/retired-key.ts`'s own module docblock. Each now rests on the
reason that is load-bearing today: the prescription is the payload, because an
unknown-key rejection carries neither the FROM -> TO mapping nor the migration
command, and the key is typed `never` so the mistake still fails `tsc` first.
Every tombstone stays; only the stated reason changes.
Prose only — no schema shape, acceptance behaviour or `.describe()` semantic moves.
Claude-Session: https://claude.ai/code/session_01B4h3medzvhB9rpfoja9jcw
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments