Repository navigation
alerts: diaSourceId packs the source set's job and xsid (companion of rapid 665, for the 2026-12-01 review) - #248
Merged
Merged
Conversation
…oding The alert page's diaSourceId note and both field rows state the packing (job << 24 | xsid) and how to decode it; decisions gains the ruling, with the measured widths and the version decision, and marks the per-set ids ruling's diaSourceId clause superseded. Companion of rapid PR 665. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Companion of Caltech-IPAC/rapid#665: the alert packet's
diaSourceIdbecomes the source set's job and itsxsidpacked into onelong. Left open for the team's meeting of 2026-12-01 21:00 UTC, together with the rapid PR. That PR changes what consumers receive, and it sets aside Russ's proposal of 2026-11-24 to draw ids from database sequences: sequences need a schema change and give an id a reader cannot take back to its set without a lookup.What this changes
system/alerts.md: the "where the code says more" note ondiaSourceIdnow gives the packing rule and the two decoding operations (job = id >> 24,xsid = id & (2^24 - 1)), the widths with their headroom, and that the index'ssidstays the barexsid. The two field rows, the alert's anddiaSource's, carry the new doc strings as rapid#665 generates them, and the page's provenance line names that PR for those two rows.system/decisions.md: a new ruling,decision-packed-dia-source-id, with the failure seen, the reason, the measured widths and the version decision. ThediaSourceIdclause ofdecision-per-set-source-idsis marked as superseded by it.The failure seen
The packet's
diaSourceIdwas the barexsid, numbered from 1 within each source set. It therefore repeated between packets and within one packet'sprvDiaSources(Azalee and Jacob, #pipeline 2026-11-24).Measured, and the split
These counts come from a read-only query on the deployed database on 2026-12-01 at 00:40 UTC:
xsidis 8,012. The split's 24xsidbits allow 2,094 times that.The query and its full table are in rapid#665.
The version question
The schema stays 00.08. rapid_docs states no versioning rule for the alert schema. The registry's own rule is to bump on a change that is not backward compatible, and it does not call for a bump here: the type is unchanged, a 00.08 reader decodes the new packets, and only the
docstrings change.What consumers see change
diaSourceIdis unique across the stream and decodes to(job, xsid). A reader that keyed a detection by its set anddiaSourceIdtogether now reads the set from the id.Not merged here. The page describes rapid#665's behaviour and should merge with it or not at all.