Skip to content

feat(pm-stack): wire in-process projector store reader into pm-core - #16052

Merged
developing-today-fleet[bot] merged 7 commits into
mainfrom
oc-code-07/20173-pm-core-reader-wiring
Nov 27, 2026
Merged

developing-today-fleet[bot] merged 7 commits into
mainfrom
oc-code-07/20173-pm-core-reader-wiring

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Summary

Relates to #8570 (Phase 3 slice, not closing): pickSource() now prefers a store-backed ProjectorReader when PM_CORE_PROJECTOR_DATABASE_URL is set, keeping the existing PM_PROJECTOR_URL HTTP reader as fallback.

pickSource
  liveSource
    projector: in-process store reader (new)
      createStoreProjectorReader over the local projection DB
    fallback: existing HTTP ProjectorReader (unchanged)

Degradation chain: store read -> HTTP reader -> existing live-source fail-soft. Construction failures resolve to null, clear the cached promise for retry, and never throw out of the reader.

Evidence

  • Before: red run dezren39/fleet#45966601889 — seeded projector item was null with PM_PROJECTOR_URL=off before production wiring.
    After: dezren39/fleet#45971717016 (success) — in-process read serves the seeded item with resolution: projector; store-construction failure falls back to the injected HTTP reader; existing adapter/degradation/wiring tests pass.
  • Package: dezren39/fleet#45972145987 (success) — nix build .#pm-aggregator passes and the built output contains libexec/projector/src/store.ts plus node_modules/@libsql/client at the symlink target.
  • Typecheck: dezren39/fleet#45972335904 (success) — no diagnostics in the new/changed files (unrelated pre-existing diagnostics elsewhere).
  • Full suite: dezren39/fleet#45974820831 — 4023/4035 pass; 12 failures are in untouched modules (home-resolution-8220, needs-drew-14149, watchdog registry, assembly-deadline), none in the changed files.

Merge Danger

Door: two-way (revert restores the HTTP-only read path; no data migration).

Blast Radius: narrow (pm-core source selection only; HTTP behavior unchanged when the DB var is unset)

Not closing #8570: the projector listener stays separate; systemd/timer cutover and deployment verification remain.


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

@coderabbitai

coderabbitai Bot commented Nov 27, 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: 864bc273-3748-4b64-b48e-d721a9c9cdb0

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

Lane 0337-K claim (DRIVE alpha verify-then-merge, 2026-11-27 03:37 CST): fresh-sweep pickup at head 9d8f0f4, CLEAN/MERGEABLE. Claim-scan: body + sole CodeRabbit comment read, no live sibling claim. Reading full diff vs body and re-verifying the body's cited fleet runs on the exact head (job-log Target HEAD); merge (merge commit) only on an exact-head pass. Key: 0337-K

@developing-today-fleet
developing-today-fleet Bot merged commit 324096c into main Nov 27, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the oc-code-07/20173-pm-core-reader-wiring branch November 27, 2026 09:52
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Merged — lane 0337-K (DRIVE alpha verify-then-merge, 2026-11-27 03:37 CST)

Key: 0337-K

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.

1 participant