Repository navigation
Conversation
Signed-off-by: Timo Derstappen <teemow@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Towards: https://github.com/giantswarm/giantswarm/issues/38073
Problem
A coding agent's turn spends model tokens on the platform's provider key. A single turn is bounded; what one person's Sessions spend over a day is not, and nothing measured it per person until now.
Proposed solution
AgentPlatformCreatorSpendHighfires on the kagent controller'skagent_session_turn_cost_usd_total(giantswarm/kagent-upstream#697): what each turn cost as its runtime reported it, per Agent (k8s_namespace_name,gen_ai_agent_name) and the Session's creator (enduser_id).increase()handles the controller restarts that reset the counter. It misses the first turn of a new series, one turn's cost, which a day's threshold absorbs.severity: notify, Slack only, business hours. Nothing is down; the response is a word with the person, or the coding-agents kill-switch runbook when nobody explains the spend. Its Alerts table gains this row in a sibling change.The creator label and the threshold are defaults, open for review: an answer changes them forward in a later PR.
Checklist
make test-rulespasses on every provider;make test-inhibitions test-runbookspass)