SIMON Master Console Rebuild
True command center for SIMON + WEB360
This rebuild gives you a cleaner production spine: interactive tree, live viewer, guarded editor, dynamic graphics, architecture map, and note storage. It is designed to sit beside your existing
console.php
and become the stronger replacement path.
Dashboard
Tree
Viewer
System Map
File Registry
Notes
Files
15,432
Folders
437
Scanned Size
3.85 GB
PHP Files
996
Editable Text Files
12,680
File viewer
guarded to /htdocs
/si/business/communications-policy.php
<?php declare(strict_types=1);require_once __DIR__.'/bootstrap.php'; function si_policy_decide(array $context):array{ $settings=si_business_settings();$known=(bool)($context['approved']??false);$subject=strtolower(trim((string)($context['subject']??$context['body']??'')));$urgent=si_business_is_urgent($subject);$debt=str_contains($subject,'debt')||str_contains($subject,'collection');$explicit=str_contains($subject,'keith')||str_contains($subject,'transfer'); $action='handle';$reason='SI may handle ordinary business communication.'; if($debt){$action='record_and_relay';$reason='Debt-collection contacts are documented and are not transferred.';} elseif($urgent){$action='urgent_escalation';$reason='Urgent language requires immediate notification.';} elseif($known&&$explicit){$action='qualify_for_transfer';$reason='Approved caller explicitly requested Keith; SI must verify the reason.';} elseif(!$known&&$explicit){$action='take_message';$reason='Unapproved callers cannot connect directly to Keith.';} return ['action'=>$action,'reason'=>$reason,'priority'=>$urgent?'urgent':($explicit?'high':'normal'),'approved_caller'=>$known,'keith_final_escalation'=>(bool)$settings['keith_is_final_escalation'],'known'=>$known?'Known approved caller':'Unknown or unapproved caller','assumed'=>[],'unknown'=>[]]; }
Save file
Quick jump
open a path
Open