Document rollout metadata builder scan

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-10 18:48:17 -07:00
parent 39e057131a
commit 5543aceaaa

View File

@@ -68,6 +68,11 @@ pub(crate) fn builder_from_items<'a>(
scan_builder_from_items(items, rollout_path).builder
}
// Metadata extraction needs two facts from the same forward scan:
// whether the rollout yielded any readable items at all, and whether those
// items contained enough information to seed a `ThreadMetadataBuilder`.
// Keeping them together avoids an extra eager collection just to drive the
// unreadable-rollout guard.
struct BuilderScan {
saw_any_items: bool,
builder: Option<ThreadMetadataBuilder>,