# Changelog of HelloWork Jobs Scraper — French Vacancies (`stone_jadex/hellowork-jobs-scraper`) Actor

- **URL**: https://apify.com/stone_jadex/hellowork-jobs-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/stone_jadex/hellowork-jobs-scraper.md

## Changelog

### 0.1.5 — 2026-11-21

- `.actor/input_schema.json`: added `sectionCaption` and `sectionDescription` groupings (`Search & job URLs`, `Result limits & detail enrichment`, `Request pacing, timeout & proxy`) while keeping all existing prefill values, limits, and descriptions intact.
- `README.md`: added JSON output example, live PPE Store subscription tier discount table (`Free` through `Diamond`), JavaScript and Python `ApifyClient` SDK quickstarts (`Stone_JadeX/hellowork-jobs-scraper`), and a `2026-11-21` changelog section.
- Tests: added `test/polish-schema.test.js` covering input schema sections/prefills, JSON schemas, and README sections.

### Unreleased — final-batch rules (2026-11-16)

- **Blocking (C1–C3):** 412 is now a block code like 403/429 (30 s then 60 s back-off, at most 2 retries). K1: once a request saw a block code, the next answer that is not 200 (any 3xx/4xx/5xx), a network error or a timeout ends it at once as blocked with the most recent block code. A block or challenge stops the **whole run** (list, detail and robots requests alike); a block wins over the deadline that prevented its back-off.
- **stopReason:** `blocked-403-or-429` → `blocked-<most recent block code>` (`blocked-403`, `blocked-412`, `blocked-429`); `challenge-or-auth` → `blocked-challenge`; normal end `complete` → `completed`; a list page that fails without a block now ends as `errors` instead of `complete`/`empty`.
- **End-state contract (幕僚 2026-11-16 12:30):** the platform run is always SUCCEEDED (only invalid input fails the run). OUTPUT `failed=true` for `blocked-*`, `errors` and a hard time-limit cut (`run-time-limit` with `deadlineSource: "hard-timeout"`); `failed=false` for `completed`, `empty`, `maxItems` and the buyer's own `maxRunSeconds`.
- **OUTPUT (fields added only):** `blocked` {status, url, retries, backoffSeconds, lastFailure}, `lastFailure` (status number, `timeout` or `network-error`), `runNotice` (states only the back-off waits that happened), `deadlineSource`, `errors[].type` (`blocked` / `blocked-challenge` / `list-error` / `detail-error`) with `errors[].url` and `errors[].lastFailure`, `http.status412`.
- **Detail failures:** unchanged behaviour, now tested: a failed detail keeps the list row (single event `hellowork-job`, same price); on a detail block/challenge the list row in hand is pushed first, then the run stops. Direct detail start URLs that fail are skipped (no list data) and listed as `detail-error`.
- **Pricing:** unchanged — single event `hellowork-job` $0.000565, no start event, no detail event. Push before charge unchanged. Input schema, dataset fields and proxy logic unchanged.
- **List failures (幕僚 2026-11-16 12:57):** `parse-failure` (unrecognizable list HTML) and `empty-payload-anomaly` (positive result count but no cards, even after a retry) now record OUTPUT `failed=true`, like `errors`. `page-repeat` and `no-progress` (natural pagination-end guards) stay `failed=false`. The run is still SUCCEEDED.
- Tests: `test/block-rules.test.js` (33 tests); old stopReason/failed assertions in `test/main.test.js` and `test/review-fixes.test.js` updated to the new rules; fake sleeps in tests yield via `setImmediate`.

### 0.1.3 — 2026-11-08 (OOM fix: list regex parse + drop HTML)

#### Fixed

- List-tier OOM on default 256MB: platform run `7gFnwTT7YOHdKjI6w` SIGKILL near ~489 jobs (memMaxBytes≈255MB). Root cause: full-page `cheerio.load` on ~600KB search HTML fragmented heap/RSS across pagination.
- `parseListPage` now slices `li[data-id-storage-item-id]` and maps with regex (no list cheerio). Detail path still uses cheerio.
- `main.js` nulls response HTML immediately after parse (list + detail) so bodies are not retained across pages/retries.
- `defaultMemoryMbytes` / `defaultRunOptions.memoryMbytes` remain **256** (no silent memory bump). No proxy/session/rotate changes.

#### Tests

- TDD: `test/memory-list-path.test.js` red first (`redlogs/memory-list-path-red.tap.txt`, ERR_ASSERTION peak heap delta 351MB), then green (`redlogs/memory-list-path-green.tap.txt`).
- `package.json` test script: `node --expose-gc --test test/*.test.js`.
- Full suite: `# tests 81` / `# pass 81` / `# fail 0`.
- Local coarse mem under `--max-old-space-size=256`: 1000 list parses peak heap delta ≈32.7MB, end RSS ≈100MB (`docs/handoff/oom-local-mem.txt`).
- Local `apify run` maxItems=2 list-only: exit 0, 2 rows, stopReason=maxItems.

#### Next

- Handoff to 幕僚: thousand-item free quota already used; jade must approve a second 1000-item calibration before cost officer.

### 0.1.2 — 2026-11-08 (final freeze: README + schema + npm test fix)

#### Changed

- `package.json` test script: `node --test test/` → `node --test test/*.test.js` so Node 24 no longer treats the `test/` directory as a single failing file.
- Docs handoff updated for final freeze (src unchanged vs df33dc3; README + four schemas already present from copy/schema officers).

#### Verified

- Full suite: `# tests 79` / `# pass 79` / `# fail 0`.
- Local `apify run` maxItems=2 list-only: exit 0, 2 dataset rows, no schema errors.

### 0.1.1 — 2026-11-08 (independent-review fixes)

#### Fixed

- Direct detail challenge/401/captcha: **no** ID-only skeleton push/charge; require matching primary JobPosting + title/content; invalid/mismatched JSON-LD → no charge; list rows may retain detail error then site-stop.
- `filters` + any `startUrls`: reject ANY nonempty filter search (equal/conflict/nonoverlap); top-level keyword/location with seeds not silently dropped; defaults only when no seeds/filters.
- Empty list: distinguish `zero-results` (SUCCEEDED `empty`) vs positive-meta empty (retry → `empty-payload-anomaly`) vs `malformed` (`parse-failure`); detail missing JobPosting retries once.
- List `companyLogo` prefers `/img/entreprises` / `object-contain` role=logo (not background jpg); list salary fills min/max/currency/period from employer tag; `salarySource` ∈ {employer,estimated,unknown}; estimate never employer; `salaryHidden` when JSON numeric without visible employer tag; French bounds/decimals/bonus handling.
- Contacts scoped to primary job sections; poison nav/footer/aside/recommendations excluded; `contactSections` preserved; names/addresses not claimed; `sourceJobPosting` strips credential/tracking keys; deep equality vs all 10 probe JobPostings.
- Pagination `page+1` while max credible (no skip 1→5); same-ID-set reorder / all-duplicate → `no-progress` with visible duplicate stats (syncStats-safe).
- Hop path allowlist: only robots/search/detail; refuse account/apply/signed query; credential URLs redacted in errors; 403/429 backoff before challenge unless explicit captcha.

#### Tests

- Genuine test-first regression: `test/review-fixes.test.js` + `redlogs/review-fixes-red.tap.txt` (16 fail ERR_ASSERTION before fix). Full suite `# tests 62` `# fail 0`.

### 0.1.0 — 2026-11-08 (developer freeze)

#### Added

- HelloWork public SSR list scraper (`li[data-id-storage-item-id]`) + optional detail JobPosting JSON-LD / primary DOM enrichment.
- Pure parsers (`src/parser.js`) covering all 33 anchor-compatible fields plus probe commercial extensions (estimatedSalary, salarySource/salaryHidden, employerReference, sourceJobPosting, productData allowlist×6, tags/educationRaw/experienceRaw/teleworkRaw, sections, gallery, contacts).
- Serial HTTP client with SSRF-before-hop, ≥1200ms completion spacing (incl. redirects), 403/429 ≥30s×2 site stop, challenge stop, empty-list retry diagnostics, run deadline gating.
- Input: default `developpeur`+`Paris`, maxItems 100, includeDetails false; verified `k/l/c/st/p`; untested filters rejected; filters↔startUrls conflict rejected; nonempty proxy rejected.
- PPE local event `hellowork-job` draft $0.000565 (anchor $0.00113); charge = successful pushes only.
- Offline fixtures from `/workspace/scratch/probe-hellowork` with PROVENANCE; `# tests 39` / `# fail 0`.
- Docs: approved-design, implementation-plan, handoff (dev.md Chinese, field inventory, test-results, rg-review).

#### Not in this freeze (other roles)

- Four schemas / schema.test.js / README / platform push/build/pricing.
