GeezerVison is showing github.com — feat(pm-service): hosted collector — registry-driven multi-board ingest + IngestDO (component A slice 2, #12826) by dezren39 · Pull Request #14343 · developing-today/code
Conversation
dezren39
commented
Nov 24, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Component A slice 2 (#12826): the hosted collector — registry-driven multi-board ingest for pm-service, per #9060 design §3.
This branch was implemented by the xaltha lane on 2026-11-23 (commit c63e360) but its PR was never opened, which left slice 3 (PR #13102, the hosted read API) stacked on an unlanded base. Felix's shepherd lane for task 23452 opened this PR to unstack the series: slice 1 (PR #13054) merged 2026-11-24; this PR lands slice 2; PR #13102 is then retargeted to main.
What it adds (vs main):
pm-stack/pm-service/src/collector/ — collector.ts, fetch.ts, ingest-do.ts, pool.ts, store.ts: the same GraphQL pool query as the laptop collector, parameterized per board from pm_boards registry rows; per-board fail-soft ingest recording pm_reconcile_findings; IngestDO cursors.
pm-stack/pm-service/test/collector.test.ts — the collector suite.
- Test wiring:
.github/test-suite-registry.json + .github/workflows/pm-stack-tests.yml register the pm-service suites.
- README + package.json description updated for slice 2. No wrangler/deploy config in this slice (deployment is a later slice), so no schedule-registry change.
Branch refresh: main merged in (merge commit d0d1974); the only conflict was package.json formatting vs the slice-2 description line — resolved keeping main's format and the slice-2 description. Deps and scripts identical on both sides.
Verification: remote fleet-command run on this head (results recorded on #12826 and PR #13102 when complete).
Refs #12826.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…st + IngestDO (component A slice 2, #12826)
Stacked on slice 1 (PR #13054): the collector imports the tenant
store's SqlDb surface and lands rows in the tables slice 1's
migration defines (pm_boards registry in, pm_snapshots/pm_items/
pm_item_metadata/pm_reconcile_findings out); pm-stack/pm-service
does not exist on main yet, so this branch bases on
xaltha/12825-tenant-store and the PR retargets to main when #13054
merges.
Per design §3 (doc/2026-11-23T03-22-03Z_design_pm-service-workers-edition):
- pool.ts: the SAME GraphQL pool query the laptop collector runs
(fields, views, parent, blockedBy/blocking, labels, milestones,
subIssuesSummary), parameterized by board node id, plus the
parser mapping it to the ProjectPoolItem/ProjectAudit shapes
slice 1 pinned. A port, not an import — pm-service deploys as
one Worker bundle; slice 8's conformance suite pins parity.
- fetch.ts: one board's paginated snapshot fetch; the stored ETag
rides page 1 as If-None-Match and a 304 ends the run with no
page fetches and no writes; rate-budget headers captured.
- ingest-do.ts: IngestDO, one per board — serializes the board's
runs and holds its cursors (ETag/last-snapshot watermark) and
GitHub rate-budget state. Derived state only (invariant 6).
- store.ts: registry reads (validated BoardDefs), snapshot landing
(per-board pool replacement, so a failed board keeps its prior
pool), §12 Metadata-copy upserts, ingest findings.
- collector.ts: runHostedCollector — per board, a per-org App
installation token is minted through the injected tenancy seam,
used for that board's fetch, and dropped; epic/spawn ancestry
resolves over the MERGED pool so cross-board chains resolve;
snapshots land with writer='hosted' + lease epoch provenance.
Acceptance (test/collector.test.ts, 9 tests): a run ingests every
registry board; a forced failure on one board leaves the other
boards' pools intact and records an ingest-failure finding;
cursors make a second run incremental (one conditional request
per board, no writes); no token value persists in any tenant-DB
table, DO state, or the run report (E §2.3, test-pinned). Plus
cross-board epic resolution, Metadata copies, rate-budget
deferral, and IngestDO serialization.
Suite registered as pm-service.collector and the pm-stack-tests
step renamed to cover both pm-service suites. Full package:
24 tests pass (15 slice-1 + 9 new), tsc --noEmit clean, both run
in the sandbox with bun.
…ollector
# Conflicts:
# pm-stack/pm-service/package.json
coderabbitai
Bot
commented
Nov 24, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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 51 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:
2601dc03-e24d-410b-9c68-23e3bed879be
Commits
-
Reviewing files that changed from the base of the PR and between 832df67 and 791070e.
Files selected for processing: 10
-
.github/test-suite-registry.json
.github/workflows/pm-stack-tests.yml
pm-stack/pm-service/README.md
pm-stack/pm-service/package.json
pm-stack/pm-service/src/collector/collector.ts
pm-stack/pm-service/src/collector/fetch.ts
pm-stack/pm-service/src/collector/ingest-do.ts
pm-stack/pm-service/src/collector/pool.ts
pm-stack/pm-service/src/collector/store.ts
pm-stack/pm-service/test/collector.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|