Write down the routing every bug so far produced, and check it without asking the model
This commit is contained in:
@@ -131,7 +131,13 @@ function vv_ai_profile_can(string $profile, string $cap): bool {
|
||||
// a class of question that is neither answered nor deferred.
|
||||
function vv_ai_chat_needs_varaverk(string $question): bool {
|
||||
return vv_ai_mentions_varaverk($question)
|
||||
|| (bool)preg_match('/\b[\w.-]+\.sh\b|\b[A-Z][A-Z0-9]*(_[A-Z0-9]+)+\b/', $question);
|
||||
|| (bool)preg_match('/\b[\w.-]+\.sh\b|\b[A-Z][A-Z0-9]*(_[A-Z0-9]+)+\b/', $question)
|
||||
// Naming something that has a log is as Varaverk-specific as naming a script file, and
|
||||
// this is how an operator actually refers to them: "the daily orch", not
|
||||
// "daily_sync_maintenance.sh". Without this, "how did the daily orch go" asked in General
|
||||
// Chat was refused correctly and then went nowhere — the refusal is right, but the
|
||||
// question was answerable one profile up and the handoff could not see that.
|
||||
|| vv_ai_resolve_run_target($question) !== '';
|
||||
}
|
||||
|
||||
function vv_ai_config(): array {
|
||||
|
||||
Reference in New Issue
Block a user