Repository navigation
Fix CLI module compatibility issues - #24
Merged
Merged
Conversation
- Fix references to the organization in the README - Update the URL in the deprecated command message 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Add test configuration files to gitignore - Add debug helper scripts to gitignore - Add example output files to gitignore 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
joelteply
added a commit
that referenced
this pull request
Nov 30, 2025
joelteply
added a commit
that referenced
this pull request
Nov 30, 2025
Fix CLI module compatibility issues
joelteply
added a commit
that referenced
this pull request
Jun 21, 2026
§3.5 — probed the running unsloth Studio (:8888). Two HTTP surfaces: /v1
(OpenAI-compatible serving) + /api/* (Training & Model Management backend,
openapi at /openapi.json). The complete delegation surface, every capability
endpoint-backed:
- model lifecycle: POST /api/inference/load (+ /load-progress), /unload,
GET /api/inference/status|models, /v1/models
- capability checks: /api/models/check-embedding/{name}, /check-vision/{name}
- hub: POST /api/hub/download (HF pull), GET /api/hub/cached-models|cached-gguf
- serving: POST /v1/chat/completions, POST /v1/embeddings
- foundry handoff: POST /api/export/load-checkpoint, /api/export/export/gguf
- training data: /api/datasets/*, /api/data-recipe/*; health: GET /api/health
Implications: auto-load (#24) is clean HTTP (status→load→poll→health-probe),
not a CLI subprocess; embeddings (#40) verify via check-embedding then
/v1/embeddings; the foundry handoff is endpoint-backed.
CRITICAL live state: unsloth is running but EMPTY (/v1/models -> [],
/v1/embeddings -> "No GGUF model loaded"). Nothing serves until auto-load
runs — the prerequisite for peers-online and for testing #40. Local GGUFs
exist to load against.
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
Sep 27, 2026
… allocated only if it fits, under the caller's GPU budget), #22/#24 (lived examples: tools, train:false), #5/#16 (Metal backward). This is what continuum install builds her engine from. Validated on the 5090 at this tip (test server in a 10 GB job object): window 512 trains (graph 2.58 GB), window 6144 refused before allocating, masked examples 1979/2177 trainable, text path unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Sep 27, 2026
…mory budget (+ pin to the trunk with fork #23) (#4458) * refactor(genome): the engine trainer's /train contract is typed (serde), and the lease goes to the engine as its memory budget The /train body was assembled field by field with json! and the status read back as raw Value: no schema, so a renamed or missing field was a silent wrong value. Now: - TrainRequest / EngineExample (serialize) and TrainStatus / TrainState / EpochReport (deserialize) are the one statement of the fork's wire contract. `state` is required (a body without one does not parse and is retried, never read as "not ours"); an unknown state is TrainState::Unknown and counts as possibly running. - memory_budget_mib = the job's governed lease: the engine refuses a graph over it BEFORE allocating (fork #23), instead of spilling past physical VRAM on Windows. - the footprint recorded per shape is the engine's own measured graph_mib (exact) instead of a sampled VRAM peak; the sampling (ResourceDaemon reads, AtomicU64) is gone. - a run that reaches done while being cancelled leaves no adapter behind (Fable's note on #4443). Tests: genome::fine_tuning 113/113; the progress test also pins the schema (no state = no parse, an unknown state = Unknown). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * chore(llama): pin 7772f3f9f — the fork trunk with #23 (training graph allocated only if it fits, under the caller's GPU budget), #22/#24 (lived examples: tools, train:false), #5/#16 (Metal backward). This is what continuum install builds her engine from. Validated on the 5090 at this tip (test server in a 10 GB job object): window 512 trains (graph 2.58 GB), window 6144 refused before allocating, masked examples 1979/2177 trainable, text path unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
joelteply
added a commit
that referenced
this pull request
Nov 14, 2026
…oint, Ratio, Result ledger Review of #5987 (~/.continuum/evidence/js-shaped-rust-2026-11-14/review.md): - #4 page_store_pool: Ratio newtype built only from a part and a nonzero whole; StorePressure { own, volume: Option<Ratio> }; an unread pressure never keeps (ColdPages::Yield); no .max(1) or map_or(0.0). The dyno fixture records bytes, not ratios. - #5 CheckpointFailure<E: Error> (own file, thiserror): Engine(E) | Admission(String) | Save { slot, kind: SaveFailure::{Rejected, Unresolved, Uncertain} }; no format! sentences. checkpoint_residents returns OwnedCheckpointRefusal variants instead of strings; AdoptedCheckpointRefusal::Save carries { slot, kind }. - #6 page_io::checkpoint_endpoint -> StopCheckpoint { Ended, EngineChanged, Saved, Failed(CheckpointFailure) }; no Err(()) -> String, no Option wrapper. - #7 PageAction { Save, Restore, Erase } (serde lowercase on the wire via .query()); every kv_page_action / page_action caller, the receipt judge and UnresolvedPage migrated. - #21 SavedLedger::load -> Result<LoadedLedger, LedgerUnread>; Unreadable(io::ErrorKind). - #22 CheckpointSave: consuming confirmed()/rejected(); unanswered drop quarantines. - #23 stop probes keep residents as Probed<u64>. - #24 broker sorts with total_cmp. - low: probes record the enums with Debug; the as_str tables are deleted. 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
… for a volume others filled, and a cold boot names why (#5987) * A restart restores every mind warm: the page store keeps minds' pages for a volume others filled, and a cold boot names why Serves resident minds' speed across a deploy (path step 1, order-of-work line 3b): a restart should cost a mind a ~1 s page restore, not a full re-prefill of her context. The save at stop, the format-keyed ledger and the restore before her first act already exist and are tested (page_io::checkpoint_every_endpoint, SavedLedger fingerprint, every_mind_resumes_where_she_left_off_across_a_stop_and_a_boot). What failed on the M5 2026-11-13: the KV page store gave 29 paged-out minds' confirmed pages to a High-tier volume request (volume 0.85, store 3% of its budget) between 22:40Z and 00:50Z, and the 23:45Z boot's ledger restored nothing (ledger_attached loaded=0, every first act cold_turn cause="no_page"), with no reason anywhere. - page_store_pool: confirmed minds' pages (rung 3) yield only to the store's own budget pressure (High+) or a Critical volume (ColdPages); dead pages still go under any pressure; a keep is a typed decline (minds_pages_kept), probed on change only. - broker: High relieves the first pool, in pressure order, that frees bytes, so a pool that keeps what it holds passes the request on (drops the unwrap_or(&[]) fallback). - saved_ledger: why a ledger restored nothing is a typed LedgerUnread; a missing ledger is probed instead of silently returning empty. - page_io: the stop names every endpoint it did not checkpoint (adopted engine, no paged engine) and probes before the drain, so a cut stop still says whom it saved. - dyno 11 (restart.rs + fixtures/dyno/2026-11-13-restart.json): four recorded residents (253,321 tokens) cold: last acting at ~401 s; warm: 0 re-prefilled, ~5.6 s of restores plus ~13.5 s in the stop; a paged-out mind keeps her page under the recorded pressure. 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 * The stop saves every resident at once and ends on events, not a stopwatch; ratchets fixed Joel (2026-11-14): independent work runs concurrently, never serial minutes; RTOS rule 10 (#5986): no timeout or sleep decides flow in the save/restore path. - engine_generation::checkpoint_pool issues every resident's save at once and joins on their receipts (was one await per slot). page_io checkpoints every endpoint at once. - page_io::settle waits on the admission gate's drain event (new AdmissionGate::drained, a Notify fired when the last permit releases) instead of a 50 ms poll under a deadline; the stop's checkpoint no longer runs under tokio::time::timeout(cap) and no longer skips on a spent budget. A page action that never answers ends through kv_page_action's own error events. - Restores were already per mind: each mind's first act restores her own page inside her own admission and waits on that receipt only. - The fork serializes page tasks: one task loop (tools/server/server-queue.cpp:138-153, save server-context.cpp:2809/2960, restore 2996/3076 at cd2e16d87). Measured 00:18:13Z: two restores issued at once, Benchy wait_ms 1,024 = Aris engine_ms 1,012. - dyno 11 models the engine's page lanes: one lane (today) stop 13.5 s, restores to 5.6 s; overlapped, stop = largest save 4.9 s and each mind only her own restore (max 2.0 s). - Ratchets: the ledger writes through durable::write_replace (no fs::write); restart.rs is #![cfg(test)] (one test mod in dyno.rs); the broker's unwrap_or carry their reasons. 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 * The dyno table's row 11 is a doc line Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Typed seams for the restart path: PageAction, SaveFailure, StopCheckpoint, Ratio, Result ledger Review of #5987 (~/.continuum/evidence/js-shaped-rust-2026-11-14/review.md): - #4 page_store_pool: Ratio newtype built only from a part and a nonzero whole; StorePressure { own, volume: Option<Ratio> }; an unread pressure never keeps (ColdPages::Yield); no .max(1) or map_or(0.0). The dyno fixture records bytes, not ratios. - #5 CheckpointFailure<E: Error> (own file, thiserror): Engine(E) | Admission(String) | Save { slot, kind: SaveFailure::{Rejected, Unresolved, Uncertain} }; no format! sentences. checkpoint_residents returns OwnedCheckpointRefusal variants instead of strings; AdoptedCheckpointRefusal::Save carries { slot, kind }. - #6 page_io::checkpoint_endpoint -> StopCheckpoint { Ended, EngineChanged, Saved, Failed(CheckpointFailure) }; no Err(()) -> String, no Option wrapper. - #7 PageAction { Save, Restore, Erase } (serde lowercase on the wire via .query()); every kv_page_action / page_action caller, the receipt judge and UnresolvedPage migrated. - #21 SavedLedger::load -> Result<LoadedLedger, LedgerUnread>; Unreadable(io::ErrorKind). - #22 CheckpointSave: consuming confirmed()/rejected(); unanswered drop quarantines. - #23 stop probes keep residents as Probed<u64>. - #24 broker sorts with total_cmp. - low: probes record the enums with Debug; the as_str tables are deleted. 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 * An unread ledger binds nothing in the or-pattern Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The cut-checkpoint test cuts after slot 0's concurrent save is confirmed Saves are now issued at once, so the cancellation case waits for slot 1's held save and slot 0's confirmation before it cuts, instead of relying on serial order. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The stop's probe reads its typed failure (no dead field) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * Tests borrow instead of cloning into calls (contract_shape stays at its base) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * The broker test names the clone's type so it coerces at the call 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 fixes issues with the CLI module compatibility and implements basic functionality:
Test plan
npm installnode packages/cli/bin/continuum.js -hnode packages/cli/bin/continuum.js init --output test.mdnode packages/cli/bin/continuum.js validate -c test.mdnode packages/cli/bin/continuum.js adapt --assistant claude -c test.md🤖 Generated with Claude Code