| 1 | # Changelog |
| 2 | |
| 3 | All notable changes to this project will be documented in this file. |
| 4 | |
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), |
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | |
| 8 | This project uses [towncrier](https://towncrier.readthedocs.io/). Upcoming notes live in [`changelog.d/`](changelog.d/); do not edit this file in feature PRs. |
| 9 | |
| 10 | <!-- towncrier release notes start --> |
| 11 | |
| 12 | ## [4.9.0] - 2026-12-02 |
| 13 | |
| 14 | ### Added |
| 15 | |
| 16 | - Add a Ukrainian README with reciprocal language navigation and translation contract coverage. |
| 17 | - Added News RSS (`news_rss`, powered by the free keyless `news-rss-pp-cli` from `@mvanhorn/printing-press-library`) as a default-on mainstream news and OPML RSS source, auto-installed during first-run setup alongside Digg, arXiv, Techmeme, and Yahoo Finance. |
| 18 | |
| 19 | ### Changed |
| 20 | |
| 21 | - The README now discloses the Claude Code plugin's post-turn `Stop` hook and how to turn it off with `LAST30DAYS_AUTO_CAPTURE=off`. Techmeme upgrade hints name the pinned Printing Press package version. |
| 22 | |
| 23 | ### Fixed |
| 24 | |
| 25 | - HTTP 429 retries now honor HTTP-date Retry-After headers, including obsolete HTTP date formats, while retaining the existing wait cap and numeric rate-limit header handling. ([#1654](https://github.com/mvanhorn/last30days-skill/issues/1654)) |
| 26 | - Fixed the local Grok audit fixture dropping concurrent probe requests: its servers now listen with a backlog of 64 instead of the default 5. ([#1655](https://github.com/mvanhorn/last30days-skill/issues/1655)) |
| 27 | - Fixed Juejin and V2EX comment enrichment aborting report finalization when upstream comment or reply records contain malformed nested objects. ([#1672](https://github.com/mvanhorn/last30days-skill/issues/1672)) |
| 28 | - Fixed Top Community Comments deduplication dropping distinct comments that share the same 60-character prefix. ([#1674](https://github.com/mvanhorn/last30days-skill/issues/1674)) |
| 29 | - The extracted engine cache is validated on every `Ensure` call, so a long-lived MCP server that finds its cache deleted, corrupted, or no longer private rebuilds it instead of running the broken tree. Concurrent callers still share a single extraction, and a valid cache is still reused without rewriting. ([#1682](https://github.com/mvanhorn/last30days-skill/issues/1682)) |
| 30 | - Discovery surfacing retries now serialize the same-run idempotency check and upsert in one write transaction, preventing concurrent finalization from double-counting a topic. ([#1684](https://github.com/mvanhorn/last30days-skill/issues/1684)) |
| 31 | - `store query --since` now accepts only non-negative integer day durations such as `7d`, rejecting malformed values and out-of-range durations with concise CLI errors instead of silent date changes or tracebacks. ([#1685](https://github.com/mvanhorn/last30days-skill/issues/1685)) |
| 32 | - Instagram reels whose `taken_at` is a unix timestamp string now get the right date instead of being dropped by the date filter. ([#1692](https://github.com/mvanhorn/last30days-skill/issues/1692)) |
| 33 | - Reject signed or year-zero values in the Rust YYYY-MM-DD parser so freshness and markdown identity match Python. ([#1724](https://github.com/mvanhorn/last30days-skill/issues/1724)) |
| 34 | - The library feed now compares nanosecond source mtimes when two copies share an entry id, so it keeps the same newer copy as the Rust-backed search index. ([#1728](https://github.com/mvanhorn/last30days-skill/issues/1728)) |
| 35 | - The library Atom feed is now well-formed for every saved report: XML 1.0-invalid control characters and noncharacters in a title, summary, or topic are dropped instead of making the whole feed unparseable for readers. ([#1734](https://github.com/mvanhorn/last30days-skill/issues/1734)) |
| 36 | - `--max-results` and `--max-per-source` now floor negative overrides at 0 in the depth profile, so a negative cap can no longer invert list truncation and keep more items than a small positive cap. ([#1738](https://github.com/mvanhorn/last30days-skill/issues/1738)) |
| 37 | - Historical GitHub reports use releases, repositories, merges and comment text available by the requested cutoff. Repository counts and README text are identified as current at retrieval. Person reports show the account's most-starred public projects and keep its own repositories out of the external contributions list. |
| 38 | |
| 39 | Pinned project reports retain successful cards and identify unavailable GitHub data when a repository or release lookup fails. ([#1744](https://github.com/mvanhorn/last30days-skill/issues/1744)) |
| 40 | - `threads._parse_items` now skips non-object entries like the Pinterest and Instagram parsers do, so a single `null` in the search payload no longer raises `AttributeError` out of `search_threads` and zeroes the whole Threads source. ([#1747](https://github.com/mvanhorn/last30days-skill/issues/1747)) |
| 41 | - `linkedin.read_profile` (the person-run profile read) now builds its request through `_sc_base()` like every other ScrapeCreators call, so `SCRAPECREATORS_BASE_URL` overrides apply to the LinkedIn profile endpoint instead of being silently bypassed. ([#1753](https://github.com/mvanhorn/last30days-skill/issues/1753)) |
| 42 | - A freshly fetched Trustpilot record is now dated today (`dates.get_date_range(1)[1]`) instead of the one-day window's start (`[0]`, i.e. yesterday), matching the "a fact about now" contract; cached records keep their fetch date. The existing test that asserted the off-by-one is corrected to match. ([#1758](https://github.com/mvanhorn/last30days-skill/issues/1758)) |
| 43 | - Ardia browser cookies are now read for X and the Reddit session. Set FROM_BROWSER=ardia, or let auto mode reach it. Before this, an Ardia user with a stale Chrome X login got "logged out" X errors, because auto mode stopped at Chrome's dead cookie pair and never looked at Ardia. |
| 44 | - Avoid running a source twice for the same subquery when the plan repeats its name. |
| 45 | - Compact reports now preserve source failure coverage when an older result has error messages but no structured source outcomes. |
| 46 | - Firefox cookies are read again while Firefox is running. Firefox keeps cookies.sqlite in WAL mode under an exclusive lock, so the SQLite backup snapshot timed out and every consented read (X cookies, the logged-in Reddit session) was reported as not logged in. A locked WAL database is now snapshotted from verified copies of the database and its WAL, as the WSL path already did. |
| 47 | - HTML exports keep prose and the report badge outside preceding lists. |
| 48 | - HTML research exports preserve balanced parentheses in citation destinations. |
| 49 | - Preserve valid Hacker News stories when Algolia returns malformed hits, and report incompatible search responses as source errors. |
| 50 | - Report freshness now counts only valid evidence dated on or before the research window end. |
| 51 | - Report unexpected Techmeme CLI JSON as a source error so a failed search does not appear to have completed with zero results. |
| 52 | - Watchlists now show the newest run status when multiple runs start in the same second. |
| 53 | - Weekly research cost statistics now include retained usage from removed watchlist topics. |
| 54 | - When several sources cover the same URL, the evidence excerpt comes from the submission whose title and metrics are displayed. |
| 55 | |
| 56 | |
| 57 | ## [4.8.1] - 2026-11-28 |
| 58 | |
| 59 | ### Changed |
| 60 | |
| 61 | - Juejin and V2EX are now listed in the "Sources, scored by the people" table of the English and all 11 translated READMEs, after the Xiaohongshu (RED) row. Both are free and keyless, so they belong in the main source table rather than the "Bring your own keys" table. Fixes #1651. ([#1651](https://github.com/mvanhorn/last30days-skill/issues/1651)) |
| 62 | - Configuration docs clarify that caption-free YouTube videos are not speech-to-text transcribed and Groq/OpenAI keys do not enable that path. |
| 63 | |
| 64 | ### Fixed |
| 65 | |
| 66 | - Reports on emerging or rising topics no longer discard relevant evidence because a leading trend word is mistaken for the subject. ([#1645](https://github.com/mvanhorn/last30days-skill/issues/1645)) |
| 67 | - Juejin articles with a malformed timestamp or an extreme engagement count no longer abort parsing: an invalid date is reported as missing, and a negative or overflowing counter counts as no signal. ([#1649](https://github.com/mvanhorn/last30days-skill/issues/1649)) |
| 68 | - Finished briefs, library pages, and hosted-mode saves for long topics now use the same shortened filename as local saves instead of failing with "File name too long". |
| 69 | - The research engine no longer creates Python bytecode caches inside installed skill directories. |
| 70 | |
| 71 | |
| 72 | ## [4.8.0] - 2026-11-27 |
| 73 | |
| 74 | ### Added |
| 75 | |
| 76 | - Added Juejin (掘金), a large Chinese-language developer article platform, as a free, keyless, opt-in source. `INCLUDE_SOURCES=juejin` (or `--search juejin`) searches recent articles through Juejin's public web API, ranks them by likes, comments, saves and views, and attaches the most-liked comments from the top articles. It stays off, with no traffic to Juejin, until you turn it on. |
| 77 | |
| 78 | |
| 79 | ## [4.7.0] - 2026-11-26 |
| 80 | |
| 81 | ### Security |
| 82 | |
| 83 | - Harden Reddit URL validation, path-health persistence, and logged-in session concurrency: validate and encode outbound subreddit, post ID, and date parameters across shreddit, listing, Arctic Shift, public search, and thread-enrichment URL builders; prevent malformed thread JSON or mid-hydration/single-ref session expiry from discarding privacy `DROP` verdicts or permanently dropping public threads; coalesce concurrent in-flight session discovery and fetch calls with deadline/cancellation support; and protect `reddit-health.json` with cross-process file locking, owner-only atomic writes (`0o600`), and monotonic same-run state transitions so stale `OK` responses cannot clobber `BLOCKED` cooldowns. |
| 84 | - Harden X envelope HTML-entity sanitization against downstream unescape bypasses, validate cached Bird GraphQL query IDs and session cookie tokens, redact X session cookies across all Bird Python and Node error paths, and enforce `--` end-of-options separation with strict count validation across the Python-to-Node `bird-search` CLI boundary. |
| 85 | - Harden `.env` writing against Unicode line-separator injection, restrict `lib/http.py` to `http`/`https`, enforce public-host SSRF/redirect guards in the jobs lane, reject symlinks and non-identifier key leaks in untrusted `.claude/last30days.env` inspection, lock down MCP engine cache extraction with version validation, UID scoping, ownership/symlink checks, and SHA-256 verification, reject path traversal in `briefing.py show --date`, preserve `LAST30DAYS_PUBLISH_PASSWORD` in `references/save-html-brief.md`, defang commenter and Hiring Signals evidence outputs in `lib/render.py`, and prevent single-entity black-hole cluster merges in `lib/cluster.py`. |
| 86 | - Harden `lib/render.py` against URL userinfo leaks and malformed-IPv6 crashes in Web footer site names, strip URL userinfo and defang nested/extended engine and library-context sentinels across single-line URLs, drill summaries, freshness tables, `render_context`, and `render_brief`, wrap private local-corpus freshness verdicts in `PRIVATE_CORPUS` markers in `render_context`, and enforce the `no_solid_evidence` guard for Hiring Signals in `render_for_html`. |
| 87 | - Harden keyless web search, official-site social resolution, and Parallel MCP against ReDoS, SearXNG/redirect SSRF, unbounded/non-UTF-8 reads, and slow-loris SSE hangs. |
| 88 | - Harden media and social fetchers: validate YouTube direct-transcript `baseUrl` hosts/redirects with a 5 MiB read cap across direct and `bounded_get` subprocess transports, and validate/escape YouTube `video_id` across VTT globbing and watch URLs (`lib/youtube_yt.py`, `lib/bounded_get.py`); enforce syntax-checked remote URLs, yt-dlp config/plugin/cookie/size/livestream isolation, a loopback public-IP-pinning and byte-capped validating proxy, and `ffmpeg` file-only protocol whitelisting with self-contained container demuxer enforcement (`lib/transcribe.py`); and strictly validate `BSKY_SEARCH_HOST` without logging raw invalid values while withholding `bsky.social` Bearer tokens from non-Bluesky hosts (`lib/bluesky.py`). |
| 89 | - Harden permission preflight disclosures, atomic private file writes for setup and doctor caches, xurl app-only bearer prescriptions, and Gemini header authentication and model validation. |
| 90 | - Harden social and scraping adapters against credential leakage in header errors, Xiaohongshu base-URL SSRF and null-payload crashes, LinkedIn profile URL forwarding, GitHub negated-qualifier/quote query breakout and `.git` star-mapping corruption, and static Whisper multipart boundaries. |
| 91 | - Harden subprocess source adapters and the search-quality evaluator against CLI flag injection, unvalidated upstream IDs, Windows `.cmd` launch failures, parent-environment secret leakage, and unscrubbed Bright Data credentials. |
| 92 | - Harden the Go MCP server subprocess runner against post-reap Unix PID-reuse process-group signaling races by pinning the child leader unreaped (`waitid(..., WEXITED|WNOWAIT)` on Linux, `kqueue` `EVFILT_PROC`/`NOTE_EXIT` on macOS/BSD) until all group signals finish, and cap subprocess stdout, stderr, Python version-probe output, and MCP error stderr excerpts in memory to prevent OOM and oversized error responses. |
| 93 | - Harden vendored `bird-search`, `bird_x`, and `xquik` against query/handle injection, unvalidated discovery redirects and unbounded bundle fetches, response body timeout and 404 stream leaks, non-atomic/symlink cache writes, infinite cursor pagination loops, browser-cookie consent bypass and stale failover callbacks, and uncancelled Node subprocesses. |
| 94 | - Hardened CLI privacy, read-only, and concurrency boundaries: `--record-fixtures` now refuses logged-in Reddit sessions during `--drill` and `--discover` runs and rejects `--diagnose`/`--preflight` before opening a fixture file; `--mock`, `--discover --finalize`, hosted API runs (including excluded corpora), empty/invalid invocations, and non-auto `setup` sub-flags skip browser cookie extraction and unused Keychain/`pass` lookups; `--preflight` and `--diagnose` can no longer be bypassed by mutating subcommands (`setup --store-key`, `setup`, `library feed`, `queue cover`); parallel comparison fan-out and `pipeline.run()` isolate per-entity `config` dicts to eliminate races and state leakage; and cache-only `--verify-freshness` enforces `--publish-html` requires `--emit=html` and honors `--synthesis-file`. |
| 95 | - Hardened HTML rendering against URL-scheme, template-placeholder, and marker/footer attribute injection, restricted hosted HTML publishing to strict HTTPS without redirects, and hardened private file and SQLite helpers with atomic owner-only writes, `O_NOFOLLOW`/`fchmod` checks, and parent directory-chain validation. |
| 96 | - Hardened HTTP response size bounds, entity/keyless URL SSRF checks, and robots.txt wildcard matching: |
| 97 | |
| 98 | - Enforce bounded response reads (16 MiB default body cap, 64 KiB error-body cap) in `lib/http.py` and `lib/bounded_get.py`, stream `bounded_get` bodies through a private temporary file with capped JSON metadata capture instead of base64-over-pipe amplification, and close 3xx redirect streams without unbounded `fp.read()`. |
| 99 | - Validate official-site domains and URLs in `lib/resolve.py` and `lib/company_resolve.py` via `urlsplit` and `lib/public_host.py`, rejecting IP literals, reserved local/internal suffixes, userinfo, non-standard ports, non-2-letter ccSLD look-alikes, and unsafe single-statement Wikidata P856 URLs; enforce `public_only=True` and safe decode/error handling in `official_site_socials`. |
| 100 | - Replace regex backtracking in `lib/job_boards/robots.py` with a linear-time wildcard matcher and bounded parser limits to eliminate `robots.txt` ReDoS. |
| 101 | - Validate target URLs in `lib/web_fetch_keyless.py` against private/loopback/metadata/userinfo/internal targets, enforce `public_only=True` plus an `r.jina.ai` HTTPS redirect guard, and handle decode failures cleanly. |
| 102 | - Hardened X backends (`grok_audit`, `grok_x`, `x_envelope`, `xai_x`) against OIDC audit bypass, raw CLI secret/error leakage, cross-thread rejection-reason races, unallowlisted envelope error categories, non-finite JSON engagement crashes, unvalidated xAI post provenance, and unescaped xAI prompt interpolation. |
| 103 | - Hardened browser cookie extraction, live Chrome CDP validation, throwaway Chrome profile setup, and `agentcookie` consent gating: macOS Chromium decryption now runs in-process without exposing master AES keys on `openssl` `argv` and pins `/usr/bin/security`; Firefox and Chromium SQLite temp copies close file descriptors before cleanup and scope cookies strictly by exact host, expiry (including Firefox 142+ millisecond expiry), path, and partition (including Chromium `has_cross_site_ancestor`); CDP endpoints always use a dedicated no-proxy, no-redirect HTTP opener and enforce loopback-only `http://`/`ws://` URLs with host/port matching and strict WebSocket target validation; `box_chrome_login.py` and the setup guide launch via `--exec` with a verified trusted-ancestor `0700` per-user directory instead of `/tmp/last30days-x-chrome`; and `agentcookie.is_disabled()` honors environment refusals symmetrically and respects explicit `FROM_BROWSER` pins. |
| 104 | - Hardened hosted API client, GitHub device-auth setup wizard, and Keychain/pass helper scripts: |
| 105 | - Bypass ambient `HTTP_PROXY` for loopback `http://` `LAST30DAYS_API_BASE` requests, block cross-origin redirects, reject embedded URL userinfo/query/fragment/backslashes/invalid ports and control characters in `LAST30DAYS_API_BASE` and `LAST30DAYS_API_KEY`, and scrub credentials from hosted error output. |
| 106 | - Strictly validate GitHub device-auth `verification_uri` values (exact HTTPS `github.com` under `/login/device`, no query/fragment/userinfo/control characters) before emitting or launching `webbrowser.open()`. |
| 107 | - Route device-auth HTTP requests in `setup_wizard.py` through a dedicated HTTPS-only no-redirect opener (bypassing any wrapped `urllib.request.urlopen`), bound response sizes, close `HTTPError` streams, and redact secrets from HTTP error details before logging or returning them. |
| 108 | - Pin `/usr/bin/security` unconditionally when present and pass hex-encoded secrets over stdin via `security -i` in `setup-keychain.sh` instead of passing plaintext secrets on process `argv`. |
| 109 | - Validate `LAST30DAYS_PASS_PREFIX` and key names against `ALL_KEYS` (with Bash 3.2–safe regexes), and pass `--` end-of-options markers to every `pass` invocation in `setup-pass.sh`. |
| 110 | - Hardened job-board URL/host/port validation, redirect and bounded-TTL DNS SSRF guards across `jobs.py` and `job_boards/*`, URL escaping for remote job IDs/paths, and linear-time HTML/XML/JSON-LD/RSC parsing to eliminate ReDoS. |
| 111 | - Hardened logged-in Reddit session privacy filtering and host envelope file reads: non-public subreddit types (`gold_only`, `gold_restricted`, `employees_only`, missing/unknown) are now blocked by default via a public-type allowlist and never cached in `public_subs`; per-entity named subreddit allowlists are isolated via a lane `ContextVar` during comparison runs; and `--reddit-threads` / `--shortform-urls` file loading now checks protected credential directories before statting, opens files with `O_NOFOLLOW | O_NONBLOCK` with `fstat` device/inode verification against TOCTOU swaps, and converts stdin/NUL-byte errors into exit-2 contract errors. |
| 112 | - Hardened release CI, packaging ignore files, and skill shell runbooks: `.github/workflows/release.yml` now validates tag syntax, resolves `refs/tags/` to a commit, and checks lockstep manifest versions before building or minting SLSA attestations; `.skillignore`, `.clawhubignore`, and `skills/last30days/.skillignore` exclude `.env`, `.env.*`, `.claude/`, key/cert files, caches, and non-runtime dev artifacts in parity; `research-runbook.md` uses private `mktemp -d` directories with `>|` and `EXIT` cleanup for host thread/shortform envelopes; and `followups.md` and `library-queue.md` capture untrusted targets/queries via single-quoted heredocs with `--`/`=` flag separation. |
| 113 | - Hardened watchlist webhook delivery against SSRF and redirects (HTTPS public-host, DNS, and no-redirect enforcement), fixed four fail-open private-corpus redaction gaps in `public_markdown`, blocked symlink/FIFO escapes and oversized files during library scanning, sanitized store FTS5 search queries and excluded dismissed findings, and hardened `library_index` SQLite connection and sidecar handling via `prepare_private_sqlite_files`. |
| 114 | - Kept the ScrapeCreators API key on the local connection when `SCRAPECREATORS_BASE_URL` points at a loopback gateway, as `CONFIGURATION.md` already promised for the bearer-based providers: a loopback `http://` request that carries a provider credential header now bypasses the configured HTTP proxy regardless of which header the provider uses (`X-api-key` for ScrapeCreators, `Authorization` for the rest), while ordinary loopback traffic keeps its proxy route. Also masked credential query parameters in the `get_text` failure log, which printed the raw URL where `request` already logged a redacted one. |
| 115 | |
| 116 | ### Added |
| 117 | |
| 118 | - Add `LAST30DAYS_X_BUDGET_SECONDS` so a signed-in Grok plan's 150–170s call is no longer cut off by the fixed 90s X chain budget, and raise the X stream wait to the configured budget plus a 10-second margin for runs that will submit X, with the standard 180s wait as a floor and the run's finalization cutoff as a hard ceiling that the supplemental handle lanes and thin-result retry chain calls also honour. ([#1626](https://github.com/mvanhorn/last30days-skill/issues/1626)) |
| 119 | - Add a Russian README with reciprocal language navigation and translation contract coverage. |
| 120 | - Add a Vietnamese README with reciprocal language navigation and translation contract coverage. |
| 121 | - Added V2EX, the largest Chinese-language developer community, as a free, keyless, opt-in source. `INCLUDE_SOURCES=v2ex` (or `--search v2ex`) searches topics from the window through the community-run SOV2EX index and attaches replies from the top topics. It stays off, with no traffic to V2EX or SOV2EX, until you turn it on. |
| 122 | - Built-in standalone Rust compute core (`last30days-core`) now runs by default for library Markdown scanning and privacy redaction (up to 40-100x faster on large saved libraries), fuzzy near-duplicate detection, candidate clustering, and signal annotation. Prebuilt binaries (macOS arm64/x64, static musl Linux x64/arm64, Windows x64) auto-install with SHA-256 checksum verification during `setup` and first live run with zero Rust toolchain required, while pure Python remains as an automatic fallback (`LAST30DAYS_ENGINE=python` to force fallback; `doctor` reports active core status). |
| 123 | - DeepSeek Harness is now a documented host: the global `npx skills add -g` install lands in `~/.agents/skills`, which DSH scans, so `/last30days` works there with no extra setup. See README and CONFIGURATION.md. |
| 124 | - The Codex plugin now ships an icon (`assets/icon.svg`), set as `interface.composerIcon` and `interface.logo` in `.codex-plugin/plugin.json`. |
| 125 | |
| 126 | ### Changed |
| 127 | |
| 128 | - The skill frontmatter description now fits the 60-character routing index that truncating hosts apply (Hermes clips every skill description at `SKILL_PROMPT_DESC_LIMIT = 60`), so the line no longer loses its tail before the model picks the skill. The doctor/health-check routing for "is my last30days search broken?" prompts is preserved inside the shortened line. |
| 129 | |
| 130 | ### Fixed |
| 131 | |
| 132 | - Setting `LAST30DAYS_REASONING_PROVIDER=local` (or `off`/`none`) now reliably forces deterministic planning and local scoring even when remote provider API keys (`GOOGLE_API_KEY`, `OPENAI_API_KEY`, `XAI_API_KEY`, `OPENROUTER_API_KEY`) are present in the environment. ([#1566](https://github.com/mvanhorn/last30days-skill/issues/1566)) |
| 133 | - The README and all translated READMEs now explain that API keys inherited from the shell can enable remote reranking in the default `auto` mode and link to the local-scoring instructions. ([#1568](https://github.com/mvanhorn/last30days-skill/issues/1568)) |
| 134 | - Reddit discovery's keyless web floor now forwards user-approved `LAST30DAYS_SEARXNG_URL` configuration to the keyless search ladder so the optional SearXNG fallback can run when public HTML rungs return no results. ([#1590](https://github.com/mvanhorn/last30days-skill/issues/1590)) |
| 135 | - Bound the engine's optional remote query planner so a stalled provider falls back to local planning before blocking source retrieval for minutes. ([#1602](https://github.com/mvanhorn/last30days-skill/issues/1602)) |
| 136 | - Restore the Grok X safety audit for signed-in subscription users by discovering models through the session proxy. ([#1623](https://github.com/mvanhorn/last30days-skill/issues/1623)) |
| 137 | - - Anchored `query.extract_compound_terms` to full Unicode- and symbol-safe word boundaries with PascalCase/camelCase/acronym brand support (`GitHub Actions`, `AWS Step Functions`, `IBM Watson`, `Google AI`, `DeepSeek R1`), preserved 2-word brands (`New Balance`, `On Running`, `Best Buy`, `Best Egg`, `Fix Auto`, `The Verge`) without quoting noise+acronym phrases (`Best VPN for travel`, `Top CRM for startups`) or Title-Cased prompts/questions (`Best AI Coding Tools for Python Developers`, `How to Install Docker`), and capped compound phrases to 2–3 words in `planner._keyword_query`. |
| 138 | - Anchored subreddit (`r/`), X/Twitter profile URL and `@mention`, and GitHub URL/segment regexes in `resolve.py` so `*x.com` domains (`netflix.com/watch`, `dropbox.com/s`, `linux.com/news`), email addresses, dotted handles/segments (`github.com/team.example/project`, `@alice.bsky.social`), and non-Reddit slash paths (`user/foo`, `editor/bar`, `twitter.com/r/...`) no longer produce false handles or subreddits. |
| 139 | - Aligned topic and candidate tokenization in `competitors.py` (including contiguous multi-word slice matching) and excluded `_STOPWORD_TOKENS` from `_topic_tokens` so punctuated brands (`AT&T`, `Node.js`, `Coca-Cola`, `Next.js`, `A&W`, `T-Mobile`, `Booking.com`) and spaced variants (`Coca Cola Zero`) are filtered as self-references without blacklisting real competitors sharing generic words like `"AI"` or `"The"`. |
| 140 | - Fixed `planner._fallback_plan` to intersect `requested_sources` with `available_sources` and stopped injecting `grounding` into explicit `--search` lists for Hebrew topics (preventing source-boundary violations and `--quick` slot eviction). |
| 141 | - Hardened `discovery_handoff.py` and leg-1 `--discover --nominate-only` validation to enforce the same `1..3650` integer `lookback_days` contract before sweeping, writing, and reading bundles; reject non-finite worthiness values (`NaN`/`Inf`/`1e400`); wrap `UnicodeDecodeError` and huge JSON integer `ValueError` in `HandoffContractError`; and validate nested bundle and seed-item fields (`context`, `mock`, `nomination`, `items`, `item.source`, `sources`, and duplicate `nomination_id`s) so corrupt rows degrade cleanly without crashing resume. |
| 142 | - - Avoided imposing the hardcoded 280s command `_finalization_deadline` on `--discover --judgments` (letting `enrich_nominations`'s batch budget govern per-topic finalization) and anchored `--deep-research`'s command cutoff past `LAST30DAYS_PERPLEXITY_DEEP_TIMEOUT_SECONDS` plus a finalization reserve. |
| 143 | - Persisted every entity's report in comparison runs when `--store` / `LAST30DAYS_STORE` is enabled, aggregating `new`/`updated` counts across all compared entities instead of dropping competitor findings. |
| 144 | - Fixed Top Voices ranking (`_top_voices_footer_line`, `_rank_voice_handles`, and `## Stats` `_top_voices_overall`) so normalized TikTok, Instagram, and Threads bare usernames are ranked by engagement with `@` formatting rather than silently dropped or bypassing handle caps, and added `"truthsocial": "@"` to `_HANDLE_PREFIX`. |
| 145 | - Stripped leading `@`, `u/`, and `/u/` prefixes before checking `_BOT_AUTHOR` in `_is_community_comment` so prefixed bot accounts (such as `u/AutoModerator`, `@bot`, and `@dependabot`) cannot enter the quote pool. |
| 146 | - Hardened `_render_best_takes`, `render_brief`, `render_full`, and `_render_candidate` against `None`/malformed comment, insight, highlight, and `outcome_prices` metadata, read `excerpt` comments across all sources in Best Takes, and removed the dead `author` gate that stripped Reddit `r/{container}` attribution. |
| 147 | - Guarded `_aggregate_engagement`, `_top_comments_list`, `_market_window_lines`, `_yahoo_finance_footer_line`, `_candidate_freshness_flag`, and `_render_resolved_entities_block` against `None`, string-typed numerics, `bool`/`NaN`/`Inf`, unknown freshness states, and partial or non-dict artifacts. |
| 148 | - - Routed all `lib/ui.py` and `lib/log.py` stderr writes through a shared encoding-safe writer with ASCII spinner/status fallbacks so Windows `cp1252` and ASCII-locale streams never crash with `UnicodeEncodeError`. |
| 149 | - Executed the resolved executable path (`shutil.which(name)`) in `lib/health.py` dependency and command probes so Windows `.cmd`/`.bat` CLI shims (`grok`, `brightdata`) are not falsely marked `broken`. |
| 150 | - Fixed X pin diagnostics across `lib/doctor.py` and `lib/env.py` so non-`bird` pins are never overwritten with `"will use: bird"`, pinned `bird` pending browser auth is recognized when other X keys exist, and pinned backend failures attribute status/detail/requires/fix strictly to the pinned backend. |
| 151 | - Aligned `lib/doctor.py` source readiness with `pipeline.available_sources()` by gating Pinterest, Trustpilot, Amazon, and Xiaohongshu on `INCLUDE_SOURCES`, downgrading Trustpilot when `can_run=False`, and marking `EXCLUDE_SOURCES` entries excluded while skipping live probes for them. |
| 152 | - Stripped whitespace on backend pins in `lib/backends.py`, forwarded explicit `pin` arguments into `_specs_for_policy()` on Grok Bot hosts, and registered the opt-in `parallel-mcp` web backend. |
| 153 | - Fixed `extract_gemini_text()` and `extract_openai_text()` in `lib/providers.py` to skip Gemini `thought=True` parts and OpenAI/xAI reasoning blocks, join multi-part text, avoid short-circuiting on empty `output_text`, and extract list-typed `message.content` blocks. |
| 154 | - - Serialized SQLite usage journal writes with a process-level lock, WAL mode, `BEGIN IMMEDIATE`, and 30-second busy timeouts, and guarded `usage.begin()`/`cancel()`/`finish()` against `sqlite3.Error` so journal failures never abort live HTTP calls or mask transport errors. |
| 155 | - Stripped unsubstituted `${user_config.*}` placeholders per configuration layer in `lib/env.py` before secret-store fallback, layer merging, alias resolution, lazy env exports, and browser-cookie preflight calculation, while preserving `None` vs `""` semantics and process-env-only boundaries. |
| 156 | - Clamped `http.request(..., retries=...)` to at least 1 attempt so callers passing `retries=0` (including Bluesky session refresh and Xquik key probes) execute one attempt instead of failing immediately with zero attempts. |
| 157 | - Switched watchlist Slack and generic webhook delivery to `http.post_raw()` so plain-text 2xx responses (such as Slack's `"ok"`) succeed instead of failing JSON parsing with `schema_drift`. |
| 158 | - Validated `daily_budget` in `watchlist.py config budget` and shared a fail-closed `_parse_budget()` parser across `watchlist.py` and `briefing.py` to reject `NaN`, `inf`, negative, and non-numeric values. |
| 159 | - Made `store.store_findings()` atomic with `BEGIN IMMEDIATE` and unconditional `ON CONFLICT(source_url) DO UPDATE` plus in-transaction sighting ID resolution so concurrent topic or finding deletions cannot cause stale-ID foreign-key failures or drop batches. |
| 160 | - Closed all SQLite connections unconditionally in `lib/library_index.py` via a managed context helper, preventing file descriptor leaks and ensuring corrupt database rebuilds close handles before unlinking files. |
| 161 | - Enforced `finalization_deadline` across Digg, Reddit, dev.to, and Amazon post-ranking enrichments with live elapsed-time tracking; unified X backend failover so `x_receipts`, `x_judge` pruning/retry, Bird auth classification, and non-HTTP exception failover always run; scaled Reddit's free-lane deadline margin proportionally on tight budgets; added cooperative cancellation and exact `TimeoutError` classification to Reddit ScrapeCreators backfill; prevented `RetrievalBundle` outcome races and failure-specificity clobbering across parallel streams and Phase 2 X handle lanes. |
| 162 | - Fix CLI contract and Polymarket/quote-pool rendering bugs: accept `stocktwits` in `--search` and `LAST30DAYS_DEFAULT_SEARCH`, fail fast on `--emit=brief` for comparison and competitor runs before spending API calls, save complete raw evidence to the main entity's `{slug}-raw.md` during comparison `--save-dir` runs, normalize `DEFAULT_MEMORY_DIR` comparisons so library search/feed/context and SQLite store paths stay unified when `LAST30DAYS_MEMORY_DIR` or `--save-dir` matches the default directory, prevent Polymarket tied-price misattribution and pre-slice slot loss, and ground comparison quote-pool comments on stripped quote text with whole-word matching for short entity names. |
| 163 | - Fix freshness verification and Polymarket matching/outcome-parsing bugs: key `verify_report` grounding lookups by `candidate_id` (falling back to `(source, url or item_id)`) so colliding positional IDs (`GH1`, `ST1`, `PM1`) verify against the right item; record `outcome_market_ids` on synthesized multi-market Polymarket items so direct and cached verification match sub-markets by market ID when available and return `unsupported` on cross-market ambiguous labels when verifying older reports without market IDs; share snapshot resolution between `polymarket.refetch_datum` and `freshness.verify_report`'s `point_cache` (current names before separate `legacy_values`, casefold/whitespace parity, ASCII digit guards, separate current/legacy `blocked_repeats`, rejecting ambiguous unsuffixed multi-occurrence labels, `None` -> `unsupported`, and valid-pair filtering in `extract_claims`); fix `_newer_status_contradiction` to ignore undated claims, parse UTC/date-only timestamps via `dates.parse_date`, rank copulas `was < became < has been < is/remains` with unambiguous highest-priority agreement, aggregate tied newest items, and identify items by `(source, url or item_id)`; require original-case all-caps non-noise tokens for Polymarket acronym matching; disambiguate multi-market outcome labels across all child markets before floor filtering and preserve resolved-No (`0.0`) and sub-floor outcomes during `include_all_outcomes=True` synthesis; check raw `outcomes` for binary sibling synthesis; treat malformed spreads as missing in `_quoted_price`; and harden `_parse_outcome_prices` against non-list JSON, `bool`/non-finite/overflow/out-of-range prices, and missing first-outcome quote misattribution. |
| 164 | - Fixed X backend and vendored bird-search reliability issues: Grok JSON wrapper unwrapping with numeric IDs and multi-key prose fallback, xAI response envelope null-safety and abbreviated engagement parsing, `x_judge` low-signal scaffolding exclusion, X API full-archive 403 probe isolation and conditional 7-day truncation warnings, X API handle-lane error propagation and pre-start timeout errors, Xquik HTTP 429 early stop and non-auth failure reporting, UTF-8 decoding in `xurl` subprocesses, and bird-search `TweetWithVisibilityResults` unwrapping, `TimelineReplaceEntry` cursor extraction, and null-safe GraphQL parsing. |
| 165 | - Fixed YouTube yt-dlp comment fetching to request top-level parent comments only (excluding nested replies and empty entries before applying `max_comments`), hardened Bluesky session caching against concurrent stampedes and single-use refresh JWT rotation races, isolated LinkedIn "No posts found" 404s and optional profile-enrichment errors from pipeline failure reporting, bounded `pdftotext` corpus extraction with UTF-8/separator flags and `UnicodeError` handling, and exposed `BSKY_HANDLE` and `LAST30DAYS_X_BACKEND` (with automatic `xapi` opt-in for MCP `X_BEARER_TOKEN`) in the MCP bundle. |
| 166 | - Fixed engagement scoring monotonicity across Threads, Pinterest, LinkedIn, GitHub, Xiaohongshu, and generic fallbacks; restored the 1,000-view TikTok/Instagram spam floor on single-source streams; lowered the generic-only relevance cap below `RELEVANCE_FLOOR`; made X engagement rescue tie-aware at the 100-point ceiling; partitioned out-of-window clusters below in-window clusters and guarded empty cluster uncertainty; preserved numeric Reddit scores across archive/live merges; and normalized URL deduplication across all sources in `dedupe_items`. |
| 167 | - Fixed jobs sitemap ownership filtering (excluding untrusted search hosts and shared multi-tenant platform hosts), Workday and SmartRecruiters first-page timeout/429/5xx unanswered tracking, `&`-joined company-name stripping crashes in `jobs_teams`, Hacker News quoted and symbol-edged query matching (`C++`, `C#`, `.NET`, `F#`), StockTwits explicit-symbol gating and non-financial crypto-alias false positives, and Meta Ads error classification and transcript-call suppression after interrupted window fetches. |
| 168 | - Fixed keyless Reddit subreddit listing timeframe derivation, listing health classification and failure isolation, Arctic Shift score backfill preserving live comment counts and pending-score labels, and Shreddit/listing HTML attribute and comment-body parsing. |
| 169 | - Fixed null-safety and non-dict/non-list response handling across Reddit Arctic Shift, ScrapeCreators, and thread-enrichment parsers, and updated the Reddit canary to fail when Arctic Shift hydrates zero discovered threads. |
| 170 | - Fixed pipeline concurrency, deadline accounting, error containment, and mock-mode isolation: deterministic single-subquery serving for `--x-posts` envelopes, rescuing already-completed futures and dequeued enrichment reports at deadline boundaries, incremental stream collection with asynchronous transient 5xx retries, single-fetch caps and synchronized `LaneBudget` state for single-entity sources, daemon-thread abandoning executors with cancellable `fetch_memo` waits, Phase 1 per-source normalization containment, GitHub project/person pre-loop mock and plan boundaries, and `--mock` isolation for Digg survivor enrichment. |
| 171 | - Fixed pipeline source/subquery weight inflation, deferred X relevance-floor divergence across fused streams, `LAST30DAYS_YOUTUBE_SSH_HOST` YouTube routing without a local `yt-dlp` binary, `fetch_memo` cross-run resets and bounded LRU eviction, `RetrievalBundle.record_detail` substring clobbering, `schema.without_sources` subquery/artifact/multi-source candidate invariants, and `dates.parse_date`/`timestamp_to_date` overflow and `YYYYMMDD`/ISO 8601 handling. |
| 172 | - Fixed seven ranking, fusion, normalization, and web grounding bugs: out-of-window candidates can no longer be lifted above in-window items by post-scoring floors or unsorted ties (`rerank.py`); omitted LLM rows now preserve primary-entity and subject-handle grounding (`rerank.py`); malformed LLM score payloads and non-finite scores (`NaN`/`inf`) safely fall back per row instead of crashing or clamping to 100 (`rerank.py`); multi-item RRF fusion now tracks true primary scores, syncs `candidate.url` and `source_items[0]` with the primary item, prevents same-stream RRF double-counting, and preserves `spoken_caption` snippets (`fusion.py`); `merge_source_items` recomputes `engagement_score` on engagement/comment updates, upgrades shorter transcript stubs, and `weighted_rrf` avoids mutating caller `SourceItem` inputs (`fusion.py`); Arctic-enriched Reddit web results now preserve comment attribution, thread dates, and comments through grounding normalization (`grounding.py`, `normalize.py`); and Serper relative dates now anchor to UTC instead of local time (`grounding.py`). |
| 173 | - GitHub keyword search now matches issue and PR titles. It used to search bodies too, so for topics like "sqlite" or "kubernetes" the page filled with popular issues that only mentioned the word, and the topical floor then dropped all of them, leaving the GitHub section empty. |
| 174 | - GitHub person reports count open pull requests directly, excluding pull requests closed without a merge. |
| 175 | - Harden Reddit keyless discovery, comment enrichment, and Arctic Shift concurrency: preserve OP (`is_submitter` / `is_uploader`) flags across shreddit, Arctic Shift, site search, and post-ranking enrichment; synchronize `WebFloor` mutations and snapshots; apply enrichment results only on the main thread; isolate Arctic Shift comment-tree throttle state per thread and guard/deduplicate `_cache` in `fetch_scores`; enforce deadlines, single-attempt retries, challenge-page validation, and 0-comment short-circuiting in shreddit comment fetches; and bound search waiter timeouts, prevent election fallthrough stampedes, and stop abandoned search streams at the deadline. |
| 176 | - Keep engine research running when the planning provider returns malformed arrays, queries, or weights, preserving usable subqueries where possible. |
| 177 | - Saved research feeds and library search keep raw reports for distinct topics such as C++ and C# that share a filename slug. |
| 178 | - Truth Social post text now decodes HTML entities (`&`, `'`, `"`) and keeps a line break between paragraphs, so titles and quotes no longer show raw entities or run two paragraphs together. |
| 179 | - Watchlist runs count and notify about a finding on its first appearance for each topic, even when another topic has already seen the same URL. |
| 180 | - arXiv searches apply the paper recency window before selecting the top relevance-ranked results, so older papers no longer crowd out eligible papers. |
| 181 | |
| 182 | |
| 183 | ## [4.6.0] - 2026-11-22 |
| 184 | |
| 185 | ### Added |
| 186 | |
| 187 | - Silent post-turn finished-brief capture across local agent harnesses (Claude Code via `.claude-plugin/hooks.json`, plus one-command `setup --install-hooks` / `--uninstall-hooks` for Antigravity, Gemini CLI, Codex CLI, Cursor, Grok Build CLI, and skill-only Claude Code installs). Captured briefs save atomically into `<save_dir>/finished/` with content-hash deduplication, owner-only permissions and `## From your files` redaction for `--corpus` runs, O(1) incremental `library.db` indexing, brief-first precedence in `library search` and `library feed`, and offline transcript backfill via `library harvest`. |
| 188 | - TikTok top comments now come from TikTok's public web comment endpoint, which needs no key and no request signing, for up to 12 of the videos a run keeps instead of ScrapeCreators comments on 3. A "Kanye West" run went from 4 TikTok entries in Top Community Comments to 14, with no ScrapeCreators comment calls. If the endpoint returns nothing, the run falls back to ScrapeCreators comments as before. `LAST30DAYS_TIKTOK_PUBLIC_COMMENTS=off` turns the public endpoint off. |
| 189 | - TikTok works without a ScrapeCreators key, and Instagram works on a best-effort basis. When the key is missing or ScrapeCreators returns HTTP 402, both sources find public post URLs and read each post with `yt-dlp`, logged out. Post URLs come from a self-hosted SearXNG (`LAST30DAYS_SEARXNG_URL`), Serper, Exa (TikTok only), Brave or the keyless floor, and on hosts with their own web search from the new `--shortform-urls` envelope, which the runbook fills from 2-3 `site:tiktok.com` / `site:instagram.com` searches. Discovery asks each backend for recent results (`LAST30DAYS_SHORTFORM_FRESHNESS`), and TikTok also lists the recent on-topic videos of creators seen in discovery (`LAST30DAYS_SHORTFORM_CREATOR_EXPANSION`). Every post is dated from its id before any fetch and again after extraction, so the lane never keeps a post from outside the research window: a thin month returns zero with the reason. Keyless TikTok videos also get their top comments, free, from TikTok's public web comment endpoint (`LAST30DAYS_TIKTOK_PUBLIC_COMMENTS`), the same source keyed runs use. Instagram recall is low (public pages, no view counts) and its comments stay ScrapeCreators-only, and keyless TikTok finds videos through creators rather than keyword search, so the key is still the better path for the month's most viral posts. `doctor` names the discovery sources armed for each platform and calls Instagram best effort. `APIFY_API_TOKEN` is no longer treated as a TikTok search credential (it was never wired to an Apify actor). |
| 190 | |
| 191 | ### Fixed |
| 192 | |
| 193 | - TikTok and Instagram comments from ScrapeCreators now reach the report. Comment enrichment picked the three loudest posts from the raw search results, before the date window and topic filter ran, so it usually paid for comments on old or off-topic posts the report then dropped (for "Kanye West", a 2022 #bully video), and the kept posts had none. It now picks from posts dated inside the window that clear the topic floor. |
| 194 | |
| 195 | |
| 196 | ## [4.5.0] - 2026-11-21 |
| 197 | |
| 198 | ### Added |
| 199 | |
| 200 | - Add configurable SCRAPECREATORS_BASE_URL to point ScrapeCreators API calls across all modules at an enterprise proxy, local mock server, or alternative provider. ([#1367](https://github.com/mvanhorn/last30days-skill/issues/1367)) |
| 201 | - OpenCode agents with a paired `browse` MCP can now read public X posts and Reddit thread links in the user's logged-in browser and pass them through the existing `--x-posts` / `--reddit-threads` host envelopes. The X footer names the lane as "via OpenCode Browse". |
| 202 | |
| 203 | ### Fixed |
| 204 | |
| 205 | - Browser cookie readers now include host-only cookies while excluding unrelated suffix hosts. Standalone automatic extraction prefers a complete requested cookie set, continues after browser permission denials, and keeps the first partial result only as a fallback without combining browsers. ([#1380](https://github.com/mvanhorn/last30days-skill/issues/1380)) |
| 206 | - Host query plans can use `omit_sources` to keep deliberately skipped optional sources out of a single run without disabling backfill for other sources. ([#1449](https://github.com/mvanhorn/last30days-skill/issues/1449)) |
| 207 | - Add LinkedIn to planner `SOURCE_CAPABILITIES` so queries classified under `how_to` (and `comparison`) retain LinkedIn when enabled. ([#1543](https://github.com/mvanhorn/last30days-skill/issues/1543)) |
| 208 | - Reddit threads from the host lane (`--reddit-threads`) get their archive comments again: `attach_comments` raised `ValueError` on every call, which was logged and swallowed, so those threads had no top comments. ([#1546](https://github.com/mvanhorn/last30days-skill/issues/1546)) |
| 209 | - Recover Windows Firefox cookies on WSL when SQLite cannot open the live WAL index and the database and WAL can be copied without a detected change. If the database stays unreadable, Reddit setup reports a read error instead of asking the user to log in again. ([#1547](https://github.com/mvanhorn/last30days-skill/issues/1547)) |
| 210 | - Bird now drops topic-supplied search operators on both the first request and retries. It keeps quoted phrases such as `"Research and Development"` intact, preserves the research date window, and caps each query at 512 characters. |
| 211 | - Exa official-site fallback still fills a person's or language/OS domain. Wikidata humans with no unique company, and a direct P31 programming-language or operating-system hit, skip the company competitor index (`company_peer_discovery=keyword`). `company_via_person` stays only for a company the person leads, so patent copy does not call a person's own site "the company they lead." A product company named after its app (Raycast, Exa) still gets company peers. A trailing generic word such as Labs is trimmed once so Modal Labs matches modal.com, but an exact registrable-label match (Acme Labs → acmelabs.com) wins over the trimmed name even if the shorter domain appears first. |
| 212 | - Per-source voices in report Stats now rank social handles by engagement. Doctor warns when an older Techmeme helper can only read the first page and shows how to upgrade it. |
| 213 | - The top clusters now share one story cap across linked titles and query angles, leaving more room for distinct stories. |
| 214 | - TikTok no longer falls back to `APIFY_API_TOKEN`: an Apify-only config used to send that token to ScrapeCreators as an API key and mark TikTok ready with no usable credential. TikTok now requires `SCRAPECREATORS_API_KEY` (found by @grain-lu in #1533). |
| 215 | |
| 216 | |
| 217 | ## [4.4.0] - 2026-11-20 |
| 218 | |
| 219 | ### Security |
| 220 | |
| 221 | - Auto setup reuses browser-cookie consent only when the active configuration grants it. |
| 222 | - Drill follow-ups keep local file titles out of remote queries and private drill context out of published briefs. |
| 223 | - GitHub research uses public repositories for search, project snapshots, and star counts. Search and repository metadata keep authenticated rate limits when configured. Comments, READMEs, and releases use the anonymous rate limit to keep enrichment public. |
| 224 | - HTML briefs stage synthesis in a unique owner-only file and remove it when the sharing workflow finishes. |
| 225 | - Interpreter selection, comparison JSON validation, and HTML export helpers now run in Python isolated mode. |
| 226 | - Research databases, SQLite sidecars, and generated briefing archives now use owner-only permissions on POSIX. |
| 227 | - Watchlist delivery hides webhook credentials from setup output, error logs, and HTTP diagnostics. |
| 228 | |
| 229 | ### Added |
| 230 | |
| 231 | - Add a Turkish README with reciprocal language navigation and translation contract coverage. |
| 232 | - Person runs: `--employer "Name[:domain]"`, `--linkedin URL`, or `--email ADDR` research a working professional who may have no X or GitHub presence. The run reads a bio from the employer's own site, keeps only results that name the person plus an anchor such as the employer, and adds a Person Profile section that says what was checked and why identity was accepted. With `DEEPLINE_API_KEY` it also reads the LinkedIn profile and recent posts (paid, capped per run) and shows up to a year of older posts when the last 30 days are quiet. |
| 233 | - Proxy mode: with `LAST30DAYS_API_MODE=proxy`, `LAST30DAYS_API_KEY`, and `LAST30DAYS_API_BASE`, the local engine runs every source and flag while paid provider calls without a key of your own (ScrapeCreators, xAI, Serper, Parallel) go through the API key's metered proxy. The footer reports the credits each run charged, `doctor` shows those lanes as "via API key", and running out of credits skips paid sources for the rest of the run instead of failing it. |
| 234 | |
| 235 | ### Fixed |
| 236 | |
| 237 | - Claude.ai skill packages now exclude development assets and apply the 200-file limit to files. Pull request validation builds the same package used for releases. |
| 238 | - Direct Perplexity Deep Research uses its configured deadline alongside the ordinary source deadline, so answers can arrive after the ordinary search window closes. |
| 239 | - Drill and freshness follow-ups reuse cached host evidence. Slash-command follow-ups stay bound to the original research or its latest drill. |
| 240 | - Freshness verification now keeps newer cached research intact when another run finishes during the check. Cache updates publish complete files atomically. |
| 241 | - Hosted mode: answer a clarification with `--clarify-angle` or `--clarify-broadly` instead of rewriting the topic, see the server's reason when a run fails instead of "unknown server error", and get a one-line notice when the hosted engine's major version differs from the local skill. |
| 242 | - Hosted research rejects unsupported date windows, source filters, targeting, and output formats before submitting a search. |
| 243 | - MCP and watchlist runs keep completed research when strict exit reports degraded coverage. The watchlist still delivers new findings and labels the run degraded. |
| 244 | - MCP research with saving disabled leaves the report export, research caches, and SQLite findings untouched. |
| 245 | - Permission preflight now follows the MCP browser-cookie policy, accounts for consented Reddit and conditional X cookie routes, and forecasts local research caches, library indexes, SQLite stores, and report exports. |
| 246 | - Removing a watchlist topic preserves its recorded spending and unknown charges in the daily budget. |
| 247 | - Research skips live X authentication checks when X is outside the requested source scope, the host supplies X evidence, or the run uses mock data. |
| 248 | - Scheduled watchlist runs treat topic names and custom search queries as literal research text. |
| 249 | - Watchlists save findings from every entity in a local comparison. Malformed output fails only the affected run, and watchlists reject unsupported hosted research before making a paid request. |
| 250 | - YouTube transcript backfill and remote ranking now stop before the foreground report deadline, so a slow enrichment request can leave a useful partial report. |
| 251 | |
| 252 | |
| 253 | ## [4.3.2] - 2026-11-17 |
| 254 | |
| 255 | ### Changed |
| 256 | |
| 257 | - Exa web search now requests highlights instead of a 2,000-character text extract. When `EXA_API_KEY` is set, Wikidata-empty company resolution can take an official-site lookup in Exa's company index, and competitor discovery queries Exa's company category first for a resolved company even if Brave is the general web backend. ([#1501](https://github.com/mvanhorn/last30days-skill/issues/1501)) |
| 258 | |
| 259 | ### Fixed |
| 260 | |
| 261 | - On Windows, Printing Press CLIs (Digg, arXiv, Techmeme, Yahoo Finance) installed to `%LOCALAPPDATA%\Programs\PrintingPress\bin` now activate without a manual PATH edit, off-PATH fixes print a PowerShell command instead of bash `export`, and setup names a missing Go install as the reason a CLI install failed. ([#1434](https://github.com/mvanhorn/last30days-skill/issues/1434)) |
| 262 | - Doctor no longer tells you to add a `GROQ_API_KEY` or `OPENAI_API_KEY` for caption-free YouTube videos. No source calls the transcription module yet, so the key changed nothing. Thanks to @qq2514568380 for spotting it ([#1498](https://github.com/mvanhorn/last30days-skill/pull/1498)). ([#1436](https://github.com/mvanhorn/last30days-skill/issues/1436)) |
| 263 | - Explain unsuccessful X cookie discovery and the manual credential alternative. ([#1499](https://github.com/mvanhorn/last30days-skill/issues/1499)) |
| 264 | - Check Reddit archive availability after discovery failure without treating HTTP errors as working listings. ([#1500](https://github.com/mvanhorn/last30days-skill/issues/1500)) |
| 265 | |
| 266 | |
| 267 | ## [4.3.1] - 2026-11-17 |
| 268 | |
| 269 | ### Fixed |
| 270 | |
| 271 | - Hermes installs work again: `hermes skills install mvanhorn/last30days-skill/skills/last30days --force` no longer gets a `dangerous` verdict from Hermes's skill scanner. The Grok CLI install hint now names `npm install -g @xai-official/grok` (with the official installer linked) instead of a `curl | bash` line, and the CI scanner guard now checks every CRITICAL rule of the current Hermes scanner. `HERMES_SETUP.md` documents the install and update path. ([#1502](https://github.com/mvanhorn/last30days-skill/issues/1502)) |
| 272 | |
| 273 | `SKILL.md` no longer names the `scripts/lib` folders as if they were files. Hermes rejected the whole download for that, reporting the skill as a stale index entry whose "files no longer exist upstream". ([#1502](https://github.com/mvanhorn/last30days-skill/issues/1502)) |
| 274 | |
| 275 | |
| 276 | ## [4.3.0] - 2026-11-16 |
| 277 | |
| 278 | ### Changed |
| 279 | |
| 280 | - Polymarket now picks the markets that say the most about the subject: a team's title odds at any price (the 49ers' Super Bowl odds lead a `49ers` run), races where the subject or one of its people leads, and the big multi-outcome markets whose title never names it, instead of near-settled props and title-word collisions. Each line shows the subject's own price and rank, and the host can pass `polymarket_hints` (kind, aliases, related names) in the plan. |
| 281 | |
| 282 | ### Fixed |
| 283 | |
| 284 | - The jobs lane now stays on for company runs under `--search` and warns when `--search` drops a source the plan named. It reads every Workday career site on a company's tenant, reads Kula boards (Nothing), searches each board for the run's own story terms and reserves digest slots for those matches, and damps rarity scoring on boards with more than 500 roles. |
| 285 | The Jobs Digest now names the teams a board's titles repeat, with role counts and how many are new, and reserves slots for each top team's newest role and for heads, GMs and founding hires of teams no other title names, so a new team the press has not covered yet (Amazon's Fauna, Nike's DOTSWOOSH) reaches the report. ([#1491](https://github.com/mvanhorn/last30days-skill/issues/1491)) |
| 286 | - Polymarket now reports a partial result when some of its searches are rate-limited, instead of caching the incomplete result for the run, and every Polymarket search (retries included) stops at the stream deadline. |
| 287 | - Polymarket topic matching now treats simple plurals as the same word, so a topic like "Fed rate cut" matches "Will the Fed cut rates?". |
| 288 | |
| 289 | |
| 290 | ## [4.2.1] - 2026-11-16 |
| 291 | |
| 292 | ### Security |
| 293 | |
| 294 | - Hosted-backend runs now sanitize `--save-suffix` the same way local saves do, so traversal fragments cannot escape the save directory in that mode either ([#736](https://github.com/mvanhorn/last30days-skill/issues/736)). |
| 295 | |
| 296 | ### Fixed |
| 297 | |
| 298 | - The post-run "Free fixes" hint no longer tells you to add `youtube_comments` to `INCLUDE_SOURCES` when yt-dlp (which fetches YouTube comments keyless) is installed, when the entry is already set, or when `EXCLUDE_SOURCES=youtube_comments` overrides the opt-in. Fixes #1437. ([#1437](https://github.com/mvanhorn/last30days-skill/issues/1437)) |
| 299 | - `doctor` no longer reports a failed grok probe as a broken credential store. When the probe raises, X reads as unconfigured with cookie guidance, and a set `X_BEARER_TOKEN` names the opt-in X API lane instead of being masked. ([#1448](https://github.com/mvanhorn/last30days-skill/issues/1448)) |
| 300 | - A reasoning-model reply that is valid JSON but not an object (a top-level array, `null`, or a number) now falls back to deterministic planning and ranking instead of crashing the run. |
| 301 | - Comparison runs on macOS Bash 3.2 no longer fail before the engine starts when the topic contains an apostrophe or backtick; the comparison recipe now captures its topic the same way the research runbook has since [#1240](https://github.com/mvanhorn/last30days-skill/pull/1240). |
| 302 | - GitHub comment enrichment now excludes automated bot accounts and ranks human responses locally by reactions instead of relying on unsupported REST sort parameters. |
| 303 | - KEY PATTERNS and the follow-up suggestions no longer have a blank line between every item on Claude Code. T3 Code, the desktop app and IDEs now get real markdown lists, and the Claude Code terminal keeps its link-safe `1\.` and `•` lines, now one per row. |
| 304 | - Reddit comment enrichment on hosts where the shreddit partials are blocked now reads the arctic-shift comment tree, so busy threads keep their most-upvoted replies instead of a sample of the newest 100. Thanks to @terry-li-hm, whose #1467 found and measured this. |
| 305 | - The ScrapeCreators YouTube search fallback now reads the fields that endpoint returns (`publishedTime`, `viewCountInt`, `lengthSeconds`, and the `channel` object), so its videos keep their dates, view counts and channel names instead of being dropped by the date window. |
| 306 | |
| 307 | |
| 308 | ## [4.2.0] - 2026-11-15 |
| 309 | |
| 310 | ### Added |
| 311 | |
| 312 | - A scheduled Reddit canary (daily and manual, never on pull requests) checks the keyless web rungs and the Arctic Shift hydrator against live Reddit and tells a challenge or throttle apart from a broken parser. `evaluate_search_quality.py --reddit-coverage` counts on-topic Reddit threads per topic from a fixed topic set, on the keyless floor only, so engine versions can be compared. |
| 313 | - Hosts with their own web search can hand Reddit thread URLs or ids to the engine with `--reddit-threads <file>` (schema `last30days-reddit-threads/1`, at most 50 threads). The engine reads only each thread's identity, rehydrates it through the logged-in session or Arctic Shift, holds it to the research window and the topic bar, and routes it to the subquery it matches; the research runbook collects the URLs during the pre-research web search. |
| 314 | |
| 315 | ### Fixed |
| 316 | |
| 317 | - Logged-in Reddit search no longer fills a report with unrelated threads that mention the topic in a single comment. A thread whose title and body never name the topic is kept only to fill a thin result. |
| 318 | |
| 319 | |
| 320 | ## [4.1.0] - 2026-11-15 |
| 321 | |
| 322 | ### Added |
| 323 | |
| 324 | - Reddit can now search as your own logged-in reddit.com account, with its own consent. Setup asks once, right after the X cookie question whatever the answer (returning users are asked once too, never on a Grok Bot host), and `setup --reddit-session` finds the browser that holds your `reddit_session` cookie without saving it. Logged in, Reddit search returns more threads, comment matches and communities with live scores; the free keyless chain stays the fallback when the session is off, expired or blocked. Over-18 posts and private or quarantined communities you did not name are dropped, scheduled runs skip the session unless you opt in, and `REDDIT_BROWSER_CONSENT=false` turns it off. See CONFIGURATION.md, "Logged-in Reddit session". |
| 325 | |
| 326 | |
| 327 | ## [4.0.6] - 2026-11-15 |
| 328 | |
| 329 | ### Fixed |
| 330 | |
| 331 | - Reddit works again without a login or key now that Reddit's site search returns 403. A keyless web-search floor (Brave, then DuckDuckGo, then Startpage) finds threads, and the Arctic Shift archive fills in their scores and comments. A score from a post under 36 hours old shows as "score pending" instead of counting as zero. A thread found by several layers merges into one item. Report quotes include only Reddit comments that name the topic. A path that returns 403 is skipped for 6 hours. Each run reports which path served Reddit, and `doctor` shows one row per Reddit path. |
| 332 | |
| 333 | |
| 334 | ## [4.0.5] - 2026-11-15 |
| 335 | |
| 336 | ### Fixed |
| 337 | |
| 338 | - X keyword searches through the bird client now read X's Top tab, so busy topics return the month's most-engaged posts instead of the last few minutes of zero-engagement ones. ([#1465](https://github.com/mvanhorn/last30days-skill/issues/1465)) |
| 339 | |
| 340 | |
| 341 | ## [4.0.4] - 2026-11-15 |
| 342 | |
| 343 | ### Fixed |
| 344 | |
| 345 | - Claude Code KEY PATTERNS and invitation lines no longer collapse into one paragraph in markdown renderers such as T3 Code and the desktop and mobile apps; the skill now puts a blank line between them. ([#1463](https://github.com/mvanhorn/last30days-skill/issues/1463)) |
| 346 | |
| 347 | |
| 348 | ## [4.0.3] - 2026-11-15 |
| 349 | |
| 350 | ### Fixed |
| 351 | |
| 352 | - Techmeme now reads enough result pages to fill the depth cap (16 headlines by default, 30 at deep) instead of stopping at Techmeme's first 10, when the installed `techmeme-pp-cli` supports `search --pages`; older helpers still read one page. ([#1460](https://github.com/mvanhorn/last30days-skill/issues/1460)) |
| 353 | - Setup now upgrades the Techmeme helper to 2026.11.1, the first release that reads past Techmeme's first 10 results. ([#1461](https://github.com/mvanhorn/last30days-skill/issues/1461)) |
| 354 | |
| 355 | |
| 356 | ## [4.0.2] - 2026-11-15 |
| 357 | |
| 358 | ### Fixed |
| 359 | |
| 360 | - Company resolution no longer gets rate-limited by Wikidata when several reports or a comparison run at once, so those runs keep their Jobs section. The Wikidata request now sends a User-Agent with a contact URL, as Wikimedia asks. ([#1447](https://github.com/mvanhorn/last30days-skill/issues/1447)) |
| 361 | - Polymarket odds now follow Polymarket's own display rule: the midpoint only for a tight book (bid and ask within $0.10), otherwise the last trade, and a market with neither is left out. A mutually exclusive range set whose prices still sum well over 100% no longer prints an impossible odds line, so an empty-book range can't top the list at 44%. ([#1450](https://github.com/mvanhorn/last30days-skill/issues/1450)) |
| 362 | - The top clusters in the chat report are now story-diverse: one story takes at most 3 of the top 8, near-duplicate clusters are pushed down, each plan subquery with on-topic evidence gets a slot, and `--drill N` still opens the cluster shown as N. ([#1451](https://github.com/mvanhorn/last30days-skill/issues/1451)) |
| 363 | - Top voices in the footer and `## Stats` now rank @handles by engagement (best 3 posts each) and drop near-zero-engagement accounts, so a prolific headline account no longer outranks the subject's own posts. ([#1452](https://github.com/mvanhorn/last30days-skill/issues/1452)) |
| 364 | - YouTube transcript health is judged against the transcript target, and a YouTube bot check now gets its own message (route yt-dlp through `LAST30DAYS_YOUTUBE_SSH_HOST` or add a ScrapeCreators key) instead of advice to upgrade yt-dlp. Host plans no longer gain Trustpilot when it cannot run this session. Techmeme searches are scoped to the run window, and setup upgrades a techmeme-pp-cli older than 2026.9.1. ([#1453](https://github.com/mvanhorn/last30days-skill/issues/1453)) |
| 365 | - Hiring Signals no longer lists the same roles under every theme: themes match a role's title, department, and only the description text other roles on the board do not share, each role is an example under one theme at most, and generic keywords such as "growth", "design" and "platform" no longer theme unrelated roles. ([#1454](https://github.com/mvanhorn/last30days-skill/issues/1454)) |
| 366 | |
| 367 | |
| 368 | ## [4.0.1] - 2026-11-15 |
| 369 | |
| 370 | ### Fixed |
| 371 | |
| 372 | - A company that lists many regional sites on Wikidata with none preferred, such as Apple, now resolves to the host most of them share, so its own job board is read without web search. Hiring themes match keywords as whole words, so retail and training roles no longer fill the AI theme. ([#1445](https://github.com/mvanhorn/last30days-skill/issues/1445)) |
| 373 | |
| 374 | |
| 375 | ## [4.0.0] - 2026-11-15 |
| 376 | |
| 377 | ### Added |
| 378 | |
| 379 | - The jobs lane reads company-run job boards through a registry: Amazon's and Apple's own boards, plus Eightfold boards for Microsoft, Qualcomm and Netflix. Sites it can't read automatically, such as Tesla's, get a footer line saying so and no requests. ([#1428](https://github.com/mvanhorn/last30days-skill/issues/1428)) |
| 380 | - The jobs lane detects the hiring platform a company's careers page runs on (Oracle Recruiting Cloud, Jibe, Phenom, TalentBrew, Eightfold on any host, or a linked Workday board) and reads its public listing, and reads Google's and IBM's job sites, so a company run now gets a Jobs Digest for Oracle, JPMorgan, Dell, AMD, Adobe, Cisco, Disney, IBM, Salesforce, Intel and Google. A careers site with no readable listing but a job sitemap (SAP, Uber, Walmart) gets a titles-only digest. Set `LAST30DAYS_JOBS_RESPECT_ROBOTS=1` to skip any listing a site's robots.txt disallows. ([#1431](https://github.com/mvanhorn/last30days-skill/issues/1431)) |
| 381 | |
| 382 | ### Changed |
| 383 | |
| 384 | - Require `AGENTCOOKIE=on` or affirmative `BROWSER_CONSENT` before reading X cookies through the agentcookie sidecar. Eligible Linux, Mac mini, and Darwin sink hosts no longer enable sidecar reads from binary presence alone. Explicit refusals still win, and direct `AUTH_TOKEN`+`CT0` credentials remain usable. Sidecar-only users can set `AGENTCOOKIE=on` with `BROWSER_CONSENT` and `FROM_BROWSER` absent. Doctor shows this opt-in hint for an installed, unadmitted sidecar and refreshes cached advice when `AGENTCOOKIE` changes. Thanks to @vincentkoc (#1365). ([#1365](https://github.com/mvanhorn/last30days-skill/issues/1365)) |
| 385 | - Patent Secret Signals now appear only for a filing that is out of character for the company or describes a product it has not shipped, announced or had reported. A tie to a story in the report no longer qualifies a filing, filings listed by title only are never signals, and the section is one short paragraph with no counts sentence or closing disclaimer. The patent digest and footer no longer say "confirmed" or "name-matched": a company's own holding, licensing and numbered entities count as the company, and other filers with the company's name are marked "not verified". ([#1427](https://github.com/mvanhorn/last30days-skill/issues/1427)) |
| 386 | - Patent and jobs Secret Signals are written as two plain-words sentences: what the filing or role is, then what it could mean. Patent entries print fuller abstract and claim text and give subsidiaries a slot. The two strongest candidates are checked on the web before a section is written or left out. ([#1428](https://github.com/mvanhorn/last30days-skill/issues/1428)) |
| 387 | - Big company boards are read concurrently up to 7,000 rows. When a platform reader fails, the lane falls to the site's job sitemap and then the web tier, and the Jobs footer says which happened. The footer for a site that can't be read now gives the reason. ([#1431](https://github.com/mvanhorn/last30days-skill/issues/1431)) |
| 388 | |
| 389 | ### Fixed |
| 390 | |
| 391 | - Large patent filers get abstract and first-claim text again: the patent lane has 90 seconds and keeps reading after one failed document. `--as-of` set to today is now a live run. An outdated Digg helper is reported with its upgrade command instead of failing on `unknown flag: --topic`, and a `--ticker` run with no stock helper says so with the install command. Setup installs from `@mvanhorn/printing-press-library@0.1.27` and upgrades a Digg helper older than 2026.10.1, and doctor reports it. Grok Bot post-write checks may no longer remove a required report section or a verbatim quote. ([#1427](https://github.com/mvanhorn/last30days-skill/issues/1427)) |
| 392 | - A response body cut off mid-read no longer crashes a run. A company's official site is kept when Yahoo Finance resolves the company. A site that fails on one host form is retried on its www or bare form. A job board that does not answer is reported as a retryable timeout, not as unreadable. ([#1428](https://github.com/mvanhorn/last30days-skill/issues/1428)) |
| 393 | - A stale or older `LAST30DAYS_PLANNER_MODEL` / `LAST30DAYS_RERANK_MODEL` pin on the Gemini provider now warns and falls back to the default model instead of failing the run, and Gemini 4 and newer models are accepted. Thanks to @SajjadPSavoji (#1430). ([#1429](https://github.com/mvanhorn/last30days-skill/issues/1429)) |
| 394 | |
| 395 | |
| 396 | ## [3.39.0] - 2026-11-13 |
| 397 | |
| 398 | ### Added |
| 399 | |
| 400 | - A run about a company now reads that company's US patent applications published and patents granted inside the report window from USPTO Patent Public Search, with no API key and no flag. The report gets a `## Patent Digest` evidence block of first US publications and a `📜 Patents` footer line, and the skill may write a "Patent Secret Signals" section when a filing reveals a product the company has not shipped or a direction it is not known for. It is skipped on comparison, quick, `--hiring-signals` and mock runs. Turn it off with `EXCLUDE_SOURCES=patents` or `LAST30DAYS_NO_PATENT_DIGEST=1` (the MCP server sets the latter). The Wikidata lookup for company topics now also asks for the labels of the company's listed subsidiaries. |
| 401 | |
| 402 | ### Fixed |
| 403 | |
| 404 | - X post text is unescaped, so titles, quotes and video titles show `&` and `'` instead of `&` and `'`. A reel or TikTok that arrives twice keeps its spoken transcript and `spoken_caption` mark together when the copies merge, so a longer written description no longer replaces the transcript. |
| 405 | |
| 406 | |
| 407 | ## [3.38.1] - 2026-11-12 |
| 408 | |
| 409 | ### Fixed |
| 410 | |
| 411 | - A slow second Digg search near the end of a run no longer costs the stories the first search found: the highest-scored call now ends five seconds before the run's deadline, and is skipped when that little time is left. When two searches return the same event as a prominent story and as a smaller one, the prominent story is the copy kept, so its quotes and its "Also in Digg story" confirmations are not lost. |
| 412 | |
| 413 | |
| 414 | ## [3.38.0] - 2026-11-12 |
| 415 | |
| 416 | ### Changed |
| 417 | |
| 418 | - A research run now looks at far more Digg stories, both the most relevant and the highest-scored, and holds them to a bar. A story is kept only when its title carries the topic, so a story that mentions the topic in passing is dropped and a topic Digg does not cover shows no Digg results. The biggest on-topic stories lead Digg's results, and only those have their sources read (up to 8 at default depth, 12 at deep, four at a time) and can mark another result "Also in Digg story". Digg's footer totals rise on busy topics because bigger stories are kept. Quick depth still makes one small search, with the bar applied to it. Clusters from `digg-pp-cli` 2026.10.x are not judged and behave as before. |
| 419 | |
| 420 | |
| 421 | ## [3.37.1] - 2026-11-12 |
| 422 | |
| 423 | ### Fixed |
| 424 | |
| 425 | - Digg search no longer fails on two-letter topics such as "AI" or "Go", or on queries over 120 characters: the newer `digg-pp-cli` rejects both, so the query is now fitted to the length it accepts. A Digg story that the subject or identity filters rejected no longer comes back as the "Also in Digg story" confirmation of another result. The story-sources fetch is now always bounded by the run's deadline, including on hosts that keep that deadline on a copy of the run config. |
| 426 | |
| 427 | |
| 428 | ## [3.37.0] - 2026-11-12 |
| 429 | |
| 430 | ### Added |
| 431 | |
| 432 | - Digg is now searched across every Digg topic (AI, tech, world and business, sports, science, gaming, entertainment) instead of AI and tech only. Digg stories rank by their Digg Score, which is shown on each item, and results from other sources that are sources of a Digg story are marked as confirmed by Digg and rank higher. Global trending (`--discover` with no domain) now includes Digg's current top stories. This needs a current `digg-pp-cli`: an older one keeps working on AI and tech, and the brief and `doctor` say how to upgrade. |
| 433 | |
| 434 | |
| 435 | ## [3.36.1] - 2026-11-11 |
| 436 | |
| 437 | ### Fixed |
| 438 | |
| 439 | - Reports can now quote what was said in the content itself, not only comments: a YouTube transcript highlight or a reel's or TikTok's spoken line joins the quote pool as a `said` entry, LinkedIn posts with a real author join as posts, and a small on-topic Reddit thread no longer needs a 5-vote top comment to be quoted. |
| 440 | |
| 441 | |
| 442 | ## [3.36.0] - 2026-11-11 |
| 443 | |
| 444 | ### Added |
| 445 | |
| 446 | - Two host flags for the jobs lane. `--company "Name:site"` (at most two, comma-separated) names the company behind a person or product topic, listed or not, with its own website, so a founder of a private company gets that company's board and digest (Palmer Luckey: `--company "Anduril:anduril.com"`); the site may be left out, and the engine then asks Wikidata for it. `--jobs-board <URL>` passes the company's job-board URL the host found by web search (Greenhouse, Ashby, Lever, Workable, SmartRecruiters, Workday); the engine reads that board first and gives a digest only when the board names the company or the official site links to it, otherwise the footer count alone with the reason on stderr, and a paged board that is not the company's is read one page only. A URL on an unsupported system is ignored with one stderr line. |
| 447 | |
| 448 | ### Changed |
| 449 | |
| 450 | - Trustpilot is asked for only when it can answer. `--diagnose` reports `trustpilot_can_run` (a fresh `trustpilot-pp-cli` session, or a cached company record) and the host resolves `--trustpilot-domain` only then. With no fresh session the engine reads the CLI's cached record for the domain (`info <domain> --local`) and labels it with its cache age; a research run still never opens a browser. |
| 451 | |
| 452 | ### Fixed |
| 453 | |
| 454 | - Amazon and Meta Ads run again on agent-hosted runs. Since 3.30.0 a host plan never ran either lane, because the host requests them through `--search` and not in the plan. The engine now adds `amazon` / `meta_ads` to the first subquery when the run asks for them (the source is in `--search`, or `--amazon-query` / `--meta-ads-page` is set), logs it on the `[Planner] Added ...` line, and says `available but not requested for this run; not run` when a lane is on only through `INCLUDE_SOURCES`. The Amazon footer no longer prints `no products matched` for a search that was never made. |
| 455 | - Amazon keeps its products when the provider's review scraper does not answer. Products from the search still appear with their rating, rating count and price range, the footer adds `written reviews unavailable from the provider this run`, and Partial Coverage says the same. Review pulls now hold a run for at most 60 seconds (was 180) and are not fired a second time at the end of the run. |
| 456 | - Polymarket odds lines keep the movement note on their last outcome: the rule and the closing checklist now say to copy the whole odds line, up to the ` — ` before its URL, where they said "through the last price". |
| 457 | - The jobs lane no longer depends on the host naming `jobs` in its plan. On a host-planned run about a company (`--official-site`, a usable `--ticker` pair, `--company`, `--jobs-board`, or a topic the engine resolves to a company) the engine adds `jobs` to the primary subquery itself and logs `[Planner] Added jobs to primary: ...`; `EXCLUDE_SOURCES=jobs`, `--quick`, and a `--search` list without `jobs` still leave it out. The lane also finds more boards without help: it follows a careers page's link to its board page (`/careers/board`), and when the company's own slug has no board it tries the name the careers page states for its organization (`Anduril Industries` for `Anduril`), giving a digest only when that page is on the confirmed official site and the board states the same name. |
| 458 | |
| 459 | |
| 460 | ## [3.35.0] - 2026-11-11 |
| 461 | |
| 462 | ### Added |
| 463 | |
| 464 | - Polymarket odds now get their own line in a report, under the story they bear on (`> 📊 Polymarket · Huang divorce: 9.5% by Dec 31 (down 1 pt today) · 18% by Mar 31, 2027`), at most three per report, with the paragraph linking the market instead of repeating the numbers. `--emit=compact` prints each on-topic market as that ready-to-copy line in `## Polymarket Markets`: the nearest live deadlines of a deadline ladder, the leading outcomes of brackets under their own labels, or a single market's price, with movement worded in points. |
| 465 | - `--emit=compact` output now carries what a report is written from, so the host no longer searches the saved raw file: the subject's own X posts for the resolved `--x-handle` (`## Posts by @handle`, most liked first, up to 8), each on-topic Polymarket market with every outcome's own label, odds, movement and URL (`## Polymarket Markets`, up to 8), and a wider quote pool (`## Top Community Comments`, up to 40 entries, X/Threads/Bluesky posts beside comments, each tagged with its story cluster). |
| 466 | - `--emit=compact` stdout now ends with a short `## Before you write the report` checklist of the report's format facts (badge line, headline phrases, quote lines, no markdown lists when `CLAUDECODE` is set, the Jobs section, footer, invitation). It is printed only by the command line: saved files, `--output`, other emit modes and the MCP `research` tool do not carry it, and `LAST30DAYS_NO_REPORT_CHECKLIST=1` turns it off. |
| 467 | |
| 468 | ### Changed |
| 469 | |
| 470 | - A research run no longer launches Chrome for Trustpilot. The lane used to run `trustpilot-pp-cli auth login` (and let the CLI harvest by itself) whenever the saved session was missing or older than four minutes. It now only checks the session; with none it skips the lane quietly (one stderr line, a "no results" note in Source Coverage, never a failed or degraded source) and names the fix: "Trustpilot needs a browser session, and a research run never opens a browser: run `trustpilot-pp-cli auth login`, then run again within 3 minutes". |
| 471 | - Every `## Top Community Comments` entry now has one shape that copies straight into a quote line: quoted text on one line, platform dot, author, subreddit or platform name (`on YouTube`, `on Hacker News`), count with its unit when the source measured one, then the URL. The `creator` register's pool grows from 8 to 40 entries. |
| 472 | - Reports now put their best six quoted comments or posts each on its own quote line under the paragraph it supports (`> "quote" 🟠 u/author on r/sub · 1,315 upvotes`), six in the whole report as a ceiling. Other good quotes may stay inside a paragraph, attributed and linked; no quote is used both ways. The earlier rule allowed one pulled quote per story. |
| 473 | - The "Jobs Page Secret Signals" section is shorter and appears more often when it should. One strong signal is now enough (the two-signal floor is gone), at most two signals are shown, and three or more postings that share one concrete focus count together as one signal. Each signal is one paragraph of two to three sentences: what the company is hiring for, with the posting link and a short quote, then what that suggests and why it matters this month. |
| 474 | - The closing format checklist now says the no-lists rule on Claude Code covers the whole message, including notes added before or after the report and any later message that shows the report again. A bulleted note under a report made every link in it print as raw `name (url)` text. |
| 475 | - The quote pool is now chosen by position, not like count: each thread, video, reel or story gives its top comment and its #2, all top comments are listed first in story order and then the #2s, each entry is labelled `top comment`, `#2 comment` or `post`, and entries from a result the humor score rated funny lead their story and are tagged `funny`. Quote text is cut at a sentence end instead of mid-sentence, raw URLs and an X reply's leading handles are dropped, and a comment that is itself a quotation no longer prints doubled quote marks. Reports treat six quote lines in the whole report as a ceiling, not a target, and a recommendations run's closing checklist no longer asks for story quote lines. Bot comments, machine markup, a creator's or original poster's own comments, quoted-parent lines and markdown emphasis no longer reach the pool, GitHub comments need a reaction, and a thread joins only when its top community comment has at least 5 votes. |
| 476 | |
| 477 | ### Fixed |
| 478 | |
| 479 | - A comment with no link of its own is now cited by the post it sits on. On a result merged from several sources it could carry another source's URL. |
| 480 | - A person who leads more than one listed company now gets a jobs board: with `--ticker "TSLA:Tesla,SPCX:SpaceX"` each company is tried in order inside the lane's budget and the first one with a board is used. When the board is not the topic's own, the footer names the company (`💼 Jobs at SpaceX: 2,908 open roles │ 716 new in the L30`), as does the digest's `Board:` line. |
| 481 | - Every Reddit thread that survives into the report now carries its top comments (author, score, permalink). Comment slots used to be spent before the run's own ranking, so only 3 to 5 of 12 kept threads had any; a second pass after ranking fetches comments for the kept threads that lack them, highest ranked first, up to 12 at default depth. |
| 482 | - Footer engagement totals and Top voices count on-topic items only. One unrelated video carried 12.5M of a Waymo run's 12.7M YouTube views, and posts from related X handles about other things counted toward a person's totals; items the ranking marked off topic, and related-handle posts that do not name the topic, are now left out of the sums. Item counts are unchanged. |
| 483 | - Reddit comment quotes are no longer stored cut mid-word at 200 characters ("...a progressive socialist. Th"). A comment is kept up to 400 characters and ends at a sentence when one falls near the limit, otherwise at a word; lines in the report keep their current display length. |
| 484 | - Reddit no longer ends a busy run as "reddit timed out after 180s" with zero threads. The lane now works to a deadline 20 seconds inside the source wait: a stage that no longer fits (archive supplement, site search, comment enrichment) is skipped and the threads already found are returned. |
| 485 | - Reddit on networks where site search is refused: the Arctic Shift archive is now asked for each subreddit listing and comment lookup once per run instead of once per subquery (identical concurrent requests were answered "HTTP 422: Timeout. Maybe slow down a bit"), a refused listing slice is asked for again after the others, and the newest week of the window is fetched first so a short budget drops the oldest week. A run that lost threads and comments to those 422s now keeps them. |
| 486 | - The Polymarket footer names a recurring series once and puts substantive markets first. An "Elon Musk" run printed three brackets of the weekly "how many tweets" market in its three slots; it now names the net worth, Putin meeting and administration markets, and a tweet-count bracket only fills a slot that is left over. |
| 487 | - The ScrapeCreators Reddit backfill now runs when it should. Its 5-thread floor counted every free thread, so a run whose site search was refused still cleared it with dozens of off-topic listing threads and ended with one usable thread and no backfill; the floor now counts on-topic threads. The free path also stops early enough to leave the backfill a turn, so a free path that timed out with nothing is backfilled instead of ending as "reddit timed out", and a slow backfill is abandoned before it can cost the free threads. Free stays first. |
| 488 | - The `## Jobs Digest` now includes the roles the run itself ranked highest (its ranked job postings and the roles its Hiring Signals themes name). Up to 10 of the digest's 40 places go to them, listed first, and the rest stay with the rarest roles on the board, so the hiring section is no longer written without the run's strongest postings. |
| 489 | - The jobs lane now works inside one 45 second budget of its own (careers pages, board detection, listing pages and detail calls) instead of running into the generic 180 second source timeout. When the budget runs out it returns what it has read: an open-role count with a `+`, a digest of the roles read so far and a coverage note. Every request has a short timeout, so a host that never answers costs seconds, not minutes; a domain guessed from the topic's name that does not answer is no longer reported as a jobs outage; and a lane that ends with nothing because of its budget says which host or step used the time, on stderr and in the source outcome. A company whose careers site is not one of the supported boards (Disney, Google) now ends quickly with `no supported job board found`. |
| 490 | - The jobs lane reads the careers page of the official site the run already knows (`--official-site`, or the one auto-resolve found) when Wikidata names no company for the topic, instead of guessing domains from the topic's name. A board found under a guessed slug that states another company's name is no longer counted as the topic's. |
| 491 | - The report's first line no longer ends its window on tomorrow's date. West of UTC in the evening it read "Oct 12 to Nov 11, 2026" on Nov 10; the window shown now ends on the reader's own date, while searches keep the UTC end date so no post from the last hours is lost. |
| 492 | - When Reddit answers its site search with "HTTP 403: Blocked", the run stops searching after the first refusal instead of retrying every subreddit for every subquery, and Reddit is listed under Partial Coverage ("Reddit site search was blocked (HTTP 403: Blocked); threads come from subreddit listings only") instead of reading as a complete source. |
| 493 | - When a company has no supported job board, the run no longer prints a `💼 Jobs: 4 roles` line built from web search results. The jobs web fallback now keeps only job postings on a supported board that carries the company's name, so ad links, search-engine redirects, Wikipedia, news stories and careers landing pages are never counted as roles, and the careers-page search skips ad and redirect links. |
| 494 | - `doctor --postmortem` reports the run that just finished again. Since the report cache moved to its v2 format it printed "No saved run found" after every run, and plain `doctor` ignored the last run's per-source outcomes for the same reason. |
| 495 | |
| 496 | |
| 497 | ## [3.34.1] - 2026-11-11 |
| 498 | |
| 499 | ### Fixed |
| 500 | |
| 501 | - A topic with no job board no longer reports "Jobs unreachable" and "Some sources failed: jobs". A careers domain guessed from the topic's name that does not resolve, or refuses the connection, now counts as no board found; a hiring system's own API being down is still reported. |
| 502 | - Jobs now finds a company's board when its careers page is a landing page that links to a job search on the same site (`nvidia.com/careers` to `jobs.nvidia.com`), so a person who leads such a company gets that company's roles ("Jensen Huang" returned 0 jobs). When Wikidata names no company for the topic and the topic has no board of its own, the one company the host passed with `--ticker` is searched instead; without an official site its board still gives a digest only when the board names that company. |
| 503 | - Polymarket footer names are whole phrases and carry the price of the market they name: "Waymo operate in 12-15 cities on Dec 31, 2026 79%" where the footer printed "Waymo operate in 12-15 cities on 79%", and a bracket's price is no longer shown beside another bracket's question. A deadline ladder ("... by December 31, 2026", "... by March 31, 2027") shows its nearest deadline that has not passed instead of the furthest. A market is named in the footer only when it names the whole topic, so a table tennis match no longer appears under "Jensen Huang". In the saved file, the outcomes of a multi-outcome event keep their own labels ("12-15: 79% | 16-19: 12%") instead of repeating the subject ("Waymo: 79% | Waymo: 12%"). |
| 504 | - The footer's freshness note ("Recent evidence is thin: only N of M dated items are from the last 7 days") no longer counts job postings. A company board with thousands of older postings made every company run look stale; the note now measures only what people posted. |
| 505 | - The saved raw file no longer lists every posting on a company's job board (one run's file was 2.4 MB, 2.3 MB of it postings). It now carries the Jobs Digest, the ranked postings (up to 40) and a count of the rest. |
| 506 | |
| 507 | |
| 508 | ## [3.34.0] - 2026-11-11 |
| 509 | |
| 510 | ### Added |
| 511 | |
| 512 | - Company and person topics now resolve to the company they name through Wikidata, with or without a host plan and for each entity of a comparison: the company and its site when the match is certain, and its ticker only when it has exactly one primary listing. The Resolved Entities row shows the ticker, as `Ticker NVDA`, or `Ticker NVDA (via Nvidia)` when the topic is the person who leads it. |
| 513 | - Company job boards hosted on Workday (Nvidia, for example) are now read. The listing is fetched in parallel under a time budget, up to Workday's 2,000-row limit, and the run records when a board was capped or cut short. Descriptions and true posted dates are fetched for a small number of roles only. |
| 514 | - Company reports can now carry a "Jobs Page Secret Signals" section, built from the company's own job board. It appears only when at least two postings reveal something out of character, concrete and hard to undo, or bear on a story in the report, and each signal quotes and links its posting. A signal is called unreported only after a web check; most runs show no section. `--hiring-signals` runs need only one such signal. |
| 515 | - Company topics get a Yahoo Finance footer line: the share-price change over the 30 days ending on the report's last day, whatever the research window, with both closes, the S&P 500 for US listings, and the largest single-day move. It appears when `yahoo-finance-pp-cli` is on PATH and the topic resolves to a listed company or the person who leads one; the same numbers are in the evidence as a Market Data block and add nothing to the item counts. `EXCLUDE_SOURCES=yahoo_finance` turns the line off with no call to Yahoo Finance, and adding `jobs` to that list also skips the Wikidata company lookup. When the Wikidata lookup fails, the topic text is sent to Yahoo Finance's symbol search as a fallback and its first stock is used only on an exact name match with a US symbol. The hosting model can now pass the ticker it found by web search with `--ticker "SYMBOL:Company"` (two pairs for a person who leads two listed companies), which also covers products and subsidiaries through their listed parent; the engine uses a pair only when Yahoo Finance's price chart and symbol search both agree with it, and prints no price line when none does. |
| 516 | - First-run setup now installs the free, keyless Yahoo Finance CLI with the arXiv and Techmeme CLIs, under the same consent, so company topics get the share-price line without a separate install. Existing installs are not changed: `doctor` lists the source with its CLI and prints the install command when the binary is missing. The security notes now name the two calls behind the line: the topic text goes to Wikidata when it looks like a company or a person's name, and Yahoo Finance receives a ticker symbol and, to confirm one, the company name. |
| 517 | |
| 518 | ### Changed |
| 519 | |
| 520 | - A story in the report can now be followed by one pulled comment on its own quote line, with the platform, author, community and vote count, translated when the comment is in another language. The `## Top Community Comments` evidence lines name the platform dot and, for Reddit, the subreddit, and print counts with thousands separators. |
| 521 | - Job postings now reach the report as a `## Jobs Digest` evidence section in place of the opening lines of each description: up to 40 of the board's rarest roles, each with the text no other role on that board repeats. Two postings that share a title stay separate roles unless they also say the same thing, and a ranked posting the digest does not list keeps its own evidence line. The footer Jobs line reads `N open roles`, adds `M new in the L30` only when the board gives every role a true first-posted date (Greenhouse now uses `first_published`, not `updated_at`), and shows `2,000+` for a board that was capped or cut short, with no new-roles count for a board read in part. SmartRecruiters boards are read past their first 100 roles, up to 2,000. Workable postings now carry their published date, so a Workable board read whole gets a new-roles count, and a posting's departments read as names (`Product, Design`). Workday descriptions are fetched for the digest's roles only; a Workday board whose every role was fetched gets a new-roles count too, and the digest's note counts detail requests that failed. The MCP `research` tool returns the footer line without the digest (it sets `LAST30DAYS_NO_JOBS_DIGEST=1`), and job postings there keep their evidence lines. |
| 522 | - Reports now end on the "I'm now an expert on…" invitation and its suggestions; the closing "I have all the links to the … I pulled from. Just ask." line is gone. Saved HTML briefs and the library feed still leave the invitation out, for reports with either ending, and now leave out the comparison invitation too. |
| 523 | - The report's first line now names the search and its window: `🌐 last30days · {topic} · {Mon D} to {Mon D, YYYY} · v{VERSION}` replaces `🌐 last30days v{VERSION} · synced {YYYY-MM-DD}`. Comparison runs show the entities joined by " vs " and discovery runs show the domain. |
| 524 | |
| 525 | ### Fixed |
| 526 | |
| 527 | - A normal run on a company, or on the person who leads one, reads that company's job board again: the research instructions now have the host name `jobs` in its plan, which they had told it to leave out. The board is looked for on the company's official site, and other domains are guessed only when no official site is known. A board found by guessing its name or its domain is used for the role count alone unless it names the same company, and a run with `--as-of` in the past skips Jobs with the reason shown. |
| 528 | - GitHub keyword search no longer adds spam issues and passing mentions from unrelated repos to reports on non-tech topics. A result is kept only when its title names the topic or its repo is named for it; `--github-user` and `--github-repo` runs are unchanged. |
| 529 | - Report paragraphs keep their bold headline phrase when you have a general plain-style or no-bold preference, so reports stay scannable. The headline is dropped only when an instruction names the report or arrives with the request, the host or operator requires it, or the channel does not render markdown. |
| 530 | - The Polymarket footer line names each market once and whole: a sub-market's name is no longer cut mid-word or repeated after its question, and markets that differ only in their deadline are told apart. |
| 531 | - The `## Stats` block no longer counts job postings as evidence: "Total evidence" and its source count leave them out, "Top voices" no longer lists departments or the hiring system, and open roles get their own `Jobs: N roles` line. |
| 532 | - The web section appended to the saved raw file now keeps each article's URL instead of only the outlet's domain, so later readers and later runs can link the articles. |
| 533 | |
| 534 | |
| 535 | ## [3.33.2] - 2026-11-10 |
| 536 | |
| 537 | ### Fixed |
| 538 | |
| 539 | - X search no longer fails with "Internal server error" when an earlier browser holds an expired x.com session. With `FROM_BROWSER=auto`, if X rejects the session from the first browser that has one (for example an old Safari login), the engine retries the search with the next browser's session (for example Chrome) and keeps using it for the rest of the run. When no other browser has a working session, the error names the browser whose session failed and is reported as an auth failure. |
| 540 | |
| 541 | |
| 542 | ## [3.33.1] - 2026-11-10 |
| 543 | |
| 544 | ### Fixed |
| 545 | |
| 546 | - YouTube no longer comes back empty for topics with a big back catalog, such as a music artist whose top search results are years-old official videos. When the relevance search finds fewer than 3 videos inside a recent window, the engine retries once with YouTube's own upload-date filter (this week, month, or year) and merges the new uploads. An age-restricted video in the results is also no longer mistaken for a bot block, which had been cancelling transcripts for the whole search. |
| 547 | |
| 548 | |
| 549 | ## [3.33.0] - 2026-11-10 |
| 550 | |
| 551 | ### Security |
| 552 | |
| 553 | - Limit the Bright Data CLI child environment to its own API key and runtime, credential-location, TLS and proxy settings, preventing unrelated provider secrets from being inherited even when no explicit Bright Data key is configured. |
| 554 | |
| 555 | ### Fixed |
| 556 | |
| 557 | - Instagram searches that find no reels now show `no results` in Source Coverage instead of `error: HTTP 404`. A 404 from the Google discovery fallback is treated as a clean miss, matching the primary reels search; other fallback failures are still reported. ([#1370](https://github.com/mvanhorn/last30days-skill/issues/1370)) |
| 558 | - Enablement topics such as "best Grok AI bot to control my computer agent" now plan as how-to research, with subqueries for the built-in route and the third-party MCP servers, CLIs and automation tools that give the named tool that capability, instead of a strict-recent comparison about the tool. |
| 559 | - In Claude Code, reports no longer contain markdown lists: KEY PATTERNS numbers and suggestion bullets are written as plain lines that look the same. While a list streamed, Claude Code could redraw every link in the reply as `label (url)`, leaving the scrolled-off part of a report with visible URLs. Other hosts are unchanged. |
| 560 | - Plural topics like "AI coding agents" or "prediction markets" are classified into their category again, so discovery and subreddit resolution add the category's peer subreddits instead of finding no category. |
| 561 | - Questions such as "best Grok bot to control my computer" now surface the general tools that answer them (MCP servers, agent CLIs, browser automation), not only posts about the named tool. The planner always adds a search for the capability itself, also when the LLM planner is unavailable. The candidate pool keeps a few of those results, spread across sources. The reranker no longer caps them for not naming the tool the question names. |
| 562 | - Recommendation reports use available source voices without requiring X posts, and their example follows the root output format. |
| 563 | - Reports stop printing a like, upvote, view, or point count beside every quote and source. Engagement numbers still decide what gets quoted, but a count now appears in the summary only when its size is the finding (a comparison, a contrast, or a surprise); otherwise the report says "the top comment" or drops the number. Polymarket odds, the `creator` and `exec` registers, and the stats footer are unchanged. |
| 564 | |
| 565 | |
| 566 | ## [3.32.0] - 2026-11-09 |
| 567 | |
| 568 | ### Security |
| 569 | |
| 570 | - Keep synthesis, citation, and response-format instructions in the skill and MCP tool description rather than research output. Compact and comparison reports retain source evidence, coverage warnings, footer data, and structural boundaries without commands to override the host's response format. |
| 571 | - Make explicit cookie refusal (`BROWSER_CONSENT=false` or `FROM_BROWSER=off`) disable the agentcookie sidecar as well as native browser and CDP reads, including availability checks. User-supplied credentials and sidecar behavior without an explicit refusal are unchanged. |
| 572 | |
| 573 | Existing sidecar users with either refusal setting must remove both `BROWSER_CONSENT` and `FROM_BROWSER` from the process environment, the active global `.env` (including a custom `LAST30DAYS_CONFIG_DIR`), and any trusted project `.claude/last30days.env`, then set `AGENTCOOKIE=on` to restore sidecar-only access. Native browser and CDP reads remain disabled with both settings absent; `BROWSER_CONSENT=true` would also permit CDP reads. |
| 574 | |
| 575 | ### Fixed |
| 576 | |
| 577 | - Accept query plans from standard input with `--plan -` and use a quoted heredoc in the research runbook, so Codex can start research without a temporary-plan cleanup trap. ([#1346](https://github.com/mvanhorn/last30days-skill/issues/1346)) |
| 578 | - Identify Google discovery fallback failures in Instagram search results and Source Coverage, preserving clean no-reels responses, recovered reels across queries or creators, and the most specific typed HTTP failure. ([#1356](https://github.com/mvanhorn/last30days-skill/issues/1356)) |
| 579 | - A YouTube lane keeps 60 to 75 seconds for transcripts before it starts another expanded search. After yt-dlp hits a bot-check or HTTP 429, including over SSH, the rest of that search's transcripts go to ScrapeCreators when a key is set, and a transcript cut off by the lane deadline is logged as that deadline. |
| 580 | - Amazon research works again with Bright Data CLI 0.4.0 and newer, which removed the named pipeline commands the engine called. Older CLIs now get a clear upgrade message (`npm i -g @brightdata/cli@latest`). |
| 581 | - Research on an organization whose first word names other things (for example "Pace Capital" vs. Pace Morby) no longer writes up the namesakes. The planner can now anchor such organizations by full name, anchored runs drop namesake items from the footer counts and Top voices too, and synthesis drops a different entity with the same name silently instead of noting it is unrelated. |
| 582 | - X, Threads and planner searches no longer keep a question's closing "?" in the core subject: "What is Claude Code?" now searches for "claude code" instead of "claude code?", and a noise word or suffix right before the "?" is stripped as it is without one. |
| 583 | - `--search` with only sources that can't run here (for example telegram or tiktok without a ScrapeCreators key) now names those sources and exits 2 instead of ending in a traceback. |
| 584 | - `store.store_findings` now collapses duplicate URLs within a single batch and coalesces null engagement scores during conflict upserts so a single run never inflates `sighting_count` or `findings_updated` for a newly discovered URL. |
| 585 | |
| 586 | |
| 587 | ## [3.31.0] - 2026-10-27 |
| 588 | |
| 589 | ### Security |
| 590 | |
| 591 | - Fixed MCP research dispatch so reserved topic names cannot invoke administrative commands. Protected existing password-store credentials when decryption fails, and sanitized Digg-attached X quotes so external content cannot forge the engine's evidence boundaries. |
| 592 | |
| 593 | ### Added |
| 594 | |
| 595 | - Browser-cookie auth now covers **Dia** (The Browser Company) on macOS, alongside the rest of the Chromium family. Use `FROM_BROWSER=dia`, or let `FROM_BROWSER=auto` find it. The first-run setup wizard also scans Dia, so a user whose only X session lives there is detected without setting `FROM_BROWSER` first. |
| 596 | - Reddit comment enrichment now falls back to the arctic-shift archive when the shreddit comment partials return nothing — hosts on datacenter egress (where Reddit 403s `/svc/shreddit`) keep top-comment text (ranked by score) instead of silently degrading to counts only. |
| 597 | |
| 598 | ### Fixed |
| 599 | |
| 600 | - Preserve explicit person identity anchors through plan replay, X entity expansion, and ranking so same-name evidence cannot become a supplemental target or ranked result. ([#1290](https://github.com/mvanhorn/last30days-skill/issues/1290)) |
| 601 | - TikTok searches now share a deadline across hashtags, creator videos, keyword searches, transcripts, and comments, returning collected videos as partial results instead of losing them at the stream timeout. ([#1311](https://github.com/mvanhorn/last30days-skill/issues/1311)) |
| 602 | - When the YouTube step times out, the footer now names the timeout instead of telling you to update yt-dlp. ([#1327](https://github.com/mvanhorn/last30days-skill/issues/1327)) |
| 603 | - YouTube no longer times out for every entity in "X vs Y vs Z" comparisons. Each entity now takes its share of a single-topic YouTube budget (searches, transcripts, and comments, at least one of each) instead of a full budget apiece, so the parallel sub-runs stop queueing several runs' worth of yt-dlp work on the shared two-slot limit and each one returns videos inside the 180-second lane wait. Single-topic runs are unchanged. ([#1335](https://github.com/mvanhorn/last30days-skill/issues/1335)) |
| 604 | - A YouTube lane that runs out of time now returns the videos it already found instead of being dropped as a timeout with zero results. Search, transcript, and comment fallbacks share the lane's return deadline, preserving time to hand back partial results. Expired lanes are not retried or backfilled, and no new paid fallback starts after their return deadline. |
| 605 | - Classify ScrapeCreators Instagram reels-search 404 responses that explicitly report no matching reels as clean no-results, while preserving errors for other 404s and keeping Google discovery fallback. When the hashtag-form retry answers a reels-search 500, the replaced 500 no longer marks Instagram as failed. Fixes the Instagram portion of #1311. |
| 606 | - Fixed cached HTML exports to respect research scope and support comparison exports after temporary plans are removed. Aligned MCP save destinations with preflight and trusted configuration, isolated comparison peers' dedicated subreddits, and honored jobs exclusions throughout source selection. |
| 607 | |
| 608 | Kept rejected Polymarket markets out of ranking, restored enrichment-based entity grounding, selected the newest relevant freshness assertion, included the final requested day in Grok and Xquik searches, and restored Reddit fallback when ScrapeCreators results are all outside the requested window. Corrected non-Latin web-backend guidance and autoresolve backend availability. |
| 609 | |
| 610 | Fixed signup credential persistence over empty configuration assignments, browser cookie snapshots with committed SQLite WAL changes, multipart Trustpilot hostnames, and Startpage snippet association. Preserved maximum observed engagement during concurrent updates. |
| 611 | - GitHub source footers distinguish open issues/PRs, total PRs, and contributed PRs from discussion comments across compact, HTML, and comparison views. Genuine issue and PR comment counts remain discussion comments. |
| 612 | - Grok X research works again on current grok CLI releases. Instead of accepting only grok 1.0.46, last30days accepts stable builds at 1.0.46 or newer and audits each new build once, locally, before it receives credentials: the build runs against a fake xAI endpoint on 127.0.0.1 with dummy credentials, signed in and with an API key, must declare hosted X search as its only tool, and must refuse a forced shell command and file read. The audit costs no credits and never contacts xAI. npm installs now run the native binary the package ships, which also skips a roughly 170 MB decompression on every grok call. |
| 613 | - Keyless web results (DuckDuckGo, Startpage, SearXNG) no longer vanish because they carry no date: when the research window reaches today, undated keyless results are kept and labelled `date unknown [date:low]`. Historical windows still drop them, and keyed backends keep their existing date rules. Follow-up to #928 / #1038. |
| 614 | - Reddit comment enrichment now stops the arctic-shift archive fallback at the shared enrichment budget instead of giving it a fresh 15 seconds, so a slow archive on a datacenter host can no longer hold up the rest of the research past that budget. |
| 615 | - YouTube spends fewer ScrapeCreators credits on transcripts. Paid rescues of failed yt-dlp transcript fetches stop once they have filled the depth's transcript target instead of covering every candidate (up to three times the target). The search backfill counts transcripts yt-dlp already fetched toward that target. yt-dlp now requests every original-speech track (`en-orig`, `es-orig`, ...) before any plain language code, so a video dubbed from another language into English no longer stops at a rate-limited translated `en` track before reaching its original. |
| 616 | |
| 617 | |
| 618 | ## [3.30.0] - 2026-10-22 |
| 619 | |
| 620 | ### Fixed |
| 621 | |
| 622 | - Hosted runs now search installed lanes such as Digg even when the host's plan leaves them out, and stop printing "0 clusters" for sources that were never searched. Entity runs resolve the subject's X handle more reliably: `--official-site` reads the handle from the brand's homepage links with no API key, the runbook restricts X searches with the search tool's domain filter, and a hosted entity run that plans X now exits 2 until it passes `--x-handle` or `--no-x-handle="<reason>"`. |
| 623 | |
| 624 | |
| 625 | ## [3.29.0] - 2026-10-22 |
| 626 | |
| 627 | ### Security |
| 628 | |
| 629 | - Add a "Data handling" section to README in all 7 languages disclosing that reranking sends topics and content snippets to the configured reasoning provider when a key is set. Document `LAST30DAYS_STORE` retention, save-directory overrides, and how to purge a database and its WAL sidecars after stopping all users. Log the npm package name to stderr before each `npx` install, preserving machine-readable stdout. These disclosure changes do not add a rerank-disable option, automatic expiry, or a new installation-consent gate. ([#663](https://github.com/mvanhorn/last30days-skill/issues/663)) |
| 630 | |
| 631 | ### Added |
| 632 | |
| 633 | - `LAST30DAYS_YOUTUBE_BACKEND=yt-dlp` keeps YouTube on yt-dlp only, with the keyless retry budget, while `SCRAPECREATORS_API_KEY` keeps serving other sources. `LAST30DAYS_YT_TRANSCRIPT_FAST_ATTEMPTS` sets how many keyed yt-dlp transcript attempts run before the paid fallback (default 1). ([#1316](https://github.com/mvanhorn/last30days-skill/issues/1316)) |
| 634 | |
| 635 | ### Fixed |
| 636 | |
| 637 | - Instagram keyword search falls back to a bounded Google-indexed reel search and fetches post details when the primary reels search returns no results. Recovery and enrichment share the source deadline, preserve completed results as partial coverage, and stop starting requests after timeout or cancellation. ([#1020](https://github.com/mvanhorn/last30days-skill/issues/1020)) |
| 638 | - Instagram nudge now distinguishes HTTP errors ("Bonus source failed: Instagram") from zero-result runs ("Bonus source unavailable: Instagram") instead of labelling both as "silent". ([#1289](https://github.com/mvanhorn/last30days-skill/issues/1289)) |
| 639 | - Updated the README source tables in all seven languages to include the engine's optional and local sources, with activation requirements. Replaced stale release and test counts with maintained references, and corrected source prerequisites in CONFIGURATION.md. ([#1303](https://github.com/mvanhorn/last30days-skill/issues/1303)) |
| 640 | - YouTube transcripts now request uploaded subtitles alongside auto captions, so videos with manual subtitles and no auto track get a free yt-dlp transcript instead of falling through to a paid ScrapeCreators rescue. ([#1313](https://github.com/mvanhorn/last30days-skill/issues/1313)) |
| 641 | - yt-dlp now asks for each caption language's original-speech track first (`en-orig,en,...`), so auto-dubbed videos whose plain track returns HTTP 429 keep a free transcript. The ScrapeCreators fallback sends plain language codes. ([#1314](https://github.com/mvanhorn/last30days-skill/issues/1314)) |
| 642 | - A YouTube lane still running after the research budget ran out no longer spends ScrapeCreators credits on search, transcripts, or comments, and an interpreter-shutdown error is no longer treated as an empty yt-dlp result. The ScrapeCreators YouTube search also stops buying transcripts once it reaches the depth's target. ([#1315](https://github.com/mvanhorn/last30days-skill/issues/1315)) |
| 643 | - Digg results work again with digg-pp-cli 2026.10.1, which rebuilt search after Digg removed its search API. last30days now searches Digg's AI and Tech sections, keeps an empty answer from a freshly synced copy as "no matches" instead of an error, and marks Digg partial in the brief, with the `digg-pp-cli sync --topics ai,tech` command to run, when the CLI searched only its newest stories. |
| 644 | - Handle discovery no longer treats short fragments of a topic word (for example "go" for "Google Gemini") as the topic's subject, now recognizes handles spelled from a name's prefixes (for example "steipete" for "Peter Steinberger"), and no longer gives first-party status to accounts named after query scaffolding words like "review" or "news". |
| 645 | - Keyless Reddit discovery no longer collapses to 1-point stubs when shreddit is blocked: the arctic-shift supplement now slices the research window with `after`/`before` and keeps the highest-scored sampled posts, restoring real engagement numbers (a 30-day window on the test topic went from 6pts to ~3,000pts). Slice requests rotate across subreddits so a slow first subreddit cannot consume the entire discovery budget, and successful partial results survive failed slices or an expired deadline. |
| 646 | - Search-query cleanup now strips "how do you use", "how can I use", "how do you" and "how can I" openers, so "how do you use Cursor" searches for "cursor" instead of "do you cursor". |
| 647 | - The deferred X relevance floor now runs before the per-source evidence view is finalized, so the report's X items and X source status count reflect the same post-floor evidence set that ranking sees. |
| 648 | |
| 649 | |
| 650 | ## [3.28.1] - 2026-10-20 |
| 651 | |
| 652 | ### Added |
| 653 | |
| 654 | - Add `YOUTUBE_PROXY` (alias `YT_PROXY`) env var: when set, passes `--proxy <url>` to all yt-dlp invocations in `youtube_yt.py` (`search_youtube` and `fetch_transcript`), routing only yt-dlp traffic through the proxy. Useful in regions where YouTube is blocked. Documented in CONFIGURATION.md under "YouTube proxy". ([#158](https://github.com/mvanhorn/last30days-skill/issues/158)) |
| 655 | |
| 656 | ### Fixed |
| 657 | |
| 658 | - Render the engine footer as a fenced text block so Markdown does not turn `---` into horizontal rules. ([#706](https://github.com/mvanhorn/last30days-skill/issues/706)) |
| 659 | - GitHub searches skip qualifier-only topics with malformed or nested wrappers instead of sending punctuation-only queries. Topics containing real search text keep their existing punctuation. ([#969](https://github.com/mvanhorn/last30days-skill/issues/969)) |
| 660 | - Authenticated Bluesky searches now send RFC3339 date-time bounds, preventing valid date windows from being rejected as malformed requests. ([#984](https://github.com/mvanhorn/last30days-skill/issues/984)) |
| 661 | - Remove "LAW N" framing from model-visible render output: the SYNTHESIS CONTRACT, EVIDENCE FOR SYNTHESIS envelope, and DEGRADED RUN WARNING now use plain descriptive guidance instead of numbered law references. ([#1082](https://github.com/mvanhorn/last30days-skill/issues/1082)) |
| 662 | - The MCP launcher now finds and verifies Python 3.12+ interpreters on PATH when the default python3 is too old. Set LAST30DAYS_PYTHON to select a specific interpreter; invalid explicit choices report an error instead of silently falling back. ([#1140](https://github.com/mvanhorn/last30days-skill/issues/1140)) |
| 663 | - xAI: change the default model from `grok-4-1-fast`, which xAI no longer lists, to `grok-4.20-0309-non-reasoning`. The same default (`XAI_DEFAULT`) drives the xAI X search backend and the xAI planner and rerank models when `LAST30DAYS_REASONING_PROVIDER=xai`, unless `LAST30DAYS_X_MODEL` or `LAST30DAYS_PLANNER_MODEL` / `LAST30DAYS_RERANK_MODEL` pin another model. `CONFIGURATION.md` now documents `LAST30DAYS_X_MODEL` next to `XAI_API_KEY`. ([#1186](https://github.com/mvanhorn/last30days-skill/issues/1186)) |
| 664 | - Reddit comment parsing now matches shreddit attribute names case-insensitively, so markup that carries `thingid` instead of `thingId` no longer yields zero comments. ([#1256](https://github.com/mvanhorn/last30days-skill/issues/1256)) |
| 665 | - Digg now reports an error instead of "no results" when `digg-pp-cli` falls back to its local store after a failed live search (last30days never runs `digg-pp-cli sync`, so the fallback store is always empty). ([#1281](https://github.com/mvanhorn/last30days-skill/issues/1281)) |
| 666 | - Hacker News top comments now follow the thread's display order from the official HN item API instead of Algolia's oldest-first order, so quoted comments are the ones HN ranks highest. If that lookup fails, comments keep the previous order and the Hacker News source is not marked degraded. ([#1285](https://github.com/mvanhorn/last30days-skill/issues/1285)) |
| 667 | - GitHub keyword searches now stop at the research window end, so an `--as-of` run no longer spends its result slots on issues created after the window and then drops them. |
| 668 | - GitHub person mode (`--github-user`) now counts PRs created inside the research window only, so an `--as-of` run no longer reports every PR up to today, and its velocity summary names the real window length instead of always saying 30 days. |
| 669 | - Live-edit setup guidance now preserves the installed skill as a backup before replacing its real directory with a working-tree symlink, so development edits reach the active skill. |
| 670 | - Sources named in `--search` are no longer dropped by intent routing at default and deep depth (for example, Polymarket on a topic classified as a concept or how-to). |
| 671 | - YouTube no longer keeps videos published after the end of an `--as-of` window, so a historical report cannot cite later videos or spend its transcript budget on them. Cached and concurrent searches use the complete date window, including its inclusive end date. |
| 672 | - arXiv no longer returns papers published after the end of an `--as-of` window, and its one-year recency cutoff is now measured from that end date, so historical reports keep in-window papers instead of citing later ones. |
| 673 | - dev.to now finds articles for research windows that end before today. It pages back through newer results within a 45-second budget, keeps only articles inside the window, and includes the whole first day of every window. |
| 674 | |
| 675 | |
| 676 | ## [3.28.0] - 2026-10-11 |
| 677 | |
| 678 | ### Security |
| 679 | |
| 680 | - Cached research reports and the GitHub sign-in handle are now written with owner-only permissions on macOS and Linux. Hosted research through `LAST30DAYS_API_BASE` now requires HTTPS, except for loopback addresses. |
| 681 | |
| 682 | ### Added |
| 683 | |
| 684 | - Added a security policy (`SECURITY.md`) that explains how to report vulnerabilities privately through GitHub security advisories and documents what the skill sends over the network, which credentials and browser cookies it reads, what it installs, and what it stores locally. ([#565](https://github.com/mvanhorn/last30days-skill/issues/565)) |
| 685 | - Added dev.to as a free, keyless source. When you research a software or developer topic, the skill infers dev.to tags and adds dev.to articles ranked by reactions and comments, with top comments from the leading articles. It stays off for other topics, and `INCLUDE_SOURCES=devto` turns it on for every run. |
| 686 | |
| 687 | ### Fixed |
| 688 | |
| 689 | - A host-supplied query plan now searches only the sources it names: company topics no longer get an unrequested jobs lane added to it. A plan that names jobs keeps jobs on any topic, and hiring-signals mode with a host plan runs the jobs lane instead of failing with "No available planned sources remain". |
| 690 | - A multi-subquery run now fetches each identical TikTok, Instagram, YouTube, and X search once instead of once per subquery, and the thin-source retry reuses a clean result instead of repeating the request. Polymarket and Digg no longer run the same search twice when the thin-source retry's simplified query matches the planner's. Failed fetches are not reused, so the retry still makes a real second attempt. |
| 691 | - Corrected the configuration reference to describe ScrapeCreators' GitHub device-code signup, TikTok and Instagram availability with a ScrapeCreators key, and the DuckDuckGo → Startpage → optional SearXNG search fallback. Removed the unsupported Apify fallback claim and documented YouTube SSH routing, including its prerequisites and limits. |
| 692 | - Fixed `--github-repo` project mode silently dropping the pinned repo when its newest GitHub release is older than the research window (Ghostty's newest release object is a 2022 nightly). The repo snapshot is now dated to the window end unless that release falls inside the window, so the live star count reaches the report and Source Coverage no longer shows "GitHub: 0 items (no results)" after the engine logged a project-mode result. A snapshot dated this way ranks on neutral freshness (the 10-90 scale midpoint) instead of maximum freshness, so the pinned repo card no longer sorts to #1 in every report; a repo whose newest release is inside the window keeps normal freshness. |
| 693 | - Fixed first-run setup to find signed-in Opera sessions on macOS when you approve browser-cookie access, before trying Firefox and Safari. |
| 694 | - Fixed the engine footer printing "15 storys" for Hacker News; it now reads "15 stories" (and "1 story"). Footer nouns ending in a consonant followed by "y" now pluralize to "ies". |
| 695 | - Hacker News comment quotes now link to the comment itself (or the HN discussion page when the comment id is missing) instead of the story's article URL. |
| 696 | - Hacker News: when the same article was submitted to HN more than once, the engine merged the submissions and showed one story's id with another story's comment count and comments. Each HN submission now keeps its own points, comment count, discussion link, and comments, and a ranked card's evidence text comes from the same submission whose numbers it shows; submissions of the same article still cluster together. |
| 697 | - Ranking without an LLM reranker now weighs real engagement: a 380-point Hacker News story no longer ranks below 3-point stories just because they are newer. Relevance is still judged by word overlap with the topic, so a well-upvoted post whose title barely matches can still rank below weaker posts that repeat the topic words. Engagement is scored on an absolute per-platform scale instead of within each search's own results, freshness is counted once, the low-score cliff applies only to LLM-scored results, and first-party posts are lifted only when they are on topic (or the handle is the topic itself). The "All Items" list now shows real scores instead of 0 or 1. GitHub repo cards no longer count lifetime stars as engagement or take first-party credit, and YouTube, TikTok, and Instagram engagement is scored on a view scale so a few-hundred-view video no longer rates like a well-upvoted thread. |
| 698 | - Recent-topic reports no longer include years-old YouTube videos when nothing on YouTube falls inside the date window; the YouTube section now comes back empty instead of padding the report with off-topic back-catalog videos. Evergreen and how-to topics still fall back to older videos when recent ones are scarce. |
| 699 | |
| 700 | |
| 701 | ## [3.27.3] - 2026-10-11 |
| 702 | |
| 703 | No significant changes. |
| 704 | |
| 705 | |
| 706 | ## [3.27.2] - 2026-10-09 |
| 707 | |
| 708 | ### Security |
| 709 | |
| 710 | - Provider endpoint overrides (`OPENAI_BASE_URL`, `XAI_BASE_URL`, `OPENROUTER_BASE_URL`) now reject remote cleartext `http://` targets and use the vendor endpoint instead. Rejection warnings omit the configured URL so embedded credentials cannot leak to stderr. Loopback `http://` overrides still work for local gateways (LiteLLM, Ollama, SSH tunnels) and bypass configured HTTP proxies so the bearer token stays on the local connection. `--preflight` already listed all three override keys; it now marks rejected values as ignored rather than active and reports only the variable names. |
| 711 | |
| 712 | ### Added |
| 713 | |
| 714 | - Agent JSON exports now include token usage from the full planner and rerank run for Gemini, OpenAI, xAI, and OpenRouter. Usage is `null` when a provider omits token counts or a request has unknown usage, so callers do not mistake missing data for zero cost. ([#1137](https://github.com/mvanhorn/last30days-skill/issues/1137)) |
| 715 | |
| 716 | ### Changed |
| 717 | |
| 718 | - Under a detected agent host (Claude Code, Codex, `LAST30DAYS_HOST`, or `LAST30DAYS_HOST_AGENT=1`), a research run without `--plan` now stops with exit 2 and a LAW 7 message before any retrieval or internal-planner spend, instead of silently planning with an engine-side provider. `--mock`, `--hiring-signals`, `--auto-resolve`, comparison runs and non-research commands are exempt, and `LAST30DAYS_ALLOW_ENGINE_PLAN=1` restores engine planning for headless runs under an agent. Outside an agent host, a failed internal planner (for example HTTP 402) now also prints the LAW 7 reminder. ([#1178](https://github.com/mvanhorn/last30days-skill/issues/1178)) |
| 719 | |
| 720 | ### Fixed |
| 721 | |
| 722 | - Added regression tests for issue #817: Arabic-script (and other non-Latin) topics no longer risk UnicodeEncodeError on TikTok and Instagram (ScrapeCreators) searches. Tests lock in the existing percent-encoding fix in `http.request()` and cover the TikTok and Instagram search paths end-to-end. ([#817](https://github.com/mvanhorn/last30days-skill/issues/817)) |
| 723 | - Fixed Windows Bird/X timeouts that left Node shim descendants running after the shim or intermediate processes exited. ([#823](https://github.com/mvanhorn/last30days-skill/issues/823)) |
| 724 | - Brave, Exa, and Serper web results with unknown dates now survive the research pipeline when the provider bounds the requested window. Parallel applies a provider start-date filter and keeps undated results for current-window searches. Unknown dates remain labeled as such. ([#928](https://github.com/mvanhorn/last30days-skill/issues/928)) |
| 725 | - Fixed Reddit discovery reporting blocked or cardless r/all listings as no results instead of a degraded source. ([#940](https://github.com/mvanhorn/last30days-skill/issues/940)) |
| 726 | - Backfill thin YouTube search results from ScrapeCreators when a key is set, retain yt-dlp videos and transcripts, and surface backfill and failure details. Set `LAST30DAYS_YT_SC_MIN_ITEMS=0` for empty-only fallback. ([#977](https://github.com/mvanhorn/last30days-skill/issues/977)) |
| 727 | - The ScrapeCreators YouTube transcript fallback now requests up to three distinct preferred caption languages in order (`LAST30DAYS_YT_SUB_LANGS`, default `en,es,pt`). It skips empty tracks and limits total fallback time to 30 seconds per video. ([#1169](https://github.com/mvanhorn/last30days-skill/issues/1169)) |
| 728 | - X search through `xurl` no longer fails with "xurl: search failed" when a topic contains a bare `and`/`or`: the topic is sanitized into plain keywords (operators, negation, grouping and quotes removed, capped at 512 characters) before it reaches the X API, and an X "Invalid Request" rejection is now reported as "xurl: X rejected the query (invalid request)". ([#1177](https://github.com/mvanhorn/last30days-skill/issues/1177)) |
| 729 | - X search failures attributed to the xAI backend now point to its credentials, billing, rate limit, or timeout remedy instead of browser login or an unrelated X API bearer. ([#1186](https://github.com/mvanhorn/last30days-skill/issues/1186)) |
| 730 | - Setup and research runs now explain when browser-data permission denial prevents X cookie authentication. Doctor shows the last setup denial without reading browser cookies and points to manual cookies or key-backed X access. ([#1193](https://github.com/mvanhorn/last30days-skill/issues/1193)) |
| 731 | - A failed yt-dlp YouTube search (network error, bot check, broken install) is now reported as a YouTube failure in Source Coverage instead of as "no results". |
| 732 | - Reports no longer end with a trailing `Sources:` list. Host web searches now run in a subagent, so the main agent never receives the web-search tool's "include sources" reminder. Web pages are cited inline and counted in the closing "I have all the links" line. The engine's end-of-output text no longer claims to override tool contracts. |
| 733 | - The research runbook passes literal topics containing apostrophes or backticks correctly on macOS Bash 3.2, while retaining zsh compatibility and preventing shell expansion. |
| 734 | |
| 735 | |
| 736 | ## [3.27.1] - 2026-10-08 |
| 737 | |
| 738 | ### Fixed |
| 739 | |
| 740 | - On Grok Bot, the month's most-engaged on-topic X posts now reach the report: a host-fetched X stream holds half its slots for its most-engaged posts that name the topic, so the popular pass's big posts no longer lose to fresher low-engagement ones, and off-topic viral posts never take those slots. The footer's X line now names its source ("via Grok Bot X" or "via X connector"), and the Grok Bot X recipe gives discovered authors only topic-word lanes and uses the engine's UTC date for the window. |
| 741 | |
| 742 | |
| 743 | ## [3.27.0] - 2026-10-08 |
| 744 | |
| 745 | ### Security |
| 746 | |
| 747 | - Route `github.py` and `transcribe.py` through `http.open_request` so their bearer tokens are also dropped on cross-origin redirects; both built their own Request and called `urllib.request.urlopen` directly, bypassing the handler added for #1062. ([#1062](https://github.com/mvanhorn/last30days-skill/issues/1062)) |
| 748 | - Restricted Grok X research to an agent profile with no local tools or default tool injection, while retaining hosted X search. Only the audited Grok 1.0.46 stable build (2765805b9442) runs; other builds fail before credentials are staged. Search topics now enter the prompt as single-line JSON string literals, so quotes, backslashes, newlines, and invisible Unicode cannot break the prompt's framing. The model can still misinterpret a topic or report inaccurate results; escaping does not make model output trustworthy. ([#1161](https://github.com/mvanhorn/last30days-skill/issues/1161)) |
| 749 | - Prevented private corpus titles from appearing in published library briefs, indexes, and feeds. Daily briefing archives now retain headline provenance; library headlines use public findings from daily and weekly archives or a generic headline when provenance is unavailable. Original titles remain available locally. |
| 750 | - Require explicit consent before reading browser cookies through Chrome debugging sessions. Setup now saves acceptance or refusal, and a saved refusal blocks native browser and CDP reads on subsequent runs without storing cookie values. |
| 751 | |
| 752 | ### Added |
| 753 | |
| 754 | - Document previously-undocumented engine flags in SKILL.md; add CLI-flag and engine-sync contract tests. |
| 755 | |
| 756 | ### Changed |
| 757 | |
| 758 | - Load last30days instructions by research stage and optional mode, keeping the skill entry point short and preserving onboarding, output, citation, and permission requirements. Remove conflicting recommendation and comparison recipes and align plan guidance with the existing engine contract. ([#1230](https://github.com/mvanhorn/last30days-skill/issues/1230)) |
| 759 | - On Grok Bot, X now works out of the box: the bot fetches X through its built-in X tools first, with no plugin, key, or X API credits needed, then falls back to the X for Grok Bot connector and the official X API keys. Busy topics also get a popular pass, one relevance-sorted page for each of 10 equal slices of the window (5 on `--quick`), so the month's most-engaged posts surface, and the footer reads "via Grok Bot X". Host-fetched X results (`--x-posts`) can now fill the same topic budget as the engine's own two X fetches (24 posts at default depth, up from 12). |
| 760 | |
| 761 | ### Fixed |
| 762 | |
| 763 | - `.env` lines written with the shell's `export` prefix (`export KEY=value`) now set `KEY`; before, they created a key literally named `export KEY` and the setting was silently ignored. The setup wizard also treats an `export KEY=...` line as the key being set, so it no longer appends a second copy. ([#930](https://github.com/mvanhorn/last30days-skill/issues/930)) |
| 764 | - Hacker News stories now get their top comments attached again: the pipeline calls `hackernews.enrich_top_stories` after parsing search results, so HN items no longer reach normalization with empty `top_comments`. ([#1168](https://github.com/mvanhorn/last30days-skill/issues/1168)) |
| 765 | - SKILL.md now consistently documents the `--plan` tmpfile form (`--plan "$QUERY_PLAN_FILE"`) in the pre-run checklist and post-run self-check, matching LAW 7; the inline `--plan 'QUERY_PLAN_JSON'` form no longer appears in those spots. ([#1196](https://github.com/mvanhorn/last30days-skill/issues/1196)) |
| 766 | - SKILL.md's privacy list now notes the TikTok legacy fallback: when `SCRAPECREATORS_API_KEY` is unset, `APIFY_API_TOKEN` is sent to ScrapeCreators. ([#1197](https://github.com/mvanhorn/last30days-skill/issues/1197)) |
| 767 | - Reject YouTube SSH host aliases beginning with a dash while preserving valid aliases and SSH option termination. |
| 768 | |
| 769 | The manual engine comparison tool now uses the canonical engine path, counts nested entity reports, reports command failures separately from source errors, and exits unsuccessfully for failed or partial comparisons, including failures retained only in source status. ([#1226](https://github.com/mvanhorn/last30days-skill/issues/1226)) |
| 770 | - A failed X handle lane is no longer reported as "the subject posted nothing". The bird and xquik FROM/ABOUT lanes signalled a per-handle failure by returning no items, and the pipeline hardcoded the auth flag to `False` for both backends, so a missing `node`, a bird-search timeout, or an unpaid xquik key produced an empty lane with no recorded outcome — indistinguishable from genuine silence. Both adapters now report the reason, the pipeline records it, and the lane's auth message names the backend that actually failed. |
| 771 | - Bound MCP output-pipe draining after engine shutdown so detached helpers cannot delay timeout responses indefinitely. Canceled and timed-out requests now report their context error even when the engine's signal handler exits successfully, and requests canceled before startup do not launch the engine. |
| 772 | - Bound X searches, source waits, and discovery enrichment with shared deadlines. Cancelled enrichment stops later supplemental searches, X retries, and pipeline provider phases; completed evidence survives source timeouts as partial results. Bird searches that complete empty before the budget blocks optional retries retain their no-results status and show a partial-coverage warning. In-flight subprocesses retain their bounded timeouts. Raised the MCP subprocess timeout to 600 seconds (10 minutes) to accommodate deep enrichment; `LAST30DAYS_MCP_TIMEOUT` overrides it. The longer cap also lets a hung subprocess occupy an MCP slot longer. |
| 773 | - Browser cookie detection now requires the complete login pair before accepting a source, so a logged-out session can no longer shadow the browser where you are actually logged in. |
| 774 | - Discovery enrichment now hands each sub-run worker its own config copy, so one topic's financial-topic flag can no longer overwrite another's mid-run. |
| 775 | - Doctor source probes and Reddit comment enrichment now stop stalled HTTP reads within their operation budgets and reap the transport workers. Reddit keeps comments that completed in time, and a zero enrichment budget starts no requests. |
| 776 | |
| 777 | GET worker launch failures no longer leave unknown API-spend records for requests that were never delivered. |
| 778 | |
| 779 | Doctor preserves completed Reddit HTTP 429 responses as unverified when the remaining probe budget cannot fit a retry. |
| 780 | - Fixed browser selections being lost after consented setup, including Chromium and services signed in through different browsers, so later research can reuse their sessions without saving cookie values. |
| 781 | Both onboarding flows now explain future browser reads before consent, possible repeated macOS Keychain prompts, and how to disable native browser and CDP access. |
| 782 | - Fixed the runtime preflight failing with "requires Python 3.12+" when `/last30days` is invoked in Claude Code with a multi-word topic: positional parameters in the `SKILL.md` preflight are now written as `${1}` / `$(2)`, which Claude Code's `$<digit>` argument substitution leaves alone. |
| 783 | - Fixed watchlist daily budgets to accumulate provider-reported OpenRouter and Perplexity USD charges, preserve spending after failed or timed-out runs, and stop subsequent topics when the budget is exhausted or paid usage has unknown cost. |
| 784 | - Fixed watchlist topic removal to preserve findings and run history shared with other topics. Topic lists, finding queries, trend counts, and briefings now include shared findings without double-counting repeated sightings, using each topic's first sighting for reporting windows. |
| 785 | - HTML export and optional publishing commands now locate the engine through the skill's established `SKILL_DIR`, including installation paths containing spaces. |
| 786 | - Honor configured memory directories in skill research, library, and topic-queue commands, preserve explicit empty values, fall through unresolved host placeholders to lower-priority configuration, and reuse the resolved directory throughout discovery. Only claim a saved artifact when the engine emitted its path. |
| 787 | - Honor the research end date in Bird X searches, including query retries, author timelines, and mentions, so newer posts cannot crowd out historical results. |
| 788 | - Honor the research plan's source selection for supplemental X handle searches and host-fetched X posts, preventing excluded X sources from returning evidence or making extra backend requests. |
| 789 | - Include the research persistence module in MCP bundles so enabling `LAST30DAYS_STORE` saves findings without failing before results are returned. |
| 790 | - Keep slash-containing research topics such as `CI/CD`, repository names, and URLs intact instead of launching unintended competitor comparisons. Preserve supported comparison forms, including `React/Vue/Svelte`, and slashes inside explicitly compared entities. |
| 791 | - MCP research tool now separates the topic from engine flags and no longer saves a report after an explicit decline. |
| 792 | - On POSIX systems, MCP timeouts now terminate descendant processes (X search, YouTube/transcript, Digg helpers) instead of leaving them orphaned and running after the engine is killed. Per-source timeouts also stop helpers whose parent exits before them. |
| 793 | - Paid Reddit search preserves the requested date range at every research depth, including historical windows. |
| 794 | - Preserve discovery sweep coverage warnings through saved nomination bundles, resumed research, and final reports, including empty results. Older nomination bundles continue to load. |
| 795 | - Preserve existing HTML briefs across repeated or concurrent exports, and publish a new local artifact only after rendering succeeds. |
| 796 | - Preserve job-board roles through author diversity filtering and calculate hiring signals from the complete accepted board, so ranking and display limits do not hide strategic roles or understate company size. |
| 797 | - Prevent competitor research from inheriting the main topic's resolved context when the competitor has no context of its own. |
| 798 | - Prevent concurrent MCP server startups from replacing a complete engine cache with a partial extraction. Each process now stages its own files, bounds publication-lock waits to five seconds, and safely reclaims staging files left by terminated extractors. |
| 799 | - Respect host, tool, and user citation requirements in research summaries while retaining the default footer and saved research appendix where compatible. |
| 800 | - Saving research preserves an existing watchlist topic's custom queries and schedule. |
| 801 | - Search-quality evaluations now reuse cached judgments only when the judge model and complete prompt match, so changed results, topics, or grading instructions receive fresh scores. Older caches are refreshed before reuse. |
| 802 | - The `serper` web backend no longer discards every recent result. Google renders a relative date ("2 hours ago", "1 day ago") for fresh results, which the date parser did not understand, so the in-range check dropped them — the newer the result, the more likely it was thrown away. On a one-day research window the web lane came back empty every time, reported as `Web: 0 items (no results)` rather than as a failure. Relative dates now resolve against the query date, which is what the label states an age relative to, so a `--as-of` search of a past window keeps the results that belong to it. A sub-day label is subtracted from the clock rather than rounded up to the current date, so shortly after midnight "23 hours ago" still names yesterday, and an age too large to represent reads as an unparseable date instead of aborting the rest of the results. The `brave` and `exa` backends were unaffected, since they return ISO timestamps. |
| 803 | - The changelog guard now compares files and lockstep versions from the same merge base resolved at job time. This avoids attributing base-branch releases to a pull request when its event contains an older base SHA or its branch has not yet incorporated the latest release. |
| 804 | - The fun judge now reads normalized comment excerpts and their vote counts from YouTube, TikTok, and Instagram, while preserving legacy comment bodies and comment insights. |
| 805 | - Tightened source failure classification: 429/5xx status matching no longer false-positives on embedded digits, the stream exception path keeps the most specific failure (auth over rate-limit), X URLs keep path/query case when deduping, and an unconfigured X backend reads as skipped rather than failed. |
| 806 | - `XAI_BASE_URL` and `OPENROUTER_BASE_URL` now also redirect the X search (`x_search`) and the OpenRouter Sonar fallback, not only the planner and rerank client, so a gateway or proxy sees every request that carries those keys. `--preflight` now lists `OPENROUTER_BASE_URL` among the active endpoint overrides. |
| 807 | |
| 808 | |
| 809 | ## [3.26.0] - 2026-10-01 |
| 810 | |
| 811 | ### Security |
| 812 | |
| 813 | - `--save-suffix` is sanitized to a path-safe token so traversal fragments cannot escape the save directory (including discover-mode saves). ([#736](https://github.com/mvanhorn/last30days-skill/issues/736)) |
| 814 | |
| 815 | ### Removed |
| 816 | |
| 817 | - Keyless Reddit discovery no longer uses Reddit RSS feeds, which Reddit shuts off on 2026-11-13. |
| 818 | |
| 819 | ### Added |
| 820 | |
| 821 | - Keyless Reddit discovery now uses Reddit's own site search, alongside subreddit listings, arctic-shift, and shreddit comments, so Reddit keeps working with no API key after the RSS shutdown. |
| 822 | - New `--perplexity-search-type fast|web` flag and `LAST30DAYS_PERPLEXITY_SEARCH_TYPE` setting choose the search type for direct Perplexity Search API and Agent `web_search` requests. They do not enable the Perplexity source and need a direct `PERPLEXITY_API_KEY`. Thanks to @sk-holmes (#1184). |
| 823 | - The local MCP server can now use an explicit `LAST30DAYS_PYTHON` interpreter and a default-deny, consent-gated `LAST30DAYS_MCP_ALLOW_BROWSER_COOKIES` switch, enabling reproducible Windows Claude Desktop deployments without weakening the existing cookie-access default. |
| 824 | |
| 825 | ### Changed |
| 826 | |
| 827 | - With `SCRAPECREATORS_API_KEY` set, Reddit now spends ScrapeCreators credits to backfill search whenever the free path returns fewer than 5 items, instead of only when it returns nothing. A run makes at most one ScrapeCreators Reddit backfill per distinct query, date window, and subreddit set, and each backfill is several API calls (searches plus comment fetches, roughly 10 at default depth). Set `LAST30DAYS_REDDIT_SC_MIN_ITEMS=0` to restore the old backfill-only-when-empty behavior. |
| 828 | |
| 829 | ### Fixed |
| 830 | |
| 831 | - `--perplexity-search-type` no longer moves hosted-backend runs to local research when no direct `PERPLEXITY_API_KEY` is configured, and an invalid `LAST30DAYS_PERPLEXITY_SEARCH_TYPE` value no longer blocks OpenRouter Sonar searches. ([#1188](https://github.com/mvanhorn/last30days-skill/issues/1188)) |
| 832 | - Reading an HTTP error response body now counts against the caller's deadline instead of stalling past it, and debug logs redact request API keys, including keys a provider echoes back in an error body. Thanks to @sk-holmes (#1184). |
| 833 | |
| 834 | |
| 835 | ## [3.25.0] - 2026-09-18 |
| 836 | |
| 837 | ### Security |
| 838 | |
| 839 | - Scraped titles can no longer forge the engine's own block sentinels. Titles are the full post body on X, TikTok, Instagram and LinkedIn and kept their internal newlines, so a short post could close the EVIDENCE FOR SYNTHESIS envelope early and open a block shaped like the PASS-THROUGH FOOTER, which LAW 5 tells the host model to relay verbatim. Titles are now collapsed to one line, and the sentinel markers are defanged in titles, in snippet/comment evidence, and in private-corpus titles, filenames and snippets — every path that renders inside the synthesis envelope. ([#1053](https://github.com/mvanhorn/last30days-skill/issues/1053)) |
| 840 | - Safari cookie extraction now matches the cookie host exactly or as a true subdomain, so a session cookie stored for an unrelated host such as `x.com.evil.tld` is no longer picked up for `x.com`. |
| 841 | - Scraped content can no longer close the `<untrusted_content>` fence that wraps it. A post title carrying the literal closing tag previously ended the block early, placing the rest of that title outside the fence in both the rerank judge prompt and the `--discover` host digest — the latter being the engine stdout that becomes the host agent's tool result. |
| 842 | - `--record-fixtures` no longer writes live credentials to disk. Fixture redaction is driven by key name, and the recognized set omitted `password`, `accessJwt`, and `refreshJwt` — so a Bluesky session exchange recorded the app password from the request body and both session JWTs from the response in cleartext, in a file created world-readable. The key set now covers those names, recorded files are created `0600`, and env-derived secret values are scrubbed from responses on this path as they already were for source records. |
| 843 | |
| 844 | ### Removed |
| 845 | |
| 846 | - The Claude Code and Grok plugin no longer installs a SessionStart hook. Welcome, source status, and the ScrapeCreators tip run only when `/last30days` is invoked (SKILL.md Step 0). `--preflight` remains as an opt-in permission inspector and MCP JSON contract; it is not a required first-run step. `LAST30DAYS_QUIET` is gone with the hook. The engine still creates `LAST30DAYS_MEMORY_DIR` on first save. |
| 847 | |
| 848 | ### Added |
| 849 | |
| 850 | - **Meta Ads source** — a new opt-in research lane that surfaces what a brand is *paying* to say this month, alongside what everyone else is saying about it. It resolves the brand's advertiser page in the Meta Ad Library, pulls the creatives that launched inside your 30-day window, and reads back the ad copy, launch date, placements, call to action, landing product, any promo code, and the spoken transcript of the newest video ads. The 📣 footer line names the advertiser page it resolved, so a wrong-company match is visible rather than silent, and reports how much the brand is still running from before the window. |
| 851 | |
| 852 | Paid message only, never audience reaction: Meta publishes reach and spend for political ads alone, so commercial creatives carry no engagement numbers. |
| 853 | |
| 854 | Off by default and never inferred from topic shape. Turn it on per run with `--search meta_ads` or durably with `INCLUDE_SOURCES=meta_ads`; it needs `SCRAPECREATORS_API_KEY`. A default-depth run spends at most 7 of the 10,000 free calls. Use `--meta-ads-page=<page_id>` when a brand advertises under product-line page names, and `LAST30DAYS_META_ADS_COUNTRY` for a non-US Ad Library. |
| 855 | |
| 856 | ### Fixed |
| 857 | |
| 858 | - ScrapeCreators GitHub device flow: `fetch_api_key` no longer collapses HTTP 5xx from `/v1/github/device/profile` into the already-linked "Authorized but failed to fetch API key" path. Server errors surface as `reason: upstream_error` with a distinct message (after bounded retries and a truncated body in the detail), and SKILL.md routes those failures to web signup/retry instead of "your GitHub is probably already linked." ([#882](https://github.com/mvanhorn/last30days-skill/issues/882)) |
| 859 | - Entity-miss demotion no longer goes inert on long topics without a distinctive named entity. Intent modifiers are stripped only as trailing suffixes, and generic-headed topics use stronger trailing anchors while broad words such as "code", "review", and "work" cannot ground a result by themselves. ([#887](https://github.com/mvanhorn/last30days-skill/issues/887)) |
| 860 | - The LinkedIn source now honors the requested date window instead of always querying a hardcoded `last-month` bucket, walks the response cursor instead of stopping after the first ~10 posts, and treats the endpoint's 404 as an empty result rather than an error, since 404 is how this API signals that a query matched no posts. Because results inside a bucket are relevance-ranked rather than recency-ranked, the search queries both the narrow and the covering bucket and unions them. A bucket that fails after another succeeded now returns `partial: True` with the first error rather than reading as a complete, low-volume result. ([#939](https://github.com/mvanhorn/last30days-skill/issues/939)) |
| 861 | - Adapter-valid arXiv papers are no longer dropped by the report date window during normalization. ([#946](https://github.com/mvanhorn/last30days-skill/issues/946)) |
| 862 | - GitHub search qualifiers wrapped in parentheses, quotes, or brackets (`(created:>2025-03-20)`, `"created:>2025-03-20"`) are now stripped from topics before the query is built, matching the plain-qualifier behavior. Previously a wrapped `created:` survived into the search, collided with the adapter's own `created:>{from_date}` window (GitHub honors the first), and the source silently reported zero results. Leftover empty wrapper pairs are removed too, so a wrapped qualifier-only topic still degrades to the no-search error instead of emitting stray characters. ([#952](https://github.com/mvanhorn/last30days-skill/issues/952)) |
| 863 | - Empty or qualifier-only GitHub topics now report no-results instead of marking the source as failed. ([#953](https://github.com/mvanhorn/last30days-skill/issues/953)) |
| 864 | - GitHub qualifier-only rejections now truncate the topic in error detail and logs so a long planner query cannot spam stderr, the error envelope, and doctor hints on every subquery. ([#954](https://github.com/mvanhorn/last30days-skill/issues/954)) |
| 865 | - `--diagnose` and doctor no longer report xurl as unauthenticated when credentials live in the current `~/.xurl/auth.yml` directory layout; the legacy flat `~/.xurl` file is still recognized. ([#978](https://github.com/mvanhorn/last30days-skill/issues/978)) |
| 866 | - Instagram creator reels now unwrap ScrapeCreators `media` envelopes before parsing, preserving their metadata and date filtering. ([#1017](https://github.com/mvanhorn/last30days-skill/issues/1017)) |
| 867 | - Grok X backend now requests `--output-format json` and parses the JSON array Grok CLI 1.0.5 actually emits, so searches no longer die as "no items parsed". `--json-schema` is still not passed. ([#1051](https://github.com/mvanhorn/last30days-skill/issues/1051)) |
| 868 | - A config value left as an unsubstituted `${user_config.*}` extension template is now treated as unset. `doctor` and `permission_preflight` report it as an unsubstituted template instead of a healthy credential, and backends fall back rather than sending the placeholder upstream. Previously the placeholder read as configured, so the diagnostics cleared a setup that could not work and the failure surfaced as a vendor auth error. (#1081) ([#1081](https://github.com/mvanhorn/last30days-skill/issues/1081)) |
| 869 | - A comparison run whose main topic fails now exits with an error instead of silently promoting a competitor to be the report's subject. `run_competitor_fanout` drops a failed sub-run, and the render treats the first surviving entry as the subject, so a main topic that raised while two or more peers succeeded produced a complete-looking comparison headed by a peer, saved under that peer's slug, with the requested topic unmentioned. Entities that were dropped are also recorded as a report warning, so a narrower comparison than requested is visible rather than silent. |
| 870 | - Add `mcp/manifest.json` to the lockstep version set so the `.mcpb` manifest is bumped by release prep and guarded against drift in feature PRs. |
| 871 | - Audio transcription posts the skill's canonical User-Agent instead of Python-urllib, so Groq's Cloudflare edge no longer 403s the request with error 1010. |
| 872 | - Reddit ranking no longer crashes with a `math domain error` when a downvoted post has a negative score; such posts now receive the minimum engagement bonus. |
| 873 | - The Grok CLI's stdout is now decoded as UTF-8 instead of the OS locale codec. On Windows (cp1252), an emoji or smart quote in an X post's text crashed the decode inside `subprocess.run`, which surfaced as "no items parsed" from the `grok` X backend rather than a real error. |
| 874 | - Trailing `# comment` annotations on unquoted `.env` values (the shape shown in `CONFIGURATION.md`) are now stripped instead of being stored as part of the value; `#` inside quotes or glued to the value stays literal. |
| 875 | - `HERMES_SETUP.md` now documents the working Hermes install path: the `hermes skills install … --force` command is blocked by Hermes's install-time scanner (a `dangerous` verdict that `--force` cannot override), so the guide uses `git clone` + `cp` into the skills directory instead, and the update steps match. |
| 876 | - `OPENAI_BASE_URL`, `XAI_BASE_URL`, and `OPENROUTER_BASE_URL` now accept an API root (`https://host/v1`) in addition to a full endpoint URL. Values copied from a provider's setup guide previously POSTed to the API root and failed. |
| 877 | - `doctor` no longer reports a rate-limited source as an outage. A probe refused with HTTP 429 is retried once and, if still refused, shown as unverified instead of `NOT WORKING`. Reddit was the visible case: a burst of keyless probes draws a 429 while the research lane, which retries with backoff, serves the same query fine. HTTP 403 still counts as a hard failure. |
| 878 | - `verify_v3.py` now runs the unit stage with pytest, so pytest-style test files (previously skipped by `unittest discover`) are verified. |
| 879 | |
| 880 | |
| 881 | ## [3.24.0] - 2026-09-09 |
| 882 | |
| 883 | ### Added |
| 884 | |
| 885 | - New `xapi` X backend: the official X API v2 with an app-only `X_BEARER_TOKEN`, trying full-archive search first and falling back to recent search (about the last seven days, reported as "window truncated to 7 days"), serving the topic lane and the from/mention/related handle lanes; it is the first rung on Grok Bot and opt-in elsewhere (`LAST30DAYS_X_BACKEND=xapi`). New `--x-posts <path>` flag ingests a `last30days-x-posts/1` envelope of posts the hosting model fetched through its X connector (per-entity `x_posts` in `--competitors-plan`), and `LAST30DAYS_X_HOST_LANE=1` marks X as available for planning while a connector is in the session. New `setup --store-key <NAME>` persists one credential from stdin without echoing it. New `payment-required` source outcome, exported under agent JSON schema `1.3`. |
| 886 | |
| 887 | ### Changed |
| 888 | |
| 889 | - On a Grok Bot host (`LAST30DAYS_HOST=grok-bot`) X search now runs through the bot's X connector first, with the official X API (`X_BEARER_TOKEN`) and xAI's licensed X search (`XAI_API_KEY`) as backups; onboarding, doctor, and repair hints there name only those paths. Credit-exhaustion responses from any source (HTTP 402 or an explicit "insufficient credits" message) now classify as the `payment-required` outcome instead of `error` or `auth-failed`, and `LAST30DAYS_STRICT_EXIT` treats it as degraded (exit `3`). |
| 890 | |
| 891 | |
| 892 | ## [3.23.1] - 2026-09-08 |
| 893 | |
| 894 | ### Security |
| 895 | |
| 896 | - Drop Authorization, x-api-key, x-csrf-token, and x-subscription-token when urllib follows a 3xx that changes scheme or host (stdlib otherwise copies them). ([#1062](https://github.com/mvanhorn/last30days-skill/issues/1062)) |
| 897 | - Require an absolute path for automatically discovered MCP Python interpreters, |
| 898 | including when Go's built-in relative-path protection is explicitly disabled. |
| 899 | Explicit interpreter overrides retain their existing behavior. ([#1109](https://github.com/mvanhorn/last30days-skill/issues/1109)) |
| 900 | - Keychain setup and listing now check existence without requesting plaintext passwords, and count existing entries by exit status. Selectively retains the safe presence-check changes from #1061; the existing credential writer is unchanged and its command-line exposure remains a separate follow-up. |
| 901 | |
| 902 | ### Fixed |
| 903 | |
| 904 | - Operator-supplied `--plan` now keeps each subquery's `sources` instead of silently replacing them with the full available list. Unavailable-only subqueries are visibly skipped; if none remain, the run fails before retrieval with configuration guidance. Engine-internal LLM plans retain their fallback and expansion behavior. ([#1073](https://github.com/mvanhorn/last30days-skill/issues/1073)) |
| 905 | - SessionStart hook must use the bare ${CLAUDE_PLUGIN_ROOT} form so Claude Code's |
| 906 | missing-plugin-root guard can match it. A default of `.` resolves relative to the |
| 907 | session cwd and can execute a decoy check-config.sh from the user's project. ([#1074](https://github.com/mvanhorn/last30days-skill/issues/1074)) |
| 908 | - Grok Bot / Cursor agent chat is now a hidden-link citation host: LAW 8 detects it via `CURSOR_AGENT` (alongside `CLAUDECODE` for Claude Code) and inline-links every cited r/sub, u/name comment author, @handle, GitHub repo, and creator with URLs copied verbatim from the engine evidence. Codex, Gemini CLI, and raw CLI keep the plain-label regime, so no URL soup returns. ([#1095](https://github.com/mvanhorn/last30days-skill/issues/1095)) |
| 909 | - Documented that the SessionStart config hook ships only with the Claude Code plugin install; on npx and other hookless installs there is no hook and the engine creates the memory directory itself on first save. ([#1100](https://github.com/mvanhorn/last30days-skill/issues/1100)) |
| 910 | - Posts fetched via `--ig-creators` or TikTok `--creators` now reach the report: named creator accounts count as first-party provenance in the relevance prune, scoped to each flag's own platform so a same-name account elsewhere still faces the floor, and prune drops are logged per stream with the dropped count and floor. ([#1101](https://github.com/mvanhorn/last30days-skill/issues/1101)) |
| 911 | - Corrected the stated LAW count in the SKILL.md formatting-authority note to match the eleven LAWs defined below it. ([#1102](https://github.com/mvanhorn/last30days-skill/issues/1102)) |
| 912 | - Use Bluesky refresh tokens to recover expired search sessions before falling back to a new login, while keeping unauthorized retries bounded. ([#1065](https://github.com/mvanhorn/last30days-skill/pull/1065)) |
| 913 | |
| 914 | |
| 915 | ## [3.23.0] - 2026-09-01 |
| 916 | |
| 917 | ### Added |
| 918 | |
| 919 | - On Linux and Mac mini hosts (and any host that sets `AGENTCOOKIE=on`), X search can now hand Bird a complete `auth_token`+`ct0` pair from two additional sources: the `agentcookie` sidecar CLI and a live signed-in Chrome/Chromium session read over the DevTools Protocol (`Network.getAllCookies`). The first complete pair wins, cookies are never written to the `.env` or logged, and a Node `--inspect` endpoint is never mistaken for Chrome. A MacBook is unchanged — it uses only the existing browser-cookie extract unless `AGENTCOOKIE=on`. The X backend chain and grok's pin-only status are unchanged from `main`. |
| 920 | |
| 921 | ### Fixed |
| 922 | |
| 923 | - Stop listing SCRAPECREATORS_API_KEY as an X backend; the engine has no ScrapeCreators X path (`_X_BACKEND_ORDER` is bird/xai/xurl/xquik). ([#942](https://github.com/mvanhorn/last30days-skill/issues/942)) |
| 924 | - Keep YouTube videos that already had transcripts fetched when the hard date window would otherwise empty the source (#1043). Search already kept out-of-window results when fewer than 3 were recent. ([#1043](https://github.com/mvanhorn/last30days-skill/issues/1043)) |
| 925 | - `tests/test_footer_nudge_suppression.py::test_bare_run_emits_web_promo` failed on macOS for contributors with a `last30days-BRAVE_API_KEY` Keychain item, while passing in Linux CI. The test sealed two credential sources — it stripped the paid web keys from `os.environ` and set `LAST30DAYS_CONFIG_DIR=""` — but macOS Keychain is a third, independent source, so `BRAVE_API_KEY` was still resolved, `native_web_backend` was set, `_missing_sources_for_promo()` returned `None`, and the asserted `BRAVE_API_KEY` nudge was never printed. `_load_keychain()` gains a `LAST30DAYS_SKIP_KEYCHAIN` opt-out (process-environment only, since it gates a source consulted while the config is assembled), and the test now sets it. Engine behaviour is unchanged when the switch is unset. ([#1050](https://github.com/mvanhorn/last30days-skill/issues/1050)) |
| 926 | - Pass `player_client=android` to yt-dlp (overridable via `LAST30DAYS_YT_PLAYER_CLIENT`) so search, transcripts, and comments can clear the web bot-gate without spending ScrapeCreators credits. ([#1052](https://github.com/mvanhorn/last30days-skill/issues/1052)) |
| 927 | - The vendored X-search subprocess no longer receives a copy of the full environment: `bird_x` now passes only the variables the client actually reads (runtime vars, X session cookies, `BIRD_*` flags, injected credentials), so unrelated ambient API keys and tokens cannot reach scan-excluded vendored code ([#1063](https://github.com/mvanhorn/last30days-skill/issues/1063)). ([#1063](https://github.com/mvanhorn/last30days-skill/issues/1063)) |
| 928 | - Windows Firefox `FROM_BROWSER` X auth no longer dies on a UTF-16 `profiles.ini` (`UnicodeDecodeError` used to skip the fallback and kill the only keyless X route). ([#1067](https://github.com/mvanhorn/last30days-skill/issues/1067)) |
| 929 | - Declining or skipping X/browser-cookie access now continues the requested research with available sources, and reports X only as an optional omission after useful results. |
| 930 | |
| 931 | |
| 932 | ## [3.22.0] - 2026-08-31 |
| 933 | |
| 934 | ### Added |
| 935 | |
| 936 | - Telegram public channel source: opt-in via `--telegram-sources=handle1,handle2` or `TELEGRAM_SOURCES` + `INCLUDE_SOURCES=telegram`. Named public channels only (no keyword discovery); fetches recent posts via ScrapeCreators API and scores by views, reactions, and topic relevance. ([#990](https://github.com/mvanhorn/last30days-skill/issues/990)) |
| 937 | - Add an explicit `--web-backend=parallel-mcp` option for anonymous hosted Parallel web search. |
| 938 | - Reddit threads with the most upvotes and comments now keep their place: each Reddit stream holds slots for its top three on-topic threads by engagement before per-stream truncation, and the fused candidate pool reserves slots (quick 2, default 3, deep 4) for the highest-engagement entity-grounded Reddit candidates. A 16K-upvote thread with weak title overlap was previously cut behind one-upvote posts. Topics whose primary entity starts with a generic word ("ai", "new") require the higher 0.25 relevance floor for these slots. |
| 939 | |
| 940 | ### Changed |
| 941 | |
| 942 | - Keyless Reddit comment enrichment now covers 4 / 8 / 12 threads per subquery at quick / default / deep depth (was 3 / 5 / 8) and keeps up to 12 top comments per thread (was 10), now that repeat fetches are memoized and paced. |
| 943 | - The emoji-tree footer no longer appends `⚠ partial after N items: HTTP 429 ... (run doctor for fixes)` outcome text to any source line; source lines carry counts and engagement only. `--emit=compact` stdout also drops the `Some sources failed` / `Some sources returned partial results` warning lines and the `## Source Errors` block. The model-facing `## Partial Coverage` note stays, and the saved raw file, `--emit=json`, and `doctor --postmortem` keep full `source_status`, `warnings`, and `errors_by_source`. |
| 944 | |
| 945 | ### Fixed |
| 946 | |
| 947 | - Keyless Reddit comment-enrichment slots now go to the most-commented threads within each entity-priority tier, so a high-discussion thread no longer misses `## Top Community Comments` coverage while near-empty threads consume the scarce slots. ([#906](https://github.com/mvanhorn/last30days-skill/issues/906)) |
| 948 | - Keyless Reddit now paces unauthenticated reddit.com requests at 1 req/sec (configurable via `LAST30DAYS_REDDIT_KEYLESS_RATE`) and retries a 429'd RSS or listing sub-request once, so routine runs no longer drop those lanes as `partial` HTTP 429. ([#985](https://github.com/mvanhorn/last30days-skill/issues/985)) |
| 949 | - A source that delivered items but lost some sub-requests (a swallowed 429 or 403 on one lane) now records `ok` with a detail line such as `3 sub-requests rate-limited (HTTP 429)` instead of `partial`; `doctor --postmortem` shows that detail on the Succeeded line. Adapter-declared leg failures (for example a Perplexity `both` run whose agent leg failed) still brand the source partial. |
| 950 | - Fusion and report finalize now identify a thread by its normalized URL, not its per-stream item id. When the same Reddit thread arrives from two subquery streams (both labelled `R1`), the candidate keeps the copy that carries `top_comments`, `comment_insights`, and the verified counts instead of discarding it as a duplicate, and `items_by_source` holds one entry per thread. This is what silently emptied `## Top Community Comments` on multi-subquery runs. |
| 951 | - Keyless Reddit GETs are memoized for the life of one command, and concurrent requesters for the same URL share the in-flight fetch. Subreddit listing partials, listing RSS feeds, arctic supplements, and shreddit comment pages were fetched once per subquery (four times on a typical run) because the Reddit lane is dispatched with the raw topic every time; a four-subquery run now issues roughly 50 reddit.com requests instead of ~184, which is what kept tripping the anonymous rate limit. |
| 952 | - Keyless Reddit RSS and listing fetches now size their per-future timeouts from the shared bucket's queue depth instead of a fixed 20 seconds. At 1 req/s with four subquery streams sharing the bucket, the fixed timeout expired while a fetch was still waiting for its token and the feed was silently dropped. |
| 953 | - Keyless Reddit comment scraping now drops bot authors (RemindMeBot, AutoModerator, `WikiTextBot`-style camelCase names, and `-bot`/`_bot` suffixed accounts), so a "I will be messaging you in 3 days" reply can no longer occupy a Top Community Comments slot. Ordinary usernames ending in a lowercase "bot" (Talbot, abbot) are unaffected. Cherry-picked from [#1034](https://github.com/mvanhorn/last30days-skill/pull/1034) (rebase of [#907](https://github.com/mvanhorn/last30days-skill/pull/907)). |
| 954 | - Rate-limit retries are bounded: a `Retry-After` / `x-ratelimit-reset` wait is capped at 60 seconds and an epoch-style reset (GitHub) is converted to a delta, so a 429 can no longer park a worker or the main thread for minutes. The keyless Reddit memo elects one new owner when an in-flight fetch fails instead of letting every waiter refetch, its gate wait and the comment-enrichment budget account for the shared bucket's queue, the Reddit pool reservation survives a small pool crowded by many sources, stream keepers respect `--max-per-source`, a source whose swallowed sub-requests all 429ed is not retried against the same host and is reported as rate-limited rather than `no-results` when filtering leaves it empty. |
| 955 | - Reddit 429 backoff now honours `x-ratelimit-reset`, not just `Retry-After`. Reddit's anonymous search/RSS endpoints reply to a 429 with `x-ratelimit-reset: 42` and no `Retry-After`, so the retry fell through to exponential backoff (3s, 5s, 9s) — every step shorter than the window Reddit actually requires. Each retry re-429'd, the budget drained, and Reddit was reported as a dead source when it was only being asked too early. Both `http.fetch_url` and `reddit_public` now read either header through the new `http.retry_delay_from_headers` helper. |
| 956 | - Sources that return items are no longer branded `auth-failed` / `partial` when a swallowed lane-level HTTP failure (e.g. Reddit shreddit partials 403-ing on datacenter egress) is captured by the pipeline sink. The transport-failure outcome still surfaces when nothing was delivered, so `doctor` prescriptions are unaffected. |
| 957 | - `## Top Community Comments` and `## Best Takes` now draw from every cluster that clears the relevance floor, not only the eight clusters shown in `## Ranked Evidence Clusters`, so a top-voted comment on a lower-ranked thread still reaches the brief. |
| 958 | |
| 959 | |
| 960 | ## [3.21.1] - 2026-08-18 |
| 961 | |
| 962 | ### Changed |
| 963 | |
| 964 | - Direct Perplexity keys now use the Agent API for controlled synthesis and explicit Deep Research. Controlled synthesis forces grounded web search and supports explicit Anthropic Agent models with a bounded output budget, while Deep Research starts at most one paid background run per command and preserves safe polling and incomplete-run receipts. Existing OpenRouter-only installs keep the synchronous Sonar and Sonar Deep Research fallbacks. |
| 965 | |
| 966 | |
| 967 | ## [3.21.0] - 2026-08-14 |
| 968 | |
| 969 | ### Changed |
| 970 | |
| 971 | - X backend priority changed: bird (browser cookies) is now first in the auto chain, ahead of xai/xurl/xquik. Cookies beat XAI_API_KEY when both are present. Grok CLI is demoted to opt-in only: a leftover `~/.grok/auth.json` no longer steals the X lane. Pin `LAST30DAYS_X_BACKEND=grok` to enable it explicitly. |
| 972 | |
| 973 | |
| 974 | ## [3.20.0] - 2026-08-14 |
| 975 | |
| 976 | ### Added |
| 977 | |
| 978 | - X search now judges corpus on-topic ratio and retries once with a wider AND query when the initial results are mostly off-topic (e.g., phrase-quoted "Rome Italy" returning AS Roma sports accounts). Multi-word search queries use unquoted AND as the primary variant instead of phrase-quoting. Handles extracted from entity_extract are now filtered for the from: lane based on whether their already-retrieved posts are on-topic (≥2 on-topic hits and ≥50% ratio), not just frequency. Extracted handles that qualify for the from: lane AND the topic into the query (`from:handle Rome`) to prevent off-topic timelines from filling the X budget. Explicit --x-handle and --x-related handles always get the from: lane without ANDing the topic. Source status reflects off-topic floods as a warning artifact, not a failure. First-party floor immunity remains conservative (explicit handles only, not promoted commentators). |
| 979 | |
| 980 | ### Fixed |
| 981 | |
| 982 | - Amazon review enrichment now starts at search time instead of after all other sources finish, ensuring multi-source runs have a useful budget (up to 180s) rather than leftover crumbs. Previously, a run that spent 269s on retrieval would leave only 11s for reviews, causing all Bright Data pulls to time out. Budgets below 90s now skip the lane entirely instead of firing doomed short pulls that spend credits without returning reviews. |
| 983 | - Grok session expiry is now detected locally by parsing `expires_at` from `~/.grok/auth.json`. Doctor reports expired sessions as **degraded** (not ok) with the expiry timestamp and a hint to run `grok login --device-auth` if refresh fails. Research-time availability still attempts grok when credentials exist (expired access_token does not prove the refresh_token is dead). When the Grok CLI returns "Not signed in" or `invalid_grant` mid-run, the pipeline now reports `auth-failed` with a proper fix hint instead of a generic PARTIAL outcome, and falls back to the next X backend. |
| 984 | |
| 985 | |
| 986 | ## [3.19.0] - 2026-08-14 |
| 987 | |
| 988 | ### Security |
| 989 | |
| 990 | - Source URLs containing unsafe schemes or Markdown delimiters are now rendered as inert escaped text instead of raw Markdown. ([#886](https://github.com/mvanhorn/last30days-skill/issues/886)) |
| 991 | - SessionStart `check-config.sh` now rejects non-identifier `.env` keys before `printf -v` (blocking array-subscript command substitution) and loads `.claude/last30days.env` only when `LAST30DAYS_TRUST_PROJECT_CONFIG` is set in the process environment or global config, matching `lib/env.py`. |
| 992 | |
| 993 | ### Added |
| 994 | |
| 995 | - **Amazon buyer signals** — a new opt-in `amazon` source, backed by the Bright Data CLI. On shopping-intent topics it pulls discovered products with live ratings and prices, plus a capped sample of recent written reviews woven in as buyer voice. |
| 996 | |
| 997 | The signal it exists for is *drift*: an all-time rating from thousands of ratings set against the average of only the reviews inside the last 30 days. When those disagree, something changed this month, and the review text says what. The emoji footer names each product and the direction it moved — `📦 Amazon: 3 products │ Chill Max XL 4.4★→3.8★ ↓, Deluxe Bag 4.7★→5.0★, BLUEY Set 4.8★ new` — rather than reporting inventory counts. |
| 998 | |
| 999 | Off by default and dual-gated: the `brightdata` CLI must be on PATH and logged in, *and* the run must ask for the source (`--search ...,amazon` or `INCLUDE_SOURCES=amazon`). It never auto-fires from inferred intent. Use `--amazon-query` when the product keyword differs from the topic — a person topic searches their company's product line, not their name. `LAST30DAYS_AMAZON_DOMAIN` selects a non-US marketplace. |
| 1000 | |
| 1001 | Billing is one credit per request against a 5,000/month free tier, so a typical run costs 4 credits regardless of how many reviews come back. |
| 1002 | - Reddit keyless discovery now falls back to the arctic-shift archive when the shreddit listing partials return nothing — hosts on datacenter egress (where Reddit 403s `/svc/shreddit`) keep scored Reddit discovery, score backfill, and discover-mode listings instead of reporting `auth-failed`. |
| 1003 | - X search now works with no X credential at all. Install the Grok CLI (`curl -fsSL https://x.ai/cli/install.sh | bash`, then `grok login`) and last30days reaches X with no X account, no browser cookies, and no `XAI_API_KEY` — on any host, including Claude Code, Codex, Cursor and GrokBot. It sits ahead of the browser-cookie path by default; pin `LAST30DAYS_X_BACKEND=bird` to keep cookies. Covers three lanes for a person or company topic: posts by the subject, posts @-mentioning them, and posts naming them in plain text (which is most of the discussion, and which a mention-only search misses). |
| 1004 | |
| 1005 | ### Fixed |
| 1006 | |
| 1007 | - Source URLs in the saved raw report and internal evidence output now render as clickable markdown links instead of plain text. ([#886](https://github.com/mvanhorn/last30days-skill/issues/886)) |
| 1008 | - Hacker News comments no longer vanish from every per-source path. HN comments arrive as `{author, text, points}` while downstream readers key on `score`/`excerpt`, and `_normalize_hackernews` stored them raw, so `render._top_comments_list` filtered `(c.get("score") or 0) >= 5` against a key that was never present and rejected the entire source. HN comments are now remapped like the YouTube and TikTok ones, and the HN floor is 0 because the Algolia API returns `points: null` for every comment child, which makes any positive threshold unmeetable. A comment with no vote signal renders without a fabricated "(0 points)". ([#889](https://github.com/mvanhorn/last30days-skill/issues/889)) |
| 1009 | - Polymarket topics spelled out in full ("artificial general intelligence") now match markets titled in shorthand ("AGI by 2030?"). Previously the topic filter and the relevance floor both compared full words against an acronym, so every on-topic market was dropped and the run reported zero results — indistinguishable from the source genuinely having none. ([#891](https://github.com/mvanhorn/last30days-skill/issues/891)) |
| 1010 | - Reddit HTTP 429/403 on the keyless lanes is no longer reported as a clean `no-results`: the failure now survives the worker-thread hop into the run outcome, so `source_status` carries `rate-limited`/`auth-failed` with the status in `detail` and `doctor --postmortem` lists Reddit under Failed instead of "No failures on the last run." `doctor --probe` now checks the RSS endpoint the engine actually uses (the old `/r/all/hot.json` probe is permanently 403 keyless) and counts a 403/429 there as blocked rather than reachable. Under `LAST30DAYS_STRICT_EXIT` a blocked Reddit run now exits 3 instead of 0. ([#899](https://github.com/mvanhorn/last30days-skill/issues/899)) |
| 1011 | - On Windows, the setup wizard's npx-based installs (Digg, arXiv, Techmeme) always failed silently because `shutil.which("npx")` resolves `PATHEXT` but `subprocess.run` given the bare string `"npx"` does not. Windows users also got macOS-only Homebrew guidance when yt-dlp was missing. Both are fixed: the resolved npx path is now passed through, and Windows gets `pip install yt-dlp` guidance instead. ([#904](https://github.com/mvanhorn/last30days-skill/issues/904)) |
| 1012 | - `--web-backend=keyless` is now accepted by the CLI, matching what `CONFIGURATION.md` already documented. The keyless web-search floor was already fully supported internally; only the argument parser rejected the value. ([#905](https://github.com/mvanhorn/last30days-skill/issues/905)) |
| 1013 | - arXiv no longer returns zero results for natural-language multi-word topics. The exact-phrase quoted query now retries unquoted once when it matches nothing, instead of silently dropping arXiv from the report. ([#908](https://github.com/mvanhorn/last30days-skill/issues/908)) |
| 1014 | - Truth Social search no longer fails with a Cloudflare-triggered HTTP 403 on every request. Requests now send browser-like headers, the same fix already applied to Reddit. ([#909](https://github.com/mvanhorn/last30days-skill/issues/909)) |
| 1015 | - `--emit=compact --save-dir` runs now save the complete debug artifact (all clusters plus every per-source item, with the emoji footer citing the actual written path) instead of the compact stdout render, which had made most collected evidence unrecoverable from the raw file. ([#923](https://github.com/mvanhorn/last30days-skill/issues/923)) |
| 1016 | - The GitHub source no longer reports zero results when the planner writes search qualifiers into the topic (e.g. `open source AI stars:>1000 created:>2025-03-20`). `search_github` appends its own `created:>{from_date}` window, and two `created:` qualifiers collide: GitHub honors the first and ignores the appended window, so out-of-window items are fetched and then dropped wholesale by the local date filter, surfacing as a silent `no-results`. Qualifiers are now stripped from the topic before the query is built (including comma/semicolon-glued forms and quoted values such as `label:"bug fix"`), topic terms glued after a qualifier value are preserved, and a qualifier-only topic reports an explicit error instead of searching the whole site. ([#949](https://github.com/mvanhorn/last30days-skill/issues/949)) |
| 1017 | - The GitHub source no longer returns zero results once a credential is available. GitHub rejects authenticated `/search/issues` requests that carry neither `is:issue` nor `is:pull-request` with HTTP 422, while anonymous requests are still accepted without one — so the source worked until a user ran `gh auth login` or set `GITHUB_TOKEN`, then failed silently while `doctor` still reported it healthy. Authenticated searches now run both qualifier-scoped queries and merge them, deduped by item id and re-sorted by reaction count, which keeps issues and pull requests in the same result set; appending a single qualifier would have dropped roughly 87% of matches on a typical topic. The unauthenticated path is unchanged. When one partition fails but the other returns items, the surviving items are now kept and the source is reported as partial rather than silently claiming success — full-failure (both partitions return nothing) is still a clear failure. ([#967](https://github.com/mvanhorn/last30days-skill/issues/967)) |
| 1018 | - Out-of-window evidence no longer leads the ranked output. Items whose dates fall outside the run's window were flagged `[date:low]` but ranked normally, so a 2025-10 video took the #1 cluster in a 2026-07 brief and a 2025-12 one took #5. Candidates whose every dated item is out of window are now demoted in both the fusion sort and `_final_score`, so they still appear as evidence but never above in-window material; items with no date at all are untouched, since an unknown date is a coverage gap rather than a stale item. The freshness verdict ("only N of M dated items are from the last 7 days") also reaches the pass-through footer instead of only the report body. |
| 1019 | - X runs on a person or company no longer discard the subject's own posts. A post almost never contains its own author's name, so lexical relevance scored it at zero and the retrieval floor pruned it — a run for "Peter Steinberger steipete" fetched 8 posts by him and reported none of them. Fixed across the chain: planner scaffolding words no longer count as topic signal, posts by a handle the run is searching are exempt from the floor, auto-discovered handles now reach the first-party protections (previously only `--x-handle` did), quoted proper-noun phrases survive into the provider query instead of degrading into a token conjunction, and the subject of the topic gets a higher per-author cap than incidental accounts. When no real handle can be identified at all, the X floor is skipped rather than pruning against lexical name tokens. The thin-source retry path defers the X floor the same way Phase 1 does, so a subject-authored post recovered on retry is not discarded before handle resolution. |
| 1020 | - `--github-user` no longer returns unrelated repos for people whose PR search comes back empty or is unavailable. Person mode now falls back to the selected user's public GitHub events and returns only in-window `PushEvent` activity attributed to that actor, instead of treating repository-level `pushed_at` as proof that the selected user pushed. A pinned `--github-user` that still yields nothing is recorded as `no-results` instead of passing silently. |
| 1021 | |
| 1022 | |
| 1023 | ## [3.18.4] - 2026-07-28 |
| 1024 | |
| 1025 | ### Fixed |
| 1026 | |
| 1027 | - Tag release workflow YAML now parses on every main push; merge commits can mint `vX.Y.Z` tags again. ([#880](https://github.com/mvanhorn/last30days-skill/issues/880)) |
| 1028 | - YouTube yt-dlp search under comparison-mode fan-out no longer self-throttles into 120s timeouts: concurrent yt-dlp invocations are process-wide capped, identical searches are deduped within a run, and a search timeout is recorded as `timeout` rather than `no-results`. `LAST30DAYS_YT_SEARCH_TIMEOUT` configures the search deadline. |
| 1029 | |
| 1030 | |
| 1031 | ## [3.18.3] - 2026-07-25 |
| 1032 | |
| 1033 | ### Fixed |
| 1034 | |
| 1035 | - Top Community Comments ranking blends thread relevance with vote strength and applies the relevance floor only when enough on-topic candidates exist. ([#701](https://github.com/mvanhorn/last30days-skill/issues/701)) |
| 1036 | - Chromium cookie extraction now searches every browser profile for a matching cookie set, and reuses the Keychain/AES key across profiles in one scan. ([#725](https://github.com/mvanhorn/last30days-skill/issues/725)) |
| 1037 | - Synthesis contract is echoed at the top of the evidence envelope so hosts that truncate stdout still see the "synthesize, don't dump" directive. ([#727](https://github.com/mvanhorn/last30days-skill/issues/727)) |
| 1038 | - `store_findings` no longer raises `TypeError` when a re-sighted finding carries `engagement_score: None`. ([#796](https://github.com/mvanhorn/last30days-skill/issues/796)) |
| 1039 | - Explicit --plan payloads with an invalid schema now exit with a field-specific error instead of silently running a deterministic plan. ([#841](https://github.com/mvanhorn/last30days-skill/issues/841)) |
| 1040 | - Company-topic runs no longer auto-add the `jobs` source when an explicit `--search` / `requested_sources` filter is set; `--hiring-signals` still forces jobs. ([#842](https://github.com/mvanhorn/last30days-skill/issues/842)) |
| 1041 | - Report footer path now matches the collision-safe path actually reserved by save_output. ([#850](https://github.com/mvanhorn/last30days-skill/issues/850)) |
| 1042 | - YouTube ScrapeCreators transcript rescue is logged instead of being masked as a hard failure. ([#851](https://github.com/mvanhorn/last30days-skill/issues/851)) |
| 1043 | - Polymarket domain-sweep topics no longer drop every market after noise-word stripping removes terms like "ai". ([#859](https://github.com/mvanhorn/last30days-skill/issues/859)) |
| 1044 | - Reddit fetch windows now track the requested date range so short `--days` runs no longer pull a depth-default month and discard everything outside the window. ([#860](https://github.com/mvanhorn/last30days-skill/issues/860)) |
| 1045 | |
| 1046 | |
| 1047 | ## [3.18.2] - 2026-07-25 |
| 1048 | |
| 1049 | ### Added |
| 1050 | |
| 1051 | - Release preparation now builds CHANGELOG.md from changelog.d fragments via towncrier and bumps every plugin/marketplace lockstep version surface through an automated Prepare release workflow (no more shared Unreleased edits). |
| 1052 | |
| 1053 | ### Fixed |
| 1054 | |
| 1055 | - `--trustpilot-domain` (and plan-level `trustpilot_domain`) now auto-activates the opt-in Trustpilot source for the run instead of silently no-oping when `INCLUDE_SOURCES` / `--search` omit it. ([#873](https://github.com/mvanhorn/last30days-skill/issues/873)) |
| 1056 | - Scraped evidence text can no longer inject structural `##` markdown headings into the EVIDENCE FOR SYNTHESIS block — continuation lines stay indented and leading ATX markers are escaped. ([#874](https://github.com/mvanhorn/last30days-skill/issues/874)) |
| 1057 | |
| 1058 | |
| 1059 | ## [3.18.1] - 2026-07-24 |
| 1060 | |
| 1061 | ### Fixed |
| 1062 | |
| 1063 | - General reports no longer promote unanchored fallback entity misses, zero-score clusters, or comments attached only to rejected evidence into synthesis. ([#863](https://github.com/mvanhorn/last30days-skill/pull/863)) |
| 1064 | - YouTube transcript fetches now reuse a completed VTT left on disk when yt-dlp times out, honor `.env` values for caption languages, and allow keyed runs to tune the 12-second fast-fail timeout. ([#864](https://github.com/mvanhorn/last30days-skill/pull/864)) |
| 1065 | - Comparison / vs-mode no longer silently drops entities beyond 4. Entity ceiling is now `COMPETITORS_MAX + 1` (7), truncation warns on stderr naming dropped entities, and `--competitors-plan` implies competitor mode so a vs-topic + plan keeps all named peers (plan remains targeting-only; discover-N via bare `--competitors` is unchanged) ([#868](https://github.com/mvanhorn/last30days-skill/issues/868), [#870](https://github.com/mvanhorn/last30days-skill/pull/870)). |
| 1066 | - Docs now match Reddit ScrapeCreators search backup semantics: empty-only by default (not "when public Reddit is unavailable" / rate-limited). `CONFIGURATION.md` documents `LAST30DAYS_REDDIT_SC_MIN_ITEMS`; `SKILL.md` Security, Manual setup, NUX, and the Reddit backend pin describe the real empty-path / thinness-floor / SC-primary knobs. NUX Step 4/5 no longer claim SC Reddit comment enrichment or `public + ScrapeCreators` merge on the default free path (comments stay keyless via shreddit) ([#867](https://github.com/mvanhorn/last30days-skill/issues/867), [#869](https://github.com/mvanhorn/last30days-skill/pull/869)). |
| 1067 | - X search via xurl pins app-only bearer auth so OAuth1-signed multi-word queries no longer 401. ([#855](https://github.com/mvanhorn/last30days-skill/pull/855)) |
| 1068 | - Bird X retries normalize cleanly and empty result sets stay empty instead of erroring. ([#840](https://github.com/mvanhorn/last30days-skill/pull/840)) |
| 1069 | |
| 1070 | ## [3.18.0] - 2026-07-21 |
| 1071 | |
| 1072 | ### Changed |
| 1073 | |
| 1074 | - Discovery is now a three-command host-judged protocol (SKILL.md LAW 11: "YOU ARE THE JUDGE"): `--discover --nominate-only` writes a nominations bundle and a fenced judging digest, the hosting model writes a judgments file (short names, junk flags, worthiness) and later an angles file, and `--discover --judgments <file>` / `--discover --finalize [--angles <file>]` complete the run. No API key is ever needed for host-judged trending. ([#856](https://github.com/mvanhorn/last30days-skill/pull/856)) |
| 1075 | - Discovery protocol runs enrich at the normal-research tier (default depth, 4 workers, `LAST30DAYS_ENRICH_BUDGET_SECONDS` default 450s) instead of the 240s quick sweep; one-shot `--discover` keeps the quick tier unchanged. ([#856](https://github.com/mvanhorn/last30days-skill/pull/856)) |
| 1076 | - Displayed discovery ranks now descend by the card's velocity score, and survivors sharing evidence (same top comment or 2+ shared URLs) fold into the higher-velocity story. ([#856](https://github.com/mvanhorn/last30days-skill/pull/856)) |
| 1077 | |
| 1078 | ### Removed |
| 1079 | |
| 1080 | - The engine-side discovery LLM judge (`lib/discovery_judge.py` and all reasoning-provider resolution in the discovery path). One-shot cron runs use deterministic heuristic names, velocity-only order, and no angles, with one loud stderr note pointing at the host-judged protocol. Keyed one-shot users lose provider naming/angles by design - the protocol replaces them. ([#856](https://github.com/mvanhorn/last30days-skill/pull/856)) |
| 1081 | |
| 1082 | ## [3.17.0] - 2026-07-21 |
| 1083 | |
| 1084 | ### Added |
| 1085 | |
| 1086 | - Discovery trend cards now lead with short judged topic names: a stage-1 LLM judge gives each nominated cluster a 2-6 word searchable name (with a deterministic fallback namer), replacing raw post titles as card headings, and blends a 0-100 content-worthiness score into the ranking. ([#852](https://github.com/mvanhorn/last30days-skill/pull/852)) |
| 1087 | - Junk-shape gate in discovery: help-me / beginner / personal-musing post shapes flagged by the judge (or the deterministic classifier at the seed-source floor) lose the single-source ranking bypass and need cross-source corroboration to rank. ([#852](https://github.com/mvanhorn/last30days-skill/pull/852)) |
| 1088 | - Stage-2 angle pass: every discovery trend card carries engine-owned `**Podcast angle:**` and `**X article angle:**` lines, so the brief doubles as a content-pipeline worksheet. ([#852](https://github.com/mvanhorn/last30days-skill/pull/852)) |
| 1089 | - Persistent discovery topic queue: `--discover` runs record surfaced topics in research.db (on by default; `LAST30DAYS_DISCOVERY_QUEUE=off` opts out, `--mock` never writes, `--save-dir` scopes the store), re-surfaced or covered topics get a `**Pipeline:**` annotation on their card, and `queue list` / `queue cover "<name>"` manage the queue from the CLI. ([#852](https://github.com/mvanhorn/last30days-skill/pull/852)) |
| 1090 | - Discovery JSON export schema 1.1: per-topic `podcast_angle` / `x_article_angle` plus the queue fields `previously_surfaced_count`, `last_surfaced`, and `covered` join the discovery export contract; every existing key is preserved. ([#852](https://github.com/mvanhorn/last30days-skill/pull/852)) |
| 1091 | |
| 1092 | ## [3.16.0] - 2026-07-15 |
| 1093 | |
| 1094 | ### Added |
| 1095 | |
| 1096 | - YouTube comments now fetch free via yt-dlp first; ScrapeCreators is a failure-only fallback, dropping the paid-key requirement for comment enrichment. ([#827](https://github.com/mvanhorn/last30days-skill/pull/827)) |
| 1097 | - `GITHUB_TOKEN` is registered end-to-end (.env, keychain, setup scripts, doctor) so the GitHub source stops rate-limiting keyed users. ([#793](https://github.com/mvanhorn/last30days-skill/pull/793)) |
| 1098 | - Opt-in overridable per-source result caps for high-volume topics; defaults unchanged when unset. ([#717](https://github.com/mvanhorn/last30days-skill/pull/717)) |
| 1099 | - `OPENROUTER_BASE_URL` override, mirroring the existing OPENAI/XAI base-URL knobs. ([#703](https://github.com/mvanhorn/last30days-skill/pull/703)) |
| 1100 | - `LAST30DAYS_MCP_TIMEOUT` accepts bare integer seconds as documented, not just Go duration strings. ([#765](https://github.com/mvanhorn/last30days-skill/pull/765)) |
| 1101 | |
| 1102 | ### Fixed |
| 1103 | |
| 1104 | - Keyless web search now works on hosts where DuckDuckGo anomaly-blocks the egress IP (a 202 challenge page with no results — common on datacenter/VPS IPs). Added Startpage as a second keyless rung (DuckDuckGo → Startpage → configured SearXNG), so the web floor still returns results there. Also hardened `_strip_html` to drop `<style>`/`<script>` contents so inline CSS can't leak into a title or snippet. |
| 1105 | - Web/grounding results are no longer discarded when one of them is a reddit.com URL whose enrichment fetch fails. Reddit enrichment is a best-effort secondary fetch; its HTTP failures (e.g. a 403 on a datacenter IP) were being attributed to the whole web source, which then reported "0 items — HTTP 403" despite having retrieved good results. Its failures are now isolated from the source's outcome. |
| 1106 | - Very long topic names no longer crash `save_output` (ENAMETOOLONG): slugify truncates at 180 chars with a stable hash suffix so distinct topics stay distinct. ([#786](https://github.com/mvanhorn/last30days-skill/pull/786)) |
| 1107 | - Quick depth honors the plan's explicit sources instead of trimming them away. ([#664](https://github.com/mvanhorn/last30days-skill/pull/664)) |
| 1108 | - X search on Windows/Node 24: valid Bird CLI JSON on stdout is trusted even when the process exits non-zero. ([#813](https://github.com/mvanhorn/last30days-skill/pull/813)) |
| 1109 | - 17 `.get(key, 0)` sites are now None-safe, fixing sort/math crashes on stored data with null fields. ([#822](https://github.com/mvanhorn/last30days-skill/pull/822)) |
| 1110 | - Non-ASCII characters in URLs are percent-encoded component-wise before urllib, fixing the latin-1 encode crash. ([#822](https://github.com/mvanhorn/last30days-skill/pull/822), supersedes [#821](https://github.com/mvanhorn/last30days-skill/pull/821)) |
| 1111 | - `LAST30DAYS_DEBUG` is registered and resolved lazily; fixes the `http.DEBUG` AttributeError in xai_x. ([#770](https://github.com/mvanhorn/last30days-skill/pull/770)) |
| 1112 | - `DEGRADED_TRANSCRIPT_THRESHOLD` set in .env is picked up. ([#807](https://github.com/mvanhorn/last30days-skill/pull/807)) |
| 1113 | - One bad video no longer marks the whole ScrapeCreators transcript source failed. ([#830](https://github.com/mvanhorn/last30days-skill/pull/830)) |
| 1114 | - Chromium cookie temp copies keep 0600 permissions for their whole lifetime. ([#764](https://github.com/mvanhorn/last30days-skill/pull/764)) |
| 1115 | - Thin-source retries forward pinned subreddits/hashtags/creators instead of retrying generically. ([#795](https://github.com/mvanhorn/last30days-skill/pull/795)) |
| 1116 | |
| 1117 | ## [3.15.0] - 2026-07-14 |
| 1118 | |
| 1119 | ### Added |
| 1120 | |
| 1121 | - `doctor` is now a four-state audit instead of a flat config prediction: every source is grouped into **WORKING** (verified this run, last run, or keyless-always-on), **TURNED ON - UNVERIFIED** (configured/opted-in but no run evidence), **NOT WORKING** (configured but failing, or the last run errored), or **COULD BE ON** (an available capability not yet configured). Each source renders on its own labeled line, so GitHub (and every other source) is no longer buried in a cluster. |
| 1122 | - `doctor --postmortem`: reads the last run's `last-report.json` (any age, labeled) and reports, per source, what actually happened - Failed / Partial / Succeeded / Skipped with details and fix hints - so "what broke on that run?" is answerable after the fact. |
| 1123 | - `doctor --probe`: a bounded live test that verifies WORKING instead of guessing. It also auto-fires when there is no fresh run. Each source is probed concurrently under a per-source deadline (`LAST30DAYS_DOCTOR_PROBE_TIMEOUT`, default 10s) so a slow source can never hang the command. Scope is free HTTP endpoints + keyless CLIs only; credit-gated sources (X, TikTok, Instagram, Threads, …) are never live-probed and stay UNVERIFIED. |
| 1124 | - `doctor` now surfaces **CLI health**: sources needing a downloaded binary (`yt-dlp`, `digg-pp-cli`, `techmeme-pp-cli`, `arxiv-pp-cli`, `trustpilot-pp-cli`, optional `gh`) carry an inline `[CLI: name ✓]` marker and a dedicated CLI-health block, visibly distinct from keyless sources. |
| 1125 | - `doctor` now audits **techmeme, arXiv, and trustpilot** (they run in research but were previously absent from the health surface), and surfaces **backup lanes** (Reddit ScrapeCreators backfill, YouTube SC transcript/search backstop used when yt-dlp is rate-limited, X cookie-vs-`XAI_API_KEY` dual path) and **comment lanes** (youtube/tiktok/instagram) as indented sub-lines. |
| 1126 | - `doctor --json` gains `audit_state`, `cli`, `backups`, `comments`, and `run_outcome` per source plus a top-level `mode`, all additive - every existing key is preserved. |
| 1127 | |
| 1128 | ### Fixed |
| 1129 | |
| 1130 | - `doctor` no longer reports Threads as Ready when it will not run: SC-gated opt-in sources now honor `INCLUDE_SOURCES` (mirrors the correct LinkedIn gating), so Threads shows COULD BE ON until opted in. TikTok/Instagram stay on-by-default. |
| 1131 | |
| 1132 | ## [3.14.0] - 2026-07-12 |
| 1133 | |
| 1134 | ### Added |
| 1135 | |
| 1136 | - Global trending: bare `--discover` (no domain) sweeps every river feed's own hot list (r/all, Hacker News front page, Digg) with no keyword gate - `/last30days trending` now works. ([#816](https://github.com/mvanhorn/last30days-skill/pull/816)) |
| 1137 | - Discovery is now two-stage: a listing sweep nominates candidate topics, then each nomination gets a full research pass (Reddit with comments, X, YouTube, Techmeme, arXiv, HN, Polymarket, web) before ranking - Techmeme and arXiv reach discovery for the first time, and every trend card can carry a verbatim community-voice quote with attribution plus a cross-source corroboration badge. `--discover-shallow` skips the research passes for a faster, thinner sweep. ([#816](https://github.com/mvanhorn/last30days-skill/pull/816)) |
| 1138 | - Discovery confidence floor: every topic must clear cross-source confirmation or a genuinely strong single-source spike; when nothing clears, the run reports an honest "Nothing solid this window" (JSON `outcome: nothing-solid` with the closest `weak_signal` named) instead of ranking noise. The discovery JSON contract gains `outcome`, `weak_signal`, and per-topic `top_comment` / `corroboration_count`. ([#816](https://github.com/mvanhorn/last30days-skill/pull/816)) |
| 1139 | |
| 1140 | ### Fixed |
| 1141 | |
| 1142 | - Discovery no longer emits ranked junk on quiet or over-broad domains (the "sports" sweep that returned five 1-like tweets): sub-floor evidence never ranks. ([#816](https://github.com/mvanhorn/last30days-skill/pull/816)) |
| 1143 | - An explicit `--search` source boundary now holds through discovery's research passes, not just the listing sweep; `--discover-shallow` without `--discover` errors instead of silently running a full research pass; enrichment stragglers can no longer keep the process alive past the wall-clock budget. ([#816](https://github.com/mvanhorn/last30days-skill/pull/816)) |
| 1144 | |
| 1145 | ## [3.13.1] - 2026-07-12 |
| 1146 | |
| 1147 | ### Added |
| 1148 | |
| 1149 | - Doctor `library` line: reports how many saved research briefs the local library holds (cheap glob, never a full parse), so the report's "From your library" block is explained on the health surface. The block itself now carries a one-line explainer with the `LAST30DAYS_LIBRARY_CONTEXT=off` opt-out. ([#815](https://github.com/mvanhorn/last30days-skill/pull/815)) |
| 1150 | |
| 1151 | ### Fixed |
| 1152 | |
| 1153 | - Doctor no longer reports X as `Off` when the bird CLI plus browser-cookie consent serve X fine at runtime: the cookie-backed path now reads **Ready**, with an honest note that the session is verified only at run time and `XAI_API_KEY` is the key-backed alternative. ([#815](https://github.com/mvanhorn/last30days-skill/pull/815)) |
| 1154 | - Doctor's YouTube note no longer reads as broken when yt-dlp is healthy: it affirms search + transcripts work, scopes the transcription key to caption-free videos, and correctly attributes comment text to ScrapeCreators (key + `youtube_comments` opt-in) with an actionable fix line - never to yt-dlp. ([#815](https://github.com/mvanhorn/last30days-skill/pull/815)) |
| 1155 | - Doctor's Web line on Claude Code now says host-native web search is active instead of `degraded ... keyless`, and names the host rather than an env var the user never set. Messaging only; engine web behavior unchanged. ([#815](https://github.com/mvanhorn/last30days-skill/pull/815)) |
| 1156 | - The report footer no longer prints `no results` lines for zero-item sources; failure signal stays in the Source Coverage / Partial Coverage evidence blocks, and the `Raw results saved to` line still renders when every source is empty. ([#815](https://github.com/mvanhorn/last30days-skill/pull/815)) |
| 1157 | |
| 1158 | ## [3.13.0] - 2026-07-12 |
| 1159 | |
| 1160 | ### Added |
| 1161 | |
| 1162 | - Xiaohongshu (RED) documented as a first-class requested-only source, with auto-detection of a logged-in local browser-session service: last30days probes `http://localhost:18060` then `http://host.docker.internal:18060` when the source is opted in; `XIAOHONGSHU_API_BASE` remains the explicit override. Zero probing and zero behavior change for users who have not opted in. ([#766](https://github.com/mvanhorn/last30days-skill/pull/766), thanks @yuzhiyang1) |
| 1163 | - DripStack as an opt-in source: premium financial newsletter and analyst-writeup search (free public API, no key), complementing StockTwits retail sentiment and Polymarket odds with professional analyst signal. Ships default-off; requests route through the shared HTTP layer and honor the 30-day window. ([#791](https://github.com/mvanhorn/last30days-skill/pull/791), thanks @zimoo354) |
| 1164 | - Persistent opt-in for both new sources via `INCLUDE_SOURCES=xiaohongshu` / `INCLUDE_SOURCES=dripstack` in `.env`, matching the LinkedIn/Perplexity pattern; per-run `--search` still works. ([#812](https://github.com/mvanhorn/last30days-skill/pull/812)) |
| 1165 | |
| 1166 | ### Fixed |
| 1167 | |
| 1168 | - Whitespace in comma-separated `INCLUDE_SOURCES` values no longer silently breaks any source's persisted opt-in. ([#812](https://github.com/mvanhorn/last30days-skill/pull/812)) |
| 1169 | - DripStack article bodies (subtitle/lede) now reach ranking and synthesis instead of only the capped snippet; the Xiaohongshu doctor prescription no longer recommends an env pin that disables auto-probing. ([#811](https://github.com/mvanhorn/last30days-skill/pull/811)) |
| 1170 | - Release hygiene: SKILL.md body header and uv.lock are regenerated with the version bump (both were missed in the 3.12.0 cut and hotfixed on main). |
| 1171 | |
| 1172 | ## [3.12.0] - 2026-07-12 |
| 1173 | |
| 1174 | ### Added |
| 1175 | |
| 1176 | - Typed per-run source outcomes: every run records what actually happened per source (`ok`, `no-results`, `partial`, `rate-limited`, `auth-failed`, `unreachable`, `timeout`, `schema-drift`, `skipped-unconfigured`, `error`) in `source_status`, with doctor-aligned states and fix hints - silence is never mistaken for coverage. ([#797](https://github.com/mvanhorn/last30days-skill/pull/797)) |
| 1177 | - Versioned agent JSON export profile: `--emit=json --json-profile=agent` returns a stable machine contract (`schema_version` 1.2) with `source_status`, clusters, ranked results with joinable `candidate_id`, and freshness verdicts; `--json-profile=raw` keeps the legacy dump byte-identical. ([#798](https://github.com/mvanhorn/last30days-skill/pull/798), [#810](https://github.com/mvanhorn/last30days-skill/pull/810)) |
| 1178 | - Research-quality eval harness: recorded-fixture regression suite scoring runs on citation grounding, recency compliance, cluster coherence, coverage, and determinism against per-fixture floors, in CI. ([#799](https://github.com/mvanhorn/last30days-skill/pull/799)) |
| 1179 | - `--drill`: re-research one cluster of the cached report in depth without a full re-run. ([#800](https://github.com/mvanhorn/last30days-skill/pull/800)) |
| 1180 | - `--discover`: topic-less trending sweeps over listing feeds with velocity-ranked story clusters and ready-to-run research commands. ([#801](https://github.com/mvanhorn/last30days-skill/pull/801)) |
| 1181 | - `library feed`: renders every saved brief into a browsable HTML library with a topic-grouped index and a subscribable Atom feed; hand-written pages are preserved with backups. ([#802](https://github.com/mvanhorn/last30days-skill/pull/802)) |
| 1182 | - `library search`: SQLite FTS5 full-text search across saved briefs and store sightings, plus a passive "From your library" section when new runs overlap past research; scoped `--save-dir` libraries stay fully isolated from the shared store. ([#803](https://github.com/mvanhorn/last30days-skill/pull/803)) |
| 1183 | - `--register` audience templates: `exec`, `dev`, and `creator` presets reshape section order and budgets for the reader; `eli5` is unified into the same mechanism. ([#804](https://github.com/mvanhorn/last30days-skill/pull/804)) |
| 1184 | - `--verify-freshness`: typed per-claim act-time verdicts (`current` / `stale` / `contradicted` / `unsupported`) with point re-fetch of Polymarket lines, GitHub stars, and StockTwits sentiment, inline or post-hoc over the cached report; closes the recency-promise audit gap. ([#805](https://github.com/mvanhorn/last30days-skill/pull/805), closes [#769](https://github.com/mvanhorn/last30days-skill/issues/769)) |
| 1185 | - `--corpus`: register local directories as a private, offline, deterministic source; matching notes rank alongside social evidence under a LOCAL ONLY badge and are excluded from hosted publishing and agent JSON by default. ([#808](https://github.com/mvanhorn/last30days-skill/pull/808)) |
| 1186 | - Native Grok Build (xAI) plugin and marketplace lane: `.grok-plugin/plugin.json` + `.grok-plugin/marketplace.json` so `grok plugin install mvanhorn/last30days-skill` and `grok plugin marketplace add mvanhorn/last30days-skill` work as first-class install paths. The self-hosted catalog uses a bare Git URL source (tracks HEAD); submitting to the official `xai-org/plugin-marketplace` remains a post-merge SHA-pinned outbound PR documented in `AGENTS.md`. |
| 1187 | |
| 1188 | ### Fixed |
| 1189 | |
| 1190 | - Session-start hook no longer deadlocks under Homebrew bash 5.3: removed every heredoc from `check-config.sh` (bash 5.3 can block forever in `heredoc_write` inside command substitution). ([#809](https://github.com/mvanhorn/last30days-skill/pull/809)) |
| 1191 | - Trustpilot transient-error retries keep their domain parameters. ([#794](https://github.com/mvanhorn/last30days-skill/pull/794)) |
| 1192 | - Hosted same-day saves no longer overwrite earlier reports, and `save_output` never silently overwrites date-stamped files. ([#784](https://github.com/mvanhorn/last30days-skill/pull/784), [#785](https://github.com/mvanhorn/last30days-skill/pull/785)) |
| 1193 | - `.env` reads as UTF-8 (with BOM tolerance and locale fallback) on Windows. ([#780](https://github.com/mvanhorn/last30days-skill/pull/780), [#715](https://github.com/mvanhorn/last30days-skill/pull/715)) |
| 1194 | - `FUN_LEVEL` and `LAST30DAYS_REPORT_CACHE_TTL_SECONDS` are registered in `env.py` so `.env` values are no longer silently ignored; doctor detects `GITHUB_TOKEN` from the process environment. ([#708](https://github.com/mvanhorn/last30days-skill/pull/708), [#732](https://github.com/mvanhorn/last30days-skill/pull/732), [#782](https://github.com/mvanhorn/last30days-skill/pull/782)) |
| 1195 | - File descriptors close promptly across the engine (`open()` wrapped in `with`). ([#775](https://github.com/mvanhorn/last30days-skill/pull/775)) |
| 1196 | |
| 1197 | ## [3.11.0] - 2026-07-05 |
| 1198 | |
| 1199 | ### Added |
| 1200 | |
| 1201 | - `last30days doctor`: a unified health command that aggregates every source's probe state into a single grouped report with copy-pasteable fix prescriptions. Layered design: dependency probes (missing/broken/timeout detection), backend-chain descriptors (predict-then-report, never a network call), a centralized prescription registry shared by doctor and quality nudges, and an aggregator with grouped rendering. Replaces the fragmented health knowledge previously spread across `--diagnose`, `--preflight`, `lib/health.py`, and post-run nudges. ([#753](https://github.com/mvanhorn/last30days-skill/pull/753)) |
| 1202 | |
| 1203 | ### Fixed |
| 1204 | |
| 1205 | - Techmeme: `search` results are now windowed to each record's own ISO date instead of stamping every record with today's date, so years-old archive headlines can no longer surface as current news. Dated in-window records take result-cap slots first; undated records (old `techmeme-pp-cli` binary or upstream markup change) degrade gracefully with a logged upgrade hint. The sync machinery is removed because `search` never read the local cache. ([#752](https://github.com/mvanhorn/last30days-skill/pull/752)) |
| 1206 | - LinkedIn now renders in the emoji-tree footer (👔 with likes/comments), the `## Stats` engagement summary, and with the correct "LinkedIn" label. Previously LinkedIn items were counted in `## Stats` but silently dropped from the footer because `_FOOTER_SOURCES`, `ENGAGEMENT_DISPLAY`, and `SOURCE_LABELS` all omitted the source - an 8-item LinkedIn run looked like the source never ran. ([#758](https://github.com/mvanhorn/last30days-skill/pull/758)) |
| 1207 | |
| 1208 | ## [3.10.0] - 2026-07-04 |
| 1209 | |
| 1210 | ### Added |
| 1211 | |
| 1212 | - Instagram comments as a first-class ScrapeCreators source: `instagram.enrich_with_comments` fetches top comments via `GET /v2/instagram/post/comments` (ranked by `comment_like_count`), gated by `SCRAPECREATORS_API_KEY` + `instagram_comments` in `INCLUDE_SOURCES`. Full vote-weighting parity with YouTube/TikTok - a dedicated `_instagram_engagement` gives IG posts the same top-comment ranking carve-out, and IG comments render with a "likes" label. ([#751](https://github.com/mvanhorn/last30days-skill/pull/751)) |
| 1213 | - Comments are now on by default: the first-run Step 5 Recommended tier enables top comments for TikTok, Instagram, and YouTube (`INCLUDE_SOURCES=tiktok,instagram,youtube_comments,tiktok_comments,instagram_comments`); the Everything tier adds Threads + Pinterest. Comments were previously an opt-in "Everything" feature. ([#751](https://github.com/mvanhorn/last30days-skill/pull/751)) |
| 1214 | |
| 1215 | ### Changed |
| 1216 | |
| 1217 | - The cross-platform "Top Community Comments" list now selects **round-robin by within-platform rank** (every platform's #1, then #2, then #3) instead of a global vote-magnitude sort, so the top-3-of-each-platform outranks the 4th-of-any and each platform's #1 is guaranteed a slot - a viral platform can no longer sweep the list. The list also drops the per-platform absolute vote floor so a less-watched video's high-signal low-vote comment still surfaces (the per-candidate card keeps its floor). ([#751](https://github.com/mvanhorn/last30days-skill/pull/751)) |
| 1218 | |
| 1219 | ### Fixed |
| 1220 | |
| 1221 | - First-run wizard: the welcome pitch is embedded directly in the setup modal (the only always-visible surface) instead of a separate `--welcome` message that Claude Code folds behind "ctrl+o to expand"; the cookie-consent and ScrapeCreators-offer copy now name every installed CLI (yt-dlp, Digg, arXiv, Techmeme) and describe the key's real reach (auto Reddit enrichment + YouTube search backstop), with the GitHub device code auto-copied to the clipboard. ([#750](https://github.com/mvanhorn/last30days-skill/pull/750)) |
| 1222 | |
| 1223 | ## [3.9.4] - 2026-07-04 |
| 1224 | |
| 1225 | ### Fixed |
| 1226 | |
| 1227 | - First-run wizard: the welcome message and the ScrapeCreators GitHub device code are now engine-driven instead of model-authored, because a real cold run showed the model skipping the welcome and never surfacing the device code no matter how forceful the SKILL.md prose. The welcome is printed by a new `last30days.py --welcome` command that Step 1 relays verbatim (single source of truth; it can't be skipped or drift), and the GitHub device flow is split into `setup --github-start` (submits, copies the code to the clipboard, prints it to stdout, opens the browser, returns immediately) and `setup --github-poll` (waits for authorization and persists the key). The one-shot `setup --github` still chains both. The code now always appears in the command output, and the "on your clipboard" claim is only made when the copy actually succeeded. ([#748](https://github.com/mvanhorn/last30days-skill/pull/748)) |
| 1228 | |
| 1229 | ## [3.9.3] - 2026-07-04 |
| 1230 | |
| 1231 | ### Added |
| 1232 | |
| 1233 | - Optional remote research API backend (env-driven). When both `LAST30DAYS_API_KEY` and `LAST30DAYS_API_BASE` are set in the process environment (never read from `.env`), a search runs through the configured remote endpoint (submit -> poll with stderr progress -> render) instead of local sources; with either unset, behavior is byte-identical to local-only. Opt-in and inert by default (no built-in endpoint); the key is confined to the `Authorization` header and never logged or persisted. Handles the clarify gate and 401/402/429 paths. ([#747](https://github.com/mvanhorn/last30days-skill/pull/747)) |
| 1234 | |
| 1235 | ### Fixed |
| 1236 | |
| 1237 | - First-run wizard: the welcome message is now mandated before the setup modal (it was being skipped), the Auto-setup option lists every installed CLI (yt-dlp, Digg, arXiv, Techmeme, not just two), and the ScrapeCreators GitHub signup reliably surfaces the device code with an "it's on your clipboard, just paste" hint as a required step instead of leaving the user staring at a spinner. ([#746](https://github.com/mvanhorn/last30days-skill/pull/746)) |
| 1238 | - ScrapeCreators GitHub signup: an already-linked account whose `.env` is cold no longer fails with the misleading "GitHub auth didn't complete." The `Authorized but failed to fetch API key` case now gets an honest branch (auth worked; the account is likely already linked -- get your key from scrapecreators.com and paste it), and `fetch_api_key` logs the `/profile` response field names (never values) so a full auto-fetch can follow. ([#746](https://github.com/mvanhorn/last30days-skill/pull/746)) |
| 1239 | |
| 1240 | ## [3.9.2] - 2026-07-03 |
| 1241 | |
| 1242 | ### Fixed |
| 1243 | |
| 1244 | - Trustpilot source returned 0 items on company topics: the engine passed raw topic names to a domain-keyed CLI (`info ThriftBooks` -> HTTP 404) and parallel subqueries raced concurrent Chrome WAF-cookie harvests. Company names now resolve to their Trustpilot review-page domain via the CLI's search (per-topic cache; name-match mandatory, ambiguous cases fall back rather than misattributing another company's reviews), a new `--trustpilot-domain` flag pins the domain explicitly (verbatim, bypasses the brand-shape gate, per-entity `trustpilot_domain` in `--competitors-plan`), the WAF session warms once per 240s window behind a lock at first fetch, Trustpilot is capped to one fetch per run and excluded from the thin-source retry, and headless `--auto-resolve` fills a verified domain hint. SKILL.md Step 0.5d documents the resolution flow. ([#745](https://github.com/mvanhorn/last30days-skill/pull/745)) |
| 1245 | |
| 1246 | ## [3.9.1] - 2026-07-03 |
| 1247 | |
| 1248 | ### Fixed |
| 1249 | |
| 1250 | - First-run setup wizard: the browser-cookie scan now tries Chrome/Chromium first (Keychain, no Full Disk Access) before Safari, so macOS users logged into X in Chrome authenticate in ~2s instead of hitting the Safari Full Disk Access dead-end. The winning browser is pinned for later runs only when it is Firefox/Safari, so Chrome never re-triggers the Keychain prompt. Consent copy leads with Chrome and the one-time "Always Allow" cue. ([#744](https://github.com/mvanhorn/last30days-skill/pull/744)) |
| 1251 | - ScrapeCreators GitHub signup now surfaces the device code immediately (emitted to stdout so a backgrounded caller shows it at once, instead of a spinner until the process exits), validates the `XXXX-XXXX` code shape before copying/labeling it, short-circuits an already-registered account without a fresh device dance, and masks the API key on every status (not just success). Removed the false "GitHub CLI ~2 seconds, no browser" promise. ([#744](https://github.com/mvanhorn/last30days-skill/pull/744)) |
| 1252 | - ScrapeCreators source opt-in is now two real tiers. The Step 5 choices were previously identical — a key auto-ran TikTok, Instagram, Threads, and YouTube comments regardless of `INCLUDE_SOURCES`, and Pinterest's opt-in silently ignored a persisted `INCLUDE_SOURCES`. Threads, YouTube comments, and Pinterest are now genuine `INCLUDE_SOURCES` opt-ins: **Recommended** = TikTok + Instagram + the rate-limit backups; **Everything** = also Threads, Pinterest, and YouTube/TikTok/Instagram comments. "ScrapeCreators backups" is now defined inline (keeps Reddit/YouTube working at rate limits). ([#744](https://github.com/mvanhorn/last30days-skill/pull/744)) |
| 1253 | |
| 1254 | ## [3.9.0] - 2026-07-03 |
| 1255 | |
| 1256 | ### Added |
| 1257 | |
| 1258 | - StockTwits as a source, gated to ticker/crypto topics only. Surfaces a retail sentiment ratio (self-reported Bullish/Bearish tags) and message volume on a resolved symbol. Inert on non-financial topics: an unambiguous finance-vocabulary gate (cashtags, "stock", "earnings", "dividend", "crypto", named coins) keeps it from injecting stock chatter into general runs, and it degrades to an empty lane if the public API fails without touching other sources. ([#658](https://github.com/mvanhorn/last30days-skill/pull/658), thanks @wtiwana) |
| 1259 | - LinkedIn as a source via ScrapeCreators, surfacing articles as high-signal results with date-range filtering, gated behind `INCLUDE_SOURCES`. ([#702](https://github.com/mvanhorn/last30days-skill/pull/702)) |
| 1260 | - arXiv and Techmeme sources (default-on) plus Trustpilot (opt-in). ([#709](https://github.com/mvanhorn/last30days-skill/pull/709)) |
| 1261 | |
| 1262 | ### Fixed |
| 1263 | |
| 1264 | - Runtime preflight now auto-provisions a uv-managed CPython 3.12 on hosts that have `uv` but no system Python 3.12+ (most agent sandboxes), instead of hard-failing the version gate. The install is bounded by a 30s HTTP timeout, matches an existing managed `>=3.12` interpreter before downloading, and announces the one-time ~28MB download on stderr rather than installing silently; hosts without `uv` still get the original clear error. Setup invocations now honor `LAST30DAYS_PYTHON` so first-run setup works on the same hosts. ([#738](https://github.com/mvanhorn/last30days-skill/pull/738), thanks @buntysomroy; setup-interpreter fix adapted from #699 by @SeanGearin) |
| 1265 | - Setup wizard summary now displays the install status of the arXiv/Techmeme pp_sources CLIs, so users can see whether they landed on PATH. ([#741](https://github.com/mvanhorn/last30days-skill/pull/741), thanks @23241a6749) |
| 1266 | - `--diagnose` / `--preflight` no longer falsely reports X as unreachable when X auth comes from `FROM_BROWSER` browser cookies. These modes run in `plan_only` and skip cookie extraction for privacy (no Keychain access), so X was dropped from `available_sources` even though a real run authenticates fine. A new side-effect-free `env.x_pending_browser_auth` predicate now reports X as available-pending-browser-auth (and surfaces an `x_pending_browser_auth` flag in `--diagnose`) by keying only on the already-resolved browser list — no cookie is read. Covers every configured browser, including Chrome. ([#692](https://github.com/mvanhorn/last30days-skill/issues/692); first reported and fixed by @23241a6749 in #700) |
| 1267 | |
| 1268 | ### Internal |
| 1269 | |
| 1270 | - Tightened Hermes `.skillignore` regression coverage: the test now fails if an ignored path is deleted without updating the ignore list, or if a runtime-contract file is accidentally ignored. ([#739](https://github.com/mvanhorn/last30days-skill/pull/739), thanks @SyntaxSawdust) |
| 1271 | |
| 1272 | ## [3.8.3] - 2026-06-25 |
| 1273 | |
| 1274 | ### Added |
| 1275 | |
| 1276 | - Free Reddit gets dedicated-subreddit lanes: entity-home subs (e.g. r/Kanye for "Kanye West", via the new `--dedicated-subreddits` flag) are pulled in full from top+hot+new listings and exempt from the relevance floor, since the whole sub is the topic. Fixes the over-aggressive floor that dropped on-topic posts whose titles lacked the entity name. |
| 1277 | - `reddit_arctic` resolves upvote counts for threads found only via RSS search (which carries no score) using the free, keyless arctic-shift archive — batched, paced, cached, and graceful-degrading. Reddit now gets headlines-with-points and best-comments-with-points entirely for free, at parity with ScrapeCreators. |
| 1278 | - `LAST30DAYS_REDDIT_SC_MIN_ITEMS` (default 0 = unchanged empty-only behavior): set above 0 to let the ScrapeCreators backup backfill a thin free Reddit run instead of sitting idle. Backfilled items merge deduped by post id. |
| 1279 | |
| 1280 | ### Removed |
| 1281 | |
| 1282 | - The permanently-403 `search.json` Tier 0 is gone from the keyless Reddit path; discovery is RSS breadth + shreddit listing partials (real scores) + the dedicated-sub lanes, with no wasted 403 calls. |
| 1283 | |
| 1284 | ## [3.8.2] - 2026-06-25 |
| 1285 | |
| 1286 | ### Added |
| 1287 | |
| 1288 | - Advisory Semgrep SAST scan runs on every push/PR as part of the Security workflow, catching source-level security bugs using Semgrep CE community rules ([#563](https://github.com/mvanhorn/last30days-skill/issues/563)) |
| 1289 | - Scheduled OSV-Scanner vulnerability-drift workflow scans repository lockfiles weekly and uploads SARIF results to GitHub code scanning, catching newly disclosed CVEs in the dependency tree even between PRs ([#571](https://github.com/mvanhorn/last30days-skill/issues/571)) |
| 1290 | - `LAST30DAYS_REDDIT_BACKEND=scrapecreators` makes ScrapeCreators the primary Reddit backend with the public path as fallback. Users with a ScrapeCreators key who were getting shallow public data will now get full nested comment trees by setting this flag ([#589](https://github.com/mvanhorn/last30days-skill/issues/589)) |
| 1291 | - MCP Go tests (`mcp/`) now run in CI on every push/PR alongside the Python test suite, so MCP server regressions are caught before merge ([#621](https://github.com/mvanhorn/last30days-skill/issues/621)) |
| 1292 | - PR dependency review gate blocks merges that introduce new vulnerable dependencies ([#551](https://github.com/mvanhorn/last30days-skill/issues/551)) |
| 1293 | |
| 1294 | ### Changed |
| 1295 | |
| 1296 | - Citations are now renderer-aware (LAW 8). On hidden-link hosts (Claude Code) every citation stays an inline `[name](url)` link as before; on visible-URL hosts (Codex, Cursor, Gemini CLI, raw CLI) citations render as plain source labels so the narrative no longer turns into `label (https://...)` URL soup. The host is detected deterministically from the `CLAUDECODE` environment variable, and full URLs remain reachable through the engine footer and the saved raw file. |
| 1297 | |
| 1298 | ### Fixed |
| 1299 | |
| 1300 | - The query-plan invocation guidance now warns against wrapping the heredoc in `bash -lc '...'` / `zsh -lc '...'`, whose single quotes terminate at the first apostrophe in a ranking string and abort the engine run with `unmatched "` on Codex. The quoted `<<'PLAN_EOF'` heredoc is already apostrophe-safe; the `-lc` wrapper was the hazard. |
| 1301 | - Firefox profile detection on Linux now checks `$XDG_CONFIG_HOME/mozilla/firefox` (or its default `~/.config/mozilla/firefox`) in addition to `~/.mozilla/firefox`, fixing cookie extraction on distros that honour the XDG Base Directory Specification ([#667](https://github.com/mvanhorn/last30days-skill/issues/667)) |
| 1302 | |
| 1303 | ## [3.8.1] - 2026-06-22 |
| 1304 | |
| 1305 | ### Added |
| 1306 | - **Restored the v3.0.0 first-run NUX wizard (Claude Code Modal Flow).** Step 0 now restores the original guided, `AskUserQuestion`-driven onboarding that eroded over time: a welcome message, an Auto/Manual/Skip setup modal, a cookie-consent modal, the ScrapeCreators signup offer, a TikTok/Instagram `INCLUDE_SOURCES` opt-in, and a first-topic picker. It is gated to hosts with modals; hosts without (OpenClaw, Codex, Cursor, Gemini CLI) get the equivalent **Non-Modal Prose Flow**. Digg is threaded into the install messaging alongside yt-dlp everywhere it appears, the ScrapeCreators credit count is `10,000 free calls`, and the flow is locked against re-erosion by `tests/test_onboarding_contract.py`. Builds on the consent-driven foundation from #659/#660. Original wizard captured at `docs/reference/old-nux-wizard-v3.0.0.md`. |
| 1307 | - **Consent-driven first-run onboarding.** Step 0 now drives an in-chat consent flow instead of a silent `setup` run: the model asks before reading browser cookies (decline runs with `FROM_BROWSER=off` — still installs yt-dlp + Digg), surfaces the macOS Full Disk Access fix when a cookie read is permission-denied, and offers the ScrapeCreators GitHub signup on every first run. A successful `setup --github` now **persists `SCRAPECREATORS_API_KEY` automatically** (`setup_wizard.write_api_key`, 0o600) and masks the key in stdout so the secret never lands in the host model's captured output. Follows the first-run gate fix (#659). |
| 1308 | |
| 1309 | ### Fixed |
| 1310 | - **First-run setup no longer runs silently.** The prior Step 0 told the model to run `setup` and "follow the wizard's prompts end-to-end", but the wizard has no prompts — so onboarding extracted cookies, installed tools, and wrote `SETUP_COMPLETE` with zero interaction and never offered the ScrapeCreators signup. Reproduced 2026-06-22 (Fredy Montero, fresh macOS). |
| 1311 | |
| 1312 | ## [3.8.0] - 2026-06-21 |
| 1313 | |
| 1314 | ### Added |
| 1315 | |
| 1316 | - **Single X source with backend failover.** X is now one source backed by an ordered chain of interchangeable backends (xai, bird, xurl, xquik) with runtime failover, rather than separate sources. The key-based xquik backend reaches parity with bird, gaining the X-quality ranking and FROM/ABOUT handle lanes, so hosts that cannot supply browser cookies (OpenClaw, CI/cron, headless harnesses) get real X coverage from an xquik key alone. Handle lanes run via the first handle-capable backend in the chain even when a non-capable backend (xai/xurl) is primary. (#622) |
| 1317 | |
| 1318 | ## [3.7.1] - 2026-06-21 |
| 1319 | |
| 1320 | ### Fixed |
| 1321 | |
| 1322 | - GitHub repo stars are no longer mislabeled as "reactions" in the report footer. Repo cards use a distinct `stars` engagement key, velocity cards use `merged_prs`, and genuine issue/PR reaction counts keep their own `reactions` key. (#645, closes #642) |
| 1323 | - Hacker News returned zero stories on every run: the Algolia query sent `points>2`, which the HN index no longer accepts as a filterable attribute, so every request 400'd. Dropped the server-side `points` filter; low-engagement demotion still happens at parse time. (#639) |
| 1324 | - Polymarket surfaced off-topic markets and rendered a mangled footer. The relevance filter was fed the per-subquery string instead of the stable topic, and market labels were truncated mid-article into fragments like "an Anthropic Claude model score at: an 19%". Now filters on the stable topic and cleans the labels. (#640) |
| 1325 | |
| 1326 | ## [3.7.0] - 2026-06-20 |
| 1327 | |
| 1328 | ### Added |
| 1329 | |
| 1330 | - **Direct Perplexity API support.** When `PERPLEXITY_API_KEY` is set it is preferred over OpenRouter for the Perplexity source, unlocking first-party Search API results and async Deep Research. Adds `LAST30DAYS_PERPLEXITY_MODE=sonar|search|both` plus model, search-context, domain/language/country, recency, and reasoning-effort knobs. OpenRouter stays the Sonar compatibility fallback when no direct key is set. Async Deep Research preserves request id, status, idempotency key, poll count, lifecycle timestamps, and failure metadata in raw artifacts. (#629, by @sk-holmes) |
| 1331 | |
| 1332 | ### Changed |
| 1333 | |
| 1334 | - `check-config.sh` now parses env files in pure bash (no `sed` / `tr`), which also fixes the YouTube-availability hint breaking in minimal environments that lack those tools. (#629) |
| 1335 | |
| 1336 | ## [3.6.1] - 2026-06-20 |
| 1337 | |
| 1338 | ### Added |
| 1339 | |
| 1340 | - **ScrapeCreators transcript fallback.** When `SCRAPECREATORS_API_KEY` is set, YouTube transcripts fall back to the ScrapeCreators transcript endpoint after the keyless yt-dlp cascade fails (fetched server-side, so no 429 / cookies / PO tokens). yt-dlp stays primary and a credit is only spent on a genuine failure, never on success and never on a video proven to have no captions. With a key, yt-dlp also fails over fast (one short-timeout attempt) so a 429 hands off to ScrapeCreators in roughly 17s instead of roughly 90s. (#637, idea from #595) |
| 1341 | - **YouTube comments default-on.** Comment enrichment now activates whenever a ScrapeCreators key is present (bounded to the top ~3 videos by engagement, ~3 credits per run) instead of requiring `INCLUDE_SOURCES=youtube_comments`. Suppress with `EXCLUDE_SOURCES=youtube_comments`. TikTok/Instagram comments remain `INCLUDE_SOURCES` opt-ins. (#637) |
| 1342 | |
| 1343 | ### Fixed |
| 1344 | |
| 1345 | - **Salvage partial YouTube transcripts on non-zero yt-dlp exit.** With the default `en,es,pt` languages an English video wrote `en.vtt` then 429'd on `es`/`pt`, and the already-written transcript was discarded and retried back into the rate limit. Any VTT on disk is now read before the failure is classified, which fixes the dominant `0/N transcripts` case. (#636) |
| 1346 | - **Windows transcript crash on subprocess timeout.** Guarded the SIGKILL escalation path in `run_with_timeout` against `os.killpg` / `os.getpgid` raising `AttributeError` on Windows (they are POSIX-only), mirroring the primary path's guard. (#638, reported in #588) |
| 1347 | |
| 1348 | ## [3.6.0] - 2026-06-18 |
| 1349 | |
| 1350 | ### Added |
| 1351 | |
| 1352 | - **First-party X posts are no longer buried.** A post authored by one of the run's resolved handles (`--x-handle`, `--x-related`, the GitHub user) is now treated as first-class evidence: it is exempt from the entity-miss demotion (a post never repeats its own author's name, so the body-text grounding check used to zero out the subject's own highest-signal posts) and gets a small authorship credit. Third-party collision-noise suppression is unchanged. |
| 1353 | - **Engagement rescue for on-topic X posts.** A high-engagement X post that is first-party or entity-grounded gets a `final_score` floor scaled by its engagement percentile within the run's X pool, so a viral on-topic post can't sit at ~0. Off-topic name-collision posts are explicitly excluded. |
| 1354 | - **First-party interaction signal.** A first-party post directed at another account (a reply / leading @mention) is floated into the visible band regardless of like-count and tagged `interaction:→@handle` in the EVIDENCE block, so the synthesis reads it as a relationship signal rather than low-engagement noise. New **LAW 10** in SKILL.md teaches the model to surface first-party posts and read the interaction tag. |
| 1355 | |
| 1356 | ### Changed |
| 1357 | |
| 1358 | - The X FROM lane (the subject's own timeline) now pulls up to 8 posts per handle (was 3); the about/related lanes stay modest. |
| 1359 | |
| 1360 | ### Fixed |
| 1361 | |
| 1362 | - Secrets `.env` and its parent config directory are now auto-tightened to `0o600`/`0o700` after creation, and `check-config.sh`'s `check_perms` now auto-fixes loose permissions with `chmod 600` instead of warning only ([#573](https://github.com/mvanhorn/last30days-skill/issues/573)) |
| 1363 | |
| 1364 | ## [3.5.0] - 2026-06-18 |
| 1365 | |
| 1366 | ### Added |
| 1367 | |
| 1368 | - **X surfaces tweets FROM and ABOUT a person, both engagement-weighted.** The handle search now pulls the person's real timeline (`from:handle since:`, topic used for ranking only — never AND'd into the query, which previously matched only tweets where they wrote their own name and returned ~0), and a new mention lane (`@handle since:`) surfaces what others say to/about them, excluding their own tweets and deduping against the FROM lane ([#610](https://github.com/mvanhorn/last30days-skill/pull/610)). |
| 1369 | - **`## Top Community Comments` block.** The engine now surfaces vote-ranked community comments across all candidates (not just the top-cluster representatives), per-platform-normalized, into the EVIDENCE-for-synthesis block, so the funniest/sharpest crowd reactions reach the synthesizing model even when no LLM fun-scorer is available. Paired with a new SKILL.md **LAW 9** that requires weaving ≥2 verbatim attributed comments, copying URLs verbatim, and never narrating the tooling in the deliverable ([#608](https://github.com/mvanhorn/last30days-skill/pull/608)). |
| 1370 | |
| 1371 | ### Fixed |
| 1372 | |
| 1373 | - **`--diagnose` honesty.** X status now reflects a real 1-tweet probe (downgrades from green when X is effectively dead; fail-open on a transient timeout) and reports the true auth lane (browser / env / keychain) instead of a hardcoded `env AUTH_TOKEN`. Handle/mention searches log query + result count on success, not only on failure ([#609](https://github.com/mvanhorn/last30days-skill/pull/609)). |
| 1374 | - **X column de-pollution.** The last-chance keyword retry no longer collapses a multi-word subquery to a bare generic token (e.g. `compound`); it keeps an entity anchor ([#607](https://github.com/mvanhorn/last30days-skill/pull/607)). |
| 1375 | - **Mandatory person-aware subquery disambiguation.** Collision-prone person names (Kevin Rose vs Kevin Warsh, Lan Xuezhao vs Lanzhou) must anchor every subquery with the resolved company/role/domain context ([#611](https://github.com/mvanhorn/last30days-skill/pull/611)). |
| 1376 | |
| 1377 | ## [3.4.0] - 2026-06-18 |
| 1378 | |
| 1379 | ### Added |
| 1380 | |
| 1381 | - **Crowd-vote weighting in the fun judge (Best Takes).** The fun judge now factors how many upvotes/likes each top comment earned. Comment vote counts are fed into the LLM prompt (as traction, not funniness), and Best-Takes selection ranks by an effective score — `fun_score` plus a bounded, per-platform-normalized, relevance-confidence-scaled crowd nudge — so genuinely funny, crowd-loved, on-topic comments surface while off-topic virality and high-voted-but-unfunny rants are excluded. `FUN_LEVEL=medium` stays the default and applies the signal as a meaningful factor ([#592](https://github.com/mvanhorn/last30days-skill/pull/592)). |
| 1382 | - **Digg added to first-run setup.** The free, keyless `digg-pp-cli` is now auto-installed during the first-run wizard (best-effort via the Printing Press installer, with a recommend-only fallback), so the already-built Digg AI-news source activates automatically for new users instead of silently never appearing ([#590](https://github.com/mvanhorn/last30days-skill/pull/590)). |
| 1383 | |
| 1384 | - **`LAST30DAYS_YOUTUBE_SSH_HOST` transcript routing** — yt-dlp transcript fetch runs on the remote SSH host via a mktemp + cat pipeline ([#422](https://github.com/mvanhorn/last30days-skill/pull/422)). |
| 1385 | - Browser-cookie auth for X/Twitter now covers the full Chromium family on macOS - Brave, Microsoft Edge, Vivaldi, Opera, Arc, and Chromium - alongside the existing Chrome, Firefox, and Safari. They all share Chrome's v10 AES-128-CBC decryption, differing only in profile path and Keychain service name, so they run through one shared decryption core. The profile finder probes both the modern `Default/Network/Cookies` layout (Chromium >= 96) and the legacy flat `Default/Cookies`, and Chrome now resolves through that same finder so it picks up the modern layout too. Set `FROM_BROWSER=auto` to try every browser, or `FROM_BROWSER=<name>` (e.g. `brave`, `edge`, `arc`) to target one. Verified end-to-end on real Brave and Edge installs ([#572](https://github.com/mvanhorn/last30days-skill/pull/572)). |
| 1386 | - **First-party positioning research + pitch-vs-pulse synthesis (company / product / service topics).** A new mandatory research step captures each entity's current stated positioning from first-party sources (homepage, docs, pricing) rather than from memory. The fetched pitch grounds `What it is` descriptions (entities described as they pitch themselves today), helps reject unrelated brand-name noise, and feeds an evidence-triggered prose beat: when the month's conversation directly supports a specific claim, cuts against one, or is squarely about the pitched ground, the synthesis says so anchored to the top thread — and stays silent when the pulse is orthogonal to the pitch, because a manufactured connection is worse than omission. Claims are tested at matched altitude (specific claims against specific threads; broad taglines are never graded against individual items), and statements stay windowed to the 30 days — no trend verdicts. Scoped to entities with an identifiable first party: people are always excluded (even founders whose companies qualify), as are events, abstract concepts, and ownerless topics like Bitcoin; the beat requires positioning fetched during the run, never from memory. |
| 1387 | |
| 1388 | ### Changed |
| 1389 | |
| 1390 | - Updated "Unlock X" promo message to mention Chrome/macOS support and Windows Firefox-only limitation instead of generic "Firefox or Safari" ([#387](https://github.com/mvanhorn/last30days-skill/issues/387)) |
| 1391 | |
| 1392 | ### Fixed |
| 1393 | |
| 1394 | - **SSH routing failures no longer present as "0 results"** — `search_youtube` surfaces non-zero SSH exit codes as an explicit `error` field ([#422](https://github.com/mvanhorn/last30days-skill/pull/422)). |
| 1395 | - `extract_browser_credentials()` silently ignored Brave even though the lower-level `cookie_extract` layer already supported it: `FROM_BROWSER=brave` fell back to Firefox/Safari and `FROM_BROWSER=auto` never tried Brave. The env wiring now passes Brave - and the rest of the Chromium family - through to the extractor ([#572](https://github.com/mvanhorn/last30days-skill/pull/572)). |
| 1396 | - Chromium cookie extraction now fetches the macOS Keychain key lazily - only when an encrypted cookie actually needs decrypting. Previously the key was fetched as soon as the cookie DB existed, so `FROM_BROWSER=auto` could trigger a Keychain prompt for every installed Chromium browser. Now only the browser that actually holds the requested cookie prompts ([#572](https://github.com/mvanhorn/last30days-skill/pull/572)). |
| 1397 | - YouTube transcript budget prioritises recent videos (by a combination of views and recency) instead of views alone, preventing transcript slots from being consumed by old high-view-count videos that would be discarded by strict_recent freshness pruning ([#531](https://github.com/mvanhorn/last30days-skill/issues/531)) |
| 1398 | - YouTube items with successfully extracted transcripts are no longer pruned by title-only relevance scoring; the transcript content proves substantive topical coverage even when the video title has low lexical overlap with the query ([#468](https://github.com/mvanhorn/last30days-skill/issues/468)) |
| 1399 | - First-run setup wizard in SKILL.md now references the existing Python setup wizard (`last30days.py setup`) instead of the missing `nux-wizard.md` file, so first-run setup actually runs on new installs. ([#574](https://github.com/mvanhorn/last30days-skill/issues/574)) |
| 1400 | - `check-config.sh` no longer exits 1 on the ScrapeCreators-configured path when no prior run exists (empty `LAST_RUN_LINE`) — swapped `&&` guard for an `if` block that always exits cleanly ([#463](https://github.com/mvanhorn/last30days-skill/issues/463)) |
| 1401 | - `check-config.sh` no longer exits 1 when a `.env` value contains an unbalanced quote — replaced `xargs` (which interprets quotes) with `sed` for whitespace trimming in `load_env_vars` ([#506](https://github.com/mvanhorn/last30days-skill/issues/506)) |
| 1402 | - X/Twitter `.env` template now includes `CT0` alongside `AUTH_TOKEN` in the example skeleton ([CONFIGURATION.md](CONFIGURATION.md)), and the just-in-time unlock wizard offers AUTH_TOKEN/CT0 cookie entry ([#396](https://github.com/mvanhorn/last30days-skill/issues/396)) |
| 1403 | - `check-config.sh` no longer counts X as an active source when only `AUTH_TOKEN` is set without `CT0` — both cookies are now required to credit X in the source count ([#396](https://github.com/mvanhorn/last30days-skill/issues/396)) |
| 1404 | - Firefox cookie extraction now falls back to scanning non-default profiles when the default profile has no matching X cookies, fixing multi-profile setups where login lives on a non-default profile ([#498](https://github.com/mvanhorn/last30days-skill/issues/498)) |
| 1405 | - `subproc.py` `run_with_timeout()` now guards `os.killpg` / `os.getpgid` with `hasattr`, preventing an uncaught `AttributeError` crash when a subprocess times out on Windows where these functions don't exist ([#527](https://github.com/mvanhorn/last30days-skill/issues/527)) |
| 1406 | - Entity-grounding rerank demotion now keys on the head token of the primary entity instead of requiring the full multi-word phrase as a contiguous substring. A high-engagement on-entity item (e.g. a 323-pt HN thread titled "Stripe is friendly to 'friendly fraud'") is no longer demoted to score 0 on a `Stripe payments` query just because it lacks the trailing search-hint word. The intended demotion still fires for items that never name the brand at all. The keyless Reddit comment-enrichment slot selection (`_slot_priority`), which mirrors this signal, was updated to the same head-token grounding so the two paths stay consistent. |
| 1407 | - `--plan` / `--competitors-plan` file reads now specify `encoding="utf-8"` and catch `UnicodeDecodeError`, preventing crashes on non-ASCII content like accented entity names on Windows (cp1252). `check_perms()` in `check-config.sh` now skips the POSIX 600-permission check on MSYS/MinGW/Cygwin where `stat` runs in noacl mode. `skill_meta.py` `read_skill_version()` now passes `encoding="utf-8"` so SKILL.md emoji doesn't break version detection on Windows. ([#549](https://github.com/mvanhorn/last30days-skill/issues/549)) |
| 1408 | |
| 1409 | |
| 1410 | ## [3.3.2] - 2026-06-06 |
| 1411 | |
| 1412 | ### Fixed |
| 1413 | |
| 1414 | - YouTube transcript extraction now falls back through `en,es,pt` (configurable via `LAST30DAYS_YT_SUB_LANGS`) instead of English-only, so non-English videos with auto-captions in any of those three languages now contribute transcripts to the brief ([#469](https://github.com/mvanhorn/last30days-skill/issues/469)) |
| 1415 | - Keyless Reddit comment enrichment now spends its limited slots on entity-matching posts first (mirroring rerank's entity-miss demotion signal) instead of raw upvote order, so off-topic high-upvote threads from broad subreddits no longer consume the comment budget only to be demoted afterward ([#484](https://github.com/mvanhorn/last30days-skill/pull/484)) |
| 1416 | |
| 1417 | ## [3.3.1] - 2026-05-30 |
| 1418 | |
| 1419 | ### Fixed |
| 1420 | |
| 1421 | - Removed the redundant `commands/last30days.md` wrapper so the plugin exposes only the skill ([#461](https://github.com/mvanhorn/last30days-skill/issues/461)). Previously the plugin shipped both a command wrapper and the skill under the same name, so `/last30` surfaced two `last30days` entries with two different descriptions. The skill already carries its own `argument-hint`, so the `/last30days <topic>` picker UX is unchanged. |
| 1422 | - Corrected the README install note that claimed Claude Code dedupes the slash command across install methods; it does not, so having both the marketplace plugin and the `npx skills` copy active shows two entries. |
| 1423 | |
| 1424 | ## [3.3.0] - 2026-05-17 |
| 1425 | |
| 1426 | A week-long shipping cycle: ~75 PRs merged plus 7 community fixes salvaged through PR triage. Big themes: install story modernized for the multi-harness world (Claude Code, Codex, Cursor, Gemini CLI, Copilot, Windsurf, and 50+ Agent Skills hosts), new emit and source modes, and a substantial reliability sweep across Reddit, X, Windows, YouTube, and the planner. |
| 1427 | |
| 1428 | ### Added |
| 1429 | |
| 1430 | **Emit modes and sources** |
| 1431 | |
| 1432 | - `--emit=html` for shareable, print-friendly HTML research briefs ([#332](https://github.com/mvanhorn/last30days-skill/pull/332)). |
| 1433 | - **Digg AI 1000 source**, auto-enabled when `digg-pp-cli` is on PATH ([#370](https://github.com/mvanhorn/last30days-skill/pull/370)). Surfaces curated story clusters from the AI 1000 leaderboard and pulls attributable X-post quotes into the brief. |
| 1434 | |
| 1435 | **Configuration knobs** |
| 1436 | |
| 1437 | - `EXCLUDE_SOURCES` env var — the inverse of `INCLUDE_SOURCES`, honored in source count and pipeline filter ([#399](https://github.com/mvanhorn/last30days-skill/pull/399)). |
| 1438 | - `LAST30DAYS_YOUTUBE_SSH_HOST` — opt-in SSH routing for `yt-dlp` through a residential-IP host, for users on datacenter VPS hit by YouTube's bot-wall ([#376](https://github.com/mvanhorn/last30days-skill/pull/376)). Host validated against `^[a-zA-Z0-9._-]+$` to reject SSH option-injection. Transcript path unchanged (uses HTTP fallback). |
| 1439 | - macOS Keychain as a credential source — reads from the system keychain when env vars and config files aren't set ([#407](https://github.com/mvanhorn/last30days-skill/pull/407)). |
| 1440 | - Configuration enablement: env-var defaults and source-resilience patterns across the config layer ([#344](https://github.com/mvanhorn/last30days-skill/pull/344)). |
| 1441 | |
| 1442 | **Pipeline and storage** |
| 1443 | |
| 1444 | - Reddit URL auto-enrichment from web search via the public JSON API ([#366](https://github.com/mvanhorn/last30days-skill/pull/366)). |
| 1445 | - Per-run finding sightings recorded in the SQLite store ([#373](https://github.com/mvanhorn/last30days-skill/pull/373)). |
| 1446 | - Brave browser support for X/Twitter cookie extraction ([#320](https://github.com/mvanhorn/last30days-skill/pull/320)). |
| 1447 | |
| 1448 | **Tests and CI** |
| 1449 | |
| 1450 | - Full pytest suite restored to CI; 13 rotted tests repaired ([#416](https://github.com/mvanhorn/last30days-skill/pull/416)). |
| 1451 | - `greptile.json` added with `triggerOnUpdates` + `statusCheck` ([#418](https://github.com/mvanhorn/last30days-skill/pull/418)). |
| 1452 | - Advisory security workflow ([#368](https://github.com/mvanhorn/last30days-skill/pull/368)). |
| 1453 | - Parallel grounding backend test coverage ([#355](https://github.com/mvanhorn/last30days-skill/pull/355)). |
| 1454 | |
| 1455 | **Docs** |
| 1456 | |
| 1457 | - New `CONFIGURATION.md` with README pointers ([#339](https://github.com/mvanhorn/last30days-skill/pull/339)). |
| 1458 | - `docs/solutions/` learning capture for release-time consistency-test cascades ([#413](https://github.com/mvanhorn/last30days-skill/pull/413)) and the eval-not-in-CI design decision ([#417](https://github.com/mvanhorn/last30days-skill/pull/417)). |
| 1459 | |
| 1460 | ### Changed |
| 1461 | |
| 1462 | **Install story modernized** |
| 1463 | |
| 1464 | - `npx skills add` is now the canonical install path for every harness ([#405](https://github.com/mvanhorn/last30days-skill/pull/405)). README and SKILL.md flipped to recommend `npx skills add . -g -y` over per-harness manual instructions. Surfaces Gemini CLI, Copilot, Windsurf, and 50+ other Agent Skills hosts that the install pattern reaches. |
| 1465 | - README dropped the Gemini CLI native-extension install path (now covered by `npx skills add`). |
| 1466 | - `hooks.json` made polyglot for Gemini CLI + Claude Code compatibility ([#318](https://github.com/mvanhorn/last30days-skill/pull/318)). |
| 1467 | |
| 1468 | **Skill semantics and multi-harness reframe** |
| 1469 | |
| 1470 | - `AGENTS.md` is now canonical; `CLAUDE.md` points at it ([#410](https://github.com/mvanhorn/last30days-skill/pull/410)). Reframes the project as a multi-harness Agent Skills package rather than a Claude-Code-specific tool. |
| 1471 | - SKILL.md path resolution rewritten: STEP 0 narrows to a Claude-Code-marketplaces-only stale-clone guard; Step 1 walks a single `SKILL_DIR` substitution pattern ([#400](https://github.com/mvanhorn/last30days-skill/pull/400), [#409](https://github.com/mvanhorn/last30days-skill/pull/409)). Removes ~80 lines of bash and fixes a real spec-vs-engine divergence where the previous resolver could pick a different install than the SKILL.md the model loaded from. |
| 1472 | - SKILL.md version regex consolidated into `lib/skill_meta.py` ([#412](https://github.com/mvanhorn/last30days-skill/pull/412)). |
| 1473 | - `--plan` / `--competitors-plan` invocation templates switched from inline single-quoted JSON to heredoc-written tmpfiles ([#404](https://github.com/mvanhorn/last30days-skill/pull/404), fixes [#403](https://github.com/mvanhorn/last30days-skill/issues/403)). Apostrophes in resolved context strings ("McDonald's", "people's choice") no longer break shell parsing. |
| 1474 | - `POSTS_PER_CLUSTER` raised 3→5 and render-side display limit 2→3 to match the per-source enrichment caps used by Reddit, HN, YouTube, TikTok, and GitHub. The previous caps routinely truncated cluster context. |
| 1475 | - Digg AI 1000 renamed to "Digg" in user-facing output ([#372](https://github.com/mvanhorn/last30days-skill/pull/372)) — footer line, source label, inline-quote suffix, why_relevant, container attribution. Internal references retain the upstream product name. |
| 1476 | - GitHub repo resolution canonicalized for ambiguous product comparisons ([#302](https://github.com/mvanhorn/last30days-skill/pull/302)). |
| 1477 | |
| 1478 | **Dependencies and tooling** |
| 1479 | |
| 1480 | - Dropped `requests` runtime dependency. All providers route through stdlib `urllib` via the `lib/http` wrapper ([#393](https://github.com/mvanhorn/last30days-skill/pull/393)). |
| 1481 | - Migrated to `gemini-3.1-flash-lite` GA model ([#378](https://github.com/mvanhorn/last30days-skill/pull/378)). |
| 1482 | - Aligned Codex/Claude plugin manifests + added Codex `AGENTS.md` ([#321](https://github.com/mvanhorn/last30days-skill/pull/321)). |
| 1483 | - pytest dev dep bumped 9.0.2 → 9.0.3 ([#414](https://github.com/mvanhorn/last30days-skill/pull/414)). |
| 1484 | |
| 1485 | ### Removed |
| 1486 | |
| 1487 | - **BREAKING for Codex native-plugin users:** `.codex-plugin/plugin.json` and the matching SKILL_ROOT resolver branch in SKILL.md Step 1 ([#400](https://github.com/mvanhorn/last30days-skill/pull/400)). Codex users should install via `npx skills add mvanhorn/last30days-skill` or copy the skill to `~/.codex/skills/last30days/`. |
| 1488 | - **`skills/last30days/scripts/sync.sh`** — maintainer dev-deploy script ([#405](https://github.com/mvanhorn/last30days-skill/pull/405)). Replaced by `npx skills add . -g -y` (live-symlink into every detected harness's skill dir — better than sync.sh's copy model since edits propagate live). Hermes uses `hermes skills install mvanhorn/last30days-skill --force`; OpenClaw uses `clawhub install last30days-official`. |
| 1489 | - Orphaned `SPEC.md` and `TASKS.md` ([#419](https://github.com/mvanhorn/last30days-skill/pull/419)). |
| 1490 | |
| 1491 | ### Fixed |
| 1492 | |
| 1493 | **Reddit** |
| 1494 | |
| 1495 | - `lstrip("r/")` mangled subreddits starting with `r` (`r/robotics` → `obotics`, `r/ruby` → `uby`); replaced with `removeprefix("r/")` at 4 sites (Alex Key, salvaged from #288). |
| 1496 | - Browser-like User-Agent + `Accept-Language`/`Accept-Encoding`/`Connection` headers + gzip decompression to fix `urllib` 403s on Reddit's public JSON endpoint (Franco Carballar, salvaged from #199). |
| 1497 | - HTTP 402 re-raised across all three ScrapeCreators paths (`_global_search`, `_subreddit_search`, `fetch_post_comments`) so the OpenAI/public-JSON fallback chain triggers when credits are exhausted (Jonathan Oppenheim, salvaged from #170). |
| 1498 | |
| 1499 | **Authentication and credentials** |
| 1500 | |
| 1501 | - Restored multi-key rotation for `SCRAPECREATORS_API_KEY` accidentally dropped in v3.0.6 (Eric Oberhofer, salvaged from #287). Comma-separated keys round-robin via `random.choice` per run. |
| 1502 | |
| 1503 | **Windows compatibility** |
| 1504 | |
| 1505 | - `os.killpg` in `_cleanup_children()` guarded with `hasattr(os, "killpg")`, falls back to `os.kill(SIGTERM)` (gujishh, salvaged from #226). |
| 1506 | - POSIX-style secret-permission warning skipped on Windows ([#357](https://github.com/mvanhorn/last30days-skill/pull/357)). |
| 1507 | - Render uses forward slashes in save-path footer for Windows ([#338](https://github.com/mvanhorn/last30days-skill/pull/338)). |
| 1508 | |
| 1509 | **xAI / X / xurl** |
| 1510 | |
| 1511 | - `parse_x_response` now raises `http.HTTPError` on empty output, missing JSON, or decode failure — surfaces in `errors_by_source` instead of silently returning an empty result list (Kaustav Mishra, salvaged from #155). |
| 1512 | - `xurl` treats `PermissionError` from PATH lookup as unavailable ([#322](https://github.com/mvanhorn/last30days-skill/pull/322)). |
| 1513 | |
| 1514 | **YouTube** |
| 1515 | |
| 1516 | - SC YouTube + multi-token HN searches unblocked ([#388](https://github.com/mvanhorn/last30days-skill/pull/388)). |
| 1517 | - Transcript-fetch ratio surfaced + degraded-run nudge for stale `yt-dlp` ([#340](https://github.com/mvanhorn/last30days-skill/pull/340)). |
| 1518 | |
| 1519 | **bird_x / HTTP** |
| 1520 | |
| 1521 | - Subprocess retry on non-JSON stdout to handle X anti-bot HTML interstitials ([#383](https://github.com/mvanhorn/last30days-skill/pull/383)). |
| 1522 | - HTTP retry budget expanded + exponential backoff on DNS resolution failure ([#382](https://github.com/mvanhorn/last30days-skill/pull/382)). |
| 1523 | - Parallel AI search aligned with current API schema ([#341](https://github.com/mvanhorn/last30days-skill/pull/341)). |
| 1524 | - Parallel web backend routed through grounding ([#354](https://github.com/mvanhorn/last30days-skill/pull/354)). |
| 1525 | |
| 1526 | **Planner and sources** |
| 1527 | |
| 1528 | - `xquik` registered in `SOURCE_CAPABILITIES` ([#336](https://github.com/mvanhorn/last30days-skill/pull/336), fixes [#319](https://github.com/mvanhorn/last30days-skill/issues/319)). |
| 1529 | - Honor explicit optional source requests ([#356](https://github.com/mvanhorn/last30days-skill/pull/356)). |
| 1530 | - ScrapeCreators source-gating aligned between code and docs ([#415](https://github.com/mvanhorn/last30days-skill/pull/415)). |
| 1531 | - OpenClaw works without ScrapeCreators key ([#392](https://github.com/mvanhorn/last30days-skill/pull/392), by @thinkun). |
| 1532 | |
| 1533 | **Render, version display, hosting paths** |
| 1534 | |
| 1535 | - Hardcoded `v3.0.0` in render replaced with dynamic `_skill_version()` ([#365](https://github.com/mvanhorn/last30days-skill/pull/365)). |
| 1536 | - Comparison HTML artifacts saved correctly ([#389](https://github.com/mvanhorn/last30days-skill/pull/389)). |
| 1537 | - `OPENROUTER_DEFAULT` model ID corrected ([#323](https://github.com/mvanhorn/last30days-skill/pull/323)). |
| 1538 | - OpenClaw poll-timing initialized once ([#358](https://github.com/mvanhorn/last30days-skill/pull/358)). |
| 1539 | - Prefer sandboxed Safari cookie path ([#343](https://github.com/mvanhorn/last30days-skill/pull/343)). |
| 1540 | - Preserve clean mode for last-run state ([#334](https://github.com/mvanhorn/last30days-skill/pull/334)). |
| 1541 | - Replaced hardcoded `/Users/mvanhorn/...` paths in `test-v1-vs-v2.sh` with portable env-var overrides (Dave Morin, salvaged from #297). |
| 1542 | |
| 1543 | **Hooks** |
| 1544 | |
| 1545 | - `check-config.sh` path-quoting fix for paths with spaces ([#337](https://github.com/mvanhorn/last30days-skill/pull/337)). |
| 1546 | - Replaced unsafe `eval` with `declare` in `check-config.sh` ([#364](https://github.com/mvanhorn/last30days-skill/pull/364)). |
| 1547 | |
| 1548 | **Sync and version metadata** |
| 1549 | |
| 1550 | - `sync.sh` pointed at this repo's plugin cache, not the private repo's ([#402](https://github.com/mvanhorn/last30days-skill/pull/402)). |
| 1551 | - Sync cache target bumped to 3.2.1 to match SKILL.md ([#397](https://github.com/mvanhorn/last30days-skill/pull/397)). |
| 1552 | - ScrapeCreators free-tier credit count corrected to 100 in docs ([#369](https://github.com/mvanhorn/last30days-skill/pull/369), fixes [#367](https://github.com/mvanhorn/last30days-skill/issues/367)). |
| 1553 | - Gemini extension version synced ([#349](https://github.com/mvanhorn/last30days-skill/pull/349)). |
| 1554 | - Various stale path/link fixes ([#345](https://github.com/mvanhorn/last30days-skill/pull/345), [#346](https://github.com/mvanhorn/last30days-skill/pull/346), [#347](https://github.com/mvanhorn/last30days-skill/pull/347), [#348](https://github.com/mvanhorn/last30days-skill/pull/348), [#351](https://github.com/mvanhorn/last30days-skill/pull/351)). |
| 1555 | |
| 1556 | ### Contributors |
| 1557 | |
| 1558 | First-time contributors whose fixes shipped in this release (most via PR triage salvage — fix re-applied directly to main with co-author credit when path migration made the original branch un-rebaseable): |
| 1559 | |
| 1560 | - Dave Morin — portable test-harness paths |
| 1561 | - Alex Key — `removeprefix("r/")` for subreddit names |
| 1562 | - Eric Oberhofer — multi-key rotation restored |
| 1563 | - gujishh — Windows process cleanup |
| 1564 | - Franco Carballar — Reddit browser-like headers |
| 1565 | - Jonathan Oppenheim — Reddit 402 fallback chain |
| 1566 | - Kaustav Mishra — xAI error surfacing |
| 1567 | - [@thinkun](https://github.com/thinkun) ([#363](https://github.com/mvanhorn/last30days-skill/pull/363)) — OpenClaw ScrapeCreators-key-optional fix |
| 1568 | |
| 1569 | Full PR list at [github.com/mvanhorn/last30days-skill/releases/tag/v3.3.0](https://github.com/mvanhorn/last30days-skill/releases/tag/v3.3.0). |
| 1570 | |
| 1571 | ## [3.2.0] - 2026-05-09 |
| 1572 | |
| 1573 | ### Added |
| 1574 | |
| 1575 | - Add `--emit=html` for shareable, print-friendly HTML research briefs. |
| 1576 | - **Digg AI 1000 source** (auto-enabled when `digg-pp-cli` is on PATH). Surfaces curated story clusters from the AI 1000 leaderboard and pulls attributable X-post quotes into the brief as `[@handle](xUrl) via Digg AI 1000: ...` lines. Footer line: `⛏️ Digg AI 1000: N clusters │ K posts │ M authors`. No X auth required for the inline quotes since they flow through Digg's read-only endpoints. |
| 1577 | |
| 1578 | ## [3.1.1] - 2026-04-24 |
| 1579 | |
| 1580 | ### Fixed |
| 1581 | |
| 1582 | - **Codex plugin layout.** Move the canonical runtime payload under `skills/last30days/` and update Codex/Claude plugin metadata and tests for the relocated engine path. |
| 1583 | - **Claude Code cache resolution.** Resolve Claude plugin installs to `skills/last30days/scripts/last30days.py` after the plugin-layout restructure. |
| 1584 | |
| 1585 | ## [3.1.0] - 2026-04-22 |
| 1586 | |
| 1587 | Consolidates the 3.0.10 to 3.0.14 dev cycle (commenter handles, `--competitors`, per-entity Step 0.55, vs-mode N passes, comparison title attribution) and republishes the OpenClaw bundle, which had been frozen on ClawHub at `3.0.0-open` since April 8. |
| 1588 | |
| 1589 | ### Added |
| 1590 | |
| 1591 | - **OpenClaw republish.** `clawhub install last30days-official` now resolves to `3.1.0-open`, matching current main. Closes [#307](https://github.com/mvanhorn/last30days-skill/issues/307), [#195](https://github.com/mvanhorn/last30days-skill/issues/195), [#236](https://github.com/mvanhorn/last30days-skill/issues/236). The ClawHub bundle had shipped a broken `env.py get_config()` and stale SKILL.md path references since April; both are fixed at source on main and the republish carries the fixes to installers. |
| 1592 | |
| 1593 | ### Fixed |
| 1594 | |
| 1595 | - **Claude Code plugin manifest path-escape.** The `.claude-plugin/plugin.json` `skills` key was removed in commit `93fbed2` but never shipped in a tagged release. Installing via `/plugin install last30days-skill` could hit `/doctor`'s `Path escapes plugin directory: ./ (skills)` error. This release ships the fix. Closes [#306](https://github.com/mvanhorn/last30days-skill/issues/306). |
| 1596 | - **Broken README link.** The README's "source of truth" link pointed at root `SKILL.md`, which is no longer maintained after the plugin-layout restructure. Fixed to point at `skills/last30days/SKILL.md`. |
| 1597 | |
| 1598 | ### Dev cycle journal (3.0.10 - 3.0.14, not separately tagged) |
| 1599 | |
| 1600 | Individual changelog entries for 3.0.10 through 3.0.14 below document the incremental work consolidated into this release. |
| 1601 | |
| 1602 | ## [3.0.14] - 2026-04-22 |
| 1603 | |
| 1604 | ### Changed |
| 1605 | |
| 1606 | - **Comparison-mode title attribution.** The synthesis title for vs-mode and `--competitors` outputs changes from `What the Community Says (Last 30 Days)` to `What the Community Says (/Last30Days)`. Surfaces the slash-command identity instead of restating the date range. Three SKILL.md occurrences updated; pure documentation change. |
| 1607 | |
| 1608 | ## [3.0.13] - 2026-04-22 |
| 1609 | |
| 1610 | ### Changed |
| 1611 | |
| 1612 | - **vs mode runs N full passes in parallel, one per entity.** Architectural revert of the 3-pass → 1-pass latency optimization from an earlier version. `/last30days "OpenAI vs Anthropic vs xAI"` now runs three full `pipeline.run()` calls in parallel via the same fanout `--competitors` uses, producing three `*-raw.md` save files plus a merged comparison output. Each entity gets its own Step 0.55-grade targeting, own primary X handle weight, own subreddit scoping — apples-to-apples depth instead of the one-pool merged retrieval the single-pass path produced. Parallel execution keeps wall clock ≈ single pass. |
| 1613 | - **`--competitors` is now a SKILL.md-level shortcut for vs-mode with auto-discovery.** The hosting reasoning model (Claude Code, Codex, Hermes, Gemini, any agent with WebSearch) performs discovery and Step 0.55 per entity via its own WebSearch tool, then invokes the engine with a vs-topic and `--competitors-plan` JSON. The engine flag remains for headless/cron use with BRAVE/EXA/SERPER/PARALLEL/OPENROUTER keys (engine-internal `auto_resolve` stays as fallback). |
| 1614 | - **LAW 7-style stderr for `--competitors` with no backend** now leads with the hosting-model path (WebSearch + Step 0.55 + `--competitors-plan`) instead of `BRAVE_API_KEY`. API-key framing moved to a secondary "headless" section. |
| 1615 | |
| 1616 | ### Added |
| 1617 | |
| 1618 | - **`--competitors-plan` JSON flag** for per-entity Step 0.55 targeting. Schema: `{entity_name: {x_handle?, x_related?, subreddits?, github_user?, github_repos?, context?}}`. Accepts inline JSON or a file path (matches `--plan`). When present for an entity, skips engine-internal `auto_resolve` and uses the provided values; missing fields fall back to `auto_resolve` (if backend) or planner defaults. Case-insensitive entity matching. The `subrun_kwargs_for` helper is the single source of truth for per-entity kwargs — no closure-default fallthrough from main scope. |
| 1619 | - **Per-entity save files** when `--save-dir` is set on a vs-mode or `--competitors` run. Each entity's sub-run produces its own `{slug}-raw.md` with a single-row Resolved Entities block — matches historical vs-mode behavior (N passes → N save files). |
| 1620 | - **`--polymarket-keywords "kw1,kw2"`** to filter Polymarket matches for ambiguous single-token topics (e.g., "Warriors" → `nba,gsw,golden-state` kills Glasgow Warriors rugby and Honor of Kings Rogue Warriors noise). |
| 1621 | |
| 1622 | ### Fixed |
| 1623 | |
| 1624 | - **BRAVE/SERPER footer nudge suppressed** when `--plan` or `--competitors-plan` is present. The nudge told Claude Code users to set an API key when they already have WebSearch via the hosting model. Nudge still fires for true headless runs (no `--plan`, no backend) where the advice is correct. |
| 1625 | - **Override-leak regression testing.** 3.0.12 already fixed the main-topic `--subreddits` / `--x-handle` / `--github-*` from leaking into peer sub-runs via explicit per-entity kwargs scrubbing. This release adds a 4-test regression suite (`test_competitor_subrun_isolation.py`) locking in the invariant. |
| 1626 | |
| 1627 | ## [3.0.12] - 2026-04-22 |
| 1628 | |
| 1629 | ### Fixed |
| 1630 | |
| 1631 | - **Per-entity Step 0.55 resolution for competitor sub-runs.** In 3.0.11, only the main topic got X handle / subreddit / GitHub resolution; competitor sub-runs ran with planner defaults and produced visibly thinner evidence (Reddit 403 fallbacks, single-word queries). Each competitor sub-run now calls `resolve.auto_resolve()` inside `fanout.run_competitor_fanout` when a web backend is available, mirroring the main topic's pre-flight resolution. Per-entity X handle, subreddit list, GitHub user/repos, and news context are threaded into each sub-run's `pipeline.run()` call. Deep-copied config per sub-run prevents `_auto_resolve_context` cross-leak. Surfaces in a new `## Resolved Entities` output block so the resolution coverage is visible without reading stderr. |
| 1632 | - **LAW 7 false-positive on internal fan-out sub-runs.** Each competitor sub-run was emitting the `[Planner] No --plan passed... YOU ARE the planner` stderr warning. LAW 7 targets the hosting-reasoning-model path, not engine-internal fan-out. New `internal_subrun=True` keyword on `planner.plan_query` and `pipeline.run` suppresses the warning for sub-runs only; the default path is unchanged. |
| 1633 | - **Marketplace-stale SKILL.md trap.** Added a STEP 0 canonical-path self-check at the top of SKILL.md. Two of three 2026-04-22 test runs loaded SKILL.md from `plugins/marketplaces/last30days-skill/` (Claude-Code-managed git clone pinned to origin/main, lagging the versioned cache), then ran `--help` against the same stale path, did not see `--competitors`, and fell back to a manual comparison plan. The STEP 0 block forces any reader to verify they loaded from `plugins/cache/last30days-skill/last30days/{VERSION}/SKILL.md` and re-read from the versioned cache if not. |
| 1634 | |
| 1635 | ### Changed |
| 1636 | |
| 1637 | - **Default `--competitors` count is now 2 (3-way total: original + 2 peers).** Previously 3. `--competitors=N` still customizes (range 1..6). Matches the feature description's canonical example (`Kanye vs Drake vs Kendrick`). |
| 1638 | |
| 1639 | ### Added |
| 1640 | |
| 1641 | - **`## Resolved Entities` block** in `render_comparison_multi` output. Shows per-entity X handle, subreddits, GitHub user/repos, and truncated context for every entity in the comparison. Block is omitted entirely when no entity has a resolved payload (mock mode, no backend). |
| 1642 | |
| 1643 | ## [3.0.11] - 2026-04-22 |
| 1644 | |
| 1645 | ### Added |
| 1646 | |
| 1647 | - **`--competitors` flag for auto-discovered comparison fan-out.** Pass `--competitors` on a single-entity topic and the engine discovers 2-6 peer entities via web search, then runs the full pipeline on each in parallel and emits one N-way comparison. `last30days Kanye West --competitors` resolves Drake, Kendrick Lamar, and one more peer. `last30days OpenAI --competitors` resolves Anthropic, xAI, Google Gemini. `--competitors=N` controls count, `--competitors-list="A,B,C"` skips discovery and uses the explicit list. Discovery mirrors the `auto_resolve` pattern (Brave / Exa / Serper / Parallel) with deterministic text extraction - no internal LLM call. Sub-runs inherit the main `--quick`/`--deep`/`--days`, run in a `ThreadPoolExecutor`, and degrade gracefully when at least 2 entities survive. Output reuses the existing 9-axis `## Head-to-Head` scaffold. |
| 1648 | |
| 1649 | ## [3.0.10] - 2026-04-21 |
| 1650 | |
| 1651 | ### Added |
| 1652 | |
| 1653 | - **Commenter handles on evidence lines.** Top-comment rendering now includes the commenter's handle - `u/author` for Reddit, `@handle` for TikTok/YouTube/Instagram/Bluesky/X/Threads. The enrichment adapters already captured `author`; the render layer just was not using it. Evidence lines change from `- Comment (6822 upvotes): Finally, John Apple` to `- u/Cyrisaurus (6822 upvotes): Finally, John Apple`. Person-level citations make synthesis-side inline markdown links per LAW 8 much more natural. Both the compact and full render paths are covered. |
| 1654 | |
| 1655 | ### Fixed |
| 1656 | |
| 1657 | - **TikTok author preference.** `_fetch_post_comments` in `scripts/lib/tiktok.py` preferred `user.nickname` over `user.unique_id`, so the engine captured display names ("Moosa Noormahomed") instead of @handles ("moosanoormahomed"). Flipped to prefer `unique_id`. Nickname still wins as a fallback when `unique_id` is missing. Display names can contain emoji, spaces, and non-Latin characters that do not round-trip to a profile URL; the @handle is the stable identifier. |
| 1658 | - **Single plugin payload layout.** The canonical runtime moved to `skills/last30days/` for both Claude Code and Codex plugin loading. Root-level `SKILL.md`, `scripts/`, `agents/`, and `assets/` are no longer maintained as duplicate copies. |
| 1659 | |
| 1660 | ### Behavior fallback |
| 1661 | |
| 1662 | - When an author is empty, `[deleted]`, or `[removed]`, the render falls back to the legacy `Comment (...)` shape - no `u/` or `@` prefix with an empty handle is ever emitted. |
| 1663 | |
| 1664 | ## [3.0.9] - 2026-04-18 - The Self-Debug Release |
| 1665 | |
| 1666 | ### Highlights |
| 1667 | |
| 1668 | v3.0.9 adds the engine-side Class 1 keyword-trap refuse-gate ("birthday gift for 40 year old" now gets a clarifying question, not 5 minutes of junk), promotes TikTok and YouTube top comments to the same first-class rendering Reddit's got, lands Hermes AI Agent as a first-class deploy target, and moves the SKILL.md formatting contract from line 1094 to the top of the file. |
| 1669 | |
| 1670 | "The Self-Debug Release" refers to how the fixes in 3.0.6-3.0.9 were written: 5 separate Opus 4.7 instances each debugged their own failed outputs. Three converged on "SKILL.md is too big and the LAWs are too deep." Two converged on "the engine should refuse demographic-shopping queries." I shipped exactly what they said. Validation: 5/5 canonical compliance. |
| 1671 | |
| 1672 | ### Added |
| 1673 | |
| 1674 | - **Engine Class 1 keyword-trap refuse-gate** (`scripts/lib/preflight.py`, new). Pattern-matches demographic-shopping queries at main() front-door. Exit code 2 with structured REFUSE message. Escape hatch: `LAST30DAYS_SKIP_PREFLIGHT=1`. 29 tests in `tests/test_preflight.py`. |
| 1675 | - **TikTok + YouTube top comments** rendered with same `💬 Top comment` prominence as Reddit's. Shipped in [#260](https://github.com/mvanhorn/last30days-skill/pull/260); enrichment fixed in [#265](https://github.com/mvanhorn/last30days-skill/pull/265). |
| 1676 | - **Hermes AI Agent as a deploy target** - thanks @stephenmcconnachie ([#228](https://github.com/mvanhorn/last30days-skill/pull/228)). `scripts/sync.sh` detects `~/.hermes/skills/research` and deploys automatically. |
| 1677 | - **Multi-key SCRAPECREATORS_API_KEY rotation** - thanks @zaydiscold ([#268](https://github.com/mvanhorn/last30days-skill/pull/268)). Set `SCRAPECREATORS_API_KEY_1`, `_2`, etc. Engine rotates on rate-limit. |
| 1678 | - **Offline quality evaluation fixture** - thanks @j-sperling ([#233](https://github.com/mvanhorn/last30days-skill/pull/233)). `eval_topics.json` lets contributors run quality regressions without burning live API credits. |
| 1679 | - **END-OF-CANONICAL-OUTPUT boundary** in `render_compact()`. Engine now emits an explicit pass-through instruction so re-synthesis requires actively ignoring a visible boundary. |
| 1680 | - **LAW 1 verbatim-pattern override.** LAW 1 now quotes the exact WebSearch tool-result reminder ("CRITICAL REQUIREMENT: MUST include Sources: section") and declares it OVERRIDDEN inside last30days output. |
| 1681 | |
| 1682 | ### Changed |
| 1683 | |
| 1684 | - **SKILL.md restructure.** VOICE CONTRACT LAWs and BADGE MANDATORY block moved from line 1094 to lines 75-150. Grounded in 3 separate Opus 4.7 self-debugs. |
| 1685 | - **Engine emits the badge as stdout.** `🌐 last30days v3.0.9 · synced YYYY-MM-DD` is the first line of every compact emit. Pass-through is now the default-correct behavior. |
| 1686 | - **Reddit client HTTP consolidation** - thanks @iliaal ([#207](https://github.com/mvanhorn/last30days-skill/pull/207)). Migrated to `http.get(params=...)` helper. |
| 1687 | - **ScrapeCreators header consolidation** - thanks @iliaal ([#209](https://github.com/mvanhorn/last30days-skill/pull/209)). `_sc_headers` refactored into `http.scrapecreators_headers`. |
| 1688 | - **Simpler Hermes sync.** `scripts/sync.sh` Hermes branch now always uses main SKILL.md (previously had a `.hermes-plugin/SKILL.md` fallback that created a wrong-file-capture hazard). |
| 1689 | |
| 1690 | ### Fixed |
| 1691 | |
| 1692 | - **Peter Steinberger trailing Sources leak.** 2026-04-18 validation failure where the model appended a TechCrunch / TED / Fortune / Wikipedia Sources list after the invitation. Now structurally prevented at three layers: engine emits the canonical body, LAW 1 quotes the exact WebSearch reminder, closing boundary names the anti-pattern. |
| 1693 | - **Wrong-file SKILL.md capture.** Deleted `.agents/skills/last30days/SKILL.md` (1382 lines, April 13 snapshot) and `.hermes-plugin/SKILL.md` (269 lines). One SKILL.md per plugin now, at the plugin root. |
| 1694 | - **GitHub date parsing garbage** - thanks @iliaal ([#208](https://github.com/mvanhorn/last30days-skill/pull/208)). `_parse_date` now rejects invalid input cleanly. |
| 1695 | - **Windows Bird X stability** - thanks @Chelebii ([#227](https://github.com/mvanhorn/last30days-skill/pull/227)). |
| 1696 | - **Linux `check_perms` false-warn** - thanks @george231224 ([#216](https://github.com/mvanhorn/last30days-skill/pull/216)). Uses GNU stat first. |
| 1697 | - **UTF-8 saved output** - thanks @Gujiassh ([#225](https://github.com/mvanhorn/last30days-skill/pull/225)). |
| 1698 | - **Version metadata alignment** - thanks @Gujiassh ([#217](https://github.com/mvanhorn/last30days-skill/pull/217)) and @shalomma ([#229](https://github.com/mvanhorn/last30days-skill/pull/229)). |
| 1699 | - **`--days` alias backcompat** - thanks @BryanTegomoh ([#230](https://github.com/mvanhorn/last30days-skill/pull/230)). |
| 1700 | - **`INCLUDE_SOURCES` env default** - thanks @hnshah ([#223](https://github.com/mvanhorn/last30days-skill/pull/223)). |
| 1701 | - **Bird X all-None engagement** - thanks @j-sperling ([#234](https://github.com/mvanhorn/last30days-skill/pull/234)). |
| 1702 | |
| 1703 | ### Contributors |
| 1704 | |
| 1705 | @j-sperling, @stephenmcconnachie, @zaydiscold, @iliaal, @Chelebii, @Gujiassh, @hnshah, @george231224, @shalomma, @BryanTegomoh for PRs since v3.0.0. @uppinote20, @zerone0x, @thinkun, @thomasmktong, @fanispoulinakisai-boop, @pejmanjohn, @zl190, @Jah-yee, @dannyshmueli, @Cody-Coyote for issues and PRs that shaped the v3 roadmap. |
| 1706 | |
| 1707 | ### Recovery |
| 1708 | |
| 1709 | ``` |
| 1710 | /plugin update last30days |
| 1711 | /reload-plugins |
| 1712 | ``` |
| 1713 | |
| 1714 | Verify: `cat ~/.claude/plugins/cache/last30days-skill/last30days/*/.claude-plugin/plugin.json | grep version` returns `"version": "3.0.9"`. |
| 1715 | |
| 1716 | Smoke test: `/last30days birthday gift for 40 year old` should ask a clarifying question before running. |
| 1717 | |
| 1718 | ## [3.0.5] - 2026-04-15 |
| 1719 | |
| 1720 | ### Added |
| 1721 | |
| 1722 | - **`/last30days` slash command for plugin users.** New `commands/last30days.md` registers a Claude Code slash command. Users type `/last30days <topic>` and Claude Code's autocomplete prefix-matches it to the canonical `/last30days:last30days` form (the same way `/ce:plan` resolves to `/compound-engineering:ce-plan`). The command delegates to the existing `last30days` skill body — no skill behavior changes. |
| 1723 | |
| 1724 | ### Removed |
| 1725 | |
| 1726 | - **`skills/last30days-nux/`** — byte-identical duplicate of root `SKILL.md` that created confusing `/last30days:last30days-nux` autocomplete entries via Claude Code's plugin namespacing. The root `SKILL.md` remains the canonical skill source. |
| 1727 | |
| 1728 | ### Recovery |
| 1729 | |
| 1730 | ``` |
| 1731 | /plugin update last30days |
| 1732 | /reload-plugins |
| 1733 | ``` |
| 1734 | |
| 1735 | Then type `/last30days <topic>` to invoke the skill via slash command. Natural-language invocation ("search the last 30 days for X") continues to work unchanged. |
| 1736 | |
| 1737 | ## [3.0.4] - 2026-04-15 |
| 1738 | |
| 1739 | ### Fixed |
| 1740 | |
| 1741 | - **Cleared `/doctor` path-escape error on Claude Code v2.1.109+.** `.claude-plugin/plugin.json` previously declared `"skills": ["./"]`. That value shipped unchanged from v2.1.0 through v3.0.3 and worked on older Claude Code, but current versions reject `./` with `Path escapes plugin directory: ./ (skills)`. The `"skills"` key is now omitted entirely, matching the pattern used by every other plugin in the Claude Code marketplace ecosystem. Claude Code auto-discovers `skills/*/SKILL.md` when the key is absent. |
| 1742 | |
| 1743 | ### Recovery |
| 1744 | |
| 1745 | If `/doctor` reports a path-escape error for last30days, run `/plugin update last30days` then `/reload-plugins`. If errors persist, uninstall and reinstall the plugin. |
| 1746 | |
| 1747 | ## [3.0.3] - 2026-04-15 |
| 1748 | |
| 1749 | ### Fixed |
| 1750 | |
| 1751 | - **Restored `skills/` and `.claude-plugin/` to the plugin install tarball.** v3.0.1 added `.gitattributes` rules that excluded both directories from `git archive` output to shrink the claude.ai `.skill` bundle. Claude Code's `/plugin install` fetches the same archive, so users installing v3.0.1 or v3.0.2 received a tarball with no plugin manifest and no skill files. `git archive v3.0.0` contained 8 files under those paths; `v3.0.1` and `v3.0.2` contained 0. This release reverts those `.gitattributes` lines. |
| 1752 | - **Reverted `plugin.json` `"skills"` field to `["./"]`.** v3.0.2 changed this to `["skills"]` based on a misdiagnosis — the manifest change had no effect because the manifest wasn't in the tarball at all. The historical `["./"]` value shipped in every release from v2.1.0 through v3.0.0 without issues and is restored here. |
| 1753 | |
| 1754 | ### Recovery |
| 1755 | |
| 1756 | Users on v3.0.1 or v3.0.2: run `/plugin update last30days` then `/reload-plugins`. If autoUpdate is enabled, the next session start will pull v3.0.3 automatically. Users on cached v3.0.0 or earlier installs were unaffected. |
| 1757 | |
| 1758 | ### Notes |
| 1759 | |
| 1760 | - The claude.ai `.skill` bundle built by `scripts/build-skill.sh` still works — the archive grew from 89 to 97 files, well under the 200-file cap. |
| 1761 | - claude.ai-specific exclusions (avoiding duplicate `SKILL.md` files in the bundle) should move into `scripts/build-skill.sh` rather than `.gitattributes` in a future release, since `.gitattributes` cannot distinguish between the two distribution channels. |
| 1762 | |
| 1763 | ## [3.0.2] - 2026-04-15 |
| 1764 | |
| 1765 | ### Fixed |
| 1766 | |
| 1767 | - **`/last30days` slash command now registers on Claude Code v2.1.105+.** `.claude-plugin/plugin.json` declared `"skills": ["./"]`, which newer Claude Code rejects with `Path escapes plugin directory: ./ (skills)`. The skill silently failed to register, so `/last30days <query>` returned "Unknown command" even though `/plugin list` showed the plugin as installed. Fix: `"skills": ["skills"]` so the loader scans the real skill subdirectory. |
| 1768 | - **Version drift between manifests.** `.claude-plugin/marketplace.json` was pinned to `3.0.0` while `.claude-plugin/plugin.json` advertised `3.0.1`. The `/plugin` resolver used the marketplace version and could install stale cached metadata alongside the correct build. Both manifests now agree on `3.0.2`. |
| 1769 | |
| 1770 | ### Recovery |
| 1771 | |
| 1772 | If `/last30days` stopped working for you, run `/plugin update last30days` then `/reload-plugins`. If `/doctor` still reports errors, uninstall and reinstall the plugin from the marketplace. |
| 1773 | |
| 1774 | ## [3.0.1] - 2026-04-14 |
| 1775 | |
| 1776 | ### Fixed |
| 1777 | |
| 1778 | - **Skill upload packaging** - `scripts/build-skill.sh` produces a claude.ai-upload-ready `.skill` file that fits under the 200-file cap. Previously, zipping the repo hit 406 files and the "Upload skill" UI rejected it outright. |
| 1779 | - **SKILL.md description length** - trimmed from 228 to 167 chars (Anthropic caps descriptions at 200). |
| 1780 | |
| 1781 | ### Removed |
| 1782 | |
| 1783 | - Unused root `vendor/` directory (215 files from an accidental commit in PR #48 - the real vendored X client lives at `scripts/lib/vendor/bird-search/`). |
| 1784 | - Legacy top-level `plans/` directory (superseded by `docs/plans/`; both plans described work that was already shipped in v3). |
| 1785 | |
| 1786 | ### Added |
| 1787 | |
| 1788 | - `.gitattributes` with `export-ignore` entries so `git archive` drops tests, docs, fixtures, assets, historical manifests, and internal skill subdirs. Mirrors Anthropic's canonical `package_skill.py` exclusions. |
| 1789 | - `scripts/build-skill.sh` - one-command path to produce `dist/last30days.skill` with a single top-level `last30days/` folder, defensive `=200` file check, and dirty-tree refusal. |
| 1790 | - `README.md` section documenting the claude.ai skill upload workflow. |
| 1791 | |
| 1792 | ## [3.0.0] - 2026-04-11 |
| 1793 | |
| 1794 | ### Highlights |
| 1795 | |
| 1796 | Intelligent search, fun judge, cross-source cluster merging, single-pass comparisons, and OpenClaw as a first-class citizen. The v3 engine doesn't just search for your topic -- it figures out *where* to search before the search begins. Engine architecture by @j-sperling. |
| 1797 | |
| 1798 | ### Added |
| 1799 | |
| 1800 | - **Intelligent pre-research** -- Resolves X handles, subreddits, TikTok hashtags, and YouTube channels via a new Python brain before any API calls fire. Bidirectional: person to company, product to founder. |
| 1801 | - **Fun judge / Best Takes** -- Second parallel LLM judge scores humor, cleverness, and virality. Surfaces the best reactions in a dedicated output section. |
| 1802 | - **Cross-source cluster merging** -- Entity-based overlap detection merges the same story across Reddit, X, YouTube into one cluster instead of three separate items. |
| 1803 | - **Single-pass comparisons** -- "X vs Y" runs one pass with entity-aware subqueries instead of three serial passes. 3 minutes instead of 12+. |
| 1804 | - **GitHub as a source** -- Stars, reactions, and comments from repos and issues. |
| 1805 | - **OpenClaw first-class citizen** -- Auto-resolve for engine-side pre-research. Device auth for frictionless ScrapeCreators signup. |
| 1806 | - **Per-author cap** -- Max 3 items per author prevents single-voice dominance. |
| 1807 | - **Entity disambiguation** -- Synthesis trusts resolved handles over keyword matches. |
| 1808 | - **Perplexity Sonar Pro as additive source** -- AI-synthesized research with citations via OpenRouter. Opt-in via `INCLUDE_SOURCES=perplexity`. Returns structured narratives that complement social data. |
| 1809 | - **Perplexity Deep Research** -- `--deep-research` flag for exhaustive 50+ citation reports (~$0.90/query). Premium opt-in for serious investigation. |
| 1810 | - **OpenRouter as reasoning provider** -- One OPENROUTER_API_KEY powers planning, reranking, and Perplexity search. Auto-detected after Gemini/OpenAI/xAI. |
| 1811 | - **Parallel AI grounding backend** -- `--web-backend parallel` or auto-detected via PARALLEL_API_KEY. |
| 1812 | - **Grounding in planner** -- Grounding source properly registered in SOURCE_CAPABILITIES instead of force-injected. |
| 1813 | |
| 1814 | ### Changed |
| 1815 | |
| 1816 | - YouTube transcript candidate pool widened 3x past music videos to reach talk/review content with captions |
| 1817 | - Reddit comment enrichment sorted by total engagement (upvotes + comments), not just upvotes |
| 1818 | - Polymarket display shows % odds only; dollar volumes removed |
| 1819 | - 852 tests passing |
| 1820 | |
| 1821 | ### Fixed |
| 1822 | |
| 1823 | - Marketplace validation: duplicate `name: last30days` collision in `skills/last30days/SKILL.md` caused strict validators to reject the plugin. Resolved by renaming the internal v3 architecture spec to `last30days-v3-spec` with `user-invocable: false`. Fixed in #214 (reported by @Cody-Coyote in #204). |
| 1824 | - Stale README link to the deleted `skills/last30days-v3/` path from the v3 directory rename. Fixed in #214. |
| 1825 | - OpenAI Codex CLI discoverability: added `.agents/skills/last30days/SKILL.md` as a real file (Codex's loader skips symlinked files) plus `.codex-plugin/plugin.json` as the namespace marker. The skill now registers as `last30days:last30days` when Codex runs in a checkout of the repo. Fixed in #219 (inspired by @Jah-yee in #153 and @dannyshmueli on X). |
| 1826 | |
| 1827 | ### Contributors |
| 1828 | |
| 1829 | - @j-sperling -- v3 engine architecture, Python pre-research brain |
| 1830 | - @hnshah -- Watchlist features |
| 1831 | - @Cody-Coyote -- Marketplace validation bug report (#204) |
| 1832 | - @Jah-yee -- Codex CLI integration inspiration (#153) |
| 1833 | |
| 1834 | ## [2.9.4] - 2026-03-06 |
| 1835 | |
| 1836 | ### Changed |
| 1837 | |
| 1838 | - Move save into Python script via `--save-dir` flag - raw research data saved during the existing script Bash call, zero extra tool calls after invitation |
| 1839 | - Remove entire "Save Research to Documents" section from SKILL.md (~45 lines removed) |
| 1840 | - No more `📎` footer, no Bash heredoc, no `(No output)`, no multi-minute cogitation after research |
| 1841 | |
| 1842 | ## [2.9.3] - 2026-03-06 |
| 1843 | |
| 1844 | ### Fixed |
| 1845 | |
| 1846 | - **Critical:** Switch save from `run_in_background` to foreground Bash - background callbacks caused model to re-engage, hallucinate fake user messages, and generate unsolicited multi-paragraph responses |
| 1847 | - Save uses foreground `cat >` heredoc (executes sub-second, no callback, no delayed notification) |
| 1848 | |
| 1849 | ## [2.9.2] - 2026-03-06 |
| 1850 | |
| 1851 | ### Fixed |
| 1852 | |
| 1853 | - Save research silently using background Bash heredoc instead of Write tool (eliminates "Wrote N lines..." clutter) |
| 1854 | - Suppress follow-up text after background save completes (no more "Research briefing saved..." noise) |
| 1855 | - Add `📎` footer line for save path instead of verbose confirmation |
| 1856 | |
| 1857 | ## [2.9.1] - 2026-03-05 |
| 1858 | |
| 1859 | ### Highlights |
| 1860 | |
| 1861 | Auto-save research briefings to the default memory directory as topic-named .md files. Every run now builds a personal research library automatically - no more manual copy-paste. |
| 1862 | |
| 1863 | ### Added |
| 1864 | |
| 1865 | - Auto-save complete research briefings (synthesis, stats, follow-up suggestions) to the default memory directory after every run |
| 1866 | - Kebab-case filename generation from topic (e.g., "Claude Code skills" -> `claude-code-skills.md`) |
| 1867 | - Duplicate topic handling: appends date suffix instead of overwriting (e.g., `claude-code-skills-2026-03-05.md`) |
| 1868 | - Agent mode (`--agent`) also saves research files |
| 1869 | - Brief confirmation after save with the saved file path |
| 1870 | |
| 1871 | ### Credits |
| 1872 | |
| 1873 | - [@devin_explores](https://x.com/devin_explores) -- Inspired this feature by sharing their workflow of saving every last30days run into organized .md files ([PR #51](https://github.com/mvanhorn/last30days-skill/pull/51)) |
| 1874 | |
| 1875 | ## [2.9.0] - 2026-03-05 |
| 1876 | |
| 1877 | ### Highlights |
| 1878 | |
| 1879 | ScrapeCreators Reddit as the default backend (one `SCRAPECREATORS_API_KEY` covers Reddit + TikTok + Instagram), smart subreddit discovery with relevance-weighted scoring, and top comments elevated with 10% scoring weight and prominent display. |
| 1880 | |
| 1881 | ### Added |
| 1882 | |
| 1883 | - ScrapeCreators Reddit backend (`scripts/lib/reddit.py`) — keyword search, subreddit discovery, comment enrichment, all via `api.scrapecreators.com` |
| 1884 | - Smart subreddit discovery with relevance-weighted scoring: frequency × recency × topic-word match, replacing pure frequency count |
| 1885 | - `UTILITY_SUBS` blocklist to filter noise subreddits (r/tipofmytongue, r/whatisthisthing, etc.) from discovery results |
| 1886 | - Top comment scoring: 10% weight in engagement formula via `log1p(top_comment_score)` |
| 1887 | - Top comment rendering: `💬 Top comment` lines with upvote counts in compact and full report output |
| 1888 | - Comment excerpt length increased from 300 → 400 chars; `comment_insights` limit raised from 7 → 10 |
| 1889 | |
| 1890 | ### Changed |
| 1891 | |
| 1892 | - `primaryEnv` switched from `OPENAI_API_KEY` to `SCRAPECREATORS_API_KEY` — one key now powers Reddit, TikTok, and Instagram |
| 1893 | - Reddit engagement scoring formula: `0.55/0.40/0.05` (score/comments/ratio) → `0.50/0.35/0.05/0.10` (score/comments/ratio/top-comment) |
| 1894 | - SKILL.md synthesis instructions updated to emphasize quoting top comments |
| 1895 | |
| 1896 | ### Fixed |
| 1897 | |
| 1898 | - Utility subreddit noise in discovery (e.g., r/tipofmytongue appearing for unrelated topics) |
| 1899 | - Reddit search no longer requires `OPENAI_API_KEY` — ScrapeCreators API handles search directly |
| 1900 | |
| 1901 | ## [2.8.0] - 2026-03-04 |
| 1902 | |
| 1903 | ### Highlights |
| 1904 | |
| 1905 | Instagram Reels as the 8th signal source, TikTok migrated from Apify to ScrapeCreators API, and SKILL.md quality improvements. One API key (`SCRAPECREATORS_API_KEY`) now covers both TikTok and Instagram. |
| 1906 | |
| 1907 | ### Added |
| 1908 | |
| 1909 | - Instagram Reels as 8th research source via ScrapeCreators API — keyword search, engagement metrics (views, likes, comments), spoken-word transcript extraction (`scripts/lib/instagram.py`) |
| 1910 | - `InstagramItem` dataclass, normalization, scoring (45% relevance / 25% recency / 30% engagement), deduplication, cross-source linking, and rendering |
| 1911 | - Instagram in SKILL.md: stats template (`📸 Instagram:`), citation priority, item format description, output footer |
| 1912 | - URL-to-name extraction examples in SKILL.md for cleaner web source display |
| 1913 | - `--search=instagram` flag support |
| 1914 | |
| 1915 | ### Changed |
| 1916 | |
| 1917 | - TikTok backend migrated from Apify to ScrapeCreators API (`api.scrapecreators.com`) |
| 1918 | - `APIFY_API_TOKEN` replaced by `SCRAPECREATORS_API_KEY` in config |
| 1919 | - SKILL.md version bumped to v2.8 |
| 1920 | - WebSearch citation instruction strengthened to prevent trailing Sources: blocks |
| 1921 | - Security section updated: Apify → ScrapeCreators references |
| 1922 | |
| 1923 | ### Fixed |
| 1924 | |
| 1925 | - Web stats line showing full URLs instead of plain domain names |
| 1926 | - Trailing "Sources:" block appearing after skill invitation (WebSearch tool mandate conflict) |
| 1927 | - Instagram/TikTok not running in web-only mode when `--search=instagram` used without Reddit/X |
| 1928 | - `$ARGUMENTS` quoting in SKILL.md for correct flag forwarding |
| 1929 | |
| 1930 | ## [2.1.0] - 2026-02-15 |
| 1931 | |
| 1932 | ### Highlights |
| 1933 | |
| 1934 | Three headline features: watchlists for always-on bots, YouTube transcripts as a 4th source, and Codex CLI compatibility. Plus bundled X search with no external CLI needed. |
| 1935 | |
| 1936 | ### Added |
| 1937 | |
| 1938 | - Open-class skill with watchlists, briefings, and history modes (SQLite-backed, FTS5 full-text search, WAL mode) (`feat(open)`) |
| 1939 | - YouTube as a 4th research source via yt-dlp -- search, view counts, and auto-generated transcript extraction (`feat: Add YouTube`) |
| 1940 | - OpenAI Codex CLI compatibility -- install to `~/.agents/skills/last30days`, invoke with `$last30days` (`feat: Add Codex CLI`) |
| 1941 | - Bundled X search -- vendored subset of Bird's Twitter GraphQL client (MIT, originally by @steipete), no external CLI needed (`v2.1: Bundle Bird X search`) |
| 1942 | - Native web search backends: Parallel AI, Brave Search, OpenRouter/Perplexity Sonar Pro (`feat(engine)`) |
| 1943 | - `--diagnose` flag for checking available sources and authentication status |
| 1944 | - `--store` flag for SQLite accumulation (open variant) |
| 1945 | - Conversational first-run experience (NUX) with dynamic source status (`feat(nux)`) |
| 1946 | |
| 1947 | ### Changed |
| 1948 | |
| 1949 | - Smarter query construction -- strips noise words, auto-retries with shorter queries when X returns 0 results |
| 1950 | - Two-phase search architecture -- Phase 1 discovers entities (@handles, r/subreddits), Phase 2 drills into them |
| 1951 | - Reddit JSON enrichment -- real upvotes, comments, and upvote ratio from reddit.com/.json endpoint |
| 1952 | - Engagement-weighted scoring: relevance 45%, recency 25%, engagement 30% (log1p dampening) |
| 1953 | - Model auto-selection with 7-day cache and fallback chain (gpt-4.1 -> gpt-4o -> gpt-4o-mini) |
| 1954 | - `--days=N` configurable lookback flag (thanks @jonthebeef, [#18](https://github.com/mvanhorn/last30days-skill/pull/18)) |
| 1955 | - Model fallback for unverified orgs (thanks @levineam, [#16](https://github.com/mvanhorn/last30days-skill/pull/16)) |
| 1956 | - Marketplace plugin support via `.claude-plugin/plugin.json` (inspired by @galligan, [#1](https://github.com/mvanhorn/last30days-skill/pull/1)) |
| 1957 | |
| 1958 | ### Fixed |
| 1959 | |
| 1960 | - YouTube timeout increased to 90s, Reddit 429 rate limit fail-fast |
| 1961 | - YouTube soft date filter -- keeps evergreen content instead of filtering to 0 results |
| 1962 | - Eager import crash in `__init__.py` that broke Codex environments |
| 1963 | - Reddit future timeout (same pattern as YouTube timeout bug) |
| 1964 | - Process cleanup on timeout/kill -- tracks child PIDs for clean shutdown |
| 1965 | - Windows Unicode fix for cp1252 emoji crash (thanks @JosephOIbrahim, [#17](https://github.com/mvanhorn/last30days-skill/pull/17)) |
| 1966 | - X search returning 0 results on popular topics due to over-specific queries |
| 1967 | |
| 1968 | ### New Contributors |
| 1969 | |
| 1970 | - @JosephOIbrahim -- Windows Unicode fix ([#17](https://github.com/mvanhorn/last30days-skill/pull/17)) |
| 1971 | - @levineam -- Model fallback for unverified orgs ([#16](https://github.com/mvanhorn/last30days-skill/pull/16)) |
| 1972 | - @jonthebeef -- `--days=N` configurable lookback ([#18](https://github.com/mvanhorn/last30days-skill/pull/18)) |
| 1973 | |
| 1974 | ### Credits |
| 1975 | |
| 1976 | - @galligan -- Marketplace plugin inspiration |
| 1977 | - @hutchins -- Pushed for YouTube feature |
| 1978 | |
| 1979 | ## [1.0.0] - 2026-01-15 |
| 1980 | |
| 1981 | Initial public release. Reddit + X search via OpenAI Responses API and xAI API. |
| 1982 | |
| 1983 | [3.0.9]: https://github.com/mvanhorn/last30days-skill/compare/v3.0.5...v3.0.9 |
| 1984 | [2.9.1]: https://github.com/mvanhorn/last30days-skill/compare/v2.9.0...v2.9.1 |
| 1985 | [2.9.0]: https://github.com/mvanhorn/last30days-skill/compare/v2.8.0...v2.9.0 |
| 1986 | [2.8.0]: https://github.com/mvanhorn/last30days-skill/compare/v2.6.0...v2.8.0 |
| 1987 | [2.1.0]: https://github.com/mvanhorn/last30days-skill/compare/v1.0.0...v2.1.0 |
| 1988 | [1.0.0]: https://github.com/mvanhorn/last30days-skill/releases/tag/v1.0.0 |
| 1989 |