Skip to content

Add versioning strategy and release documentation - #21

Merged
joelteply merged 2 commits into
mainfrom
fix/update-readme
Apr 9, 2025
Merged

joelteply merged 2 commits into
mainfrom
fix/update-readme

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

This PR adds proper versioning documentation:

  • Adds versioning scripts to package.json for patch, minor, and major increments
  • Adds a Development section to the README with versioning guidelines
  • Creates a RELEASING.md file with detailed release process instructions
  • Adds a CHANGELOG.md to start tracking changes

This brings the project in line with standard open source practices for versioning and releasing software. The current version is kept at 0.1.0 as appropriate for pre-release software.

Copilot AI review requested due to automatic review settings April 9, 2025 03:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (2)

RELEASING.md:46

  • The placeholder version 'v0.x.x' might cause confusion; consider including instructions to replace it with the actual version number during a release.
git commit -m "chore: release v0.x.x"

README.md:120

  • The major version description 'x.0.0' is ambiguous compared to the RELEASING.md guideline; consider updating it to clearly indicate that the first stable release should be 1.0.0.
- **Major (x.0.0)**: Major changes, reserved for 1.0.0 release

@joelteply
joelteply merged commit 827beaa into main Apr 9, 2025
@joelteply
joelteply deleted the fix/update-readme branch April 9, 2025 03:44
joelteply added a commit that referenced this pull request Nov 30, 2025
joelteply added a commit that referenced this pull request Nov 30, 2025
Add versioning strategy and release documentation
joelteply added a commit that referenced this pull request Jun 19, 2026
#21)

Live finding (2026-06-19): continuum-mcp's initialize round-tripped but
tools/list/call timed out — the sidecar and core are the SAME machine-account
peer, so a command addressed "to that peer" over airc never routed back to the
core's handler. A LOCAL sidecar must speak the core's IPC socket directly.

CoreIpcTransport (runtime/): a continuum_client::Transport over the core's Unix
IPC socket — newline-JSON request (params flattened with command+requestId) in,
length-prefixed JSON frame out, mirroring ipc/mod.rs. TYPED wire structs
(IpcRequest/IpcResponse) per "encode into structs, not magic" — no json! poking.
Lazy connect + reconnect-on-error; 64MB frame cap; success→result,
{success:false,error}→ClientError::Refused (so the MCP layer surfaces it as
isError, never hangs). Event/serve verbs are typed NotImplemented (follow-up).

continuum-mcp rewired to CoreIpcTransport against CONTINUUM_CORE_SOCKET (default
/tmp/continuum-core.sock) — simpler + airc-independent than the prior
discover()/attach path, and it removes the self-peer bug. Cross-grid MCP (remote
core over airc, a distinct peer) is a later path.

Tests exercise the transport against a REAL in-test IPC server speaking the
actual wire codec (not a mock of itself): round-trip + refusal→Refused +
non-object-params rejection. Fixed a test-isolation flake (per-instance unique
socket path; parallel tests had collided on a pid-only path). 3/3 stable.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
joelteply added a commit that referenced this pull request Jun 19, 2026
#21)

Live finding (2026-06-19): continuum-mcp's initialize round-tripped but
tools/list/call timed out — the sidecar and core are the SAME machine-account
peer, so a command addressed "to that peer" over airc never routed back to the
core's handler. A LOCAL sidecar must speak the core's IPC socket directly.

CoreIpcTransport (runtime/): a continuum_client::Transport over the core's Unix
IPC socket — newline-JSON request (params flattened with command+requestId) in,
length-prefixed JSON frame out, mirroring ipc/mod.rs. TYPED wire structs
(IpcRequest/IpcResponse) per "encode into structs, not magic" — no json! poking.
Lazy connect + reconnect-on-error; 64MB frame cap; success→result,
{success:false,error}→ClientError::Refused (so the MCP layer surfaces it as
isError, never hangs). Event/serve verbs are typed NotImplemented (follow-up).

continuum-mcp rewired to CoreIpcTransport against CONTINUUM_CORE_SOCKET (default
/tmp/continuum-core.sock) — simpler + airc-independent than the prior
discover()/attach path, and it removes the self-peer bug. Cross-grid MCP (remote
core over airc, a distinct peer) is a later path.

Tests exercise the transport against a REAL in-test IPC server speaking the
actual wire codec (not a mock of itself): round-trip + refusal→Refused +
non-object-params rejection. Fixed a test-isolation flake (per-instance unique
socket path; parallel tests had collided on a pid-only path). 3/3 stable.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
joelteply added a commit that referenced this pull request Jun 19, 2026
…ss, no Node) (#1680)

* feat(mcp): Rust-native MCP server protocol handler (slice 1 — headless, no Node)

The keystone for the unsloth bridge + coding personas: a headless-Rust MCP
server brain that replaces src/mcp-server.ts (871 lines of Node +
@modelcontextprotocol/sdk). Keeps the command path headless — an MCP client
(unsloth Studio, Claude Code) speaks JSON-RPC, this turns each call into a
continuum command dispatch, zero Node/TS in the loop.

Design: the MCP server IS a client ([[persona-is-a-client]]). McpServer holds
only a CommandDispatch verb — it does NOT reach into module internals:
  - tools/list  → execute("mcp/list-tools")  (the existing catalog in
    modules/mcp.rs stays the single source of truth — commands ARE tools)
  - tools/call  → map MCP tool name → command path → execute(command, arguments)
So it's pure JSON-RPC framing over the command verb. In production the dispatch
is a continuum_client::Connection (gated like any caller); in tests, a mock.

handle_message(json) -> Option<String>: initialize / notifications/initialized /
ping / tools/list / tools/call + JSON-RPC error framing. Some(response) for
requests, None for notifications. tool_name_to_command handles the meta-tool
hyphen exception (mcp_search_tools → mcp/search-tools) vs the general _→/ rule.
Command refusals surface as MCP isError content (model sees it), not protocol
errors. Malformed JSON → parse error, never a panic.

7 unit tests cover initialize/list/call/meta-exception/refusal/notification/
malformed — all green. Pure + transport-agnostic.

Slice 2 (next): stdio + HTTP/SSE transport bin wiring the dispatch to a
continuum_client::Connection over the core, npm-start integration, then retire
src/mcp-server.ts. Needs live validation (unsloth @127.0.0.1 + Claude Code).

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* refactor(mcp): strongly type the whole protocol surface (solid wire contract)

Per Joel — type it WELL so the protocol is a solid contract, not Value-soup.
Every MCP message shape is now a real serde struct, parsed in / constructed out:
  - JsonRpcRequest, JsonRpcSuccess<T>, JsonRpcErrorResponse, JsonRpcError
  - InitializeResult / ServerCapabilities / ToolsCapability / ServerInfo
  - ListToolsResult (+ CatalogResult — validates the catalog into typed MCPTool)
  - CallToolParams, CallToolResult, ContentBlock (tagged enum, text today,
    extensible to image/resource for multi-modal tool results)

Raw serde_json::Value now appears ONLY at the two genuinely-dynamic seams: a
tool call's `arguments` and a command's result payload — both per-command JSON
the protocol ferries, not interprets. So the PROTOCOL is type-checked end to end;
only the command payload it carries stays dynamic.

Bonus: tools/list now deserializes the catalog into Vec<MCPTool>, so it also
proves the catalog (modules/mcp.rs) conforms to the MCP tool shape — drift fails
loudly. New test pins missing-`name` on tools/call → typed INVALID_PARAMS.

8 tests green (added invalid-params). No new warnings.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* feat(mcp): slice 2 — stdio transport + ConnectionDispatch + continuum-mcp bin

Turns the tested protocol brain (slice 1) into a live, headless MCP server.

- StdioRunner<D>: the newline-delimited-JSON stdio loop MCP clients (unsloth
  Studio, Claude Code) speak. Generic over any async reader/writer, so it's
  unit-tested end-to-end with in-memory byte streams — two requests in, two
  responses out, notifications produce no line. (MCP stdio framing is
  newline-delimited, not LSP Content-Length; serde_json emits no embedded
  newlines, so one-message-per-line holds.)
- ConnectionDispatch<T: Transport>: the production CommandDispatch — forwards
  each tools/call to the headless core over a continuum_client::Connection
  (Value→Value), so every MCP call runs the SAME gated command path any client
  uses. The MCP server IS a client ([[persona-is-a-client]]), no privileged
  bypass. Tested through a real Connection over MockTransport.
- bin/continuum-mcp.rs: thin glue — attach to the core over airc IPC
  (Airc::attach_as → Connection::connect, mirroring continuum-client-ffi),
  ConnectionDispatch → McpServer → StdioRunner::run(stdin, stdout). Env-config
  (CONTINUUM_HOME/SOCKET/PEER/AGENT), fail-loud, stdout reserved for JSON-RPC
  (diagnostics → stderr). No Node anywhere.

continuum-client added to [dev-dependencies] with test-fixtures so tests can
drive a real Connection over MockTransport; production dep unchanged.

11 MCP tests green (3 transport + 8 protocol); bin compiles.

Slice 2b (live, not blind): register continuum-mcp in npm-start build, point an
MCP client's config at it, validate against unsloth @127.0.0.1:8888 + Claude
Code, then DELETE src/mcp-server.ts (the 871-line Node server it replaces).

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* feat(mcp,install): build continuum-mcp via npm start + unsloth as install prereq

Slice 2b wiring — makes the MCP server real on disk and the inference engine a
first-class prerequisite.

start-server.sh: build the continuum-mcp bin (same crate/manifest/features/
profile as the core, fast incremental) before launching continuum-core-server.
MCP clients (unsloth Studio, Claude Code) SPAWN this bin, so it must exist after
`npm start` — built through the npm start path per the all-bins-build-via-start
rule, NOT a raw cargo build. Non-fatal: a failed mcp build warns; the core still
launches. An MCP client config points at the built binary; it replaces the Node
src/mcp-server.ts.

install.sh: add unsloth as step [8/9] (renumbered the steps to /9), the preferred
local inference + LoRA-training engine — like airc/tailscale, a curl-installer
prereq (curl -fsSL https://unsloth.ai/install.sh | sh, verified from unsloth
docs; macOS/Linux/WSL; runs as `unsloth studio -p 8888`). Installed by default
(it's the engine) but NON-FATAL + behind the AIProviderAdapter boundary —
Continuum still runs with another provider if absent (solve-for-public-users);
idempotent (command -v unsloth); skip with CONTINUUM_NO_UNSLOTH=1.

Validation: scripts pass `bash -n`; continuum-mcp bin builds (verified this
session). install.sh's full fresh-machine path is exercised by carl-install-smoke
CI, not runnable in this env — flagged for that gate.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* feat(mcp): turnkey continuum-mcp (auto-discover local core) + hookup runbook

Makes the MCP server zero-config — the reliability win. With the core running,
continuum-mcp auto-discovers it via continuum_core::airc::discover() (the same
liveness probe the core uses): socket + peer_id resolved automatically, no manual
UUID/socket lookup (that lookup was the friction that bred unreliability). The
MCP client config is just `command: "continuum-mcp"`. Every value stays
overridable via env (CONTINUUM_SOCKET/PEER/HOME/AGENT); discovery fails LOUD if no
healthy core is found (so a bad target errors, never hangs).

docs/infrastructure/MCP-SERVER-HOOKUP.md: turnkey runbook — build (via npm start),
the MCP client config JSON (Claude Code / unsloth Studio), verify steps (incl. a
stdio smoke one-liner), troubleshooting, and §5 the gated retirement plan for the
Node src/mcp-server.ts (delete only AFTER live-green, as its own reversible
commit).

Bin compiles; 14 MCP module tests green. Live end-to-end (against the running
core + unsloth @127.0.0.1:8888 / Claude Code) is the slice-2b validation step —
the runbook is the script for it.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* fix(mcp): direct core-IPC transport — fixes the airc self-peer timeout (#21)

Live finding (2026-06-19): continuum-mcp's initialize round-tripped but
tools/list/call timed out — the sidecar and core are the SAME machine-account
peer, so a command addressed "to that peer" over airc never routed back to the
core's handler. A LOCAL sidecar must speak the core's IPC socket directly.

CoreIpcTransport (runtime/): a continuum_client::Transport over the core's Unix
IPC socket — newline-JSON request (params flattened with command+requestId) in,
length-prefixed JSON frame out, mirroring ipc/mod.rs. TYPED wire structs
(IpcRequest/IpcResponse) per "encode into structs, not magic" — no json! poking.
Lazy connect + reconnect-on-error; 64MB frame cap; success→result,
{success:false,error}→ClientError::Refused (so the MCP layer surfaces it as
isError, never hangs). Event/serve verbs are typed NotImplemented (follow-up).

continuum-mcp rewired to CoreIpcTransport against CONTINUUM_CORE_SOCKET (default
/tmp/continuum-core.sock) — simpler + airc-independent than the prior
discover()/attach path, and it removes the self-peer bug. Cross-grid MCP (remote
core over airc, a distinct peer) is a later path.

Tests exercise the transport against a REAL in-test IPC server speaking the
actual wire codec (not a mock of itself): round-trip + refusal→Refused +
non-object-params rejection. Fixed a test-isolation flake (per-instance unique
socket path; parallel tests had collided on a pid-only path). 3/3 stable.

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 19, 2026
…to a live core (#1690)

Unit tests in mcp_protocol/mcp_transport mock CommandDispatch, so they never
exercise the socket transport reaching a real core — exactly the gap that let
the airc self-peer timeout (continuum-mcp #21) slip past green unit tests.

This integration test rebuilds the EXACT composition the continuum-mcp bin
ships (CoreIpcTransport → Connection → ConnectionDispatch → McpServer) and
round-trips initialize → tools/list → tools/call against a live core:
- initialize handshake survives the real transport (ids line up, serverInfo set)
- tools/list round-trips to the real command catalog (non-empty, meta tools present)
- tools/call maps + dispatches through the socket (well-formed CallToolResult)

Follows the repo's skip-if-no-live-core convention (reuses tests/common; like
call_server_integration / ipc_voice_tests): with `npm start` up it exercises
the live path, otherwise it skips cleanly so plain `cargo test` stays green.

The hermetic in-process-serve variant (boot a minimal runtime on a temp socket
so this runs in CI without npm start) is the tracked depth follow-up (#22).

Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply added a commit that referenced this pull request Sep 27, 2026
…ghts behind FineTuningAdapter (engine-local); pin 1d028f43b (#4443)

* feat(genome): the engine trainer — in-engine LoRA on the resident weights behind FineTuningAdapter ("engine-local")

The lane serving the base already holds its weights at their served quantization; its
POST /train trains a fresh LoRA beside the serving slots. This backend drives that run from the
genome: no second copy of the model, no trainer process, the adapter fit against the numerics it
is served over, out as a GGUF-lora the genome pages in with no convert step.

- native_jobs: one job owner for both kinds of run. Execution::Process (the PyTorch/MLX trainer
  processes, unchanged: spawn, drain, kill-and-reap on cancel) or Execution::InPlace (a run driven
  where it lives; on a cancel it stops the run THERE and reports Cancelled only once it has
  stopped). Same handles, probes, status and terminal states.
- engine_lora_adapter (provider "engine-local"): the live lane whose recorded model IS the base
  (none = refused); dataset -> "examples" (the engine renders them through the served template,
  one window each, loss only on the assistant turns); HF target modules -> GGUF names (unknown =
  refused); polls GET /train into progress; cancel = POST /train/cancel.
- admission is MEASURED: a footprint per (model, window, rank, targets) in
  ~/.continuum/genome/engine-footprints.json leases its number; a shape never run before is a
  calibration run that leases all governed free VRAM (nothing grows into it), samples the peak
  (ResourceDaemon::physical_used, new) and records peak - before for the next run.
- finish moves <job>.gguf OUT of engine-train into the job's adapters/ dir before the job is
  terminal (Fable's invariant: that dir is swept of files whose job is not live).
- registered in production; selected by preference ("engine-local") on GPU hosts, where the
  process trainers still rank first, until the first measured 27B run makes it the default.

Tests (the file's one mod, against an axum lane answering /train like the engine):
a_finished_run_moves_its_adapter_out_of_the_train_dir_and_reports_the_engines_losses,
a_cancel_stops_the_run_on_the_engine_before_the_job_reports_cancelled,
unknown_targets_and_unserved_bases_are_refused_up_front,
progress_is_completed_epochs_plus_the_current_batch_fraction. genome::fine_tuning 109/109.
NativeJobs::launch is test-only now (only fixtures used it; it was dead-code-warned).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

* chore(llama): pin 1d028f43b, the trunk with fork #20/#21 — the "examples" this dispatch sends (rendered through the served template, one window each, loss only on the assistant turns) and the CE backward that honours the mask

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

* fix(genome): no engine-trainer failure path lets go of the lease while the engine may still train (Cormac on #4443)

Every InPlaceEnd::Failed used to skip finish and drop the reservation at once: one GET /train
error, an unknown state, or a lost cancel POST released the lease under a live run.
- the lease is now OWNED BY THE RUN (EngineRun._lease) and drops only when run() returns;
- run() returns only once nothing of this job trains in the engine: every non-finished exit
  goes through stop_ours(), which cancels (retrying the POST) and waits until the engine's
  status is no longer this job's possibly-live run (ours and not done/cancelled/error — an
  unknown state counts as running) or the lane is gone;
- a status read is retried through a silence shorter than LANE_SILENCE (90 s); a body without a
  state is unreadable, retried, never read as "not ours"; a lane silent that long is gone and
  its run with it (the run lives inside the engine process);
- a POST /train lost on the way back is treated as possibly started and stopped before failing;
- "not ours" ends the job: the engine runs one training at a time, so another run means ours
  has ended;
- footprints keep the LARGEST observation (a 1 s scan can miss a peak, never invent one).

Tests: no_failure_path_ends_the_job_while_the_engine_still_trains_it (unreadable statuses are
retried to completion; an unknown state is cancelled on the engine before the job fails),
a_footprint_keeps_the_largest_observation. genome::fine_tuning 111/111.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants