Archived
The expert-profile loader summed whatever JSON numbers it found and the planner's arithmetic read them as unsigned. A negative count read as uint64_t wraps to a value near 2^64, which reads back as a ~100% share: whoever wrote the file could point the pinning at any expert they named. Under the old JSON library a negative threw its way out of here; the facade's arithmetic read does not, so the file is now refused by name. Every entry of a decode row must now be a non-negative JSON integer; the offender's layer and expert are printed, and RAD_E_INVAL comes back before a single wrapped share reaches the planner.