Skip to content

feat(pm): persist versioned metadata rows - #12864

Merged
dezren39 merged 1 commit into
mainfrom
queue/20267-9074-persistent-store
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20267-9074-persistent-store

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds the next vertical slice for #9074 on top of #12371: a transactional SQLite upsert/read path for versioned PM Metadata rows, keyed by the exact artifact identity, with rebuildable extracted link rows.

Evidence

  • Before: the foundation branch defined the schema and parser but had no live write/read path; the new failing test could not import the store API.
  • After: bun test test/metadata-store.test.ts — 5 passed, 27 assertions. The test oracle checks one row per artifact identity, replay idempotence, full metadata round-trip, extracted fields, and stale-link removal after an edit.
  • git diff --check passed.
  • Local bun run typecheck was attempted but this worktree has no installed @types/bun; CI should provide the package dependencies.

Merge Danger

Door: two-way; additive store API and transactionally maintained derived links.

Blast radius: low; no production ingestion or query call site is wired yet.

This PR does not close #9074. The remaining slices are ingestion/backfill, five Metadata filters, and body-vs-DB divergence reporting.


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 04:02
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 509a1135-e8a4-490f-81ed-242ec30a05c6
Commits

Reviewing files that changed from the base of the PR and between fe9408e and 126602b.

Files selected for processing: 2

  • pm-stack/aggregator/src/metadata-store.ts
  • pm-stack/aggregator/test/metadata-store.test.ts
  • 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

Base automatically changed from queue/20267-9074-metadata to main November 23, 2026 05:39
@dezren39
dezren39 merged commit 00a5756 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the queue/20267-9074-persistent-store branch November 23, 2026 05:40
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.

impl(fleet): metadata database + fleet Metadata query surface

1 participant