{"record":{"id":"c4acc88702c8e2f4","repo":"santifer/career-ops","slug":"s-url-batch-reports-report-s-reportnum","errorCode":null,"errorMessage":"⚠️  ${s.url} — batch reports report #${s.reportNum} but no reports/${s.reportNum}-*.md found; left in Pendientes.","messagePattern":"⚠️  (.+?) — batch reports report #(.+?) but no reports/(.+?)-\\*\\.md found; left in Pendientes\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"reconcile-pipeline.mjs","lineNumber":243,"sourceCode":"\n  const parts = body.split('|').map(s => s.trim());\n  const company = parts[1] || '';\n  const role = parts[2] || '';\n  const score = resolveScore(done.score, reportFile);\n  const pdf = resolvePdf(reportFile);\n  const num = parseInt(done.reportNum, 10);\n\n  const reportLink = normalizeReportLink(`[${num}](reports/${reportFile})`, dirname(PIPELINE_FILE), CAREER_OPS);\n  movedProcLines.push(`- [x] ${reportLink} | ${url} | ${company} | ${role} | ${score} | PDF ${pdf}`);\n  moved.push({ url, company, role, num, score });\n  procUrls.add(url);\n  removeIdx.add(i);\n}\n\n// ---- report & exit early if nothing changed ----\nconsole.log('=== Reconcile pipeline.md ===');\nfor (const s of skippedNoReport) {\n  console.warn(`⚠️  ${s.url} — batch reports report #${s.reportNum} but no reports/${s.reportNum}-*.md found; left in Pendientes.`);\n}\n\nif (removeIdx.size === 0) {\n  console.log('✅ pipeline.md already in sync — nothing to reconcile.');\n  process.exit(0);\n}\n\n// ---- rebuild the file ----\nconst out = [];\nlet skipBlankAfterProc = false;\nfor (let i = 0; i < lines.length; i++) {\n  if (removeIdx.has(i)) continue;\n  if (skipBlankAfterProc) {\n    skipBlankAfterProc = false;\n    if (lines[i].trim() === '') continue; // drop the original blank after \"## Procesadas\"\n  }\n  out.push(lines[i]);\n  if (i === procStart && movedProcLines.length > 0) {","sourceCodeStart":225,"sourceCodeEnd":261,"githubUrl":"https://github.com/santifer/career-ops/blob/aac998c7ed7248ea853b720ceeb1fdbeb322fc5d/reconcile-pipeline.mjs#L225-L261","documentation":"reconcile-pipeline.md moves batch-produced URLs out of pipeline.md's pending list (Pendientes) once their report file exists. When a batch row claims report #N but no reports/N-*.md file can be found, the row cannot be validated, so it is left in Pendientes and this warning names both the URL and the missing report number.","triggerScenarios":"A batch worker crashed or was killed after writing the pipeline note/reservation but before writing reports/{num}-*.md; the report file was deleted or moved; a reserved report number was never claimed; wrong reportNum recorded in the row.","commonSituations":"Interrupted parallel batch runs (reservation released or leaked after a failure); manual cleanup of reports/; typos in a hand-edited pipeline.md entry.","solutions":["Check reports/ for the file matching the report number (glob N-*). If it exists under an unexpected name, fix the row's reference or rename the report.","If the report truly was never produced, re-run the evaluation for that URL so the report is written, then re-run reconcile.","If the offer is dead or unwanted, remove the row from pipeline.md manually or mark it discarded.","Verify no parallel reservation (`node reserve-report-num.mjs`) is still holding the number with a stale sentinel."],"exampleFix":"// before\n// pipeline.md row: batch wrote report #47 reference, reports/ has no 47-*.md\n// after: regenerate the report\nnode reserve-report-num.mjs --release 047\n# re-run the evaluation for that URL, then:\nnode reconcile-pipeline.mjs","handlingStrategy":"validation","validationCode":"const expected = `reports/${String(num).padStart(3, '0')}-`;\nif (!fs.readdirSync('reports').some(f => f.startsWith(expected))) {\n  console.warn(`report #${num} missing before reconcile`);\n}","typeGuard":null,"tryCatchPattern":"for (const s of skippedNoReport) {\n  console.warn(`⚠️  ${s.url} — report #${s.reportNum} not found; left in Pendientes`);\n}\n// resolve by regenerating or removing the row before the next reconcile","preventionTips":["Let batch workers finish fully before running reconcile; don't kill them mid-report-write.","Reconcile only after verifying reports/ contains the batch's expected files.","Free stale reservations with reserve-report-num.mjs --release instead of deleting reports."],"tags":["pipeline","reconciliation","report-missing","batch"],"backgroundTag":"file-not-found","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"}