{"record":{"id":"3bd70bee01c72f1d","repo":"santifer/career-ops","slug":"sync-drift-needs-human-review-m-company","errorCode":null,"errorMessage":"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'})","messagePattern":"Sync drift \\(needs human review\\): (.+?) — (.+?): applications\\.md=\"(.+?)\" \\((.+?)\\) vs active-interviews\\.md=\"(.+?)\" \\((.+?)\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"verify-pipeline.mjs","lineNumber":468,"sourceCode":"} 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\n// different column order therefore reports as ZERO follow-ups in both tools,\n// silently — indistinguishable from a file where nothing has been logged yet.\n// Follow-up compliance is exactly the number a user consults to decide whether","sourceCodeStart":450,"sourceCodeEnd":486,"githubUrl":"https://github.com/santifer/career-ops/blob/e7abd431fce9348a95261acac9e0c14779c35df8/verify-pipeline.mjs#L450-L486","documentation":"verify-pipeline.mjs flags tier-2 sync mismatches: the two tracker files disagree on a row's status but git-blame timestamps cannot order them, so no automatic suggestion is made and a human must decide which status is correct.","triggerScenarios":"Running `node verify-pipeline.mjs` when tracker-sync-check.mjs returns resolution=needs-review-tier2 — statuses differ AND both sides were modified around the same time or blame info is missing, so canonical lifecycle order can't disambiguate.","commonSituations":"Simultaneous edits in both files from parallel sessions; rows imported/backfilled without git history; retroactive edits to old rows.","solutions":["Run `node tracker-sync-check.mjs` to see both files' last-modified info for the row","Decide which status is current and set it via `node set-status.mjs <row> <State>` with --note explaining the decision","Correct or remove the stale line in active-interviews.md","Re-run verify-pipeline.mjs; expect the mismatch to disappear"],"exampleFix":"// before (conflict, no blame order)\napplications.md: Interview vs active-interviews.md: Rejected\n// after — human decides\nnode set-status.mjs 42 Rejected --note \"confirmed via email 2026-09-10\"","handlingStrategy":"fallback","validationCode":"node tracker-sync-check.mjs --summary  # lists tier2 rows with blame info","typeGuard":"const needsHuman = (m) => m.resolution === 'needs-review-tier2';","tryCatchPattern":"try { sync(row, suggested) } catch (e) { await askUserWhichStatusIsCorrect(row, e.details); }","preventionTips":["Avoid editing both files for the same row in the same session","Commit tracker changes promptly so git blame stays informative","Write a --note with set-status.mjs recording why the status changed","Treat active-interviews.md as a log, applications.md as state"],"tags":["sync-drift","tracker","manual-review"],"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"}