Add SOUL Lattice v4 monitoring dashboard with Go backend#55
Merged
Conversation
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
This PR introduces a complete full-stack monitoring system called "SOUL Lattice v4" — a real-time thermodynamic state dashboard with a Go backend simulator, React frontend cockpit, Cloudflare Workers security layer, and Cloud Run deployment infrastructure.
Key Changes
Backend (Go)
backend/main.go: Entry point that initializes the server and simulator, handles graceful shutdownbackend/server.go: HTTP server with chi router, SSE streaming endpoint (/events), state management endpoints, and CORS supportbackend/simulator.go: Stochastic simulator that drifts system metrics (coherence, breath, thermodynamic yield, GPU utilization, token generation) with realistic constraints and state transitionsbackend/state.go: Core state struct with validation, pretty-printing, and uptime formatting utilitiesbackend/Containerfile: Multi-stage Alpine-based container build for Cloud Run deploymentbackend/go.mod: Go module dependencies (chi router, CORS middleware)Frontend (React + TypeScript)
frontend/src/App.tsx: Main React component (SoulCockpit) that:frontend/src/index.tsx: React entry pointfrontend/package.json: Dependencies (React 18, Recharts, react-scripts)frontend/tsconfig.json: TypeScript configurationfrontend/public/index.html: HTML shell with dark theme meta tagsCloudflare Workers Security Layer
workers/index.js(modified): Complete rewrite adding:Deployment & Configuration
wrangler.toml(modified): Updated with:firebase.json: Firebase Hosting config with:/api/**to Cloud Run servicedeploy-podman.sh: Bash deployment script orchestrating:Root Configuration
package.json(modified): Added Wrangler CLI scripts for worker deploymentNotable Implementation Details
https://claude.ai/code/session_013cFiQZ1hnb4JrBj9DvDgip