From d408e1a1f44767e6a4ee6d4ef832df77d8b93cce Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 05:53:04 +0000 Subject: [PATCH 1/2] chore: bump manifest version [skip ci] --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 797691d..2fff695 100644 --- a/manifest.json +++ b/manifest.json @@ -6,6 +6,6 @@ "js": "index.js", "css": "style.css", "author": "Youzini", - "version": "7.1.4", + "version": "7.1.5", "homePage": "https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology" } From 8d0e3e558e72cdfa31b87cb2cc843a079bf5feca Mon Sep 17 00:00:00 2001 From: youzini Date: Mon, 1 Jun 2026 06:49:20 +0000 Subject: [PATCH 2/2] chore(recall): remove reroll-trace diagnostics after Phase 1 verified --- host/event-binding.js | 20 ----------------- retrieval/recall-controller.js | 39 +--------------------------------- 2 files changed, 1 insertion(+), 58 deletions(-) diff --git a/host/event-binding.js b/host/event-binding.js index 44f2ce0..981fa0c 100644 --- a/host/event-binding.js +++ b/host/event-binding.js @@ -611,26 +611,6 @@ export async function onGenerationAfterCommandsController( return; } - if (globalThis.__stBmeDebugLoggingEnabled === true) { - const tail = Array.isArray(chat) - ? chat.slice(-3).map((m, i) => ({ - idx: chat.length - 3 + i, - is_user: Boolean(m?.is_user), - hasRecall: Boolean(m?.extra?.bme_recall), - mes: String(m?.mes || "").slice(0, 40), - })) - : null; - console.warn("[ST-BME][reroll-trace] AFTER_COMMANDS enter", { - type, - generationContextType: generationContext?.type || null, - generationContextKind: generationContext?.kind || null, - recallOptionsSource: recallOptions?.overrideSource || recallOptions?.source || null, - recallOptionsType: recallOptions?.generationType || null, - targetUserMessageIndex: recallOptions?.targetUserMessageIndex ?? null, - chatTail: tail, - }); - } - const recallContext = runtime.createGenerationRecallContext({ hookName: "GENERATION_AFTER_COMMANDS", generationType, diff --git a/retrieval/recall-controller.js b/retrieval/recall-controller.js index 6f85716..3018c87 100644 --- a/retrieval/recall-controller.js +++ b/retrieval/recall-controller.js @@ -1,6 +1,6 @@ // ST-BME: 召回输入解析与注入控制器(纯函数) -import { debugLog, debugWarn } from "../runtime/debug-logging.js"; +import { debugLog } from "../runtime/debug-logging.js"; import { isSystemMessageForExtraction } from "../maintenance/chat-history.js"; export function buildRecallRecentMessagesController( @@ -162,12 +162,6 @@ function resolveReusablePersistedRecallRecord(chat, recallInput, runtime) { } if (!Number.isFinite(targetUserMessageIndex)) { - debugWarn("[ST-BME][reroll-trace] no target user floor resolved", { - generationType, - recallSource, - currentRecallInputText: currentRecallInputText.slice(0, 60), - chatLength: Array.isArray(chat) ? chat.length : null, - }); return null; } @@ -176,12 +170,6 @@ function resolveReusablePersistedRecallRecord(chat, recallInput, runtime) { const record = readPersistedRecallFromUserMessage(chat, targetUserMessageIndex); if (!record?.injectionText) { - debugWarn("[ST-BME][reroll-trace] target floor has no persisted recall record", { - generationType, - recallSource, - targetUserMessageIndex, - targetUserFloorText: String(targetMessage?.mes || "").slice(0, 60), - }); return null; } @@ -244,34 +232,9 @@ function resolveReusablePersistedRecallRecord(chat, recallInput, runtime) { !canReuseUnboundTargetRecord && !canTrustUserFloorRecord ) { - debugWarn("[ST-BME][reroll-trace] reuse REJECTED", { - generationType, - recallSource, - targetUserMessageIndex, - isActiveInputSource, - isNoNewUserGeneration, - hasRecord: Boolean(record?.injectionText), - currentUserFloorText: currentUserFloorText.slice(0, 60), - currentRecallInputText: currentRecallInputText.slice(0, 60), - recordRecallInput: recordRecallInput.slice(0, 60), - boundUserFloorText: boundUserFloorText.slice(0, 60), - matchesPersistedRecord, - canReuseUnboundTargetRecord, - canTrustUserFloorRecord, - recordRecallInputMismatch, - }); return null; } - debugWarn("[ST-BME][reroll-trace] reuse ACCEPTED", { - generationType, - recallSource, - targetUserMessageIndex, - matchesPersistedRecord, - canReuseUnboundTargetRecord, - canTrustUserFloorRecord, - }); - return { record, targetUserMessageIndex,