santifer/career-ops · warning
Sync drift (needs human review)
Error message
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'}) What it means
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.
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
Example fix
// before (conflict, no blame order) applications.md: Interview vs active-interviews.md: Rejected // after — human decides node set-status.mjs 42 Rejected --note "confirmed via email 2026-09-10"
Defensive patterns
Strategy: fallback
Validate before calling
node tracker-sync-check.mjs --summary # lists tier2 rows with blame info
Type guard
const needsHuman = (m) => m.resolution === 'needs-review-tier2';
Try / catch
try { sync(row, suggested) } catch (e) { await askUserWhichStatusIsCorrect(row, e.details); } Prevention
- 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
When it happens
Trigger: 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.
Common situations: Simultaneous edits in both files from parallel sessions; rows imported/backfilled without git history; retroactive edits to old rows.
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
- Conflicting status recommendations require manual review:
- Sync check: active-interviews.md row for
- Sync drift (auto-resolvable)
- # : — no automatic update
- ⚠️ Could not save report
AI-assisted analysis of santifer/career-ops@e7abd431fc (2026-09-16).
Data as JSON: /api/errors/3bd70bee01c72f1d.
Report an issue: GitHub.
Appendix: source
Thrown at verify-pipeline.mjs:468
} 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
// different column order therefore reports as ZERO follow-ups in both tools,
// silently — indistinguishable from a file where nothing has been logged yet.
// Follow-up compliance is exactly the number a user consults to decide whetherView on GitHub (pinned to e7abd431fc)