Skip to content

Hosted capability probes still send the SDK's prerelease default version (recommend_storyboards, pre-selection probes) #7828

Closed

Description

@andybevan-scope3

Summary

Follow-up to #7356 (fixed by #7682 and #7683). Those PRs pinned evaluate_agent_quality's capability probes to the run's compliance target. A few other hosted capability probes still call testCapabilityDiscovery without adcpVersion, so @adcp/sdk falls back to its built-in ADCP_VERSION. With @adcp/[email protected] that is 3.2.0-rc.7, which goes on the wire as adcp_version: "3.2-rc.7".

Per docs/reference/versioning.mdx (pre-release pins are matched exactly and never downshifted), a seller that advertises supported_versions: ["3.1"] correctly rejects that probe with VERSION_UNSUPPORTED. The probe then fails and the tool falls back or degrades, and the seller's logs show a prerelease request it never advertised. That's the symptom reported in #7356.

1. Bug: recommend_storyboards ignores an explicit compliance_target when probing

server/src/addie/mcp/member-tools.ts (recommend_storyboards handler, testCapabilityDiscovery call around line 5366) resolves runTarget = targetFromInput(input) and then probes with only auth. When the caller passes an explicit compliance_target (for example 3.1.20), the probe should be pinned to that target, as explicitTargetSupportErrorFromAgent and inferHostedAuthProbeTask already are:

withSdkSafeTransport(withHostedTestOptions({ ...(authOption && { auth: authOption }) }, runTarget))

2. Design question: probes that run before any target is chosen

These probes run before a target exists, so there's no version to pin to yet:

  • recommend_storyboards with no explicit compliance_target (same call site as above).
  • GET /registry/agents/:encodedUrl/applicable-storyboards in server/src/routes/registry-api.ts (probe around line 9607, then selectCanonicalHostedComplianceTargetForProfile).
  • selectComplianceTargetForAgentSelection in server/src/addie/services/compliance-testing.ts, when there are no stored supported versions to seed a pinned probe.

Today each of these sends the SDK's prerelease default. Options:

  • (a) Major-only envelope. Probe with versionEnvelope: 'major-only', which sends only adcp_major_version. The SDK's own comply uses this as a fallback. The SDK reference server resolves a major-only request to a supported release in that major, so a 3.1-only agent should answer. Real sellers may differ.
  • (b) Pin to the canonical default target (3.0) for discovery, then re-pin to the selected target for the run.
  • (c) Leave as is, and document that pre-selection probes may be rejected by agents that don't support the SDK's default.

docs/protocol/get_adcp_capabilities.mdx and static/schemas/source/enums/error-code.json describe calling capabilities without a pin as the recovery path. The SDK has no way to send a request with no version at all, which is why (a) is the closest match.

Out of scope (tracked separately)

Probes pinned via withHostedTestOptions throw ConfigurationError before sending when the target is a prerelease the SDK doesn't bundle a schema for (for example 3.2.0-rc.6). The fix is withExternalSchemaRoot. That's a separate problem with a separate fix.

Acceptance

  • recommend_storyboards with an explicit compliance_target probes at that target's version, with a regression test in the style of server/tests/unit/compliance-target-discovery.test.ts.
  • A decision on option (a), (b), or (c) for pre-selection probes, applied consistently to the three call sites above.

Activity

  1. added
    bug
    addie
    on Sep 30, 2026
  2. added
    claude-triaging
    on Sep 30, 2026
  3. added this to the P0 Bugs milestone on Sep 30, 2026
  4. added
    priority:P0
    on Sep 30, 2026
  5. bokelley commented on Sep 30, 2026

    @bokelley
    Contributor

    Triage

    Classification: Bug (Part 1) + Design question (Part 2)
    Bucket(s): addie, compliance-suite
    Status: ready-for-human
    Milestone: P0 Bugs

    What the experts said:

    • ad-tech-protocol-expert: Part 1 is a blocker — withHostedTestOptions omitted at member-tools.ts:5366, probe sends 3.2-rc.7 regardless of compliance_target; option (a) is the protocol-correct recovery path per get_adcp_capabilities.mdx; option (c) is a known interop break, not a documentation-only fix.
    • code-reviewer: Part 1 fix is mechanical and correct — runTarget is never undefined (targetFromInput always returns a valid HostedComplianceTarget), no mutation hazard after the probe; versionEnvelope: 'major-only' is unconfirmed in SDK rc.53 types — option (c) is the safe default for bootstrap probes until confirmed.

    My take: Part 1 is a clear non-breaking fix ready to implement. Part 2 is a design call that depends on SDK support for versionEnvelope. @bokelley, your call on Part 2.


    Part 1 — ready to implement

    member-tools.ts:5366 — recommend_storyboards calls testCapabilityDiscovery without withHostedTestOptions, so it probes with the SDK prerelease default regardless of the caller's compliance_target. Every analogous site in the file already uses the correct pattern. Open PR #7688 fixes a different call site (classifyCapabilityResolutionErrorWithDeclaredProtocols).

    // member-tools.ts:5366 — add withHostedTestOptions
    const caps = await testCapabilityDiscovery(resolved.resolvedUrl,
      withSdkSafeTransport(withHostedTestOptions({ ...(authOption && { auth: authOption }) }, runTarget)),
    );

    Regression test: mock testCapabilityDiscovery in the style of server/tests/unit/compliance-target-discovery.test.ts; assert withHostedTestOptions receives runTarget when hasExplicitComplianceTarget(input) is true. Extract the probe as a standalone helper (parallel to inferHostedAuthProbeTask) for direct unit testability.


    Part 2 — @bokelley, your call

    Two bootstrap probes at member-tools.ts:5366 (no-target path) and registry-api.ts:9607 need a version strategy. (compliance-testing.ts is already correct via compatibleSeededTarget — no change needed there.)

    Option (a) — major-only envelope (recommended if SDK confirms the field)

    // wire: { adcp_major_version: 3 }  — no patch pin, recovery-path semantics
    const caps = await testCapabilityDiscovery(agentUrl,
      withSdkSafeTransport({ ...(auth && { auth }), versionEnvelope: 'major-only' }),
    );

    get_adcp_capabilities.mdx names this the recovery path; SDK comply already uses it as fallback. Must verify versionEnvelope exists in @adcp/[email protected] TestOptions types before landing.

    Option (b) — pin to 3.0 (not recommended)

    // wire: { adcp_version: "3.0" }
    // agents that dropped 3.0 in favor of 3.1+ return VERSION_UNSUPPORTED — no improvement

    Option (c) — document as known behavior (safe default if (a) is not confirmed in the SDK)

    // Leave bootstrap probes as-is; add note to get_adcp_capabilities.mdx
    // that pre-selection probes may be rejected by agents not supporting the SDK's built-in default version.
    

    Triaged by Claude Code. Session: https://claude.ai/code/session_01MuF5k4uKfLExQj4HQQ39Yq


    Generated by Claude Code

  6. added
    claude-triaged
    and removed
    claude-triaging
    on Sep 30, 2026
  7. added a commit that references this issue on Oct 8, 2026
    f678eb4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    addiebugclaude-triagedcompliance-suitepriority:P0

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions