santifer/career-ops · error · Error
Application Answers section has
Error message
Application Answers section has ${skipped.length} unreadable ${skipped.length === 1 ? 'entry' : 'entries'}: ${skipped.join(' | ')} What it means
When parsing the Application Answers section with strict mode enabled, entries that fail parsing are collected into skipped (via the onSkip callback) instead of aborting immediately. If any entries were skipped, the parser throws listing each unreadable entry joined by ' | ' so the user can fix them one by one. In non-strict mode the skips are tolerated and the snapshot is returned anyway.
Solutions
- Fix or remove each listed unreadable entry in the Application Answers section (the error lists them pipe-separated).
- Re-run without --strict if you accept partial parsing and want skips ignored rather than fatal.
- Regenerate the section via the tool's own write path so entries use the canonical compact format the parser expects.
Example fix
// before node application-answers.mjs --read --strict // after node application-answers.mjs --read # tolerate skips; inspect snapshot, then fix entries and re-run with --strict
Defensive patterns
Strategy: try-catch
Validate before calling
// dry-run parse first without strict to see what would be skipped
const snap = parseApplicationAnswersSection(text, { strict: false });
if (snap.skipped?.length) console.warn('Entries needing fixes:', snap.skipped); Try / catch
try {
const snapshot = parseApplicationAnswersSection(text, { strict: true });
} catch (err) {
const m = err.message.match(/unreadable (\d+) entr\w+: (.+)/s);
if (m) {
const bad = m[2].split(' | ');
console.error('Fix these entries:', bad);
process.exitCode = 1;
return;
}
throw err;
} Prevention
- Run non-strict first to inventory problem entries, fix them, then enforce strict.
- Avoid hand-editing the Application Answers section; regenerate entries through the tool's write path.
- Keep entries in the canonical compact format (question/answer/selection separators intact) when editing manually.
When it happens
Trigger: Running the parser/CLI with --strict (parseApplicationAnswersSection's strict flag) over an Application Answers section containing malformed compact entries (missing question/answer separators), malformed file entries, or entries with unexpected formatting/encoding.
Common situations: Hand-edited answers file with inconsistent markdown formatting; output from another tool that writes slightly different field labels; copy-paste that dropped a delimiter; CLI flag --strict left on from a validation run while parsing a file known to have legacy entries.
Understand the failure class
Background: "Invalid ... format", "must be in format X", "does not look like a ..." — invalid argument format errors across CLI tools and libraries — this error's family across 17 libraries.
Related errors
- -- must be a percentage (e.g. 70 or 70%), got
- --from and --to must both be supplied together (or neither…
- --from ( ) must not be after --to ( ).
- Invalid page budget " ". Use a positive integer.
- --limit must be an integer from 1 to 100
AI-assisted analysis of santifer/career-ops@aac998c7ed (2026-09-16).
Data as JSON: /api/errors/040c530e9182432e.
Report an issue: GitHub.
Appendix: source
Thrown at application-answers.mjs:311
afterHeading,
nextHeading ? afterHeading + nextHeading.index : report.length,
);
const dateHit = /^\*\*Date:\*\*\s*(.*)$/m.exec(body);
const stateHit = /^\*\*State:\*\*\s*(.*)$/m.exec(body);
const groups = sliceGroups(body);
const snapshot = {
date: dateHit ? dateHit[1].trim() : '',
state: stateHit ? stateHit[1].trim().toLowerCase() : '',
freeText: parseQaEntries(groups.freeText, 'question', 'answer', onSkip),
selections: parseCompactEntries(groups.selections, 'question', 'selection', onSkip),
fieldValues: parseCompactEntries(groups.fieldValues, 'question', 'answer', onSkip),
files: parseFileEntries(groups.files, onSkip),
};
if (strict && skipped.length) {
throw new Error(
`Application Answers section has ${skipped.length} unreadable ` +
`${skipped.length === 1 ? 'entry' : 'entries'}: ${skipped.join(' | ')}`,
);
}
return snapshot;
}
/**
* Read the evaluation mode's `## H) Draft Application Answers` block.
*
* A DIFFERENT producer and a different format from the section above.
* `parseApplicationAnswersSection` reads a format this module also writes, so
* the two halves are pinned to each other. Nothing writes Block H from code:
* `modes/oferta.md:622` specifies its heading and nothing about its body, so
* the bold-question-then-paragraph shape below is a CONVENTION the evaluation
* happens to emit, not a contract. This reads the convention and degrades to an
* empty list when it does not hold, rather than guessing: a mispaired
* question/answer here would be re-submitted to an employer later.View on GitHub (pinned to aac998c7ed)