Repository navigation
docs(skill): correct issues[] field names + split spec-optional from SDK-synthesized - #3932
Merged
Merged
Conversation
…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]>
This was referenced May 7, 2026
ci(release): backport forward-merge bridges (#3905) to 3.0.x — fixes underlying issue in #4189
#4192
Merged
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]>
Summary
Follow-up to #3927. Three corrections to
skills/call-adcp-agent/SKILL.md:schemaId→schema_id.static/schemas/source/core/error.json:54defines 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 literalKeyErrorreaching forschemaId. The casing variance is now called out in one line so SDK users can still navigate.Spec-optional vs SDK-synthesized split.
schema_idanddiscriminatorare wire fields pererror.json.hintandallowedValuesare not inerror.json— they're synthesized by@adcp/sdkafter 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.Recovery order. Restored
pointer+keyword+variantsas the unconditional one-step path; treatsdiscriminator/hint/schema_idas 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
discriminatoritem shape in prose and table — items are{property_name, value}pererror.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_idanddiscriminatorwere added toerror.jsonin #3875 (main only) —origin/3.0.xstill has onlyschemaPath. 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.mdrenders cleanly (Markdown + table syntax intact)static/schemas/source/core/error.jsonexactly--empty, doc-only)🤖 Generated with Claude Code