derive-agent-count-bug

OUT premise

`_build_beliefs_section` has a bug: `count += len(belief_ids)` is inside the per-belief loop instead of outside it, inflating the count and shrinking the non-agent budget below intended size

Summary

The function that builds the beliefs section for wiki pages has a counting error where it increments a running total inside a loop over individual beliefs rather than once per batch. This means the system thinks more agent-generated beliefs exist than actually do, which causes it to allocate less space than intended for non-agent content on each page.

Dependents

These beliefs depend on this one:

Details

Sourceentries/2026/04/23/reasons_lib-derive.md