Agent batch system - #453
Open
Jumongweb wants to merge 7 commits into
Open
Conversation
Collaborator
|
Hi @Jumongweb 👋 — two things before this can be reviewed/merged:
Happy to merge once both are green. 🙏 |
Collaborator
|
Hi @Jumongweb 👋 — quick update: video/screenshots are not required to merge anymore, just a bonus — if you add one it'll be considered for GrantFox rewards on this issue. So I'll review this on code + checks alone now. 🙏 |
|
Author
|
I have added the screenshot. |
Author
|
Please merge |
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.



Summary
Closes #223
Completes the agent badge system by wiring badge awards into the live XP, quest, and task-completion flows, persisting earned badges per agent, and rendering badges on the agent detail page with hover tooltips.
What changed
lib/agents/badges.tsfirst_taskquest_masterlevel_10veterantop_earner.data/badges/[agentId].jsonlib/gamification/quests.tsrecordTaskCompletion()inlib/reputation/reputation-store.tslib/agent-runtime/agent.tsapp/agent-functions/[id]/route.tsapp/api/agents/[id]/tasks/drain/route.tsfirst_taskcondition so it depends on actual completed tasks rather than any XP gain0completed tasksGET /api/agents/[id]/badgesas:{ badges: Badge[], count: number }Testing
Added/updated tests covering:
first_taskawarding on task completionquest_masterawarding after the fifth completed questfirst_taskfrom being awarded by quest XP aloneProof
This issue requires visual proof for review.
Please attach a short demo video or screenshots showing:
/api/agents/[id]/badges