feat(maps): implement isolated user map space with ownership and quotas (closes #24) - #369
Open
dev-vishalmaurya wants to merge 2 commits into
Open
dev-vishalmaurya wants to merge 2 commits into
dev-vishalmaurya wants to merge 2 commits into
Conversation
added 2 commits
September 10, 2026 00:59
…itcoindefi#25) - Implemented state lifecycle: draft -> proposed -> in_review -> published | rejected - Added automated pre-moderation filter (banned words, reachability BFS, entity quotas) - Added moderation queue with map preview data for reviewers without playing - Added mandatory rejection reasons delivered to map owners - Added report mechanism moving published maps back to in_review - Added unpublish capability for active maps - Added comprehensive unit and integration test suite
…as (closes Bitcoindefi#24) - Defined reserved user map ID range [100,000 - 999,999] in frontend/utils/gameLoader.ts and API without colliding with official maps (1-500), static maps (500-599), challenges (2,000-29,999), or dynamic instances (30,000-99,999) - Enforced strict account ownership (only owner can modify/delete; unauthorized edits blocked) - Implemented configurable quotas: max maps per account, max NPCs/objects per map, and storage byte limits - Enforced economy isolation preventing placement of currency (gold coins), high-tier keys, unauthorized loot items, or XP/gold drops - Enforced world isolation preventing exits/portals from breaching official world maps - Added client user map loader and routing by map number - Added comprehensive unit and integration test suite covering ownership protection, quota limits, and economic isolation
6 tasks
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
Resolves #24: Implements an isolated, persistent user map space with account ownership, configurable quotas, and economy/world isolation in Argentum Online Web (Modo Construcción).
What is implemented
Reserved & Isolated Map ID Range:
[100,000 - 999,999]documented and implemented in bothfrontend/utils/gameLoader.tsandapi/src/repositories/userMaps.ts.1–500), static local maps (500–599), challenges (2,000–29,999), or dynamic instances (30,000–99,999).isUserMap(mapNumber)andisOfficialWorldMap(mapNumber)utilities.loadMap(mapNumber)seamlessly fetches and constructs user maps by number.Account Ownership & Access Control:
owner_account_id).Configurable Account Quotas:
user_map_quotas:max_maps(default 5 active maps per account)max_npcs_per_map(default 20 NPCs per map)max_objs_per_map(default 50 objects per map)max_storage_bytes(default 5 MB per map)Economy Isolation:
allowCombat: falseandallowExp: falseprevents user maps from functioning as private XP/gold farming exploits.World Isolation:
Automated Tests:
api/src/tests/userMaps.test.tsverifying:map_numallocation in reserved rangeAll unit tests passing (11/11).