santifer/career-ops · warning

⚠️ : carries via= but the tracker has no Via column — value…

Error message

⚠️  ${file}: carries via=${addition.via} but the tracker has no Via column — value dropped. Add it with: node merge-tracker.mjs --migrate-via

What it means

A via= tag records the recruiting channel (e.g. an agency like Hays) on an addition, but the Via tag can only be stored if the tracker's header actually has a Via column. When COLMAP.via is null the value cannot be persisted, so merge-tracker.mjs warns, drops it, and clears addition.via — because keeping it set would make the cross-channel duplicate guard see a channel mismatch and spawn a second '?' row for the same agency re-blast (#1596).

Solutions

  1. Run node merge-tracker.mjs --migrate-via once to add the Via column to the tracker, then re-run the merge so the value is stored.
  2. Manually add a 'Via' header column to data/applications.md (all existing rows parse as via='').
  3. If the channel genuinely doesn't matter, ignore the warning — the row still merges, only the channel attribution is lost.
  4. Record the agency in the notes column as a stopgap until the migration is done.

Example fix

# before
$ node merge-tracker.mjs   # tracker has no Via column → value dropped
# after
$ node merge-tracker.mjs --migrate-via && node merge-tracker.mjs
Defensive patterns

Strategy: validation

Validate before calling

const trackerHeader = fs.readFileSync('data/applications.md','utf8').split('\n')[0];
if (addition.via && !/\bVia\b/i.test(trackerHeader)) console.warn('Run: node merge-tracker.mjs --migrate-via');

Prevention

When it happens

Trigger: Merging a TSV whose row carries via=Hays (tagged extra field or via column) while data/applications.md was created before the Via column existed (no --migrate-via ever run).

Common situations: Long-lived tracker predating the #1596 Via feature; user applies through a recruiter for the first time since the last tracker layout; automated batch workers tagging via while the local tracker is an old checkout.

Related errors


AI-assisted analysis of santifer/career-ops@aac998c7ed (2026-09-16). Data as JSON: /api/errors/3d047809a7941bef. Report an issue: GitHub.

Appendix: source

Thrown at merge-tracker.mjs:1370

    return true;
  }
  return false;
}

for (const file of tsvFiles) {
  // NOT trimmed here: a trailing tab is the row's final empty cell, and
  // parseTsvContent needs to see it. It trims internally for the legacy path.
  const content = readFileSync(join(ADDITIONS_DIR, file), 'utf-8');
  const addition = parseTsvContent(content, file);
  if (!addition) { skipped++; continue; }

  // A via= tag can only be stored if the tracker has a Via column — warn
  // instead of dropping the channel silently (#1596). Clear the value too:
  // existing rows parse with via='' on this layout, so a set addition.via would
  // make the cross-channel duplicate guard see a channel mismatch and add a
  // second ? row instead of updating the same-agency re-blast.
  if (addition.via && COLMAP.via == null) {
    console.warn(`⚠️  ${file}: carries via=${addition.via} but the tracker has no Via column — value dropped. Add it with: node merge-tracker.mjs --migrate-via`);
    addition.via = '';
  }

  // If additions carry a URL but the tracker has no URL
  // column, deterministic Pass 0 cannot engage and dedup silently falls back to
  // the fuzzy tiers. Warn once rather than degrade invisibly.
  if (addition.url && COLMAP.url == null && !warnedNoUrlCol) {
    console.warn('⚠️  Additions carry a URL but this tracker has no URL column — URL dedup is INACTIVE (fuzzy fallback). Add a `URL` header column to enable it.');
    warnedNoUrlCol = true;
  }

  // Normalize the report link to be relative to the tracker file's directory.
  // The TSV convention carries a root-relative `reports/...` link; rewrite it
  // so it resolves correctly when clicked from applications.md (see #760).
  addition.report = normalizeReportLink(addition.report);

  // Derive the key from the linked report when the TSV did not carry one, so a
  // row added through the normal nine-column flow is born WITH its key. This

View on GitHub (pinned to aac998c7ed)