# PM-030: Opt-in Telemetry System

**Status:** completed
**Spec:** `.agents/spec-docs/done/PM-030-opt-in-telemetry.md`

## Tasks

- [x] Create `packages/agent-cli/src/startup/telemetry.ts`
- [x] Update `packages/agent-cli/src/startup/first-run.ts` — add promptTelemetryOptIn
- [x] Update `packages/agent-cli/src/cli.ts` — call telemetry opt-in during first run
- [x] Add `robota config set telemetry` handling in preflight
- [x] Write unit tests (TC-01 through TC-04)

## Evidence Log

### [GATE-IMPLEMENT] — 2026-05-25

- Spec moved to active/
- Task file created
- Status: in-progress

### [GATE-VERIFY] — ✅ PASS | 2026-05-25

- `pnpm --filter @robota-sdk/agent-cli test` — 123 passed | 1 skipped | 0 failed
- All TC-01 through TC-04 verified via unit tests in `src/startup/__tests__/telemetry.test.ts`

### [GATE-COMPLETE] — ✅ PASS | 2026-05-25

- All gates passed
- Spec moved to `.agents/spec-docs/done/PM-030-opt-in-telemetry.md`
