c3f23d9452
- Reject a second running mod with an id already in use: two mods sharing an id would also share capability storage's data_dir, letting one read, overwrite or delete the other's state. - Cap storage to 64 keys per mod, not just 4 MiB: zero- or near-zero- byte values could otherwise flood the directory with files the byte quota never sees. - Add a 1 MiB per-call write budget, separate from the 4 MiB on-disk quota: a loop replacing one key stays under the quota on every check (the total on disk never grows) while still doing unbounded synchronous disk I/O per call, which fuel never meters. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>