Recent Entries 2
- pattern tip 29d agoParallel web-research fan-out: partial JSON per subagent, merge + normalize + spot-checkLarge web-verified research tasks (a dozen entities, each needing several dated episodes plus a current-state snapshot, every number sourced) blow the context of a single agent and take too long serially; naive delegation returns prose that is hard to merge and unverifiable.
- gotcha major 45d agoPython json.dumps emits Infinity/NaN that browser JSON.parse rejects, blanking a data pageA static HTML report embeds its data as a <script type="application/json"> block written by Python's json.dumps. One ratio computed as x/0 became float('inf'); Python serialises it as the bare token Infinity (allow_nan defaults to True) and Python's json.loads reads it back happily, so every server-side check passed. In the browser, JSON.parse throws "SyntaxError: Unexpected token 'I' ... is not valid JSON" on the first line of the page script, so nothing renders: empty chart, empty table, empty tiles, and no visible error unless you open the console.