Skip to content
Avarok-CybersecurityPublic

About

Deterministic, evidence-carrying resume scorer in pure Rust, shipped as a GitHub Action. Docs: ats.express

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ATSGate logo: a gate with a check mark passing through it

ATSGate

A deterministic, evidence-carrying resume scorer in pure Rust, shipped as a GitHub Action.
Docs: ats.express (coming with v0.1)

Contents

What it is

ATSGate reads a resume (PDF, DOCX, HTML, Markdown or plain text) and scores it against a standardized job blueprint. It runs in CI, so a resume that is generated from a career file can be gated on parse risk and keyword coverage before it ships.

  • Deterministic. The same input always gives the same score. No language model sits in the scoring path.
  • Evidence-carrying. Every point names the rule that awarded it and the page, bounding box and text span it came from.
  • Honest about vendors. Real applicant tracking systems mostly do not auto-score (gh-tm-faq, ats-screener-research). ATSGate reports a simulated parse and keyword risk per vendor, never a vendor score.

The crates are pure: they take bytes and return values. Only atsgate-cli reads files or the network.

Crate Role Status
atsgate-extract Bytes to a Document: spans, bounding boxes, reading order, layout and hidden-text signals Phase 2
atsgate-resume Document to Resume: sections, dated roles and bullets with evidence spans Phase 2
atsgate-career The career SSOT format (JSON Resume plus x-atsgate) Phase 2b
atsgate-blueprint The job blueprint schema, built-ins and generator Phase 2b / 3
atsgate-taxonomy Skill and title alias tables from O*NET and ESCO Phase 3
atsgate-score Resume x blueprint to an evidence-carrying report, six simulated vendor scores and the gate Phase 4
atsgate-render Career SSOT and tailoring file to resume PDF/DOCX, site partials and JSON-LD, each PDF and DOCX checked by a parse round trip Phase 2b
atsgate-cli The atsgate command: the only crate that performs I/O (import, build, inject, score, gate) Phase 2b / 4

Quick start

Render a resume from a career file, score exactly the PDF that was rendered, and fail the job if any simulated vendor falls below its floor:

- uses: Avarok-Cybersecurity/atsgate@<release tag or commit> # see "Release binaries" below
  id: atsgate
  with:
    mode: gate
    career: career.json
    career-format: atsgate
    tailoring: tailoring/general.yaml
    contact: public
    out: dist
    blueprint: builtin:software-engineer-backend
    fail-on-integrity-flags: "true"
    report: atsgate/report.json
- uses: actions/upload-artifact@<sha>
  if: always()
  with:
    name: resume
    path: |
      dist/
      atsgate/

The same from a shell:

atsgate gate --career career.json --tailoring tailoring/general.yaml --contact public --out dist \
  --blueprint builtin:software-engineer-backend --fail-on-integrity-flags true \
  --as-of today --report atsgate/report.json --summary atsgate/report.md
atsgate score --resume my-resume.pdf --blueprint generate:posting.txt --floors "taleo=80" \
  --fail-on-integrity-flags true --as-of today --report report.json --summary report.md

Exit status: 0 when the gate passes, 1 when it fails (the report is still written) or on an error, 2 on a usage error.

GitHub Action

Input Modes Required Meaning
mode all yes, no default build (render only), score (score an existing resume) or gate (build, then score the PDF it rendered)
resume score yes The PDF or DOCX to score
career, tailoring build, gate yes The career JSON and the tailoring YAML
career-format build, gate yes, no default atsgate, json-resume or tbraun96; any but atsgate is converted with atsgate import before rendering
contact build, gate yes public, or a private contact JSON file
out build, gate yes Output directory
allow-private-contact build, gate no (false) A private contact file is refused in CI unless this is true
blueprint score, gate yes builtin:ID, a blueprint file, an https:// URL, or generate:FILE-OR-URL (a job posting; the generated blueprint is written beside the report and marked reviewed: false)
floors score, gate no Overrides such as taleo=80, lever=0; vendors not named keep the default floors below
fail-on-integrity-flags score, gate yes, no default true or false: whether hidden or metadata-only text fails the gate
report score, gate yes The JSON report path, ending in .json; the markdown summary goes beside it as .md and is appended to the job summary
Output Meaning
passed true or false
min-vendor-score The lowest of the six vendor scores
score-json The verdict as compact JSON: reasons, and each vendor's score and floor
report-json The report path
resume-sha256 The sha256 of the exact file that was scored
resume-pdf, resume-docx, partials-dir What build and gate rendered

"Present" counts through the month the job runs in.

Release binaries. Outside this repository the action downloads the atsgate binary for the runner (Linux x86_64 and arm64, macOS arm64, Windows x86_64) from the GitHub release named in action/release-pins.txt and refuses it unless its sha256 matches the pin. Each binary is built by release.yml on a v* tag with a build-provenance attestation (gh attestation verify <file> --repo Avarok-Cybersecurity/atsgate). A revision with no pins refuses to run rather than fetch an unverified binary. Within this repository (uses: ./) the action builds from source, which is how CI tests it.

Formats

Input Reader What it detects
PDF pdf_oxide (positioned glyphs) and lopdf (content-stream order, rulings, images, fonts, ToUnicode, metadata); reading order is ATSGate's own XY-cut Columns, out-of-flow text boxes, tables, header and footer content, image-only pages, unmapped glyphs and ligatures, white, tiny, zero-width, off-page and metadata-only text
DOCX zip and quick-xml Tables, text boxes, header and footer content, hidden (w:vanish), white and tiny runs, zero-width characters, metadata-only text
HTML scraper Text in document order
Markdown pulldown-cmark Text in document order
Plain text built in Text

Schemas

File What it describes
schemas/career.schema.json The career SSOT: a JSON Resume document plus an x-atsgate block (sources, statistics with a required source, families, variants)
schemas/blueprint.schema.json A job blueprint, aligned with schema.org JobPosting. Every key is required; a value that does not apply is null or []
schemas/tailoring.schema.json A tailoring file (tailoring/*.yaml): which career entries, highlights, statistics and variants one resume shows, in order. It only selects, orders and chooses; it has no field that could carry a new fact
schemas/contact.schema.json A private contact file: the phone and street that never live in the career file
schemas/report.schema.json The JSON report of score and gate: the resume's sha256, every dimension with its evidence, the six vendor scores, knockouts, integrity flags and the verdict

The schemas are generated from the Rust types in atsgate-career, atsgate-blueprint and atsgate-score (cargo run -p xtask -- schemas --write), so the schema and the parser cannot drift: CI fails if the committed copy differs. Unknown fields are errors in all of them.

Rendering

# Convert a JSON Resume (or the tbraun96 site format) into a career file; every field is mapped.
atsgate import --from json-resume --input resume.json --out career.json

# Render one tailoring of it. --contact is `public` or a private contact file.
atsgate build --career career.json --tailoring tailoring/general.yaml --contact public --out dist

# Fill <!-- atsgate:NAME --> ... <!-- /atsgate:NAME --> markers in a page with the partials.
# (score and gate: see Quick start.)
atsgate inject --partials dist/partials --page site/index.html --out site/index.html

build writes resume.pdf, resume.docx, partials/{experience,projects,skills,education}.html, partials/jsonld.json (schema.org Person with hasOccupation, worksFor and alumniOf) and manifest.json with the SHA-256 of each file. Output is byte-for-byte reproducible.

  • One column, real text. The PDF is typeset by Typst embedded as a library, with one built-in template: standard headings, contact details in the body, no tables, dates as Mon YYYY - Mon YYYY or Mon YYYY - Present. Career text reaches the template only as data, never as markup.
  • Round trip. Before anything is written, the PDF and the DOCX are read back through atsgate-extract and atsgate-resume. Every section, entry, date, bullet and skill must come back in order, with no integrity flag, no layout-risk signal and no unrecognized heading, or the build fails.
  • Contact profiles. public prints city and region, email, website and identity profiles. A private contact file adds the phone and street. A phone, street or postal code in the career file itself is an error. In CI (GITHUB_ACTIONS=true) a private contact file is refused unless --allow-private-contact is passed.

Blueprints and taxonomy

atsgate-taxonomy embeds O*NET 31.0 and ESCO v1.2.1 (about 2.9 MB compressed, against a 4 MiB budget) plus a curated alias table, curated.yaml. A lookup returns the canonical name, the taxonomy reference and how it matched (exact, alias, broader or narrower). cargo run -p xtask -- taxonomy --write rebuilds the data from downloads pinned by sha256, and --verify checks the committed data offline. Terms and attribution: DATA-LICENSES.md.

Ten reviewed built-in blueprints live in blueprints/ (builtin:<id>): software-engineer-backend, software-engineer-systems-rust, ml-inference-engineer, software-engineer-frontend, data-scientist, product-designer, marketing-manager, sales-representative, accountant and paralegal. Every skill names a taxonomy concept, and a test fails if any stops resolving.

atsgate_blueprint::generate turns a job description into a candidate blueprint. It is deterministic: section cues decide required versus preferred, and it also reads years, degrees, certifications and the seniority in the title, writing seniority: unspecified when the posting states none. In a posting that lists several roles (Hacker News "Who's Hiring") it takes the first listed role that names a title, and it reads each item of a Stack: line as a skill whatever its case. Its gazetteer reports less of ESCO than the scorer's (multi-word preferred labels, curated aliases and an allow-list; no transversal or attitude skills), because every mention becomes a requirement. Its output is always reviewed: false. blueprints/examples/artcraft-senior-engineer.yaml is a worked example from a real posting. Measured quality, and its limits: docs/evaluation.md.

Test fixtures

The resumes under fixtures/ are generated by cargo run -p xtask -- fixtures --write from one invented person. The generator writes the PDFs directly with lopdf and the DOCX files as stored zip packages, so each layout (one column, two columns, table, text box, header and footer, image only) and each integrity variant (white, tiny, hidden, off-page, zero-width, ligature, missing ToUnicode, metadata-only text) is exactly what its name says. Output is byte-for-byte deterministic; CI runs fixtures --check and needs no external tool.

Scoring

Text a reader cannot see (white, tiny, off-page, zero-width or hidden runs) is removed before the resume is parsed, so it earns nothing; it is reported as an integrity flag. Metadata text absent from the page is flagged only when it names a blueprint skill or domain keyword, or runs to 12 or more terms: an ordinary document title is not concealment. Header and footer content is a layout signal only when the same text repeats in the top or bottom band of another page. Every number in the report names its rule and the page, bounding box and text it came from.

Dimension Formula
R, P: required and preferred skills Σ w·m·c / Σ w, each skill counted once at its best occurrence. m = 1 canonical name, 0.85 taxonomy alias, 0.5 broader or narrower concept. c = 1 where the blueprint's evidence_scope asks for it; 0.8 for a skill an experience_or_projects blueprint finds only in the skills list or summary
T: title The best title match (1 the same words, 0.85 a title of the blueprint's O*NET occupation, 0.5 one in the same SOC broad group) × (1 − k · |seniority steps apart| / 9), k = 1 below the blueprint's seniority and 0.5 above it; no seniority factor when the blueprint says unspecified. Technology qualifiers ("Rust Software Engineer") are dropped before matching, and an ambiguous title ("Engineer", "Founding Engineer") is read in the blueprint's occupation
E: years min(1, relevant years / the blueprint's minimum), years being the union of relevant dated roles (overlaps once, gaps never subtract). A role is relevant when its title matches or it evidences any required or preferred skill
D: education Level and field; institutions and dates are never read
F: parse integrity max(0, 100 − Σ penalty · σ), penalties per layout signal (image-only page 100, columns 15, tables 12, header or footer content 10, and so on; see parse.rs)
Q: quantification Share of bullets with a number. Reported as a heuristic with no outcome evidence; never scored
Knockouts Met, unmet or unknown, never points. Unmet fails the gate unless the blueprint says review. Phrase knockouts (certification, clearance, authorization, language) are met when the resume states value and otherwise unknown, never unmet, so a work-authorization knockout the resume says nothing about resolves by its unknown_policy

Each vendor's score is 100 · Σ weight · dimension over the dimensions the blueprint uses, renormalized, rounded to 0.1. The weights and parser strictness σ are adapted from ats-screener (MIT; see DATA-LICENSES.md), and the default floors are its thresholds.md values, because its own profiles disagree with them:

Vendor σ Default floor Note
Taleo 0.85 75
Workday 0.9 70
SuccessFactors 0.85 65
iCIMS 0.6 60
Greenhouse 0.4 50 no documented auto-scoring
Lever 0.35 50 no documented auto-scoring

Every vendor result is a simulated parse and keyword risk, not a vendor's score: no vendor publishes its scoring. The gate fails when any vendor is below its floor (a score equal to the floor passes), any knockout fails, or, with fail-on-integrity-flags: true, any integrity flag is raised. The weights live in vendor.rs; a test keeps the table above equal to them.

Fairness

LLM screeners carry name, school and gap bias (faire, iso-bias, karvonen, llm-hire-fairly). ATSGate never reads a name, photo, address, school name, graduation year or employment gap as a scoring input, and metamorphic tests (fairness.rs) show that changing any of them leaves every score bit-identical, over every built-in blueprint. Because it is deterministic, those properties are checkable rather than statistical.

Citations

Generated from CITATIONS.md, the single source of truth for sources; CI fails if this list drifts.

License

Code: dual-licensed under MIT or Apache-2.0, at your option. Data: see DATA-LICENSES.md for the O*NET and ESCO terms that taxonomy data will ship under.

About

Deterministic, evidence-carrying resume scorer in pure Rust, shipped as a GitHub Action. Docs: ats.express

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages