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:
24
server/internal/db/strain_memory_test.go
Normal file
24
server/internal/db/strain_memory_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestStrainMemoryInsertList(t *testing.T) {
|
||||
d, err := New(t.TempDir())
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Cleanup(func() { _ = d.Close() })
|
||||
|
||||
if err := d.InsertStrainMemory("a1", "sess-1", "docker", "#aabbcc", "skip_tier", "tier=docker", "reorder_tiers"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
rows, err := d.ListStrainMemory("a1", 10)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(rows) != 1 || rows[0].FailedTier != "docker" || rows[0].Strain != "#aabbcc" {
|
||||
t.Fatalf("rows=%+v", rows)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user