Protokoll #13344

ID13344
Zeitstempel2025-12-25 00:21:14.969853
Clientroot
IP145.224.72.140
Modellclaude-sonnet-4-20250514
Statuspending
Tokens361 (Input: 361, Output: 0)
Dauer-
Request-Zeit2025-12-25 00:21:14.969853
Response-Zeit-

Request

{
    "event": "PreToolUse",
    "tool_name": "Bash",
    "tool_input": {
        "command": "cd \/var\/www\/dev.campus.systemische-tools.de && php -r '\nrequire_once \"vendor\/autoload.php\";\n\nuse Infrastructure\\AI\\ScoringService;\n\n$scoring = new ScoringService();\n\n\/\/ Test 1: Neues Dokument (heute)\n$today = new DateTime();\n$score1 = $scoring->calculateScore(0.85, $today, 0.8);\n\n\/\/ Test 2: Altes Dokument (180 Tage)\n$oldDate = new DateTime(\"-180 days\");\n$score2 = $scoring->calculateScore(0.85, $oldDate, 0.8);\n\n\/\/ Test 3: Sehr altes Dokument (365 Tage) \n$veryOld = new DateTime(\"-365 days\");\n$score3 = $scoring->calculateScore(0.85, $veryOld, 0.8);\n\n\/\/ Test 4: Niedrige Authority\n$score4 = $scoring->calculateScore(0.85, $today, 0.2);\n\necho \"=== ScoringService Test ===\\n\";\necho \"Weights: \" . json_encode($scoring->getWeights()) . \"\\n\\n\";\necho \"Test 1 (neu, high auth):      \" . round($score1, 4) . \"\\n\";\necho \"Test 2 (180d alt, high auth): \" . round($score2, 4) . \"\\n\";\necho \"Test 3 (365d alt, high auth): \" . round($score3, 4) . \"\\n\";\necho \"Test 4 (neu, low auth):       \" . round($score4, 4) . \"\\n\\n\";\n\necho \"Erwartetes Ranking: Test1 > Test4 > Test2 > Test3\\n\";\necho \"Tatsächlich: \";\n$scores = [$score1, $score4, $score2, $score3];\n$sorted = $scores;\nrsort($sorted);\necho ($scores === $sorted ? \"✓ KORREKT\" : \"✗ FALSCH\") . \"\\n\";\n'",
        "description": "Test ScoringService directly"
    }
}

Response

-
← Vorheriger Zur Liste Nächster →