Skip to content

knowledge MCP: emit agent-core TraceEvent on knowledge_context_pack (live path)#23

Merged
Svaag merged 1 commit into
mainfrom
chore/mcp-context-pack-emit
Jun 29, 2026
Merged

knowledge MCP: emit agent-core TraceEvent on knowledge_context_pack (live path)#23
Svaag merged 1 commit into
mainfrom
chore/mcp-context-pack-emit

Conversation

@Svaag

@Svaag Svaag commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Phase 2 wired emission into the CLI (cmd_context_pack) + enrich path, but the live
knowledge path engineering-loop uses is the MCP server (knowledge_context_pack tool).
This wires emit_context_pack there too, so the running MCP server emits a context-pack
TraceEvent per call.

To actually emit from the deployed MCP container, the knowledge_mcp role still needs the flag

  • sink env (part of the knowledge go-live step).

🤖 Generated with Claude Code

The live knowledge path engineering-loop queries is the MCP server, not the CLI. Wire emit_context_pack into the knowledge_context_pack tool (mirrors cmd_context_pack) so the running MCP server emits a context-pack TraceEvent. Flag-gated + best-effort (off by default; no-op without HYRULE_KNOWLEDGE_AGENT_CORE_TRACE). ruff + mypy --strict clean; 97 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Svaag Svaag merged commit ec0ea65 into main Jun 29, 2026
1 check passed
@Svaag Svaag deleted the chore/mcp-context-pack-emit branch June 29, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant