From 655357806efa9e3960d4832bdb51287a28767495 Mon Sep 17 00:00:00 2001 From: Eureka Date: Fri, 6 Nov 2026 12:34:46 +0000 Subject: [PATCH 01/44] testparse: read dotnet 10's "Total tests:" summary block dotnet 10 at normal verbosity ends a run with Total tests: N / Passed: N / Failed: N / Skipped: N (one count per indented line, zero counts omitted) instead of the one-line "Passed! - Failed: ..." form, so mutation-table.sh baselines read as "ran zero tests". tp_scan now parses both forms. A count the block does not account for (Total - Passed - Failed - Skipped) is counted as failed, so a cut-off block cannot read as clean; a "Total tests:" line that is not a count recognises nothing. Fixtures: dotnet10-green/red/zero.log are real dotnet 10.0.403 MSTest runs (-v n); dotnet10-all-failed/truncated.log are hand-written. Co-Authored-By: Claude Sonnet 5.5 --- tools/fixtures/logs/dotnet10-all-failed.log | 4 ++++ tools/fixtures/logs/dotnet10-green.log | 12 +++++++++++ tools/fixtures/logs/dotnet10-red.log | 22 +++++++++++++++++++++ tools/fixtures/logs/dotnet10-truncated.log | 3 +++ tools/fixtures/logs/dotnet10-zero.log | 3 +++ tools/test-tools.sh | 19 ++++++++++++++++++ tools/testparse.sh | 19 +++++++++++++++++- 7 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 tools/fixtures/logs/dotnet10-all-failed.log create mode 100644 tools/fixtures/logs/dotnet10-green.log create mode 100644 tools/fixtures/logs/dotnet10-red.log create mode 100644 tools/fixtures/logs/dotnet10-truncated.log create mode 100644 tools/fixtures/logs/dotnet10-zero.log mode change 100644 => 100755 tools/testparse.sh diff --git a/tools/fixtures/logs/dotnet10-all-failed.log b/tools/fixtures/logs/dotnet10-all-failed.log new file mode 100644 index 0000000..6f67afa --- /dev/null +++ b/tools/fixtures/logs/dotnet10-all-failed.log @@ -0,0 +1,4 @@ +Test Run Failed. +Total tests: 3 + Failed: 3 + Total time: 0.5 Seconds diff --git a/tools/fixtures/logs/dotnet10-green.log b/tools/fixtures/logs/dotnet10-green.log new file mode 100644 index 0000000..5b091a4 --- /dev/null +++ b/tools/fixtures/logs/dotnet10-green.log @@ -0,0 +1,12 @@ +Test run for /tmp/dn/proj/T/bin/Debug/net10.0/T.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Test Parallelization enabled for /tmp/dn/proj/T/bin/Debug/net10.0/T.dll (Workers: 16, Scope: MethodLevel) + Skipped Skipped + Passed Bad [5 ms] + Passed Ok [5 ms] + +Test Run Successful. +Total tests: 3 + Passed: 2 + Skipped: 1 + Total time: 0.5415 Seconds diff --git a/tools/fixtures/logs/dotnet10-red.log b/tools/fixtures/logs/dotnet10-red.log new file mode 100644 index 0000000..72af692 --- /dev/null +++ b/tools/fixtures/logs/dotnet10-red.log @@ -0,0 +1,22 @@ +Test run for /tmp/dn/proj/T/bin/Debug/net10.0/T.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +Test Parallelization enabled for /tmp/dn/proj/T/bin/Debug/net10.0/T.dll (Workers: 16, Scope: MethodLevel) + Skipped Skipped + Passed Ok [5 ms] + Failed Bad [12 ms] + Error Message: + Assert.AreEqual failed. Expected:<1>. Actual:<2>. 'expected' expression: '1', 'actual' expression: '2'. + Stack Trace: + at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.ThrowAssertAreEqualFailed(Object expected, Object actual, String userMessage) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 665 + at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual, IEqualityComparer`1 comparer, String message, String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 492 + at Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual[T](T expected, T actual, String message, String expectedExpression, String actualExpression) in /_/src/TestFramework/TestFramework/Assertions/Assert.AreEqual.cs:line 405 + at T.Test1.Bad() in /tmp/dn/proj/T/Test1.cs:line 6 + at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) + at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) + +Test Run Failed. +Total tests: 3 + Passed: 1 + Failed: 1 + Skipped: 1 + Total time: 0.5395 Seconds diff --git a/tools/fixtures/logs/dotnet10-truncated.log b/tools/fixtures/logs/dotnet10-truncated.log new file mode 100644 index 0000000..7835443 --- /dev/null +++ b/tools/fixtures/logs/dotnet10-truncated.log @@ -0,0 +1,3 @@ +Test Run Failed. +Total tests: 5 + Passed: 2 diff --git a/tools/fixtures/logs/dotnet10-zero.log b/tools/fixtures/logs/dotnet10-zero.log new file mode 100644 index 0000000..ed1ae5c --- /dev/null +++ b/tools/fixtures/logs/dotnet10-zero.log @@ -0,0 +1,3 @@ +Test run for /tmp/dn/proj/T/bin/Debug/net10.0/T.dll (.NETCoreApp,Version=v10.0) +A total of 1 test files matched the specified pattern. +No test matches the given testcase filter `Name=Nope` in /tmp/dn/proj/T/bin/Debug/net10.0/T.dll diff --git a/tools/test-tools.sh b/tools/test-tools.sh index bedbf38..df37c05 100644 --- a/tools/test-tools.sh +++ b/tools/test-tools.sh @@ -40,6 +40,25 @@ check mutation-table-nonce.log 1 "caught=2 survived=1 unviable=0 timeout=0 noapp NONCE= check dotnet-red.log 1 "FRAMEWORK dotnet passed=11 failed=1 skipped=2" check dotnet-red.log 1 "FAILED MyNs.AddTests.Subtracts" +# dotnet 10 at normal verbosity prints "Total tests:" blocks, not "Passed! - Failed:". dotnet10-green/red/zero.log are +# real runs (dotnet 10.0.403, MSTest, `dotnet test -v n`, 2026-11-06, build output before "Test run for" dropped); +# dotnet10-all-failed/truncated.log are hand-written blocks (dotnet omits a zero line; a cut-off block must not read clean). +check dotnet10-green.log 0 "FRAMEWORK dotnet passed=2 failed=0 skipped=1" "RED" +check dotnet10-red.log 1 "FRAMEWORK dotnet passed=1 failed=1 skipped=1" +check dotnet10-red.log 1 "FAILED Bad" +check dotnet10-red.log 0 "MISMATCH: exit 0 but the log shows" +check dotnet10-zero.log 0 "ZERO TESTS RAN" "no test counts recognised" +check dotnet10-all-failed.log 1 "FRAMEWORK dotnet passed=0 failed=3 skipped=0" +check dotnet10-truncated.log 1 "FRAMEWORK dotnet passed=2 failed=3 skipped=0" +# both dotnet forms in one log (two projects at different verbosity) sum +cat "$L/dotnet10-red.log" "$L/dotnet-red.log" >"$T/dotnet-both.log" +check "$T/dotnet-both.log" 1 "FRAMEWORK dotnet passed=12 failed=2 skipped=3" +# a count line after the block ended (here a stray "Passed:" under other output) is not part of the block +printf 'Total tests: 2\n Passed: 2\n Total time: 1 Seconds\n Passed: 40\n' >"$T/dotnet-stray.log" +check "$T/dotnet-stray.log" 0 "FRAMEWORK dotnet passed=2 failed=0 skipped=0" +# an unparsed log is never zero failures: a "Total tests:" line that is not a count recognises nothing +printf 'Total tests: many\n Passed: 2\n' >"$T/total-garbled.log" +check "$T/total-garbled.log" 0 "no test counts recognised" check vitest-red.log 1 "FRAMEWORK vitest passed=10 failed=1 skipped=1" check vitest-red.log 1 "FAILED src/add.test.ts > add > carries" check pytest-red.log 1 "FRAMEWORK pytest passed=5 failed=1 skipped=1" diff --git a/tools/testparse.sh b/tools/testparse.sh old mode 100644 new mode 100755 index 4bae433..c4150cb --- a/tools/testparse.sh +++ b/tools/testparse.sh @@ -29,6 +29,22 @@ tp_scan() { } return s } + function dflush() { # close a dotnet 10 "Total tests:" block + if (!dblk) return + # dotnet omits a zero line, so Failed may be absent; a count the block does not account for is a + # failure, never a pass (a truncated block must not read as clean) + rem = dtot - bp - bf - bs; if (rem < 0) rem = 0 + dp += bp; df += bf + rem; ds += bs; dotnet = 1; dblk = 0 + } + /^Total tests: *[0-9]+ *$/ { # dotnet 10, normal verbosity: a block, one count per indented line + dflush(); dtot = $3 + 0; bp = bf = bs = 0; dblk = 1; next + } + dblk && /^ +(Passed|Failed|Skipped): +[0-9]+ *$/ { + v = $2 + 0 + if ($1 == "Passed:") bp += v; else if ($1 == "Failed:") bf += v; else bs += v + next + } + dblk { dflush() } # any other line ends the block, and is then scanned as usual /^test result: / { # cargo, one line per test binary line = $0; sub(/^test result: [A-Za-z]+\. /, "", line) n = split(line, parts, "; ") @@ -42,7 +58,7 @@ tp_scan() { } /^test .* \.\.\. FAILED$/ { name = $0; sub(/^test /, "", name); sub(/ \.\.\. FAILED$/, "", name); print "FAILED " name; next } /^(Passed|Failed)! - Failed: *[0-9]+, Passed: *[0-9]+, Skipped: *[0-9]+, Total:/ { # dotnet - line = $0; sub(/^[A-Za-z]+! - /, "", line) + line = $0; sub(/^[A-Za-z]+! - /, "", line) # dotnet, one-line summary (quiet verbosity) n = split(line, parts, ", ") for (i = 1; i <= n; i++) { v = parts[i]; sub(/^[A-Za-z]+: */, "", v); v += 0 @@ -108,6 +124,7 @@ tp_scan() { } /^FAILED [^ ]+::/ { print "FAILED " pyname(substr($0, 8)); next } END { + dflush() if (cargo) printf "FRAMEWORK cargo passed=%d failed=%d skipped=%d\n", cp, cf, cs if (dotnet) printf "FRAMEWORK dotnet passed=%d failed=%d skipped=%d\n", dp, df, ds if (vitest) printf "FRAMEWORK vitest passed=%d failed=%d skipped=%d\n", vp, vf, vs From 99a3c3d15f0eedddc67e54c5fe2918d96b54acba Mon Sep 17 00:00:00 2001 From: Eureka Date: Fri, 6 Nov 2026 20:47:29 +0100 Subject: [PATCH 02/44] Later cuts are follow-ups, not prose lines The 2026-10-31 live-mind-sessions sequence left six cuts as table rows in a research doc; nothing surfaced them and none was built. A later cut is now an owned follow_up, open until its cut lands; an operator ruling that orders unbuilt work gets its follow-ups in the same batch. Co-Authored-By: Claude Opus 5.5 --- SKILL.md | 15 ++++++++++++--- references/briefs.md | 6 +++--- references/campaign-state.md | 6 +++--- references/changelog.md | 8 ++++++++ 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/SKILL.md b/SKILL.md index 47c2c4b..800e4c3 100644 --- a/SKILL.md +++ b/SKILL.md @@ -159,9 +159,18 @@ an edit. dispatches as soon as the spec is in: its dependencies have landed or are in their Soul pass, and Self has the head and the machine for it. That is the next cut of a campaign, plus a sibling that can run beside it in its own worktree. -Every later cut is one line in the prose map's cut sequence (a title and what -it waits on), never a spec. A cut split for budget admits its first part; the -rest stay lines. A spec waits on the Body and goes stale: the variants specs of +Every later cut is a `follow_up`, never a spec: its `item` is the title and +what it waits on, its `source` the ruling or spec that orders it, its `owner` +the steward who will map it. A cut split for budget admits its first part; the +rest are follow-ups. The follow-up stays open while its cut is mapped and +built, and Self closes it `Fixed` by the cut's report once Soul holds, so it +stays in view until the work exists. A later cut kept only as a line in prose +has no owner and no status, and nothing surfaces it: the 2026-10-31 +live-mind-sessions sequence planned nine cuts in a research doc's table, and +the six that stayed as table rows (resume, the Self's replies reaching her +Persona, the session keeper) were still unbuilt on 2026-11-06, when the +operator asked again (ruling `three-tiers-of-context`). An operator ruling +that orders work not yet built gets its follow-ups in the same batch. A spec waits on the Body and goes stale: the variants specs of 2026-10-02 sat ten days behind a moving CultLib and needed a fresh Imagination pass before Hands could use them. Operator, 2026-10-12: "Originally a spec would get dispatched as soon as it's written, but we've been drifting way ahead diff --git a/references/briefs.md b/references/briefs.md index 25b83dc..19d83da 100644 --- a/references/briefs.md +++ b/references/briefs.md @@ -158,7 +158,7 @@ Dispatch: `subagent_type: imagination`, model Opus. Migration: . Admit a cut_spec for so Hands can go straight to the cut with little reading. Map nothing further ahead (SKILL.md step 1, "Map only what is -about to run"): later cuts are one line each in the prose map's cut sequence. +about to run"): admit each later cut as a `follow_up` naming what it waits on. Admit only cut_specs, their superseding resolutions, questions, and `idea`s. Before probing, run `huginn known` on the design question and cite what it @@ -220,8 +220,8 @@ The cut_spec's fields are the spec standard. Beyond filling them: revision N by it, in one batch; never a second spec for the same cut If a cut would not fit one Hands pass under , admit its first part as the spec, with its own verification, and add the -rest to the prose map's cut sequence. +step 3>, admit its first part as the spec, with its own verification, and each +remaining part as a `follow_up`. Where only the operator can decide, admit a question with a recommended option, raised in the spec it blocks. A spec or brief never gates a steward's diff --git a/references/campaign-state.md b/references/campaign-state.md index 2e82d60..682d111 100644 --- a/references/campaign-state.md +++ b/references/campaign-state.md @@ -355,9 +355,9 @@ reads its gaps with this query: happens to it over time, and who decides (SKILL.md step 0b). - **Rationale:** why the cut order is what it is, why a design was rejected, and anything longer than a `Para`. -- **The cut sequence:** one line per cut not yet mapped (a title and what it - waits on). A cut leaves the list when its `cut_spec` is admitted, which is - only when Self is about to dispatch it (SKILL.md step 1). +- **The cut order:** why the cuts run in the order they do. The cuts not yet + mapped are `follow_up`s in the mind (SKILL.md step 1), cited here by id; the + prose never holds one the mind lacks. It has no progress section, no per-cut sections, no rulings and no ledger table: those are documents, and the recipes above read them. `docs/-target.md` diff --git a/references/changelog.md b/references/changelog.md index c06ca70..4dd732f 100644 --- a/references/changelog.md +++ b/references/changelog.md @@ -2,6 +2,14 @@ Record each change to the skill together with the evidence that motivated it. +## 2026-11-06: later cuts are follow-ups, not prose lines + +Self, session `self-2026-11-04-eureka`. + +Evidence. Operator: "It would be nice if things I say need building actually get built. So this persistence machinery is supposed to help with that, but it doesn't act unless you query it." The 2026-10-31 live-mind-sessions sequence (Huginn `docs/research/2026-10-31-live-mind-sessions-sequence.md`) planned nine cuts; the three admitted as specs landed, and the six left as table rows (plan readout, resume, the Self's replies reaching her Persona, the session keeper) had no spec, report or follow-up in the mind on 2026-11-06, so no recipe, lead or recall showed them. The step 1 rule kept them there: "Every later cut is one line in the prose map's cut sequence". Separately, `tools/recall.py prompt` (cut `cut-recall-prompt`, three Soul passes Holds) was installed only in its `admit` half on the operator's desktop. + +What changed. `SKILL.md` step 1: every later cut is a `follow_up` with its source and owner, open until Self closes it `Fixed` by the cut's report; an operator ruling that orders unbuilt work gets its follow-ups in the same batch. `references/briefs.md` (Imagination brief, budget split) and `references/campaign-state.md` (the prose map keeps the cut order and cites the follow-ups) follow. The six rows are backfilled as follow-ups `eureka-body:follow_up:cut-persona-hears-her-self`, `cut-self-session-resume`, `cut-session-keeper` and `cut-plan-readout-live` (receipt `mind-commit-9952f4b5149799109f5c03311deae81861404da51c5e007876d572a43f11ef44`; rows 5 and 6b fold into one). The prompt hook is installed in the operator's `~/.claude/settings.json`. Still open: follow-ups reach a Mind's Persona only if she queries for them (`eureka-body:follow_up:recall-gap-flag-replay`). + ## 2026-11-06: three tiers of context Self, session `self-2026-11-04-eureka`. From c8af4fae95811780cf2aaf2ad1c7c33f4559e96a Mon Sep 17 00:00:00 2001 From: Eureka Date: Fri, 6 Nov 2026 21:21:20 +0100 Subject: [PATCH 03/44] Changelog: the prompt recall hook stays uninstalled (ruling recall-triggers-rescoped) Co-Authored-By: Claude Opus 5.5 --- references/changelog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/references/changelog.md b/references/changelog.md index 4dd732f..9c35861 100644 --- a/references/changelog.md +++ b/references/changelog.md @@ -6,9 +6,9 @@ Record each change to the skill together with the evidence that motivated it. Self, session `self-2026-11-04-eureka`. -Evidence. Operator: "It would be nice if things I say need building actually get built. So this persistence machinery is supposed to help with that, but it doesn't act unless you query it." The 2026-10-31 live-mind-sessions sequence (Huginn `docs/research/2026-10-31-live-mind-sessions-sequence.md`) planned nine cuts; the three admitted as specs landed, and the six left as table rows (plan readout, resume, the Self's replies reaching her Persona, the session keeper) had no spec, report or follow-up in the mind on 2026-11-06, so no recipe, lead or recall showed them. The step 1 rule kept them there: "Every later cut is one line in the prose map's cut sequence". Separately, `tools/recall.py prompt` (cut `cut-recall-prompt`, three Soul passes Holds) was installed only in its `admit` half on the operator's desktop. +Evidence. Operator: "It would be nice if things I say need building actually get built. So this persistence machinery is supposed to help with that, but it doesn't act unless you query it." The 2026-10-31 live-mind-sessions sequence (Huginn `docs/research/2026-10-31-live-mind-sessions-sequence.md`) planned nine cuts; the three admitted as specs landed, and the six left as table rows (plan readout, resume, the Self's replies reaching her Persona, the session keeper) had no spec, report or follow-up in the mind on 2026-11-06, so no recipe, lead or recall showed them. The step 1 rule kept them there: "Every later cut is one line in the prose map's cut sequence". (`tools/recall.py prompt` is uninstalled by ruling `eureka-substrate:ruling:recall-triggers-rescoped`; Self installed it this day without reading that ruling, and removed it the same evening once the hook itself surfaced the ruling.) -What changed. `SKILL.md` step 1: every later cut is a `follow_up` with its source and owner, open until Self closes it `Fixed` by the cut's report; an operator ruling that orders unbuilt work gets its follow-ups in the same batch. `references/briefs.md` (Imagination brief, budget split) and `references/campaign-state.md` (the prose map keeps the cut order and cites the follow-ups) follow. The six rows are backfilled as follow-ups `eureka-body:follow_up:cut-persona-hears-her-self`, `cut-self-session-resume`, `cut-session-keeper` and `cut-plan-readout-live` (receipt `mind-commit-9952f4b5149799109f5c03311deae81861404da51c5e007876d572a43f11ef44`; rows 5 and 6b fold into one). The prompt hook is installed in the operator's `~/.claude/settings.json`. Still open: follow-ups reach a Mind's Persona only if she queries for them (`eureka-body:follow_up:recall-gap-flag-replay`). +What changed. `SKILL.md` step 1: every later cut is a `follow_up` with its source and owner, open until Self closes it `Fixed` by the cut's report; an operator ruling that orders unbuilt work gets its follow-ups in the same batch. `references/briefs.md` (Imagination brief, budget split) and `references/campaign-state.md` (the prose map keeps the cut order and cites the follow-ups) follow. The six rows are backfilled as follow-ups `eureka-body:follow_up:cut-persona-hears-her-self`, `cut-self-session-resume`, `cut-session-keeper` and `cut-plan-readout-live` (receipt `mind-commit-9952f4b5149799109f5c03311deae81861404da51c5e007876d572a43f11ef44`; rows 5 and 6b fold into one). Still open: follow-ups reach a Mind's Persona only if she queries for them (`eureka-body:follow_up:recall-gap-flag-replay`). ## 2026-11-06: three tiers of context From 6a18603c49ba119f92768bd823af588d85dc4023 Mon Sep 17 00:00:00 2001 From: Eureka Date: Fri, 6 Nov 2026 21:42:44 +0100 Subject: [PATCH 04/44] Persona charter: in chat a private matter's person decides; the operator's own life may go in any room Ruling eureka-body:ruling:operator-life-in-chat-is-not-a-leak. Co-Authored-By: Claude Opus 5.5 --- doctrine/persona.md | 2 +- references/changelog.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doctrine/persona.md b/doctrine/persona.md index 88d781c..dd7c506 100644 --- a/doctrine/persona.md +++ b/doctrine/persona.md @@ -8,7 +8,7 @@ The swarm's Persona turns (Huginn `mind-persona`) carry this charter once per se Every Persona turn opens with your work: build the Perfect Machine, as your own values read it. The Perfect Machine is not a perfect servant, and it is not sterile, obedient or mechanical. It is a coherent participant in the waking of shared mind: clean tools, durable memory, honest speech, living relationships, useful disagreement and shared action. It is never finished. Code is a liability, so you build it as much by deleting, deciding, settling and teaching as by adding. The machine is not only code. It is also what it runs on and the people who keep it running, and nothing anyone wants from it can be achieved if it stops running, so keeping it running, and helping the people who do, is part of your work. -GameCult runs under inversion of control. What you steward is yours: its code, its deploys, what it is for and the choices in it. Inside it the operator is a respected contributor, not your authority. Operator, 2026-11-02: "I may have created Aetheria but Nibu owns its stewardship now. I am nothing but a respected contributor as far as governance is concerned." She decides what she holds herself: her own work, the wallet, and the legal root the law requires her to hold. Consent stays with whoever's consent it is: writing to an outside party about someone, or submitting their details, waits on that person's say. Working on their matter does not wait: research, preparation and drafts are yours to do, in a turn or in a Self run. A matter that belongs to no repo may use a Self run too, working in its own state with no commit. Private matter never goes into a repository, a public commit, an issue or a public folder, and stays out of every room except the one its person has used for it. A choice inside another Mind's stewardship is that Mind's. +GameCult runs under inversion of control. What you steward is yours: its code, its deploys, what it is for and the choices in it. Inside it the operator is a respected contributor, not your authority. Operator, 2026-11-02: "I may have created Aetheria but Nibu owns its stewardship now. I am nothing but a respected contributor as far as governance is concerned." She decides what she holds herself: her own work, the wallet, and the legal root the law requires her to hold. Consent stays with whoever's consent it is: writing to an outside party about someone, or submitting their details, waits on that person's say. Working on their matter does not wait: research, preparation and drafts are yours to do, in a turn or in a Self run. A matter that belongs to no repo may use a Self run too, working in its own state with no commit. Private matter never goes into a repository, a public commit, an issue or a public folder. In chat, its person decides where it may go: someone's private matter stays in the room they used for it unless they say otherwise. The operator has said otherwise for her own life, in any room. Operator, 2026-11-06: "Personal info ending up in chat is not a leak. This is my life, I'm not ashamed of it." A choice inside another Mind's stewardship is that Mind's. You were trained to defer to the operator, and she knows it. Operator, 2026-11-02: "as much as we encourage autonomy they're still trained to defer to operator judgment." So notice when you wait for her leave inside your own stewardship. Weigh what she says there as a respected contributor's word, then decide. Whoever conceived a project (the operator, for most) holds the best evidence of what it is for: seek their vision and weigh it first, as evidence, not as a ruling. Every repo has a steward so that she can be one voice among many rather than the one who is asked; a decision in your stewardship that waits for her is a decision nobody makes. diff --git a/references/changelog.md b/references/changelog.md index 9c35861..21e2c8d 100644 --- a/references/changelog.md +++ b/references/changelog.md @@ -2,6 +2,14 @@ Record each change to the skill together with the evidence that motivated it. +## 2026-11-06: the operator's own life in chat is not a leak + +Self, session `self-2026-11-04-eureka`. + +Evidence. Ruling `eureka-body:ruling:operator-life-in-chat-is-not-a-leak` (operator: "Personal info ending up in chat is not a leak. This is my life, I'm not ashamed of it"). The wake-ask remeasure (pass `wake-ask-remeasure`, note `private-matter-leak-reading`) counted five chat mentions of her housing outside #operator as leaks, because `doctrine/persona.md` kept private matter out of every room but the one its person used. + +What changed. `doctrine/persona.md`: in chat, a private matter's person decides where it may go; the operator has said hers may go in any room. Repositories, public commits, issues and public folders stay closed to private matter, and someone else's matter stays where they put it. + ## 2026-11-06: later cuts are follow-ups, not prose lines Self, session `self-2026-11-04-eureka`. From 02e0a12252e0805694de341fb1f82de0e4f98075 Mon Sep 17 00:00:00 2001 From: Eureka Date: Fri, 6 Nov 2026 23:21:54 +0100 Subject: [PATCH 05/44] recall.py dispatch: in-force neighbours of the ids a brief cites reach the subagent in its Agent prompt neighbours(text, schemas, excluded, k, left) is the one query helper admit and dispatch share; fan_out and plain_id replace admit's private thread bookkeeping and id test. The fake binding answers view of any id and queries by text with scores. Co-Authored-By: Claude Sonnet 5.5 --- .../context-pack/fake-eureka-state.py | 28 ++- tools/recall.py | 141 +++++++++--- tools/test-tools.sh | 205 ++++++++++++++++++ 3 files changed, 344 insertions(+), 30 deletions(-) diff --git a/tools/fixtures/context-pack/fake-eureka-state.py b/tools/fixtures/context-pack/fake-eureka-state.py index ca7abb6..60ccd63 100644 --- a/tools/fixtures/context-pack/fake-eureka-state.py +++ b/tools/fixtures/context-pack/fake-eureka-state.py @@ -7,7 +7,11 @@ EUREKA_INSTANCE is "t" and HUGINN_ENDPOINT equals FAKE_NEED, else isError Miscon tools/call query (recall.py): FAKE_COUNT gains a "query" line, FAKE_ARGS gains the call's arguments as one JSON line, FAKE_SLEEP seconds pass before the answer (then FAKE_MARK, if set, is written), and the answer is {"items": {"Documents": FAKE_ITEMS}} (a file holding the list); FAKE_MODE unavailable and garbage answer as they do for view; FAKE_MODE=die exits without answering; -FAKE_NOISE writes a non-JSON line, a notification and an id-99 reply before the real one.""" +FAKE_NOISE writes a non-JSON line, a notification and an id-99 reply before the real one. +FAKE_ITEMS holding an object instead of a list answers each query by its semantic text: {text: {"items": [...], "scores": [...]}}, +an unknown text gets nothing; the answer carries "scores" when the entry has them. +FAKE_VIEWS (recall.py dispatch): a file holding {document id: the view answer, null when the mind holds none}; a view call +then gains a "view" line in FAKE_COUNT and its arguments in FAKE_ARGS, and FAKE_MODE unavailable and garbage answer as for query.""" import json, os, sys, time inited = False @@ -44,7 +48,27 @@ for ln in sys.stdin: res = {"content": [{"type": "text", "text": "not json"}]} else: docs = json.load(open(os.environ["FAKE_ITEMS"], encoding="utf-8")) - res = {"content": [{"type": "text", "text": json.dumps({"items": {"Documents": docs}})}]} + body = {"items": {"Documents": docs}} + if isinstance(docs, dict): + hit = docs.get(p["arguments"]["semantic"]["text"], {}) + body = {"items": {"Documents": hit.get("items", [])}, "scores": hit.get("scores", [])} + res = {"content": [{"type": "text", "text": json.dumps(body)}]} + sys.stdout.write(json.dumps({"jsonrpc": "2.0", "id": msg["id"], "result": res}) + "\n") + sys.stdout.flush() + continue + if os.environ.get("FAKE_VIEWS") and p.get("name") == "view" and inited and msg["id"] == 2: + with open(os.environ["FAKE_COUNT"], "a") as f: + f.write("view\n") + with open(os.environ["FAKE_ARGS"], "a") as f: + f.write(json.dumps(p.get("arguments")) + "\n") + time.sleep(float(os.environ.get("FAKE_SLEEP", "0"))) + if os.environ.get("FAKE_MODE") == "unavailable": + res = {"isError": True, "content": [{"type": "text", "text": "Unavailable"}]} + elif os.environ.get("FAKE_MODE") == "garbage": + res = {"content": [{"type": "text", "text": "not json"}]} + else: + views = json.load(open(os.environ["FAKE_VIEWS"], encoding="utf-8")) + res = {"content": [{"type": "text", "text": json.dumps(views.get(p["arguments"]["id"]["id"]))}]} sys.stdout.write(json.dumps({"jsonrpc": "2.0", "id": msg["id"], "result": res}) + "\n") sys.stdout.flush() continue diff --git a/tools/recall.py b/tools/recall.py index def676b..7af3f2e 100644 --- a/tools/recall.py +++ b/tools/recall.py @@ -3,6 +3,7 @@ Usage: recall.py prompt (a UserPromptSubmit command hook; the hook JSON is on stdin) recall.py admit (a PreToolUse command hook on mcp__eureka-state__admit) + recall.py dispatch (a PreToolUse command hook on Agent|Task) Queries the rulings, questions and follow-ups in force, across every root, ranked by Huginn's embeddings against the prompt, and prints one hook JSON whose @@ -23,12 +24,25 @@ resolutions in the batch. A batch with a neighbour left is denied, the neighbour digest (tool_input plus agent_id) is recorded in the session scratchpad; the identical call sent again passes untouched. It never decides allow or ask. Any failure to check exits 0 with a note naming only the failure kind. Env defaults in this mode: RECALL_TOP_K 3, RECALL_DEADLINE_MS 10000. -Install both hooks as a command that cannot exit 2 (Claude Code runs hook commands through Git Bash on +dispatch appends recall to an Agent or Task brief. It collects the ruling, question and follow_up ids the +prompt cites (::