Three lessons from Ghostlight L1. 1. Three agents ended their turns while their own detached cargo job was still running, even though the briefs already said to wait for long jobs. The stall stopped only once the briefs named the mechanism: block inside a tool call. 2. A test built on a random draw passed by luck, failing 3 of 40 looped runs. 3. An operator's question about why a mechanism works exposed a defect that had been present all along. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
14 KiB
Changelog
Record each change to the skill together with the evidence that motivated it.
2026-09-16: agents must be told how to wait, not only to wait
Evidence: Ghostlight L1, the stock lenses
(docs/architecture/ghostlight-stock-lenses-cut.md and its postmortem).
- "Wait for long jobs" was not enough. Three agents in one campaign ended
their turns while a build they had started was still running: a Soul pass
on Cut 1 and a Hands pass on Cut 2, twice. Each launched cargo detached,
then ended the turn "to wait". A detached process is not a tracked
child of the agent, so its completion never woke it; the work stopped until
the root agent resumed it by hand. The rule to wait was already in the
briefs. What worked was naming the mechanism: block inside a tool call,
with cargo in the foreground under a long tool timeout, or
Wait-Processon the pid, and never start a second cargo run while one holds the target lock. After that sentence entered the briefs, no agent stalled again. - A green test can be a coin flip. A Cut 3 test that rewrote a session's lens to a fixed value collided with a randomly drawn lens about one run in eight; Hands' single green run was luck. It failed 3 of 40 looped runs and passed 120 of 120 after a deterministic fix. For any test built on a random draw or a random identity, looping it is part of verification.
- An operator question can hide the design fault. Self told the operator a lens "has to be recorded" in the command identity. The planner then found that keying identity on mutable weights strands rows, and the operator's follow-up ("are you relying on some deterministic code outputting the same id rather than just checking the state?") exposed a pre-existing defect: the elaborator's repair loop had never worked across sweeps. When the operator asks why a mechanism works, answer from the Body and probe it; it may be the most valuable question of the campaign.
2026-09-16: a mutation suite needs a no-op control and byte-exact I/O
Evidence: the Eureka pipeline-state campaign's third Soul pass on Cut 6, and the
Eyes audit that followed (Epiphany notes/eureka-pipeline-state-cut.md, "Mutation
harness audit").
- A no-op control is the test of the harness. Soul ran a mutation that
changed nothing and it killed
bounds_refuse_in_utf8_bytes. The harness's text round-trip had collapsed anéliteral to one byte, so the corruption alone failed the test and every mutation through that path would have reported a kill. Nothing else in the loop could have noticed: a killed mutation is what a working suite looks like. - The defect was not where it was feared. The audit found every committed suite using byte-lossless I/O. The corrupting harness was Soul's own inline script, never written to disk, so its text is unrecoverable and its verdicts are unverifiable. That is the same shape as the standing finding that mutations without artifacts cannot be checked; it now applies to Soul too.
- Encoding symmetry and line endings, not a flag. Measured on the host:
mixed-encoding round-trips corrupt non-ASCII; any read that splits lines
rewrites every line ending regardless of encoding, and
core.autocrlfhides the rewrite fromgit diff. One ad-hoc Cut 1 script did exactly that, so three early verdicts are recorded as suspect. - The committed suites forbade a control by shape. Each threw when a replacement changed nothing. A table shape that cannot express "change nothing" cannot test itself.
- Soul brief: wait for long jobs. The Hands brief had this rule since the Ghostlight run; the Soul brief did not, and two consecutive Soul passes on Cut 6b ended their turn with "waiting on the script" and had to be resumed by Self before any finding arrived.
- "Default model" means the root's model. After the operator switched the root session to Fable, every Hands and steward dispatched without an explicit model inherited Fable, against the skill's own allocation. The operator noticed. Self now names the model on every dispatch: the strong model for Imagination and for Soul on foundation cuts, the default tier by name for Hands, Eyes, probes and stewards.
- "Wait" now names the mechanism. A Hands pass with the rule in its brief still ended its turn on "waiting on the suite", the third such yield in one day. The rule said what, not how; an agent that starts a detached job reads "wait" as "stop and be woken", and nothing wakes it. Both briefs now say: a foreground poll loop you run yourself, in chunks under the tool timeout, until the job exits.
2026-09-16: record the gap, and absence is the hardest claim
Evidence: ghostlight-77's requirements message to the Eureka pipeline-state
campaign, drawn from Ghostlight docs/architecture/ghostlight-library-extraction-cut.md
and its postmortem. Both rules come from the same run as the entry below.
- Record the substrate you needed and did not have. That campaign hit the missing typed-state primitive six separate ways — supersession tracked in "(supersedes …)" prose and fixed by substring surgery, an "Open:" question line hand-edited about eight times, three ad-hoc finding namespaces, verdicts linked to nothing, a subtraction ledger reconciled only at close-out where it showed a +65 → +210 overrun, and a status header rewritten by hand at every landing. Each workaround worked, so each requirement nearly evaporated. The agent named this itself: the failure was working around the gap silently rather than flagging it while hitting it. A run that hits one gap six times is the best requirements evidence a design will ever get, and it survives only if someone writes it down while it hurts. Working around the gap is still correct — doctrine says do not wait on a service that does not exist — but leave the evidence.
- Proving something is gone is the claim most likely to be wrong. A Mind Steward reported a stale phrase retired because a line break had split it from its grep. The phrase was still there, still steering. A verification that cannot see its own target reports a clean pass, which is worse than no verification: it closes the question. Prose reflows, so an exact search over it is a tripwire with the same limits as any other text scanner — the scanner rule below is not only about code.
2026-09-16: sealing, forgeries, scanners and proportion, from Ghostlight L0
Evidence: Ghostlight docs/architecture/ghostlight-library-extraction-postmortem.md
and its cut map.
- Soul attacks constructibility, not names. Ruling Q1-4 said sealed
constructors must be unreachable. Ten compile_fail doc-tests passed while
every public ID type derived
Deserialize, so an external crate built any of them from JSON; an ID-mintingDefaultimpl left all ten green. It was found only because Self added the serde route to the Soul brief by hand. On stable rustc the compile_fail error codes are not enforced either. - Rejection tests need realistic forgeries. Short fake digests passed against kernels comparing only length, a prefix, all but the last character, case-insensitively, or only the hex after the label. Five mutants survived across two Soul passes.
- Text scanners are tripwires. Every one written in the campaign lost to a
short evasion: a single-minter count to an alias, a subdirectory, a type
alias and a function value; a deploy wiring test to a two-line deletion that
reattached the pinned line to the wrong container, and its fix to
if falsearound exact lines. Prefer a semantic tool, or state the limits. - Default proportionate forks. Asked how much the single-minter enforcement question mattered, the operator said not at all. A fork that guards only against the project's own code is a default plus a recorded follow-up.
- Hands brief additions: wait for long jobs instead of reporting a to-do
list (one Hands agent did); restore mutations without
git checkout(one run was invalidated that way); measure warnings from forced rebuilds (a cached build reported zero).
2026-09-16: subtraction rules, from the Eureka campaign's own cuts
- A deletion can take a live rule's only test with it. Cut 4 deleted a store
module; the epoch guard that survived in another file then passed a
if falsemutation, and nothing could construct the state needed to reach it. The fix was to delete the unreachable rule too, not to write a test for state nothing can build. - A mutation that never applied is not a passing mutation. A multi-line
anchor matched nothing on a CRLF working tree. Scripts must fail loudly on a
stale anchor, and should also assert the anchor matches exactly once, since a
multi-site replace can read as "killed" when its test failed for another
reason.
- Correction, same day. Self first recorded this as "one mutation reported a verdict it never earned". Soul checked the committed history: the script already threw on a missing anchor, the affected mutation existed only in Hands' working copy, and every committed verdict was real. The rule stands; the incident was narrower than first written.
2026-09-16: an instance owns its mind, and a service owns the state
Operator correction, mid-campaign, after three Soul passes spent propping up a repo-owned store: "I think someone needs to own Epiphany/Eureka state. Each store should be canonical to one instance, the store is that instance's mind, and that instance can be assigned stewardship over multiple repos."
- The lesson for this skill: when a design needs escalating machinery to hold together (a per-clone lease, git-directory resolution, committed attribute checks, a merge tool), the missing piece is usually an owner, not another guard. Soul kept confirming the guards were weak; the guards were the symptom.
- Mind state does not belong in version control. Git offers branches, merges and history rewriting; a mind wants one owner and an append-only record.
- Eureka's typed state will live in a memory organ service (Huginn) that owns each instance's mind, depends on Qdrant directly, and refuses loudly when unreachable rather than letting a second writer exist.
2026-09-15: the operator channel is the session
Operator ruling. Spec iteration proved to be the load-bearing part of a Eureka run, so the question path matters as much as the cut loop.
- Eureka has no Persona. Self is the operator surface.
- Blocking questions may be pushed through any notification MCP the user configures. Eureka owns no transport, so other people can swap in their own.
- Answering over a chat channel is a later campaign; it needs identity binding before a reply can become a ruling.
- The operator's framing: Epiphany gives each repo an identity, memories and a Persona to talk to; Eureka is "the cut-down Claude-native version anyone can use".
2026-09-15: Hands brief rules from the Eureka pipeline-state campaign
- Define every mutation in the report. Soul could not rerun Hands' Cut 2 mutations "C1-C5" because the report named them without saying what changed.
- "Unchanged" is proven against the base commit. Cut 2 pinned a Mind receipt digest captured from the new code. Soul had to rerun the test at the base commit to show it matched.
- Baseline shared build caches by path list. A Cut 2 Soul pass left about 401 MB in the shared cargo target that it could not attribute. It had recorded only counts, so it did not delete blind.
- Check that a detached script started. A Cut 1 mutation script died on a PowerShell parse error, and its monitor sat silent for 30 minutes.
2026-09-15: renamed to Eureka; postmortem rules folded in
- Rename. The operator named the skill-and-MCP form of the pipeline Eureka. Epiphany stays the name of the running organism, and Eureka keeps the faculty vocabulary.
- Operator observation: typed state. What makes Epiphany special is that findings are stored in typed state that can be queried semantically. Claude agents can be given the same state tools. Eureka's likely next step is to replace doc, report and memory findings with typed state documents (findings, rulings, cuts, Soul verdicts) behind MCP tools.
- Operator observation: Imagination. Eureka's Imagination has a more clearly defined target-mapping role than Epiphany's. Epiphany may want to adopt it.
- Epiphany comparison. A source-grounded model of Epiphany at
71324718is kept asepiphany-comparison-2026-09-15.md. It is a dated snapshot, not live truth. Epiphany's ownnotes/faculty-workflow-lessons-2026-09-04.md:146-176proposes the typed forms of Eureka's habits (Verdict HOLDS/FALSIFIED/UNPROVEN, Rulings, a landed-names digest, steward triggers). Start from those schemas when Eureka gets typed state. - Rules added from the postmortem:
- Soul runs before any release or tag.
- Ask what a domain concept is for before specifying it.
- Carry order as data, not as scheduling.
- Reconcile the subtraction ledger at every landing.
- Count consumers across every project the operator uses, not just one runtime.
2026-09-15: initial formalization
Extracted from the Aetheria CultCache migration (Cuts 0-10, 2026-09-12..15). The
evidence is postmortem-cultcache.md and the Aetheria repo's
docs/cultcache-migration-cut.md.
- Soul is distinct from Imagination. An operator correction: "Making another pass on the cut map is still Imagination."
- Target shape finish line: Hands barely reads.
- Each operator ruling needs its own failing mutation. In Cut 10, Soul removed the availability rule, the price rule and the all-or-nothing fit rule, and all 15 tests still passed.
- Don't cap Soul early. Cuts 6 and 6b each needed four Soul passes.
- Git and tooling scars: explicit staging, message files, the 3-tag limit, commit-independent byte checks, detached builds, and the process-probe role check.