The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
feat(harness): recognize Harness² (google-research/harness2) as harness2
Claude9e45548ce33e
diff --git a/pkg/asymptoteobserve/harness.go b/pkg/asymptoteobserve/harness.goindex 9f39b153..2ec811d3 100644--- a/pkg/asymptoteobserve/harness.go+++ b/pkg/asymptoteobserve/harness.go@@ -392,6 +392,25 @@ func NormalizeHarnessName(name string) string {lower == "kimi_code_acp" || lower == "kimi-code-acp" ||lower == "moonshot_kimi_code" || lower == "moonshot-kimi-code":return "kimi_code"+ // Harness² (google-research/harness2) is a framework that drives other agents rather than+ // being one: it refines an OpenCode or Codex executor's harness by running that executor over+ // benchmark tasks, many times per task. Beacon reads the trajectories it records under its runs+ // directory and files them under this one name, with the executor that produced each one kept+ // beside it, because the question a reader of these sessions asks first is "which of these+ // came from an experiment" rather than "which agent binary ran".+ //+ // Equality against a closed set rather than Contains(lower, "harness"), and the reason is a+ // different product. Harness (harness.io) is a CI/CD platform with its own `harness` CLI and+ // delegate, and "harness" is also what half the field calls the code around a model -- this+ // function's own name uses the word that way. A substring rule would file any of those under+ // this framework. Bare "harness" is therefore deliberately NOT in the set and falls to the+ // passthrough case, as a visible anomaly rather than a silent misattribution. The superscript+ // spelling is the project's own name for itself; "harness^2" is how it is typed without one.+ case lower == "harness2" || lower == "harness²" || lower == "harness^2" || lower == "harness_2" ||+ lower == "harness-2" || lower == "harness 2" || lower == "harness2_cli" || lower == "harness2-cli" ||+ lower == "google-research/harness2" || lower == "google_research/harness2" ||+ lower == "google_harness2" || lower == "google-harness2":+ return "harness2"case name != "":// An unrecognized runtime keeps its own name rather than being coerced or dropped. A new// harness should show up in the log as itself, not as "unknown".diff --git a/pkg/asymptoteobserve/harness_test.go b/pkg/asymptoteobserve/harness_test.goindex ba1807e3..76f63f17 100644--- a/pkg/asymptoteobserve/harness_test.go+++ b/pkg/asymptoteobserve/harness_test.go@@ -43,6 +43,9 @@ func TestHarnessSpellingsConvergeOnCanonicalNames(t *testing.T) {// kimi_code_cli is the client_type on every Kimi hook payload; it must agree with --platform kimi."kimi_code": {"kimi", "kimi_code", "kimi-code", "Kimi Code", "kimicode", "kimi_cli", "kimi-cli", "Kimi CLI", "kimi_code_cli","kimi-code-cli", "Kimi Code CLI", "kimi_code_acp", "kimi-code-acp", "moonshot_kimi_code", "moonshot-kimi-code"},+ // Harness² writes its own name with a superscript; the session collector writes harness2.+ "harness2": {"harness2", "Harness2", "Harness²", "harness^2", "harness_2", "harness-2", "Harness 2", "harness2_cli",+ "harness2-cli", "google-research/harness2", "google_research/harness2", "google_harness2", "google-harness2"},"": {"", " ", "\t"},} {for _, in := range spellings {@@ -61,7 +64,7 @@ func TestCanonicalNamesAreStableUnderRenormalization(t *testing.T) {"claude_code", "codex_cli", "codex_desktop", "gemini_cli", "antigravity_cli", "vscode_copilot","copilot_cli", "claude_web", "chatgpt_web", "claude_cowork", "claude_agent_sdk","openclaw_gateway", "pi_cli", "omp", "cline", "qwen_code", "prime_agent", "omo_senpi", "vercel_fx",- "muse_code", "openhands", "grok_bot", "kiro", "goose", "deepseek_harness", "kimi_code",+ "muse_code", "openhands", "grok_bot", "kiro", "goose", "deepseek_harness", "kimi_code", "harness2",} {if got := NormalizeHarnessName(canonical); got != canonical {t.Errorf("NormalizeHarnessName(%q) = %q; a canonical name must survive being normalized again", canonical, got)@@ -111,6 +114,10 @@ func TestLookalikeNamesAreNotAttributedToTheHarness(t *testing.T) {"deepseek.com", "deepseek_api", "DSH_HOME", "~/.dsh", ".dsh/skills", "dsh-runtime-sandbox", "dshield"},"kimi_code": {"kimi-k2", "kimi-k2.7-code", "kimi-for-coding", "moonshotai/kimi-k2.5", "moonshot-kimi-k2-instruct","kimi.com", "KIMI_API_KEY", "providers.kimi", "~/.kimi-code", "KIMI_CODE_HOME", "akimi"},+ // Harness (harness.io) is a CI/CD product with its own CLI, and "harness" is the generic word+ // for the code around a model. Harness² drives OpenCode and Codex, which keep their own names.+ "harness2": {"harness", "Harness", "harness.io", "harness-cli", "harness_cli", "harness-delegate", "harness_ci",+ "agent-harness", "harness3", "harness22", "harness2-runner", "HARNESS2_RUNS_DIR"},} {for _, name := range names {if got := NormalizeHarnessName(name); got == harness {