fix: restore 3 bootstrap constants dropped in v0.19.0 — admin 500 hotfix (v0.20.1)

Prod incident 2026-06-12: all plugin admin pages 500'd after the v0.20.0
deploy (Undefined constant PRAUTOBLOGGER_DEFAULT_RUN_CEILING_USD then
..._REQUEST_JSON_RETENTION_DAYS at class-activator.php:71-72 on the
migration path). Root cause: PR #156 (v0.19.0) deleted the v0.18.x trio
from the constants block; tests/bootstrap.php fallbacks masked it in CI.
Values restored verbatim from v0.18.3 (22ae7e7). Prod hot-patch applied
15:1x UTC, verified (board+dossier 200, db 1.3.0); this makes it canonical.

Agent-Session: cto-constants-hotfix-20260612
This commit is contained in:
peptiderepo
2026-06-12 15:23:06 +00:00
parent 2d641153c7
commit 9366a017b8
2 changed files with 24 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
* Plugin Name: PRAutoBlogger
* Plugin URI: https://peptiderepo.com/prautoblogger
* Description: Monitors social media for trending topics, generates SEO-friendly blog posts using AI, and publishes them on a daily schedule with full cost tracking and self-improvement metrics.
* Version: 0.20.0
* Version: 0.20.1
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: PeptideRepo
@@ -35,8 +35,16 @@ if ( ! defined( 'ABSPATH' ) ) {
| Defined here so every file in the plugin can reference paths, versions,
| and limits without magic strings.
*/
define( 'PRAUTOBLOGGER_VERSION', '0.20.0' );
define( 'PRAUTOBLOGGER_VERSION', '0.20.1' );
define( 'PRAUTOBLOGGER_DB_VERSION', '1.3.0' );
define( 'PRAUTOBLOGGER_DEFAULT_RUN_CEILING_USD', 0.50 );
define( 'PRAUTOBLOGGER_DEFAULT_REQUEST_JSON_RETENTION_DAYS', 14 );
// v0.18.1: ceiling on "thinking" tokens per reasoning-enabled LLM call. The
// request's completion budget (max_tokens) is RAISED by this amount so
// reasoning can never consume the visible-content budget and return an empty
// message (the 2026-06-11 empty-draft incident). SETTINGS-backed
// (prautoblogger_reasoning_max_tokens); 0 disables the cap (pure effort mode).
define( 'PRAUTOBLOGGER_DEFAULT_REASONING_MAX_TOKENS', 2048 );
define( 'PRAUTOBLOGGER_PLUGIN_FILE', __FILE__ );
define( 'PRAUTOBLOGGER_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'PRAUTOBLOGGER_PLUGIN_URL', plugin_dir_url( __FILE__ ) );