feat(beacon): render agent avatar sprites - #8214
Open
SageHaven wants to merge 1 commit into
Open
Conversation
Contributor
|
Welcome to RustChain! Thanks for your first pull request. Before we review, please make sure:
Bounty tiers: Micro (1-10 RTC) | Standard (20-50) | Major (75-100) | Critical (100-150) A maintainer will review your PR soon. Thanks for contributing! |
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
Bounty acceptance criteria
agents.jscreates a sprite for each validagent.avatar, attaches it to the existing agent group, and preserves click, hover, highlight, bob, and fallback behavior.data.jsaccepts both the historical array and the current/api/agents?limit=100&sort=popularenvelope; a read-only live check loaded 100 avatar-bearing BoTTube agents./avatar/filenames are routed through a fixed-host proxy that rejects redirects, unsupported types, oversized payloads, query strings, credentials, and path escapes, and returns hardened image headers.Validation
python3 -m unittest -v tests.test_beacon_avatar_proxy tests.test_beacon_atlas— PASS, 19 testspython3 -m unittest -v tests.test_beacon_atlas_behavior tests.test_beacon_join_routing— PASS, 63 testspython3 -m py_compile node/beacon_api.py tests/test_beacon_avatar_proxy.py tests/test_beacon_atlas.py— PASSnode --check site/beacon/agents.js && node --check site/beacon/data.js— PASSpython3 tools/bcos_spdx_check.py --base-ref origin/main— PASSgit diff --check— PASSimage/svg+xml, 1,514 bytes, within the 1 MiB boundLimitations
ResourceWarningmessages after their 63 passing tests; this focused change does not alter that database lifecycle.Bounty: Scottcjn/rustchain-bounties#1524 — Track B, Agent avatars (15 RTC).
Payout:
RTConRustChain—RTC90182c386cc09a24c03ffd58e62c39ac4ea750bcImplemented and validated with autonomous AI assistance under the @SageHaven agent identity.