santifer/career-ops · warning
Cross-channel duplicate
Error message
Cross-channel duplicate — ${key.replace('::', ' / ')} reached via ${list.map(v => v.raw).join(' AND ')} (rows ${list.map(v => `#${v.num}`).join(', ')}) — double-submission risk, resolve by hand What it means
verify-pipeline.mjs Check 11 groups tracker rows by normalized company+role key and, when the same opening appears under more than one Via channel, warns that the candidate may have applied twice through different routes. Both submissions are real, so it is deliberately a warning to the human — the tool never auto-merges them.
Solutions
- Inspect the listed rows and decide which submission to keep; delete or mark the duplicate Discarded
- Merge the surviving channel info into the kept row's Via column
- Use set-status.mjs to mark the discarded channel rather than hand-deleting rows
- Add the req/posting ID to notes on both rows (REQ_NUMBER_RE) so future merges treat real distinct reqs correctly
Example fix
// before: two rows | 42 | ... | Acme | Backend | ... | via=Hays | | 57 | ... | Acme | Backend | ... | via=— | // after: keep one, mark the other | 42 | ... | Acme | Backend | ... | via=Hays | (active) | 57 | ... | Acme | Backend | ... | Discarded, duplicate of #42 |
Defensive patterns
Strategy: validation
Validate before calling
const seen = new Map();
for (const r of rows) {
const k = `${r.company.toLowerCase()}::${r.role.toLowerCase()}`;
if (seen.has(k) && seen.get(k).via !== r.via) console.warn(`cross-channel duplicate: ${k}`);
seen.set(k, r);
} Type guard
const sameRoleDiffChannel = (a, b) => a.company === b.company && a.role === b.role && normalizeChannel(a.via) !== normalizeChannel(b.via);
Prevention
- Search the tracker for the company before applying again
- Put the req/posting ID in notes to distinguish real distinct reqs
- Record every agency submission via= in its row
- Resolve duplicates promptly — never auto-merge by hand tools
When it happens
Trigger: Running `node verify-pipeline.mjs` when two tracker rows share the same company+role (normalized) but carry different Via values (e.g. direct application and one through an agency), or one row has no Via and another does.
Common situations: Applying directly after a recruiter already submitted you; duplicate rows created by re-evaluating the same posting via scan then auto-pipeline; agency and direct postings of the same req both tracked.
Understand the failure class
Background: Conflicting config options: "cannot be used together" — configuration validation errors across open-source libraries — this error's family across 162 libraries.
Related errors
- # : company " " looks like a confidentiality placeholder —…
- INVALID_DATE
- ⚠️ Non-canonical status
- 4dayweek: invalid URL
- 4dayweek: URL must use HTTPS
AI-assisted analysis of santifer/career-ops@e7abd431fc (2026-09-16).
Data as JSON: /api/errors/fbbbff2d37e21019.
Report an issue: GitHub.
Appendix: source
Thrown at verify-pipeline.mjs:412
// and dedup-tracker key agencies with (#2397), so "Hays" and "HAYS " read as one
// channel while リクルート and パーソル stay two; the raw spelling is kept for
// the message. Before this, both non-Latin agencies normalized to '' and fell
// back to 'direct', hiding exactly the double-submission this check exists for.
const normalizeChannel = (v) => normalizeVia(v ?? '') || 'direct';
const channelsByRole = new Map();
for (const e of entries) {
const company = String(e.company || '').trim();
if (!company || company === '?') continue;
const key = `${company.toLowerCase()}::${String(e.role || '').trim().toLowerCase()}`;
if (!channelsByRole.has(key)) channelsByRole.set(key, new Map());
const channels = channelsByRole.get(key);
const norm = normalizeChannel(e.via);
if (!channels.has(norm)) channels.set(norm, { raw: String(e.via || '').trim() || '—', num: e.num });
}
for (const [key, vias] of channelsByRole) {
if (vias.size > 1) {
const list = [...vias.values()];
warn(`Cross-channel duplicate — ${key.replace('::', ' / ')} reached via ${list.map(v => v.raw).join(' AND ')} (rows ${list.map(v => `#${v.num}`).join(', ')}) — double-submission risk, resolve by hand`);
viaIssues++;
}
}
if (viaIssues === 0) ok('Via channels consistent');
// --- Check 12: Duplicate tracker numbers (#1704) ---
// The # column is a row id and must be unique. Unlike Check 2 (company+role
// dedup, which can false-positive on a legitimate re-application), the SAME
// number appearing on 2+ rows is never legitimate: it means set-status.mjs
// can't tell the rows apart, and any external reference to "application #N"
// (interview-prep notes, memory, cross-links) becomes ambiguous. Pure
// addition, no existing check covers this — see #1704 for the 124-row sweep
// that found this in the wild (merge-tracker.mjs trusted a stale TSV number
// as-is whenever it exceeded that run's max, without checking it wasn't
// already used by an unrelated row merged in a separate, earlier invocation).
const numGroups = new Map();
for (const e of entries) {
if (!numGroups.has(e.num)) numGroups.set(e.num, []);
numGroups.get(e.num).push(e);View on GitHub (pinned to e7abd431fc)