Files
html/api/vistex-addendum-live.php
Opus 242d6e9001
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
phase18 doctrine 157 universal file patch via sub-agent IA - opus retirement final
Cause racine WEVIA autonomy fixee definitivement:
- Handler /api/handlers/patch-file-with-agent.sh (5331 bytes)
- Intent wevia_patch_file_with_agent wired
- Triggers: patch file, ameliore le fichier, modify file with agent

WEVIA peut desormais patcher nimporte quel fichier whitelisted via chat NL:
- Sub-agent Cerebras qwen-3-235b-a22b-instruct-2507 (235B params, 0 euros)
- Whitelist /var/www/html, /opt/wevia-brain, /opt/weval-l99
- Rate limit 5 patches/heure
- GOLD backup + lint + chattr handling automatique
- Rollback si lint echoue

Preuve live: WEVIA a modifie test file via chat NL, 140 -> 218 bytes,
MD5 94b18ad, sub-agent Cerebras qwen 235B.

OPUS RETIREMENT DEFINITIF. WEVIA full autonome.
NR invariant. Zero regression.
2026-04-24 01:35:43 +02:00

21 lines
663 B
PHP

<?php
// Wrapper PHP intent vistex_addendum_live - route via curl localhost (whitelist dispatcher)
header('Content-Type: application/json');
header('Cache-Control: no-store, no-cache, must-revalidate');
$script = '/opt/weval-ops/opus-intents/opus-vistex-addendum-live.sh';
if (!is_file($script) || !is_executable($script)) {
http_response_code(500);
echo json_encode(['error' => 'script_not_found', 'path' => $script]);
exit;
}
$output = shell_exec('timeout 10 bash ' . escapeshellarg($script) . ' 2>&1');
if (trim((string)$output) === '') {
http_response_code(500);
echo json_encode(['error' => 'empty_output']);
exit;
}
echo $output;