Repository navigation
Description
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_storyboardswith no explicitcompliance_target(same call site as above).GET /registry/agents/:encodedUrl/applicable-storyboardsinserver/src/routes/registry-api.ts(probe around line 9607, thenselectCanonicalHostedComplianceTargetForProfile).selectComplianceTargetForAgentSelectioninserver/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 onlyadcp_major_version. The SDK's owncomplyuses 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_storyboardswith an explicitcompliance_targetprobes at that target's version, with a regression test in the style ofserver/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
bokelley commentedon Sep 30, 2026
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:
withHostedTestOptionsomitted atmember-tools.ts:5366, probe sends3.2-rc.7regardless ofcompliance_target; option (a) is the protocol-correct recovery path perget_adcp_capabilities.mdx; option (c) is a known interop break, not a documentation-only fix.runTargetis neverundefined(targetFromInputalways returns a validHostedComplianceTarget), 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_storyboardscallstestCapabilityDiscoverywithoutwithHostedTestOptions, so it probes with the SDK prerelease default regardless of the caller'scompliance_target. Every analogous site in the file already uses the correct pattern. Open PR #7688 fixes a different call site (classifyCapabilityResolutionErrorWithDeclaredProtocols).Regression test: mock
testCapabilityDiscoveryin the style ofserver/tests/unit/compliance-target-discovery.test.ts; assertwithHostedTestOptionsreceivesrunTargetwhenhasExplicitComplianceTarget(input)is true. Extract the probe as a standalone helper (parallel toinferHostedAuthProbeTask) for direct unit testability.Part 2 — @bokelley, your call
Two bootstrap probes at
member-tools.ts:5366(no-target path) andregistry-api.ts:9607need a version strategy. (compliance-testing.tsis already correct viacompatibleSeededTarget— no change needed there.)Option (a) — major-only envelope (recommended if SDK confirms the field)
get_adcp_capabilities.mdxnames this the recovery path; SDKcomplyalready uses it as fallback. Must verifyversionEnvelopeexists in@adcp/[email protected]TestOptionstypes before landing.Option (b) — pin to 3.0 (not recommended)
Option (c) — document as known behavior (safe default if (a) is not confirmed in the SDK)
Triaged by Claude Code. Session: https://claude.ai/code/session_01MuF5k4uKfLExQj4HQQ39Yq
Generated by Claude Code
fix(compliance): stop hosted capability probes sending the SDK prerel…