Repository navigation
docs(arch): modular decomposition blueprint — composable service profiles - #1682
Merged
Merged
Conversation
…iles The modular architecture worked out, grounded in the EXISTING seam (BootMode + ModuleCategory + required_modules + route_command + ServiceModule registry) so it's refinement, not rewrite — the monolith is just one process registering all ~40 modules. "A good AWS template": declare which service-groups a node runs; each independently health-checked, restartable, testable; composed over the bus. Captures: - Refined ModuleCategory taxonomy (7 service groups: RuntimeShell, ResourceGov, Inference, Cognition, Forge, GridTransport, Live) replacing the coarse Core/PersonaHosting blob. - CO-LOCATION CONSTRAINTS (placement groups): Bevy render + LiveKit SFU + GPU MUST share a VM — avatar frames are a GPU-readback→framebuffer→WebRTC transfer that a process/network boundary would force off-GPU every frame. ResourceGov co-resides with its hardware; Inference's boundary is unsloth's /v1 wire. - Per-service health / supervised restart / independent test (the testability win; reuses ServiceModule health + the 3-strike quarantine). - Container layout mirrors the profiles (light citizen nodes + shared GPU engine/live/forge nodes), cross-process routing via the existing bus. - 6-slice build plan; guardrails per CONCURRENCY-STYLE-GUIDE (no parallel orchestrator; FullCitizen still hosts all in one process — decomposition is optional placement, not forced fragmentation). Consolidates live findings #25 (decompose), #26 (degrade-not-panic), #27 (intra-machine addressing). Referenced from ARCHITECTURE-INDEX quick-nav. Co-Authored-By: Claude Opus 4.8 <[email protected]>
The profiles ARE grid roles (same binary, different service composition); compute-leasing = a service group on another node over route_command; per-service healing; independent scaling. The grid is the module graph placed across machines — not a layer bolted on. Captures Joel's framing. Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
The modular architecture worked out — refinement, not rewrite. The monolith isn't a design flaw in the modules; it's that one process registers all ~40. This builds on the EXISTING seam (
BootMode+ModuleCategory+required_modules+route_command+ theServiceModuleregistry)."A good AWS template": declare which service-groups a node runs; each independently health-checked, restartable, and testable; composed over the bus.
ModuleCategorytaxonomy — 7 service groups (RuntimeShell, ResourceGov, Inference, Cognition, Forge, GridTransport, Live) replacing the coarseCore/PersonaHostingblob (todayCorelumps ~38 modules, so the smallest bootable process is ~the whole substrate — the live finding).ServiceModulehealth + the 3-strike quarantine; the direct testability win (no more booting the monolith per test).FullCitizenstill hosts everything in one process — decomposition is optional placement, not forced fragmentation).Consolidates live findings #25/#26/#27. Docs-only; frames the implementation slices (first: refine
ModuleCategory, test-covered byrequired_modules).🤖 Generated with Claude Code