Summary of Work Done

Updated routines-build/routines/local-mac/wordpress_draft_qa/ with a dedicated featured_media_metadata_audit.py read-only audit. The workflow now explicitly flags any WordPress page or post with visible hero/body imagery in content while featured_media / _thumbnail_id remains 0, outputs exact IDs and slugs, and explains that custom heroes do not satisfy featured-image metadata.

Wired the audit into run.py after the inlink workbook steps. Updated the routine CLAUDE.md output and QA sections so future runs expect the new report and the 2026-05-18 six-page regression check.

Added test_featured_media_metadata_audit.py with focused coverage for custom hero detection, zero featured-media flagging, and the six repaired IDs from 2026-05-18.

Verification Performed

New Report Output

The report checked 607 WordPress posts/pages with status publish, draft, or pending using read-only DB access plus wp post url verification.

Current visible-image plus featured_media=0 findings:

The report explains: custom hero/body imagery does not satisfy featured-image metadata. WordPress, social previews, schema consumers, and REST clients read featured_media / _thumbnail_id separately.

Six-page 2026-05-18 regression check: