Full audit pass: leak fixes, sign-in clarity, functional bugs
Yuchen Yuan+1: Claude Opus 4.7 (1M context)
4c566b4
Triggered by user request "全方位的检查、测试" covering visualization,
user comprehension, page logic, ease-of-use, science, info leakage,
and security. Three parallel audits ran (info-leak, sign-in clarity,
visual/a11y, functional/scientific); fixes batched below.
Critical functional bugs
- workflow_service.run_pipeline + run_pipeline_stream now call
plugin_service.hydrate_from_dataset_if_needed before dispatch.
Without this, a logged-in user running a pipeline on a fresh
container (or on the mirror Space) would see "plugin not found"
even though it sits safely in their HF Datasets backing store.
- plugin_runner._scrub_scalars / _scrub_value drop NaN and ±Inf
instead of passing them through. Standard JSON has no representation
for either; model_dump_json emits NaN/Infinity which the browser's
JSON.parse refuses, so any plugin returning a numerically degenerate
scalar used to make the entire /run response fail to parse client-
side. NaN → dropped from scalars dict; Inf → nul…