active sprint
Guide for active sprint
Active Sprint: Protocol & Tasks
Last Updated: 2026-01-11
Status: Execution Phase
🛡️ Global Guardrails
1. Architectural Integrity
- Strict File Ownership: Agents MUST NOT edit files outside their assigned domains.
- Zero Panic Policy: Usage of
.unwrap()or.expect()in runtime systems is FORBIDDEN. - Modular Design: Files > 300 lines must be refactored.
2. Frontend Guardrails (loh-website)
- Aesthetic Standard: All Pages must be "Awwwards Worthy". Premium textures, glassmorphism, and micro-animations are mandatory.
- Component Reusability: Do not duplicate UI logic. Extract shared components (e.g.,
FounderPacks,TurnstileWidget) tocomponents/before using them in multiple pages. - Bot Protection: All public forms (Login, Register, Waitlist) MUST include Cloudflare Turnstile.
- Cloudflare Optimization:
- Cache: Static pages must use
Cache-Controlheaders for Edge caching. - Compute: Workers must stick to Free Tier limits (10ms CPU). Use KV for reads, batch D1 writes.
- Cache: Static pages must use
3. Rust Guardrails (loh-game)
- Type Safety: Use Newtypes for IDs (
struct PlayerId(Uuid)). - Toolchain: Keep
rust-toolchain.tomlupdated to latest stable. - Data Funneling: All game events must be structured to allow eventual export to ClickHouse/Postgres.
👷 Agent 1: Web & Account (Active)
Role: Full Stack Web & Backend ("The Bridge")
Focus:
loh-website and loh-backend/workers✅ Completed
- Store Content:
- Updated Bonds to "Passive Income (10k/week)".
- Added "Not Play-to-Win" Crowdfunding Disclaimer.
- Synced content with "Crowdfunding Phase" narrative.
- Store Design:
- Refactored
store/page.tsxto use sharedFounderPackscomponent. - Added
cursor-pointerand hover effects to all cards. - Verified mobile responsiveness.
- Refactored
- Bot Protection:
- Created
TurnstileWidget. - Integrated into Login/Register pages.
- Updated API client for captcha tokens.
- Created
🚧 In Progress / Next Steps
🛠️ Account API (Cloudflare Workers)
File:
loh-cf-workers/account-api/src/index.ts- Optimization: Implement heavy KV caching for session/profile reads.
- Endpoints:
-
POST /auth/login(Verify Turnstile token + checking password) -
POST /auth/register(Verify Turnstile token + creating user in D1) -
GET /me(Return Profile + Founder Status via KV Cache)
-
- Payment Stub:
POST /api/v1/founder/upgrade(Implemented as stub).
🛠️ Agent 2: Engine Stability
Role: Reliability Engineer ("The Foundation")
Focus:
loh-game Core Systems🚧 Priority Tasks
🦀 Rust Modernization
- Upgrade Toolchain: Update
rust-toolchain.tomlto latest stable. - Dependencies:
cargo update& align with 2021/2024 edition. - Lint Fixes: Fix any new Clippy warnings from the upgrade (Done via standard suppression/fixes).
🚨 Panic Removal (Heavy Bug Fixing)
- Fix Panics in:
src/systems/ui/xp_drops.rs(Migrated to Event System)src/systems/ui/milestone_notifications.rs(Migrated to Event System)src/systems/ui/login.rs(Migrated to Event System)src/systems/camera/mod.rs(Migrated to Event System)
🔄 Event Migration (Bevy 0.17)
- Migrate
network/mod.rsevents (Pending verify). - Migrate
world/resources.rs(Pending verify).
🏗️ Agent 3: Gameplay & Economy
Role: Feature Developer ("The Builder")
Focus:
loh-game Mechanics🚧 Priority Tasks
💰 Economy & Bonds
- Fix Compilation: Resolve
systems/economybuild errors. - Bond Logic:
- Implement
PassiveIncometrait/struct for Bonds. - Logic: Grant 10,000 gold/week to owner's bank.
- Ensure
EconomyUiStatereflects this correctly (Via shared trait).
- Implement
🎓 Tutorial Island
- Spawn Points: Implement Editor placement logic.
- NPC AI: Integrate
big-brainfor Guide NPC.