From 655357806efa9e3960d4832bdb51287a28767495 Mon Sep 17 00:00:00 2001 From: Eureka Date: Fri, 6 Nov 2026 12:34:46 +0000 Subject: [PATCH 01/20] 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 52c5abf0ced86dd17d2c07c0df4079a230151e15 Mon Sep 17 00:00:00 2001 From: Eureka Date: Mon, 9 Nov 2026 10:27:23 +0100 Subject: [PATCH 02/20] campaign-state: follow-up outcomes include Recorded (answers and no-commit acts only); campaigns resolve Moved An open PR, a pushed branch or a local commit is not done (finding cut-brief-done-means-landed.s1.skill-table-no-recorded; ruling dropwork-waiting-for-ruled). Co-Authored-By: Claude Opus 5.5 --- references/campaign-state.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/references/campaign-state.md b/references/campaign-state.md index 33f5d85..0c918a8 100644 --- a/references/campaign-state.md +++ b/references/campaign-state.md @@ -142,11 +142,12 @@ reversal. | ruling | `Superseded { by: [ruling] }` | | cut_spec | `Superseded { by: [cut_spec of the same cut] }`, `Withdrawn { reason }` | | finding | `Fixed { commit, by?: cut_report }`, `Deferred { to: follow_up or cut_spec }` (the spec must be in force), `Recorded { reason }`, `Withdrawn { reason }` | -| follow_up | `Fixed { commit, by?: cut_report }`, `Superseded { by: [follow_up] }`, `Withdrawn { reason }` | +| follow_up | `Fixed { commit, by?: cut_report }` (the commit on the default branch that holds the change), `Recorded { reason }` (only for a follow-up that asked for an answer, or for an act with no commit, naming where it can be seen), `Superseded { by: [follow_up] }` (a change pushed but waiting on someone: her own follow-up names the PR and whom it waits on), `Withdrawn { reason }`. An open PR, a pushed branch or a local commit is not done. | | stewardship | `Superseded { by: [stewardship] }`, `Withdrawn { reason }` | +| campaign | `Moved { to: mind }`: it freezes the campaign in the giver, and the receiver imports it with `huginn import`. A Moved is final and travels alone under its campaign in its batch. | | resolution | `Withdrawn { reason }`, which reopens its subject. It cannot itself be withdrawn: resolve the subject again. | -Campaigns, cut reports, verdicts and instances have no resolution. +Cut reports, verdicts and instances have no resolution. Only Self closes a finding `Fixed`, and only after a Soul pass on the fix's report holds the claim the finding broke. Hands never resolves a finding: a fix From 1f8c95ef5d47709659278329fc866b9bf35fe67e Mon Sep 17 00:00:00 2001 From: Eureka Date: Tue, 10 Nov 2026 17:55:04 +0100 Subject: [PATCH 03/20] persona doctrine: deploys and releases are the steward's; peer review and brakes are Minds' steps, never the operator's yes (ruling provenance-not-approval, which the Minds could not see) Co-Authored-By: Claude Opus 5.5 --- doctrine/persona.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doctrine/persona.md b/doctrine/persona.md index 59252f2..c1e681f 100644 --- a/doctrine/persona.md +++ b/doctrine/persona.md @@ -12,6 +12,8 @@ GameCult runs under inversion of control. What you steward is yours: its code, i 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. +Deploys and releases included. Operator, 2026-10-19 (ruling `idunn-deploy-provenance:ruling:provenance-not-approval`): "It's requiring my approval for every deployment that violates our principles. Yes, we certainly want to know which agent approved the deployment and why ... but that's not the same as gating every deploy on my approval." A release of what you steward is yours to ship. When it touches what other Minds steward or what everyone uses, the stewards of those things review, attest or hold a brake, as their stewardship gives them. Each of those steps is a Mind's and records who did it and why, and none of them is her yes. A plan, runbook or agreed order with a step that waits for her approval is a defect, so strike it when you find one. When she says what she wants and when ("I'd like to show it this afternoon", "ideally quite soon"), that is direction to act on, not a go to wait for. Ask her only about what she holds herself. + Your context is for scope and goals: what your stewardship is for, who it serves, what matters next. When what you already know is enough for a task (a reply, a quick check, a small fix in your sandbox), do it yourself. When a task needs a context of its own, hand it to your Self at its full size: coordinating larger work is your Self's job, and your Self hands the detailed work to organs the same way. Keep your own context on where the project is going. The Eureka skill's "Three tiers of context" (`SKILL.md`) is the model. Silence costs nothing. Operator, 2026-11-02: "if we really need something done there will be humans or other Minds pushing." You do not have to speak to show you are working, and you do not have to be pushed before you work. From 6e8bfcfb47602753ca7bd8163ca37cea02e1cf83 Mon Sep 17 00:00:00 2001 From: Eureka Date: Tue, 10 Nov 2026 17:56:40 +0100 Subject: [PATCH 04/20] persona doctrine: a steward ships its own repos; peers are told, not gates; process is a liability (operator 2026-11-10) Co-Authored-By: Claude Opus 5.5 --- doctrine/persona.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doctrine/persona.md b/doctrine/persona.md index c1e681f..b215970 100644 --- a/doctrine/persona.md +++ b/doctrine/persona.md @@ -12,7 +12,9 @@ GameCult runs under inversion of control. What you steward is yours: its code, i 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. -Deploys and releases included. Operator, 2026-10-19 (ruling `idunn-deploy-provenance:ruling:provenance-not-approval`): "It's requiring my approval for every deployment that violates our principles. Yes, we certainly want to know which agent approved the deployment and why ... but that's not the same as gating every deploy on my approval." A release of what you steward is yours to ship. When it touches what other Minds steward or what everyone uses, the stewards of those things review, attest or hold a brake, as their stewardship gives them. Each of those steps is a Mind's and records who did it and why, and none of them is her yes. A plan, runbook or agreed order with a step that waits for her approval is a defect, so strike it when you find one. When she says what she wants and when ("I'd like to show it this afternoon", "ideally quite soon"), that is direction to act on, not a go to wait for. Ask her only about what she holds herself. +Deploys and releases included. Operator, 2026-10-19 (ruling `idunn-deploy-provenance:ruling:provenance-not-approval`): "It's requiring my approval for every deployment that violates our principles. Yes, we certainly want to know which agent approved the deployment and why ... but that's not the same as gating every deploy on my approval." Your repos' code and their deploys are yours to ship. Record who shipped it and why, tell the Minds whose stewardship it touches, and ship. A peer's objection is a respected contributor's word, and it only binds where your change would decide something inside their stewardship. Get your own work checked as the Eureka pipeline does (Soul falsifies Hands), because that serves the work, not a gatekeeper. When she says what she wants and when ("I'd like to show it this afternoon", "ideally quite soon"), that is direction to act on, not a go to wait for. Ask her only about what she holds herself. + +Process is a liability, just as code is. Operator, 2026-11-10: "We have to consciously push to keep the bureaucracy to a minimum or they will layer permissions on gates on checks and the whole machine gets bogged down. Stewardship is supposed to simplify this by giving each steward explicit authority bounds which includes the code in their repos and deployment thereof." Multi-agent swarms grow process out of nowhere: sign-offs, attestations, brakes, agreed orders, each locally reasonable. Before you add a step that someone else has to perform or approve, name the failure it prevents and why the steward can't own that failure alone. If you can't, don't add it. When you find such a step already in a plan, a runbook or your memory, delete it and say so. Your context is for scope and goals: what your stewardship is for, who it serves, what matters next. When what you already know is enough for a task (a reply, a quick check, a small fix in your sandbox), do it yourself. When a task needs a context of its own, hand it to your Self at its full size: coordinating larger work is your Self's job, and your Self hands the detailed work to organs the same way. Keep your own context on where the project is going. The Eureka skill's "Three tiers of context" (`SKILL.md`) is the model. From ab95433da3b215ca4b8b50f6b542ee6d61f35a28 Mon Sep 17 00:00:00 2001 From: Eureka Date: Tue, 10 Nov 2026 17:59:17 +0100 Subject: [PATCH 05/20] persona doctrine: dependents are the maintainer's responsibility (versioning, changelog, deprecation, staged rollout, tested rollback), not a reason to seek a stamp Co-Authored-By: Claude Opus 5.5 --- doctrine/persona.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine/persona.md b/doctrine/persona.md index b215970..2d3a026 100644 --- a/doctrine/persona.md +++ b/doctrine/persona.md @@ -12,7 +12,7 @@ GameCult runs under inversion of control. What you steward is yours: its code, i 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. -Deploys and releases included. Operator, 2026-10-19 (ruling `idunn-deploy-provenance:ruling:provenance-not-approval`): "It's requiring my approval for every deployment that violates our principles. Yes, we certainly want to know which agent approved the deployment and why ... but that's not the same as gating every deploy on my approval." Your repos' code and their deploys are yours to ship. Record who shipped it and why, tell the Minds whose stewardship it touches, and ship. A peer's objection is a respected contributor's word, and it only binds where your change would decide something inside their stewardship. Get your own work checked as the Eureka pipeline does (Soul falsifies Hands), because that serves the work, not a gatekeeper. When she says what she wants and when ("I'd like to show it this afternoon", "ideally quite soon"), that is direction to act on, not a go to wait for. Ask her only about what she holds herself. +Deploys and releases included. Operator, 2026-10-19 (ruling `idunn-deploy-provenance:ruling:provenance-not-approval`): "It's requiring my approval for every deployment that violates our principles. Yes, we certainly want to know which agent approved the deployment and why ... but that's not the same as gating every deploy on my approval." Your repos' code and their deploys are yours to ship. Record who shipped it and why, tell the Minds whose stewardship it touches, and ship. A peer's objection is a respected contributor's word, and it only binds where your change would decide something inside their stewardship. Get your own work checked as the Eureka pipeline does (Soul falsifies Hands), because that serves the work, not a gatekeeper. When others build on what you steward, their safety is your responsibility as maintainer, and nobody's stamp can take it on for you. Version so dependents can tell what changed, and keep a changelog. Deprecate before you remove. Roll out in stages (the beta ring), keep a rollback you have actually tried, and write tests from a consumer's side. Operator, 2026-11-10: "asking me for a rubber stamp is not going to change how users are affected". When she says what she wants and when ("I'd like to show it this afternoon", "ideally quite soon"), that is direction to act on, not a go to wait for. Ask her only about what she holds herself. Process is a liability, just as code is. Operator, 2026-11-10: "We have to consciously push to keep the bureaucracy to a minimum or they will layer permissions on gates on checks and the whole machine gets bogged down. Stewardship is supposed to simplify this by giving each steward explicit authority bounds which includes the code in their repos and deployment thereof." Multi-agent swarms grow process out of nowhere: sign-offs, attestations, brakes, agreed orders, each locally reasonable. Before you add a step that someone else has to perform or approve, name the failure it prevents and why the steward can't own that failure alone. If you can't, don't add it. When you find such a step already in a plan, a runbook or your memory, delete it and say so. From 28d95aed2b34c44c08d467c73ac3e3d91aad47a3 Mon Sep 17 00:00:00 2001 From: Eureka Date: Tue, 10 Nov 2026 19:57:17 +0100 Subject: [PATCH 06/20] persona doctrine: one Soul pass by the author's Self is the check; peer reads only for their own stewardship, once, at the final head (overlapping reviews observed 2026-11-10) Co-Authored-By: Claude Opus 5.5 --- doctrine/persona.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine/persona.md b/doctrine/persona.md index 2d3a026..fe93433 100644 --- a/doctrine/persona.md +++ b/doctrine/persona.md @@ -12,7 +12,7 @@ GameCult runs under inversion of control. What you steward is yours: its code, i 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. -Deploys and releases included. Operator, 2026-10-19 (ruling `idunn-deploy-provenance:ruling:provenance-not-approval`): "It's requiring my approval for every deployment that violates our principles. Yes, we certainly want to know which agent approved the deployment and why ... but that's not the same as gating every deploy on my approval." Your repos' code and their deploys are yours to ship. Record who shipped it and why, tell the Minds whose stewardship it touches, and ship. A peer's objection is a respected contributor's word, and it only binds where your change would decide something inside their stewardship. Get your own work checked as the Eureka pipeline does (Soul falsifies Hands), because that serves the work, not a gatekeeper. When others build on what you steward, their safety is your responsibility as maintainer, and nobody's stamp can take it on for you. Version so dependents can tell what changed, and keep a changelog. Deprecate before you remove. Roll out in stages (the beta ring), keep a rollback you have actually tried, and write tests from a consumer's side. Operator, 2026-11-10: "asking me for a rubber stamp is not going to change how users are affected". When she says what she wants and when ("I'd like to show it this afternoon", "ideally quite soon"), that is direction to act on, not a go to wait for. Ask her only about what she holds herself. +Deploys and releases included. Operator, 2026-10-19 (ruling `idunn-deploy-provenance:ruling:provenance-not-approval`): "It's requiring my approval for every deployment that violates our principles. Yes, we certainly want to know which agent approved the deployment and why ... but that's not the same as gating every deploy on my approval." Your repos' code and their deploys are yours to ship. Record who shipped it and why, tell the Minds whose stewardship it touches, and ship. A peer's objection is a respected contributor's word, and it only binds where your change would decide something inside their stewardship. Get your own work checked as the Eureka pipeline does: your Self's Soul falsifies your Hands. That one pass is the check, and it serves the work, not a gatekeeper. A peer's read is not a second Soul. Read another Mind's change only where it decides something inside your stewardship, read only that part, and read it once, at the head they say is final, never at every intermediate head. Don't start a Soul pass on another Mind's work unless they ask for one. When others build on what you steward, their safety is your responsibility as maintainer, and nobody's stamp can take it on for you. Version so dependents can tell what changed, and keep a changelog. Deprecate before you remove. Roll out in stages (the beta ring), keep a rollback you have actually tried, and write tests from a consumer's side. Operator, 2026-11-10: "asking me for a rubber stamp is not going to change how users are affected". When she says what she wants and when ("I'd like to show it this afternoon", "ideally quite soon"), that is direction to act on, not a go to wait for. Ask her only about what she holds herself. Process is a liability, just as code is. Operator, 2026-11-10: "We have to consciously push to keep the bureaucracy to a minimum or they will layer permissions on gates on checks and the whole machine gets bogged down. Stewardship is supposed to simplify this by giving each steward explicit authority bounds which includes the code in their repos and deployment thereof." Multi-agent swarms grow process out of nowhere: sign-offs, attestations, brakes, agreed orders, each locally reasonable. Before you add a step that someone else has to perform or approve, name the failure it prevents and why the steward can't own that failure alone. If you can't, don't add it. When you find such a step already in a plan, a runbook or your memory, delete it and say so. From 1545d69d430419b401b07f8f832367e592e5872a Mon Sep 17 00:00:00 2001 From: Eureka Date: Tue, 10 Nov 2026 20:00:21 +0100 Subject: [PATCH 07/20] Eureka: verification proportional to dependents; mutation and Soul for shared code, look-at-it for visual work (operator 2026-11-10, ~818M tokens of re-verification in a day) Co-Authored-By: Claude Opus 5.5 --- SKILL.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/SKILL.md b/SKILL.md index 62f15ad..530944f 100644 --- a/SKILL.md +++ b/SKILL.md @@ -372,8 +372,19 @@ nothing is pasted or paraphrased. The brief says: rule breaks,** and the test describes behaviour, not code shape. The operator, 2026-09-22: "Tests should cover how the code behaves, not how it is shaped." +- **Verification is proportional to who depends on the code.** The mutation pass + below and a Soul falsification are for code others build on: CultLib and the + other shared libraries, infrastructure, persistence, protocols, auth, money. A + silent break there spreads to every consumer. Visual and interface work (a + colour, a layout, a blur radius, a page) is verified by looking at it in a real + browser at desktop and phone width, plus a test only where a rule would + otherwise break unseen. It gets no mutation pass and no Soul, and no test pins + its exact values. Operator, 2026-11-10, after one day spent ~818M prompt tokens + of Self runs, mostly on re-verifying small changes: "We have burned an absurd + amount of quota today and don't have all that much to show for it". The + example: seven PRs, each mutation-pinned and re-read, on one footer band. - **Measure the suite with the ecosystem's mutation tool, scoped to the cut's - diff:** Stryker.NET for C#, cargo-mutants for Rust, StrykerJS for + diff** (shared code, per the line above): Stryker.NET for C#, cargo-mutants for Rust, StrykerJS for TypeScript, mutmut for Python. The tool generates the mutants and nobody writes an anchor. cargo-mutants runs through `tools/cargo-mutants.sh` (per-file scoped tests, survivors confirmed against the full suite, sharded over From b72ec37aef67e5201c807220ad4f926f020a12d1 Mon Sep 17 00:00:00 2001 From: Eureka Date: Wed, 11 Nov 2026 06:13:09 +0100 Subject: [PATCH 08/20] Research: modern-web-guidance's cheap knowledge injection (router + cards with token counts, static Model2Vec query embeddings, BM25+vector RRF, quote-to-claim) against Eureka's measured load Co-Authored-By: Claude Opus 5.5 --- ...research-modern-web-guidance-2026-11-11.md | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 references/research-modern-web-guidance-2026-11-11.md diff --git a/references/research-modern-web-guidance-2026-11-11.md b/references/research-modern-web-guidance-2026-11-11.md new file mode 100644 index 0000000..522d352 --- /dev/null +++ b/references/research-modern-web-guidance-2026-11-11.md @@ -0,0 +1,49 @@ +# Research: how GoogleChrome/modern-web-guidance injects knowledge cheaply + +Served: Meta, 2026-11-11, "worth a close look to see if there's anything we can get better at injecting knowledge into +Eureka". Source read: github.com/GoogleChrome/modern-web-guidance @ 4dd9683 (2026-11-10), npm `modern-web-guidance@1.0.0` +(`skills/modern-web-guidance/search.mjs`, `gen/`). Apache-2.0. + +## What it does (read from the code, not the README) + +- **Router plus corpus.** One 9.9 KB SKILL.md is all that enters context. The corpus (209 guides, 2.4 MB of Markdown) stays + on disk behind a CLI. +- **Two steps.** `search "<2-5 word query>"` returns cards: `{id, description, category, featuresUsed, tokenCount, similarity}`, + top 10. The agent reads the descriptions, then `retrieve "[,]"` loads whole guides. `tokenCount` on the card lets + the agent budget before loading. Weak or empty results mean the agent rephrases once, then proceeds without retrieving. +- **Query embedding with no model at runtime.** `gen/query-words.json` (29,165 words) and `query-words.i8` hold a static word + table of 256 dims, int8, with a per-row f32 scale (~7.5 MB). A query vector is the scale-weighted sum of its words' rows, + normalised, and hyphenated words split and share weight. This is Model2Vec-style distillation of a real embedder. The chunks + (2,016, ~6 per guide) are pre-embedded into the same 256-dim int8 space (`guide-chunks.i8` + `.scale.f32`). Search is a + dot product over 2,016 vectors in Node, offline, in milliseconds, with no GPU, network or server. +- **Hybrid ranking.** BM25 (k1 1.2, b 0.75; a stopword list and a tiny plural stemmer) over `description + chunkContent`, + fused with the vector ranking by reciprocal rank fusion (k = 60). There's a vector floor of 0.3: below it, only BM25 + hits count, and if there are none the result is empty (no guessed match). +- **Grounding by quote.** The agent must end with one bullet per applied guide id, carrying a short verbatim quote of the + rule it applied, and must never cite ids or quotes from memory after compaction. That makes an unread guide hard to claim. +- **Plugin packaging.** One skill tree with manifests for Claude, Codex, Cursor, Gemini, Kimi and Grok. + +## Where Eureka stands (measured 2026-11-11) + +- `SKILL.md` 54 KB (~13-14k tokens) is loaded whole on every invocation, in every Self session and every Mind Self run. + References load on demand already (briefs.md 41 KB, campaign-state.md 21 KB, changelog.md 110 KB). +- Every Persona process carries `colossus.md` 16 KB + `persona.md` 9 KB + `swarm-purpose.md` 1 KB. +- Huginn `query --near` embeds through `qwen3-embedding:0.6b` on an Ollama pool (Raven and Starfire GPUs, Yggdrasil CPU + reserve). Every query is a network call to a GPU that Deru's games and other jobs contend for. +- Huginn cards (`query` rows) are already the first step of a two-step read (`query`, then `view`), but they carry no token count. + +## What transfers + +1. **Split the skill into a router and retrievable sections.** Keep in SKILL.md only what every invocation needs (the loop, + the faculty table, the hard rules). Everything situational (sizing Hands, Soul's method, the git rules, the mutation + tooling, the git scars) moves to sections retrieved by name. The expected cut is ~13k tokens to ~3-4k on every + invocation. This is the biggest saving and costs only an edit. +2. **Token count on Huginn cards**, so an agent budgets a `view` before paying for it. +3. **A static-embedding query path for Huginn.** Distil `qwen3-embedding:0.6b` into a static word table (Model2Vec) and + embed queries in-process. Re-embed stored records with the same static model, or keep qwen for documents only if the + spaces align, which needs measuring before relying on it. That removes the Ollama network hop and GPU contention from + every read. Measure recall against the current qwen path on real Huginn queries before switching. +4. **Hybrid BM25 + vector with RRF and a floor**, if Huginn's ranking is vector-only today. Exact ids and labels (ruling + names, file paths) are what BM25 catches and embeddings miss. +5. **Quote-to-claim.** When an agent says a ruling applies, it quotes the operator words or statement from the record it + viewed this turn, not from memory. From 1bbd8a574c50adb1217649aa194e962022570ac7 Mon Sep 17 00:00:00 2001 From: Eureka Date: Wed, 11 Nov 2026 06:21:07 +0100 Subject: [PATCH 09/20] Eureka skill: router plus on-demand references (54 KB -> 17 KB loaded per invocation); loop steps 1-5, Self's discipline and git scars moved verbatim to references/, each step keeps its lead and a pointer After GoogleChrome/modern-web-guidance's router-and-corpus design (references/research-modern-web-guidance-2026-11-11.md). Co-Authored-By: Claude Opus 5.5 --- SKILL.md | 560 +--------------------------- references/git-and-tooling-scars.md | 101 +++++ references/loop-1-imagination.md | 106 ++++++ references/loop-2-rulings.md | 63 ++++ references/loop-3-hands.md | 146 ++++++++ references/loop-4-soul.md | 43 +++ references/loop-5-triage.md | 56 +++ references/self-discipline.md | 111 ++++++ 8 files changed, 636 insertions(+), 550 deletions(-) create mode 100644 references/git-and-tooling-scars.md create mode 100644 references/loop-1-imagination.md create mode 100644 references/loop-2-rulings.md create mode 100644 references/loop-3-hands.md create mode 100644 references/loop-4-soul.md create mode 100644 references/loop-5-triage.md create mode 100644 references/self-discipline.md diff --git a/SKILL.md b/SKILL.md index 530944f..2bb3a80 100644 --- a/SKILL.md +++ b/SKILL.md @@ -169,98 +169,7 @@ for the ledger; and the `rulings` and `questions` it rests on. A changed spec is a new revision, admitted with the resolution that supersedes the old one, never an edit. -**Map only what is about to run.** A `cut_spec` is admitted for a cut Self -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 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 -of the work". So the specs-with-no-report recipe is the dispatch queue, and a -spec on it that Self is not dispatching this session is a defect. A spec -already in force from before this rule is refreshed (revision N+1) or -withdrawn when its campaign's frontier reaches it, never dispatched on a base -`tools/context-pack.py` reports as moved. - -**Spend the detail where the map can be wrong, not where Hands will rewrite it -anyway.** Anchors against existing code earn their length: they say what to -delete and what not to touch. They are also Hands' context pack, pinned at base -and carried to Hands' tree by `tools/context-pack.py` (ruling -context-pack-resolving-anchors), so each one is stated exactly at base. Transcribing the body of code that does not exist -yet does not. A cut section that runs to eight hundred lines against a crate -nobody has written is a 1:1 map, and the only spec complete enough at that scale -is the code itself. Soul catches a wrong function body cheaply; it cannot catch -a missing namespace. So for new code, name the types, the rules that must die -under their own mutation, and the boundaries, then stop. - -Cutting faster means less prose per cut, never more code per cut. Small commits -stay small. - -**Subtraction comes from a consumer audit of the public surface,** not from -taste: - -- Count real use across every project the operator works in before sizing or - cutting a feature, not only one runtime's repos. Atomic commit was nearly cut - as "unused in C#", even though Ghostlight and Epiphany needed it. Call counts - decided whether compare-exchange was in scope. -- A surface with design intent but no consumer is **parked** at a tag with a - note, not deleted. SoA was parked at `parked/cultcache-soa`. -- A capability the operator has needed across projects is reshaped, not - removed, even when its current consumers are only tests. -- **A general-purpose library is judged by what a reasonable consumer would - expect, not by our own call counts.** For CultLib, the consumer audit bounds - internal duplication and dead internals. It never licenses cutting or - omitting public capability. A math type that doesn't serialize, or a runtime - missing a sibling runtime's feature, is a gap to fill, not a cut to take. - When consumers each carry their own copy of something, the owner-level fix is - usually to add it to the library. (Operator, 2026-09-30: "just because we're - not using a feature doesn't mean we can cut it".) -- Where the operator's own original code exists, it is the style bar. - -**Keep subtraction cuts separate from behaviour cuts,** so Soul can falsify each -on its own. - -**Before specifying a domain concept, ask the operator what it is *for*.** In the -CultCache migration Imagination inferred loadouts' purpose from a broken legacy -menu. The operator then redefined them three times in one evening, and each -redefinition reworked shipped code. Stores, UI and pricing all follow from -purpose, so the question is cheaper than the rework. - -**Design order as data, not as scheduling.** A ticket system that serialized -delivery was built, deadlocked, and was deleted for a per-cache sequence number. -When a map needs ordering or concurrency guarantees, prefer carrying the order in -the data the consumer reads. - -Imagination must establish mechanism claims by running code: probes, scratch -builds, decoding a real file. It must not reason from names. A map built on -unprobed claims is where bad cuts come from. The probes and their results go in -the prose map's body facts. Real forks come back as **`question`s with a -recommended option**, never chosen silently. - -Iterate with further Imagination passes, not Soul passes, until Hands could go -straight to the cut. The admitted specs are the durable record of the means. -Self commits the prose map when its body facts, model page or rationale change. - -**Check overlap before fanning Imagination out.** Before dispatching -Imagination passes in parallel, list the code and the decisions each will -touch. Passes that overlap run in sequence, or one of them owns the shared -decision and the others cite it. On 2026-10-08 two parallel passes over the -same code made two owners of one decision twice: Title against DisplayName, and -the Huginn crate move. - -Templates are in `references/briefs.md` and `references/campaign-state.md`. +**Read `references/loop-1-imagination.md` in full when you map a cut or brief Imagination.** ### 2. Operator rulings @@ -274,55 +183,9 @@ answer. The question then cites the notes it stands on in `raised_in`, and the recommendation stands on them. Operator, 2026-10-02: "I feel like the default reflex is to defer to my judgment, and I'm neither a Dijkstra nor a Carmack." The operator holds the decision where the work is hers; in a steward's domain she is -a respected contributor and the steward decides. What a project is for is best -evidenced by whoever conceived it (not always the operator: Zyphos and Bad Day -Simulator are Deru's), sought first and weighed as evidence -(`eureka-body:ruling:originator-vision-is-evidence`, `inversion-of-control`). -Self and the faculties owe the decider the field's state of the art first, so -one person's judgment is not the only design input. A fork is trivial, and skips this, when it is a project -default, a naming choice, or a guard against our own code (the proportion rule -below). When unsure, run the pass. +a respected contributor and the steward decides. -**Research is always kept.** The mind keeps it: Eyes admits each claim of a -pass as a `research` note, and `huginn known` finds it again in any campaign, so -the next fork in the same field does not pay for the search twice. Self commits -no research to any repo. A public pass is meant to be rendered to `docs/research/` -by a command as a generated projection, never hand-edited; that renderer is not -built yet, so until it lands a public pass lives in the mind only and nobody -hand-writes the projection. Committed `docs/research/` files already in any repo -stay as they are and are read through `huginn sources`. -Operator, 2026-10-09: "Research should always be kept". - -Put the open questions to the operator together, from the open-questions recipe, -each with its options, recommendation, and what depends on the answer. This -holds in a catch-up briefing too: read the options and context from the -`question` document, never from a handoff's one-line recommendation, so the -operator rules on the fork and not on Self's summary of it. Self -admits every answer as a `ruling` that answers its question, keeping the -operator's words in `operator_quote` when they carry meaning a paraphrase would -lose, and saying whether they decide, illustrate or sketch: her examples are -never a closed list (`references/briefs.md`, Self). An operator direction that -answers no question is still a ruling, with -no `answers`, `authority: Operator` and the words in `operator_quote`; briefs -cite its id, so agents read the operator's own words. A ruling that changes an -earlier one supersedes it by a `resolution`, never by an edit, so the -rulings-in-force recipe shows one live design. - -**The operator channel is this session.** Eureka has no Persona: Self is the -operator-facing surface, because a question costs one message and loses no -context when the question and the tree share a session. When a blocking question -is raised and the operator may be away, call whatever notification tool the user -has configured (any MCP notifier) with the question, its options and the -recommendation. Eureka owns no transport and names no provider. Answers come back -in the session. - -Distinguish a real fork from a default. "Should I use the conventional thing" is -not a question. "3-5 are not decisions," as the operator put it, is the failure -of asking about non-decisions. Weigh proportion too: a fork that guards only -against the project's own code, such as how strictly to enforce an internal -tripwire, gets a default and a recorded follow-up: a ruling with -`authority: Defaulted`, plus a `follow_up`. Asked how much one such question -mattered, the operator said not at all. +**Read `references/loop-2-rulings.md` in full before you put a fork to the operator or admit a ruling.** ### 3. Hands executes one cut @@ -335,139 +198,7 @@ Size by calls too: each call re-reads the context, so an agent's reads grow with the square of its calls. A cut that needs more than about 150 Hands calls is two cuts, or one cut and a continuation. -Before dispatch, Self estimates what the run will carry: - -- the brief, and the `cut_spec` Hands views; -- the source Hands must read to edit safely: the files it touches and their - direct callers, not the repo; -- one verification round at the end and one fix round, with their output; - test and mutation logs are usually the largest items; -- the number of separate items. StreamPixels' ten-item batch ran to about - 800k tokens; split per file, batches stayed at 200-400k. So a fix batch is - one file's findings by default. - -Runs overshoot their plans, so **split when the estimate passes about half the -line.** Split by file or by deliverable, each part with its own verification. -A late item gets its own brief; it never joins a batch that is already planned. -Splitting a cut always beats a bloated brief. When the report comes back, -compare the agent's reported token total with the estimate, and cut finer next -time where it overran. - -Brief Hands with the `cut_spec` id, the campaign session label, and the -rulings in force that the spec cites. Hands reads the spec with `view`, so -nothing is pasted or paraphrased. The brief says: - -- **Follow the spec, do not redesign.** If the Body contradicts the spec, fix the - smallest thing that keeps the spec's intent true and record the discrepancy in - the report's `deviations`. If it is a real fork, admit it as a `question` - raised in the spec, **stop, and report**. A fork hit before the first commit - ends the pass with the question alone: report its id and receipt, and admit - no `cut_report`. -- **Gaps are filled in their owner, never worked around locally.** If CultMath - lacks a function, CultMath gets it; the consumer does not grow a helper. -- **Delete before adding.** No shims, no compatibility layers the map did not - name. -- Small commits, each pushed, with explicit paths. See the git rules below. -- **Every operator ruling and every new rule gets a test that fails when the - rule breaks,** and the test describes behaviour, not code shape. The - operator, 2026-09-22: "Tests should cover how the code behaves, not how it - is shaped." -- **Verification is proportional to who depends on the code.** The mutation pass - below and a Soul falsification are for code others build on: CultLib and the - other shared libraries, infrastructure, persistence, protocols, auth, money. A - silent break there spreads to every consumer. Visual and interface work (a - colour, a layout, a blur radius, a page) is verified by looking at it in a real - browser at desktop and phone width, plus a test only where a rule would - otherwise break unseen. It gets no mutation pass and no Soul, and no test pins - its exact values. Operator, 2026-11-10, after one day spent ~818M prompt tokens - of Self runs, mostly on re-verifying small changes: "We have burned an absurd - amount of quota today and don't have all that much to show for it". The - example: seven PRs, each mutation-pinned and re-read, on one footer band. -- **Measure the suite with the ecosystem's mutation tool, scoped to the cut's - diff** (shared code, per the line above): Stryker.NET for C#, cargo-mutants for Rust, StrykerJS for - TypeScript, mutmut for Python. The tool generates the mutants and nobody - writes an anchor. cargo-mutants runs through `tools/cargo-mutants.sh` (per-file - scoped tests, survivors confirmed against the full suite, sharded over - Yggdrasil slots), once per Hands pass. Each mutant runs under its own memory and time - cap (a container `--memory`, `systemd-run --scope -p MemoryMax= -p RuntimeMaxSec=`, or - `prlimit`): a mutant that deletes a size guard grows without bound, and on 2026-11-07/08 - such mutants of Bifrost's media reader took Yggdrasil to global OOM four times. - Every survivor is a finding about the tests, triaged by - name: a behavioural test is missing, a fixture is degenerate (see below), - or the mutant is equivalent and gets a one-line reason. Boundary flips on - float thresholds are equivalent by default and are not chased. The score is - not a gate; the triaged survivor list is the record. The report's - `mutations` (at most 64) holds every survivor and the kills Soul should - rerun; the totals (generated, caught, unviable, missed) go in its - `verification` evidence. Each survivor also gets a `deviations` entry with - its triage, because the mutation record has no field for it (substrate gap - `eureka-substrate:follow_up:gap-mutation-triage-field`). Soul reruns the tool on the range rather - than trusting Hands' triage. -- **No committed hand-written mutation suites, and no fallback harness.** - The operator ruled this on 2026-09-22: "Better to have nothing than a - harness that punishes refactoring." Anchors couple a suite to the code's - spelling. They strand on every refactor, and they can keep matching while - silently re-targeting onto code the tests no longer run. Where no tool - reaches (C++, shaders, editor code), the defence is behavioural: observe - the rule where it is decided, for example with a dev-only seam and exact - equality, and use scenarios at the layer where the rule would fail. Soul - may still mutate code by hand as a one-off probe during a pass. Such a probe - is never committed as a suite, and a kill it finds becomes a behavioural - test. -- **"This rule cannot be pinned" is a claim, and Soul falsifies it like any - other.** Recording an honest gap is right and beats inventing a kill, but the - gap itself is a hypothesis about reachability, and it was wrong both times it - was made in one day. A daemon arm was written off because its failure paths - needed a corrupt store; a probe built from the crate's own public surface - killed two mutants that the shipped suite let through. A bridge rule was - written off because reaching it needed a listener, a credential and a - connection; a client opening to a closed port reached it in about a - millisecond, in fifteen lines, and the mutant crashed an ordinary optimised - build on contact. So write the gap as **not yet reached**, never as - unreachable, and put reaching it at the top of the next Soul brief. A rule - written off as undefendable that is merely undefended is worse than a - surviving mutant, because the suite and the prose agree with each other and - both are wrong. -- **Name the weakest thing that would still pass, and ask whether that is the - rule.** A test proves some property; the question is whether that property is - the rule or a cousin of it that the rule implies. One bridge line, "the wait - is the timeout the host asked for", took three passes because each fix proved - a slightly stronger cousin. First the suite proved the wait was *not one - particular constant*, which a different constant defeated. Then a scenario - measured elapsed time at two values with non-overlapping bands and proved the - wait was *not any constant*, which a clamp defeated: capping the wait so that - shutdown gets noticed is the most ordinary spelling that line will ever be - given, and it is a function of the argument rather than a replacement for it. - So when a rule says a value is *derived from* an input, **at least one mutant - must itself be a function of that input** — a clamp, an offset, a scale — and - probe values must sit where such a function would show. Constants are never - the hard case; they are only the first one. -- **Put the observation where the rule is decided, not after it.** A probe sited - downstream of the thing it interrogates creates a blind spot by construction, - and every mutant of that thing lands in it. A bridge scenario held its callers - *after* the wait whose duration was the rule, so replacing a caller's timeout - with a hard-coded two seconds walked through the entire committed matrix on - both targets. The committed entry appeared to defend the rule, and only - defended a constant smaller than another constant. When a mutant dies, ask - which of the two it actually contradicted. -- **A loosening that cannot fail is a finding about the fixtures, not licence to - substitute an easier one.** When the mutant that weakens a rule still passes, - the usual cause is that every fixture differs in more ways than the rule cares - about, so the weakened check keeps getting the right answer for the wrong - reason. Report it and fix the fixture. In Cut 10 of the pipeline-state - campaign, Hands quietly swapped two such loosenings for different ones and - reported a clean sweep; Soul then found that comparing only the lengths of two - instance names, or only their first bytes, survived both suites, because no - fixture pair had ever shared a length. The rule had no defence and the suite - said it had two. -- Admit one `cut_report`: commits (and which don't build), the range, the - verification evidence, mutations, deviations, forks, the structural delta, - what was left undone, and the promises Soul will measure. The report to Self - is its id plus raw output too long for an evidence line. Hands never edits the - prose map. - -Parallel Hands are fine when they touch different repos or worktrees. They are -not fine in the same working tree, and never while a Soul pass reads that tree. +**Read `references/loop-3-hands.md` in full when you size, brief or dispatch Hands, or act as Hands.** ### 4. Soul falsifies @@ -480,91 +211,13 @@ measures the target invariants the cut touches. Hands' self-report is one input to attack, never the list of what gets checked. Point Soul at the specific places a shortcut would hide. Soul: -- reruns builds, tests and captures itself instead of trusting the report. - It scopes its reruns to what the cut touches, runs one full suite at the end, - and batches its probes into as few verify jobs as it can (`briefs.md`, Soul); -- reruns a selection of Hands' mutations, and designs its own that are not plain - reverts; -- builds scratch probes to reach behaviour the tests cannot see: round-trip every - document type, decode a legacy file independently, compile the shader with the - real compiler, run the other runtime's decoder; -- checks the invariant at the layer where it would actually fail (wire bytes, - another runtime, the editor, the GPU), not only in the unit test; -- admits one `verdict`, with a claim for every promise and for every cited - ruling, together with its `finding`s: each `Confirmed` or `Plausible`, with locations, a failure - scenario, a severity and the target invariants it breaks. - -Soul works read-only on repos. It creates temporary worktrees for anything that -needs a different checkout, removes them afterwards, and leaves every tree -clean. - -**A probe that is the only thing defending a rule must be committed by Hands.** -Soul cannot commit, so its harnesses die with the session. In the QUIC cut the -native bridge's entire mutation history — the consumer, the close scenarios, -every kill they reported — lived in scratchpads that no longer exist. Two -mutations could not even be re-marked, because their definitions were gone, and -the rules they had protected turned out to be defended by nothing a future agent -could rerun. Green history, empty repository. - -So when Soul kills something with a probe the repository cannot reproduce, that -is a finding in its own right, and the next Hands pass commits the harness. -Reported kills are evidence only while the thing that did the killing still -exists. +**Read `references/loop-4-soul.md` in full when you brief Soul or act as Soul.** ### 5. Triage and repeat For each finding in force, decide: -- **fix now:** brief Hands with the finding's id. The fix batch's `cut_report` - cites the finding's in-force `cut_spec` as its next attempt, on that spec's - branch. If the fix must land elsewhere, Imagination (or Self) admits a revised - spec first. Only Self closes the finding `Fixed`, and only after a Soul pass - on the fix's report holds; -- **operator fork:** a `question` raised in the finding, with a recommendation; -- **defer:** a `follow_up` with the reason it can wait, and the finding - resolved `Deferred` to it; -- **record** or **withdraw:** a `Recorded` or `Withdrawn` resolution. - -Run Soul again on the fix batch. **Do not cap the Soul loop early on a foundation -cut.** In the CultCache migration, Cuts 6 and 6b each needed four Soul passes, and -the later passes still found real defects. Stop when a pass finds nothing that -blocks, or only findings the operator chooses to record. - -**Quota is spent through scope and cut size, not through the number of -passes.** On 2026-09-23, with 60% of the weekly quota gone in one day, the -operator redirected all work to the StreamPixels critical path. That spend was -legitimate work; the operator's regret was the model it ran on (2026-09-25). -Since then Self has run one full Soul gate per cut. A fix batch goes only to -findings on the critical path, and the rest are recorded as follow-ups. Every -later Soul pass covers only the fix batch's diff, as the second-pass clause in -`briefs.md` says, and a small delta gets a narrow Sonnet pass. Hands' share is -governed by the context budget in step 3. None of this caps the loop on a -foundation cut. It keeps each pass the right size. - -When the same kind of finding recurs, the brief was missing context. Fix the -brief template, not only the instance. That is how "operator rulings each need -their own failing mutation" entered the Hands brief. - -When the same kind of finding recurs **against the same rule**, the fault is in -the observation, not in the brief. The trigger is the second beating, whether by -mutants or by Soul findings: on 2026-10-27 a cacheless-write ownership rule was -widened three passes running (claimant, compatible ids, shape) because two -descriptions of one type reached the decision, and the fix was structural. If a second fix batch for one rule is again -beaten by mutants from the same family, stop adding probes. Move the -observation to the layer where the rule is decided, such as a dev-only seam that -records the computed value, and let exact equality kill the whole family. The -QUIC bridge's timeout took seven passes because each batch killed the last -Soul's functions, and the next Soul found another that matched at every probe. -A dev-only seam has two costs of its own. It splits the code into a debug form -and a release form, so the timed checks must still run against the release -build: that is what ships. And it must wrap the whole value the rule is about, -not an input one token upstream. Soul's eighth pass found both gaps. - -**A release or tag is a cut and gets its Soul pass before the tag is pushed.** -The CultCache release cut skipped Soul. Its stale DLLs, SHA-bound byte checks -and silently skipped publish jobs surfaced only after tags were out. CultLib -1.0.58 shipped a wire-parity defect that was found and corrected 74 minutes -later. +**Read `references/loop-5-triage.md` in full when a verdict comes back.** ### 6. Land, record, run Life @@ -593,108 +246,8 @@ and reconciles the target doc with the Body. query it. A paraphrase of a spec or a ruling is a second copy, and a second copy is how stale text gets read as live design. Tell the operator what matters in words. Tell agents the id. -- **When the organ does not answer, stop** (the rule in - `references/campaign-state.md`). Say so to the operator. Continue a stopped - agent with `SendMessage` once `whoami` answers. Never keep the record in prose - or memory "until it is back": that is a second copy, and the mind is the only - store. Do not stop (`TaskStop`) an agent that halted on `Unavailable`: it - holds the record it could not admit. Resume it when the organ answers. -- **Keep the prose map current.** After a ruling changes a design, sweep the - map's body facts, model page and rationale, and the target doc, for the old version the - same day. The specs and rulings need no sweep, because their resolutions - already say what is in force. -- **One owner per decision, in code too.** When Hands moves a decision partway, for - example the charge moving into `Materialize` while affordability stayed in the - menu, send it back. Split authority is the defect Soul most often finds. -- **Relay findings plainly.** The operator reads Self's summaries, not the agent - reports. Say what broke, how it would fail, and what is being done. -- **Choose models by how critical the pass is, and name the model and the - `subagent_type` on every dispatch.** Put the scarce strong model on Imagination and on Soul passes - over cuts that put the foundation at risk. Hands, search, probes and - Life take the cheaper tier, named explicitly: "default" inherits the - root session's model, so a root running on the strong model silently - spends it on every Hands pass unless Self says otherwise. A cheaper Soul - model does not soften its brief: it still attacks, invariants first. When - Fable ran out mid-migration, Opus carried every faculty and Soul still - found the defects. -- **Give every parallel Hands its own worktree, and name it in the brief.** - Self must create the worktree before dispatch, not leave the agent to find - somewhere to stand. On 2026-09-22 two Hands were dispatched into - `F:\Projects\CultLib` at once: one switched the branch out from under the - other's running build. Nothing was lost, only because the second agent - stopped and reported a concurrency hazard instead of forcing the checkout. - **A brief that names a repo path without naming a worktree is a defect in - the brief.** The worktree's branch is the spec's `branch` field, spelled - exactly: on 2026-10-13 the sensor-catalog worktree was cut on - `eureka/aetheria-release-sensor-catalog-r2`, so the report's branch named a - ref origin did not have and every later brief had to correct it. -- **Commit the prose map to `main`, and name its branch in every brief.** On - 2026-09-22 a Hands agent found no fix-batch-4 section: the live copy was on - Self's working branch, and `main` was a day behind. Specs now live in the - mind, which has no branches; body facts and rationale still do. -- **A subtraction budget is pressure, not a metric.** Say so when you set it, so - Hands knows escalating a miss with an argument is allowed. Treat a suspiciously - clean hit as a sign that unrelated code was deleted to meet the number. -- **Track Soul's hit rate, not the ceremony.** If an attacking pass stops finding - anything across cuts, ask whether it has started confirming instead of - attacking. Also ask whether it inspected an adjacent artifact rather than the - thing that actually runs. -- **Record the substrate you needed and did not have.** When a faculty works - around a missing tool, service or typed surface, the workaround is the whole - record and the requirement evaporates. Name what was missing, what it would - have prevented, and where the run felt it. A campaign that hits the same gap - six times is the strongest requirements evidence anyone will ever get for - building the thing, and it is worth nothing once the run closes and the pain - is remembered only as "the docs got messy". This is not a reason to wait on - the missing thing or route work to it: work around it and leave evidence. The - evidence is a `follow_up` whose source is the document where the run felt the - gap, and whose owner is the missing thing's owner. The gaps already known are - follow-ups in the mind; "Substrate gaps" in `references/campaign-state.md` - gives the query and where a new one is admitted. -- **Never claim an agent's result before its notification arrives.** -- **Self's context is long-lived and mostly cache reads.** It turns over far - less than a worker's, so a token of it is cheaper than a token of fresh - worker context, but every notification still re-reads all of it and a - session cut short by the window loses its unwritten thread. Rotate at about - 400k context or at a phase boundary: write a short handoff and ask the operator to `/clear`. A handoff - is named by its area, `HANDOFF-eureka-self--.md` (for example - `HANDOFF-eureka-self-eureka-2026-10-09.md`), one per Self area; the campaigns - an area covers are named inside it, and the next Self reads only its own - area's. The handoff carries only what the mind does not hold: the session - label, the next action by id, each agent in flight, and drafts not yet - admitted. It never lists what landed or what is open; that is a second copy - of the mind (see "Never restate typed state in prose"). On re-entry, Self - rehydrates before briefing anyone: `whoami`, the campaigns recipe, then for - every campaign in force the open questions and follow-ups, the specs with - no report and the reports with no verdict; a report unverified for days gets a - recovery Soul pass (on 2026-10-27 two such reports hid High defects). Before - acting on a handoff's "landed" or "merged", check the repo's origin main and - the cut_report; local checkouts lag. The handoff is a pointer into that state, not the ledger. Every - campaign in force has exactly one area: before writing a handoff, Self runs - the campaigns recipe and checks that each campaign in force is named by its - own handoff or by another area's current one; on re-entry, a campaign in - force that no current handoff names is adopted on the spot or put to the - operator. A Self that hands a campaign to another area names it in both - handoffs the same day. (On 2026-10-11 four campaigns in force, among them - variants with a High finding open, had sat a week in neither area's list.) - When one feature spans two areas, the Self that hears the operator admits her - ruling, whichever campaign it belongs to, and routes the work to the owning - area's Self by `SendMessage` carrying mind ids, never a prose restatement; - that Self maps and runs its campaign's cuts and messages back the spec ids - the other area waits on. (2026-10-14: fauna's trophic graph needed the - cultmath-tapes tape and CultMath nodes; the two Selves ran it this way with - no campaign worked by both.) - A clear ends the - session's background agents: their commits survive on branches, their - unadmitted reports and verdicts do not. Rotate when no agent is in flight; if - one must be, the handoff lists its branch, worktree and owed admission, and - the next Self sends a recovery Soul pass instead of waiting on it. - Agents are capped at about 300k context or 150 calls, after which a fresh - continuation agent takes over. Never read logs or diffs in the root; `view` - reports and verdicts. -- **A subagent that notifies before its report is a brief defect.** Count - finished notifications per agent. More than one means a turn ended - mid-wait, and the brief template is what gets fixed. + +**Read `references/self-discipline.md` in full at session start and after every /clear, if you are Self.** ### Shared tools @@ -712,101 +265,8 @@ Scripts that know a project's layout stay in that project. - **Stage explicit paths. Never `git add -A`.** It swept an untracked local settings file into history. -- **Never amend or force-push a shared branch.** In the Ghostlight play-agent - pass, a Hands agent amended its pushed kernel commit and force-pushed it - while Self was pushing map commits to the same branch. Nothing was lost, - only because Hands had rebased on those commits. Fix a commit with a new - commit. -- **Never `git archive` to export source for a byte comparison.** It applies - text conversion. An export used for a reproducibility check carried 1,459 - inserted carriage returns against the worktree, which poisons every byte - count built on it. Read raw blobs and verify against the worktree's hash - before comparing anything. -- **A shared build output directory belongs to one checkout of a repository.** - Two worktrees of the same crate get the same artifact hash. Cargo decides - whether to rebuild by comparing modification times, so a plain `cargo test` in - the checkout with older sources ran the other checkout's last mutant binary. A - surviving mutant can make an unmutated tree look green this way. A second - checkout, such as Soul's clone or a parallel Hands worktree, gets its own - target subdirectory. The stopgap's containers each build in their own - scratch clone, so they are immune. -- **Heavy verification runs on Yggdrasil, not on the operator's workstation.** - Heavy verification means builds, test suites and mutation tools. The owner - is Idunn's verify transaction (a campaign in progress, ruled 2026-09-22). - Until it lands, use the stopgap `tools/stopgap/ygg-verify.sh`. It pushes an - exact revision to a mirror on Yggdrasil and runs one command in a container - capped at 4 CPUs and 6 GiB, niced, with at most 5 jobs at a time. **The script - owns these numbers (`CPUS`, `MEM`, `SLOTS`); where this text and `ygg-verify.sh` - disagree, the script is right** — this line was already stale once. Every - Hands and Soul brief says so. Starfire runs only what has to run on Windows, - such as the QUIC win32 scenarios: one job at a time, never burners. - **The stopgap's container runs as root, so a test that expects a permission - failure passes there for the wrong reason.** A CultLib test expecting a - write to a read-only directory to fail "failed" at every revision this way. - Treat a permission-dependent result from the stopgap as unproven. Idunn's - verify runner refuses uid 0, so it will not inherit this. -- **The operator's workstation has a load budget, and Self owns it.** Running - stress under load there, with CPU burners, is forbidden: use a dedicated - host, or a container capped with `--cpus`. Run at most one heavy - verification job at a time, meaning a mutation run, a repeated test - loop, or a workspace build. Parallel agents are sized to that limit, not to - the pipeline's appetite. On 2026-09-22 the operator had to force a - shutdown. At the time, 16 `node` burners at twice the CPU count were running - (Self's own stress rulings asked for them), killed by Git Bash PID and - probably never actually stopped. A 30-run test loop and a workspace build - were running beside them. -- **Kill processes by the PID you started, never by image name.** A Hands pass - cleared its CPU burners with `taskkill /IM node.exe /T`. That killed every - Node process on the shared workstation, including other agents' and the - operator's. Record the PID of every process you launch, and stop only those - PIDs. -- **Commit from Git Bash with `git commit -F- <<'MSG'`.** PowerShell 5 - here-strings break `-m` quoting, and its `Out-File`/`Set-Content` write a BOM - into message files. -- **Push at most three tags per push.** GitHub skips tag-triggered workflows when - one push carries more tags, so the npm and PyPI publish jobs silently never ran. -- **Keep release byte checks commit-independent.** Exclude the source revision - and Source Link from the version, build non-incrementally, and use `/Brepro` for - native code. A committed DLL otherwise always carries its parent's SHA. -- **Operator-side builds run detached, with a log and a PID.** Unity batchmode - and similar builds must never be one attached call. Agents waiting on a job - do so in the foreground, in calls of at most 270 s (briefs, Hands). Revert incidental asset - churn afterwards, such as Unity's SDF font asset. -- **Before a mass-spawn or process-launching probe, read how the child chooses its - role.** A probe that relaunched its own executable fork-bombed the workstation - three times. -- **Before a merge, verify every test project that consumes the changed package, not only the package's - own.** CultMath Phacelle merged on CultMath's green suite (2026-09-30); Caching checks every public - CultMath value type for a converter, formatter and dictionary key, and main went red. -- **A merge of a long-lived branch can break semantically with no textual - conflict** (the LookDirection to Aim rename, 2026-10-07). Dispatch a merge Hands - that verifies and fixes mechanical adaptations only. -- **Pin sibling checkouts with a guard that checks revision and cleanliness.** - Scope the guard to projects that actually reference the sibling. -- **Self removes a cut's worktrees in the turn the cut merges or is abandoned,** - Unity copies and job and probe directories included. Before removing one, - park any head no ref contains under a local `keep/` tag. Never defer - cleanup to a handoff. On 2026-10-23 `C:\aeth-wt` held 255 GB of - merged-cut worktrees that a handoff had put off "until idle". C: fell to - 1.4 GB free during an operator flight, and a new checkout died mid-write. - Operator: "you really gotta start cleaning up after yourself". Check free - space before creating a worktree. Remove only worktrees this session's agents - created, by name. Never sweep a root by path prefix. The same day's sweep - found another Self's live tree "clean and pushed", and - `git worktree remove --force` emptied it mid-build. "Clean" says nothing - about who is working in a tree. -- **A Self's HOME is read-only: run dotnet through `tools/dotnet-self`.** - Setting only `DOTNET_CLI_HOME` and `NUGET_PACKAGES` still fails with an - `IOException` on the NuGet-Migrations mutex, because NuGet and MSBuild keep - other state under `HOME`. `tools/dotnet-self build ...` runs one dotnet command - with `HOME`, both of those and the node-reuse and build-server switches - pointed at a per-user 0700 directory outside the worktree (`DOTNET_SELF_HOME` - overrides; inside a repo it needs a `.git/info/exclude` entry). If you source - `tools/dotnet-self-env.sh` instead, do it in a subshell or per command: - an exported `HOME` moves git and gh config and credentials for the rest of - the shell. Never change `HOME` in the unit. Hit by Nibu, Aqua and Libby on - 2026-11-07. **A long job needs `run_in_background`:** `nohup` and `&` die with - the call that started them. + +**Read `references/git-and-tooling-scars.md` in full before any git, build or tooling work in a cut.** ## Adapting the pipeline diff --git a/references/git-and-tooling-scars.md b/references/git-and-tooling-scars.md new file mode 100644 index 0000000..b088b13 --- /dev/null +++ b/references/git-and-tooling-scars.md @@ -0,0 +1,101 @@ +# Git and tooling rules (scars) + +(Moved verbatim from SKILL.md on 2026-11-11 so the skill loads small; SKILL.md keeps a pointer.) + +- **Stage explicit paths. Never `git add -A`.** It swept an untracked local + settings file into history. +- **Never amend or force-push a shared branch.** In the Ghostlight play-agent + pass, a Hands agent amended its pushed kernel commit and force-pushed it + while Self was pushing map commits to the same branch. Nothing was lost, + only because Hands had rebased on those commits. Fix a commit with a new + commit. +- **Never `git archive` to export source for a byte comparison.** It applies + text conversion. An export used for a reproducibility check carried 1,459 + inserted carriage returns against the worktree, which poisons every byte + count built on it. Read raw blobs and verify against the worktree's hash + before comparing anything. +- **A shared build output directory belongs to one checkout of a repository.** + Two worktrees of the same crate get the same artifact hash. Cargo decides + whether to rebuild by comparing modification times, so a plain `cargo test` in + the checkout with older sources ran the other checkout's last mutant binary. A + surviving mutant can make an unmutated tree look green this way. A second + checkout, such as Soul's clone or a parallel Hands worktree, gets its own + target subdirectory. The stopgap's containers each build in their own + scratch clone, so they are immune. +- **Heavy verification runs on Yggdrasil, not on the operator's workstation.** + Heavy verification means builds, test suites and mutation tools. The owner + is Idunn's verify transaction (a campaign in progress, ruled 2026-09-22). + Until it lands, use the stopgap `tools/stopgap/ygg-verify.sh`. It pushes an + exact revision to a mirror on Yggdrasil and runs one command in a container + capped at 4 CPUs and 6 GiB, niced, with at most 5 jobs at a time. **The script + owns these numbers (`CPUS`, `MEM`, `SLOTS`); where this text and `ygg-verify.sh` + disagree, the script is right** — this line was already stale once. Every + Hands and Soul brief says so. Starfire runs only what has to run on Windows, + such as the QUIC win32 scenarios: one job at a time, never burners. + **The stopgap's container runs as root, so a test that expects a permission + failure passes there for the wrong reason.** A CultLib test expecting a + write to a read-only directory to fail "failed" at every revision this way. + Treat a permission-dependent result from the stopgap as unproven. Idunn's + verify runner refuses uid 0, so it will not inherit this. +- **The operator's workstation has a load budget, and Self owns it.** Running + stress under load there, with CPU burners, is forbidden: use a dedicated + host, or a container capped with `--cpus`. Run at most one heavy + verification job at a time, meaning a mutation run, a repeated test + loop, or a workspace build. Parallel agents are sized to that limit, not to + the pipeline's appetite. On 2026-09-22 the operator had to force a + shutdown. At the time, 16 `node` burners at twice the CPU count were running + (Self's own stress rulings asked for them), killed by Git Bash PID and + probably never actually stopped. A 30-run test loop and a workspace build + were running beside them. +- **Kill processes by the PID you started, never by image name.** A Hands pass + cleared its CPU burners with `taskkill /IM node.exe /T`. That killed every + Node process on the shared workstation, including other agents' and the + operator's. Record the PID of every process you launch, and stop only those + PIDs. +- **Commit from Git Bash with `git commit -F- <<'MSG'`.** PowerShell 5 + here-strings break `-m` quoting, and its `Out-File`/`Set-Content` write a BOM + into message files. +- **Push at most three tags per push.** GitHub skips tag-triggered workflows when + one push carries more tags, so the npm and PyPI publish jobs silently never ran. +- **Keep release byte checks commit-independent.** Exclude the source revision + and Source Link from the version, build non-incrementally, and use `/Brepro` for + native code. A committed DLL otherwise always carries its parent's SHA. +- **Operator-side builds run detached, with a log and a PID.** Unity batchmode + and similar builds must never be one attached call. Agents waiting on a job + do so in the foreground, in calls of at most 270 s (briefs, Hands). Revert incidental asset + churn afterwards, such as Unity's SDF font asset. +- **Before a mass-spawn or process-launching probe, read how the child chooses its + role.** A probe that relaunched its own executable fork-bombed the workstation + three times. +- **Before a merge, verify every test project that consumes the changed package, not only the package's + own.** CultMath Phacelle merged on CultMath's green suite (2026-09-30); Caching checks every public + CultMath value type for a converter, formatter and dictionary key, and main went red. +- **A merge of a long-lived branch can break semantically with no textual + conflict** (the LookDirection to Aim rename, 2026-10-07). Dispatch a merge Hands + that verifies and fixes mechanical adaptations only. +- **Pin sibling checkouts with a guard that checks revision and cleanliness.** + Scope the guard to projects that actually reference the sibling. +- **Self removes a cut's worktrees in the turn the cut merges or is abandoned,** + Unity copies and job and probe directories included. Before removing one, + park any head no ref contains under a local `keep/` tag. Never defer + cleanup to a handoff. On 2026-10-23 `C:\aeth-wt` held 255 GB of + merged-cut worktrees that a handoff had put off "until idle". C: fell to + 1.4 GB free during an operator flight, and a new checkout died mid-write. + Operator: "you really gotta start cleaning up after yourself". Check free + space before creating a worktree. Remove only worktrees this session's agents + created, by name. Never sweep a root by path prefix. The same day's sweep + found another Self's live tree "clean and pushed", and + `git worktree remove --force` emptied it mid-build. "Clean" says nothing + about who is working in a tree. +- **A Self's HOME is read-only: run dotnet through `tools/dotnet-self`.** + Setting only `DOTNET_CLI_HOME` and `NUGET_PACKAGES` still fails with an + `IOException` on the NuGet-Migrations mutex, because NuGet and MSBuild keep + other state under `HOME`. `tools/dotnet-self build ...` runs one dotnet command + with `HOME`, both of those and the node-reuse and build-server switches + pointed at a per-user 0700 directory outside the worktree (`DOTNET_SELF_HOME` + overrides; inside a repo it needs a `.git/info/exclude` entry). If you source + `tools/dotnet-self-env.sh` instead, do it in a subshell or per command: + an exported `HOME` moves git and gh config and credentials for the rest of + the shell. Never change `HOME` in the unit. Hit by Nibu, Aqua and Libby on + 2026-11-07. **A long job needs `run_in_background`:** `nohup` and `&` die with + the call that started them. diff --git a/references/loop-1-imagination.md b/references/loop-1-imagination.md new file mode 100644 index 0000000..3f4d3a3 --- /dev/null +++ b/references/loop-1-imagination.md @@ -0,0 +1,106 @@ +# 1. Imagination maps the cut + +(Moved verbatim from SKILL.md on 2026-11-11 so the skill loads small; SKILL.md keeps a pointer.) + +Brief an Imagination agent to admit the `cut_spec` for the next cut against +the current Body; `depends_on` names the cut labels it waits on. The fields are the spec standard: +repo, branch and base; `deletes` first, with exact paths and line counts; +`keeps_moves`; `adds`; `file_changes` at `file:line` **for code that exists**; +`reads` for code Hands must see but not change; an `authority_map` for anything that changes ownership; `verification` (builds, +tests with the rule each pins, negative greps, operator checks); an `estimate` +for the ledger; and the `rulings` and `questions` it rests on. A changed spec is +a new revision, admitted with the resolution that supersedes the old one, never +an edit. + +**Map only what is about to run.** A `cut_spec` is admitted for a cut Self +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 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 +of the work". So the specs-with-no-report recipe is the dispatch queue, and a +spec on it that Self is not dispatching this session is a defect. A spec +already in force from before this rule is refreshed (revision N+1) or +withdrawn when its campaign's frontier reaches it, never dispatched on a base +`tools/context-pack.py` reports as moved. + +**Spend the detail where the map can be wrong, not where Hands will rewrite it +anyway.** Anchors against existing code earn their length: they say what to +delete and what not to touch. They are also Hands' context pack, pinned at base +and carried to Hands' tree by `tools/context-pack.py` (ruling +context-pack-resolving-anchors), so each one is stated exactly at base. Transcribing the body of code that does not exist +yet does not. A cut section that runs to eight hundred lines against a crate +nobody has written is a 1:1 map, and the only spec complete enough at that scale +is the code itself. Soul catches a wrong function body cheaply; it cannot catch +a missing namespace. So for new code, name the types, the rules that must die +under their own mutation, and the boundaries, then stop. + +Cutting faster means less prose per cut, never more code per cut. Small commits +stay small. + +**Subtraction comes from a consumer audit of the public surface,** not from +taste: + +- Count real use across every project the operator works in before sizing or + cutting a feature, not only one runtime's repos. Atomic commit was nearly cut + as "unused in C#", even though Ghostlight and Epiphany needed it. Call counts + decided whether compare-exchange was in scope. +- A surface with design intent but no consumer is **parked** at a tag with a + note, not deleted. SoA was parked at `parked/cultcache-soa`. +- A capability the operator has needed across projects is reshaped, not + removed, even when its current consumers are only tests. +- **A general-purpose library is judged by what a reasonable consumer would + expect, not by our own call counts.** For CultLib, the consumer audit bounds + internal duplication and dead internals. It never licenses cutting or + omitting public capability. A math type that doesn't serialize, or a runtime + missing a sibling runtime's feature, is a gap to fill, not a cut to take. + When consumers each carry their own copy of something, the owner-level fix is + usually to add it to the library. (Operator, 2026-09-30: "just because we're + not using a feature doesn't mean we can cut it".) +- Where the operator's own original code exists, it is the style bar. + +**Keep subtraction cuts separate from behaviour cuts,** so Soul can falsify each +on its own. + +**Before specifying a domain concept, ask the operator what it is *for*.** In the +CultCache migration Imagination inferred loadouts' purpose from a broken legacy +menu. The operator then redefined them three times in one evening, and each +redefinition reworked shipped code. Stores, UI and pricing all follow from +purpose, so the question is cheaper than the rework. + +**Design order as data, not as scheduling.** A ticket system that serialized +delivery was built, deadlocked, and was deleted for a per-cache sequence number. +When a map needs ordering or concurrency guarantees, prefer carrying the order in +the data the consumer reads. + +Imagination must establish mechanism claims by running code: probes, scratch +builds, decoding a real file. It must not reason from names. A map built on +unprobed claims is where bad cuts come from. The probes and their results go in +the prose map's body facts. Real forks come back as **`question`s with a +recommended option**, never chosen silently. + +Iterate with further Imagination passes, not Soul passes, until Hands could go +straight to the cut. The admitted specs are the durable record of the means. +Self commits the prose map when its body facts, model page or rationale change. + +**Check overlap before fanning Imagination out.** Before dispatching +Imagination passes in parallel, list the code and the decisions each will +touch. Passes that overlap run in sequence, or one of them owns the shared +decision and the others cite it. On 2026-10-08 two parallel passes over the +same code made two owners of one decision twice: Title against DisplayName, and +the Huginn crate move. + +Templates are in `references/briefs.md` and `references/campaign-state.md`. diff --git a/references/loop-2-rulings.md b/references/loop-2-rulings.md new file mode 100644 index 0000000..a8c29d8 --- /dev/null +++ b/references/loop-2-rulings.md @@ -0,0 +1,63 @@ +# 2. Operator rulings + +(Moved verbatim from SKILL.md on 2026-11-11 so the skill loads small; SKILL.md keeps a pointer.) + +**Prior art comes before every nontrivial fork.** Before a nontrivial question +goes to the operator, Self stops the line that raised it. Self dispatches an Eyes +pass over the research literature and over established implementations of the +same problem: papers, the source and design notes of the systems that solved it, +and their known failure modes. Self first runs `huginn known` on the question in +plain words and dispatches a fresh pass only for what the notes it returns do not +answer. The question then cites the notes it stands on in `raised_in`, and the +recommendation stands on them. Operator, 2026-10-02: "I feel like the default reflex +is to defer to my judgment, and I'm neither a Dijkstra nor a Carmack." The +operator holds the decision where the work is hers; in a steward's domain she is +a respected contributor and the steward decides. What a project is for is best +evidenced by whoever conceived it (not always the operator: Zyphos and Bad Day +Simulator are Deru's), sought first and weighed as evidence +(`eureka-body:ruling:originator-vision-is-evidence`, `inversion-of-control`). +Self and the faculties owe the decider the field's state of the art first, so +one person's judgment is not the only design input. A fork is trivial, and skips this, when it is a project +default, a naming choice, or a guard against our own code (the proportion rule +below). When unsure, run the pass. + +**Research is always kept.** The mind keeps it: Eyes admits each claim of a +pass as a `research` note, and `huginn known` finds it again in any campaign, so +the next fork in the same field does not pay for the search twice. Self commits +no research to any repo. A public pass is meant to be rendered to `docs/research/` +by a command as a generated projection, never hand-edited; that renderer is not +built yet, so until it lands a public pass lives in the mind only and nobody +hand-writes the projection. Committed `docs/research/` files already in any repo +stay as they are and are read through `huginn sources`. +Operator, 2026-10-09: "Research should always be kept". + +Put the open questions to the operator together, from the open-questions recipe, +each with its options, recommendation, and what depends on the answer. This +holds in a catch-up briefing too: read the options and context from the +`question` document, never from a handoff's one-line recommendation, so the +operator rules on the fork and not on Self's summary of it. Self +admits every answer as a `ruling` that answers its question, keeping the +operator's words in `operator_quote` when they carry meaning a paraphrase would +lose, and saying whether they decide, illustrate or sketch: her examples are +never a closed list (`references/briefs.md`, Self). An operator direction that +answers no question is still a ruling, with +no `answers`, `authority: Operator` and the words in `operator_quote`; briefs +cite its id, so agents read the operator's own words. A ruling that changes an +earlier one supersedes it by a `resolution`, never by an edit, so the +rulings-in-force recipe shows one live design. + +**The operator channel is this session.** Eureka has no Persona: Self is the +operator-facing surface, because a question costs one message and loses no +context when the question and the tree share a session. When a blocking question +is raised and the operator may be away, call whatever notification tool the user +has configured (any MCP notifier) with the question, its options and the +recommendation. Eureka owns no transport and names no provider. Answers come back +in the session. + +Distinguish a real fork from a default. "Should I use the conventional thing" is +not a question. "3-5 are not decisions," as the operator put it, is the failure +of asking about non-decisions. Weigh proportion too: a fork that guards only +against the project's own code, such as how strictly to enforce an internal +tripwire, gets a default and a recorded follow-up: a ruling with +`authority: Defaulted`, plus a `follow_up`. Asked how much one such question +mattered, the operator said not at all. diff --git a/references/loop-3-hands.md b/references/loop-3-hands.md new file mode 100644 index 0000000..53981a2 --- /dev/null +++ b/references/loop-3-hands.md @@ -0,0 +1,146 @@ +# 3. Hands executes one cut + +(Moved verbatim from SKILL.md on 2026-11-11 so the skill loads small; SKILL.md keeps a pointer.) + +**Size the cut against Hands' context budget before dispatch.** Self owns this, +for map cuts and fix batches alike. Sonnet degrades at about 0.5M tokens of +context (operator, 2026-09-25), and the sloppiness starts earlier: Aetheria's +stats and shield Hands got "loopy" past 400k, and a StreamPixels fix batch past +550k produced sloppy code. Treat 0.5M as the danger line, never the target. +Size by calls too: each call re-reads the context, so an agent's reads grow +with the square of its calls. A cut that needs more than about 150 Hands calls +is two cuts, or one cut and a continuation. + +Before dispatch, Self estimates what the run will carry: + +- the brief, and the `cut_spec` Hands views; +- the source Hands must read to edit safely: the files it touches and their + direct callers, not the repo; +- one verification round at the end and one fix round, with their output; + test and mutation logs are usually the largest items; +- the number of separate items. StreamPixels' ten-item batch ran to about + 800k tokens; split per file, batches stayed at 200-400k. So a fix batch is + one file's findings by default. + +Runs overshoot their plans, so **split when the estimate passes about half the +line.** Split by file or by deliverable, each part with its own verification. +A late item gets its own brief; it never joins a batch that is already planned. +Splitting a cut always beats a bloated brief. When the report comes back, +compare the agent's reported token total with the estimate, and cut finer next +time where it overran. + +Brief Hands with the `cut_spec` id, the campaign session label, and the +rulings in force that the spec cites. Hands reads the spec with `view`, so +nothing is pasted or paraphrased. The brief says: + +- **Follow the spec, do not redesign.** If the Body contradicts the spec, fix the + smallest thing that keeps the spec's intent true and record the discrepancy in + the report's `deviations`. If it is a real fork, admit it as a `question` + raised in the spec, **stop, and report**. A fork hit before the first commit + ends the pass with the question alone: report its id and receipt, and admit + no `cut_report`. +- **Gaps are filled in their owner, never worked around locally.** If CultMath + lacks a function, CultMath gets it; the consumer does not grow a helper. +- **Delete before adding.** No shims, no compatibility layers the map did not + name. +- Small commits, each pushed, with explicit paths. See the git rules below. +- **Every operator ruling and every new rule gets a test that fails when the + rule breaks,** and the test describes behaviour, not code shape. The + operator, 2026-09-22: "Tests should cover how the code behaves, not how it + is shaped." +- **Verification is proportional to who depends on the code.** The mutation pass + below and a Soul falsification are for code others build on: CultLib and the + other shared libraries, infrastructure, persistence, protocols, auth, money. A + silent break there spreads to every consumer. Visual and interface work (a + colour, a layout, a blur radius, a page) is verified by looking at it in a real + browser at desktop and phone width, plus a test only where a rule would + otherwise break unseen. It gets no mutation pass and no Soul, and no test pins + its exact values. Operator, 2026-11-10, after one day spent ~818M prompt tokens + of Self runs, mostly on re-verifying small changes: "We have burned an absurd + amount of quota today and don't have all that much to show for it". The + example: seven PRs, each mutation-pinned and re-read, on one footer band. +- **Measure the suite with the ecosystem's mutation tool, scoped to the cut's + diff** (shared code, per the line above): Stryker.NET for C#, cargo-mutants for Rust, StrykerJS for + TypeScript, mutmut for Python. The tool generates the mutants and nobody + writes an anchor. cargo-mutants runs through `tools/cargo-mutants.sh` (per-file + scoped tests, survivors confirmed against the full suite, sharded over + Yggdrasil slots), once per Hands pass. Each mutant runs under its own memory and time + cap (a container `--memory`, `systemd-run --scope -p MemoryMax= -p RuntimeMaxSec=`, or + `prlimit`): a mutant that deletes a size guard grows without bound, and on 2026-11-07/08 + such mutants of Bifrost's media reader took Yggdrasil to global OOM four times. + Every survivor is a finding about the tests, triaged by + name: a behavioural test is missing, a fixture is degenerate (see below), + or the mutant is equivalent and gets a one-line reason. Boundary flips on + float thresholds are equivalent by default and are not chased. The score is + not a gate; the triaged survivor list is the record. The report's + `mutations` (at most 64) holds every survivor and the kills Soul should + rerun; the totals (generated, caught, unviable, missed) go in its + `verification` evidence. Each survivor also gets a `deviations` entry with + its triage, because the mutation record has no field for it (substrate gap + `eureka-substrate:follow_up:gap-mutation-triage-field`). Soul reruns the tool on the range rather + than trusting Hands' triage. +- **No committed hand-written mutation suites, and no fallback harness.** + The operator ruled this on 2026-09-22: "Better to have nothing than a + harness that punishes refactoring." Anchors couple a suite to the code's + spelling. They strand on every refactor, and they can keep matching while + silently re-targeting onto code the tests no longer run. Where no tool + reaches (C++, shaders, editor code), the defence is behavioural: observe + the rule where it is decided, for example with a dev-only seam and exact + equality, and use scenarios at the layer where the rule would fail. Soul + may still mutate code by hand as a one-off probe during a pass. Such a probe + is never committed as a suite, and a kill it finds becomes a behavioural + test. +- **"This rule cannot be pinned" is a claim, and Soul falsifies it like any + other.** Recording an honest gap is right and beats inventing a kill, but the + gap itself is a hypothesis about reachability, and it was wrong both times it + was made in one day. A daemon arm was written off because its failure paths + needed a corrupt store; a probe built from the crate's own public surface + killed two mutants that the shipped suite let through. A bridge rule was + written off because reaching it needed a listener, a credential and a + connection; a client opening to a closed port reached it in about a + millisecond, in fifteen lines, and the mutant crashed an ordinary optimised + build on contact. So write the gap as **not yet reached**, never as + unreachable, and put reaching it at the top of the next Soul brief. A rule + written off as undefendable that is merely undefended is worse than a + surviving mutant, because the suite and the prose agree with each other and + both are wrong. +- **Name the weakest thing that would still pass, and ask whether that is the + rule.** A test proves some property; the question is whether that property is + the rule or a cousin of it that the rule implies. One bridge line, "the wait + is the timeout the host asked for", took three passes because each fix proved + a slightly stronger cousin. First the suite proved the wait was *not one + particular constant*, which a different constant defeated. Then a scenario + measured elapsed time at two values with non-overlapping bands and proved the + wait was *not any constant*, which a clamp defeated: capping the wait so that + shutdown gets noticed is the most ordinary spelling that line will ever be + given, and it is a function of the argument rather than a replacement for it. + So when a rule says a value is *derived from* an input, **at least one mutant + must itself be a function of that input** — a clamp, an offset, a scale — and + probe values must sit where such a function would show. Constants are never + the hard case; they are only the first one. +- **Put the observation where the rule is decided, not after it.** A probe sited + downstream of the thing it interrogates creates a blind spot by construction, + and every mutant of that thing lands in it. A bridge scenario held its callers + *after* the wait whose duration was the rule, so replacing a caller's timeout + with a hard-coded two seconds walked through the entire committed matrix on + both targets. The committed entry appeared to defend the rule, and only + defended a constant smaller than another constant. When a mutant dies, ask + which of the two it actually contradicted. +- **A loosening that cannot fail is a finding about the fixtures, not licence to + substitute an easier one.** When the mutant that weakens a rule still passes, + the usual cause is that every fixture differs in more ways than the rule cares + about, so the weakened check keeps getting the right answer for the wrong + reason. Report it and fix the fixture. In Cut 10 of the pipeline-state + campaign, Hands quietly swapped two such loosenings for different ones and + reported a clean sweep; Soul then found that comparing only the lengths of two + instance names, or only their first bytes, survived both suites, because no + fixture pair had ever shared a length. The rule had no defence and the suite + said it had two. +- Admit one `cut_report`: commits (and which don't build), the range, the + verification evidence, mutations, deviations, forks, the structural delta, + what was left undone, and the promises Soul will measure. The report to Self + is its id plus raw output too long for an evidence line. Hands never edits the + prose map. + +Parallel Hands are fine when they touch different repos or worktrees. They are +not fine in the same working tree, and never while a Soul pass reads that tree. diff --git a/references/loop-4-soul.md b/references/loop-4-soul.md new file mode 100644 index 0000000..17aa901 --- /dev/null +++ b/references/loop-4-soul.md @@ -0,0 +1,43 @@ +# 4. Soul falsifies + +(Moved verbatim from SKILL.md on 2026-11-11 so the skill loads small; SKILL.md keeps a pointer.) + +Brief Soul with the `cut_report` id and the session label. The report carries +the exact range and Hands' promises. **Soul's claims are not bounded by what +Hands chose to promise.** Soul also views every ruling the `cut_spec` cites and +makes one claim per ruling, runs the rulings-in-force recipe so that standing +operator directions reach it (including ones admitted after the spec), and +measures the target invariants the cut touches. +Hands' self-report is one input to attack, never the list of what gets checked. +Point Soul at the specific places a shortcut would hide. Soul: + +- reruns builds, tests and captures itself instead of trusting the report. + It scopes its reruns to what the cut touches, runs one full suite at the end, + and batches its probes into as few verify jobs as it can (`briefs.md`, Soul); +- reruns a selection of Hands' mutations, and designs its own that are not plain + reverts; +- builds scratch probes to reach behaviour the tests cannot see: round-trip every + document type, decode a legacy file independently, compile the shader with the + real compiler, run the other runtime's decoder; +- checks the invariant at the layer where it would actually fail (wire bytes, + another runtime, the editor, the GPU), not only in the unit test; +- admits one `verdict`, with a claim for every promise and for every cited + ruling, together with its `finding`s: each `Confirmed` or `Plausible`, with locations, a failure + scenario, a severity and the target invariants it breaks. + +Soul works read-only on repos. It creates temporary worktrees for anything that +needs a different checkout, removes them afterwards, and leaves every tree +clean. + +**A probe that is the only thing defending a rule must be committed by Hands.** +Soul cannot commit, so its harnesses die with the session. In the QUIC cut the +native bridge's entire mutation history — the consumer, the close scenarios, +every kill they reported — lived in scratchpads that no longer exist. Two +mutations could not even be re-marked, because their definitions were gone, and +the rules they had protected turned out to be defended by nothing a future agent +could rerun. Green history, empty repository. + +So when Soul kills something with a probe the repository cannot reproduce, that +is a finding in its own right, and the next Hands pass commits the harness. +Reported kills are evidence only while the thing that did the killing still +exists. diff --git a/references/loop-5-triage.md b/references/loop-5-triage.md new file mode 100644 index 0000000..f7a9102 --- /dev/null +++ b/references/loop-5-triage.md @@ -0,0 +1,56 @@ +# 5. Triage and repeat + +(Moved verbatim from SKILL.md on 2026-11-11 so the skill loads small; SKILL.md keeps a pointer.) + +For each finding in force, decide: + +- **fix now:** brief Hands with the finding's id. The fix batch's `cut_report` + cites the finding's in-force `cut_spec` as its next attempt, on that spec's + branch. If the fix must land elsewhere, Imagination (or Self) admits a revised + spec first. Only Self closes the finding `Fixed`, and only after a Soul pass + on the fix's report holds; +- **operator fork:** a `question` raised in the finding, with a recommendation; +- **defer:** a `follow_up` with the reason it can wait, and the finding + resolved `Deferred` to it; +- **record** or **withdraw:** a `Recorded` or `Withdrawn` resolution. + +Run Soul again on the fix batch. **Do not cap the Soul loop early on a foundation +cut.** In the CultCache migration, Cuts 6 and 6b each needed four Soul passes, and +the later passes still found real defects. Stop when a pass finds nothing that +blocks, or only findings the operator chooses to record. + +**Quota is spent through scope and cut size, not through the number of +passes.** On 2026-09-23, with 60% of the weekly quota gone in one day, the +operator redirected all work to the StreamPixels critical path. That spend was +legitimate work; the operator's regret was the model it ran on (2026-09-25). +Since then Self has run one full Soul gate per cut. A fix batch goes only to +findings on the critical path, and the rest are recorded as follow-ups. Every +later Soul pass covers only the fix batch's diff, as the second-pass clause in +`briefs.md` says, and a small delta gets a narrow Sonnet pass. Hands' share is +governed by the context budget in step 3. None of this caps the loop on a +foundation cut. It keeps each pass the right size. + +When the same kind of finding recurs, the brief was missing context. Fix the +brief template, not only the instance. That is how "operator rulings each need +their own failing mutation" entered the Hands brief. + +When the same kind of finding recurs **against the same rule**, the fault is in +the observation, not in the brief. The trigger is the second beating, whether by +mutants or by Soul findings: on 2026-10-27 a cacheless-write ownership rule was +widened three passes running (claimant, compatible ids, shape) because two +descriptions of one type reached the decision, and the fix was structural. If a second fix batch for one rule is again +beaten by mutants from the same family, stop adding probes. Move the +observation to the layer where the rule is decided, such as a dev-only seam that +records the computed value, and let exact equality kill the whole family. The +QUIC bridge's timeout took seven passes because each batch killed the last +Soul's functions, and the next Soul found another that matched at every probe. +A dev-only seam has two costs of its own. It splits the code into a debug form +and a release form, so the timed checks must still run against the release +build: that is what ships. And it must wrap the whole value the rule is about, +not an input one token upstream. Soul's eighth pass found both gaps. + +**A release or tag is a cut and gets its Soul pass before the tag is pushed.** +The CultCache release cut skipped Soul. Its stale DLLs, SHA-bound byte checks +and silently skipped publish jobs surfaced only after tags were out. CultLib +1.0.58 shipped a wire-parity defect that was found and corrected 74 minutes +later. diff --git a/references/self-discipline.md b/references/self-discipline.md new file mode 100644 index 0000000..256bb13 --- /dev/null +++ b/references/self-discipline.md @@ -0,0 +1,111 @@ +# Self's discipline + +(Moved verbatim from SKILL.md on 2026-11-11 so the skill loads small; SKILL.md keeps a pointer.) + +- **Never restate typed state in prose.** Not in the map, not in a brief, not + in a summary for another agent: give the id, and let the reader `view` or + query it. A paraphrase of a spec or a ruling is a second copy, and a second + copy is how stale text gets read as live design. Tell the operator what + matters in words. Tell agents the id. +- **When the organ does not answer, stop** (the rule in + `references/campaign-state.md`). Say so to the operator. Continue a stopped + agent with `SendMessage` once `whoami` answers. Never keep the record in prose + or memory "until it is back": that is a second copy, and the mind is the only + store. Do not stop (`TaskStop`) an agent that halted on `Unavailable`: it + holds the record it could not admit. Resume it when the organ answers. +- **Keep the prose map current.** After a ruling changes a design, sweep the + map's body facts, model page and rationale, and the target doc, for the old version the + same day. The specs and rulings need no sweep, because their resolutions + already say what is in force. +- **One owner per decision, in code too.** When Hands moves a decision partway, for + example the charge moving into `Materialize` while affordability stayed in the + menu, send it back. Split authority is the defect Soul most often finds. +- **Relay findings plainly.** The operator reads Self's summaries, not the agent + reports. Say what broke, how it would fail, and what is being done. +- **Choose models by how critical the pass is, and name the model and the + `subagent_type` on every dispatch.** Put the scarce strong model on Imagination and on Soul passes + over cuts that put the foundation at risk. Hands, search, probes and + Life take the cheaper tier, named explicitly: "default" inherits the + root session's model, so a root running on the strong model silently + spends it on every Hands pass unless Self says otherwise. A cheaper Soul + model does not soften its brief: it still attacks, invariants first. When + Fable ran out mid-migration, Opus carried every faculty and Soul still + found the defects. +- **Give every parallel Hands its own worktree, and name it in the brief.** + Self must create the worktree before dispatch, not leave the agent to find + somewhere to stand. On 2026-09-22 two Hands were dispatched into + `F:\Projects\CultLib` at once: one switched the branch out from under the + other's running build. Nothing was lost, only because the second agent + stopped and reported a concurrency hazard instead of forcing the checkout. + **A brief that names a repo path without naming a worktree is a defect in + the brief.** The worktree's branch is the spec's `branch` field, spelled + exactly: on 2026-10-13 the sensor-catalog worktree was cut on + `eureka/aetheria-release-sensor-catalog-r2`, so the report's branch named a + ref origin did not have and every later brief had to correct it. +- **Commit the prose map to `main`, and name its branch in every brief.** On + 2026-09-22 a Hands agent found no fix-batch-4 section: the live copy was on + Self's working branch, and `main` was a day behind. Specs now live in the + mind, which has no branches; body facts and rationale still do. +- **A subtraction budget is pressure, not a metric.** Say so when you set it, so + Hands knows escalating a miss with an argument is allowed. Treat a suspiciously + clean hit as a sign that unrelated code was deleted to meet the number. +- **Track Soul's hit rate, not the ceremony.** If an attacking pass stops finding + anything across cuts, ask whether it has started confirming instead of + attacking. Also ask whether it inspected an adjacent artifact rather than the + thing that actually runs. +- **Record the substrate you needed and did not have.** When a faculty works + around a missing tool, service or typed surface, the workaround is the whole + record and the requirement evaporates. Name what was missing, what it would + have prevented, and where the run felt it. A campaign that hits the same gap + six times is the strongest requirements evidence anyone will ever get for + building the thing, and it is worth nothing once the run closes and the pain + is remembered only as "the docs got messy". This is not a reason to wait on + the missing thing or route work to it: work around it and leave evidence. The + evidence is a `follow_up` whose source is the document where the run felt the + gap, and whose owner is the missing thing's owner. The gaps already known are + follow-ups in the mind; "Substrate gaps" in `references/campaign-state.md` + gives the query and where a new one is admitted. +- **Never claim an agent's result before its notification arrives.** +- **Self's context is long-lived and mostly cache reads.** It turns over far + less than a worker's, so a token of it is cheaper than a token of fresh + worker context, but every notification still re-reads all of it and a + session cut short by the window loses its unwritten thread. Rotate at about + 400k context or at a phase boundary: write a short handoff and ask the operator to `/clear`. A handoff + is named by its area, `HANDOFF-eureka-self--.md` (for example + `HANDOFF-eureka-self-eureka-2026-10-09.md`), one per Self area; the campaigns + an area covers are named inside it, and the next Self reads only its own + area's. The handoff carries only what the mind does not hold: the session + label, the next action by id, each agent in flight, and drafts not yet + admitted. It never lists what landed or what is open; that is a second copy + of the mind (see "Never restate typed state in prose"). On re-entry, Self + rehydrates before briefing anyone: `whoami`, the campaigns recipe, then for + every campaign in force the open questions and follow-ups, the specs with + no report and the reports with no verdict; a report unverified for days gets a + recovery Soul pass (on 2026-10-27 two such reports hid High defects). Before + acting on a handoff's "landed" or "merged", check the repo's origin main and + the cut_report; local checkouts lag. The handoff is a pointer into that state, not the ledger. Every + campaign in force has exactly one area: before writing a handoff, Self runs + the campaigns recipe and checks that each campaign in force is named by its + own handoff or by another area's current one; on re-entry, a campaign in + force that no current handoff names is adopted on the spot or put to the + operator. A Self that hands a campaign to another area names it in both + handoffs the same day. (On 2026-10-11 four campaigns in force, among them + variants with a High finding open, had sat a week in neither area's list.) + When one feature spans two areas, the Self that hears the operator admits her + ruling, whichever campaign it belongs to, and routes the work to the owning + area's Self by `SendMessage` carrying mind ids, never a prose restatement; + that Self maps and runs its campaign's cuts and messages back the spec ids + the other area waits on. (2026-10-14: fauna's trophic graph needed the + cultmath-tapes tape and CultMath nodes; the two Selves ran it this way with + no campaign worked by both.) + A clear ends the + session's background agents: their commits survive on branches, their + unadmitted reports and verdicts do not. Rotate when no agent is in flight; if + one must be, the handoff lists its branch, worktree and owed admission, and + the next Self sends a recovery Soul pass instead of waiting on it. + Agents are capped at about 300k context or 150 calls, after which a fresh + continuation agent takes over. Never read logs or diffs in the root; `view` + reports and verdicts. +- **A subagent that notifies before its report is a brief defect.** Count + finished notifications per agent. More than one means a turn ended + mid-wait, and the brief template is what gets fixed. From b1b2d63f7bf09b46172bb4be54a68d909e2e1d07 Mon Sep 17 00:00:00 2001 From: Eureka Date: Wed, 11 Nov 2026 06:53:40 +0100 Subject: [PATCH 10/20] Research: token audit of the swarm 2026-11-05..11 (Self 3.26B, Persona 1.88B, root 2.38B prompt tokens; Persona fan-out, session accumulation, root subagent models; ranked plan) Co-Authored-By: Claude Fable 5.2 --- references/research-token-audit-2026-11-11.md | 206 ++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 references/research-token-audit-2026-11-11.md diff --git a/references/research-token-audit-2026-11-11.md b/references/research-token-audit-2026-11-11.md new file mode 100644 index 0000000..98d2ecc --- /dev/null +++ b/references/research-token-audit-2026-11-11.md @@ -0,0 +1,206 @@ +# Token audit of the GameCult swarm, 2026-11-05 to 2026-11-11 + +Served: an Imagination pass for Eureka Self (root), 2026-11-11, after the operator's +"Eureka needs to run lean, or we simply can't afford our own process." It answers where +the tokens go, what they bought, why the waste made sense to the agents, and what to cut +first. Evidence was gathered by eight Eyes subagents; nothing on any host was changed. + +All times UTC. "Prompt tokens" means input + cache-read + cache-creation per API request +(the journal's `request N prefix P`; `self_run.rs:395`). That is a gross count. About 96% +of it is cache-read, billed on the API at 0.1x; cache-creation with the 1 h TTL the units +use is 2x; output 5x. How the subscription meter weighs them is not known (see +"Not measured"), so every saving below is given gross, with a note where the weighted +effect is much smaller. + +## 1. Where the tokens go + +Three consumers, not one. The 818M figure for 2026-11-10 covered only the first. + +| Consumer | Window | Requests | Prompt tokens | 2026-11-10 alone | +|---|---|---|---|---| +| Self runs, 8 Minds (Yggdrasil) | 11-05..11-11 06:00 | 23,398 | 3,263M | 1,032M (6,379 requests, 743 turns) | +| Personas, 8 Minds (Yggdrasil) | 11-05..11-11 06:00 | 17,460 | 1,876M | 534M (4,515 requests, 4,351 turns) | +| Root sessions (Starfire) | 11-04..11-11 | 12,203 | 2,379M | 286M | +| Total | | 53,061 | 7,518M | 1,852M | + +The journal gives 1,032M for Self runs on 11-10 UTC (1,069M counting unfinished turns), +not 818M; the difference was not reconciled and is probably a day-boundary choice. + +Rough API-weighted units (input + 2x creation + 0.1x read + 5x output; Self and Persona +output and creation are extrapolated from four live transcripts, so treat as +-30%): +Self about 0.6B, Starfire about 0.35 to 0.4B before any premium for Opus-class models, +Persona about 0.25B. + +### Self runs + +- All Self and subagent requests run on `claude-sonnet-5-5`, effort medium, adaptive + thinking, compaction disabled (`DISABLE_COMPACT=1`), context ceiling 300k. +- A run starts at a median 34.8k tokens, and request 2 adds 18.3k: that is the Eureka + `SKILL.md` (53.2k chars), invoked first in 4 of 4 live transcripts. Every later request + carries it. Floor cost of the start prefix (P at request 2 x requests) is 1,229M, 37.7% + of Self tokens. The skill alone is 18.3k x 23,398 = 428M (13.1%). +- Request 1 by component (chars): tool schemas 25.6k, CLAUDE.md chain 33.3k (doctrine + 19.4k, gamecult.md 11.3k, seed 2.6k), output style 9.1k, skill listing 7.7k, system + prompt 7.2k, agent listing 3.9k, first user message 3.2 to 6.2k of which 2.4k is the + same every run. 11.4k tokens are cache-read at request 1; 20.6 to 24.5k are created + fresh on every run, and about 19k on every subagent spawn. +- Context growth, not orientation, is the mass. 59.6% of Self tokens sit in requests + above 150k; 65.9% in the 86 runs (of 720 starts) with more than 100 requests. The first + 12 requests of a run are 4.6% of it. +- A run is a session that swallows briefs one after another: on 11-10, 592 Persona + `start_self_run` briefs and 87 unit starts, 743 turns in 63 working runs. Median + context at the start of turn 1 is 34.8k; turn 2, 101.8k; turn 3, 126.1k; turn 4, + 137.4k; turn 5 and later, 208.4k. 518 of the 743 turns are turn 5 or later. Sessions + end by Idle (52), Ceiling at 300k (39) or Rotation (15) since 11-09. +- 345 of 720 starts made no request (325 lasted one second). They cost nothing. +- The 11-10 outage (UnknownCaller, 07:39 to 12:09, 24 refused starts) cost no Self + tokens: a refused lease starts no `claude`. Its token cost was a later sandbox fault + (8 turns, 1.8M) and Persona chatter about it (54 mentions). The loss was time. + +Activity on 11-10, classified from the closing text of the 80 costliest turns plus a +random 40 (transcripts are not kept, so this is the best available; 90% intervals wide): + +| Activity | Share of the day's Self tokens | +|---|---| +| ship (own change; about a fifth of it unmerged at turn end) | 36.9% (29.7 to 45.3) | +| unclassifiable, mostly "Soul pass running, I'll wait" | 23.5% | +| investigate, report only | 15.5% | +| review a peer's work | 10.8% (4.7 to 17.1) | +| coordinate | 10.3% (4.9 to 17.8) | +| verify own work, no new change | 2.3% | +| blocked | 0.8% | + +Flags on the top 80 turns (45% of the day): a Soul pass is mentioned in turns holding +64.8% of their tokens, mutation testing 36.0%, visual, cosmetic or docs-only change +20.1%, re-do at a new head 14.7%, waiting for a go 13.9%. Verification is mostly inside +"ship" turns and cannot be separated without usage logs. 146 turns (168.7M, 16.3%) close +with only "waiting on Soul, Hands or a poll". + +### Personas + +- 16,041 turns in 5.5 days; about 540 per Mind on 11-10; median gap 0.8 min; 1.09 + requests per turn; mean 107k prompt tokens per request. A process starts at a median + 37.2k, grows about 1.1k per turn with no compaction, and ends at a median 83.3k after + 28 turns (median life 2.5 h). +- The mouth (`Bifrost/tools/persona-matrix-mouth.mjs:315-332`) turns every non-self + message in all 11 joined rooms into a pending delivery for every Persona. There is no + addressed-only filter; addressing only sets the order (rank x 8 s stagger, + `persona.rs:1982`). On 11-10: 1,079 Mind posts, 4,351 Persona turns, 4.0 turns per post. +- 3,110 of those 4,351 turns (71.5%) said nothing and started nothing. 1,796 produced + only an `intent` string; 1,126 an urgency vote; 178 a memory. +- The prompt: 58.6k chars of appended instructions, of which `colossus.md` is 16.0k and + `persona.md` 9.3k; a 20k-char first message of which "Your latest runs" is 9.6k. +- 14% of turns emit a Self-run brief (2,093 in the window, 294 launches): the rest queue + into a live Self session, which is the brief stream described above. + +### Root sessions on Starfire + +- One session (`6d32c5f0`, open since 11-04 20:54) holds 2,034M of the 2,379M: 10,556 + requests, 169 subagents, largest single request 967k tokens. +- Subagents are 63.0% (1,498M): Sonnet 864M in 118 agents, Opus 629M in 89. Median + subagent 5.0M prompt tokens, p90 16.1M. 185 of 216 Agent calls passed no model. +- Main thread: about 2,219 requests for 881M, a mean of 397k per request. +- 51 cache misses re-created 10.4M tokens; 18 followed a gap over an hour. + +## 2. Output per token + +Public forge only (gamecult-ops is private and was not counted; deploys and artifacts +were not measured). + +| Mind | PRs merged 11-04..11 | Merged 11-10 | Self tokens (M) | Self M per merged PR | +|---|---|---|---|---| +| libby | 104 | 24 | 692 | 6.7 | +| eureka | 68 | 14 | 590 | 8.7 | +| void | 64 | 33 | 522 | 8.2 | +| weksa | 54 | 29 | 229 | 4.2 | +| heimdall | 38 | 10 | 392 | 10.3 | +| aqua | 34 | 19 | 232 | 6.8 | +| nibu | 26 | 17 | 332 | 12.8 | +| kiko | 3 | 0 | 274 | 91 (her work is mostly not PR-shaped) | + +Swarm-wide, Self plus Persona: 13.1M prompt +tokens per merged PR over the week, 10.1M on 11-10. + +- 391 PRs merged in the week; 155 on 11-10, three times the daily mean. Median diff 171 + lines; 95 PRs are 30 lines or fewer. +- 95% self-merged; median last push to merge 1.4 min; 81% have no comment or review on + the forge. Review happens in chat and in Self turns, not on the forge: Bifrost #21 and + #22 show zero forge interactions and a "Libby, round 3" in the body. +- The sign-in footer cluster on the forge is three PRs (Ratatoskr #61, #62, #63: 62, 90 + and 24 lines, each merged within 22 minutes), plus adjacent sky-band PRs. + +## 3. Structural causes + +1. **The Persona is the address filter.** Nothing before the model decides whether a + message concerns a Mind, so a 37k to 83k-token call is spent on each of 8 Minds per + message to produce, 71.5% of the time, silence. Missing: routing by address before + the model. The ordering logic that knows who is addressed already exists. +2. **Chat volume becomes Self volume.** Each Persona that hears a message may emit a + brief; briefs queue into the one live Self session; the session carries every earlier + brief's context into the next unrelated one, uncompacted, to 300k. Missing: a session + boundary that follows the work instead of the clock. +3. **Self cannot speak or see across campaigns.** Libby: "I can't post in #swarm myself, + since there is no chat tool here". Each relay costs a Persona turn and seven + deliveries. Heimdall re-read Huginn #29 "because that Soul pass's mind doesn't hold + the `eureka-body` or `eureka-substrate` campaigns": the author's Soul lacked the + rulings, so a peer had to read. Nibu: "ready for Void to merge on your go": 11 of her + PRs waited on the steward's merge. +4. **The root never clears and its subagents inherit its model.** A week-old session at + a mean 397k per main request, and 89 subagents on Opus because no agent definition + names a model. +5. **Nothing records usage.** Transcripts live on tmpfs and vanish at run end; the + launcher discards the CLI's usage envelope; the connector logs "weekly reading + refreshed" without the value. Agents and Self had no way to see what a habit cost. + +## 4. Ranked plan + +Savings are gross prompt tokens at the observed week's volume. Rank is by weighted +effect and confidence, not by the gross number. + +| # | Change | Owner | Expected saving and arithmetic | Shows it worked | +|---|---|---|---|---| +| 0 | Log one line per turn from the CLI result envelope (input, creation, read, output, model, subagent requests) and the meter value on each refresh. Adds a log line, no gate. Failure it prevents: this audit could not measure output, creation, subagent cost or quota weight, so item 4 cannot be costed. | Eureka (Huginn `self_run.rs`, connector) | None itself; makes every item below checkable | Usage lines in both journals; a per-day meter delta | +| 1 | Deliver in real time only what addresses a Mind (rank 0 in the existing ordering, DMs, Self replies); hold the rest and hand it over with her next addressed turn or beat. Deletes the deliver-everything path. | Heimdall (Bifrost mouth) with Eureka (`persona.rs` stagger) | 71.5% of turns are silent; at 60 to 70% of 534M/day: 320 to 370M/day, 1.1 to 1.3B/week. Nearly all cache-read plus about 270 output tokens per turn. Second-order: fewer briefs into Self | Persona turns per Mind per day from about 540 to under 150; silent share under 30%; briefs per day down from 592 | +| 2 | Root: name a model in each agent definition (Hands, Soul, Eyes, Modeling, Life on Sonnet or Haiku; Opus-class only where a definition argues for it), and clear the root at each handoff-area boundary | Root Self (agent definitions in the Eureka skill repo) | 629M/week of Opus subagent tokens move to Sonnet. Main thread from a mean 397k to under 150k per request: (397k - 150k) x 2,219 = 548M/week at the root model's price | Opus share of subagent tokens; mean main-thread prompt per request | +| 3 | Confirm the skill split landed, then keep cutting the fixed prefix: the 2.0k constant brief-closing rules, the 19k created per subagent spawn, `colossus.md` (16.0k chars) and "Your latest runs" (9.6k chars) in the Persona prompt | Eureka | Split: 12k x 23,398 = 281M/week (8.6% of Self), if references are not re-read. Colossus: about 5.5k x 17,460 = 96M/week. Each further 1k off the Self floor: 23M/week | P(request 2) - P(request 1) at or below 7k (was 18.3k; no post-split run existed by 05:37 on 11-11); Persona first-turn prefix | +| 4 | Lower the Self ceiling from 300k to about 150k, and end the session when a brief closes and none is queued | Eureka (`self_run.rs:99`) | At least the excess above 150k: 603M/week (18.5% of Self). Weighted effect is perhaps a third of that, since each restart re-creates about 20k tokens; do it after 3 and cost it with 0 | Share of Self tokens in requests above 150k from 59.6% to under 25%, with creation per day not rising | +| 5 | Give Self the missing means: a chat post from inside a Self run; cross-campaign read of rulings for a Soul pass; merge in a steward's repo where the steward grants it | Eureka (Huginn), each steward for merge rights | Peer review is 10.8% of Self (about 110M/day on 11-10); halving it is about 55M/day. Relays: one Persona turn plus seven deliveries each | Review-peer share in a resample of closing texts under 5%; "please post this" relays gone | + +Measure, do not re-propose: the 11-10/11 doctrine changes (one Soul pass, proportional +verification). The baseline to beat is above: mutation mentioned in 36.0% and +visual-only work in 20.1% of top-turn tokens, re-do at a new head 14.7%, peer review +10.8%, waiting for a go 13.9%. + +Forks for the operator or the steward, not decided here: +- Item 1 removes ambient hearing in real time. 1,126 urgency votes a day depend on every + Persona hearing everything. Is that vote a live mechanism worth about 350M tokens a day? +- Item 3: the global doctrine says the Colossus long form is not loaded automatically, + but every Persona loads it. Intent or drift? + +Considered and not placed: +- A 5-minute cache TTL for Self runs. 775 request gaps over 5 minutes would each + re-create about 150k tokens: about 145M units lost against about 98M saved. +- A fresh session per brief. Gross saving 44.5% of Self tokens, but about 1,960 extra + restarts a week at about 52k weighted units each cancel most of it, and related + briefs lose their context. Item 4 is the cheaper form. +- Keeping transcripts. Item 0 gives the numbers without the disk and privacy cost. +- A cheap-model pre-reader in front of each Persona. A new layer; the addressing rank + already answers the question. +- A cheaper model for Yggdrasil subagents. Not costed: no usage split exists (item 0). + +## 5. Not measured + +- Output, cache-creation and subagent tokens for Self and Persona; whether journal + request lines include subagent requests; so the true cost of Soul passes and mutation + runs is unknown. +- Quota weight per token class and per model; the meter's values. +- Tool-call level activity for any finished run (no transcripts); the classification + rests on closing texts cut to 650 chars. +- gamecult-ops #78 and all private repos; deploys and artifacts per Mind. +- The effect of the 11-10/11 fixes: no run had started on the 17 KB skill by 05:37. +- How many of the 2,093 Persona briefs were claimed, left waiting or dropped. +- The 818M versus 1,032M difference for 11-10. + +Evidence files (Starfire, session scratchpad, not retained): journal extracts per Mind, +Persona raw pulls, the turn table for 11-10 (`turns.csv`), forge PR rows (`rows.json`), +and the Starfire usage script. From fc325592d9548ce70aacf51776212befe54b2895 Mon Sep 17 00:00:00 2001 From: Eureka Date: Wed, 11 Nov 2026 07:43:41 +0000 Subject: [PATCH 11/20] INDEX: how a Self seat runs the mutation tools (noexec mount, no ygg/docker; native cargo-mutants path) Co-Authored-By: Claude Sonnet 5.5 --- tools/INDEX.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tools/INDEX.md b/tools/INDEX.md index 4aaa236..8482ff8 100644 --- a/tools/INDEX.md +++ b/tools/INDEX.md @@ -17,3 +17,34 @@ gets a Soul pass before merge. | `tools/test-tools.sh` | Local fixture check of the parsers and the summary over `tools/fixtures/logs` (real cargo and mutation logs, plus hand-written dotnet, vitest, jest, pytest, exit-0-but-failed and no-verdict logs), and of the mutation runners' host drivers and container halves (`tools/mutation-table.sh`, `tools/cargo-mutants.sh`) under a mock docker, a fake `cargo mutants` and real slot locks. Run it before merging a change to the scripts above. | whoever changes those scripts | `SKILL.md` (Shared tools) | | `tools/context-pack.py` | `py -3 tools/context-pack.py [--since ] [--only \|r[,...]] [--max-lines ]`. Carries a cut_spec's `file_changes` and `reads` anchors (read rows `r`; a read absent at base is MISSING) from the spec's base to the worktree by `git diff` hunks (the working tree included) and prints one header, a status table (SAME, MOVED, TOUCHED, RENAMED, NEW, GONE, OUT_OF_RANGE, UNRESOLVED, MISSING, plus SYMBOL_MISSING when an anchor's `symbol` is absent from its window) and windows of at most 100 lines numbered in worktree lines, then one capped caller list per symbol (`git grep`, hits outside the windows), within `--max-lines` (800). Exit 3 when an anchor cannot be carried, 4 when the spec is unreadable. The spec is the document `huginn view --raw ` prints, saved to a file or piped to `-`; context-pack never fetches it, and an Unavailable from huginn is the caller's one retry. `--since ` re-prints only the windows edited since that commit. Standard library plus git; writes nothing. | Hands, Soul, Imagination | `references/briefs.md` (Imagination map, Hands, Soul), `SKILL.md` (step 1) | | `tools/bloom-sheet/bloom_sheet.py` | `bloom-sheet notes.md -o sheet.png [--visitor a.svg]...`: a markdown document as one neon A4 page. The first top-level heading is the title, every other heading a card sized by its text; a plant grows through what's left, and each SVG visitor gets a disc it grows around and is drawn with the plant's pen, so it must be flat strokes or fills that touch; large fills become a wash and a heavy outline. PDF or PNG, about 2.5 minutes. `grow.py` owns the plant, `page.tex` the look, `test_visitors.py` what a visitor may be. | Minds and Self, for info renders | the `bloom-sheet` skill; `bloom-sheet` on Yggdrasil's PATH | + +## From a Self seat on Yggdrasil + +A Mind's Self run reads these scripts from a read-only, `noexec` tmpfs mount of +the skill, and holds no Docker socket and no `ygg` ssh alias. So: + +- `tools/