drop 7 dead copilot.go methods, all superseded by a live sibling - #379
Merged
Merged
Conversation
clearMRUCategory: superseded by clearMRUBySourceAndScope/ clearMRUForTopicSwitch, both still live with more specific filtering. renderToolDefinitionContext: standalone orphan, no live caller anywhere. summarizeAskOutcomeMRU: thin wrapper around buildAskOutcomeMRUItems + renderAskOutcomeMRUItems, both of which are called directly elsewhere. resolvePersona: wrapper around resolvePersonaWithMetadata, which is itself still called directly. getScriptToolsPrompt: legacy text-prompt builder for available scripts, superseded by listStoredScriptTools' native ai.ToolDefinition list, same era as BaselineReActEngine (removed earlier tonight, PR #368). logThought: episodic-memory logging call, its only caller was BaselineReActEngine.Run, already gone. runScriptRaw: superseded by runScript/executeScriptSteps.
Gemini PR ReviewThis pull request primarily involves the removal of several functions and associated imports from the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
7 more from the U1000 pile, each traced to a specific live replacement rather than just deleted on sight:
Also flagging something found while investigating this pile that I did NOT touch: active_memory.go's triggerSpaceAutoEnrichment has zero callers too, but unlike the above it's not superseded, it looks like a genuinely incomplete feature. KnowledgeBaseConfig.AllowAutoEnrichment is a real, settable field (wired through update_space_config), but nothing anywhere ever reads it except this one function, which nothing ever calls - no scheduler exists to wire it into without designing new Service-level periodic-task infrastructure. Left it alone and out of this PR since it's a bigger call than a same-cycle cleanup, noted for follow-up.
Build+vet+gofmt+test clean.