hardening 2.2: 2meet-data-optimizer 1.2.0 (drift detection, scope, CLI and diagnostics) #6
Reference in New Issue
Block a user
Delete Branch "hardening/2.2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hardening 2.2 for
2meet-data-optimizer(1.2.0). Continues the search-index mode of ADR-004 (Release 2.2 design section added). Pairs with HivePress AddOn 0.3.0 and WooCommerce AddOn 0.2.0.Summary
wp tmdo drift-check <entity> [--group] [--sample] [--fix](miss / diff / extra per key, rebuild from native, never in aeav_only); the post router keeps a group native while it is recorded as drifting; daily sample on the health-check event; full--fix60 s after an entity leavesdisabledor the Hook Bus is switched back on (tmdo_drift_resync). (PR-070〜074, 073b)post/wc_productno longer registered (WooCommerce meta stays native). (PR-077)bridge-mode,member-backfill --all, backfill groups from the registry (json groups included),cleanup-hp-transients --options. (PR-067〜069, 080)Acceptance on dev36 (100k listings):
dev30/notes/tmdo-acceptance-2.2-2026-09-27.md. Backlog:dev30/notes/pr-backlog.md(PR-066〜089).Test plan
composer test698, integration 572, phpcs 0, stan OKcleanup-hp-transients --options --confirm,bridge-restore-native post --group=wc_product --retire, firstdrift-checkper entity (CHANGELOG 升級後)Known, not addressed: keyword + filter searches are slower routed (COUNT cache key busted by HivePress's random
post__not_in; since 2.1) — candidate for 2.3.- The four public REST routes say why they are public (viewable posts only, show_in_rest fields only, per_page cap, one view per IP per post per hour). - Admin ternary echoes of literal strings are escaped for their context: esc_attr() in attributes, esc_html() for text; the object-cache badge is an if/else and aria-current is always printed ("false" off the current tab). - Exceptions in the migration engine and the health cron go to TMDO_Logger instead of error_log(). - Verify: audit greps (ternary echoes 23 → 0, error_log outside the logger 0); dev36 renders 8 admin tabs with the change, no PHP notice, one aria-current="page" each. - PR: PR-078