-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
When an A2A agent card is fetched successfully (HTTP 200, valid JSON) but is missing supported_interfaces, SnapshotBuilder.build() crashes on .map() of undefined. This causes the entire validation promise to reject instead of returning structured error messages.
Root Cause
CapabilityClassifier.classify()callssupportedInterfaces.map()without null-checkSnapshotBuilder.build()callssupportedInterfaces.map()andskills.map()without null-checksA2aAgentValidator.start()always calls classify/build even whenCardStructureValidatorreports structure errors
Fix
- Early-return in
start()when structure validation fails — usebuildEmpty()instead ofbuild() - Defensive
Array.isArray()checks inSnapshotBuilder.build()forsupported_interfacesandskills - Defensive
Array.isArray()check inCapabilityClassifier.classify()forsupported_interfaces
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels