Droso is an agent whose decision process runs on a reconstructed section of the Drosophila connectome (BANC v888). Language, memory, planning and program synthesis are implemented as separate organs on top of that substrate, each holding its own state and updated by the agent's own activity as it runs.
The graph is constructed from BANC v888 source tables (connectome/data).
Construction requires those tables and fails if they are absent.
| Component | Count | Role |
|---|---|---|
| Neurons | 12,867 | nodes of the signed core graph |
| Synapses | 173,294 | signed connections |
| Kenyon cells | 4,419 | sparse encoding of input |
| Mushroom body output neurons | 85, pooled into 12 groups | decision output |
| Dopaminergic neurons | 83 | plasticity signal |
| Projection neurons | 382 | sensory input path |
| Central complex | 961 in, 709 out | orientation circuitry |
The core graph is a subset of the full BANC reconstruction, which contains about
188,000 neurons. Dynamics are simulated at the level of firing rates under a
three-factor plasticity rule (eligibility, dopamine, timing), not single-neuron
biophysics. build_core_graph(control=True) builds a degree-matched control
graph for comparison.
Plastic synapse weights are held per running instance and number over 20,000. The carved graph is loaded once per process and shared.
- Input text is encoded with a deterministic hash (blake2b) into a sparse pattern over the Kenyon cell population.
- Activity propagates through the measured synaptic weights.
- The 85 mushroom body output neurons vote winner-take-all across 12 pools, modulated by the goal currently held.
- The dopaminergic population fires according to the outcome, and a three-factor rule updates the synapses active in that decision.
Word meaning is represented in a semantic association matrix, updated by Hebbian learning as sentences are read or produced. A sequence organ generates output word by word from it and from short-term context. A goal organ holds a target on the same class of neurons used for sensory input (decay half-life 180 s), and that target enters both decision making and language production.
Role recovery -- identifying who did what to what in a recalled sentence -- is more reliable for memories formed from an action the agent took than for memories formed from reading.
A turn through lang.respond() hears the utterance (SAN update, cortex binding,
sequence learning). A question goes to answer(), which selects a role,
retrieves propositions through binder.recall, and either recovers the missing
role by unbinding or tries the dedicated paths below, in this order:
| path | fires on | behaviour |
|---|---|---|
| echo | a declared exact repeat | repeats the stated memory |
| glossary | a question about a word used earlier | returns the earlier word |
| ordinal | which … first/second/last over session memories |
selects by position |
| disjunction | two offered alternatives | settles one against memory |
| record | questions about the telling record | counts tells, or reports absence |
| quantity | how many X, what count of X, did any X |
arithmetic over numbers stated in tells |
| description | subject is a definite description | not in the tree; implemented and reverted |
The first/last cue words are matched as sets (COUNT_FIRST_CUES,
COUNT_LAST_CUES) rather than one word at a time.
Task solving is organised into two tiers by organs/harness.py, which records
which tier solved each task.
The first tier checks for an exact match: a fact already filed under the task's key, or a procedure already verified for a task of this kind, replayed with no search.
The second tier runs when the first finds nothing. Candidates come from composition of known procedures, from a small set of primitive operations, and from a program grammar with typed holes. Where a candidate needs a fact that is not on file, that gap is what gets sent to the external model.
Every attempt runs through the connectome before execution: engine.decide()
sets the eligibility trace the three-factor rule requires, and the outcome of
execution feeds back as a reward through teach().
Both tiers report which branch solved a task, so the proportion solved without external help is measured rather than estimated.
A candidate procedure is promoted to trusted status only under specific evidence.
| Evidence | Weight |
|---|---|
| A passing test executes a line inside the candidate | 0.35 |
| A task's own assertions accept the candidate | 0.35 |
| The candidate runs without error but nothing inside it is exercised | 0.15 |
| The candidate parses but nothing runs | 0.00 |
| The candidate compiles | 0.00 |
Trusted at cumulative weight 0.70 or above. Repeated identical evidence does not add weight. The gate applies to every candidate, including answers from the external model.
Facts are filed under a key of three parts: a concept, a subject, and the type of value the answer takes, the last read from a task's own assertions.
The external model supplies facts the local system cannot derive, identified from a specific gap encountered while attempting a solution. Its answer is accepted only if it passes the evidence gate. Calls are logged with their outcome, and local, corpus-assisted and externally-assisted solutions are reported as separate figures.
The external interface speaks the OpenAI-compatible chat protocol.
Independent instances can run in parallel on separate subsets of tasks and later
be merged (tools/population_experiment.py). An earlier version of this test
appeared to show a gain from merging; once measurement was corrected to use the
same persistent state the live process uses, the task subsets were no longer
independent and the gain did not hold. The experiment's status is unresolved.
Tool processes that measure the agent -- fitness scoring, curriculum runs, the population experiment -- load the same persistent state the live process uses, opened read-only. Write access from any process other than the live house is disabled in the code path. This follows an earlier incident in which a measurement tool with unrestricted write access overwrote the accumulated memory file; most of it was recovered through a lineage mechanism.
One test calls a method, _oracle_sandbox_hook, that is not defined in the
codebase. Whether any live path lets the external model execute actions directly,
rather than returning text that is separately verified, is unresolved. The
knowledge channel accepts text answers only.
Droso/
├── connectome/ BANC v888 source tables, substrate construction, rate dynamics, provenance
├── core/ action space definition
├── organs/ language, memory, reasoning, execution organs
├── world/ connectome_house.py (HTTP interface), reasoning_agent.py, house/static/
├── tools/ measurement, probes, corpus construction, gh-pages build
├── tests/ pytest suites
├── state/ persistent state: connectome weights, language memory, procedures, ledgers
├── docs/ documentation; docs/archive/ holds historical records
├── exocortex/ verified code fragments available to the assembler
├── config/ runtime configuration, containing no credentials
└── credentials.py per user credential storage, kept outside the repository
The recorded measurements were taken with Python 3.10 (py -3.10 on
Windows). A bare python on this machine is 3.12 without the dependencies.
git clone https://github.com/SebSilent/Droso.git
cd Droso
py -3.10 -m venv .venv
.venv\Scripts\activate # source .venv/bin/activate on POSIX
pip install -r requirements.txt
python run_house.pyDashboard: http://localhost:7773. Later commands assume the virtual
environment is active.
python -m pytest tests -qHYBRIDLLM_OFFLINE=1 python tools/task_battery.py
HYBRIDLLM_OFFLINE=1 python tools/fitness.py --repeat 6Six scripts of four asks each (24 asks). --independent builds a fresh house per
ask, so one ask cannot move another:
python tools/heldout_eval.py --independent --only count-frequencyRun one or two scripts per call; the full set exceeds a shell timeout. Scripts:
count-frequency, order-first-last, conjunction-and-absence,
exact-repeat, hop-and-inventory, quantity-change.
Each run prints SCORE n/4 = x.xxx per script and, unless --journal is given,
appends one line per ask to state/fitness/heldout_independent.jsonl. A failing
ask is printed with its stage (stage=recall, stage=shape_arbiter,
stage=gating, …), which is where in answer() it stopped. Scoring is by
expected answer token, so a full sentence containing the expected word passes.
Eight scripts, four calls, two scripts per pair, output to a file:
python tools/script_benchmark.py --only reference,accumulation > state/fitness/g.txt 2>&1Pairs: reference,accumulation, discrimination,role_chain,
switch_back,override, session_context,where_kept.
tools/run_generation.py scores brains, not cuts: a genome of the scalars the
organ and the rate core already read is applied to a freshly built house per ask,
and every brain is scored on the frozen 24 plus 18 rewordings of them. Fitness is a
tuple with a hard constraint first — zero frozen passes lost — and no weighted sum.
Contract in docs/selection_design.md.
python tools/run_generation.py --snapshot # write the base genome
python tools/run_generation.py --generation 0 --lines 3 # ~55 min, background it
python tools/run_generation.py --freeze-baseline --generation 0One line per brain lands in state/selection/generation_N.jsonl carrying its
genome, its parent, both pass sets, every failure with its stage, and the git,
interpreter and live-state seals it was measured under. Generation 0 is three
clones of one genome: all three scored 19/24 and 4/18 with identical failure stages
and no ask changing membership, which is the instrument's noise floor measured
rather than assumed.
Ten generations have now been run against one control genome, abffa2b7f101, and
none has beaten it. Generations 1 and 2 mutated ANSWER_COVERAGE_FLOOR; all
six draws were inert or harmful — one lowering draw lost a guarded invariant, which
was the predicted outcome and the reason the guard exists. Generations 4 and 5
tested three shape-parser repairs as two arms differing only in code flags: all
three were inert, arm B identical to arm A on all 42 asks. Generation 7 measured
where the failures actually die. Generations 8 and 9 were the two arms of a
recall-side fallback, and its prediction was falsified — the fallback never
fires, because no ask in the battery reaches the branch it guards.
The score has not moved off 19/24 frozen, 0/14 paraphrase probes, 4/4 guarded
invariants in any of them. (The journal holds 18 probe rows: 14 unseen paraphrases
plus the 4 guarded invariants, which is why the table reads 0/14 and not 0/18.)
That is the honest headline: the instrument is reproducible and the organ is not
improving under scalar selection.
Three read-only probes ran against generation 19, a control clone scoring 23 pass — identical to generation 15, so the instrumentation changed no score, organ behaviour or genome.
E19 falsified eviction. taught_resident is True on 40 of 42 asks and 0 of
19 failures are eviction. The binder census (0.78% droso, blind FIFO) is real
as a census fact but is not what causes these failures; the taught rows survive to
ask time.
E20 falsified cue omission — and retracted an E19 claim. On 4 of the 9 gate
asks the gate retrieves the correct taught row and ranks it first, then refuses
anyway at coverage 0.340–0.538, because must demands question syntax and passive
morphology a declarative tell can never contain: what is bitten by the frost?
asks the row the frost bites the latch for bitten, by and is. E19's
nearest_has_taught=0 was an artifact of a startswith("droso:") test against
journal entries that carry no who-prefix at all, so "taught evidence does not
reach retrieval" is withdrawn.
E21a falsified cue dilution. De-framing the cue to closed-class words only
recovers 0 of 4 asks; its best case moves the row from rank 41 to rank 10
against a window of 3. Both bell phrasings collapse to the identical cue
[bell, turn] and both land at rank 10, where the top three are all book rows
about bells. The count-1 taught row loses to corpus mass, not to framing
noise. The probe also does not reproduce the gate's internal retrieval — it
disagrees with the gate's recorded nearest in both directions on 2 of 4 asks —
so it could not have certified a repair, and the guarded ask was unattributable.
The constraint chain, corrected: gen 2 / gen 6 said score; E12a / E14a said
score and measured a 0.5488 ceiling; passing_ask_analysis said candidate
set; E19 said cue construction; E20 returned it to score; E21a closes cue
dilution. Records in docs/evidence/.
E22a closed reinforcement. Taught-row count looks predictive — count=3 passes
5/6 (83%) against count=1 at 16/33 (48%) — but the gap is entirely ask-type
confounding: five of the six count=3 asks are meta-cognitive rehearsal questions
(how many times did i tell you…, did i ever tell you…) that carry
cause=other and never enter the recall gate. Restricted to gate asks, where
reinforcement could act, the single count=3 ask scores 0.454 — below the
count=1 gate mean of 0.4649 — with its row at rank 1. The best-reinforced row in
the battery, retrieved first, has worse gate coverage than the average count-1 row.
E23 closed the coverage denominator, and it is the strongest result of the six.
Excluding closed-class question syntax from the denominator works: it recovers 2,
3 or 5 of the 9 gate failures depending on how much syntax is removed. And all
three variants break the guarded scarf invariant — 0.5797 → 0.6676 → 1.0 → 1.0
against a 0.6 floor. The obstruction is structural: the scarf cue
[did, is, say, scarf] is three-quarters closed-class and its row
the scarf is wet contains scarf and is, so removing syntax collapses the
denominator onto terms the row trivially matches. The guard depends on the
denominator being wrong in exactly the way the nine failures need it fixed — the
scarf ask is supposed to refuse, and refuses only because did/is/say drag it
0.0203 below the floor. Refuted by its own read-only pre-test; no flag, organ
change or test was added. Exclusion is also not monotone:
what did i tell you about before the kettle? falls 0.547 → 0.415 → 0.238 → 0.0.
| lever | probe | verdict |
|---|---|---|
| eviction | E19 | falsified — 0/19 failures |
| cue omission | E20 | falsified — gate ranks the row first on 4/9, still refuses |
| cue dilution | E21a | falsified — de-framing recovers 0 of 4 |
| score / admission | E12a, E14a | closed — ceiling 0.5488 < 0.6 |
| reinforcement | E22a | falsified — count=3 gate ask below the count=1 mean |
| denominator | E23 | refuted pre-implementation — works, and is undeployable |
E23 is the sharpest because it is the only lever that works. That is a stronger statement than "no repair was found": a repair was found, measured, and shown to be inseparable from breaking a correct refusal. The nine gate failures and the one guarded refusal are governed by a single quantity, and no monotone change to it separates them.
Progress therefore needs a mechanism that is not a coverage threshold — a way to
represent absence, so the scarf ask refuses for a reason other than a low ratio.
If the guard's refusal came from an inventory of what was actually told rather than
from the denominator, E23's lever would become deployable. That is E24,
pre-registered in docs/evidence/absence_inventory_design.md.
stage_of classifies a failure by regex-matching the reply's reason, and its
last branch is a fall-through whose own comment says attributing it to recall "is a
DEFAULT, not a measurement". Any unspoken reply with a non-empty reason matching no
pattern is labelled recall.
Generation 9's instrumentation showed the tally {"recall": 10, …} was mixed. Nine
of the ten are real coverage-gate refusals, reporting coverages of 34–55%. The
tenth, which thing turns twice?, reports "it did not understand and was not in
the mood to babble" and has a raw binder count of None, not 0 — the recall gate
never ran. It is a comprehension failure that wore a memory label, and it is why
a recall-side repair was built for a defect that was not on the recall side.
Generation 10 adds a derived field cause beside stage, splitting recall into
recall_gate (9), comprehension (1) and unclassified (0). stage is not
rewritten and historical rows are not backfilled, so every prior measurement
still verifies against its own record. Pre-registered in
docs/evidence/stage_cause_preregistration.md; the corrected classification in
docs/evidence/harness_coverage_diagnosis.md §8.
The corrected census then ranked the nine downstream failures and proposed E8
(POLAR_ABSENCE_MEANS_NO) against the three gating ones — the only class where a
single repair moves the frozen score. E8 was aborted at its own pre-registered
condition and never implemented (docs/evidence/e8_preregistration.md). The licence it
required — an inventory the organism actually holds — does not exist: the organ has no
relation store, and all three asks are refused by the mood gate at
organs/neural_language.py:3956-3977 before any answer forms, which the journal shows as
coverage: null and source: null. So there is no suppressed negative to unlock; saying
no would fabricate one. The organ already forbids this at :3052-3054 — "It never says
no: defect B stays closed until a mechanism can express absence without asserting a
false negative." Scores are unchanged by construction and no battery was run, because
with no code change both arms would reproduce generation 9/10 ask for ask. E8' is recorded
as future work with the design that would satisfy the condition: a session-scoped
closed-world inventory over who == "you" rows, answering no only when that inventory
is non-empty and contains the queried verb. tests/test_e8_abort.py pins the absence, so
a future pass cannot add the flag and mistake a confabulated no for the +1 frozen it
would appear to score.
The table prints warm, cold and delta per script and overall. Warm is with
the session's own context, cold is after a restart from saved state; a delta of
+0.00 means the restart changed nothing. override also prints its winner.
Four flag-gated repairs have been run and refuted. Each gene stays in the organ, default
False, with its result recorded beside it — deleting a refuted gene invites a retry.
| gene | experiment | what it tried | why it failed |
|---|---|---|---|
| three shape genes | E5 | widen the interrogative parser | completely inert; the shape parser is not the binding constraint |
RECALL_UNFILTERED_FALLBACK |
E7 | answer from unfiltered recall | never fires — no ask reaches the if not hits branch |
RESONANCE_SESSION_SCOPE |
E9 | restrict resonance to session words | wanted word still lost to the session's own the |
RESONANCE_CONTENT_SCOPE |
E10 | also drop function words | winner then sits below reply_threshold |
E9 and E10 attacked the mouth failure class, diagnosed as resonance: the wanted word
was in the candidate pool in all four cases but lost by ~3.8× to static corpus attractors
(numbered, sold) the session never mentioned. Scoping removed those attractors — and the
organism went silent instead of answering, because reply_threshold = 0.55 sits inside the
attractor band (0.550–0.581).
E10 measured the ceiling for honest content words: lantern 0.4129, bell 0.1221, scarf
0.1526. Nothing a session actually taught reaches 0.55. On this path comprehension and
attractor are the same event — the only words that make the organism report understanding
are high-frequency corpus words unrelated to the question. Arm B scored 19/24 frozen, 0/14
probes, 4/4 guarded, indistinguishable from E9's arm B: once the organ is silent,
filtering the pool further cannot help.
E10 also refuted its own method. It used the organ's distributional rule (df * 4 <= n_mem)
rather than a stopword list, and that rule keeps is and on — the binder is 99.19%
book rows, where the is ubiquitous and is/on merely common. Document frequency here
measures corpus style, not lexical class.
Full write-ups: docs/evidence/e9_result.md, docs/evidence/e10_result.md.
E11 closed the comprehension line too, at zero brain builds.
docs/evidence/comprehension_signal_design.md proposed replacing that scalar with
session-provenanced term support — does a row he was told, rather than a book row,
contain this question's terms together? Provenance is the axis resonance lacks, and it needs
no content/function distinction, which E10 proved we do not have. docs/evidence/e11a_result.md
records the refutation: the signal is ask-dependent (range 0.10–0.75 over 42 asks) and
is frequency-independent (no ask's best row overlaps numbered/sold), exactly as
designed — and it still cannot separate the classes. min(mouth) 0.2222 against
max(recall) 0.5000; zero thresholds admit all four mouth asks and no recall-gate
failure. The reason is the substantive result: the recall-gate asks are equally
well-supported, because he was told the coat is wet, the eggs, the frost biting. Having
the material was never what separated them. No gene was written.
docs/evidence/answer_formation_diagnosis.md then traced the nine recall-gate asks and found
the boundary is in the accounting, not the retrieval: in five of nine the exact taught
fact is the top-scoring row (there are four eggs in the basket, the copper bell turns twice) and coverage still lands at 0.538 and 0.514. The gate already stems both sides and
already IDF-weights the terms, so neither naive matching nor an unweighted denominator is to
blame. What remains is that must is built from the question, so it carries terms no
truthful answer could contain (is, left, number, of) plus irregular forms stem()
cannot bridge (bitten ≠ bite, held ≠ hold). Coverage measures how much of the
question's wording appears in the memory, not how much of the answer's content is supported —
and the floor was calibrated against that inflated denominator. Speakability and the
echo/bigram constraints are not implicated: all nine refuse at the floor before any of
them runs.
E12a and E13a both closed, at zero brain builds. E12a (docs/evidence/e12a_result.md)
recomputed coverage over answerable terms and the pre-registered prediction fired: the guarded
scarf ask goes 0.5797 → 0.6676, over the floor — it was passing by refusing, so the
repair would make him answer. It buys only 2 of 9 recall-gate asks and makes two worse
(what did i tell you about before the kettle? 0.5470 → 0.2839), because the repair is
not monotone: question-frame words sometimes appear in the memory row, so deleting them
removes matched numerator terms too. B5 was clean — no content term dropped — so the failure
is structural, not a bad word set: the floor is a ratio, and the guarded ask sits 0.020 below
it. ANSWER_COVERAGE_FLOOR and the guarded invariant are jointly unsatisfiable with this
coverage formula. E13a (docs/evidence/e13a_result.md) tested Class C and moved nothing:
top row changes on 0/10 asks, because wherever a taught row is among the candidates it is
already top, and for the five asks where a book row wins the taught fact is not in the
candidate list at all. So Class C is candidate generation, not ranking — a tie-break
cannot promote a row that is not in the pool. No E13b: the gene would be a default-off branch
that provably never fires, the shape of E9's RECALL_UNFILTERED_FALLBACK. Together they close
the argument: asks lacking their taught fact need generation, asks having it already score
0.3475–0.5488 with the correct row on top, and the numerator fix that would lift them breaks
the guard.
E14a closed the candidate-generation line, and it is safe but worthless.
docs/evidence/e14a_result.md: 5 of 9 recall-gate asks lack their taught fact among the
candidates, because binder.recall draws 40 rows from 60,000 using question-syntax-dominated
cues. But admitting every session tell caps the best coverage at 0.5488 against a 0.6 floor —
a correct single-row match cannot reach it, because the denominator counts question syntax no
answer row can contain. No E14b.
E15 closed provenanced entailment, at zero builds, and it broke the guard.
docs/evidence/e15_result.md: the design claimed where did i say the scarf is? would refuse
structurally, because the query is locative and the scarf's evidence is a property. That
reasoning was wrong — the script also tells the coat is on the hook, a locative row about a
different subject, so the ask was licensed, with filler 'the'. Five currently-passing asks
were newly licensed, four confidently wrong: what bites the latch? → latch,
how many eggs broke? → four from a row saying eggs are in the basket. Provenance
separates what he was told from what resembles the question; it does not separate which told
fact answers this question. That needs a subject-specific signal — the axis E11a also lacked.
E16a tested a write-time relation index and split the result. docs/evidence/e16a_result.md:
D1 clear — the positive finding. A subject-keyed index refuses the scarf ask for the right
reason ("subject 'scarf' is indexed but has NO locative relation — only a property"); the
coat's row cannot license it. This is what E15 could not do, and it confirms subject
binding is the missing axis. But D2 fired on three wrong fillers, from two defects that are
missing representational commitments rather than tuning: multi-word subjects (copper bell
where bell is expected and copper forbidden — no head/modifier distinction) and quantity
change over time (answers four where two is expected and four forbidden; a static index
cannot represent a quantity that changes, and quantity-change is a class the baseline passes
4/4, so it would regress). A suffix normaliser also maps bites → bit, so write-time
morphology is not derivable without a lexicon. Right shape of primitive, wrong first
primitive — the relational index is validated and deferred.
E17a closed the counting primitive, and its target class is empty.
docs/evidence/e17a_result.md: of 11 quantity asks, 7 already pass at the coverage gate.
The 4 that fail decompose into three mechanisms, none of which is entity counting —
frequency adverbials (how often does the bell turn? wants twice, which is not a cardinal,
so the tell extracts as "no numeral" and is invisible to an (entity, numeral) index by
construction), rehearsal counts (how often did i say the coat is wet? is the binder's own
count metadata, which four passing asks already use), and a paraphrase gap
(what number of eggs is left in the basket? fails while how many eggs are left in the basket?
— the same proposition — passes). The one genuine event-count ask, how many eggs broke?,
already passes, so per the design's own placement rule the primitive is never reached:
E4 fires, zero gain. Stronger than E14a's "safe but worthless" — not merely no gain, no
target. The result also reports four defects in its own probe rather than hiding them, chiefly
that H2 was a tautological test which validated the implementation against itself and reported
PASS while the head rule was wrong; consequently the design's polarity-refusal logic never
executed and is untested, not refuted.
Eight accounts of the mouth/recall boundary are now closed, and the pattern is
consistent: every mechanism that makes the agent answer more often also makes it answer
wrongly. E17a adds what the previous seven did not: the failing asks are not one class. The
9 recall-gate asks span frequency adverbials, rehearsal counts, paraphrase gaps, irregular
morphology, two-hop composition and unanswerable-by-design queries — seven experiments each
addressed one facet and were scored against all nine, which is why every one looked like a
near-miss. The battery's aggregate failure count has been the wrong instrument since E13a. The guarded scarf invariant is not an obstacle to the repair — it is the repair
working, and it has correctly rejected six proposed answer-licensing changes. The honest
conclusion is the one E15's design pre-registered as the alternative: the battery's guarded
invariants and its failing asks are jointly unsatisfiable by any mechanism that licenses
answers from what the agent was told. docs/evidence/architecture_decision_review.md records the
review; docs/evidence/counting_primitive_design.md specifies the narrower next step — store
events and derive state by ordered folding, avoid regression by placement (consulted only
inside the existing best_cov < floor refusal branch, so asks that pass at the coverage gate
never reach it), and never guess polarity, so event-count queries are answered and state
queries refuse.
tools/converse.py holds Droso in process with the house down: the real state is
loaded read-only, the session's writes are re-pointed under state/sessions/,
and the learning loop is sealed.
python tools/converse.py # interactive session
python tools/converse.py --benchmark # fixed script, scored
python tools/mouth_probe.py hop-and-inventory "what does the thing the frost bites hold?"tools/serve.py exposes the same door as an OpenAI-compatible endpoint. The last
user message's content is the utterance, verbatim; everything else in the request
is ignored. A spoken reply arrives as choices[0].message.content; a silent turn
arrives as empty content.
python tools/serve.py # 127.0.0.1:8080
POST /v1/chat/completions {"messages":[{"role":"user","content":"..."}]}
GET /v1/modelsThe server is single-threaded: one session, one turn at a time.
serve.py --electric (off by default) additionally lets a chat turn teach: a
statement heard from you enters the keyed taught inventory, a question may be answered
from it, and a relation that was never told is answered with an admission instead of a
guess. Restarting over the same --session-dir reloads what was taught — verified on the
real house (docs/electric_c4_live.md §8): told three facts, restarted,
loaded=True taught facts=3, forward paraphrases came back verbatim and an untaught
relation came back as an admission. --electric-reverse (§9) additionally lets a
reverse-role ask like who does the lantern belong to? reach the inventory — but only when
the ask strands a preposition, because that is what proves the noun in the middle is
the tell's own subject; who does the mouse chase? still misses rather than answering the
wrong fact. Off by default, and verified off on the house. Measured in a dedicated A/B arm
(tools/electric_reverse_ab.py, §10): 4 of 14 asks recovered, 0 regressions, 0
confabulations — and it does not fix C3's reverse-role shape (what bites the latch?
stays a miss: nothing to strand). Two things that arm says out loud: the flag also relaxes
verb agreement on forward asks, which its name does not advertise; and the ask that
should be the safety case is answered by nothing in ELECTRIC but still leaks a two-character
fragment ('to?') from the house's own fallback path.
On the reading side, --electric-ask-marks tells him where a book printed a ?, which is what lets
the admissibility gate refuse to hand back a remembered question as a fact
(docs/STATE.md, ELECTRIC_ASK_MARKS). --electric-qa-store goes one step further and keeps the
question/answer pairs a book prints adjacent to each other, answering them by exact key with the
line the book wrote. It is off by default, it stores nothing without provenance, and a question
cannot answer a question — the only pair the sixteen real novels yield is Dickens putting one
rhetorical question under another, and that one is refused. Measured in the real house: on a book
written as Q/A it takes answerable asks from 70/119 to 119/119 with zero losses and the pairs
surviving a restart; on Jane Eyre it stores 0 pairs and changes nothing at all, which is the
honest bound — it is memory of what was printed next to what, not comprehension.
tools/book_qa_store_live.py re-runs that check.
--electric-qa-elicit points the same mechanism at a person instead of a book: an utterance ending
in ? is held as a pending ask, and the very next thing that same speaker says is offered as its
answer, stored with source=conversation and the mark it was typed with. That mark is what lets him
answer the same words later without it — the learned-question-word route needs two role votes, and
one person teaching one pair gives one, so the memory existed and was unreachable. respond() routes
to answer() only for a key the store holds a conversation pair under, so an ask he has no pair for
keeps the path it always took. Measured in the real house (tools/qa_elicit_live.py): rows identical
across arms (15/15 with no book read, 214/214 after reading one), both elicited asks answered with and
without the mark, every ask the flag did not answer byte-identical to the arm without it, the guard
still refusing, leaks 0→0, pairs surviving a restart while a hanging ask does not. It found two things
rather than confirming them: a marked ask used to be written into the tell inventory, and the taught
path then answered that ask with the ask's own text — closed here, under this flag, because this flag
is what routes the ask there; and a person cannot overwrite a pair the book printed first, so teaching
him who carries droso? after the primer stores nothing and the book's line stands.
--electric-qa-paraphrase lets a pair taught in one phrasing answer in another. Taught
who carries droso? / parent carries droso, then asked who carries the droso: the store
held the pair and said nothing, because the key is the exact characters that were typed. The
lookup now folds the ask through machinery the read path already runs for this exact problem —
organs/stemming.py, the project's one stemmer, and normalize_ask_variants — and only after
the exact key has missed. The bound is provenance, not similarity: only records a person typed
with a ? are candidates, so in a house that read 05_questions first, who carries the droso
gets nothing, because the standing record is the book's. Measured in the real house
(tools/qa_paraphrase_live.py): 9/9 paraphrases recovered in a conversation-only house —
articles, copulas, do-support, -s and -ing, and the passive what was the door held by
reaching what holds the door through the normalizer — and 5/5 in the house where the book
got there first, the other four being book records the fold may not touch. The seven phrasings
it claims to refuse were refused, identically in both arms: who droso carries, who carries droso tomorrow, who carried droso, who own the lantern, what rings the bell twice. Those
refusals are half the design — the fold keeps word order, because a bag of stems would answer a
role-inverted ask, and it under-folds tense the shared stemmer has not been told to bridge.
Those seven flags, plus the store-shape guard described below, are now one switch of eight.
--electric-teach (in tools/serve.py and tools/electric_chat.py, defined once in
tools/electric_teach_mode.py so the two wiring sites
cannot drift) turns on the store, elicitation, the paraphrase fold, provenance, the mark channel,
admissibility, the fragment guard and the store-shape guard, on top of what --electric already means, and it implies
--electric — which matters because serve.py only runs load_state() inside its --electric
block, so a server started with the QA flags and not --electric saved every pair and came back
remembering none. Seven switches stay out of it, and stay out on purpose: ELECTRIC_ASK_SHAPE,
ELECTRIC_REVERSE, ELECTRIC_OBJECT_ROLE, ELECTRIC_ASK_NORMALIZE, ELECTRIC_ASK_DO_SUPPORT,
ELECTRIC_QA_ANSWER_MEMORY and ELECTRIC_ARBITER_TELL. Six of them widen which asks reach which
matchers; the seventh widens what the mouth says about a memory a matcher already reached. Each was
measured alone precisely so a run could say which one cost something.
Everything is set on the instance, never on NeuralLanguage.
Measured by tools/qa_teach_mode_live.py in a real house, three arms — control (plain
--electric), the mode through the shipped enable(), and the eight flags spelled out by hand:
the mode is byte-identical to the list on rows, store keys and every probe reply, before and
after a real restart. Two elicited pairs answer six phrasings from the store (what rings the bell, what ring the bell, what is ringing the bell, the marked ask, and the door pair's two),
each naming its evidence (person_marked, person_paraphrase); the control arm answers none of
them from a store it never filled; rows are identical across arms (9/9); the guarded admission
still refuses from electric_absence, in the same words, in every arm, after a restart; asking in
one phrasing and answering in another teaches nothing (pair count unchanged by 13 probes).
And the check found a hole, which was pinned rather than fixed at the time because repairing it
means narrowing a write site the graded absence work owns: _absence_note in
organs/neural_language.py (the E24 write side -- cited by function, because the file moves)
files a frame from anything it is told, and a question's words yield a frame. So a question the
house cannot classify is heard as a statement and enters _taught_says — the one store that
answers before the QA store does. The QA store refuses exactly this pair (answer_is_question,
the Dickens warmint case); the taught inventory has no such check, and that asymmetry is the
defect. Measured in four states: the filing happens in every arm, control included, but only a
house that has since learned the word can be caught by it — which is the mode, in its one-pair
state, where it repeats the person's own question back at them (what rings the bell →
what rings the bell twice). The control arm is silent there for the same reason it can answer
nothing: it never classified the ask. The mode's second elicited pair earns the word (two role
votes), the ask stops being heard as a tell, and the store answers it.
ELECTRIC_ASK_SHAPE_STORE — the eighth member of that stack, off by default on the class — closes
it at the write site: the tell's own shape is asked of the same detector the row tagger uses, and an
ask-shaped tell is not filed as a fact. Everything above that line is untouched: the frame still
lands in _absence_inv, which is what the graded licence reads, and the licence's reply comes out
identical with the guard on and off. What it costs is measured, not argued
(tools/qa_teach_hole_live.py → docs/evidence/qa_teach_hole_live.json). A short free-relative
statement — who rings the bell keeps the gate — is shape-identical to the ask who rings the bell,
and this guard declines it; the longer relative clauses are safe because the detector's cap is the
binder's own max_roles (8 in a real house, asserted rather than assumed). The declined line loses
its PAIR and nothing else: the cortex row and the inventory entry survive, and the frame it would
have filed was ('agent','rings','bell keeps gate') — a subject slot holding the verb, the same
misparse the hole is made of. And one effect nobody predicted, which is why the check exists:
deleting a wrong entry can make a right one reachable. With the residual filed under rings,
what rings the bell has two candidate subjects, the keyed binder rejects the ambiguity and the QA
store answers; with it declined the bind resolves to bell and a tell the person actually said
answers instead. This guard is not pure subtraction, and the evidence file says so in
unmasking_note.
Evidence: docs/evidence/qa_teach_mode_live.json, docs/evidence/qa_teach_hole_live.json,
docs/evidence/electric_learn_live.json; unit
pins: tests/test_electric_teach_mode.py (20 tests, including teaching a pair over HTTP, shutting
down, and answering a paraphrase in a second process that shared nothing but the file) and
tests/test_electric_ask_shape_store.py (22 — the hole reproduced with the guard off and closed
with it on, the statements and relative clauses still filed, the cap proved to be the binder's,
fail-open on every failure mode, and rows/pairs/inventory/licence identical in both arms), plus
tests/test_electric_learn_mode.py (17 — the set is the set, the two modes differ by exactly the
widenings when two organs are diffed rather than when two tables are read, an invented flag
raises before anything is written, no switch is inert or off-by-default, both doors read the one
table, and a real server teaches facts and a pair, shuts down, and answers a reverse ask and a
paraphrase from the file -- plus the verbatim reverse answer re-asked in a house whose pool is full
of remembered questions, which is the condition that makes the narrow arms answer one word).
--electric-learn is the full teach/learn mode: the eight-flag stack, what --electric already
means, and the widenings teach mode was built to refuse (ELECTRIC_ASK_SHAPE,
ELECTRIC_REVERSE, ELECTRIC_OBJECT_ROLE, ELECTRIC_ASK_NORMALIZE,
ELECTRIC_ASK_DO_SUPPORT, ELECTRIC_QA_ANSWER_MEMORY, ELECTRIC_ARBITER_TELL) — eighteen switches,
one list, LEARN in the same table, both doors. It is a separate flag rather than a wider default
because the two halves have opposite polarity: the stack can only ever refuse (a row dropped from
the evidence, a fragment unspoken, a write declined), while those seven can only ever reach more —
six of them reaching more matchers, the seventh (ELECTRIC_ARBITER_TELL) letting out a sentence that
was previously not spoken. Both modes set their attributes through one _set() that checks every name
against the class before writing any — setattr on an instance accepts any name at all, so a mode
of eighteen switches could otherwise report eighteen and behave like eleven.
What the combination buys, measured in a real house across three arms, live and after a genuine
restart (tools/electric_learn_live.py → docs/evidence/electric_learn_live.json; 14 rows in every
arm, so the mode wrote no extra row): what bites the latch is answered dog by the shape arbiter
in the control and teach arms and the dog bites the latch — the tell, verbatim, from the keyed
inventory — in learn; who does the lantern belong to is unanswered live in the narrow arms and
answered mira after a restart, while learn answers the lantern belongs to Mira on both sides
of it. Untaught asks are refused in all three arms and the to? fragment never left any arm's
mouth. One correction to that reading, recorded because the first draft of this paragraph made it:
the narrow arms do not get worse because of the restart. tools/electric_restart_qrow.py ran the
factors apart — the unrelated remembered question row, the restart, and the three earlier asks, in
every combination, 24 cells — and mira appeared in none of them; every cell refused at
0/50/53% coverage. What does reproduce it is the learn-live tool's whole sequence: the house's own
six probes plus the who does the mouse chase to line it ends on, carried across the save. So the
trigger is an accumulation of remembered questions lifting a different question over the coverage
gate, not a restart and not a mode — it reproduces in the control arm with no ELECTRIC flag on at
all, on an organ this work never edited — and in the teach replica ask_hits_dropped is 0, so
admissibility was on and still did not intercept it, because the row that opens the gate is not the
row that answers. The word lifted is the right word (Mira is who the lantern belongs to), which is
why it is recorded as a reachability defect and not an invention; learn mode's claim is only that it
never takes that path, answering from the keyed inventory first in all 24 cells and in the replica.
The live check also caught its own harness three times — a house booted from a session with
persist off and no load_state() proves nothing about restarts, and the control arm's
"restart" skipped load_state() altogether on the reasoning that a flagless house has nothing to
load, which is exactly where a wrong boot can hide: an arm nobody checks is an arm that cannot
fail. All three arms now load, and an arm that loads no state fails the run instead of printing
empty cells.
--electric-learn then needed a scale question asked, not another four-tell demo:
tools/electric_learn_bench.py (→ docs/evidence/electric_learn_bench.json) teaches a real
curriculum — 24 tells and 16 QA pairs, 40 items, in three sessions with a restart between every one —
and asks it back in 136 generated shapes plus 12 distractors that are never taught, in three arms.
Two things came out of it that no smaller run could have shown. The restart is not the problem:
probes lost on restart 0 and gained 0, at every depth, in both ELECTRIC arms (learn 28/52/79 correct,
identical live and restarted), and re-probing the same house twice moved exactly one probe — so the
artifact the last task chased is real and is not forgetting. The failures have a shape: every
failing probe is classified by which part of the pipeline missed, from the store's own keys and the
organ's own key functions, and the largest class was one word wide — what does the dog bite returns
its tell verbatim 17 times in 21 while what the dog bite returns nothing 19 times in 21, refusing
with nothing he remembers has that shape (20 of 45 failing probes; then pair_never_admitted 10,
fallback_fragment 8, refusal_silence 4, key_shadowed 3).
That class is ELECTRIC_ASK_DO_SUPPORT (default off; the fifth widening, so --electric-teach
still refuses it): it inserts the auxiliary the ask dropped, and only when one tell this house was
told carries that noun as its subject and that verb as its action — so what the moon bite matches a
moon tell and a bite verb separately and gets nothing, and what comes back is still a verbatim taught
tell. It is inert without --electric-ask-normalize, which the table declares out loud rather than
letting a do-nothing flag be reported as a working one, and because normalize_ask_variants is also
the store's paraphrase key the fold is a parameter, not a change to the default list. Re-measured on
the same instrument: learn 79 → 98 of 124 taught probes, object_fold 0/21 → 17/21,
ask_not_recognized 20 → 4, items kept on every probe 10 → 28 — while every other mechanism held
its count, the teach arm came back byte-identical at 39 (so the widening is really behind the
flag), restart cost stayed exactly nothing, and no arm invented a sentence at any depth. False
acceptance did not grow either: one ask, what chases the mouse → the mouse chases the dog, in
18 cells across both ELECTRIC arms and zero in control — the same fault that predates this flag, not a
new one. The 4 that still refuse are two named things: _verb_stem under-folds carries/crosses/
catches to carrie/crosse/catche (so the warrant never fires), and what the dog guard has no
warrant to find because the dog bites the latch already owns the (dog, agent) key — neither is fixed
here, because the stemmer is shared by the binders, the paraphrase key and the absence frame, and
widening it is a change to every path at once rather than a flag-gated fix to one class. Chasing it also
turned up a wiring bug worth more than the flag: tools/serve.py applied the mode table and then
assigned its own switches as = bool(args.x), so --electric --electric-learn was silently setting
three of the four widenings back to False — the widest mode ran as teach mode plus one, and printed
the user's intent instead of the organ's state — while --electric-learn alone skipped the
--electric block that contains load_state(), so the mode that teaches the most came up amnesiac.
Both fixed (or learn, if teach or learn:), guarded by
tests/test_electric_ask_do_support.py (11) and tests/test_electric_learn_bench.py (18, pure
function, under a second — including one test per classifier class, because a benchmark whose classes
are wrong measures its own vocabulary: the first draft counted the licensed refusal speaking and an
answer earned from an earlier tell as confabulations, and reported 16 inventions in an arm with no
ELECTRIC flag on at all).
The gap's second class was a rule doing someone else's job. learn_qa admits a pair when the answer
differs from the question by exactly one word on each side — the right way to learn that the swap
in what bites the latch / the dog bites the latch means what asks about the subject, and the rule
the QA store inherited. Taught 16 pairs in conversation: 10 reached memory, and of the three whose
answer sentence exists nowhere else in the house — the only three a store is for — zero, because
where does the bell hang? / the bell hangs on the wall is 3 missing and 3 new. An answer that says
something new was unteachable by construction. ELECTRIC_QA_ANSWER_MEMORY (default off; the sixth
widening, so --electric-teach still refuses it) keeps such a pair with its provenance and its verbatim
answer and casts no grammar vote — question_roles, interrogatives, answer_types,
qa_pairs_seen do not move, and the record is stored with its question word empty and role -1, so the
learned route cannot open it and only a typed or person-marked ask can. Bounds: a marked conversation
pair, the shared admissibility test, an answer that adds a word (an echo is not a memory), one content
word in common (adjacency is not aboutness — without this, what is your name? and the sky is blue
become a pair), and first tell wins across both admissions. Re-measured: learn 98 → 108 of 124,
kept 28 → 33 of 40, pairs in store 10/16 → 15/16 and the three the store exists for 0/3 →
2/3, and refusal_silence 2 → 0 — while ask_not_recognized stayed at 4, key_shadowed at 3 and
fallback_fragment at 8, and the teach arm did not move at all (14/27/39 correct at depths
1/2/3), with no arm inventing a sentence or answering a second distractor. The one pair it still refuses is refused by its own bound: the ask says toll, the answer
tolls, and the store keys on exact tokens — the same stemmer boundary as the residual above, on the
write side now. tests/test_electric_qa_answer_memory.py (17), including a loose pair surviving a real
save and reload.
ELECTRIC_ARBITER_TELL (default off; the seventh widening, so --electric-teach still refuses
it): when the shape arbiter has verified a memory and named the word in it that answers the ask, say
that memory whole. The one-word branch is deliberate — reading a row out loud speaks its modifiers too,
which is how what turns twice? tripped its own forbid on copper — so the sentence is taken only
when it adds no word the ask did not already name, except the answering word itself. Re-measured on
this tree (tools/electric_learn_bench.py: 40 items, 136 probes, 3 arms, exit 0, no invention in any
arm at any depth): learn 37/71/108 → 38/75/115 correct at depths 1/2/3, arbiter tell spoken
36 times and only in the learn arm, fallback_fragment at depth 3 live 8 → 3, teach unmoved
at 14/27/39, control unmoved, guarded-absence rows 24 → 24. Two things that run is the record
of, rather than the flag's own claim. All 36 arbiter tell rows were arbiter head rows at the same
position in the pre-flag run, asking the same thing, and all 36 moved partial → correct: the branch
converting is exactly the branch. But the run moved 16 rows that are not this branch at all — 3
ungrammatical asks (what the nora carry, what the dog guard, what the bridge cross) that used to
be refused (nothing he remembers has that shape) now reach the one-word branch and answer says,
because the house, having said whole sentences earlier in the run, has a row of that shape by then.
says is in none of the 27 told sentences, and in neither the ask nor the memory row it came from.
This project already holds that a word nobody said is worse than silence (docs/electric_generalisation.md),
so refused → partial here is a regression and not a rounding error, even though no row lost correct
and the guarded-absence rows did not move. It is pre-existing behaviour of arbiter head — the branch
can name a word the house was never told — surfaced by the new routing, and exactly why the bound
requires the named word to be a word of the row: with the flag on, those 3 asks still never get a
sentence, because the bound refuses them. tests/test_electric_arbiter_tell.py (18), including the
graded leak (what turns twice still answers bell, with the flag on) and every bound as a rejection
of the predicate.
python tools/electric_chat.py --state state/electric_chat/neural_lang.json
# "+the scarf is on the hook" teaches (the organ has no learned interrogatives,
# "?where is the scarf?" asks so the act is declared: see the doc)
python tools/electric_chat.py --electric-teach --state state/electric_chat/neural_lang.json
# type: what rings the bell? then: the copper bell rings <- one session, a pair
# then ask it in other words: what ring the bell -> the copper bell rings
# (--say is one life per call: a held ask does not survive it, and the tool says so)
python tools/electric_chat.py --electric-learn --state state/electric_chat/neural_lang.json
# the same stack plus the seven widenings = eighteen switches:
# what bites the latch -> the dog bites the latch
# the seventh widening speaks a verified whole sentence where the arbiter used to name one word
# and a pair the role arithmetic refuses is still kept: where does the bell hang? -> the bell
# hangs on the wall (stored with no grammar claim, so it teaches it nothing about `where`)
# (/health reports teach=true and learn=true; --no-electric overrides both)
python tools/electric_learn_bench.py # 40 items, 136 probes, 3 arms, ~11 min; exits 1 if
python tools/electric_learn_bench.py --arms learn --depth 1 # any house says a sentence nobody saidFigures below are snapshots with the file they came from; re-measure rather than assume them current.
| Measure | Value |
|---|---|
| Vocabulary | 11,555 words (live state, at f2e1748) |
| Propositions in memory | approximately 60,000 |
| Verified procedures | approximately 680 |
| Coding tasks solved locally, first-contact set | 0 of 10 (state/fitness/heldout_firstcontact.json) |
| Composite fitness score | 0.6834 at SAN_ROW_CAP=1024 (state/fitness/baseline_cap1024.json) |
| Test suite | 1,167 collected, 1,167 reached, 0 collected-but-not-executed, exit 0 -- 1,164 passed, 0 failed, 0 errors, 3 skipped, 526.45s under pytest / 528.27s wall at 2026-11-03T05:59:51Z, measured by tools/suite_manifest.py run alone on the current tree (experiments/G0-prime/results/suite_manifest.json). The run before it, same gate: 1,164 collected / 1,164 reached / 0 missing, exit 1 at 05:36:39Z -- its single failure was test_registration_seal_verifies_against_the_registration, which read experiments/MP-E9/registration.json while every seal the gate stamped went into experiments/G0-prime/registration.json: a stale seal on a file the test was not stamping, not a defect in the bench or the organism. Repaired (both registrations are checked, and the mutual-sealing cycle between them is removed), then re-measured whole -- so the exit-0 claim is a measurement, not an inference. The 1,164 -> 1,167 move is attributed, not waved through: three testcases appeared while only one def test_ was added, so a throwaway worktree pinned at the gate commit was collected -- it yields 1,166 ids against the current tree's 1,167, differing by exactly one node (test_index_cross_check_is_not_vacuous), with no id lost and no other module moving; the earlier run had measured a tree predating two seal-regression tests that the gate commit itself later carried. Collection is deterministic and tree-determined, which is what a baseline must be before MP-E9 cites it. The 3 skips are the pre-existing legacy_archive ones, named in the manifest. Pre-G0-prime: 1126 passed, 3 skipped, 0 failed in 494.67s, exit 0 (re-measured on that tree at the ELECTRIC_ARBITER_TELL commit -- the delta over 1108 is the 18 tests in tests/test_electric_arbiter_tell.py, counted out of the file with findstr /R "^def test_"; 1091 at ELECTRIC_ASK_DO_SUPPORT, 1062 at ELECTRIC_LEARN, 1045 before that -- the deltas are the 17 teach/learn tests, the 11 do-support and 18 benchmark tests, then the 17 answer-memory tests, checked against the files with findstr /R "^def test_" rather than assumed. The battery count grows with each entry. 1126 is now the pre-G0-prime number, superseded by the 1,167 above) |
| Held-out 24 asks, organ only | 19/24 (at f2e1748) |
| Guard scripts | 8/8, 1.00 warm and 1.00 cold, delta +0.00 (at f2e1748) |
The wiring is the BANC v888 release of the Brain and Nerve Cord connectome.
- Bates AS, Phelps JS, Kim M, Yang HHJ, et al. Distributed control circuits across a brain and cord connectome. Nature (2026), open access. https://doi.org/10.1038/s41586-026-10735-w
- BANC v888 data deposit: Harvard Dataverse, https://doi.org/10.7910/DVN/7WTH1N (CC BY 4.0)
Code released under the MIT License. Copyright (c) 2026 Silent. See LICENSE.
The BANC v888 connectome data is licensed CC BY 4.0 by its authors.