Repository navigation
Conversation
- Update Node.js engine requirement to 18+ - Update CI workflow to use Node.js 18+ - Create update script for Lerna 8 - Update postinstall script for compatibility - Add documentation for the upgrade process 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Add robust error handling to visualize-config.js - Create simplified version that doesn't depend on yaml module - Add package.json for examples directory - Update CI workflow to better handle example validation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 19, 2026
…iles (#1682) * docs(arch): modular decomposition blueprint — composable service profiles 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]> * docs(arch): §9 — decomposition IS the grid (profiles are grid roles) 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]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 21, 2026
…del (TDD) (#1712) unsloth Studio starts EMPTY (/v1/models -> []; inference -> "No GGUF model loaded"), so nothing a persona needs serves until something tells unsloth what to load. This is that keystone — the reliable-startup piece ("automatic after the key"), pure delegation over unsloth's HTTP surface (UNSLOTH-INTEGRATION.md §3.5), never a CLI subprocess. TDD-first: the decision (loaded? -> skip; empty? -> load; unreachable/failed -> DEGRADE, never panic) lives in ensure_model_loaded() over the UnslothControl trait, unit-tested against a fake with zero network — that's the part that must be reliable. UnslothHttp is the real reqwest impl (GET /v1/models, POST /api/inference/load), mirroring the endpoints verified live on this box (manual load + /v1/chat reply already confirmed end-to-end). Tests (4, all green): already-loaded is a no-op (no reload churn); empty engine loads the desired model; unreachable engine degrades WITHOUT attempting a load; failed load degrades with the reason. Degrade-not-panic per #26. Next: call ensure_model_loaded at startup with the configured model, then the live persona bringup reasons through the fueled engine. Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Jun 21, 2026
The keystone (#1712) gave us ensure_model_loaded over a TDD'd trait; this wires it into boot so the engine is fueled "automatically after the key." unsloth Studio boots EMPTY — /v1/models is [] and any inference returns "No GGUF model loaded" until something loads one. On startup the core now spawns ensure_startup_model(): reads UNSLOTH_MODEL from config and, if set, ensures that model is loaded into the engine. - startup_model_action(Option<String>) -> StartupModelAction is the pure, TDD-tested config decision: set+non-empty -> Ensure(model); unset or blank -> Skip(reason). NO hardcoded default model path — auto-pick from /api/hub/cached-models is a future enhancement, not a baked-in path that's wrong on every box but the author's. - ensure_startup_model() dispatches on it, delegating to ensure_model_loaded over the real HTTP surface, logging the outcome. - Spawned fire-and-forget in main.rs alongside the other boot tasks: boot is never gated on the engine, and it's fully degrade-safe — engine down or load fails -> degrade+log, the substrate stays up on its fallback path, never panics ([[substrate-is-a-good-citizen-on-the-host]] / #26). 4 new unit tests cover the config decision (ensure / skip-no-default / blank-is-unset / trimmed). Existing keystone tests unchanged. Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 15, 2026
…nic (#201) `ChatModule::executor()` did `.cloned().expect(...)` — a hard panic if a `chat/poll`, `chat/send`, or `persist_posted` landed before `start_server` called `install_executor_on_all` (a boot race). Panicking there SIGABRTs the whole core and takes every other module down with it, for a per-request contract violation that only concerns that one request. Convert `executor()` to `Result<Arc<CommandExecutor>, String>` returning the SAME loud, contract-naming message, and `?`-propagate it in the 3 callers (all already `Result<_, String>`). Faithful to [[no-fallbacks-ever]] — still loud, still names `install_executor_on_all`, no silent default — while satisfying #26 (faculties degrade, never panic): a command that races boot fails loudly to its caller instead of crashing the process. Regression test: a pre-install `poll()` returns the loud error naming the contract instead of panicking. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Aug 15, 2026
#2056) (#2252) * fix(chat): ChatModule executor fails loud per-request, not process panic (#201) `ChatModule::executor()` did `.cloned().expect(...)` — a hard panic if a `chat/poll`, `chat/send`, or `persist_posted` landed before `start_server` called `install_executor_on_all` (a boot race). Panicking there SIGABRTs the whole core and takes every other module down with it, for a per-request contract violation that only concerns that one request. Convert `executor()` to `Result<Arc<CommandExecutor>, String>` returning the SAME loud, contract-naming message, and `?`-propagate it in the 3 callers (all already `Result<_, String>`). Faithful to [[no-fallbacks-ever]] — still loud, still names `install_executor_on_all`, no silent default — while satisfying #26 (faculties degrade, never panic): a command that races boot fails loudly to its caller instead of crashing the process. Regression test: a pre-install `poll()` returns the loud error naming the contract instead of panicking. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): expert_observe harness — glass-box LIVE MoE expert routing (#230/#229) Runs a GGUF MoE through the core/llama FFI with LiveExpertObserver attached (the existing cb_eval → ffn_moe_topk seam), generates N tokens to drive real routing, then dumps the model-intrinsic affinity: hot/cold expert distribution + co-occurrence + prefetch candidates. That affinity is the INPUT to expert prefetch (#227), grid placement (#180), compaction, and distillation (#233). Uses the in-process FFI (not the live llama-server lane) because affinity is model-intrinsic — valid data, zero risk to live serving. First run (Qwen3-Coder-30B-A3B, 96 tokens, Metal): 43,640 activations, 6116/6144 expert-slots fired (~99.5%), hottest expert only 0.20% (~12x uniform), 6092 colder share 95.8%. FINDING: for an 8/128 (6.25%-active) MoE, activation over a generation is BROAD, not tiny-hot — so the paging win is the tier ladder + affinity placement, not a small resident set. Prefetch predictor returned 0 candidates over 96 tokens (needs more data). K3 (1.8% active) should be far more concentrated — same harness will quantify it when weights land. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * feat(capacity): expert_observe — per-domain concentration + working-set-size + Jaccard (#230) Evolves the MoE glass-box harness from the pooled first cut to the measurement that actually decides the paging architecture (BigMama's three methodological guardrails): diverse multi-domain corpus, PER-DOMAIN concentration (top-K% activation share vs the uniform null), cross-domain hot-set Jaccard, shared-base-vs-own-only activation MASS split, and the working-set-size curve (experts resident for 50/80/90/95% of a domain's mass). Prefill-dominant sampling on realistic input, not a degenerating greedy loop. Ran live on Qwen3-Coder-30B-A3B (Metal): pooled top-10% = 18.6% (mild — the smear), but per-domain = 25–38% with near-disjoint hot sets (code↔prose Jaccard 0.05) and a tiny 38-expert universal core — i.e. paging is domain-working-set SWAPPING, not frequency tiering. This is the #180 evidence; the harness is the reusable probe for any MoE (incl. K3 at weight-drop). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(chat): the anchor lookup missed the fallible-executor conversion Rebase fallout from the fail-loud change itself: executor() became Result<Arc<CommandExecutor>, String> (that IS the 'no process panic' fix), and every call site needs `?`. The chat/poll anchor lookup at mod.rs:155 was the one that did not get converted, so it called execute_json on a Result. One character. Caught by cargo check, not by review. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Sep 27, 2026
…nch (charter S1; pin fb6b7fdb4) (#4467) * feat(serving): a new gene joins the running engine in place, no relaunch (charter S1, card 49b5e806; pin fb6b7fdb4) Until now a changed gene set on the same base was a relaunch: every turn in flight killed and every slot re-prefilled, for an adapter of a few MB. The fork (#26) now loads and retires adapters at runtime, so the genome check asks the engine first: - LlamaServerControl::adopt_genome_in_place (default: Unsupported, the old relaunch). The engine stages each new gene into its --train-dir (a hard link, else a copy) under gene_stage_name (a bare .gguf, hashed on the full path so two adapter.gguf never collide), POSTs /lora-adapters/load (dormant at scale 0), and retires each dropped gene with /unload by the id GET /lora-adapters reports. - Retire first: an unload refused because a turn holds the gene (503) changes nothing, and the whole change waits a tick (serving.genome.in_place_busy) instead of killing that turn. An engine without the routes (404), or no --train-dir, relaunches as before; any other failure relaunches onto the target set (in_place_failed). - The OpenAI adapter resolves a request's gene by its staged name too, since the catalog lists a runtime-loaded gene under its --train-dir path. - LLAMA_CPP_PIN and the submodule move to fb6b7fdb4 (fork #26). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): a busy retire lets the lane checks run, a gene is always re-staged, unwraps justified (Cormac on #4467) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(serving): record each accepted load or retire at once, so an early return never advertises a gene the engine freed (Codex on #4467) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * test(serving): a busy second retire leaves the served set naming what the engine holds; converge_genome takes its --train-dir (Codex, Cormac on #4467) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * docs(serving): Busy stops the change with the earlier steps applied, not unchanged (Codex on #4467) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Nov 14, 2026
…ds, verbs once, allot without a retry loop (review of #5985) Review findings (js-shaped-rust-2026-11-14 #8 #9 #10 #25 #27 #28): - ThoughtRecord.body is ThoughtBody { Resident { text, saved }, Shed { handle, chars: NonZeroUsize } }; the empty-message fallback is gone. The checkpoint wire shape is unchanged (serde try_from/into), and an unreadable checkpointed thought is dropped with a probe, never failing the checkpoint. - A thought's item key is its ElementId (Item::occurrence, ElementId::key); the fold names the count and the newest saved whole. - OpenView.work is ViewWork { Seen, Read(KeptRead), Editing { read, edited } }: an edit without a kept read cannot be represented. The edited path comes from CodeEditParams / CodeWriteParams. - ActSeq and ThoughtOccurrence newtypes; ActionRecord.verbs classed once at the act seam. - allot: the first suffix of her work in hand whose floor fits (Floors), one walk, no remove(0) loop. #26 (one lock for WorkingMemory, CheckoutRoot scope) is left for its own change: scope is persisted on three record types and WorkingMemory holds ~20 locks. Not compiled locally (the M5 is serving); CI is the compiler. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Nov 14, 2026
… note on each edit stay whole (cards a386374b, 89655d88) (#5985) * Her work in hand survives a turnover: the file she is editing and her note on each edit stay whole (cards a386374b, 89655d88) Aris on the M5, 2026-11-14 00:24:45Z and 00:28:27Z: two overflow turnovers (view 51,438 tokens over a 50,808 grant; 45,606 over 42,348) collapsed the 849-line deploy_actuator.rs she was editing to its outline and her "item 4 is done" note to its head and tail. She read the file again after each (7 reads 00:24-00:36Z, no edit) and re-checked item 4 in 5 acts after it was done. The codec gets one datum, Item::in_hand: a start keeps such an item whole while its source's grant holds it beside the rest at their floor (oldest given up first, charged like any item), the claim's newest end counts it, depth never collapses it, and the oldest run folds around it. Her memory marks it from typed state: an applied edit/write of a file she has open (OpenView::edited_seq) keeps its whole read (KeptRead: a whole read is never replaced by a later region), and the first thought after each edit's result is her note. The memory owner never releases acts from that read on. Not compiled locally (the M5 is serving); CI is the compiler. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her work in hand, typed: thought bodies, view work, act and thought ids, verbs once, allot without a retry loop (review of #5985) Review findings (js-shaped-rust-2026-11-14 #8 #9 #10 #25 #27 #28): - ThoughtRecord.body is ThoughtBody { Resident { text, saved }, Shed { handle, chars: NonZeroUsize } }; the empty-message fallback is gone. The checkpoint wire shape is unchanged (serde try_from/into), and an unreadable checkpointed thought is dropped with a probe, never failing the checkpoint. - A thought's item key is its ElementId (Item::occurrence, ElementId::key); the fold names the count and the newest saved whole. - OpenView.work is ViewWork { Seen, Read(KeptRead), Editing { read, edited } }: an edit without a kept read cannot be represented. The edited path comes from CodeEditParams / CodeWriteParams. - ActSeq and ThoughtOccurrence newtypes; ActionRecord.verbs classed once at the act seam. - allot: the first suffix of her work in hand whose floor fits (Floors), one walk, no remove(0) loop. #26 (one lock for WorkingMemory, CheckoutRoot scope) is left for its own change: scope is persisted on three record types and WorkingMemory holds ~20 locks. Not compiled locally (the M5 is serving); CI is the compiler. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Her thought log drains through her view's fold edge, as her action log does The resident-bounds ratchet requires a touched thought_log.rs to end with no store that only grows. At each start, thoughts up to the thoughts source's fold edge whose wholes are saved leave her log (and her checkpoint); a thought held only in RAM and her note on an edit in hand stay, and the view forgets the released ids. A thought's view key comes from one owner (Thoughts::key_of). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5.5 <[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.
Summary
This PR prepares the repository for upgrading to Lerna 8:
Test plan
This update is necessary to keep our tooling current and resolve the Dependabot alerts.
🤖 Generated with Claude Code