Skip to content

docs(skill): correct issues[] field names + split spec-optional from SDK-synthesized - #3932

Merged
bokelley merged 1 commit into
mainfrom
bokelley/skill-issues-fields-fix
May 3, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/skill-issues-fields-fix

Conversation

@bokelley

@bokelley bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #3927. Three corrections to skills/call-adcp-agent/SKILL.md:

  1. schemaId → schema_id. static/schemas/source/core/error.json:54 defines the wire field as snake_case. The TS SDK camelCases on receive, but this skill is read by Python / Go / raw-HTTP callers too, who get a literal KeyError reaching for schemaId. The casing variance is now called out in one line so SDK users can still navigate.

  2. Spec-optional vs SDK-synthesized split. schema_id and discriminator are wire fields per error.json. hint and allowedValues are not in error.json — they're synthesized by @adcp/sdk after parsing. Grouping all four as "implementation-dependent fields a validator may opt into emitting" told non-TS callers to look for fields no AdCP seller is obliged to emit. Split into two tiers with the SDK-side ones moved into a clearly-labeled callout.

  3. Recovery order. Restored pointer + keyword + variants as the unconditional one-step path; treats discriminator / hint / schema_id as shortcuts when present rather than required first reads. The previous front-loading forced callers to branch on optional fields that are absent on the long tail.

Also fixes the discriminator item shape in prose and table — items are {property_name, value} per error.json:65-71, not {field, value}.

Why

#3927 was self-merged 4 minutes after opening, before either expert review or the TypeScript Build check completed. Two follow-up reviews (ad-tech-protocol-expert, docs-expert) flagged the same three issues independently. Doc-only fix to bring the skill in line with the actual wire schema and the spec/SDK boundary.

Risk

Low. Doc-only. No wire-format change. No schema change.

3.0.x

Not for cherry-pick. schema_id and discriminator were added to error.json in #3875 (main only) — origin/3.0.x still has only schemaPath. Documenting these fields in 3.0.x's SKILL.md would document fields no 3.0.5-conformant seller emits.

Verification

  • skills/call-adcp-agent/SKILL.md renders cleanly (Markdown + table syntax intact)
  • Field names match static/schemas/source/core/error.json exactly
  • Changeset present (--empty, doc-only)

🤖 Generated with Claude Code

…SDK-synthesized

Follow-up to #3927. Corrects three issues in skills/call-adcp-agent/SKILL.md:

1. schemaId -> schema_id. error.json defines the wire field as snake_case
   (line 54). The TS SDK camelCases on receive, but this skill is read by
   Python/Go/raw-HTTP callers too — documenting the SDK-normalized form
   broke them. Casing variance now called out separately so SDK users can
   still navigate.

2. Spec-optional vs SDK-synthesized split. schema_id and discriminator are
   defined on the wire in error.json; hint and allowedValues are not — they
   are synthesized by @adcp/sdk after parsing. Lumping all four under
   "implementation-dependent fields a validator may opt into" told non-TS
   callers to look for fields no AdCP seller emits. Split into two tiers
   with the SDK-side ones moved into a separate callout.

3. Recovery order. Restored "patch the pointers using keyword + variants,
   resend" as the unconditional one-step path; treats discriminator /
   hint / schema_id as shortcuts when present rather than required first
   reads. Front-loading optional fields was forcing branching on values
   absent on the long tail.

Also fixes discriminator item shape in prose and table — items are
{property_name, value} per error.json:65-71, not {field, value}.

Doc-only. No wire-format change. Not for cherry-pick to 3.0.x —
schema_id + discriminator landed in error.json via #3875 (main only) and
are not in the 3.0.x wire schema.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@bokelley
bokelley merged commit d9ac5f4 into main May 3, 2026
13 checks passed
@bokelley
bokelley deleted the bokelley/skill-issues-fields-fix branch May 3, 2026 02:34
bokelley added a commit that referenced this pull request May 7, 2026
…SDK-synthesized (#3932) (#4193)

Follow-up to #3927. Corrects three issues in skills/call-adcp-agent/SKILL.md:

1. schemaId -> schema_id. error.json defines the wire field as snake_case
   (line 54). The TS SDK camelCases on receive, but this skill is read by
   Python/Go/raw-HTTP callers too — documenting the SDK-normalized form
   broke them. Casing variance now called out separately so SDK users can
   still navigate.

2. Spec-optional vs SDK-synthesized split. schema_id and discriminator are
   defined on the wire in error.json; hint and allowedValues are not — they
   are synthesized by @adcp/sdk after parsing. Lumping all four under
   "implementation-dependent fields a validator may opt into" told non-TS
   callers to look for fields no AdCP seller emits. Split into two tiers
   with the SDK-side ones moved into a separate callout.

3. Recovery order. Restored "patch the pointers using keyword + variants,
   resend" as the unconditional one-step path; treats discriminator /
   hint / schema_id as shortcuts when present rather than required first
   reads. Front-loading optional fields was forcing branching on values
   absent on the long tail.

Also fixes discriminator item shape in prose and table — items are
{property_name, value} per error.json:65-71, not {field, value}.

Doc-only. No wire-format change. Not for cherry-pick to 3.0.x —
schema_id + discriminator landed in error.json via #3875 (main only) and
are not in the 3.0.x wire schema.

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
bokelley added a commit that referenced this pull request May 8, 2026