Repository navigation
Closed
Description
The do-not-merge review PRs for #531 got Codex code reviews of #532 (lookout source filters) and #537 (commons). The security reviews on both were clean. The code reviews raised the P2s below. All of them are still on main as of 20a487a. None of them is a sandbox escape, so they are filed here rather than fixed in #587.
- Subscription examples leak across subscriptions (Security review only (do not merge): #532 Lookout event-pattern filters on outside sources #580, r4434605111).
subscriptionslists recent payload examples from every source, whatever the caller subscribes to. These examples also skip the outside-content warning that normal source notes carry. Suggested fix: list field names and types for every source, but show live examples only for events the caller hears. Fixed in Lookout follow-ups from #589: scoped examples, shapes off the runtime, exact numbers #596. - Numeric filters lose integer precision (Security review only (do not merge): #532 Lookout event-pattern filters on outside sources #580, r4434605115). Filters compare through
f64, so integers above 2^53 compare wrong. Large sequence ids and nanosecond timestamps are affected. Suggested fix: compare integers exactly, as the literal matcher does, or reject operands beyond f64 precision. Fixed in Lookout follow-ups from #589: scoped examples, shapes off the runtime, exact numbers #596. - Shape persistence runs on the lookout's only runtime thread (Security review only (do not merge): #532 Lookout event-pattern filters on outside sources #580, r4434605112). When a source's fields change,
Shape::sawflushes right away and synchronously. A busy source with churning fields can stall event handling for every subscriber. Suggested fix: write through a blocking worker and coalesce the writes. Fixed in Lookout follow-ups from #589: scoped examples, shapes off the runtime, exact numbers #596. - Commons cursor moves before notifications are durable (Security review only (do not merge): #537 Commons replies through lookout subscriptions #585, r4434606869).
newsadvancesread.jsonbefore the held events are persisted, so a crash in between loses those notifications. Suggested fix: persist an outbox first, or acknowledge the cursor only after the notifications are written. Fixed in Commons news outlives a crash: the cursor moves once subscribers hold it #592.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Commons news outlives a crash: the cursor moves once subscribers hold…
Lookout follow-ups from #589: scoped examples, shapes off the runtime…
Lookout follow-ups from #589: scoped examples, shapes off the runtime…