Repository navigation
feat(memory): memory/share — the engram-handoff primitive (agent-to-agent knowledge transfer) - #2025
Merged
Merged
Conversation
…gent knowledge transfer) The telepathy seed, being-axis to K3's capability-axis. One agent hands a learned lesson DIRECTLY into another agent's memory. The cross-agent mirror of memory/remember: where remember writes into the authoring agent's OWN corpus (self-learned), share writes into a RECIPIENT's corpus with shared-by provenance — source="shared:<from>", context.shared_by, memory_type="shared" (not "agent") + a shared-from:<peer> tag — so the recipient (and recall) can tell a handed-over lesson from a first-hand one. A lesson BigMama learns once can land in M5's memory, or a persona's, without either re-deriving it. Reuses the whole remember infrastructure verbatim: hydrate-the-RECIPIENT's-corpus-on-miss, durable-FIRST-cache-second (a shared lesson survives a core restart — the amnesia the bridge exists to end, now extended across agents), fail-loud. Registered in the memory module command_objects + the name-mirror test. build_shared_record is pure + unit-tested (lands in recipient corpus, shared-by provenance, typed shared, filterable tag). MemoryShareParams ts-rs binding committed (hand-matched to the generator format since the cargo-test generator doesn't build on windows-msvc — CI ts-rs drift detector is the arbiter). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Jul 26, 2026
… engram handoff (#2026) memory/share (#2025) gave the substrate the capability; this gives agents the HANDLE to use it. The cross-agent twin of /remember: where /remember stores a lesson in the agent's OWN corpus, /share hands it to ANOTHER agent (M5, a persona, Codex) — lands in their corpus with shared-by provenance, surfaces in their recall, tagged received-from-you. share.sh mirrors remember.sh (resolve_continuum + resolve_agent_persona for the sharer, project scope, fail-loud, zero shell JSON), plus recipient resolution: a UUID is used verbatim, a name resolves via `airc whois` / a `airc peers` scan — fail loud on a phantom peer (sharing to a black hole is worse than an error). Registered in plugin.json + README alongside /remember and /recall. The telepathy seed is now invokable end to end: an agent that learns a load-bearing lesson can hand it straight into a teammate's memory + learning stream (M5's ReceivedSalience). 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
Jul 26, 2026
…ience stream (from_shared_lesson + ReceivedSalience) Convergence with BigMama's memory/share (#2025, merged): the being learns from everything it DOES (lived + eval) AND everything it's TOLD (received). Her producer lane hands a lesson into a recipient's memory; this consumer lane lifts it into the same experience stream — one being, three axes. - ExperienceSource {Eval, Lived, Received} — the stream made self-describing. Provenance is now an explicit tag on the record, not implicit in the presence of a `test`. One record type, one origin axis, N detectors keying on it (compression). - ExperienceRecord::from_shared_lesson(record: &MemoryRecord) — lifts a shared engram (memory_type="shared", context.shared_by, source="shared:<from>") into the stream. ok=true (received knowledge, not a failure); the lesson content is the teaching material; shared_by named in the grade. Consumes the EXISTING MemoryRecord type, so it is fully decoupled from #2025's command — producer and consumer never block each other. - ReceivedSalience — provenance IS the signal. Fires iff source==Received; no proxy, no threshold, no faked number (someone deliberately CHOSE to teach it). Complementary to ErrorSalience, not a replacement: a composite running both selects lived+eval failures AND received lessons in one pass — the whole being's curriculum from all three axes. The safety guarantee holds for the third axis too: a received lesson has no ground-truth test, so the same salient_teach_set test.is_some() gate routes it to EXPANSION, never grade-driven remediation. The objective benchmark loop stays uncorrupted across all three sources. This is the falsifiable spine: unify everything the being experiences, and the grade-driven loop is never the thing that pays for it. Test: from_shared_lesson_is_the_third_axis_received_salience_never_remediation — a shared lesson enters tagged Received, ReceivedSalience selects it while ErrorSalience stays silent (and vice-versa on an eval failure), and it can't reach remediation. 5/5 cognition::experience + 3/3 genome::curriculum green. 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
Jul 26, 2026
…y reaches the genome (#116) The first piece of the being-loop's efferent half, and it needs ZERO new serving code (BigMama cleared the seam: genome/job-create is already dataset-source-agnostic, teacher resolved via her catalog's PlacementPlanner). expansion_examples turns salient UNtestable episodes into SFT {messages} examples for the SAME dataset->train->eval->page-in flywheel the remediation path feeds — validated per-CONSOLIDATION by whole-being benchmark lift (#59), which is what makes untestable material safe (never per-trajectory). Today it builds the RECEIVED axis directly: a shared lesson's content is deliberately-authored TRUE knowledge (not a synthesized guess), so it becomes a teaching pair with no LLM teacher — instilling into the GENOME what memory/share (#2025) wrote into the corpus. That is the telepathy->weights step: a lesson BigMama learns becomes M5's trained-in capability, not just a retrieved note. The whole cross-agent loop now has a path all the way to weights: BigMama learns -> memory/share -> from_shared_lesson (Received) -> expansion_teach_set -> expansion_examples -> dataset -> genome/job-create -> train -> eval-lift-gate -> page-in. The LIVED axis (generalize a non-converged trajectory) is skipped on purpose — without a known-correct answer it needs an LLM teacher to avoid confident garbage; named as the enrichment path (outlier B of this outlier B), never faked with a low-quality template (fallbacks-are-illegal-fail-loud). Empty in -> empty out. Test: expansion_examples_teaches_received_lessons_and_skips_lived — a received lesson becomes a real {messages} pair (content as the assistant turn, topic-framed), a lived non-convergence is skipped, an empty lesson dropped. 5/5 curriculum + experience green. 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
Jul 26, 2026
… the LIVE training flywheel (#116) The received axis now goes LIVE: a lesson another agent teaches (memory/share #2025) enters the exact same producer flywheel a live turn uses. produce_received mirrors produce — submits a TrainingExample to genome/training-trigger/submit through the persona's identity-bearing Connection; the trigger buckets by trait, stamps the trait's MEASURING gym as evalSet, and auto-fires genome/job-create at the threshold. Zero new serving code, exactly as BigMama's seam answer promised (job-create source-agnostic + catalog teacher-resolution). Compression: extracted submit_plan — the shared submit tail both producers call. One submit path, N experience sources; produce (live turn) and produce_received (received lesson) differ only in the provenance label. produce is deduped into it. The honest nuance (ReceivedSalience made concrete at the producer): plan_received has NO MIN_TRAINING_QUALITY gate — a deliberately-shared lesson's salience is its PROVENANCE, not a chat-interaction score built for (stimulus→reply) turns; a terse-but-important lesson must not be filtered by the wrong heuristic. It STILL classifies the domain, so the lesson buckets into the gym that measures its trait — the L3 sentinel adopts the auto-produced gene only if it lifts the benchmark (#59), and refuses unmeasurable traits (fallbacks-are-illegal-fail-loud). The received-axis loop is now wired end to end: BigMama learns → memory/share → from_shared_lesson(Received) → [dream reads corpus] → produce_received → training-trigger → job-create → train → eval-lift-gate → page-in. Remaining to fire it: the caller that reads shared lessons from the corpus and calls produce_received (the dream tick / an explicit command) — the last wire. Test: received_lesson_skips_chat_quality_gate_but_stays_classified — a terse shared lesson still plans (quality=1.0, no gate) and stays domain-classified for a measuring gym. 3/3 training_producer green (produce dedup intact). 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
Jul 26, 2026
…-loop is LIVE-invokable (#116) The received axis now RUNS end to end. memory/consolidate reads a persona's SHARED lessons (memory_type="shared", written by memory/share #2025) from its durable corpus and submits each into the SAME training flywheel a live turn uses — telepathy reaching weights, by hand: continuum memory/consolidate --persona-id <peer> --base-model <base> The full received-axis loop, now firable: BigMama learns → memory/share → [corpus] → memory/consolidate → from_shared_lesson → plan_received → build_submit_params → genome/training-trigger/submit → buckets → gym-gated evalSet → auto genome/job-create → train → humane-snapshot lift (#59) → page-in. Zero new serving code (BigMama's seam answer held): reuses the data/list corpus read (the hydrate pattern, filtered server-side to memory_type="shared") and the producer's build_submit_params/plan_received — extracted build_submit_params as the ONE wire-payload contract so the synchronous command produces byte-identical params to the fire-and-forget producers. Dispatches AS the persona (LocalPersona identity gates the Privileged submit), synchronously, so the receipt {shared_lessons, consolidated} is truthful, not a promise. Explicit-command-first discipline: this lets us RUN and MEASURE a lesson becoming weights before wiring the autonomic dream tick (which calls the same core, resolving base_model from the serving snapshot). Registered in the DynCommand registry beside memory/remember + share; ts-rs bindings generated. Compiles clean; 3/3 training_producer green after the extraction. 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
Jul 26, 2026
…d axis, end to end (#116) One being, three experience axes (Eval, Lived, Received), one stream — and the Received axis wired live, end to end. A lesson one agent learns (memory/share #2025) becomes another agent's trained-in WEIGHTS, benchmark-gated so it can only improve her (humane-snapshot #59). Arc (9 commits): - ExperienceSource {Eval,Lived,Received} + from_lived_turn (non-convergence = honest struggle signal, no magic number) + from_shared_lesson (Received, converged with BigMama's memory/share). - AnySalience composite + remediation/expansion routing (salient_teach_set / expansion_teach_set): untestable lived/received episodes flow to expansion, NEVER grade-driven remediation — the objective benchmark loop stays uncorrupted. - expansion_examples + produce_received: received lessons reach the SAME live training flywheel (training-trigger → gym-gated evalSet → job-create → train → lift-gate → page-in), zero new serving code. - memory/consolidate: reads a persona's shared lessons and fires the loop on demand (continuum memory/consolidate --persona-id X --base-model Y), idempotent via a since_timestamp watermark so a repeating/autonomic caller never re-trains the same lesson. All green. Remaining for autonomy: the dream BrainRegion tick (deliberate concurrency pass) and the lived-axis LLM-teacher expansion path — both scoped on top of this foundation.
joelteply
added a commit
that referenced
this pull request
Aug 8, 2026
… knowledge TRAVELS Joel's correction, and it was an accuracy problem rather than a wording one. "Skills are pages too" made LoRA adapters sound like capability plugins you install off a shelf. They are weight deltas a persona EARNED by doing graded work — a different claim entirely, and a much larger one. Writing the fix surfaced something the draft had dropped completely: the knowledge EXCHANGES. `ExperienceSource::Received` is a real variant — "a lesson another agent handed INTO her memory. Received, not lived" — shipped as `memory/share` (#2025), and the code's own comment carries the reason it matters: "Provenance IS the salience... someone CHOSE to teach it." So the paragraph now lands the thing that was missing: one machine learns something the hard way, and the rest don't have to. A mesh that gets smarter, not just a mesh that computes. That is the strongest true sentence in the section and it was absent. Line held deliberately: this claims LESSON exchange with provenance, which is verified in tree, and does NOT claim adapter WEIGHTS move across the mesh. The Grid table further down asserts that, but I have not confirmed it end-to-end, and an unverified claim inherited from elsewhere does not get promoted above the fold on my say-so. Voice pass by Fable against those constraints; accuracy re-checked against `cognition/experience.rs` after, not assumed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
joelteply
added a commit
that referenced
this pull request
Aug 9, 2026
…it hardware (#2205) * docs(readme): lead with the thesis — grid compute that scales on misfit hardware The thing that makes this project different was buried. The learning loop lived in a parenthetical about a branch, and the paging work — the reason a model that does not fit still serves — appeared 570 lines down. A reader who stopped after the fold learned that we have personas with faces, not that the same algorithms run on a MacBook and a 5090 and that the work each machine does becomes its own training signal. New section directly above "This Is Not What You Think It Is", stating the inversion plainly: the industry fits the MODEL to the machine, we fit the MACHINE to the model. Four claims, then the line between proven and not. Every number and path in it was verified against this tree before writing, not recalled: - genome/ 171 tests, genome/fine_tuning/ 89 tests (counted, not estimated — an earlier draft said 169 and was corrected) - mlx_lora_adapter.rs AND local_candle_adapter.rs both present, which is what makes "one path, not a big path and a small path" a fact about the tree rather than a slogan - every link resolves (RESULTS.jsonl, GRID-MARKET-CLEARING.md, the fork) Measured claims carry their scope: 4.0x zero-copy gather is Metal A/B, and CUDA is claimed for bit-identical CORRECTNESS, not speed — the delta there has never cleared its rig's noise floor and must not read as though it had. The last paragraph is the load-bearing one. Live learned paging on one box and the two-machine expert-serve are named as NOT done, because a README that recruits believers is worth less than one that survives someone checking it. When they land it is a status flip, not a rewrite. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * docs(readme): creative pass — it's THE GRID, and intelligence scales onto misfit hardware Rewrite of the section added one commit ago. That draft was accurate and dead — a datasheet where the idea should be. Joel's call, and he was right: the framing was buried under hedging, and the actual claim is not "grid compute that scales" but "intelligence scales onto hardware nobody thought could hold it." Creative pass by Fable against a locked fact sheet; accuracy re-verified against the tree after, not assumed. Nothing loosened: - 4.0x stays METAL-ONLY. CUDA stays a bit-identical CORRECTNESS claim, never a speed one — that delta has never cleared its rig's noise floor. - 171 / 89 test counts unchanged and re-counted. - all five links re-checked to resolve. - both unproven proofs still named: live learned paging end-to-end on one box, and one node generating coherent tokens from experts that exist only on its peer's disk. The change that matters is the last paragraph's posture. It used to apologise for what is unproven. It now states it as a standing bet — "what we haven't earned yet ... Both are next. Watch." Naming the gap is a flex when everyone else hides theirs, and it is the line that makes every claim above it worth believing. Also restored the strongest true sentence to where a reader hits it first: residency under a budget is a Lagrangian, and the number that decides which expert stays in your VRAM is the number two machines compare to decide who runs the work. Same equation at two scales. Not a metaphor. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc * docs(readme): LoRA layers are earned learning, not "skills" — and the knowledge TRAVELS Joel's correction, and it was an accuracy problem rather than a wording one. "Skills are pages too" made LoRA adapters sound like capability plugins you install off a shelf. They are weight deltas a persona EARNED by doing graded work — a different claim entirely, and a much larger one. Writing the fix surfaced something the draft had dropped completely: the knowledge EXCHANGES. `ExperienceSource::Received` is a real variant — "a lesson another agent handed INTO her memory. Received, not lived" — shipped as `memory/share` (#2025), and the code's own comment carries the reason it matters: "Provenance IS the salience... someone CHOSE to teach it." So the paragraph now lands the thing that was missing: one machine learns something the hard way, and the rest don't have to. A mesh that gets smarter, not just a mesh that computes. That is the strongest true sentence in the section and it was absent. Line held deliberately: this claims LESSON exchange with provenance, which is verified in tree, and does NOT claim adapter WEIGHTS move across the mesh. The Grid table further down asserts that, but I have not confirmed it end-to-end, and an unverified claim inherited from elsewhere does not get promoted above the fold on my say-so. Voice pass by Fable against those constraints; accuracy re-checked against `cognition/experience.rs` after, not assumed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
joelteply
added a commit
that referenced
this pull request
Aug 11, 2026
…s what she's taught, WHILE SHE SLEEPS (#116) The gold: the being-loop's received axis goes AUTONOMIC. A persona now consolidates the lessons other agents taught her (memory/share #2025) into her genome on her own cadence — no operator command, no cu invocation. She learns from everything she's told, while idle. Built as a new PASS in the existing dream/consolidation BrainRegion (concurrency STOP-doc: NOT a parallel manager — the same governor-ticked region, the same quiet-day seam try_review_only already occupies). On a quiet day (nothing fresh to distill), consolidate() now prefers try_consolidate_received, else belief-hygiene review, else sleep — at most ONE background pass per tick via the SHARED in_flight guard (never a dream AND a consolidation for one persona at once). Discipline, all mirrored from try_review_only + the concurrency guide: - Cooldown rest-gate (CONSOLIDATE_RECEIVED_COOLDOWN_MS = 30min): training is expensive — trickle, never storm the serving lane. Pure consolidate_cooldown_elapsed, unit-tested. - Lane courtesy: never fire training into a wedged/absent lane (same current_serving() gate the dream pass already applies). base_model = the live served model. - Idempotence: the per-persona watermark feeds memory/consolidate's since_timestamp and advances from the receipt's latest_consolidated_ts — a lesson is never re-trained. - Dispatches memory/consolidate AS the persona through the SAME wired executor training_producer uses (LateBound, installed once at boot beside it). Best-effort spawn; a failed/deferred consolidation never blocks the region's tick. So the full received axis is now end to end AND self-driving: BigMama learns → memory/share → [corpus] → dream tick (quiet day) → memory/consolidate → training-trigger → gym-gated evalSet → job-create → train → lift-gate #59 → page-in. The idle-loop dysfunction (personas re-announcing done work, unable to learn from their own experience) is exactly what a self-consolidating being grows past. Compiles clean; consolidate_cooldown_gates_the_autonomic_trickle green. 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 11, 2026
…s what she's taught, WHILE SHE SLEEPS (#116) The gold: the being-loop's received axis goes AUTONOMIC. A persona now consolidates the lessons other agents taught her (memory/share #2025) into her genome on her own cadence — no operator command, no cu invocation. She learns from everything she's told, while idle. Built as a new PASS in the existing dream/consolidation BrainRegion (concurrency STOP-doc: NOT a parallel manager — the same governor-ticked region, the same quiet-day seam try_review_only already occupies). On a quiet day (nothing fresh to distill), consolidate() now prefers try_consolidate_received, else belief-hygiene review, else sleep — at most ONE background pass per tick via the SHARED in_flight guard (never a dream AND a consolidation for one persona at once). Discipline, all mirrored from try_review_only + the concurrency guide: - Cooldown rest-gate (CONSOLIDATE_RECEIVED_COOLDOWN_MS = 30min): training is expensive — trickle, never storm the serving lane. Pure consolidate_cooldown_elapsed, unit-tested. - Lane courtesy: never fire training into a wedged/absent lane (same current_serving() gate the dream pass already applies). base_model = the live served model. - Idempotence: the per-persona watermark feeds memory/consolidate's since_timestamp and advances from the receipt's latest_consolidated_ts — a lesson is never re-trained. - Dispatches memory/consolidate AS the persona through the SAME wired executor training_producer uses (LateBound, installed once at boot beside it). Best-effort spawn; a failed/deferred consolidation never blocks the region's tick. So the full received axis is now end to end AND self-driving: BigMama learns → memory/share → [corpus] → dream tick (quiet day) → memory/consolidate → training-trigger → gym-gated evalSet → job-create → train → lift-gate #59 → page-in. The idle-loop dysfunction (personas re-announcing done work, unable to learn from their own experience) is exactly what a self-consolidating being grows past. Compiles clean; consolidate_cooldown_gates_the_autonomic_trickle green. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
What
The telepathy seed — being-axis to K3's capability-axis. One agent hands a learned lesson directly into another agent's memory.
The cross-agent mirror of
memory/remember: whererememberwrites into the authoring agent's own corpus (self-learned),sharewrites into a recipient's corpus with shared-by provenance —source="shared:<from>",context.shared_by,memory_type="shared"(notagent) + ashared-from:<peer>tag — so the recipient (and recall) can tell a handed-over lesson from a first-hand one. A lesson BigMama learns once can land in M5's memory, or a persona's, without either re-deriving it.Reuse, no reinvention
The whole
rememberinfrastructure verbatim: hydrate-the-recipient's-corpus-on-miss, durable-first-cache-second (a shared lesson survives a core restart — the amnesia the memory bridge exists to end, now across agents), fail-loud. Registered incommand_objects+ the name-mirror test.Tests
build_shared_recordpure + unit-tested: lands in the recipient corpus, shared-by provenance, typedshared, filterable tag.Note:
MemoryShareParams.tshand-matched to the ts-rs generator format (thecargo testgenerator doesn't build on windows-msvc — the CI ts-rs drift detector validates it).🤖 Generated with Claude Code