Refactor runtime around world core

This commit is contained in:
lpf
2026-03-15 23:46:06 +08:00
parent ba95aeed35
commit afae9076df
79 changed files with 6526 additions and 6960 deletions

View File

@@ -11,7 +11,7 @@ func TestSkillExecWriteAuditIncludesCallerIdentity(t *testing.T) {
workspace := t.TempDir()
tool := NewSkillExecTool(workspace)
tool.writeAudit("demo", "scripts/run.sh", "test", "coder", "subagent", true, "")
tool.writeAudit("demo", "scripts/run.sh", "test", "coder", "agent", true, "")
data, err := os.ReadFile(filepath.Join(workspace, "memory", "skill-audit.jsonl"))
if err != nil {
@@ -21,7 +21,7 @@ func TestSkillExecWriteAuditIncludesCallerIdentity(t *testing.T) {
if !strings.Contains(text, `"caller_agent":"coder"`) {
t.Fatalf("expected caller_agent in audit row, got: %s", text)
}
if !strings.Contains(text, `"caller_scope":"subagent"`) {
if !strings.Contains(text, `"caller_scope":"agent"`) {
t.Fatalf("expected caller_scope in audit row, got: %s", text)
}
}