Skip to content

fix(compliance): evaluate root applicability before missing tools - #3520

Merged
bokelley merged 1 commit into
mainfrom
fix/root-capability-before-tool-partition
Oct 30, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/root-capability-before-tool-partition

Conversation

@bokelley

@bokelley bokelley commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Capability-driven comply() removes storyboards with no discovered required tools before their authored root capability predicates reach the runner. An unrelated protocol then becomes incomplete coverage instead of receiving the existing capability applicability skip. Preserve root-gated candidates for the authoritative runner in ordinary single-agent assessment.

Both root predicate forms and execution order are preserved. Claimants without required tools/controller setup remain incomplete, malformed discovery remains failing, and genuine assertions still block. Default/routed-topology tool partitioning and explicit-ID execution retain their existing behavior; no grading whitelist, version floor or runtime requirement is relaxed.

Validation:

  • 156 tests passed, including 10 applicability tests using official local MCP endpoints, existing capability-rollup/bundle tests, routed credential isolation, profile refresh, offsets and abort behavior; zero skips.
  • Original built SDK reproduces five applicability/discovery regressions while four controls pass.
  • Combined real MCP probes with the actual four edited protocol error/schema sources: each single-protocol agent has two N/A bundles and two required setup gaps; no fixture tasks execute. Unchanged AdCP 3.2.7 still has its original incomplete bundles and missing-tool evidence.
  • Full library build passed; protocol/DX, code and security review clear. Normal Docker commit/push hooks run commitlint, formatting, full typecheck and rebuild. GitHub CI required before merge.

Refs adcontextprotocol/adcp#8527 and adcontextprotocol/adcp#8534. SDK patch changeset included. The four source protocol gates need a new protocol bundle; older immutable storyboards without a predicate cannot acquire inferred applicability. This does not complete broader Strict grading or routed-topology applicability, and hosted adoption requires a released SDK containing the fix.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — clean, tightly-scoped compliance-grading fix.

partitionStoryboardsByRequiredTools gains an opt-in preserveRootCapabilityGates (comply.ts:1545); capability-selected runs keep root-gated candidates and resolve them against validated discovery, with non-claimants correctly landing at capability_unsupported→not_applicable and claimants-without-tools capping to partial. Verified keepRootGate keys only on root predicates (phase-only case stays in missing, test L130); routed/explicit-ID/ungated paths unchanged via two-arg form; no new network I/O (test L243). Changeset present and patch is appropriate (additive optional param, no export break) — satisfies changeset-vs-wire-impact. The pre-3.2-stamped edge case was checked and poses no production regression. No critical/high/medium findings.

Decision table: rows 1–8 do not fire (no findings, high_risk false, gated_paths false, no team gate, no prior decision). review_decision is REVIEW_REQUIRED but gated_paths is false, so row 2 does not apply. Falls through to row 9 → approve.

@bokelley
bokelley merged commit 5a8a707 into main Oct 30, 2026
46 checks passed
@bokelley
bokelley deleted the fix/root-capability-before-tool-partition branch October 30, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant