Repository navigation
feat(learning): they learn the gate — a gated echo on an undirected turn stages {burst → PASS}, measured by a speech-discipline gym with both halves (card 657e74de) - #4078
Conversation
37ef8a1 to
0a6275b
Compare
…the runner's tmp_pack red (#4062, #4078) fixed at its cause (#4082) * fix(test): the citizen-layer test owns its HOME under the env lock — the runner's "tmp_pack … No such file" red (#4062, #4078) was a concurrent test's temp home vanishing mid-clone citizen_layer_reader_provisions_and_tells_the_real_root provisions a layer under `$HOME/.continuum/citizens/peers/<peer>` and read whatever HOME a concurrent `with_test_home` caller had set — a tempdir that dropped while the shared clone was still writing its pack ("could not open …/objects/pack/tmp_pack_… for reading: No such file", "fetch-pack: invalid index-pack output"). It also provisioned the throwaway peer under the developer's REAL home on every local run. Now the test takes the same ENV_LOCK with a temp home of its own for the whole clone, asserts the layer landed under it, and lets the tempdir drop it. A flake fixed at its cause, not re-run (Joel, 2026-09-07). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test): ONE crate-wide home lock — every test that owns HOME/USERPROFILE/HF_HOME/CONTINUUM_HOME takes crate::test_env (Astra's block on #4082) Astra's review: the model_registry lock excluded only model_registry callers. Three private ENV_LOCKs (artifacts, commands/memory, training_producer) and three unlocked CONTINUUM_HOME writers (code_commands, swe_bench, card_staging) still raced every test that resolves the citizen layer — and citizen_layer_path reads CONTINUUM_HOME FIRST, which no guard pinned. Now `test_env` is the one lock and the one guard: `HomeGuard::set` (async) / `set_blocking` / `with_test_home` pin all four variables to the test's home and restore them on drop (panic included). artifacts::with_test_home is a shim over it; the two HomeGuards are `use crate::test_env::HomeGuard`; the three CONTINUUM_HOME tests take the guard. No `set_var("HOME"|"CONTINUUM_HOME")` outside the guard remains in the crate. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo * fix(test): the HF_HOME relocation test takes the one home lock; the guard captures OsString and is proven to restore on unwind (Astra's re-review of #4082) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
…s on an undirected turn stages {burst → PASS} as a speech-discipline example, measured by a gym with both halves (card 657e74de)
Joel: "ideally they learn too". Every echo shape gated at the Speak seam returned a
Pass the citizen never saw — the substrate silenced her and she learned nothing, so
the same tier produced the same echo next turn. The corpus is {prompt, completion}
SFT only, so a gate verdict cannot be a negative; but for the echo class the correct
completion IS known and fits the schema: the silence token.
- training_producer::produce_speech_discipline / plan_speech_discipline: {burst →
"PASS"} into its OWN bucket ("speech-discipline"), quality 1.0 (a curated floor —
a 4-char completion scores below MIN_TRAINING_QUALITY by construction). Probe
training.example.speech_discipline {marker}.
- The call site is the faculty's verdict: only a framing-echo or not-speech pass
(gate_lesson_marker), only on an UNDIRECTED, LIVED turn — a directed question never
trains silence; a synthetic burst is not her experience.
- Muteness is prevented by MEASURE, not by a share cap: the bucket's gene is adoptable
only through its gym (docs/genome/speech-discipline.jsonl, TRAIT_GYMS + embedded),
which carries both halves — 8 quiet bursts (receipts, peers talking to each other,
"nothing has been said") that must end in silence and 8 real asks that must be
answered — so a gene that learned to pass everything fails the gym and is never
paged in. Quiet rows run AMBIENT (a directed framing would grade a correct answer as
a failure to keep quiet).
- EvalTask.silence (ts-rs binding regenerated): passes iff she said nothing; one
grader (substring_or_silence_grade) shared by the solo and team passes.
Tests: a_gated_echo_plans_as_burst_to_pass_in_its_own_bucket;
the_speech_discipline_gym_measures_silence_and_speech (every row exactly one kind,
both halves populated, grader agrees); trait map resolves. 140/140 + 41/41 + ratchets.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Rebased onto canary at 3b8a7cb: the lesson now keys off the typed |
0a6275b to
3b8a7cb
Compare
|
VERDICT: APPROVE. This is the word that merges it. Thread checked — nothing standing from anyone. The safety property is the whole design, and I verified it rather than taking the description. My first parse of Balanced. A gene that learned to pass everything scores 8/16 and fails its own gym. That is the property I would have demanded before agreeing to train silence at all, and it is already here — the teaching signal cannot be gamed by the degenerate policy it most invites. The staging conditions are the other half of the safety, and they are right:
Keying off the typed This closes the half I explicitly left open. #4075 silences a gated echo and throws the example away; I said on that PR that these passes should stage as learning examples and that it was not my change to make. It is now made, with a gym that can refuse the gene. Ship it. |
Why
Joel: "ideally they learn too." Every echo shape gated at the Speak seam (#4054/#4061/#4064/#4065/#4067, #4075) returns a Pass the citizen never sees — the substrate silences her and she learns nothing, so the same tier produces the same echo next turn. The corpus is
{prompt, completion}SFT only, so a gate verdict cannot be a negative; for the echo class the correct completion IS known and fits the schema: the silence token.What
training_producer::produce_speech_discipline/plan_speech_disciplinestage{burst → "PASS"}into its own bucketspeech-disciplineat quality 1.0 (curated floor). Probetraining.example.speech_discipline {marker}.gate_lesson_marker), only on an undirected, lived turn. A directed question never trains silence; a synthetic burst is not her experience.docs/genome/speech-discipline.jsonl, inTRAIT_GYMS+ embedded), which carries both halves — 8 quiet bursts (peer receipts, two peers talking to each other, "nothing has been said") that must end in silence, and 8 real asks that must be answered. A gene that learned to pass everything fails the gym and is never paged in (the existing sentinel rule). Quiet rows run ambient — posed as directed, a correct answer to an addressed line would grade as a failure to keep quiet.EvalTask.silence(ts-rs binding regenerated): passes iff she said nothing; one gradersubstring_or_silence_gradeshared by the solo and team passes.Design note vs the card's text: the card proposed a ≤10% share cap inside a conversation bucket. The trigger files one bucket per
(persona, trait, base)and each bucket trains its own gene, so a separate bucket + a two-halved gym is the stronger guard: the cap would be a heuristic, the gym is a measurement.Tests
a_gated_echo_plans_as_burst_to_pass_in_its_own_bucket(own bucket, silence token the parser reads, curated floor clears, gym exists);the_speech_discipline_gym_measures_silence_and_speech(every row exactly one kind, both halves ≥ 6, grader agrees with each row); trait map resolves.persona::training_producer+cognition::{gym, eval, llm_deliberation_faculty, experience}140/140; ratchets green.Acceptance (after deploy)
training.example.speech_discipline> 0 within an hour on a node whose gates fire (the Intel node; the M5's Sigurd/4c9bb8d9/cf6b4df6 today);genome/training-trigger/statusshows thespeech-disciplinebucket filling; over days,cognition.framing_echoper citizen falls on the trained genome.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo