Repository navigation
feat(telemetry): auto-enable for repos owned by an allowed org (v0.15.0) - #72
Conversation
Per-project telemetry now resolves in three states via a shared
resolveTelemetryGate() helper so all hooks (and SessionStart) stay in sync:
- explicit disable → off (always respected)
- explicit enable → on (still subject to the repo-scope filter)
- unset (default) → auto-enable when the repo's remote belongs to an
allowed GitHub org; otherwise stays off
SessionStart surfaces this ("telemetry auto-enabled — repo owned by allowed
org"); run /skillmeter:telemetry disable to opt a matching project out.
Non-org and non-git directories are unchanged. The machine-global
kill-switch still overrides everything.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review WalkthroughAdds ChangesPer-project telemetry gate
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 OpenGrep (1.22.0)OpenGrep fatal error (exit code 2): �[32m✔�[39m �[1mOpengrep OSS�[0m �[1m Loading rules from local config...�[0m Comment |
What
Per-project telemetry now auto-enables when the project's repo is owned by an allowed GitHub org (the same
GET /user/orgsset used for repo-scoped filtering). Previously every project required an explicit/skillmeter:telemetry enable.Resolution is centralized in a pure
resolveTelemetryGate(optIn, repoOrgOwned)helper (logger.js), reused by both the genericrunHookgate andsession_start.jsso they can't drift:false(explicit disable)true(explicit enable)The machine-global kill-switch still overrides everything.
Consent note (please review)
This shifts org-owned repos from opt-in → opt-out (telemetry on by default, user can
/skillmeter:telemetry disable). Safeguards: explicit disable always wins; SessionStart printstelemetry auto-enabled — repo owned by allowed org; global kill-switch unaffected. Worth a privacy/legal sign-off before release.Verification
node -con changed scripts;git diff --checkcleanresolveTelemetryGate— 5/5 (disable-wins, explicit enable, auto-org, non-org skip)/tmp→ unchanged "not configured"; org repo + unset → SessionStart "auto-enabled", PostToolUse "auto-enabled → logged"Version
0.14.0 → 0.15.0(feat, matching the prior feat's minor bump).🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation