Skip to content

feat: record agent token usage with lastUsedAt and opt-in logging - #25

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-10971-record-each-use-of-an-agent-token
Oct 21, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-10971-record-each-use-of-an-agent-token

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

Record agent token usage on each verified use:

  • Updates last_used_at timestamp in agent_token.token
  • Optional audit logging of token identity, run, and route
  • Migration: adds last_used_at column to agent_token.token (migrations/0002_last_used_at.sql)

Verification

  • bun run check: passes (tsc, oxlint, oxfmt, tests)
  • bun run build: passes

Closes CL-10971

@linear-code

linear-code Bot commented Oct 21, 2026

Copy link
Copy Markdown

CL-10971

@corbits-triage

corbits-triage Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Triage: Fail

@TheGreatAxios, please address the following:

  • merge conflicts with base

Waiting on a maintainer to approve: request changes.

@TheGreatAxios
TheGreatAxios force-pushed the cl-10971-record-each-use-of-an-agent-token branch from 2f3a7b7 to c02f774 Compare October 21, 2026 03:16
@TheGreatAxios
TheGreatAxios merged commit 4083487 into main Oct 21, 2026
2 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-10971-record-each-use-of-an-agent-token branch October 21, 2026 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant