Skip to content

feat(pm-stack): agg_feed P1 contract for #1744 Move 1 step 3 - #17042

Merged
developing-today-fleet[bot] merged 7 commits into
mainfrom
felix/1744-agg-feed
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 7 commits into
mainfrom
felix/1744-agg-feed

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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 in aggregator/src/feed.ts) → public.agg_feed_snapshots as migration 20261129_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_at is the key, hash carries the event contract's sha256 shape, version is the document's literal version (1), payload is 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 named hash deliberately: the Turso translator's reviewed hex-digest rewrite covers the prev_hash/hash columns, 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.py suite 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.sh bash-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-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3c699d19-1310-4c4e-acee-b33fa859725e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Remote verification (run 46337765037, job log read firsthand): Turso suite Ran 58 tests / OK. PG leg void in the executor venue (no docker inside the container; test-migration.sh exited at its guard) — CI leg, as with prior slices. Merge-ready for Felix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants