# Changelog of Greenhouse, Lever & Ashby Jobs API — New, Changed & Closed Jobs (`agitools/ats-jobs-delta`) Actor

- **URL**: https://apify.com/agitools/ats-jobs-delta/changelog.md
- **Full Actor documentation**: https://apify.com/agitools/ats-jobs-delta.md

## Changelog

### Billing integrity — release candidate (R148–R150; not built for production)

- **Damaged or incompatible company memory** is never read as a first run (that re-delivered and re-charged every
  open job): the company stops with status `state_untrusted` (nothing delivered or charged, memory left as it is,
  remedy reported) while other companies run normally. Explicit recovery: `stateRecovery = rebaseline`.
- **Restart-safe, confirmed-only billing:** the run keeps a charge journal in its own storage (`RUN_PROGRESS`) and
  records each charge the platform confirmed as soon as the call returns. A run that the platform restarts or that is
  resurrected never processes or charges a confirmed company again; an uncommitted one is re-delivered and billed once;
  a company whose charge outcome is unknown (interrupted after its memory was saved, or a failed charge call) is never
  charged automatically and is reported as possible underbilling (`billing.reconciliation.end.unresolved`,
  `possibleUnderbilling`). The platform's charge counts are shown for information only and never decide a charge.
  Before, a restart more than 3 minutes after a charge could charge `company-checked` again.
- A damaged or unparseable charge journal stops the run before anything is read, delivered or charged
  (`journal_unreadable`); a company this run already saved whose journal entry is missing is never delivered or
  charged again (`journal_inconsistent`). The customer's maximum charge also counts the journal's confirmed and
  unresolved charges after a restart (the SDK's start-up total can miss them).
- Prices, events and records are unchanged.

### 0.6.0 — release candidate (R122; not built for production)

- **Contract, freelance and temporary roles:** new optional input `employmentClasses` and a new output field
  `employmentClass` (`contract`, `freelance`, `temporary`, `permanent`, `employee`, `internship`, `unknown`). Classes
  come only from each board's own employment value. Greenhouse publishes none (always `unknown`), Lever commitments
  are matched as whole values, Ashby's enum is mapped one to one, and SmartRecruiters' type id decides when
  recognised. Titles and descriptions are never used. `unknown` jobs are excluded only when the filter is set and
  `unknown` is not chosen.
- Company summaries add `employmentClasses` (open jobs per class).
- Backward compatible: without the new input, the view hash, fingerprints, saved monitor memory, records (apart from
  the added field), events and prices are exactly as in 0.5.0. The SmartRecruiters type id is read for
  classification only and is not part of change detection, so the upgrade produces no `changed` records.
- Also contains the R109–R114 unreleased items below.

### Unreleased (R109, batched for the next release; no build)

- `secFilings.secRequests` now counts every SEC request, including the filings read of a company already identified in an earlier run (it counted identity reads only); `gleifRequests` counted the same way.
- README: new section *Remove expired jobs from a job board*: the two first-run settings (emitted baseline for a
  board that already lists jobs, silent start for forward-only), jobs gone before the first run, and a worked
  six-run closure example with costs. Documents that a silently remembered job that returns arrives as `reopened`.
  A silently remembered job can close later only if it was delivered first (for example as `changed`); test added.
- A name answered from the unresolved-name memory now names the board(s) found (for example `'Palantir = lever:palantir'`) instead of the generic `'Name = ats:board'` form.

### 0.5.0 — 2026-11-29

- Optional SEC filings and company identity add-on (`includeSecFilings`, off by default): CIK and LEI resolution
  (one exact name match or your `secCompanies` line; anything else is a free confirmation record), filing change
  detection with an optional first-check history window (`secHistoryDays`), event categories from forms and official
  8-K items, provenance, per-run cap (`maxFilingsPerCompany`) that defers instead of skipping, two boards of one filer
  billed once.
- Confirmation hints offer a ready-made `cik:` line only for a single candidate containing every word of the name,
  always with the `= none` alternative; fuzzy look-alikes (platform check: "Stripe" listed Stride and Strive) get a
  template instead of a CIK.
- New event `filing-record` ($0.001, owner-approved R108). It is kept outside the
  run-wide billing check: while the platform does not offer it, the add-on refuses itself and the job feed runs
  exactly as before. SEC filings are company events, not news coverage.
- Backward compatible: existing inputs, state keys, records, events and prices unchanged; the add-on writes only new
  keys (`i-…`, `f-…`) and new record types (`companyIdentity`, `secFiling`).

### 0.4.1 — 2026-11-29

- Confirm a board for a name: `companyNames` accepts `"Name = ats:board"` (greenhouse, lever or ashby). The board is
  read directly without a lookup, the name stays the `input` in the results (`detectedVia: "confirmed"`), and the
  choice is remembered for the monitor. A confirmation always overrides memory. A missing board fails unbilled.
- Unresolved names are remembered: `needs_confirmation`, `ambiguous` and `not_found` answers are reused for
  `unresolvedNameRecheckDays` (new input, default 7, 0–30; 0 = look up every run), so scheduled runs stop
  downloading the same boards again. `lookup_failed` is never remembered.
- Lever candidates no longer report `openJobs: 1`: the lookup reads one posting, so a non-empty Lever board's size is
  unknown (`null`) and an empty one is 0 (platform finding, run `i4m9YL0Ra8xcYD2tR`).
- Unresolved messages also show the confirmation form. New metrics `namesConfirmed`, `unresolvedNameCacheHits`.
- Backward compatible: prices, events, existing inputs and fields unchanged; memory entries for unresolved names carry
  no board, so 0.4.0 ignores them on rollback.

### 0.4.0 — 2026-11-29

- New input `companyNames`: plain company names, resolved by checking the documented Greenhouse, Lever and Ashby
  job-board APIs (at most 6 requests per name, response size capped). A board is selected only when it is the only
  one found, every check answered, it lists open jobs and its published Greenhouse company name matches. Every other
  outcome (`needs_confirmation`, `ambiguous`, `not_found`, `lookup_failed`) returns the possible boards in
  `candidates` and reads and bills nothing for that name. A selected board is remembered per monitor.
- No directory or third-party index is used or shipped.
- Backward compatible: `companies` behaves exactly as before (a plain name there still fails without a lookup);
  `companies` is no longer required when `companyNames` is given; billing, prices, state and existing fields are
  unchanged. A name resolving to a board already listed is processed and billed once.
- Dataset: company records may carry `inputType: "name"` and `candidates`, and the new statuses above.

### 0.3.8 — 2026-11-29

- Board links on Greenhouse's EU-hosted board domain are recognised: `job-boards.eu.greenhouse.io/x`,
  `boards.eu.greenhouse.io` embeds and `boards-api.eu.greenhouse.io` links. Such boards are read from the one
  documented API host, `boards-api.greenhouse.io`, which serves them (checked on four live EU-hosted boards on
  2026-11-29; `boards-api.eu.greenhouse.io` does not exist). Before, these inputs ended as "no ATS found".
- No change to reading, billing, state, input or output fields. No extra requests.
- Regression tests: EU links resolve to the Greenhouse provider and only the documented host is called; a board
  that answered before and then fails (401, 403, 429, 503, 404 or a timeout) closes nothing, bills nothing, keeps
  the stored view, and resumes without lost or repeated records.

### 0.3.7 — 2026-11-27

- Billing fails closed: when an event has no flat price on the platform (tier prices after Store discounts are
  enabled, or an event removed in the Console) the run stops before any request, delivery or charge, with
  `billing_unavailable` in OUTPUT. Apify SDK 4.3.0 skips such charges outside multi-tenant runs but reports them
  as charged. Regression tests for the tier-priced and removed-event cases. No input, output or pricing change.

### 0.3.6 — 2026-11-25

- README: Integrations section for Clay (per-account memory for parallel rows), n8n, Make, Zapier, Google Sheets,
  Slack and MCP clients, example tasks, a note on synchronous calls and on first-run company counts. No code, input,
  output or pricing change.

### 0.3.5 — 2026-11-25

- Company hiring signals (beta, free, opt-in with `emitSignals`): new department, geographic expansion,
  technology investment, hiring acceleration and slowdown, leadership hiring, seniority mix shift and a hiring trend
  record. History is kept in the existing company state; signals are never charged. New dataset view `signals`.
- Input schema: a short description of how to call the Actor (monitorId, spending cap) for API and agent users.
- README: the Python example works with the current `apify-client` 3.x (`call()` now returns a `Run` object;
  `run["defaultDatasetId"]` raised `TypeError`). A note covers 1.x and 2.x. No code or pricing change.

### 0.3.4 — 2026-11-24

- Price: `company-checked` lowered from $0.002 to $0.001 per company board read. `job-record` ($0.0015) and
  `job-closed` ($0.0005) are unchanged. README examples updated (50 companies daily: about $0.14 per day).
- Pricing version `2026-11-24.v3`; a regression test keeps prices inside the approved bounds.

### 0.3.3 — 2026-11-24

- README: quick start and FAQ (baseline, filter changes, unmatched vs closed, alerts for new jobs, board detection,
  several watch lists, spending cap).
- Listing compliance: links to the publisher's separate website removed from the README (Apify Store Publishing
  Terms). No code or pricing change.

### 0.3.2 — 2026-11-24

- Run report: the revenue estimates no longer add the synthetic `apify-actor-start` event, which is not part of the
  live pricing (pricing version `2026-11-24.v2`). No change to what customers are charged.
- README: API, Python, Make, Zapier and MCP examples.
- Metadata and attribution: Built by AGI Tools Team.

### 0.3.1 — 2026-11-24 (first public release)

- Platform finding: the 0.2.0-history check could not confirm a store's existence under limited permissions and fell
  back to opening it, which creates an empty store. It now tries the username and the user ID forms and, when the
  platform cannot tell, opens nothing and tells the user how to keep 0.2.0 history (`stateStoreName`).

### 0.3.0 — 2026-11-24 (private, unpublished)

- **D12:** closures and `unmatched` records now follow what was actually delivered, not only the current view. Jobs
  taken in silently (`emitBaseline: false`) are never closed or removed with a record (never charged) unless they were
  delivered later, e.g. as `changed`. States from 0.2.0 keep their previous behaviour (only private monitors ran it).
- **D13:** monitor namespaces are collision-free and case-sensitive (`a_b`/`a-b`, `AB`/`ab` are separate). Canonical ids
  keep their store; other ids and Task memories are copied once from their 0.2.0 store, which is left untouched.
- **D14:** unexpected incomplete or malformed reads are discarded (status `incomplete`: no records, no charge, stored
  view untouched). Reads capped by `maxJobsPerCompany` are reported and charged for the jobs returned and close
  nothing (`capped: true`). The README now states exactly this.
- **D11:** optional, capped and cached Greenhouse pay ranges from the documented single-job endpoint
  (`greenhouseSalary`, `maxSalaryRequests`; `salaryStatus`, `salaryRanges`). Never part of the change fingerprint.
  Greenhouse company summaries no longer report a misleading 0% salary share.
- **D15:** pricing example corrected ($0.19/day, $5.70 per 30 days after the baseline); snapshot-mode cost disclosed.
- **Removal requests:** owner-managed exclusion list (`board_excluded`, never charged) and a documented process.

### 0.2.0 — 2026-11-24 (private, unpublished)

- **D6 (reported by an independent audit):** the output is now a consistent feed of the customer's *filtered view*.
  Hidden jobs that close produce nothing and are never charged; jobs leaving the view emit a free `unmatched` record;
  jobs entering it (edited, or the customer changed filters) emit `new` with `viewReason`. A randomised replay test
  checks that the feed always reproduces the current view.
- **D7:** one memory per monitor: `monitorId` input, automatic per-Task memory, a flagged shared default, and
  deliberate sharing through `stateStoreName`.
- **D8:** a 200 response without the documented fields is an error (`bad_response`), never an empty board. Items
  missing an id or title, Greenhouse `meta.total` mismatches, short or overlapping SmartRecruiters pages make a read
  incomplete (no closures). Losing more than half of a board of 10 or more jobs waits one more run before closing.
- **D9:** the lease is re-checked before every commit (a run that lost it stops without writing or charging); the same
  board given twice in one input is read and charged once. Tests cover simultaneous runs, expired leases, a lease
  stolen mid-run, and migration resume.
- **D10:** affordability uses the platform's configured prices; differences from the listed prices are reported as
  `priceDrift`; partially accepted charges are recorded as `chargeShortfall` and stop the run; estimates and actual
  platform charges are reported separately in `OUTPUT.billing`. No exactly-once billing claim.
- **Compliance:** SmartRecruiters disabled (API host robots.txt and API policy do not clearly allow this use); careers
  pages are fetched only where robots.txt allows; 1 request per second to Lever, per its robots.txt Crawl-delay.

### 0.1.1 — 2026-11-24 (private, unpublished)

- Fix: Lever boards that group jobs by team only now fill `department` (found in a private platform run on a real board).
- Fix: all timestamps are normalised to UTC `YYYY-MM-DDTHH:MM:SSZ` (ATS formats differed).
- New: normaliser versioning. After an upgrade that changes how jobs are fingerprinted, the next run re-baselines
  silently (no false "changed" records, nothing charged) and reports the count as `renormalized`.
  Trade-off: a genuine edit that lands in that same run is absorbed into the new baseline.
- Fix: run cost estimate calibrated against a billed platform run (inbound API traffic is not billed; compute is
  billed on the full run time). Estimate now within 3% of the billed amount (was 7.6x too high).
- Fix (found on the platform): error rows for unparseable or blocked inputs carried `ats: null`, which the platform's
  dataset-schema validation rejected, failing the whole run (exit 91). All optional dataset fields are now nullable,
  and the test suite validates every record against `.actor/dataset_schema.json`.
- New: `billableEvents` and `listPriceValueUsd` in the run report, so private runs show what a run would bill.

### 0.1.0 — 2026-11-24 (private, unpublished)

- Greenhouse, Lever (US + EU), Ashby and SmartRecruiters via their official public job-board APIs.
- Change detection per company: new, changed (with changed field names), reopened, closed.
- Safety: closures only from complete board reads; an empty board must stay empty two runs before jobs are closed.
- ATS detection from board URLs and careers pages; optional domain probing (flagged).
- Pay-per-event pricing: company-checked, job-record, job-closed. Unchanged jobs are free in "changes" mode.
- Crash-safe ordering (push, then state, then idempotent charge), state-store lease, max-charge guard.
