Repository navigation
Lookout follow-ups from #589: scoped examples, shapes off the runtime, exact numbers - #596
Merged
Merged
Conversation
…, exact numbers - A subscriptions answer shows a field's example only from the newest recent event one of the caller's subscriptions hears (source, topic, filter; a filter is not trusted with a cut event), and says under `examples` that they are outside content. Shapes keep the last 8 events cut short instead of one shared example per field, which leaked one subscriber's events (e.g. another commons thread) to every caller. - Shapes are written by a thread of their own, the newest body per file winning, so a source whose fields churn never blocks the lookout. - Numeric filters and equality compare whole numbers exactly as i128 and a float against a whole number without rounding, past 2^53. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGG8Kwbo2wyYcT9yURQ
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 252926e89d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ltered data Codex on #596: a 123-character string cut to 120 plus the ellipsis kept its byte length, so the sample read as uncut and a filter on it could show another event's example; keys cut at 64 never marked it at all. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_013jkdGG8Kwbo2wyYcT9yURQ
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #589. This covers the three items left after #592, all from the #580 review.
Subscription examples leak across subscriptions (r4434605111)
Shapes kept one example per field from whatever event came last, and every
subscriptionscaller saw it. That included, for example, another commons thread's post. Now:sources::listed(store, names, subs)shows a field's example only from the newest of those events that one of the caller's subscriptions hears (Sub::hears: source, topic and filter). A filter is never trusted to judge a cut event. Every other caller sees kinds only.examples: a warning that the examples are outside content, worded as the source note's warning is.Shape persistence on the lookout's runtime thread (r4434605112)
Shape::flushnow hands the body to a thread of its own (sources::shapes). That thread coalesces queued writes so that only the newest body per file is written, so a source whose fields churn costs one write at a time and never blocks event handling. Shapes still get written whole and then moved into place.Numeric filters lose integer precision (r4434605115)
pattern::comparecompares exactly. Two whole numbers (i64 or u64) compare as i128. A float against a whole number compares by whole part and then by the remaining fraction, with no rounding. Two floats compare as floats.numericand plain equality both use it, so 2^53 + 1 no longer equals 2^53, and a float bound such as9007199254740992.0is ordered correctly against 2^53 + 1.Tests
numbers_past_a_float_s_precision_compare_exactly: 2^53 ± 1, u64::MAX, negatives past 2^53, and float bounds against whole numbers.examples_come_only_from_events_the_caller_hears: a commons thread subscriber sees its own thread's post and never the newer one from another thread. Non-subscribers see kinds only. A filter is not trusted with a cut event.a_filter_narrows_sources_and_warns_of_fields_no_event_had(subs) now checks that the example comes from the newest event the caller's filter hears, not the newest overall, that the warning is present, and that another caller sees kinds only.cargo test -p sonny: 853 + 2 + 24 passed.cargo clippy -p sonny --all-targetsis clean andcargo fmt --checkpasses.LOOKOUT.md (shapes, numeric) and the FEATURES.md sources row are updated. The protocol and schema are unchanged.