Skip to content

Generic writer, scanner fixes for Windows and current APIs, validator-gated /apply - #1

Merged
NullSpace-BitCradle merged 14 commits into
mainfrom
fix/agents-and-docs
Nov 16, 2026
Merged

NullSpace-BitCradle merged 14 commits into
mainfrom
fix/agents-and-docs

Conversation

@NullSpace-BitCradle

Copy link
Copy Markdown
Owner

Summary

Writer and agents

  • Removed one person's profile from the public writer: commute radius, security-only lanes, a mandatory founding-employee story, and private-harness rules.
  • Examples are field-neutral.
  • Career-break convention, with recency measured from the last role.
  • tools: allowlists, and job description and email text treated as data.

One source for templates and tools

  • Templates and validate.ts/export-text.ts/latex.ts are vendored from ats-resume-agent (pinned in tools/ats-vendor.json).
  • bun tools/sync-ats.ts check|pull guards against drift.
  • /apply compiles, then gates on the zero-fabrication validator (at most 3 fix rounds, never editing the MCD), then exports .txt.
  • The duplicate check now runs before generation.

/triage

  • Detects Gmail/Calendar tools by capability; the old hardcoded tool ids no longer exist.
  • Mail is untrusted.
  • Calendar events get no attendees.

Scanner

  • Ashby reads the documented fields (location, publishedAt, workplaceType).
  • Each run writes a unique digest, and dry runs no longer overwrite real ones.
  • Native Windows: no fcntl, atomic os.replace writes, a corrupt state file is an error instead of a silent reset, system timezone, UTF-8.
  • Exclusions match whole words, so intern no longer drops "Internal".
  • One title normalizer.
  • Seen-id timestamps refresh, so long-open postings stop reappearing.
  • JobSpy date/NaN handling and its location column; pinned dependency ranges.
  • Greenhouse uses first_published_at; SmartRecruiters fetches details only for matched jobs.
  • CI: pytest on ubuntu/macos/windows × Python 3.10/3.14, actions pinned by SHA, no network.

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

  • pytest: 319 pass on Windows, Python 3.14 (was: collection errors on native Windows)
  • bun test tools/: 17 pass; sync-ats.ts check PASS
  • Example resume compiles to one page and passes the validator
  • CI green on all three OSes (first run)
  • Not verified: live Ashby/Greenhouse/SmartRecruiters responses; a live /apply or /triage run with a model

🤖 Generated with Claude Code

https://claude.ai/code/session_01DTrMSWxSdpFfXGEiLtHvab

NullSpace-BitCradle and others added 14 commits November 16, 2026 10:12
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
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
@NullSpace-BitCradle
NullSpace-BitCradle merged commit c2a15fa into main Nov 16, 2026
6 checks passed
@NullSpace-BitCradle
NullSpace-BitCradle deleted the fix/agents-and-docs branch November 19, 2026 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant