Reject weak or unreachable source images, auto-promote lead cards for
structure audit, and relax push gates while keeping text-only cards.
Co-authored-by: Cursor <cursoragent@cursor.com>
Integrate news002 image localization and compact wechat layout from main
while keeping SearXNG fallback enrichment in the draft worker.
Co-authored-by: Cursor <cursoragent@cursor.com>
Drop story cards without real images from HTML and WeChat drafts instead
of showing ph placeholders, and remove emptied sections for layout balance.
Co-authored-by: Cursor <cursoragent@cursor.com>
After enrichment fails to resolve og:image, swap out imageless story cards
with SearXNG candidates before the image gate rejects the draft.
Co-authored-by: Cursor <cursoragent@cursor.com>
Allow no-image candidates and create missing section shells so news002
image gate can pass after source-page enrichment on thin agent output.
Co-authored-by: Cursor <cursoragent@cursor.com>
When the post-generation audit fails, supplement missing core sections,
headlines, and brief items from prefetched SearXNG groups before re-running
image enrichment and the push gate.
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace all references to the previous Portal host 180.159.29.143 with
114.85.107.50 across release scripts, safety gates, runbooks, and docs.
Also add scripts/push-wechat-news-morning-draft-now.mjs for direct draft
push without waiting on the worker poll interval.
Co-authored-by: Cursor <cursoragent@cursor.com>
Trying to push a WeChat draft locally surfaced two problems.
isNewsMorningContentDegraded matched cards with `class="card(?:\s|")`, which
never matches news002's `class="lead-card"`. Headline cards were therefore
invisible to the check, so a healthy news002 page could be flagged as degraded
and regenerated. Count cards through the shared extractor instead, which
handles card, lead-card and highlight-box alike.
Add scripts/dryrun-news-morning-draft.mjs to run a page through the dedup gate,
degradation check, inline conversion and footer layout without calling the
WeChat API, since local IPs are not in the official account whitelist
(errcode 40164) and a real push would write into the production draft box.
Co-authored-by: Cursor <cursoragent@cursor.com>
Freeze the 2026-09-18 layout as news001 and add news002 alongside it.
Analysis of the 0918 production page found 49 news cards covering only ~20
distinct events (4x "王毅同鲁比奥通电话", 5x "东博会南宁开幕"), citing just 7
URLs that are all section landing pages rather than article permalinks, with
zero images. The root cause is structural: 23 fixed sections with fixed card
quotas force padding when the day yields fewer events.
news002 changes the contract so events decide sections, not the reverse:
core sections always render, flex sections are dropped entirely when they have
no unused event, total story cards are capped at 28, and every card carries a
data-event-key fingerprint.
Add wechat-news-morning-dedup.mjs as a post-generation gate, since the prompt
level "no duplicates" rule is unverifiable. It dedupes by event key, then by
article permalink (deliberately ignoring section landing pages, which would
otherwise delete most of the page), then by CJK bigram title similarity, since
the existing whitespace-tokenised matcher does not work on Chinese titles.
Carry per-item images through normalizeSearchResult into the prefetch brief so
cards can render real article thumbnails with a placeholder fallback.
Teach the WeChat inline converter both DOM variants (lead-card, masthead meta,
lede). Per-card images in the WeChat draft body remain a known gap.
Template selection is config/env driven and still defaults to news001.
Co-authored-by: Cursor <cursoragent@cursor.com>
Record the merged chat-intent work as closed, and mark the leftover local news-morning branch as not reusable.
Co-authored-by: Cursor <cursoragent@cursor.com>
Close the chat-session dead zone without flipping production flags: record 0.72 fallbacks, stop C-2 from treating「先聊聊」as execute, and promote「不对你去执行」after a completed direct turn on both h5direct and date sessions.
Co-authored-by: Cursor <cursoragent@cursor.com>
Finalize the approved 2026-09-18 refined briefing as the production layout and SEO reference for future auto-generation.
Co-authored-by: Cursor <cursoragent@cursor.com>
Default open WeChat draft comments, add SEO/visual template rules with h2 sections and mindspace-geo, and compress inline styles to pack more cards within the 20k HTML budget.
Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the trending/hot search lane and section, forbid stats summary in page spec, and stop injecting card/section counts into WeChat inline articles.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expand SearXNG prefetch and template with four English-friendly sections so daily news can surface global headlines without copying stale archives.
Co-authored-by: Cursor <cursoragent@cursor.com>
Treat deferred/skipped customer-service sends as failures so reminder worker
does not mark reminders sent, and add a 103 read-only health check script.
Co-authored-by: Cursor <cursoragent@cursor.com>
Align static delivery route inventory with the learn standalone pages mount
so fast-release guard tests pass on feature/learn-standalone-pages.
Co-authored-by: Cursor <cursoragent@cursor.com>
Background page list sync was calling syncAndDeliver over the remote adapter,
which could exceed the 60s timeout for heavy users and block Portal. Route list
sync through pageSyncService only via listSync while keeping full delivery on
Finish and agent-run paths.
Co-authored-by: Cursor <cursoragent@cursor.com>
Serve lightweight child/parent learning assistant pages at /learn without
MindSpace injection, with a rebuild script and Portal static route.
Co-authored-by: Cursor <cursoragent@cursor.com>