Repository navigation
M-17's gate, experience, and Substrate's shape (S-168 to S-191) - #22
Merged
Merged
Conversation
…n the GPU (S-169) - llm: Inkling 2 Mini by default on the CPU and in RAM (-ngl 0 --no-op-offload -t 6), alias local/slow; llama.cpp image b12627 (inkling2_loop needs b12591+) - llm-fast: a small model wholly on the GPU (LLM_FAST_*), provider `fast` at the gateway, open to voice:head and worker:loop; empty LLM_FAST_MODEL: not started - VOICE_MODEL picks the voice head's model (empty: local/slow) - check.sh: the llm-fast check; waits up to a minute for a gateway still starting (podman 4.9's network DNS drops lookups during mass starts) - code defaults local/gemma -> local/slow Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
… goes to the local worker (S-170) - voice/route.py: the tools router (forced tool call, thinking off, stop at </think>, plain words as talk) and an embedding nearest-example router kept as VOICE_ROUTER=embed - voice/server.py: tools turns; delegate -> worker queue with reply_to voice, "On it"; save_note -> the example plan via the worker, "Noted"; the worker's answer condensed and read out - worker: reply_to in the message comes back in worker.task.done - gateway: the voice head may embed through Ollama (local) - tests: test_voice_route (16), worker reply_to, gateway local-only voice and fast provider - trial: 12 held-out utterances, scripts/trials/voice-route Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…earch (S-171) - voice/tools.py: save_note, read_notes (the worker's notes/), remind, calculate, lookup (Wikipedia), search (local SearXNG); at most 3 quick steps a turn - voice/server.py: streamed steps, talk text spoken sentence by sentence; quick tools run here; reminders said when due; only what was said kept in the history - voice/route.py: tool specs and prompt with the local time; TalkText, stream_events, speakable (no markdown, list marks, emoji, zero-width characters) - compose: service search (SearXNG 2026.11.8, AGPL, own container, no host port, dns_opt for podman's AAAA stall); voice gets the workspace, group 65534, TZ - worker: notes/ group-writable (setgid); an empty final answer is a failure - tests: test_voice_route 29, worker empty answer; trial rescored Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…ent instances (S-172, S-173) - docs/plan.md: the runtime, components and agents; next steps in order; owner's decisions on BUSL parts and LFM3 - scripts/trials/harness: the need, the entity list (97 candidates in the catalog skill's shape, 13 checked), the isolated trial network, a stdlib stub MCP server; the trial parked - DECISIONS: S-172 (harness survey), S-173 (the direction; Nomad out on its BUSL) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…n A, to confirm) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…st (S-174) - docs/plan.md: Substrate builds no runtime and does not mediate links; interfaces described WoT-style, translators as components, decoders and encoders for existing runtimes (Compose first); the kernel as a symbolic latent space; the boundary from the kernel's own D-36, D-41, D-94 c, D-101; next steps rewritten - docs/compatibility/: 10 runtimes, 15 orchestrators, 7 cloud services, 13 standards, with formats, APIs and licences (README for people, runtimes.json for the kernel) - DECISIONS S-174; P-Plan's CC BY-NC-SA licence flagged for the owner Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…Plan (S-175) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…chedule Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…d image's revision) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…nel, and a fit check (S-176) - catalog/: 47 entity files (components, APIs, the database, system, owner) in Backstage's format; interfaces as API entities typed by protocol, blocks' as WoT Thing Description actions; licence, image, compose service, decision as annotations - scripts/catalog.py: check (every consumed API provided, references resolve, compose matched both ways), apis, check --kernel (fit from the kernel's claims, and drift) - compose job kernel-catalog and scripts/kernel.sh catalog: encoder-backstage reads the files into the kernel; volume kernel-artifacts as the artifact store - check.sh runs the catalog check; scripts/tests/test_catalog.py (9 checks) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…b, as compose names it - catalog: resource:db (was postgres), so the catalog's and compose's nodes meet - kernel-catalog job: --root / pins the recorded paths - DECISIONS S-177; plan step 2 status Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…rial (S-179) The gate goes in a proxy in front of the gateway (OpenAI and Anthropic formats), asks System One style decision questions at every model call, and learns online: TabICL over embeddings, the fast model's probabilities as the cold start. Labels are outcomes, including feedback that arrives later. The trial (scripts/trials/decider) is on a dev set written by its author: pending a blind run. CLAUDE.md: the two local models (S-169) and the voice head's routing (S-170, S-171) replace Gemma. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…names (S-181) S-180: skills propose, the decider selects (Soar-RL's role), impasses typed, the compiler is chunking; prequential evaluation, Thompson sampling, AutoML later. S-181: the companion and the worker become one assistant whose model calls the gate routes by rung (skill, fast, slow, cloud behind propose); MetaSoar's experiments move into Substrate; the Kernel and Substrate are the two products. plan, repos, README, CLAUDE.md, framework and privacy updated; the 2026-11-22 handoff marked superseded. Open for the owner: whether the gate's log keeps requests verbatim (privacy P6). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…rst tools (S-182) System 1 is distilled from the assistant's experience: one episode per model call (scenario, response, outcome) in env.experience, kept verbatim with the text encrypted, deletion and retention (P6 loosened for this store by the owner). First tools: files, search, the kernel, Substrate itself, and an MCP installer from a trusted registry whose installs wait for the owner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…h retention (S-183) One episode per model call the gate sees (scenario, response, decision, impasse), outcomes attached later by its ref. The text is encrypted with pgcrypto under EXPERIENCE_KEY, never stored; the gate's login records and reads the decider's context without text; only the owner reads, forgets and expires. scripts/tests/test_experience.py: 29 checks; all suites pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…ted; the ladder as a distribution (S-184 to S-186) S-184: environments are OpenEnv environments (openenv 0.12.0 pinned), with persistence, auth, gates and events built inside them; a seven-point spike first. S-185: the layers (Kernel, Substrate as the orchestrator kit, Morphogen as the optimiser plugin, distributions as folders here, MetaSoar as research), slots with contracts as the only dependencies, one database, rule 9 rewritten. S-186: the multi-response ladder is an assistant-distribution component on OpenEnv. docs/framework.md rewritten (the old one archived), plan, repos, README and CLAUDE.md updated, the prior-art research in docs/research/, and a handoff for the next session. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…d docs pass; the motto (S-187) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…s in its own session (S-188) Rule 7 extended: downloads the user makes may be recommended whatever their licence, with it named. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…t-facing docs; an rtfm skill (S-189) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
The kernel defines the schemas Substrate follows, so the env schema moves into the kernel's database (a kernel decision superseding D-94 (c)); a third party's private store may stay apart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…aces D-94 (c) (S-191) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…Harbor and AgentEnv noted (S-192) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
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.
Everything on
claude/m17-gatesincemain, 23 commits (S-168 to S-191):local/slowon the CPU,fast/faston the GPU); voice routing by tool call; quick tools, streamed speech, SearXNG search.env.experience,env.outcome: encrypted, deletable, with retention).storeschema dropped after a dump.Checks:
scripts/check.shand all eleven suites ofscripts/test.shpassed at the handoff commit; gitleaks finds no leaks in the 23 commits.🤖 Generated with Claude Code
https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu