85 Commits (main)
 

Author SHA1 Message Date
I Luk Kim 9e69e2a0c7 fix: a person's credentials are not a City, State pair
'Dr. HyeRan Choo DMD, MS' matched the location pattern and a Stanford
craniofacial orthodontics fellowship was filed under Mississippi, because MS is
both Mississippi and Master of Science. MD, MA and PA have the same overlap.

State detection now skips a match whose right-hand side is a credential, and
scans for the next real location. The Stanford lead is corrected to California.
2 weeks ago
I Luk Kim 0eef58c135 proactive: give Google Jobs the same cooldown retry as the web engines
A run lost Google Jobs at 01:28 and finished with 0 results from it across ~96
queries, while DuckDuckGo and Bing covered 310. Google Jobs is the only engine
that returns real employer ATS URLs for aggregator-heavy queries, so losing it
for a whole run is a coverage hole.

Measured after the run: the same JobAgent profile returned 5 cards for the same
query once it had rested, so the wall is per-IP throttling, not a ban.
- Google Jobs gets a 4-minute cooldown + one retry (DuckDuckGo/Bing keep 120s).
- The retry path now goes through _ingest_results(), the same filter/resolve/
  classify step the normal path uses. It previously appended raw results, so a
  retried query skipped IHS and role filtering.
2 weeks ago
I Luk Kim d3397df347 proactive: fix the role audit's truncated response and faculty directories
- The daily role audit failed with finish_reason=length: a reasoning model
  spends part of max_tokens on hidden reasoning, so 4096 left no visible text.
  Raised to 8192, and a truncated JSON tail is now salvaged so every complete
  classification still counts.
- /our-faculty, /faculty-directory and /our-doctors are staff listings, not
  openings. A University of Minnesota faculty directory had reached the ledger
  as a NEW lead; it is FILTERED now.
2 weeks ago
I Luk Kim b9b5138002 proactive: notice when Google Jobs goes silently empty
A run produced 96 Google Jobs queries with 0 results and no error: Google served
card-less shells with no CAPTCHA marker, the engine logged at debug level, and
the run summary showed nothing unusual. That is indistinguishable from 'there
are no orthodontist jobs'.

- A card-less page that carries Google's 'there aren't many matches' notice is
  a genuine zero and is logged as such.
- Otherwise the result is logged at INFO as 'no card, no notice', and six
  consecutive zero-result queries disable the engine for the run with a warning.
  Six is well above the normal 1-5 cards per query, so a single empty query
  cannot switch it off.
2 weeks ago
I Luk Kim e134deb877 docs: same posting one fingerprint; transient engine walls; late ATS apply buttons
Records the three defects found while auditing the ledger: Workday locale/
location variants storing one OSU opening twice, engine walls disabling all
three engines for a run, and Workday rendering Apply after the verifier had
already given up.
2 weeks ago
I Luk Kim 73d88fdc34 proactive: survive transient engine walls instead of losing the run
A run at 00:37 died at 00:40: DuckDuckGo served its 'anomaly' page, Bing reset
its connection, Google Jobs was throttled. All three were disabled for the
remaining ~150 queries, and Google Jobs still cost ~20s per query (12s selector
wait + retries) while returning nothing — discovery alone would have taken
~50 minutes to produce nothing.

- An anti-bot wall now cools down 120s and retries once. The wall is temporary:
  the same queries answered normally a few minutes later.
- Discovery stops as soon as every enabled engine is blocked, instead of
  iterating the remaining queries with no engine and paying the per-query
  politeness delay.
- DuckDuckGo's delay is 3-6s (was 2-5s) and Bing's 2.5-5s, so the cadence is
  less likely to trip the wall in the first place.
- The between-query jitter is a fixed 0.8-2.2s rather than reusing DuckDuckGo's
  delay, which would have doubled the pause after every query.
2 weeks ago
I Luk Kim e76deae20d llm: retry an empty completion instead of losing the role audit
The daily role audit failed twice with 'response contained no text content'.
That is a well-formed response from a reasoning model whose visible content is
empty — retrying usually works. One empty completion is now retried, and the
error reports finish_reason and whether reasoning was present so the next
occurrence is diagnosable instead of opaque.
2 weeks ago
I Luk Kim 23826588d9 proactive: make the unverified log describe the current run
It was opened in append mode, so the file grew across every run of the day and
no longer answered 'what did the last run leave unopened'. It is now overwritten
each run (including when nothing overflowed, so a stale file cannot linger).
2 weeks ago
I Luk Kim 0d647a5897 proactive: one posting, one lead — and stop dropping slow-rendering ATS pages
Two real defects found by auditing the ledger after a full run:

1. The same OSU opening was stored twice (ids 5 and 34) because the ledger URL
   was the *fingerprint* of the raw link, and Workday exposes one posting under
   several shapes:
     /OSUCareers/job/Columbus-Campus/Assistant-Professor---Practice_R90772-1
     /en-US/OSUCareers/job/Assistant-Professor---Practice_R90772-1
   _fingerprint() now canonicalises first, and canonical_lead_url() collapses
   the Workday locale prefix and location segment to /job/<requisition>. The two
   leads are merged and the surviving URL is the real, loadable one.

2. engine.py was storing canonical_lead_url() as official_url. With the new
   Workday rule that produces /job/<req>, which is an identity key, not a page —
   the next run would have failed to open every new Workday lead. Now the
   verified final_url is stored and only the fingerprint uses the canonical form.

Also: Workday renders its Apply button a few seconds after domcontentloaded.
The verifier waited 3s and only inspected anchors, so High Point University's
'Attending Dentist, Open Rank Faculty Clinician (Orthodontics)' posting was
classified 'no apply path or hiring language'. ATS hosts now get 8s and buttons
or submit inputs count. That lead is ACTIVE.

Ledger cleanup: Scribd PDFs, a UAE university, a Korean consumer dental site and
a Glassdoor company listing moved VERIFY -> FILTERED.
2 weeks ago
I Luk Kim fdaf564de6 proactive: drop out-of-scope country domains
A run verified sahealth.sa.gov.au, publicjobs.ie and nhs.uk pages. The pipeline
targets US mission-driven employers (OCONUS Korea/Japan roles use .com/.mil),
so a foreign ccTLD cannot be a lead. '.co' stays allowed because jobs.lever.co
is a real US ATS — a test pins both directions.
2 weeks ago
I Luk Kim 6878aed047 proactive: treat staff/provider bio pages as content, not postings
A full run verified 13 clinician-bio pages ('/meet-the-team', '/staff',
'/employee/dr-…', '/providers/'). They name people, never openings, and each
cost a verify page. The path is normalised with a trailing slash so '/staff'
and '/staff/' both match, and real postings (Workday /job/, PeopleAdmin
/postings/, employer /jobs/<id>) are unaffected.
2 weeks ago
I Luk Kim f7e3ac43f2 proactive: require real job cards before calling a Google Jobs block recovered
Google serves a bare search shell after throttling: the CAPTCHA marker is gone
but there are no cards. _recover_from_block only checked the marker, so it
logged 'recovered' and the engine then returned zero results for every
remaining query — indistinguishable from 'no such jobs exist'. Recovery now
requires the card selector to resolve.

Observed live: a full run hit the wall at 23:07, logged 'recovered', and
produced 0 results for all 96 Google Jobs queries while a fresh diagnostic
profile returned 3-5 results for the same queries.
2 weeks ago
I Luk Kim a6a680f618 docs: record what actually filled the verify budget
The measured numbers behind the last two commits: 400 pages verified produced 3
ACTIVE leads, and the log shows where the rest went (136 LinkedIn listing pages,
35 ZipRecruiter, 20 ADA career-center, ~100 ATS hubs/forms, 11 content pages).
Also documents why site: queries need 'orthodontist job' and why engine resets
are warnings rather than run failures.
2 weeks ago
I Luk Kim fc21877b52 proactive: make the site: lane precise by requiring the role term plus 'job'
DuckDuckGo's site: operator matches the whole ATS index when the keyword is
unqualified. Measured on site:myworkdayjobs.com (10 results each):

  site:X orthodontist        -> 1 orthodontic posting, 9 engineers/tellers
  site:X orthodontist job    -> 4 orthodontic postings
  site:X "orthodontist"      -> 1 (quoting kills recall)

A verify page spent on an assistant engineer is a posting we did not check, so
every ATS query now carries 'orthodontist job'. A test asserts no site: query
can ship without the role term.
2 weeks ago
I Luk Kim 46753a25a9 proactive: keep the employer name when checking posting scope
normalize_title() strips the employer from a board-style title:
  'Orthodontist- ACH - Little Rock, AR - Lyon College' -> 'Orthodontist'
The scope check only saw the normalized title, so Lyon College's own ATS
posting (lyon.isolvedhire.com/jobs/1778996.html) read as an unknown employer
and sat in VERIFY forever behind a SimplyHired repost. The raw title hint is
now included, and the lead is repointed to the official ATS as ACTIVE.
VERIFY 2 -> 1, NEW 4 -> 5.
2 weeks ago
I Luk Kim 892589d718 proactive: skip apply-flow forms and stop sending site: queries to Bing
- Workday /apply/applyManually and Taleo candidateLogin are sub-steps of an
  application flow, reached from a posting. They were consuming verify pages.
- Bing returns 0 results for every site: query from this network (measured 0/5
  while DuckDuckGo returned 10/5). Those 18 daily queries now go to DuckDuckGo
  only, which also stops Bing's connection resets from tripping the breaker
  before its useful plain queries run.
- PeopleAdmin SSO/records/admin screens are pre-filtered; /postings/<id> is
  still kept.
2 weeks ago
I Luk Kim 5c3a0abe59 proactive: stop spending verify budget on search-result index pages
A full run verified 400 pages and produced 3 ACTIVE leads. The budget was not
the problem — what filled it was. Measured on the run's own log:

- 136 LinkedIn listing pages ('Orthodontist Jobs in Birmingham') and 35
  ZipRecruiter listing pages were queued, and all 8 LinkedIn pages that did get
  verified came back FILTERED.
- 20 ADA career-center pages were verified (18 FILTERED, 2 CLOSED, 0 ACTIVE);
  the domain was not in REPOST_DOMAINS at all.
- 100 pages went to ATS hubs and apply forms (previous commit).

_is_listing_page() recognises a URL that addresses a set of postings rather
than one: state and specialty slugs (/jobs/oregon/, /jobs/orthodontist/),
list tail words (-jobs, -opportunities, -openings), board-specific shapes for
LinkedIn/ZipRecruiter/Glassdoor/Indeed/SimplyHired/Jooble/iHiredDental/
HigherEdJobs, NEOGOV agency roots and pagination. Any numeric id is treated as
a posting, and singular '-job' is excluded because real ATS postings end that
way. On the 735 unverified candidates this drops 314 and keeps every real
posting (asserted in tests).

Also in this commit:

- Academic rank titles (Assistant/Associate/Full/Clinical Professor, tenure
  track, program director) are an employer-scope signal. osu.wd1.myworkdayjobs
  .com carries no .edu suffix, so an OSU orthodontist professorship was being
  dropped as 'unknown employer'.
- consumer provider directories (Healthgrades/NPI/registry) are pre-filtered
  instead of merely ranked last: zero ACTIVE leads ever came from them.
- board index pages (/find/, /job-board/, /jobbank/, /current-openings/,
  /career-opportunities/) are content pages, not postings.
- Engine resets and single-URL verify crashes are WARNINGS. Bing drops
  connections constantly from this network and Google Jobs throttles; the other
  engines still answered the queries, so a run is no longer labelled 'partial'
  for coverage the pipeline handled. Only report delivery failures do that.
2 weeks ago
I Luk Kim c558698541 proactive: detect expired job-board badges and abbreviated deadlines
A PhD-talents repost of an OSU role was stored as NEW while the page showed an
EXPIRED stamp and 'Deadline: Sep 11, 2026'. Two gaps:

- _MONTHS only had full month names, so 'Sep 11' never parsed and the deadline
  check silently passed.
- The EXPIRED badge is a styled element (job-stamp-red), not page prose.
  Bare 'expired' is unsafe ('license must not be expired'), so the badge is
  detected structurally via its class rather than by text.

Verified against the live page: now CLOSED, while the real OSU Workday posting
stays ACTIVE.
2 weeks ago
I Luk Kim bcab8cabfe proactive: filter consumer and educational pages that mention orthodontics
The first full run put 11 content pages in the review queue: 'What is a
Malocclusion?', 'Best Orthodontists in North Dakota', a UIC faculty profile, a
university clinic team page, a tribal clinic department page and the Army's
occupational profile for 63M. None is a posting, all carried the keyword, and
each cost a verify page.

is_content_page() checks URL shape (/profiles/, /our-services/, /specialty/,
/conditions/, /blog/) and title shape ('What is …', 'Best …', '… Conditions',
'… Team', military branch profiles). The verifier also downgrades any page with
neither an apply path nor hiring language, which catches the long tail.

Content pages are FILTERED, not VERIFY — they can never become an opening.
2 weeks ago
I Luk Kim 375cf62a29 proactive: recognise the mirror aggregators a full run revealed
trabajo.org, jobilize, bandana, theladders, jobrapido, jobtarget, career.io,
vaia, hercjobs and the job-board family (dentaljobs.com, dentistjobconnect,
diversity/hispanic/asian-jobs) all republish other employers' postings. They
stay rank-last rather than being dropped, because the verifier can still follow
their apply link to the real ATS — but they must never outrank an employer URL.
2 weeks ago
I Luk Kim af9624ab0b proactive: prefilter ATS hubs, apply forms and question screens
A full run showed site: queries index whole ATS sites, not just postings, so
~100 of 400 verify pages went to paylocity company hubs, Workday search pages,
iCIMS roots, Taleo jobapply forms and BambooHR question screens. All of those
are now dropped before a page load. Real postings (Workday _R ids, iCIMS /jobs/,
Paylocity /Details/, PeopleAdmin /postings/) are unaffected.
2 weeks ago
I Luk Kim 958d4fc1bf proactive: stop spending verify pages on ATS board hubs
A full run verified job-boards.greenhouse.io/<dso> and greenhouse internal
application records. Those are company hubs, not postings: they classify as
unknown, are almost always for-profit dental groups, and each one cost a page
from the 400-page budget.

- greenhouse.io / lever.co board roots (≤1 path segment) are pre-filtered.
- internal_job_board and /applications/ screens are pre-filtered.
- site:greenhouse.io and site:lever.co dropped from the daily ATS lane for the
  same reason; site:workday.com too (it returns marketing pages, not postings).
- site:applicantpro.com added — it surfaced Kenaitze Indian Tribe's real
  posting through Google Jobs.
2 weeks ago
I Luk Kim 8907f0f4be proactive: budget Google Jobs clicks to stay under its CAPTCHA threshold
A full run hit Google's anti-bot wall three minutes in, which disabled the
engine for the remaining 180 queries. Two causes: every card was clicked, and
every query was sent to it.

- At most 5 clicks per query (was: every card), with jittered spacing.
- Google Jobs now runs only on the high-value lane (tribal/FQHC/community
  health/craniofacial/academic/public health/county/safety-net/Medicaid),
  96 of 182 queries instead of 162. The state lane already gets good results
  from DuckDuckGo, which has no such limit.
2 weeks ago
I Luk Kim d1a44e07f5 proactive: record per-engine query and empty counts in the run summary
A silently-throttled engine (Google Jobs returning 0, Bing resetting) was
invisible in the run record — the only clue was a missing log line. The run
summary now carries engine_queries/engine_empty so the next diagnosis does not
require replaying the whole run by hand.
2 weeks ago
I Luk Kim 2b2216449b proactive: stop throttling Google Jobs and keep intermittent zeros out of the breaker
Two real bugs found by watching a full run:

- The circuit breaker counted *empty results* as failure. Google Jobs returns 0
  cards intermittently when it throttles, so it was disabled after five queries
  and the rest of the run silently lost the highest-yield engine. Only thrown
  errors count now.
- Every card was clicked (~2s each), including assistants, hygienists,
  receptionists and schedulers. Non-target titles are filtered from the card
  text before clicking, which cuts Google traffic enough to avoid the throttle,
  and a floor keeps overlap for loosely-labelled roles.

Also strips Google's utm_* attribution from resolved posting URLs so the same
job found twice dedupes.
2 weeks ago
I Luk Kim 3b23b84244 proactive: record candidates that did not fit the verify budget
If a run ever truncates verification, the skipped URLs now land in
workspace/candidates/<date>.unverified.jsonl instead of vanishing. That file
is the input for deciding whether the cap needs raising again.
2 weeks ago
I Luk Kim acdf7d79f7 proactive: order lanes by yield and cut dead-engine/duplicate waste
- Queries are generated highest-yield-first (ATS site: → hidden-title →
  national → state → OCONUS) so a truncated run still covers what matters.
- Engine routing: site: queries skip Google Jobs (a job index cannot answer
  them); this cuts a 182-query run from ~56 to ~31 minutes.
- An engine that throws or returns nothing for 5 site: queries is skipped for
  the rest of the run. Bing was retrying all 182 queries and burning ~30 min.
- Duplicate merging ignores title formatting: 'Orthodontist - Full Time',
  'Orthodontist (Full-Time)' and 'Orthodontist - Now Hiring!' at the same
  employer are one posting, not three separately verified leads.
- README documents the measurement behind the state-lane reduction and the
  Google Jobs rewrite.
2 weeks ago
I Luk Kim 358cbe36f4 proactive: stop dropping postings — repair Google Jobs, raise budgets, widen scope
Missing a posting is the worst failure mode, so budgets are no longer tight:
max_verify_pages 60 -> 400, max_queries_per_day 100 -> 400.

Google Jobs was silently returning zero results on every query: the extractor
looked for an <a> inside a <template> that Google no longer renders, and the
engine reported 0 results without any error. It now clicks each card, reads the
visible 'Apply on …' links (visibility-scoped so one card cannot inherit
another card's links — OSU was being reported as Brightli) and resolves the
google.com/goto redirect inside the browser session, which is required because
the token is bound to gsessionid and returns 400 over plain HTTP.

Other leaks closed:
- 900 candidates were discovered per run and only 60 verified; index pages
  (indeed /q-…, glassdoor /Job/…-jobs-SRCH, /cmp/…/jobs, bare /careers, /login)
  are now pre-filtered so the budget reaches real postings.
- The ATS site: lane runs every day instead of rotating, and Google Jobs no
  longer wastes requests on site: queries it cannot answer.
- State lanes alternate across days: measured, adding a state narrows results
  rather than widening them, so the 84%-of-budget state lane was cut in half.
- Tribal/FQHC employers on vendor domains (careers.tchealth.org) were dropped
  as unknown. Mission-only boilerplate (Navajo Preference Employment Act,
  PL 93-638, FTCA deemed, Health Center Program grantee) now rescues them, plus
  an expanded public-domain allowlist.
- state_from_text keeps the IHS duty station; hidden-title combos expanded.
2 weeks ago
I Luk Kim 1251f47166 proactive: keep the IHS duty station when verifying via the mirror API 2 weeks ago
I Luk Kim 13742d123e proactive: stop general-dentist and repost-board leads from reaching ACTIVE
- Dentist-Orthodontist compound titles now need a real ortho duty phrase
  (InterCare posted a plain Dentist requisition).
- 'orthodontic evaluation and referrals' is general dentistry, not a duty
  (VA Dentist (Supervisor)).
- Repost boards (SimplyHired/Chronicle/InsideHigherEd/JobMesh/mdjobsite) stay
  VERIFY; their apply redirect is followed one hop and the employer ATS is
  verified instead, so real postings still reach ACTIVE.
- Past closing dates now close a lead even when an Apply button remains
  (LA County, 2026-10-28); open-range and 'until filled' boilerplate excluded.
- Ledger state comes from the posting's own location, not the search query.
- GovernmentJobs path variants collapse to one canonical job URL; the report
  also dedupes by canonical URL.
- A STALE load failure no longer hides a live lead: it survives 3 runs.
- Generic page titles ('CAREERS') no longer overwrite the job title.
2 weeks ago
I Luk Kim cdfbb7be3f notifier: persist notification logs and block repost-board apply links 4 weeks ago
I Luk Kim 5fa746dffd proactive: self-heal stale VERIFY leads and stop repeat notifications 4 weeks ago
I Luk Kim ec0ec876a6 proactive: log engine blocks as info 1 month ago
I Luk Kim fc7d7b1051 notifier: omit state coverage from telegram report 1 month ago
I Luk Kim 247d1e8549 notifier: clarify fallback logging when disabled 1 month ago
I Luk Kim 98d0cb10aa proactive: prioritize board results and surface carried-over leads 1 month ago
I Luk Kim 1b15aabb95 proactive: filter general-dentist service-list ortho mentions 1 month ago
I Luk Kim 0caf6d331d runtime: navigate fixed sites with domcontentloaded 1 month ago
I Luk Kim 992199a60d proactive: filter general dentist postings without ortho duties 1 month ago
I Luk Kim 604056a447 proactive: add tribal and academic ATS boards 1 month ago
I Luk Kim 5857fc3dc7 proactive: add GovernmentJobs and FQHC Talent boards 1 month ago
I Luk Kim 524d892cba proactive: fix search navigation and prioritize real job postings 1 month ago
I Luk Kim 9752b0ee62 cli: pass configured base URL to role-audit 1 month ago
I Luk Kim 84b2a3457a db: harden SQLite writes and initialize schema for daily runs 1 month ago
I Luk Kim d2e543dfca llm: replace Ollama with CommandCode API 1 month ago
I Luk Kim 406cd48782 proactive: persist VERIFY and close inactive leads 1 month ago
I Luk Kim a533735dd7 runtime: add gimme-job daily (fixed + proactive combined) 2 months ago
I Luk Kim 327c045eeb sites: fetch IHS via US mirror API (adapter + proactive board/verify) 2 months ago
I Luk Kim 9b64980c30 proactive: block ambiguous terms from role-audit auto-apply 2 months ago
I Luk Kim 3b6e5cdbd4 proactive: mission-driven employer scope + non-ortho specialty gate
The plan targets PSLF-eligible, mission-driven employers (government,
tribal, nonprofit, FQHC/community health, academic, public hospital).
For-profit DSOs (Smile Doctors, Sonrava, Specialty Dental Brands) had
slipped in through site: queries and auto-discovered boards, and their
pages produced off-scope leads — including Pediatric Dentist titles
that were never orthodontist jobs.

- employer_scope: rule-based employer classifier (.gov/.mil/.edu/
  .nsn.us hosts, configured public domains, government/tribal/
  nonprofit/academic/FQHC terms); private/unknown employers are
  FILTERED at verification (default-deny) and logged to
  workspace/candidates/*.employers.jsonl. Board catalogs declare
  employer_type; auto-discovered boards are written only when the
  SERP evidence classifies as mission-driven.
- roles: new other_specialty class (pediatric dentist, endodontist,
  oral surgeon, general dentist …) filtered before target matching;
  hidden dentist-title lanes at public employers stay.
- verifier: normalize ATS page titles ("Job Application for X at Y"
  -> "X") before storing; apply employer gate.
- discovery: scope filter + out-of-scope reporting; private auto
  catalog cleared (University of Utah Health kept as academic).
- closed markers: drop bare "filled" — federal boilerplate ("until
  the position is filled") marked open USAJOBS postings as CLOSED.
- urls: strip default :443/:80 ports so USAJOBS links dedupe.
3 months ago