Repository navigation
feat(pm-stack): wire in-process projector store reader into pm-core - #16052
Conversation
…ore-reader-wiring
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
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 |
Merged — lane 0337-K (DRIVE alpha verify-then-merge, 2026-11-27 03:37 CST)
Key: 0337-K |
Summary
Relates to #8570 (Phase 3 slice, not closing):
pickSource()now prefers a store-backedProjectorReaderwhenPM_CORE_PROJECTOR_DATABASE_URLis set, keeping the existingPM_PROJECTOR_URLHTTP reader as fallback.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
dezren39/fleet#45966601889— seeded projector item wasnullwithPM_PROJECTOR_URL=offbefore production wiring.After:
dezren39/fleet#45971717016(success) — in-process read serves the seeded item withresolution: projector; store-construction failure falls back to the injected HTTP reader; existing adapter/degradation/wiring tests pass.dezren39/fleet#45972145987(success) —nix build .#pm-aggregatorpasses and the built output containslibexec/projector/src/store.tsplusnode_modules/@libsql/clientat the symlink target.dezren39/fleet#45972335904(success) — no diagnostics in the new/changed files (unrelated pre-existing diagnostics elsewhere).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-botwith what you need.