fix: isolate malformed agent diagnostics