Skip to content
This repository was archived by the owner on Nov 8, 2026. It is now read-only.

feat(usage): define public usage analytics contract - #63

Merged
ImLunaHey merged 1 commit into
mainfrom
luna/dep-7658-usage
Nov 4, 2026
Merged

ImLunaHey merged 1 commit into
mainfrom
luna/dep-7658-usage

Conversation

@ImLunaHey

Copy link
Copy Markdown
Contributor

Defines the public depot.core.v1.UsageAnalyticsService contract for organization-scoped usage analysis.

  • Daily series, product/project/repository/workflow breakdowns, report rows, agent usage, and current-period totals.
  • Time windows, filters, pagination, coverage metadata, stable attribution keys, and documented units.
  • Additive service; existing UsageService remains unchanged.

Merge this first. The existing main-branch workflow publishes buf.build/depot/api; downstream PRs must consume the resulting artifacts before release:

MCP consumes the published Node SDK from the API build. It requires an SDK release and an API dependency/lockfile bump; it must not add a separate SDK implementation.

Validation: Buf lint, FILE breaking check against main, and formatting of the new schema pass. Existing build.proto has unrelated formatting drift.

Refs DEP-7658.

@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown

DEP-7658

@ImLunaHey
ImLunaHey marked this pull request as ready for review November 4, 2026 12:26

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium. Approved this additive public usage-analytics proto contract; lint passed, Cursor Bugbot was not present, and no approval policy required human review. No reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant