From aa5a1de310d29d83a5cb450b3735bdac7dda863f Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:42:43 +0100 Subject: [PATCH] Require English in Jarvis request execution briefs --- website/integrations/osticket/dev-jarvis-form.php | 2 +- website/integrations/osticket/dev-jarvis-policy.php | 1 + website/integrations/osticket/tests/dev-jarvis-policy.test.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/website/integrations/osticket/dev-jarvis-form.php b/website/integrations/osticket/dev-jarvis-form.php index 951aee95..5d8e31e5 100644 --- a/website/integrations/osticket/dev-jarvis-form.php +++ b/website/integrations/osticket/dev-jarvis-form.php @@ -18,7 +18,7 @@ $render=function($key)use($jf,$values,$jc,$je){ ?>

A REQUEST IS NOT AN EXECUTED ACTION

J.A.R.V.I.S. request desk

Development bureau seal
-

Choose the execution route, identify the exact targets and define the evidence needed to finish. Your request is preserved in a private ticket. Approval does not issue a key or execute a change.

+

Use English. Choose the execution route, identify the exact targets and define the evidence needed to finish. Your request is preserved in a private ticket. Approval does not issue a key or execute a change.

1 · Route & destination

A supported data operation uses an existing Jarvis action. A browser or access problem does not turn it into a developer operation.

diff --git a/website/integrations/osticket/dev-jarvis-policy.php b/website/integrations/osticket/dev-jarvis-policy.php index ccd448ef..0916368f 100644 --- a/website/integrations/osticket/dev-jarvis-policy.php +++ b/website/integrations/osticket/dev-jarvis-policy.php @@ -104,6 +104,7 @@ function dune_jarvis_execution_brief($values) { $parts=['J.A.R.V.I.S. REQUEST v1 — '.dune_jarvis_routes()[$route],"State: REQUESTED / NOT EXECUTED. Ticket approval does not execute an operation.","Execution route\n".$steps[$route]]; foreach(dune_jarvis_fields()as$key=>[$label])if(($values[$key]??'')!=='')$parts[]=$label."\n".$values[$key]; if($route==='existing')$parts[]="Recorded action template version: ".($values['action_template_version']??'unknown')."\nTyped action parameters:\n".($values['action_parameters']??'{}'); + $parts[]='Language: use English for new user-facing text, documentation, ticket updates and completion reports. Preserve proper names and original quotations when needed.'; $parts[]='Completion requires actual results, preserved-record checks and an audit/receipt reference. Clearly distinguish planned, simulated, staged, deployed and executed. Never include a secret key in ticket text or attachments.'; return implode("\n\n",$parts); } diff --git a/website/integrations/osticket/tests/dev-jarvis-policy.test.php b/website/integrations/osticket/tests/dev-jarvis-policy.test.php index 6e361650..de63c989 100644 --- a/website/integrations/osticket/tests/dev-jarvis-policy.test.php +++ b/website/integrations/osticket/tests/dev-jarvis-policy.test.php @@ -27,6 +27,7 @@ $bad=valid_request();$bad['execution_state']='completed';[$v,$e]=dune_dev_valida check(str_contains(dune_dev_execution_brief(['objective'=>'Old request']),'Legacy request'),'Legacy ticket was reinterpreted as an executable instruction'); $original=['title'=>'Old title','objective'=>'Original request'];$copy=$original;dune_dev_execution_brief($original);check($original===$copy,'Legacy request data mutated'); $owner=['username'=>'unimatrix999','ranks'=>['owners']];check(dune_dev_owner($owner),'Existing owner approval changed');check(!dune_dev_owner(['username'=>'unimatrix999','ranks'=>['user']]),'Name alone gained owner authority'); +check(str_contains(dune_dev_execution_brief($v),'Language: use English'),'English execution requirement missing'); $dev=['username'=>'dev','ranks'=>['network_admin']]; check(dune_dev_team($dev)&&dune_dev_submitter($dev)&&dune_dev_priority_editor($dev),'Current Dev account cannot read/write Dev requests'); check(dune_dev_transition($dev,'complete','approved','Verified completion evidence attached.')==='completed','Dev cannot close approved work');