santifer/career-ops · warning
Sync check could not run
Error message
Sync check could not run: ${err.message} What it means
verify-pipeline.mjs's health check 13 delegates to tracker-sync-check.mjs's exported checkTrackerSync(); that call threw before producing a result. In practice this means its inputs — data/applications.md and data/active-interviews.md — are missing or do not contain the expected markdown tables (never created, renamed, or emptied by a bad merge). The rest of verify-pipeline still runs; you just get no drift report for this check.
Solutions
- Run node tracker-sync-check.mjs standalone — its direct error pinpoints the file it choked on.
- Ensure data/active-interviews.md exists with the documented table header; same for data/applications.md.
- Re-run node verify-pipeline.mjs and confirm check 13 now reports instead of warning.
Example fix
# before — checkTrackerSync throws because active-interviews.md is missing # after — create the file with the expected header, then re-run cat > data/active-interviews.md <<'EOF' # Active Interviews | Company | Role | Round | Status | Last Update | Notes | |---------|------|-------|--------|-------------|-------| EOF node verify-pipeline.mjs
Defensive patterns
Strategy: validation
Validate before calling
import { existsSync, readFileSync } from 'node:fs';
const tableReady = (p) => existsSync(p) && /^\|.*\|/m.test(readFileSync(p, 'utf-8'));
if (!tableReady('data/applications.md') || !tableReady('data/active-interviews.md')) {
console.warn('sync-check inputs missing or unparsed — run node tracker-sync-check.mjs for details');
} Try / catch
try {
syncResult = checkTrackerSync({ appsFile: APPS_FILE });
} catch (err) {
warn(`Sync check could not run: ${err.message}`);
} // degrade a single check, never the whole health report Prevention
- Keep both tracker files present with valid table headers, even when empty
- Run tracker-sync-check.mjs standalone first when verify-pipeline reports this
- Treat a missing sync check as unknown state, not as 'no drift'
When it happens
Trigger: data/active-interviews.md absent (fresh install with no interviews tracked yet); the file exists but has no table header to parse; a tracker file renamed during reorganization; a conflict resolved by emptying the file.
Common situations: New setups before any interview tracking; repo reorganizations renaming tracker files; merge conflicts resolved by truncation.
Related errors
- cv.md not found — cannot add to a CV that does not exist
- HTTP
- ⚠️ not found
- ⚠️
- Portal coverage check could not run
AI-assisted analysis of santifer/career-ops@e7abd431fc (2026-08-20).
Data as JSON: /api/errors/94dff5cb757f4633.
Report an issue: GitHub.
Appendix: source
Thrown at verify-pipeline.mjs:446
for (const e of entries) {
if (!numGroups.has(e.num)) numGroups.set(e.num, []);
numGroups.get(e.num).push(e);
}
let dupeNums = 0;
for (const [num, group] of numGroups) {
if (group.length > 1) {
error(`Duplicate tracker number #${num} used by ${group.length} rows: ${group.map(e => `${e.company} — ${e.role}`).join(' | ')}`);
dupeNums++;
}
}
if (dupeNums === 0) ok('No duplicate tracker numbers');
// --- Check 13: applications.md <-> active-interviews.md status sync (#1504) ---
// Delegates to tracker-sync-check.mjs's exported checkTrackerSync() rather than
// re-implementing the matching/two-tier resolution logic here or shelling out
// to a second process. Read-only: this only surfaces drift, it does not write
// a fix (tracker-sync-check.mjs is intentionally reporting-only for now — see
// its module header).
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) {View on GitHub (pinned to e7abd431fc)