Monitor Apple Certified Refurbished for Mac Studio, Mac mini & every Mac. Instant Discord/Slack/webhook alerts on restocks, new listings, and price drops. Built for the 2026 shortage: refurb Studios sell out in minutes.
Failed collection now exits nonzero after saving diagnostic output. Verified empty source results and useful partial results are distinguished from blocked or unrecognized responses. Output is persisted before result charging; budget limits stop later billable work and count the last delivered item correctly. The actor uses the supported Node line pinned in its Dockerfile and compatible security-patched package resolutions.
Custom proxy URLs are supported even with useApifyProxy:false. HTTP actors retain optional/direct routing; US retailer browser defaults use residential US unless explicitly overridden. Group/country UI aliases are normalized without mutating caller input.
Run npm test, npm run test:cache-patch, and npm run test:integration on the matching Node runtime. Live tests use isolated storage and require real useful output. From the repository root, make verify-portfolio uses the pinned container runtimes without deleting actor-owned state. make verify-live ACTOR=<slug> runs a fresh container smoke; PROXY=true explicitly requests a US residential route and uses the established Make credential loading. No deployment occurs during verification.
Monitor state is versioned and old observations are retained on migration. Failed or capped scans do not turn unobserved entities into removals or create a false recovery alert. A persisted outbox retains undelivered transitions with stable eventId values. Run only one monitor at a time per watch scope: KV checkpoints are not an atomic distributed lock. Dataset output and webhooks are at least once across interruption windows. Deduplicate event IDs at the receiver. Completed charges are checkpointed; uncertain interrupted charges are not automatically repeated and require reconciliation. Do not delete a baseline to recover a pending delivery. Reverting to old code would lose these guarantees, so retain version-2 state and avoid blind state resets during rollback.
Product URL checks distinguish verified unbuyable pages from failed/unknown parsing. Only verified absence can mark a product gone. Webhooks have bounded deadlines and stable idempotency keys. An alert is a durable pending event; notification_receipt records carry its eventId and actual destination acknowledgments. alerts_dispatched counts acknowledged alert events, not queued notifications. Alert billing remains once per successfully delivered event, rather than once per destination. A failed delivery stays pending; no webhook URL or bearer token is placed in receipt records.
[0.3.1] - 2026-06-12
Crash fix + the test gates that make this class impossible
Fix:ReferenceError: eventCounts is not defined — a v0.3.0 refactor left the final log line referencing a variable that moved into records.js; the error boundary masked it (fired after pushData, pushed an error record, exited 0), so both local verification and the platform run looked superficially fine
Static gate: ESLint (no-undef, no-unused-vars) added and wired as pretest — npm test now fails on this bug class before any run; verified it flags the exact shipped bug at src/main.js:225
Dynamic gate: integration harness now captures child process output, and every successful-path E2E runs assertRunSucceeded() — zero error records, no "Actor failed" in output, success log line present
New live E2E for productUrls mode (the mode the regression was reported in)
[0.3.0] - 2026-06-12
Every run returns the matched inventory (UX bug fix)
Bug: after a watch's first run, re-running the same watch returned only a run_summary — matched listings were invisible unless alwaysSnapshot was on (Console runs of e.g. Studio+mini+MBP "returned nothing" while correctly matching 46 MacBook Pros; adding iMac looked like a fix only because the changed model set created a new watch with a fresh baseline)
Fix: every run now pushes one listing record per currently-matched listing, with a status field (baseline/active/new/returned/price-dropped); alerts remain diff-based; the Output tab defaults to the Listings view
alwaysSnapshot input removed (always on, never charged); listing-snapshot PPE event removed — pricing simplifies to stock-check + alert-dispatched
Record assembly extracted to pure src/records.js; unit tests now cover the exact multi-model matrix scenarios from the bug report, and the integration idempotency test asserts listings are present on every run (it previously asserted the buggy behavior as correct)
The user's "Maximum cost per run" is now honored: charging stops at the limit (eventChargeLimitReached), delivered data is never clawed back, and a warning is logged
Platform schema-validation fix + full test suite
Test suite added per docs/test-standards.md: 26 unit/contract tests (parsers, diff transitions, filters, webhook payloads, AJV dataset-schema contract incl. the null-bearing regression shapes) + 4 live integration tests (grid/product structure canaries, full child-process E2E with schema validation of every pushed record, forced-transition webhook delivery to a real local receiver). Fixtures captured from live apple.com with a refresh script.
Unit tests caught and fixed a parser crash on malformed/null grid tiles
The schema-validation fix itself
First platform run with MacBook Pro selected failed with Schema validation failed on pushItems: 28 of 46 MacBook Pro listings have no "Was" price on Apple's grid, so originalPrice/savingsUsd/savingsPct were null — and the dataset field schema typed them as strict numbers
Fix (both sides): null/undefined fields are now stripped from records before push (absent = unknown), and all typed dataset-schema fields accept null as a backstop
Reproduced and verified locally with AJV against live grid data before shipping
[0.1.0] - 2026-06-11
Initial release
Watches Apple Certified Refurbished (Mac grid or exact product URLs) across 10 countries
Pure-fetch engine via the embedded REFURB_GRID_BOOTSTRAP JSON — no browser, no proxy, seconds per run
Spec filters: model family, minimum unified memory, price band, keyword
Persistent per-watch state with four diff events: new-listing, back-in-stock, price-drop, gone
Instant webhooks: Discord and Slack auto-detected (rich embeds/blocks), generic JSON with optional bearer token
First-run baseline (no alert blast on new watches)
Savings vs new ($ and %) straight from Apple's grid data