Repository navigation
feat(pm-stack): agg_views shared-schema contract (#1744 Move 1 step 2) - #16978
Merged
developing-today-fleet[bot] merged 7 commits intoNov 29, 2026
Merged
Conversation
…ep 2) pm-stack/shared-schema/migrations/20261129_0002_agg_views.up.sql
…ep 2) pm-stack/shared-schema/migrations/20261129_0002_agg_views.down.sql
…ep 2) pm-stack/shared-schema/golden/20261129_0002_agg_views.sqlite.sql
…ep 2) pm-stack/shared-schema/README.md
…ep 2) pm-stack/SHARED-SCHEMA-MIGRATION-PLAN.md
…ep 2) pm-stack/shared-schema/test-migration.sh
…ep 2) pm-stack/shared-schema/test_turso_migrations.py
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
archer/1452e-1744-agg-views-schema
branch
November 29, 2026 21:19
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.
What
The third bounded slice of #1744 (Move 1, step 2, third store), following the #6103 / shared_comments / roadmap-annotations pattern (PR #16975): the P1 schema contract for the views store —
views.json→public.agg_views.migrations/20261129_0002_agg_views.up.sql— typed columns for everySavedViewfield (mirroringaggregator/src/views.ts): name (trimmed, ≤120), owner key, filters as a non-empty jsonb object (known-key/value-shape validation stays at the application boundary, per the agg_actions payload precedent),is_default, both timestamps. The store's two cross-row invariants become database indexes: unique name per owner in trimmed case-insensitive form (lower(name), the store'snormalizedViewNameform) and at most one default per owner (partial unique index). RLS enabled; mutable-store grants (SELECT, INSERT, UPDATE, DELETE — views are renamed, re-defaulted and deleted, unlike append-only annotations)..down.sqlrefuses to drop a non-empty table.golden/20261129_0002_agg_views.sqlite.sql— Turso translation hand-derived by the translator's documented rules from constructs already pinned by earlier goldens; exercised against a disposable SQLite store (duplicate case-variant name, second default, and empty filters all refused).test-migration.sh+test_turso_migrations.py— apply order, grants, constraint probes, down-refusal and rollback for the new table.Scope guard
Schema-only: no rows copied, no reader/writer cutover,
views.jsonremains the only live backend and the rollback target. #1744 acceptance criterion 3 is untouched.Refs #1744. Lane 1452-E (bravo SUSTAIN).
{ "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:17:47Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/hatch-personal", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/hatch-personal", "repo": "developing-today/code", "branch": "main", "sha": "ae82d850793a5b05b88f64050ab030b49349f8d9" }, "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.