auto-sync-opus46

This commit is contained in:
opus
2026-04-19 18:15:01 +02:00
parent c9bac8d895
commit 28744f2522
18 changed files with 520 additions and 5 deletions

View File

@@ -1,15 +1,15 @@
{
"generated_at": "2026-04-19T18:05:01.641181",
"generated_at": "2026-04-19T18:10:02.225190",
"stats": {
"total": 454,
"pending": 869,
"total": 455,
"pending": 871,
"kaouther_surfaced": 29,
"chrome_surfaced": 10,
"notif_only_done": 0,
"autofix_archived": 0,
"cerebras_archived": 0,
"older_3d_archived": 0,
"unknown": 415,
"unknown": 416,
"errors": 0
},
"actions": [

View File

@@ -0,0 +1,11 @@
{
"id": "task_20260419161002_01d914",
"name": "Blade self-heal 18:10",
"type": "powershell",
"command": "\n# Blade self-heal\nWrite-Host \"Self-heal triggered $(Get-Date)\"\n$agentProc = Get-Process powershell | Where-Object { $_.CommandLine -match 'sentinel-agent' }\nif (!$agentProc) {\n Write-Host \"Agent not running, starting...\"\n Start-Process powershell -ArgumentList \"-ExecutionPolicy\",\"Bypass\",\"-File\",\"C:\\ProgramData\\WEVAL\\sentinel-agent.ps1\" -WindowStyle Hidden\n}\n# Clear stale tasks > 3 days locally\n$cutoff = (Get-Date).AddDays(-3)\nGet-ChildItem \"C:\\ProgramData\\WEVAL\\tasks\\*.json\" -ErrorAction SilentlyContinue | Where-Object { $_.LastWriteTime -lt $cutoff } | Move-Item -Destination \"C:\\ProgramData\\WEVAL\\tasks\\archived\\\" -Force -ErrorAction SilentlyContinue\nWrite-Host \"Self-heal complete\"\n",
"cmd": "\n# Blade self-heal\nWrite-Host \"Self-heal triggered $(Get-Date)\"\n$agentProc = Get-Process powershell | Where-Object { $_.CommandLine -match 'sentinel-agent' }\nif (!$agentProc) {\n Write-Host \"Agent not running, starting...\"\n Start-Process powershell -ArgumentList \"-ExecutionPolicy\",\"Bypass\",\"-File\",\"C:\\ProgramData\\WEVAL\\sentinel-agent.ps1\" -WindowStyle Hidden\n}\n# Clear stale tasks > 3 days locally\n$cutoff = (Get-Date).AddDays(-3)\nGet-ChildItem \"C:\\ProgramData\\WEVAL\\tasks\\*.json\" -ErrorAction SilentlyContinue | Where-Object { $_.LastWriteTime -lt $cutoff } | Move-Item -Destination \"C:\\ProgramData\\WEVAL\\tasks\\archived\\\" -Force -ErrorAction SilentlyContinue\nWrite-Host \"Self-heal complete\"\n",
"priority": "high",
"status": "pending",
"created": "2026-04-19T16:10:02+00:00",
"created_by": "blade-control-ui"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -0,0 +1,235 @@
{
"start": "2026-04-19T18:12:24",
"tests": [
{
"name": "wtp",
"status": "OK"
},
{
"name": "q01",
"status": "OK",
"query": "max agents",
"expected": "\"agents_total\":39",
"matched": true
},
{
"name": "q02",
"status": "OK",
"query": "score nonreg",
"expected": "nonreg_score2",
"matched": true
},
{
"name": "q03",
"status": "OK",
"query": "nonreg current score",
"expected": "nonreg_live",
"matched": true
},
{
"name": "q04",
"status": "OK",
"query": "score autonomie",
"expected": "autonomy_kpi",
"matched": true
},
{
"name": "q05",
"status": "OK",
"query": "pages index",
"expected": "v79_pages_registry",
"matched": true
},
{
"name": "q06",
"status": "OK",
"query": "rescue orphelins",
"expected": "v81_rescue_orphelins",
"matched": true
},
{
"name": "q07",
"status": "OK",
"query": "point d entree",
"expected": "v82_point_entree",
"matched": true
},
{
"name": "q08",
"status": "OK",
"query": "autonomie status",
"expected": "v83_autonomie_status",
"matched": true
},
{
"name": "q09",
"status": "OK",
"query": "orphans audit",
"expected": "orphans_audit",
"matched": true
},
{
"name": "q10",
"status": "OK",
"query": "combien de stubs executed",
"expected": "stubs_count",
"matched": true
},
{
"name": "q11",
"status": "OK",
"query": "renouvelle token office 365",
"expected": "tips_office",
"matched": true
},
{
"name": "q12",
"status": "OK",
"query": "cree compte ia web selenium chrome",
"expected": "selenium_office_crea",
"matched": true
},
{
"name": "q13",
"status": "OK",
"query": "rotation tokens providers souverains",
"expected": "tip_token_rotation",
"matched": true
},
{
"name": "q14",
"status": "OK",
"query": "deepseek web cookies session",
"expected": "deepseek",
"matched": true
},
{
"name": "q15",
"status": "OK",
"query": "thuggie web session",
"expected": "selenium_thuggie_web",
"matched": true
},
{
"name": "q16",
"status": "OK",
"query": "reactivate office recovery yacineutt",
"expected": "office_recovery",
"matched": true
},
{
"name": "q17",
"status": "OK",
"query": "auto wire agent new",
"expected": "auto_wire_scan",
"matched": true
},
{
"name": "q18",
"status": "OK",
"query": "liste sessions wiki",
"expected": "list_sessions_wiki",
"matched": true
},
{
"name": "q19",
"status": "OK",
"query": "last commits",
"expected": "git_",
"matched": true
},
{
"name": "q20",
"status": "OK",
"query": "quelle version de wevia",
"expected": "wevia_version_info",
"matched": true
},
{
"name": "q21",
"status": "OK",
"query": "liste les sponsors",
"expected": "sponsors_list",
"matched": true
},
{
"name": "q22",
"status": "OK",
"query": "combien heure restante",
"expected": "uptime_server",
"matched": true
},
{
"name": "q23",
"status": "OK",
"query": "top processes live",
"expected": "top_procs_script",
"matched": true
},
{
"name": "q24",
"status": "OK",
"query": "statut blade yacineutt",
"expected": "blade_yacineutt",
"matched": true
},
{
"name": "q25",
"status": "OK",
"query": "etat des campagnes ethica",
"expected": "ethica",
"matched": true
},
{
"name": "q26",
"status": "OK",
"query": "combien de paperclip agents",
"expected": "paperclip_stats",
"matched": true
},
{
"name": "q27",
"status": "OK",
"query": "ou est le backup vault",
"expected": "vault_status",
"matched": true
},
{
"name": "q28",
"status": "OK",
"query": "ou sont les kpi finance",
"expected": "metriques_cles",
"matched": true
},
{
"name": "q29",
"status": "OK",
"query": "scan des tokens expires",
"expected": "growth_scan",
"matched": true
},
{
"name": "q30",
"status": "OK",
"query": "combien d orphelins",
"expected": "orphans",
"matched": true
},
{
"name": "autonomy-kpi",
"status": "OK",
"autonomy": 100,
"agents": 906,
"intents": 1263
},
{
"name": "js-errors",
"status": "OK",
"count": 0
}
],
"video_path": "f07c1ce6f5ebcc5e284f785263e20d1a.webm",
"end": "2026-04-19T18:12:39",
"summary": "33/33 PASS",
"six_sigma": true
}

52
api/v76-scripts/ollama_gen.sh Executable file
View File

@@ -0,0 +1,52 @@
#!/bin/bash
# ollama_gen.sh v2 · increased timeout for cold start
ACTION="${1:-ps}"
case "$ACTION" in
list|tags)
curl -sk --max-time 5 http://127.0.0.1:11434/api/tags
;;
ps)
curl -sk --max-time 5 http://127.0.0.1:11434/api/ps
;;
version)
curl -sk --max-time 5 http://127.0.0.1:11434/api/version
;;
pull)
MODEL="${2:-llama3.2}"
nohup curl -sk -X POST http://127.0.0.1:11434/api/pull \
-H "Content-Type: application/json" \
-d "{\"name\":\"$MODEL\",\"stream\":false}" \
--max-time 600 >/tmp/ollama-pull-$MODEL.log 2>&1 &
echo "{\"action\":\"pull\",\"model\":\"$MODEL\",\"pid\":$!,\"log\":\"/tmp/ollama-pull-$MODEL.log\",\"status\":\"started_background\"}"
;;
gen)
MODEL="${2:-llama3.2}"
PROMPT="${3:-Bonjour}"
# Longer timeout 120s + keep_alive 5m for warm model
curl -sk --max-time 120 -X POST http://127.0.0.1:11434/api/generate \
-H "Content-Type: application/json" \
-d "{\"model\":\"$MODEL\",\"prompt\":\"$PROMPT\",\"stream\":false,\"keep_alive\":\"5m\"}"
;;
warm)
MODEL="${2:-llama3.2}"
# Pre-load model into memory · future calls are instant
curl -sk --max-time 120 -X POST http://127.0.0.1:11434/api/generate \
-H "Content-Type: application/json" \
-d "{\"model\":\"$MODEL\",\"keep_alive\":\"30m\"}"
echo ""
echo "Model $MODEL warmed · kept alive 30m"
;;
pull_status)
MODEL="${2:-llama3.2}"
if [ -f "/tmp/ollama-pull-$MODEL.log" ]; then
tail -5 /tmp/ollama-pull-$MODEL.log 2>/dev/null
else
echo "No pull for $MODEL"
fi
;;
*)
echo "Usage: $0 {list|ps|version|pull [model]|gen [model] [prompt]|warm [model]|pull_status [model]}"
;;
esac

View File

@@ -0,0 +1,9 @@
#!/bin/bash
echo "Top 10 CPU consumers (ps aux):"
ps auxf --sort=-%cpu 2>/dev/null | head -11
echo
echo "Top 10 memory consumers:"
ps auxf --sort=-%mem 2>/dev/null | head -11
echo
echo "Load average live:"
uptime

View File

@@ -1,7 +1,7 @@
{
"ok": true,
"version": "V83-business-kpi",
"ts": "2026-04-19T16:09:46+00:00",
"ts": "2026-04-19T16:12:47+00:00",
"summary": {
"total_categories": 7,
"total_kpis": 56,

View File

@@ -3141,5 +3141,101 @@
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:09:57+00:00",
"source": "opus4-autowire-early-v2"
},
"250": {
"name": "ollama_pull_test",
"triggers": [
"pull ollama test",
"test ollama pull"
],
"cmd": "curl -sk http:\/\/127.0.0.1:11434\/api\/tags",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:10:09+00:00",
"source": "opus4-autowire-early-v2"
},
"251": {
"name": "top_processes",
"triggers": [
"top processes",
"qui consomme cpu",
"charge cpu top"
],
"cmd": "ps aux --sort=-%cpu | head -10",
"status": "PENDING_SECURITY_REVIEW",
"created_at": "2026-04-19T16:10:41+00:00",
"source": "opus4-autowire-early-v2"
},
"252": {
"name": "top_procs_script",
"triggers": [
"top processes live",
"qui consomme cpu",
"top cpu processes"
],
"cmd": "bash \/var\/www\/html\/api\/v76-scripts\/top-processes.sh",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:10:55+00:00",
"source": "opus4-autowire-early-v2"
},
"253": {
"name": "llama3_pull",
"triggers": [
"llama3 pull",
"pull llama3",
"download llama3",
"install llama3"
],
"cmd": "curl -sk http:\/\/127.0.0.1\/api\/v76-scripts-runner.php?script=ollama_gen&args=pull%20llama3.2",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:10:55+00:00",
"source": "opus4-autowire-early-v2"
},
"254": {
"name": "ollama_check",
"triggers": [
"ollama check",
"check ollama",
"llm local status"
],
"cmd": "bash \/var\/www\/html\/api\/v76-scripts\/ollama_gen.sh list",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:10:55+00:00",
"source": "opus4-autowire-early-v2"
},
"255": {
"name": "llama3_status",
"triggers": [
"llama3 status",
"pull status",
"llama3 progress"
],
"cmd": "bash \/var\/www\/html\/api\/v76-scripts\/ollama_gen.sh pull_status llama3.2",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:10:56+00:00",
"source": "opus4-autowire-early-v2"
},
"256": {
"name": "llama3_bonjour",
"triggers": [
"llama3 bonjour",
"llama3 test",
"llama3 hello"
],
"cmd": "bash \/var\/www\/html\/api\/v76-scripts\/ollama_gen.sh gen llama3.2 bonjour-wevia-test",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:11:23+00:00",
"source": "opus4-autowire-early-v2"
},
"257": {
"name": "llama3_sovereign",
"triggers": [
"llama3 sovereign",
"llama3 weval",
"local llm weval"
],
"cmd": "bash \/var\/www\/html\/api\/v76-scripts\/ollama_gen.sh gen llama3.2 weval-en-10-mots",
"status": "PENDING_APPROVAL",
"created_at": "2026-04-19T16:13:38+00:00",
"source": "opus4-autowire-early-v2"
}
}

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'llama3_bonjour',
'triggers' =>
array (
0 => 'llama3 bonjour',
1 => 'llama3 test',
2 => 'llama3 hello',
),
'cmd' => 'bash /var/www/html/api/v76-scripts/ollama_gen.sh gen llama3.2 bonjour-wevia-test',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:11:23+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,15 @@
<?php
return array (
'name' => 'llama3_pull',
'triggers' =>
array (
0 => 'llama3 pull',
1 => 'pull llama3',
2 => 'download llama3',
3 => 'install llama3',
),
'cmd' => 'curl -sk http://127.0.0.1/api/v76-scripts-runner.php?script=ollama_gen&args=pull%20llama3.2',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:10:55+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'llama3_sovereign',
'triggers' =>
array (
0 => 'llama3 sovereign',
1 => 'llama3 weval',
2 => 'local llm weval',
),
'cmd' => 'bash /var/www/html/api/v76-scripts/ollama_gen.sh gen llama3.2 weval-en-10-mots',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:13:38+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'llama3_status',
'triggers' =>
array (
0 => 'llama3 status',
1 => 'pull status',
2 => 'llama3 progress',
),
'cmd' => 'bash /var/www/html/api/v76-scripts/ollama_gen.sh pull_status llama3.2',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:10:56+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'ollama_check',
'triggers' =>
array (
0 => 'ollama check',
1 => 'check ollama',
2 => 'llm local status',
),
'cmd' => 'bash /var/www/html/api/v76-scripts/ollama_gen.sh list',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:10:55+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,13 @@
<?php
return array (
'name' => 'ollama_pull_test',
'triggers' =>
array (
0 => 'pull ollama test',
1 => 'test ollama pull',
),
'cmd' => 'curl -sk http://127.0.0.1:11434/api/tags',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:10:09+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'top_processes',
'triggers' =>
array (
0 => 'top processes',
1 => 'qui consomme cpu',
2 => 'charge cpu top',
),
'cmd' => 'ps aux --sort=-%cpu | head -10',
'status' => 'PENDING_SECURITY_REVIEW',
'created_at' => '2026-04-19T16:10:41+00:00',
'source' => 'opus4-autowire-early-v2',
);

View File

@@ -0,0 +1,14 @@
<?php
return array (
'name' => 'top_procs_script',
'triggers' =>
array (
0 => 'top processes live',
1 => 'qui consomme cpu',
2 => 'top cpu processes',
),
'cmd' => 'bash /var/www/html/api/v76-scripts/top-processes.sh',
'status' => 'PENDING_APPROVAL',
'created_at' => '2026-04-19T16:10:55+00:00',
'source' => 'opus4-autowire-early-v2',
);