{"record":{"id":"82896c4ce9687ab6","repo":"santifer/career-ops","slug":"sync-drift-auto-resolvable-m-company-m-r","errorCode":null,"errorMessage":"Sync drift (auto-resolvable): ${m.company} — ${m.role}: applications.md=\"${m.applicationsStatus}\" vs active-interviews.md=\"${m.activeInterviewsStatus}\" -> suggest \"${m.suggestedStatus}\" in ${m.staleIn} (run node tracker-sync-check.mjs for details)","messagePattern":"Sync drift \\(auto-resolvable\\): (.+?) — (.+?): applications\\.md=\"(.+?)\" vs active-interviews\\.md=\"(.+?)\" -> suggest \"(.+?)\" in (.+?) \\(run node tracker-sync-check\\.mjs for details\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"verify-pipeline.mjs","lineNumber":465,"sourceCode":"let syncResult;\ntry {\n  syncResult = checkTrackerSync({ appsFile: APPS_FILE });\n} catch (err) {\n  // A check that could not RUN is a failed check, not a warning. warn() does not affect the exit\n  // code, so a throw here made verify-pipeline print a notice and still exit 0 — and to anything\n  // reading the exit status (CI, a cron wrapper, a pre-push hook) that is indistinguishable from\n  // the invariant holding. We do not know whether the tracker is in sync; we know we failed to\n  // look. The honest report is failure.\n  error(`Sync check could not run — the tracker was NOT verified: ${err.message}`);\n}\n\nif (syncResult) {\n  const tier1Mismatches = syncResult.mismatches.filter(m => m.resolution === 'auto-tier1');\n  const tier2Mismatches = syncResult.mismatches.filter(m => m.resolution === 'needs-review-tier2');\n  const unmatchedRows = syncResult.mismatches.filter(m => m.resolution === 'unmatched');\n\n  for (const m of tier1Mismatches) {\n    warn(`Sync drift (auto-resolvable): ${m.company} — ${m.role}: applications.md=\"${m.applicationsStatus}\" vs active-interviews.md=\"${m.activeInterviewsStatus}\" -> suggest \"${m.suggestedStatus}\" in ${m.staleIn} (run node tracker-sync-check.mjs for details)`);\n  }\n  for (const m of tier2Mismatches) {\n    warn(`Sync drift (needs human review): ${m.company} — ${m.role}: applications.md=\"${m.applicationsStatus}\" (${m.applicationsLastModified || 'no blame info'}) vs active-interviews.md=\"${m.activeInterviewsStatus}\" (${m.activeInterviewsLastModified || 'no blame info'})`);\n  }\n  for (const m of unmatchedRows) {\n    warn(`Sync check: active-interviews.md row for \"${m.company}\" — \"${m.role}\" could not be matched to a tracker row (${m.note})`);\n  }\n  if (tier1Mismatches.length === 0 && tier2Mismatches.length === 0 && unmatchedRows.length === 0) {\n    ok(syncResult.summary.total > 0\n      ? 'applications.md and active-interviews.md are in sync'\n      : 'No active-interviews.md rows to sync-check');\n  }\n}\n\n// --- Check 14: data/follow-ups.md table schema (#2971) ---\n// stats.mjs (computeFollowupStats) and followup-cadence.mjs both read this table\n// positionally, in the shape modes/followup.md documents, and both skip any row\n// whose num/appNum cells don't parse as integers. A table written with a","sourceCodeStart":447,"sourceCodeEnd":483,"githubUrl":"https://github.com/santifer/career-ops/blob/e7abd431fce9348a95261acac9e0c14779c35df8/verify-pipeline.mjs#L447-L483","documentation":"verify-pipeline.mjs Check (tracker sync) flags tier-1 mismatches from tracker-sync-check.mjs: applications.md and data/active-interviews.md disagree on a row's status, but the disagreement is resolvable automatically because the canonical lifecycle order in states.yml makes one status clearly newer. The warning names the suggested status and which file is stale.","triggerScenarios":"Running `node verify-pipeline.mjs` while a row's status was advanced in active-interviews.md (e.g. Interview logged there) but applications.md still holds the older status (Responded), and blame timestamps confirm the lifecycle direction, so resolution=auto-tier1.","commonSituations":"Updating active-interviews.md after a round and forgetting the tracker; running set-status.mjs in one file only; merging tracker edits from another session.","solutions":["Run `node tracker-sync-check.mjs` for full per-row details and blame info","Apply the suggested status with `node set-status.mjs <report#|company> <suggestedStatus>`","Re-run verify-pipeline.mjs to confirm the warning clears","Keep using set-status.mjs as the only status-write path to avoid future drift"],"exampleFix":"// before\napplications.md: Responded   | active-interviews.md: Interview\n// after\nnode set-status.mjs 42 Interview\napplications.md: Interview   | active-interviews.md: Interview","handlingStrategy":"validation","validationCode":"// before ending a session, check drift\nnode tracker-sync-check.mjs --summary","typeGuard":"const isAutoResolvable = (m) => m.resolution === 'auto-tier1';","tryCatchPattern":null,"preventionTips":["Only change statuses via set-status.mjs","Update the tracker the same time you log an interview round","Run tracker-sync-check.mjs after editing either file","Reference `#N in tracker` in active-interviews Notes"],"tags":["sync-drift","tracker","state-machine"],"backgroundTag":"invalid-state-transition","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"}