v0.3.0 — cost accountability + LLM call audit trail (#7)
Per-call recording of cost and I/O for every LLM probe. New tables prv_call_meta (schema v3) and prv_call_io. New admin pages: Costs (spend drill-down vs $5 cap) and Call Log (paginated + detail drawer). 90-day I/O retention prune via prv_daily_prune cron. P0 security: key never stored; gateway client exposes HTTP status only.
QA APPROVED 2026-06-15 SHA 09dc6db9ce
This commit is contained in:
@@ -19,6 +19,7 @@ declare(strict_types=1);
|
||||
*
|
||||
* @see class-prv-table-manager.php — Database schema creation.
|
||||
* @see class-prv-cron.php — Cron scheduling.
|
||||
* @see class-prv-prune-cron.php — Daily prune cron (v0.3.0).
|
||||
* @package PrVision
|
||||
*/
|
||||
class PRV_Activator {
|
||||
@@ -32,7 +33,12 @@ class PRV_Activator {
|
||||
*/
|
||||
public static function activate(): void {
|
||||
PRV_Table_Manager::create_table();
|
||||
// v0.3.0: per-call audit trail tables.
|
||||
PRV_Call_Meta_Table::create_table();
|
||||
PRV_Call_Io_Table::create_table();
|
||||
PRV_Config::seed_defaults();
|
||||
PRV_Cron::schedule_weekly();
|
||||
// v0.3.0: daily prune cron for prv_call_io.
|
||||
PRV_Prune_Cron::schedule();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user