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
fix(tokens): keep factory_droid as an OTLP-only coverage row
Claude57762509630a
diff --git a/cli/beacon/internal/tokens/coverage.go b/cli/beacon/internal/tokens/coverage.goindex 795ef40e..daaddcd3 100644--- a/cli/beacon/internal/tokens/coverage.go+++ b/cli/beacon/internal/tokens/coverage.go@@ -104,6 +104,10 @@ var usageExpectation = map[string]struct {// (factorysession/mapper.go, emitSettingsUsage). Its OTLP export still contributes when it// carries the semconv names; the sync is the path Beacon reads Factory's own record from."factory": {ExpectReported, "beacon endpoint factory sync reads session settings totals; OTLP only if it emits GenAI semconv usage"},+ // The factory_droid spelling never comes from the sync, which writes harness "factory" and is+ // not normalized onto this name. It is what a Factory OTLP export can name itself, so it keeps+ // the generic-OTLP expectation rather than pointing at a command that cannot clear it.+ "factory_droid": {ExpectGenericOTLP, "only if it emits OTel GenAI semconv usage"},"gemini_cli": {ExpectGenericOTLP, "only if it emits OTel GenAI semconv usage"},"vscode_copilot": {ExpectGenericOTLP, "only if it emits OTel GenAI semconv usage"},diff --git a/cli/beacon/internal/tokens/coverage_test.go b/cli/beacon/internal/tokens/coverage_test.goindex 8b0919c6..4b59d75a 100644--- a/cli/beacon/internal/tokens/coverage_test.go+++ b/cli/beacon/internal/tokens/coverage_test.go@@ -466,6 +466,10 @@ func TestCoverageExpectationsMatchTheCaptureCode(t *testing.T) {{"openclaw_gateway", ExpectReported, "beacon endpoint integrations openclaw sessions sync"},// goose's chat spans carry the semconv names, but only over OTLP configured by hand.{"goose", ExpectGenericOTLP, "OTLP"},+ // The factory sync writes harness "factory"; "factory_droid" only arrives over OTLP, so+ // its note must not name a sync that can never report under that name.+ {"factory", ExpectReported, "beacon endpoint factory sync"},+ {"factory_droid", ExpectGenericOTLP, "semconv"},} {expect, reason := expectationFor(tc.harness)if expect != tc.expect {