santifer/career-ops · warning

Sync drift (auto-resolvable)

Error message

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)

What it means

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.

Solutions

  1. Run `node tracker-sync-check.mjs` for full per-row details and blame info
  2. Apply the suggested status with `node set-status.mjs <report#|company> <suggestedStatus>`
  3. Re-run verify-pipeline.mjs to confirm the warning clears
  4. Keep using set-status.mjs as the only status-write path to avoid future drift

Example fix

// before
applications.md: Responded   | active-interviews.md: Interview
// after
node set-status.mjs 42 Interview
applications.md: Interview   | active-interviews.md: Interview
Defensive patterns

Strategy: validation

Validate before calling

// before ending a session, check drift
node tracker-sync-check.mjs --summary

Type guard

const isAutoResolvable = (m) => m.resolution === 'auto-tier1';

Prevention

When it happens

Trigger: 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.

Common situations: 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.

Understand the failure class

Background: "Invalid state transition" errors: "status must be X, actually Y", "already rejected/charging/uninstalled", "cannot ... while running" — what they mean when a library rejects your call — this error's family across 31 libraries.

Related errors


AI-assisted analysis of santifer/career-ops@e7abd431fc (2026-09-16). Data as JSON: /api/errors/82896c4ce9687ab6. Report an issue: GitHub.

Appendix: source

Thrown at verify-pipeline.mjs:465

let syncResult;
try {
  syncResult = checkTrackerSync({ appsFile: APPS_FILE });
} catch (err) {
  // A check that could not RUN is a failed check, not a warning. warn() does not affect the exit
  // code, so a throw here made verify-pipeline print a notice and still exit 0 — and to anything
  // reading the exit status (CI, a cron wrapper, a pre-push hook) that is indistinguishable from
  // the invariant holding. We do not know whether the tracker is in sync; we know we failed to
  // look. The honest report is failure.
  error(`Sync check could not run — the tracker was NOT verified: ${err.message}`);
}

if (syncResult) {
  const tier1Mismatches = syncResult.mismatches.filter(m => m.resolution === 'auto-tier1');
  const tier2Mismatches = syncResult.mismatches.filter(m => m.resolution === 'needs-review-tier2');
  const unmatchedRows = syncResult.mismatches.filter(m => m.resolution === 'unmatched');

  for (const m of tier1Mismatches) {
    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)`);
  }
  for (const m of tier2Mismatches) {
    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'})`);
  }
  for (const m of unmatchedRows) {
    warn(`Sync check: active-interviews.md row for "${m.company}" — "${m.role}" could not be matched to a tracker row (${m.note})`);
  }
  if (tier1Mismatches.length === 0 && tier2Mismatches.length === 0 && unmatchedRows.length === 0) {
    ok(syncResult.summary.total > 0
      ? 'applications.md and active-interviews.md are in sync'
      : 'No active-interviews.md rows to sync-check');
  }
}

// --- Check 14: data/follow-ups.md table schema (#2971) ---
// stats.mjs (computeFollowupStats) and followup-cadence.mjs both read this table
// positionally, in the shape modes/followup.md documents, and both skip any row
// whose num/appNum cells don't parse as integers. A table written with a

View on GitHub (pinned to e7abd431fc)