fix: remediate QA P1s -- restore hooks, split board data provider, restore ARCHITECTURE.md
P1-1: Split class-board-data-provider.php (312 lines) into:
- class-board-data-provider.php (orchestrator + WP_Query columns, 185 lines)
- class-board-gen-log-query.php (raw gen_log DB queries, 184 lines)
Both files under 300-line cap. Proxy methods on the provider keep
existing callers and test suite working.
P1-2/P1-3: Restore ARCHITECTURE.md from origin/main as base, applying only
the intended M1 additions (board files, settings, ADR #22b). Zero
deletions from main: all 18 removed class entries, the Pipeline v2
substrate table docs (5 tables), the full fallback-detection section,
the stage vocabulary section, and all pre-existing ADRs are present.
P1-4: Restore Run_Reaper::on_cron hook registration in register_cron_hooks():
add_action('prautoblogger_reap_orphan_research_rows',
array('PRAutoBlogger_Run_Reaper', 'on_cron'))
Stuck-run sweep + audit-payload retention re-enabled.
P1-5: Restore on_check_db_version_for_cron() method + its init hook.
Cron schema self-heal mechanism re-enabled; protects against
silent migration failures on Hostinger where cron fires before
any admin page load post-deploy.
P2-1: Fix garbled docblock on on_ajax_generate_now() (was truncated
due to bash-mount write issue in prior session).
P2-2 (class-prautoblogger.php at ~400 lines): Carried. Requires
extraction of on_check_db_version() (~100 lines of migration logic)
into a dedicated PRAutoBlogger_DB_Migrations class. Non-trivial
refactor; no functional risk from deferring. Ticket: split-class-prautoblogger.
All PHP files written via Python to avoid bash-mount UTF-8 truncation.
ARCHITECTURE.md built from git show origin/main and augmented with M1
additions only -- purely additive diff vs main.
Agent-Session: engineer-prautoblogger-20260612-remediation
This commit is contained in:
Binary file not shown.
Reference in New Issue
Block a user