feat(cortex): MCP connector engine — folder-scope + permission enforcement, live token auth, origin tagging, grounding gate#106
Merged
Conversation
…, patterns, SPARQL, DAG)
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.
@
Qué
Cambios en el motor MCP (
aingle_cortex) que sustentan el Conector de IA de Akashi. La criptografía no se toca.Seguridad / control
aingle_ground,aingle_sources,aingle_note_context,aingle_backlinks,aingle_vault_map, y tambiénlist_subjects,query_pattern,list_triples,get_triple,sparql(SELECT/CONSTRUCT/ASK) ydag_history/dag_action/dag_chain. Los subjects son rutas de nota, así que sin esto se filtraban estructura y frontmatter de carpetas excluidas.ingest,create_triple,batch_insert,delete_triple,sandbox_*,dag_prune) se rechazan salvo que el usuario habilite escritura.McpPolicy(scope + permiso + require_grounding) vive enAppStatey se aplica por petición.Fundamentación
aingle_groundhonrarequire_grounding: si no hay evidencia suficiente devuelveanswerable:falsesin fragmentos, para que la IA diga "no está en tus notas" en vez de inventar.answerable=falsetambién cuando todo el contexto quedó excluido por carpeta.Auditoría
mcp, para que Akashi liste "lo que hizo tu IA" con firma y procedencia.Pruebas
cargo test -p aingle_cortex --features mcp-http --lib mcp::→ 19 verdes (policy enforcement, live token rotation, grounding gate, origin tagging). Build limpio con y sin--features mcp.Notas
is_hiddensensible a mayúsculas (follow-up en sistemas case-insensitive).require_groundinges el flag M2 que estaba inerte, ahora funcional.@