Oscar GenesinRevOps · Analytics · Automation
All work

Job-search pipeline

Agent tooling · SQLite · gate-verified

Agents apply for me. A tested gate in code decides whether they're allowed to.

The problem

Every application meant reading the posting, rewriting the resume and filling a form that asks the same questions in a different order. An agent can do all of that. What I couldn't hand over was trust, because a form can look filled and still send the wrong answer under my name.

What I built

Four levers on one line, and a sweep that closes it. Agents run each step from the command line and pass the work along through one SQLite tracker. The rules that matter live in code with tests, so the gate holds the same at 2 AM as it does when I'm watching.

/discover

Find and score

Hundreds of postings, scored before I read one.

Discovery pulls postings from the job boards, drops duplicates and asks Jev the same fixed questions about each one. Code turns the answers into a band. A knockout, like a quota-carrying sales role, zeroes the score however good the rest looks. Strong moves on by itself. Stretch moves only when I say so, and No stays put.

  • Northwind Analytics Senior Data AnalystStrongprefers BigQuery (not on paper)
  • Tailspin Logistics Product AnalystStrong
  • Woodgrove Bank Revenue Operations ManagerStretchmanages direct reports
  • Fourth Coffee Account ExecutiveNoquota or pre-sales track record
Illustration. Names are placeholders; the reasons are strings the scorer writes.
Job-Search/lib/discovery/jev/jev.mjs
if (p("quota_or_presales") > JEV.knockoutP) knockouts.push("quota or pre-sales track record");
// …
if ((a.years_required.probabilities["12_plus"] ?? 0) > JEV.knockoutP) knockouts.push("requires 12+ years");
// …
const score = knockouts.length ? 0 : Math.round(((a.duties.score + a.title_match.score) / 8) * 100);
const band = score >= JEV.strongAt ? "strong" : score < JEV.noBelow ? "no" : "stretch";

/tailor

Write to the facts

If I can't point to the fact, the resume doesn't say it.

Before a word gets written, each requirement in the posting is mapped to a fact in my master profile by its ID, and code checks the map. A requirement with no ID behind it is a gap, even when I know the tool, and the resume doesn't get to claim it. A separate verifier then reads the draft against the same profile.

Job-Search/lib/tailor/evidence-map.mjs
if (tools.length === 0) {
  if (unknown) return { status: "pending", block_id: bid, reason: "needs block-id" };
  if (none) return { status: "gap", block_id: bid, reason: "no block-id" };
  return { status: "proven", block_id: bid };
}
// …
// Proven and transfer both need a block-id behind them; the tool alone is not evidence.
if (none && best.status !== "gap") {
  return { status: "gap", tool: best.tool, block_id: bid, reason: "no block-id" };
}

/render

Print and check

One source, two outputs, both checked by code.

Each role gets one resume file, and it renders twice: a plain single-column PDF for applicant tracking systems and a designed one for people. Both go through a gate that reads the finished PDF the way a parser would. More than two pages fails, and so does a stray character like a leftover ID or a placeholder.

Job-Search/lib/render/lib/variants.mjs
export const VARIANTS = { ats: atsVariant, pretty: prettyVariant };
Job-Search/lib/render/lib/verify.mjs
const STRAY_RULES = [
  ["literal block-id",  /\^[a-z0-9][a-z0-9-]+/],
  ["HTML comment",      /<!--|-->/],
  ["wikilink",          /\[\[|\]\]/],
  ["HTML entity",       /&(?:amp|lt|gt|quot|nbsp|#x?[0-9a-f]+);/i],
  ["markdown leak",     /\*\*|^#{1,6} |^\s*- \[|^\s*\* /m],
  ["placeholder",       /\[Hiring Manager\]|<FILL IN>|\{\{|\bTODO\b|lorem ipsum|^Hi \[/im],
  ["orphan bullet",     /^\s*[•\-–]\s*$/m],
  ["doubled space",     /[A-Za-z,.]  +[A-Za-z]/],
];
  // …
  if (pageCount > 2) failures.push(`${label} is ${pageCount} pages; ≤2 required`);

/apply

Fill, then ask the gate

Nothing sends unless the gate says yes.

The agent fills the form in my browser, then reports what the page actually shows. A function reads that report and decides whether the run may click Submit. Some of its checks can never be overridden:

  • An answer that wasn't one of the options the dropdown offereddropdown-guessed
  • Any optional EEO field filled ineeo-touched
  • A resume upload that a screenshot doesn't confirmresume-unverified
  • A ticked statement I can't sign, like saying no AI was usedattestation-refused
  • A job I've already applied todouble-apply

Supervision was only ever standing in for verification. The gate is the verification, and it runs the same whether I'm watching or not.

Job-Search/lib/apply/lib/verify-fill.mjs
/** Checks that, when failed, must never be overridden by a caller. */
const FATAL = new Set([
  "attestation-refused", "attestation-ask", "double-apply",
  "resume-unverified", "dropdown-guessed", "eeo-touched",
]);
// …
export function maySubmit(obs) {
  const v = verifyFill(obs);
  if (v.pass) return { submit: true, reason: "all checks passed" };
  const fatal = v.failures.filter((f) => f.fatal);
  return {
    submit: false,
    reason: fatal.length
      ? `fatal: ${fatal.map((f) => f.check).join(", ")}`
      : `${v.failures.length} check(s) failed`,
    failures: v.failures,
  };
}

/sweep

Close out and reset

An email receipt is the only proof it was sent.

Every night starts here. An agent reads my inbox and matches confirmation emails to applications, and only that match can mark a row confirmed by email. The fill run can report that it saw a confirmation page, and the tracker keeps that as a claim. Rejections get filed, interview mail goes to the top for me, and the board is true again before the next run.

The job board: three columns, Discovered with Jev bands, Waiting on you, and Applied with each row marked by email, by agent or by self
The board, live. “by email” is a matched receipt, “by agent” is the fill run's claim, “by self” is me. Company names are swapped, and one card's reason line is blurred.
Job-Search/lib/tracker/db.mjs
// The one and only writer of confirmed_by='email'. Precedence: email > agent/self,
// so a later receipt upgrades either. See .claude/rules/tracker-contract.md.
function recordReceipt(id, { detail = "", date = localDate() } = {}) {
  // …
  tx(() => {
    raw.prepare(
      "UPDATE jobs SET confirmed_by = 'email', date_applied = ?, updated_at = ? WHERE id = ?"
    ).run(date, nowIso(), id);
    log(id, "receipt", detail || "confirmation email matched");
  });
}
// …
function attest(id, by, { detail = "" } = {}) {
  if (by !== "agent" && by !== "self") {
    if (by === "email") throw new Error("attest() never writes confirmed_by: email — that is recordReceipt()'s job");