Repository navigation
feat(pm-stack): agg_feed P1 contract for #1744 Move 1 step 3 - #17042
Merged
Merged
Conversation
added 7 commits
November 30, 2026 01:52
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
Contributor
Author
|
Remote verification (run 46337765037, job log read firsthand): Turso suite |
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.
Lane 0640-HN (Felix, 2026-11-29). Next bounded #1744 slice in the established pattern (1452-E: #16975/#16978; 1522-F: #16983; 1607-I: #17003, #17008, #17009).
What: P1 schema contract for Move 1 step 3's third refreshable cache — fleet-feed.json (collector writer
aggregator/scripts/collect-fleet-feed.ts; reader contract inaggregator/src/feed.ts) →public.agg_feed_snapshotsas migration20261129_0007_agg_feed: paired up/down (down refuses non-empty), Turso golden generated by the repo translator, both migration test suites extended (2 new Turso constraint tests; PG suite section mirroring the coverage section), README + migration plan updated. P1 now remains open only for the identity-registry group.Contract notes: the collector assembles one whole document per collection and publishes it atomically, and the freshness reconciler names a snapshot by the pair (generatedAt, sha256 of the file) (
aggregator/src/freshness-reconcile.ts) — so one row per published snapshot under that identity:generated_atis the key,hashcarries the event contract's sha256 shape,versionis the document's literal version (1),payloadis the document exactly as written. The document's sections stay projections of their own stores (several already carry their own contracts), so they ride in the payload rather than being double-booked as typed tables. A published snapshot is immutable (its hash covers its bytes) and history is pruned by deletion, so the grants are SELECT/INSERT/DELETE with no UPDATE, unlike the in-place cache contracts. The hash column is namedhashdeliberately: the Turso translator's reviewed hex-digest rewrite covers theprev_hash/hashcolumns, and this slice fits the closed rule set rather than widening it.Schema-only: no rows copied, no writer/reader cutover; fleet-feed.json remains the live backend and rollback target; #1744 criterion 3 untouched.
Verification: full
test_turso_migrations.pysuite run against this exact tree = 58 tests OK (56 at base + 2 new feed tests; golden pin for 0007; all pre-existing goldens byte-identical).test-migration.shbash-syntax checked; its disposable-PostgreSQL run is CI's leg, as with prior slices. A remote fleet-command verification run against this branch is dispatched alongside this PR; its verdict will be posted on #1744.Refs #1744
{ "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-30T01:54:53Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/worktrees/0640hn-1744-feed", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/worktrees/0640hn-1744-feed", "repo": "developing-today/code", "branch": "felix/1744-agg-feed", "sha": "e4dbc3fa0b933253feeb80ee0fcdadfa5a14d7d2" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.