#4469·career-ops

merge-tracker: the aggregator set misses every board the scanner emits, and an unmapped aggregator can collapse two openings

Author: rubiconCreated Sep 24, 2026Updated Sep 28, 2026
Labelsbug🔧 scripts

Code of Conduct

  • I agree to follow this project's Code of Conduct

Existing issues

  • I searched and did not find an existing issue for this

What happened?

Two gaps left over from the review of #3653, split out so that PR can stay the LinkedIn and Indeed fix it says it is. Both were raised by @nikitacometa on #3653 and both are still open.

1. The aggregator set does not contain the boards the scanner emits.

url-key.mjs treats a URL as an aggregator so the fuzzy company and role tier can still decide. The set is a literal list plus data-static/aggregator-domains.txt. That file lists scrapers. It does not list the multi-employer boards the providers in providers/ actually pull from, and none of those hosts appears anywhere else in the set.

The result is that the fix works for a URL a user pastes by hand, and does nothing for a row that arrived through scan → pipeline → evaluate. That is the path that produces most rows, so #3652 is still live for them.

2. An aggregator with no posting-ID extractor can collapse two real openings.

aggregatorPostingId() extracts an ID for LinkedIn and Indeed. For every other aggregator, two different URLs on the same host both return no ID, the pair is treated as unknown, and the fuzzy tier decides on company and title alone. Two genuinely different requisitions at one company with one title then become one row.

That is the silent direction. The surviving row carries the other posting's URL, and the report the application was sent from is orphaned. #3653 pins this as a known limitation in tests/merge-tracker-url-dedup.test.mjs; widening the domain set widened the exposure with it.

Steps to reproduce

Aggregator coverage, against main:

javascript
import { isAggregatorUrl } from './url-key.mjs';
for (const d of ['remoteok.com', 'himalayas.app', 'echojobs.io', 'jobicy.com',
                 'remotive.com', 'weworkremotely.com', 'workingnomads.com',
                 'nodesk.co', 'themuse.com']) {
  console.log(d, isAggregatorUrl(`https://${d}/job/1`));
}

All 9 print false. Each host is hard-coded in a provider under providers/.

The collapse, using the fixture in tests/merge-tracker-url-dedup.test.mjs: two rows at one company with one title, whose URLs are two different postings on the same unmapped aggregator, merge into one row.

Expected behavior

A host a provider scrapes is an aggregator, without anyone having to type it a second time. The set should be derived from providers/, since each provider already hard-codes its host, or from an explicit aggregator: true on the provider.

Two different postings on the same aggregator should stay two rows. Where no ID is extractable, a same-host URL mismatch should block the fuzzy tier rather than fall through to it. Blocking fails toward a visible duplicate row, which the user can fix. Falling through fails toward a silent merge, which they cannot.

Keep unknown for the cases where it is genuinely unknown: an aggregator against an employer board, and two different aggregators.

CLI tool

Claude Code

OS and Node.js version

macOS, Node 22