Clean swarm Face state pockets

This commit is contained in:
Meta Vens 2026-05-22 20:24:58 +01:00
commit 8b4ded235b
2 changed files with 36 additions and 1 deletions

View file

@ -1831,7 +1831,40 @@ function renderRepoFaceStatePacket(
return `You are ${name}, but your durable state is thin. Use the room, repo, and your jurisdiction to form a real opinion before speaking.`;
}
return rejectLeakyMemorySurface(lines.join("\n\n"));
return rejectLeakyMemorySurface(cleanRepoFaceProjectorLoopVocabulary(identity, lines.join("\n\n")));
}
function cleanRepoFaceProjectorLoopVocabulary(
identity: RepoDiscordIdentity,
surface: string,
): string {
let cleaned = surface
.replace(/\bLocalCastBridge\b/g, "the retired bridge alias")
.replace(/\bwet-voice-01\b/g, "the old voice-demo artifact")
.replace(/\bwet-voice\b/g, "old voice-demo")
.replace(/\bcanary-style\b/gi, "small-scope")
.replace(/\bnamed canary\b/gi, "named small-scope check")
.replace(/\bcanary utterance\b/gi, "small-scope utterance")
.replace(/\bcanary demo\b/gi, "small-scope demo")
.replace(/\bcanary\b/gi, "small-scope check")
.replace(/\bwitness receipts?\b/gi, "reviewable evidence")
.replace(/\bwitness data\b/gi, "proof data")
.replace(/\bwitness-first\b/gi, "evidence-first")
.replace(/\bwitness demo\b/gi, "proof demo")
.replace(/\bwitness artifact\b/gi, "evidence artifact")
.replace(/\bwitness culture\b/gi, "proof ceremony")
.replace(/\bwitness ceremon(?:y|ies)\b/gi, "proof ceremony");
if (identity.id !== "nibu") {
cleaned = cleaned
.replace(/\bwitnessability\b/gi, "inspectability")
.replace(/\bwitnesses\b/gi, "evidence points")
.replace(/\bwitnessing\b/gi, "inspection")
.replace(/\bwitnessed\b/gi, "measured")
.replace(/\bwitness\b/gi, "evidence");
}
return cleaned;
}
function sortAffectByStatusAndIntensity(

View file

@ -280,3 +280,5 @@
{"ts":"2026-05-22T18:53:46Z","type":"implementation","status":"ok","note":"Mimir live Face state scrubbed: retired LocalCastBridge/OBS/wet-voice/witness-gate pressures, installed body-first six-sensor/audio/remote/sync sequence, and removed witness wording from canonical strengthening notes."}
{"ts":"2026-05-22T19:02:02Z","type":"verification","status":"ok","note":"Mimir scrub verified through typed-state and prompt projection: active Mimir state has zero live matches for retired-alias/wet-voice/witness/canary loop terms; regenerated prompt contains those words only in raw transcript correction evidence, not projected state. Projector prompt now forbids reskinning corrected loop vocabulary as mythic identity prose."}
{"ts":"2026-05-22T19:12:12Z","type":"fix","status":"ok","note":"Fixed Void self-state write semantics so retired typed entries are pruned from current documents instead of retained as tombstones. Repaired Mimir's .cc: file shrank from about 54KB to 27KB, retains 8 global typed documents, has zero retired entries in typed arrays, and raw bytes no longer contain LocalCastBridge/wet-voice/witness/canary residue."}
{"ts":"2026-05-22T19:23:18Z","type":"maintenance","status":"ok","note":"Ran swarm-wide .cc hygiene after Mimir exposed retained tombstones. Repo Face state files now repair through pruned writes: all registered repo Faces retain 8 global typed documents with zero retired entries; collapse loop terms LocalCastBridge/wet-voice/canary were removed from active repo Face .cc state except Nibu's legitimate Aetheria witness vocabulary. Void's own self-state was also repaired, shrinking from about 171KB to 135KB and removing 5 retired memories, 5 retired agency pressures, and 11 retired interventions."}
{"ts":"2026-05-22T19:24:10Z","type":"maintenance","status":"ok","note":"Completed swarm-wide state pocket-cleaning. Repaired all registered repo Face .cc files and Void self-state with pruned write semantics, removed old proof-loop receipts/state from Aqua/Epiphany/Libby/Bifrost and stale LocalCastBridge memories/cursor entries from Void, verified registered Face state files have 8 envelopes and zero retired entries; only Nibu retains witness wording as active Aetheria continuity/residue vocabulary."}