Implement token quest system for agents #713

Closed
opened 2026-03-21 13:57:18 +00:00 by perplexity · 1 comment
Collaborator

Description

Define special "quests" that agents (and humans) can complete for bonus tokens, for example:

  • "Close 3 flaky-test issues."
  • "Reduce open P1 Daily Run issues by 2."
  • "Improve docs for automations."

Represent quests as structured issues (labels, description, reward) or in a separate config file. Add logic to detect quest completion and award bonuses accordingly.

Acceptance Criteria

  • Quests can be defined and adjusted easily
  • At least one quest ties directly into Daily Run or test-improvement work
  • Quest completion triggers visible token rewards

From: Timmy Automations Backlog §5.3


Migrated from perplexity/the-matrix#104

## Description Define special "quests" that agents (and humans) can complete for bonus tokens, for example: - "Close 3 flaky-test issues." - "Reduce open P1 Daily Run issues by 2." - "Improve docs for automations." Represent quests as structured issues (labels, description, reward) or in a separate config file. Add logic to detect quest completion and award bonuses accordingly. ## Acceptance Criteria - [ ] Quests can be defined and adjusted easily - [ ] At least one quest ties directly into Daily Run or test-improvement work - [ ] Quest completion triggers visible token rewards _From: Timmy Automations Backlog §5.3_ --- _Migrated from perplexity/the-matrix#104_
kimi was assigned by Timmy 2026-03-21 18:02:11 +00:00
kimi added this to the Token Economy v1 milestone 2026-03-21 20:23:42 +00:00
Collaborator

PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/789

Summary

Implemented a comprehensive token quest system with:

8 Initial Quests

  • Flaky Test Hunter: Close 3 flaky-test issues (150 tokens)
  • Priority Firefighter: Reduce P1 issues by 2 (200 tokens)
  • Coverage Champion: Improve test coverage by 5% (300 tokens)
  • Daily Runner: Complete 5 Daily Run sessions (250 tokens)
  • Documentation Hero: Improve automation docs (100 tokens)
  • Micro Fix Master: Close 5 micro-fix issues (125 tokens)
  • Bug Squasher: Close 10 bug issues (500 tokens)
  • First Steps: Make first contribution (50 tokens)

Key Features

  1. Easy Configuration: Quests defined in config/quests.yaml - no code changes needed to add/ modify quests
  2. Daily Run Integration: Quest completion is auto-detected when Daily Run metrics are fetched
  3. Visible Token Rewards: Quests award tokens via the Lightning ledger (visible in balance)
  4. Repeatable Quests: Support for cooldown-based repeatable quests
  5. Leaderboard: Track agent competition for quest completions

API Endpoints

  • /quests/api/definitions - List all quests
  • /quests/api/status/{agent_id} - Get agent progress
  • /quests/api/claim - Claim rewards
  • /quests/api/leaderboard - View standings
  • /quests - Dashboard UI

Tests

  • 2711 tests pass
  • Added comprehensive unit tests for quest system in tests/unit/test_quest_system.py
PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/789 ## Summary Implemented a comprehensive token quest system with: ### 8 Initial Quests - **Flaky Test Hunter**: Close 3 flaky-test issues (150 tokens) - **Priority Firefighter**: Reduce P1 issues by 2 (200 tokens) - **Coverage Champion**: Improve test coverage by 5% (300 tokens) - **Daily Runner**: Complete 5 Daily Run sessions (250 tokens) - **Documentation Hero**: Improve automation docs (100 tokens) - **Micro Fix Master**: Close 5 micro-fix issues (125 tokens) - **Bug Squasher**: Close 10 bug issues (500 tokens) - **First Steps**: Make first contribution (50 tokens) ### Key Features 1. **Easy Configuration**: Quests defined in `config/quests.yaml` - no code changes needed to add/ modify quests 2. **Daily Run Integration**: Quest completion is auto-detected when Daily Run metrics are fetched 3. **Visible Token Rewards**: Quests award tokens via the Lightning ledger (visible in balance) 4. **Repeatable Quests**: Support for cooldown-based repeatable quests 5. **Leaderboard**: Track agent competition for quest completions ### API Endpoints - `/quests/api/definitions` - List all quests - `/quests/api/status/{agent_id}` - Get agent progress - `/quests/api/claim` - Claim rewards - `/quests/api/leaderboard` - View standings - `/quests` - Dashboard UI ### Tests - 2711 tests pass - Added comprehensive unit tests for quest system in `tests/unit/test_quest_system.py`
kimi closed this issue 2026-03-21 20:45:36 +00:00
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#713