Commit graph

415 commits

Author SHA1 Message Date
Meta Vens
e8db03e8a7 persona: mentions.contains (clippy manual_contains on rust 1.95)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:34:39 +01:00
Meta Vens
cf790b6142 index: take_search's doc comment back on take_search
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:21:42 +01:00
Meta Vens
19e53afe76 Merge main c7cd9ee (start brief) into source search
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:21:24 +01:00
Meta Vens
44b3bf5e91 Merge eureka-body/source-search-index-safety (cursor, catalog, retire, CLI e2e; report h3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:21:23 +01:00
Meta Vens
2f36f63e80 ollama: pin the batch bound's arithmetic (cargo-mutants survivor)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 09:17:55 +01:00
Meta Vens
715ec58180 sources: Refreshed::is_clean decides the exit, where a test reaches it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 09:10:07 +01:00
Meta Vens
39decde8a2 embedder: connect bound, a read bound sized to the batch, one budget across retries; tests with endpoints that stall and refuse mid-batch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 09:05:47 +01:00
Meta Vens
6a0ab4a7ab live source smoke: follow the Catalog the forge now answers
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 09:00:54 +01:00
Meta Vens
5b920371c5 eureka-state tests: huginn sources end to end through a daemon to a printed citation
The CLI binary asks a real in-process daemon over CultNet; the daemon answers
through sources::search against an in-memory source index and a flat embedder.
Pins the citation line, the repo filter and limit, and the refusal naming both
models when the daemon embeds under another digest (Soul test-gaps). common
serve takes any index sink.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 08:59:16 +01:00
Meta Vens
e47532c122 sources: a retire error skips that repo; a case-only rename keeps no stale points
Retirement aborted the run on the first repo whose delete failed; it now logs,
names the repo in Refreshed.failed and goes on, leaving that repo's cursor and
mirror to be found again. Names are compared as written, so a repo the forge
now spells in another case is retired under its old spelling instead of kept by
a case-insensitive match while its points carried the old name (Soul
retire-edge-cases).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 08:58:19 +01:00
Meta Vens
6c1cef8729 sources: retire nothing when the forge's catalog is empty or does not sum to its X-Total-Count
Retirement read the repo list as complete, so an empty or truncated answer
would have deleted every repo it failed to name (Soul catalog-shrink-retires).
The catalog now carries a shortfall: the pages summed before filtering are
checked against X-Total-Count, and a missing header counts as unvouched. The
run refuses to retire on a short or empty catalog, refreshes the repos it did
see, says so in Refreshed.retirement_withheld, and huginn-sources exits 1.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 08:57:38 +01:00
Meta Vens
3f380df0fe sources: drop a repo's cursor before its first delete, so a failed run is re-ingested whole
A failed run from A to B followed by a head C that reverts the files to A's
content diffed A..C as empty and kept the deleted chunks deleted (Soul
cursor-revert-hole: 32 of 40 chunks, cursor at C). With the cursor gone the
next run takes the whole-repo path whatever head it finds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 08:56:21 +01:00
Meta Vens
5cde349a09 pool tests: no waiting on reads that are not running; a failed read waits for its retry time
Closes the pool mutation survivors (reading, ready, judge's retry time).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 08:29:52 +01:00
Meta Vens
1fee2e434e pool: a read awaiting a model to adopt stays to be judged
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 08:12:26 +01:00
Meta Vens
c74dd530de daemon: embeds through the endpoint pool, GPUs together and the CPU last
query-embed-on-cpu, follow-up daemon-embedder-gpu-pool: huginn-daemon takes
repeated --ollama-url (GPU hosts) and --reserve-ollama-url (CPU hosts) and
builds the same EmbedderPool as huginn-sources, through one ollama::pool
constructor. A lone --ollama-url is a pool of one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 07:56:22 +01:00
Meta Vens
13647f9220 pool: identities are read off the batch's clock and held to the collection's model
pool-blackhole-stalls: each due endpoint's identity is read on its own thread
under a 5 s bound, and a batch waits for reads only while no healthy primary
exists to start on, so a dark endpoint never delays work a healthy one can do.
pool-pins-first-identity: the pool is told the model the collection was built
with (Embedder::built_under, called by reconcile and refresh before the
identity read) and never writes with an endpoint serving another; it adopts a
model only when there is no collection, in list order.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 07:54:57 +01:00
Meta Vens
99d3c05b09 pool: simpler admission guard (clippy)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:58:55 +01:00
Meta Vens
e3d289fec8 sources tests: the batch test belongs after the last test, not inside it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:57:34 +01:00
Meta Vens
1cfb905306 tests for the mutation survivors: char bound and newline accounting, catalog paging, batch bound, a source search through the daemon, the shared queue bound and abandon by ticket
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:56:22 +01:00
Meta Vens
bd39f95cfe pool: type alias for a piece's outcome; the mismatch test re-admits the endpoint after its model changed
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:55:01 +01:00
Meta Vens
bc8e071bf7 embedder pool in the shared index module (GPUs concurrent, CPU reserve, per-endpoint identity); huginn-sources uses it; the failover chain is deleted
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:51:57 +01:00
Meta Vens
040ae57d53 daemon: a source search is a Search with no mind part (keeps the Handled/Routed sizes clippy already accepted)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:44:49 +01:00
Meta Vens
b16c0619a0 daemon: box the mind search so Pending stays small (clippy)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:43:27 +01:00
Meta Vens
393a0aff62 live smoke: refresh one small public repo into a scratch source collection, search it, delete it; the Qdrant source port can be pointed at a scratch collection
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:40:22 +01:00
Meta Vens
9d081e2501 schemas: drop a runner line that landed inside the regenerated request schema
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:39:40 +01:00
Meta Vens
c7cd9ee0aa mind-self-run: the start message carries every claim's task (squash of eureka-body/self-run-start-brief 21fb9b2..04b8ef0)
Each claim gets its own section in claim order: a follow-up's item verbatim,
a cut spec named as the task, an absent or other claim named by id. A failed
claim read fails the run before any lease or child. Spec
eureka-body:cut_spec:cut-cut-self-run-start-brief.r1, report .h1, Soul
verdict .s1 (promises hold; two Low findings filed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 06:38:53 +01:00
Meta Vens
09fb87168f schemas: publish SearchSources and Sources (derived from the wire types)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:36:57 +01:00
Meta Vens
528deb296b sources tests: do not hold the fake's lock across its own accessor
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:32:51 +01:00
Meta Vens
6a66425931 source-search: compile fixes (startup bound, mirror init, test literal)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:27:50 +01:00
Meta Vens
d77747023e huginn sources: CLI door for SearchSources
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:25:26 +01:00
Meta Vens
1c227f5907 huginn-daemon: source index (chunker, git mirrors, forge catalog, refresh with embedder failover, SourceIndex on Qdrant), huginn-sources bin, daemon/worker source search not gated by the mind's index
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:25:25 +01:00
Meta Vens
5074181ebf wire: SearchSources/Sources, SourceQuery with its door, SourceHits (source-search-forge-public)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:25:25 +01:00
Meta Vens
21fb9b2b04 mind-self-run: every exit closes her Run once with the result's excerpt; the child sees EUREKA_INSTANCE and HUGINN_ENDPOINT for the huginn CLI
Squash of eureka-body/self-run-closes-run 55dd620..93f93c1 (Soul go; orphan
sweep cut: the mind admits one Self run in force and launch's close_dead closes
a dead holder). Operator: 'Look into the stale runs issue' and 'why has this
xenos filth not been replaced with nice clean CLI yet'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 05:02:20 +01:00
Meta Vens
bdf3d14cc4 Merge self-run-permission-mode: Self runs pass --permission-mode bypassPermissions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 03:51:49 +01:00
Meta Vens
5c2a861a6f Merge persona-addressees and self-run-permission-mode (Soul go on both)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 03:51:48 +01:00
Meta Vens
c6cceb6704 self-run: the actuator fixes --permission-mode bypassPermissions; print mode started in Manual (managed defaultMode not applied) and --permission-prompts none denied every eureka-state tool
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 03:33:11 +01:00
Meta Vens
92ecc697b1 persona: to_you is the organ's token; to is a JSON array of the other addressees
A mention string, display name or name list could write the word you into
the quoted join and pass for her own id. Now only to_you=true, derived from
her own sender id, says a message names her. Restores the newline escape in
the line format.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 03:32:55 +01:00
Meta Vens
5a035bff23 persona: put the addressee reading line in the turn input
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 03:10:09 +01:00
Meta Vens
005fa7aaa5 persona: render whom each message addresses and say how to read it
The mouth delivers each message's mentions but the turn input never showed
them, so a Persona could not tell a reply to another Mind from one to her.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 03:08:19 +01:00
Meta Vens
f896fbaa75 self-run: the result events text, subtype and error flag are written to the unit's stdout, bounded to 4 KiB and marked when cut, so what claude concluded reaches the journal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 03:01:18 +01:00
Meta Vens
d98a9db5fe self-run seed: validate the copied links in the destination, so a link that leaves the seed and returns by its own name is refused
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 02:47:34 +01:00
Meta Vens
d0e58221aa self-run: the config copy reproduces in-tree seed links, refusing any that resolve outside the seed; the start message names the eureka skill
A link is checked by canonicalising it in the source against the canonical
seed root, so a link through another in-tree link cannot escape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 02:34:06 +01:00
Meta Vens
1421b5fe0a mind-persona tests: pin the doctrine bound at 96 KiB (kills the only surviving mutant)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 01:40:38 +01:00
Meta Vens
773331a75e mind-body: pin the persona doctrine and campaign surface
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 01:30:09 +01:00
Meta Vens
35677d7ff0 mind-persona tests: a mind with no campaign; doctrine re-read across turns
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 01:27:06 +01:00
Meta Vens
d00b42125e mind-persona: doctrine files lead each turn's instructions; the campaigns in force are listed and constrain start_self_run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 01:25:03 +01:00
Meta Vens
577cae23a7 huginn-mind: a persona re-put no longer poisons reads; the admission index covers pipeline documents only
The persona document is replaced by design (compare-and-swap on updatedAt), so
its second put is a second receipt naming one identity. AdmissionIndex::build
read that as a doubled A10 write and refused every view and query. The persona
type has no admission facts there now; Mind::persona reads its own receipt. A
pipeline document written by two receipts still refuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 00:46:22 +01:00
Meta Vens
21827a736f Research: mind inheritance from Eureka — fork, distill or shared mind (question mind-inheritance-from-eureka)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 11:01:17 +01:00
Meta Vens
7db86f7dd1 mind-heartbeat: one heartbeat routes every Persona turn on an initiative timeline; the classifier's urgency multiplies regain, an operator mention fills, a Self-run completion reaches the classifier and never fills; burn is real spend read as the heartbeat; each Persona on her own Huginn; DM rooms answered alone; the mind-wake path deleted (squash of eureka-body/mind-heartbeat d54ba01..3a4d28f; Soul s1-s4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 02:49:35 +01:00
Meta Vens
d54ba01103 mind-self-via-lease: a Self run borrows the one Claude token from the connector over the lease socket; the child gets a cleared environment and a fresh per-spawn config; the unit's RuntimeMaxSec is the one run cap; settle is claude's last modelUsage plus the tail after it; an Expired lease withdraws its run (squash of eureka-body/mind-self-via-lease fcaf0a1..a91fc1c; Soul s1-s3)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:15:14 +01:00