Add adversarial L4 court chamber with Seer court_debate feed.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Prosecutor and Public Defender use real fleet telemetry only; Judge dispatches L4 commands and emits full transcripts via seer_events and emberwake_court_debate when ai_control_enabled.
This commit is contained in:
32
server/internal/ai/surgical_commands.go
Normal file
32
server/internal/ai/surgical_commands.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package ai
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// ExpandSurgicalCommand maps surgical fix types to executable fleet commands.
|
||||
func ExpandSurgicalCommand(cmd Command) []Command {
|
||||
switch cmd.Type {
|
||||
case CmdSpreadRetryLane:
|
||||
return []Command{ResolveSpreadRetryLane(cmd.Args)}
|
||||
case CmdSkipTier:
|
||||
return []Command{ResolveSkipTier(cmd.Args)}
|
||||
case CmdPersonaTweak, CmdEnableErasure, CmdSpreadGraft:
|
||||
return []Command{cmd}
|
||||
default:
|
||||
return []Command{cmd}
|
||||
}
|
||||
}
|
||||
|
||||
// FormatSurgicalFixArgs serializes command args for strain memory storage.
|
||||
func FormatSurgicalFixArgs(cmd Command) string {
|
||||
if cmd.Args == nil {
|
||||
return ""
|
||||
}
|
||||
parts := make([]string, 0, len(cmd.Args))
|
||||
for k, v := range cmd.Args {
|
||||
parts = append(parts, fmt.Sprintf("%s=%v", k, v))
|
||||
}
|
||||
return strings.Join(parts, ",")
|
||||
}
|
||||
Reference in New Issue
Block a user