{"record":{"id":"3d047809a7941bef","repo":"santifer/career-ops","slug":"file-carries-via-addition-via-but-the-t","errorCode":null,"errorMessage":"⚠️  ${file}: carries via=${addition.via} but the tracker has no Via column — value dropped. Add it with: node merge-tracker.mjs --migrate-via","messagePattern":"⚠️  (.+?): carries via=(.+?) but the tracker has no Via column — value dropped\\. Add it with: node merge-tracker\\.mjs --migrate-via","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"merge-tracker.mjs","lineNumber":1370,"sourceCode":"    return true;\n  }\n  return false;\n}\n\nfor (const file of tsvFiles) {\n  // NOT trimmed here: a trailing tab is the row's final empty cell, and\n  // parseTsvContent needs to see it. It trims internally for the legacy path.\n  const content = readFileSync(join(ADDITIONS_DIR, file), 'utf-8');\n  const addition = parseTsvContent(content, file);\n  if (!addition) { skipped++; continue; }\n\n  // A via= tag can only be stored if the tracker has a Via column — warn\n  // instead of dropping the channel silently (#1596). Clear the value too:\n  // existing rows parse with via='' on this layout, so a set addition.via would\n  // make the cross-channel duplicate guard see a channel mismatch and add a\n  // second ? row instead of updating the same-agency re-blast.\n  if (addition.via && COLMAP.via == null) {\n    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`);\n    addition.via = '';\n  }\n\n  // If additions carry a URL but the tracker has no URL\n  // column, deterministic Pass 0 cannot engage and dedup silently falls back to\n  // the fuzzy tiers. Warn once rather than degrade invisibly.\n  if (addition.url && COLMAP.url == null && !warnedNoUrlCol) {\n    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.');\n    warnedNoUrlCol = true;\n  }\n\n  // Normalize the report link to be relative to the tracker file's directory.\n  // The TSV convention carries a root-relative `reports/...` link; rewrite it\n  // so it resolves correctly when clicked from applications.md (see #760).\n  addition.report = normalizeReportLink(addition.report);\n\n  // Derive the key from the linked report when the TSV did not carry one, so a\n  // row added through the normal nine-column flow is born WITH its key. This","sourceCodeStart":1352,"sourceCodeEnd":1388,"githubUrl":"https://github.com/santifer/career-ops/blob/aac998c7ed7248ea853b720ceeb1fdbeb322fc5d/merge-tracker.mjs#L1352-L1388","documentation":"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).","triggerScenarios":"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).","commonSituations":"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.","solutions":["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.","Manually add a 'Via' header column to data/applications.md (all existing rows parse as via='').","If the channel genuinely doesn't matter, ignore the warning — the row still merges, only the channel attribution is lost.","Record the agency in the notes column as a stopgap until the migration is done."],"exampleFix":"# before\n$ node merge-tracker.mjs   # tracker has no Via column → value dropped\n# after\n$ node merge-tracker.mjs --migrate-via && node merge-tracker.mjs","handlingStrategy":"validation","validationCode":"const trackerHeader = fs.readFileSync('data/applications.md','utf8').split('\\n')[0];\nif (addition.via && !/\\bVia\\b/i.test(trackerHeader)) console.warn('Run: node merge-tracker.mjs --migrate-via');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run node merge-tracker.mjs --migrate-via once after adopting career-ops so the Via column always exists.","Check the tracker header for a Via column in CI before merges that may carry via tags.","Never put the channel only in via= without confirming the tracker layout.","Keep tracker migrations scripted and run them on update."],"tags":["tsv","migration","data-loss"],"backgroundTag":"missing-config-key","analyzedSha":"aac998c7ed7248ea853b720ceeb1fdbeb322fc5d","analyzedAt":"2026-09-16T06:35:29.214Z","contentChangedAt":"2026-09-16T06:35:29.214Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}