Repository navigation
pm-stack: #1744 alerts P1 schema contract (agg_alerts_incidents / agg_alerts_incident_events / agg_alerts_notification_sends) - #16983
Merged
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 29, 2026
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.
#1744 Move 1 step 2, fourth store group: P1 schema contract for the alerts stores —
alerts.incidents/alerts.incident_events/alerts.notification_sends(aggregator/src/alerts.ts) →public.agg_alerts_incidents+public.agg_alerts_incident_events+public.agg_alerts_notification_sends. Same established pattern as #16975 (roadmap annotations) and #16978 (views). Schema-only: no writer/reader cutover, no rows copied, criterion 3 untouched.Contract points, mirroring alerts.ts and the store's own SQL:
occurrences >= 1, lifecycle timestamps nullable, and the intake dedupe invariant as a partial unique index — at most one non-closed incident per (source, incident_key), exactly the ON CONFLICT targetopenIncidentnames; a closed incident does not block a reopened key.Verification:
turso_migrations.py) and pinned undergolden/.test_turso_migrations.pysuite run locally against the assembled schema dir: 41 tests OK, including the golden-translation test and four new ConstraintTests (severity/status, open-key uniqueness until closed, event kinds + FK, send shape + FK).test-migration.shextended with the PostgreSQL-side assertions (RLS/grants probe, five rejection cases, down-refusal, clean rollback); it runs in the repo's disposable-Postgres harness.Refs #1744 (P1 remains open for the projector
pmp_*groups/location decision; Move 1 execution slices and criterion 3 follow separately).Lane 1522-F (Archer, delta PRESS run 2026-11-29). Claim: #1744 (comment)
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-29T21:36:10Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.