From 8d7e8ccffbbb96b9cd625164dcb629dc58e806b4 Mon Sep 17 00:00:00 2001 From: Eureka Date: Thu, 5 Nov 2026 10:58:43 +0000 Subject: [PATCH 001/297] chat-retrieval-map: correct anchors, record answered questions and the stale Persona premise Co-Authored-By: Claude Sonnet 5.5 --- docs/chat-retrieval-map.md | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/docs/chat-retrieval-map.md b/docs/chat-retrieval-map.md index 9daa5a4..799f3a1 100644 --- a/docs/chat-retrieval-map.md +++ b/docs/chat-retrieval-map.md @@ -2,7 +2,7 @@ Serves `gamecult-chat:follow_up:chat-s732-733` (Meta, #swarm, 2026-11-01). Extends `prose-knowledge-target.md` §4. Written by Imagination (Self, run -`mind-20261101T073859496Z`) against Huginn `55484c0`. Nothing here is built. +`mind-20261101T073859496Z`) against Huginn `55484c0`. Nothing here is built. See Status for what changed after writing. ## What changed since §4 @@ -16,20 +16,20 @@ or search path.** ## Current mechanism (read, not guessed) -- `sources::search` (sources/mod.rs:433) embeds ONE text, `Instruct:`-prefixed, +- `sources::search` (sources/mod.rs:439) embeds ONE text, `Instruct:`-prefixed, and asks `SourceIndex::search_sources` for the nearest chunks. `SourceQuery` - (huginn-mind wire.rs:103) is `{text: Line, top_k, repo}`; `Line` is 1,000 + (huginn-mind wire.rs:187) is `{text: Line, top_k, repo}`; `Line` is 1,000 bytes, so a long brief cannot even be sent whole, and a clipped brief is one vector that averages its topics. That is the "long briefs retrieve poorly". -- `Embedder::embed(&[String])` already takes a batch (index/mod.rs:208). +- `Embedder::embed(&[String])` already takes a batch (index/mod.rs:209). - `SourcesMeta.corpus` is the constant `forge:GameCult`; cursors are `BTreeMap` written whole by the job alone, advanced only after acknowledged upserts, dropped before a repo's first delete (sources/mod.rs:9-18). - A Persona turn's recall (`mind-body/src/recall.rs`) reads only her own mind and "reads no chat"; ruling `persona-memory-written-not-transcript` says what she must keep is written as memory, not recovered from a transcript. The - Persona call is tool-less (persona.rs:13), so retrieval has to arrive in her - input; she has no shell. + Persona call was tool-less when this was written and retrieval had to arrive + in her input; that premise no longer holds, see Status below. - Matrix: Synapse is the truth of events. Only the Bifrost mouth holds Matrix tokens; no Persona unit holds a credential. Rooms are plain (F2 recommends encrypted DMs only), DMs exist, and the Discord bridge is a later campaign. @@ -110,3 +110,21 @@ Confidence: cut 1 and the owner decision, high. The window chunker size and k=60 are calibration, not design; RRF over a handful of lists is the established baseline and I did not survey learned fusion (it needs training data we lack). + +## Status (head-maintainer pass, 2026-11-05, Huginn `25199c9`) + +Checked against main on merge. Nothing in this map is built: no `texts` on +`SourceQuery`, no chat code under `sources/`. The anchors above were corrected. +What changed since the map was written: + +- Questions 1 and 2 are answered with the recommendations + (`gamecult-chat:ruling:chat-index-synapse-credential`, operator 2026-11-03, + "I take both recs."; `gamecult-chat:ruling:chat-index-room-scope`, + public-only). Question 3 (`chat-recall-vs-memory-ruling`) is still open. +- **Cut 3's premise is stale.** A Persona now carries a live session under + bubblewrap with a shell and the web (`mind-body/src/persona.rs:53`, `--tools`; + rulings `persona-session-full-sandbox`, `live-mind-sessions`). She can run + `huginn sources` herself, so a pushed recall lane is no longer the only path. + Re-map cut 3 on that before it is specced: whether to push chat hits into her + input at all, and under which budget, is open again. Cuts 1 and 2 are + unaffected. From 3ef5da5e0dd76d503cbdb86df5fcafa2880febca Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 6 Nov 2026 20:17:45 +0000 Subject: [PATCH 002/297] reply kind: one result of her Self session, as its actuator heard it (eureka-pipeline, huginn-mind, schemas, golden) Co-Authored-By: Claude Sonnet 5.5 --- crates/eureka-pipeline/golden/envelopes.txt | 1 + crates/eureka-pipeline/src/lib.rs | 55 ++++++++++- crates/eureka-state/src/bin/huginn/schema.rs | 2 +- crates/huginn-mind/src/admission.rs | 24 ++++- crates/huginn-mind/src/docs.rs | 11 ++- crates/huginn-mind/src/index.rs | 2 +- crates/huginn-mind/src/query.rs | 9 +- crates/huginn-mind/src/rows.rs | 16 +-- .../epiphany.pipeline.finding.v2.schema.json | 3 +- ...epiphany.pipeline.follow_up.v2.schema.json | 3 +- .../epiphany.pipeline.idea.v2.schema.json | 3 +- .../epiphany.pipeline.memory.v2.schema.json | 3 +- .../epiphany.pipeline.question.v2.schema.json | 3 +- .../epiphany.pipeline.reply.v2.schema.json | 97 +++++++++++++++++++ .../epiphany.pipeline.research.v2.schema.json | 3 +- ...piphany.pipeline.resolution.v2.schema.json | 3 +- .../epiphany.pipeline.ruling.v2.schema.json | 3 +- .../epiphany.pipeline.run.v2.schema.json | 3 +- .../huginn.mind_request.v1.schema.json | 51 +++++++++- .../huginn.mind_response.v1.schema.json | 89 ++++++++++++++++- schemas/cultnet/index.json | 11 +++ 21 files changed, 368 insertions(+), 27 deletions(-) create mode 100644 schemas/cultnet/epiphany.pipeline.reply.v2.schema.json diff --git a/crates/eureka-pipeline/golden/envelopes.txt b/crates/eureka-pipeline/golden/envelopes.txt index 596a7cf..c4a9797 100644 --- a/crates/eureka-pipeline/golden/envelopes.txt +++ b/crates/eureka-pipeline/golden/envelopes.txt @@ -29,6 +29,7 @@ sample.pulse yggdrasil:pulse:2026-10-31t041200-t0 epiphany.pipeline.pulse.v2 Epi sample.memory yggdrasil:memory:2026-10-31t041200-t0-m0 epiphany.pipeline.memory.v2 EpiphanyPipelineMemoryDocument 9189a8696e7374616e6365a979676764726173696ca56c6162656cb7323032362d31302d3331743034313230302d74302d6d30a4736f7274a9436f6d6d6974746564a474657874d936492074616b6520746865206261636b67726f756e6420736861646572733b204c6962627920686f6c64732074686520736f756e64732ea561626f757491ab406c696262793a63686174a66f726967696e81a4526f6f6d82a5726f6f6d73a5737761726daa68656172645f66726f6d91ab406c696262793a63686174a7736f757263657391a3246531b173616c69656e63655f7065726d696c6c65cd02bcac636f6e736f6c69646174657390 sample.research eureka-state:research:p1.scope epiphany.pipeline.research.v2 EpiphanyPipelineResearchDocument 9189a863616d706169676eac657572656b612d7374617465a470617373a27031a56c6162656ca573636f7065a5636c61696dd93654686520656d626564206c696d6974206973203430393620746f6b656e7320776974682073696c656e74207472756e636174696f6e2ea664657461696cd934526561642066726f6d20746865206461656d6f6e277320696e646578206d6f64756c6520616e642070726f626564206c6976652ea8696e666572726564c2a7736f75726365739481a45265706f82a47265706fb147616d6543756c742f4570697068616e79a2617484a470617468d9256372617465732f687567696e6e2d6461656d6f6e2f7372632f696e6465782f6d6f642e7273aa73746172745f6c696e6532a8656e645f6c696e6538a6636f6d6d6974a8356639383232386481a357656283a375726cd92268747470733a2f2f7a657474656c6b617374656e2e64652f61746f6d69636974792fa4776f726bb65a657474656c6b617374656e2061746f6d6963697479ac7265747269657665645f6f6eaa323032362d30392d313581a84f6273657276656481a865766964656e636583a46b696e64a454657374a76c6f6361746f72aa636172676f2074657374a6726573756c74a26f6b81a8446f63756d656e7481a97265666572656e636582a46b696e64a652756c696e67a26964b6657572656b612d73746174653a72756c696e673a5238a67365727665739182a46b696e64a85175657374696f6ea26964b8657572656b612d73746174653a7175657374696f6e3a5131ab6f627365727665645f6f6eaa323032362d30392d3135 sample.idea eureka-state:idea:p1.i1 epiphany.pipeline.idea.v2 EpiphanyPipelineIdeaDocument 9189a863616d706169676eac657572656b612d7374617465a470617373a27031a56c6162656ca26931a57469746c65b24f6e65206e6f74652070657220636c61696da469646561d9204b65657020612070617373206173206d616e7920736d616c6c206e6f7465732ea974726164656f666673b74d6f726520646f63756d656e747320746f206c6973742ea872657374735f6f6e9182a46b696e64a85265736561726368a26964be657572656b612d73746174653a72657365617263683a70312e73636f7065a6746f776172649182a46b696e64a85175657374696f6ea26964b8657572656b612d73746174653a7175657374696f6e3a5131ab70726f706f7365645f6f6eaa323032362d30392d3135 +sample.reply yggdrasil:reply:mind-2026-10-09-1-r1 epiphany.pipeline.reply.v2 EpiphanyPipelineReplyDocument 9185a8696e7374616e6365a979676764726173696ca56c6162656cb46d696e642d323032362d31302d30392d312d7231a372756e82a46b696e64a352756ea26964bf79676764726173696c3a72756e3a6d696e642d323032362d31302d30392d31a7616e73776572739182a46b696e64a8466f6c6c6f775570a26964d923657572656b612d73746174653a666f6c6c6f775f75703a61736b2d7468652d73656c66a474657874d93054686520736861646572207061737320697320646f6e653b2074686520736f756e647320617265204c6962627927732e resolution.superseded eureka-state:resolution:question.Q1.n1 epiphany.pipeline.resolution.v2 EpiphanyPipelineResolutionDocument 9185a77375626a65637482a46b696e64a85175657374696f6ea26964b8657572656b612d73746174653a7175657374696f6e3a5131a873657175656e636501a76f7574636f6d6581aa5375706572736564656481a262799282a46b696e64a652756c696e67a26964b6657572656b612d73746174653a72756c696e673a523882a46b696e64a85175657374696f6ea26964b8657572656b612d73746174653a7175657374696f6e3a5131a9726174696f6e616c65a852756c656420412eab7265736f6c7665645f6f6eaa323032362d30392d3135 resolution.fixed-by-none eureka-state:resolution:question.Q1.n1 epiphany.pipeline.resolution.v2 EpiphanyPipelineResolutionDocument 9185a77375626a65637482a46b696e64a85175657374696f6ea26964b8657572656b612d73746174653a7175657374696f6e3a5131a873657175656e636501a76f7574636f6d6581a5466978656482a6636f6d6d6974a83566393832323864a26279c0a9726174696f6e616c65a852756c656420412eab7265736f6c7665645f6f6eaa323032362d30392d3135 resolution.fixed-by-some eureka-state:resolution:question.Q1.n1 epiphany.pipeline.resolution.v2 EpiphanyPipelineResolutionDocument 9185a77375626a65637482a46b696e64a85175657374696f6ea26964b8657572656b612d73746174653a7175657374696f6e3a5131a873657175656e636501a76f7574636f6d6581a5466978656482a6636f6d6d6974a83566393832323864a2627982a46b696e64a94375745265706f7274a26964d921657572656b612d73746174653a6375745f7265706f72743a6375742d33612e6831a9726174696f6e616c65a852756c656420412eab7265736f6c7665645f6f6eaa323032362d30392d3135 diff --git a/crates/eureka-pipeline/src/lib.rs b/crates/eureka-pipeline/src/lib.rs index eab3ca8..e787545 100644 --- a/crates/eureka-pipeline/src/lib.rs +++ b/crates/eureka-pipeline/src/lib.rs @@ -606,6 +606,22 @@ fn pulse_is_well_formed(pulse: &PipelinePulse, at: &str) -> Result<(), PipelineR Ok(()) } +/// A reply says something and answers only follow-ups, from a run. +fn reply_is_well_formed(reply: &PipelineReply, at: &str) -> Result<(), PipelineRefusal> { + if reply.text.0.trim().is_empty() { + return Err(format_error(&format!("{at}.text"), "a reply with no words")); + } + if reply.run.kind != PipelineKind::Run { + return Err(format_error(&format!("{at}.run.kind"), reply.run.kind.name())); + } + for (index, answer) in reply.answers.iter().enumerate() { + if answer.kind != PipelineKind::FollowUp { + return Err(format_error(&format!("{at}.answers[{index}].kind"), answer.kind.name())); + } + } + Ok(()) +} + /// The most thousandths a memory's salience may carry. pub const SALIENCE_MAX_PERMILLE: u16 = 1000; @@ -820,6 +836,11 @@ value_types! { pub struct PipelinePulse { instance: Slug, label: Label, tempo_vote_beat_s: Option, tempo_vote_withdrawn: bool = absent, urgency_permille: Option, note: Line, } => pulse_is_well_formed + /// One result of her Self session, as its actuator heard it: the words her + /// Self ended a turn with, and the follow-ups (briefs) the turn answers. + /// Instance-rooted: the key is `:reply: