feat: add Raw Model validation hook for package management tools#34
Merged
Conversation
jeanmachuca
added a commit
that referenced
this pull request
Jul 5, 2026
jeanmachuca
added a commit
that referenced
this pull request
Jul 7, 2026
* fix: remove MCP-aware code from Raw Model client (#18) cograw is a pure firmware GGUF guardrail with no knowledge of MCP tools. - Remove ParseResponse, RegisterTool, UnregisterTool client methods - Remove handleMCPInvoke handler and mcp_invoke dispatch - Remove tool forwarding to cograw from MCP register/unregister - Remove RegisteredTools/ServerTools dead code from MCPManager - Move tool call parsing (@@tool.name()@@ regex) into daemon itself - Remove ToolInfo, MCPInvokePayload types (ToolCall kept for daemon use) - Simplify ValidatePrompt to take prompt only (no tools param) * fix: origin validation for security/reset codes, seccomp/cgroups/chroot on MCP spawn, healthcheck loop, graceful shutdown handshake (#19) * wire Wide Model lifecycle: handleWideModelLoad/Unload, output routing by content_type, MCP result feedback loop, shutdown actions (peripheral power-off/suspend/data wipe), StateIdleRequested, patchCount in status, idle timer startup sequence (#20) * fix: origin validation for security/reset codes, seccomp/cgroups/chroot on MCP spawn, healthcheck loop, graceful shutdown handshake (#30) * wire Wide Model lifecycle: handleWideModelLoad/Unload, output routing by content_type, MCP result feedback loop, shutdown actions (peripheral power-off/suspend/data wipe), StateIdleRequested, patchCount in status, idle timer startup sequence (#29) * feat: add Raw Model validation hook for package management tools (#34) * feat: multi-model routing — model registry, hot-swap, config-driven RawModelPath (#36) * feat: multi-model routing — model registry, hot-swap, config-driven RawModelPath, system prompt merge * fix: restore WideModelStatus struct with ModelID field (was accidentally removed in model registry refactor) * fix: remove NoNewPrivileges for Go 1.23 compatibility
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.
Wires daemon-side validation for cognitiveos.package.* tool calls through the Raw Model.
PackageValidationResult, PackageRegistryManifest types
operationFromTool(), fetchManifestMetadata()
tools, fetches registry metadata, calls Raw Model, forwards or denies