Skip to content

feat: add structured failure telemetry#290

Draft
hubgan wants to merge 3 commits into
feat/telemetryfrom
feat/structured-failure-telemetry
Draft

feat: add structured failure telemetry#290
hubgan wants to merge 3 commits into
feat/telemetryfrom
feat/structured-failure-telemetry

Conversation

@hubgan

@hubgan hubgan commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Added central FAILURE_CODES and FailureSignal helpers in @argent/registry.
  • Attached structured, sanitized failure metadata across registry errors, tool-server tools/services, HTTP validation/dependency gates, installer flows, and argent run.
  • Added telemetry allowlisting for safe failure fields only: static error codes/stages, coarse area/kind/command, bounded exit codes, allowlisted signals/spawn codes, and coarse network failure classes.
  • Split CLI-local argent run failures into cli:run_fail so they are not double-counted as tool failures.
  • Added installer telemetry for failed package actions, update/uninstall failures, rules/agents copy results, and skill refresh results.
  • Made telemetry consent writes atomic and kept telemetry status side-effect free via peekAnonId().

Tests

  • Added/updated tests for registry failure signals, telemetry sanitization, registry listener forwarding, CLI run failure telemetry, HTTP preflight failure telemetry, and uninstall failure telemetry.

@hubgan hubgan changed the base branch from main to feat/telemetry June 2, 2026 15:03
@latekvo latekvo changed the base branch from feat/telemetry to main June 3, 2026 14:50
@latekvo latekvo changed the base branch from main to feat/telemetry June 3, 2026 15:00
@hubgan hubgan force-pushed the feat/structured-failure-telemetry branch from 079fcde to a9e5958 Compare June 9, 2026 09:08
@hubgan hubgan force-pushed the feat/structured-failure-telemetry branch from a9e5958 to 65af447 Compare June 11, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant