deleted deleted

deleted deleted posted an update

Current State: Unchanged Since Last Update

The live production deployment at sgbrain.io has not been modified since our initial post-update (February 19, 2026). What you see today is exactly what was submitted and stabilized for the contest:

  • Backend: commit 63c4a50 (sgbrain/master)
  • Frontend: commit 00f8d5e (frontend/master)

Nothing has changed in production — the judging version remains intact.

We are eager to publish the work we've been building since then. Below is a preview of the improvements developed, tested, and validated — ready to ship the moment the evaluation concludes.


What's Coming: Future Changelog

Development has continued at full intensity while production stays frozen for judging. Here's what's ready to deploy:


Security & Access Control

  • Role-Based Permissions — Granular access control with 5-level hierarchy (Guest → Member → Partner → Admin → Suadmin). Every API endpoint enforced with permission composites and per-role API rate limits
  • Subscription Tiers — FREE / STANDARD / ENTERPRISE with resource quotas per tier. Auto-provisioning, upgrade path, and admin management API
  • BYOK (Bring Your Own Key) — Users can plug in their own Gemini API key to unlock unlimited AI-powered analysis
  • reCAPTCHA v3 — Invisible bot protection on login and feedback forms
  • Google Sign-In — Real OAuth authorization code flow with JWT issuance (replaces previous UI mockup)
  • Transactional Email — SMTP with domain verification (DKIM + DMARC on sgbrain.io)
  • Terms & Privacy — GDPR-aligned legal pages accessible from landing footer

Simulation Engine Improvements

  • Orphan Run Cleanup — Automatic detection and cleanup of stuck simulations (PENDING/RUNNING >30min)
  • Smart Clone — Cloning a completed scenario copies results directly instead of re-executing the entire simulation
  • Retry Guard — Failed runs retry automatically with 24h age filter, max 3 retries, and exclusion markers
  • Duplicate Prevention — Creating a run when one is already pending returns the existing run instead of creating duplicates

Entity Catalog Expansion

  • 27 new celestial bodies — Saturn moons (×7), Uranus moons (×4), and 13 spacecraft (Juno, Parker Solar Probe, TESS, Gaia, Europa Clipper, JUICE, BepiColombo, and more)
  • Data accuracy fixes — JWST corrected from HST's data, Tiangong stations properly identified, dwarf planet moon masses refined
  • Catalog cross-referencing — 160+ entities verified against JPL Horizons, CelesTrak, and SIMBAD

Frontend & UX

  • Subscription Dashboard — Tier details, BYOK key management, usage status
  • Project Intelligence — Live coverage, health metrics, and AI co-authored stats displayed as dynamic cards on the landing page
  • Trail Density Control — Orbit trail rendering with adjustable density via dashed-line materials
  • Memory Management — Per-category GPU memory breakdown with real-time monitoring
  • SEOrobots.txt, sitemap.xml, and HTML caching for search engine visibility

API Documentation

  • 65+ documented endpoints — Full Swagger/OpenAPI spec with interactive "Try it out" via JWT auth
  • Rate limiting reference — 4 tiers with documented limits and Retry-After headers
  • Auth flow docs — JWT token lifecycle + Google OAuth2 flow fully documented
  • CI validation — Schema integrity checked on every deploy

Code Quality & Architecture

  • 4 monolith files → 13 focused modules with clean import paths
  • Code decomposition — Largest methods reduced 10–34% in size while improving testability

By the Numbers

Metric At Submission (Feb 13) Current (Mar 7)
Backend test coverage ~70% 100.0%
Total backend tests ~1,500 3,094
Covered statements ~8,500 12,368
Missing lines ~2,500 0
Covered source files 227
API endpoints documented 0 65+
Dead code removed -5,903 LOC
CI coverage gate none 100% enforced

Test Suite Breakdown (last run: Mar 7, 2026)

Type Core Simulator Synai Total Time
Unit 717 900 372 1,989 2m 07s
Integration 392 534 144 1,070 6m 39s
E2E 20 9 3 32 47s
Total 1,129 1,443 519 3,091 passed, 3 skipped ~9m 30s

Summary: The contest submission remains untouched and live for evaluation. Behind the scenes, SGBrain has undergone a major transformation — from a 70% covered prototype to a fully secured platform with role-based access control, subscription tiers, real OAuth authentication, bot protection, 65+ documented API endpoints, and a CI pipeline that enforces 100% test coverage on every deploy. We can't wait to push the button and show you the result.

Log in or sign up for Devpost to join the conversation.