mirror of
https://github.com/block/buzz.git
synced 2026-11-12 20:31:12 +00:00
Boot reconcile minted zero 30179s on a store with any record whose
legacy relay_url pin is "". Two defects compounded:
- buzz-core validate_identity_and_config rejected an empty relay_url.
The per-record pin has been ignored at read time since #2122 (the
agent resolves to the active workspace relay), so "" is a legal
record and must encode. Keep only the 4096 upper bound.
- reconcile_agents_in_dir_with used `?` on each record, so the first
build failure aborted the loop and every record after it in file
order was never visited. Log the failing record and keep walking;
each record is its own transaction, so partial progress is safe.
Tests: buzz-core `empty_relay_url_is_accepted`; desktop
`empty_relay_url_pin_does_not_abort_boot_reconcile` writes a pin-less
record followed by a normal one and asserts both get 30177 and a
decryptable 30179. The desktop test fails on f7c247756 with
"invalid relay_url length" and passes with this change.
Co-authored-by: Meli <5aaa86bce934fc3445fc254aab560a40923f10252f92107e665073dede0e04d3@buzz.block.builderlab.xyz>
Signed-off-by: Meli <5aaa86bce934fc3445fc254aab560a40923f10252f92107e665073dede0e04d3@buzz.block.builderlab.xyz>