Repository navigation
fix(compliance): evaluate root applicability before missing tools - #3520
Conversation
There was a problem hiding this comment.
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.
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:
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.