[kimi] Centralize agent token rules and hooks for automations (#711) #792

Merged
kimi merged 1 commits from kimi/issue-711 into main 2026-03-21 21:44:35 +00:00

1 Commits

Author SHA1 Message Date
kimi
d3eb5c31bf feat: Centralize agent token rules and hooks for automations (#711)
Some checks failed
Tests / lint (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
- Add token_rules.yaml config defining events, rewards, penalties, and gating thresholds
- Create token_rules.py helper module for loading config and computing token deltas
- Update orchestrator.py to compute token rewards for Daily Run completion
- Add comprehensive tests for token_rules module

The token economy is now configurable without code changes:
- Events: triage actions, Daily Run completions, PR merges, test fixes
- Rewards/penalties per event type
- Gating thresholds for sensitive operations
- Daily limits per category
- Audit settings for transaction logging

Fixes #711
2026-03-21 17:42:43 -04:00