Repository navigation
Generic writer, scanner fixes for Windows and current APIs, validator-gated /apply - #1
Merged
Merged
Conversation
The public writer agent still carried one person's profile: a named Arizona commute radius, security-specific anti-target lanes and crown-jewel lanes, a mandatory founding-employee story, an AI-Augmented Engineering promotion, and a rule about a private harness (PAI/CompletionValidator). Every user's resume was steered by them. - Anti-target and crown-jewel lanes now come only from the user's MCD; the examples are field-neutral. - The founding-employee check is now an optional Distinctive Career Fact check that runs only when the MCD has one. - Role-dependent promotion follows the MCD's own guidance. - Rule 8 named the dashes it bans with characters that had been lost, so it told the model to replace hyphens with hyphens. It now names U+2013/U+2014. - Rule 9 now just says to return the result without tracking files. - discovery/main.py used America/Phoenix for digest dates; it now uses the system's local timezone, which also removes the tzdata need on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
…scanner batch The timezone change in main.py could not be tested here (the suite needs pytest and fcntl, neither available on native Windows), so it moves to the scanner-fixes batch with the other Windows work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
ats-resume-agent is the one source of truth for the LaTeX templates and the zero-fabrication validator. jobhunter now carries byte-identical copies of both templates (pdflatex for resume and cover letter; no more xelatex/fontspec) and tools/validate.ts, export-text.ts, latex.ts, pinned to upstream commit 35861b0 (release v1.3.0, the CRLF fix) in tools/ats-vendor.json. tools/sync-ats.ts check fails on any drift from the pin (hashes are over LF-normalized text so Windows autocrlf checkouts match); pull re-copies from an ats checkout at a given ref and re-pins. NOTICE credits the vendored files and the template's original source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
Resume writer:
- Rebased on the ats-resume-agent v1.3.0 writer (JD selects, never
supplies; skills-table check; escape rules; validator-readable forms)
and keeps only jobhunter's gates: anti-target, lane fit and stretch,
crown jewel, distinctive career fact.
- tools allowlist (Read, Write, Edit, Glob, Grep). It no longer runs a
shell; the caller compiles, validates, and exports. JD text is
untrusted data, overrides count only from the caller's message, and it
writes only its two output files.
- Recency is measured from the end of the most recent role, roles between
shown roles are condensed instead of dropped, a career break never
costs earlier roles, and the MCD can set the window and cutoff.
- Career breaks render as \headingBf{Career Break}{dates} +
\headingIt{reason}{}, wording taken from the MCD heading.
- Examples are field-neutral (no security-only titles or stacks).
Career-doc-builder: tools allowlist, imported docs and web pages treated
as data, field-neutral prompts, asks about gaps over 6 months and records
### Career Break -- <reason> entries, interviews for Positioning Options,
Anti-Target Lanes and Recency (the writer and /sync-filters read them but
the builder never asked), and keeps crown-jewel facts in the MCD body
because the validator ignores agent-note text.
docs/mcd-conventions.md documents the markers; examples/ holds a
fictional nurse-with-a-career-break MCD and resume, and
tools/conventions.test.ts proves they pass the vendored validator and
that note-only facts fail.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
…nector-agnostic /apply: - Duplicate check now runs before the JD is saved or the writer runs (was Step 3.5, after generation), and applies to saved-JD input too. - New Step 0 checks bun, pdflatex, and the vendored-file pin. - /apply owns compile (pdflatex, non-interactive), validate, and export. A resume is offered only after tools/validate.ts exits 0 on the .tex files; findings go back to the writer for at most 3 fix rounds; the MCD is never edited to pass. The .txt export is validated too. - JD text is untrusted data; overrides reach the writer only after the user confirms them in-session. /submitted and /decline move or delete the new .txt export with the .tex and .pdf. /triage no longer hardcodes MCP tool ids that current connectors don't expose (Step 0 halted). It looks for search/read/create-event capabilities by name family, allows only those operations, treats mail as untrusted data, and creates calendar events without attendees. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
- README: new "How the pieces fit" section (flow diagram, what is vendored from ats-resume-agent vs jobhunter-specific, why vendoring over the plugin), Bun prerequisite, pdflatex-only LaTeX setup with cm-super and MiKTeX, validator gate and text export, field-neutral examples, career breaks and recency, layout and test commands. - CLAUDE.md: the generate-a-resume flow is the /apply gate (writer writes .tex, caller compiles with pdflatex, validates, exports); never edit vendored files; external text is data; .txt in naming and retention. - known-limitations: xelatex gone; Bun required; the hyphens-only rule covers writer text, while the vendored template's bullet and "|" glyphs extract as en/em dashes (measured with pdftotext); validator checks values, not sentences. - applications.template.md retention rule covers the .txt export. - triage/backfill argument-hint quoted so the frontmatter is valid YAML. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
…one title normalizer
- replace fcntl/flock + truncating open('w') with temp file + os.replace (fsutil.py)
- refuse an unreadable seen-jobs.json instead of starting fresh; keep .bak/.corrupt
- every run writes its own digest-YYYY-MM-DD-HHMMSS.md; dry run writes dryrun-*.md
- system local timezone (optional discovery.timezone); UTF-8 everywhere
- keyword exclusions and anti-target patterns: lowercased, whole-word
- single normalize_title in dedup.py; same-source postings no longer dropped
- refresh seen-id timestamps for every id fetched
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
- Ashby: location/publishedAt/workplaceType, id from jobUrl, hybrid handling - Greenhouse: prefer first_published over updated_at - SmartRecruiters: list has no jobAd; fetch detail only for title/location-matched jobs - JobSpy: single location column, datetime.date, NaN-safe fields Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
… docs - GitHub Actions CI (SHA-pinned, read-only, no network) - requirements ranges + tzdata on Windows; requirements-dev.txt - slash commands work with venv/bin or venv/Scripts; digest naming docs - README test count, platform support, sync-filters matching note Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
…gate The validator strips only agent notes, HTML comments, and the Legacy section, so plain-text guidance under Notes for Resume Customization counted as evidence: an anti-target saying "requires an active CCRN" let CCRN pass as a skill, "Role cutoff: 15 years" backed "15 years of experience", and a lane naming "nurse manager roles" backed a Nurse Manager title. tools/conventions.test.ts now proves the leak with plain bullets and its absence with note blocks. - Convention: everything under Notes for Resume Customization is written as quoted agent-note blocks. Updated docs/mcd-conventions.md, the example MCD, the builder (Phase 5, Output Structure, a re-run check that offers to convert old MCDs), the writer (never source claims from that section), /sync-filters (reads > - entries), and the README. - /apply and CLAUDE.md delete the old PDF before compiling and judge success by exit code plus a non-empty PDF, so a failed recompile in a fix round cannot pass on a stale PDF. - career-doc-builder drops Bash: the caller passes the absolute mcd_path (asks the user if it wasn't passed), and it writes only that file. - known-limitations: cover-letter validation is numbers only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
Conflicts: apply.md keeps the agents branch's restructured flow (it already uses the Windows-safe venv python call); README combines the scanner's platform-support notes with the pdflatex-only LaTeX setup. Example timezone is America/New_York. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
… test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
Picks up the validator's guidance-section exclusion, contact-line location in the export, skills-row terminator checks, and the T1 resume template. The example resume takes the new preamble; the guidance test now asserts plain bullets no longer back claims. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
Content is unchanged from f42a648; only the ref moves to the release tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Writer and agents
tools:allowlists, and job description and email text treated as data.One source for templates and tools
validate.ts/export-text.ts/latex.tsare vendored from ats-resume-agent (pinned intools/ats-vendor.json).bun tools/sync-ats.ts check|pullguards against drift./applycompiles, then gates on the zero-fabrication validator (at most 3 fix rounds, never editing the MCD), then exports.txt./triage
Scanner
location,publishedAt,workplaceType).fcntl, atomicos.replacewrites, a corrupt state file is an error instead of a silent reset, system timezone, UTF-8.internno longer drops "Internal".date/NaN handling and itslocationcolumn; pinned dependency ranges.first_published_at; SmartRecruiters fetches details only for matched jobs.Vendored files are pinned to ats-resume-agent
f42a648(its v1.3.0 PR). After that merges:bun tools/sync-ats.ts pull ../ats-resume-agent --ref v1.3.0.Test plan
bun test tools/: 17 pass;sync-ats.ts checkPASS🤖 Generated with Claude Code
https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab