Improve anonymous OSS telemetry quality#823
Conversation
📊 Coverage gateThresholds from
✅ Gate passedNo surface regressed past the allowed threshold and the aggregate stayed above the floor. |
📐 Patch coverage gateThreshold: 80% on lines this PR touches vs
✅ Patch gate passedEvery surface whose lines were touched by this PR has patch coverage at or above the threshold. |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Reviewed and sanity-checked this end-to-end — looks good to merge. Beyond the unit tests, I actually booted the server with the telemetry endpoint pointed at a local capture server and watched the wire payloads:
Things I specifically went looking for and came back clean on:
|
Summary
AGENTFIELD_TELEMETRY_ENABLED=falseopt-outPrivacy and behavior
The hosted payload remains allowlisted and excludes prompts, execution payloads, raw errors, and raw execution/workflow/node identifiers. The identifier is pseudonymous and installation-scoped rather than person-scoped.
Telemetry remains best-effort and non-blocking. This change does not alter execution state transitions, API responses, storage behavior, or agent communication.
Validation
go test ./internal/observability ./internal/config ./internal/handlers ./cmd/agentfield-server -count=1AGENTFIELD_TELEMETRY_ENABLED=falsegit diff --checkLifecycle classification applies to events emitted by the existing execution paths; storage-only terminal transitions remain outside this patch.