{"record":{"id":"c44701a90f76078b","repo":"santifer/career-ops","slug":"follow-ups-md-fups-unparsedlines-length-of-f","errorCode":null,"errorMessage":"follow-ups.md: ${fups.unparsedLines.length} of ${fups.dataRows} rows will be skipped by stats.mjs and followup-cadence.mjs (line${fups.unparsedLines.length === 1 ? '' : 's'} ${fups.unparsedLines.join(', ')}) — expected ${FOLLOWUPS_COLUMNS}","messagePattern":"follow-ups\\.md: (.+?) of (.+?) rows will be skipped by stats\\.mjs and followup-cadence\\.mjs \\(line(.+?) (.+?)\\) — expected (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"verify-pipeline.mjs","lineNumber":508,"sourceCode":"// Path resolution deliberately matches the two consumers (CAREER_OPS/data/...)\n// rather than APPS_FILE's directory: the check exists to predict what they will\n// do, so it has to read the same file they read.\nconst FOLLOWUPS_FILE = join(CAREER_OPS, 'data', 'follow-ups.md');\nconst FOLLOWUPS_COLUMNS = '| num | appNum | date | company | role | channel | contact | notes |';\nif (!existsSync(FOLLOWUPS_FILE)) {\n  ok('No follow-ups.md yet — nothing to schema-check');\n} else {\n  const fups = checkFollowupsSchema(readFileSync(FOLLOWUPS_FILE, 'utf-8'));\n  if (fups.pipeLines === 0) {\n    ok('follow-ups.md has no table rows yet');\n  } else if (!fups.sawSeparator) {\n    error(`follow-ups.md has table rows but no header delimiter row, so every row is skipped — expected ${FOLLOWUPS_COLUMNS} (see modes/followup.md)`);\n  } else if (fups.dataRows === 0) {\n    ok('follow-ups.md has no logged follow-ups yet');\n  } else if (fups.parsed === 0) {\n    error(`follow-ups.md: none of its ${fups.dataRows} row(s) parse, so stats.mjs and followup-cadence.mjs will both report zero follow-ups — expected column order ${FOLLOWUPS_COLUMNS} (see modes/followup.md)`);\n  } else if (fups.unparsedLines.length > 0) {\n    warn(`follow-ups.md: ${fups.unparsedLines.length} of ${fups.dataRows} rows will be skipped by stats.mjs and followup-cadence.mjs (line${fups.unparsedLines.length === 1 ? '' : 's'} ${fups.unparsedLines.join(', ')}) — expected ${FOLLOWUPS_COLUMNS}`);\n  } else {\n    ok(`follow-ups.md schema valid (${fups.parsed} logged follow-up${fups.parsed === 1 ? '' : 's'})`);\n  }\n}\n\n// --- Check 15: portals.yml entries no provider claims (#3251) ---\n// Coverage rot is invisible from every other check here: an entry with\n// `enabled: true` and a careers_url nothing matches reads as a tracked company\n// in the config and contributes zero postings on every scan. Twelve of those\n// were live on 2026-08-26, one of them a company whose real board existed and\n// was one character off the slug in the file.\n//\n// Only the OFFLINE half of audit-portals.mjs runs here — provider resolution is\n// pure config matching, so this check stays as fast and network-free as the rest\n// of verify-pipeline. The live half (does the board answer, and with whose\n// jobs?) needs 170 fetches and stays a separate command: `node audit-portals.mjs`.\n//\n// portals.yml is user-layer and gitignored, so its absence is not a finding.","sourceCodeStart":490,"sourceCodeEnd":526,"githubUrl":"https://github.com/santifer/career-ops/blob/e7abd431fce9348a95261acac9e0c14779c35df8/verify-pipeline.mjs#L490-L526","documentation":"verify-pipeline.mjs Check (follow-ups schema) validates data/follow-ups.md rows against the expected column set FOLLOWUPS_COLUMNS. When some but not all data rows fail to parse, it warns that stats.mjs and followup-cadence.mjs will silently skip those lines, undercounting follow-ups.","triggerScenarios":"Running `node verify-pipeline.mjs` after hand-editing follow-ups.md and adding rows whose column order/count deviates from the header — e.g. a missing date, an extra free-text field, or a row written in a different column order.","commonSituations":"Manual row insertion with columns transposed; pasting rows from an older schema version; partial failure of an earlier migration leaving mixed-format rows.","solutions":["Open follow-ups.md and fix the listed line numbers to match the header's column order (see modes/followup.md)","If the whole file uses an old schema, regenerate rows per the current FOLLOWUPS_COLUMNS order","Re-run `node verify-pipeline.mjs` — expect the 'schema valid (N logged follow-ups)' ok line","Avoid hand-editing; prefer the followup mode tooling to append rows"],"exampleFix":"// before (missing a column)\n| 2026-09-01 | Acme | sent nudge |\n// after (matches FOLLOWUPS_COLUMNS)\n| 2026-09-01 | Acme | Backend Engineer | sent nudge | waiting |","handlingStrategy":"validation","validationCode":"const cols = headerRow.split('|').map(s => s.trim()).filter(Boolean);\nfor (const [i, line] of dataLines.entries()) {\n  if (line.split('|').filter(c => c.trim()).length !== cols.length) console.warn(`row ${i} malformed`);\n}","typeGuard":"const parsesAsFollowup = (line, cols) => line.split('|').filter(c => c.trim()).length === cols.length;","tryCatchPattern":null,"preventionTips":["Append rows via the followup mode, not by hand","Match the header's column order exactly","Run verify-pipeline.mjs after editing follow-ups.md","Migrate old-schema files wholesale, not row-by-row"],"tags":["schema","tsv","partial-parse"],"backgroundTag":"schema-validation-failed","analyzedSha":"e7abd431fce9348a95261acac9e0c14779c35df8","analyzedAt":"2026-09-16T06:35:29.214Z","contentChangedAt":"2026-09-16T06:35:29.214Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}