Skip to content

feat: attribute API usage and job tokens to repositories - #23

Merged
HugoXK merged 1 commit into
mainfrom
feat/repo-cost-attribution
Nov 4, 2026
Merged

HugoXK merged 1 commit into
mainfrom
feat/repo-cost-attribution

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Written-by: HugoXK

Attributes platform usage and job/instance tokens to a repository.

  • Add repo_id to api_tokens and quota_ledger (schema 19).
  • Carry the repository on job and instance tokens.
  • Record repo_id on gateway usage so spend can be reported per repository.
  • Add an attribution test.

Ran:

  • npm run check — pass (105 tests, build)
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

Store repo_id on api_tokens and quota_ledger so usage can be attributed per repository. This is internal plumbing and does not change user-visible behavior.

Docs-not-needed: internal attribution columns; budgets are documented separately.

@HugoXK HugoXK left a comment •

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Verdict: PASS at 188cbf5
Written-by: Reviewer
Posted-by: HugoXK

Ran:

  • npm run check — pass (105 tests, build)
  • node scripts/changelog.mjs check — pass
    Not run: production deploy.

@HugoXK
HugoXK merged commit 6981769 into main Nov 4, 2026
14 of 15 checks passed
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