Repository navigation
feat(pm-stack): roadmap-annotations shared-schema contract (#1744 Move 1 step 2) - #16975
Merged
developing-today-fleet[bot] merged 7 commits intoNov 29, 2026
Merged
developing-today-fleet[bot] merged 7 commits into
developing-today-fleet[bot] merged 7 commits into
Conversation
…(Move 1 step 2) pm-stack/shared-schema/migrations/20261129_0001_roadmap_annotations.up.sql
…(Move 1 step 2) pm-stack/shared-schema/migrations/20261129_0001_roadmap_annotations.down.sql
…(Move 1 step 2) pm-stack/shared-schema/golden/20261129_0001_roadmap_annotations.sqlite.sql
…(Move 1 step 2) pm-stack/shared-schema/README.md
…(Move 1 step 2) pm-stack/SHARED-SCHEMA-MIGRATION-PLAN.md
…(Move 1 step 2) pm-stack/shared-schema/test-migration.sh
…(Move 1 step 2) pm-stack/shared-schema/test_turso_migrations.py
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
2 of 3 tasks
developing-today-fleet
Bot
deleted the
archer/1452e-1744-roadmap-annotations-schema
branch
November 29, 2026 21:12
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 next bounded slice of #1744 (Move 1, step 2, second store), in the established #6103 / shared_comments pattern: the P1 schema contract for the roadmap-annotations store —
roadmap-annotations.json→public.agg_roadmap_annotations+public.agg_roadmap_annotation_aliases.migrations/20261129_0001_roadmap_annotations.up.sql— typed columns for everyRoadmapAnnotationfield (mirroringaggregator/src/roadmap-annotations.tsand its validators): kind check (decision|outcome|context), a realdatecolumn so the database rejects impossible calendar dates the wayvalidRoadmapDatedoes, the same jsonb author contract asagg_actions/shared_comments, non-empty body with the validator's 20,000 cap, and a(stable_ref, annotation_date, created_at)index for the store's per-subject reads. The alias map gets its own table with a self-alias check (mirroringaddAlias). Both tables: RLS enabled, append-onlyservice_rolegrants (SELECT, INSERT — the store never updates or deletes)..down.sqlrefuses to drop either table while it holds rows.golden/20261129_0001_roadmap_annotations.sqlite.sql— the Turso translation, hand-derived by the translator's documented rules using only constructs already pinned by theshared_commentsgolden.test-migration.sh— applies the pair in order, probes shape/grants/constraints (unknown kind, impossible date, incomplete author, empty body, self-alias), proves the down migration refuses populated tables, then rolls back clean.test_turso_migrations.py— kind-contract and self-alias probes against the translated schema.Scope guard
Schema-only, exactly like #6103: no rows copied, no reader/writer cutover,
roadmap-annotations.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:10:23Z", "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": "c988860cb23068b92ca9a64ab9b5daddfc0f79d5" }, "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.