Date: 2026-03-15
This document reconstructs the comparison work that was in progress across the source Sovereign repo, the HLF_MCP product repo, and the local uncommitted MCP implementation changes.
- The working principle was: the README is acting as the product spec, and code is expected to catch up to it.
- MCP work was being judged against the Sovereign instructions that require MCP workflow integrity, no stale docs, and no drift between README and implementation.
- The comparison was not a simple code diff. It was a cross-check between source documentation, source MCP server behavior, the standalone HLF_MCP README claims, and the local implementation state.
Files:
hlf_source/README.mdhlf_source/mcp/sovereign_mcp_server.py
What it is:
- An operations bridge for the Sovereign Agentic OS and Antigravity.
- Focused on health checks, intent dispatch, dream cycles, findings, governance, and memory/archive access.
Recovered finding:
- The source README describes this as exposing
8 secure tools. - The actual implementation in
hlf_source/mcp/sovereign_mcp_server.pyexposes substantially more than 8 tools because it includes the Janus/search/archive/vault tool family as well. - The source repo therefore already had internal docs-to-code drift before the standalone HLF_MCP work began.
Representative tool set found in code:
check_healthdispatch_intentrun_dream_cycleget_hat_findingslist_align_rulesget_system_statequery_memoryget_dream_historysearch_archivesview_thread_historydeep_recallvault_similarvault_statsjanus_web_searchjanus_advanced_searchextract_pageingest_urlsummarize_text
Files:
README.mdhlf_mcp/server.py
What it is:
- A standalone HLF-first MCP product, not just the Antigravity bridge.
- Focused on compiler, runtime, translation, capsule, memory, instinct, and benchmark tooling.
Recovered finding:
- The README advertises a
FastMCP server: 22 tools, 7 resources. - The README tools section lists the HLF-first product surface, including compiler, translation, capsule, memory, instinct, and benchmarking tools.
- The resource section in the same README already drifts from the earlier summary count and lists more than 7 resources.
Files:
hlf/mcp_tools.pyhlf/compiler/*hlf/vm/*test_all_tools.pytest_pipeline.py
What it appears to be:
- A local effort to retrofit or port the standalone HLF_MCP product surface into the older
hlf/provider architecture. - This is not a finished cleanup. It is an in-progress convergence layer.
Recovered finding:
- The local patch in
hlf/mcp_tools.pynow defines32tools. - That count is explained by preserving the old 10-tool provider surface and then adding the 22-tool README-era HLF surface on top.
- In other words, the local patch currently overshoots the standalone README spec because it combines legacy and new tool inventories instead of choosing one canonical surface.
Claimed MCP scope in docs:
8 secure tools
Observed scope in code:
- ~18 tools
- 2 resources (
sovereign://settings,sovereign://build-plan)
Conclusion:
- Source repo docs were already stale relative to source code.
Claimed HLF MCP scope in docs:
22 tools7 resources
README listed tools:
hlf_compilehlf_formathlf_linthlf_validatehlf_runhlf_disassemblehlf_translate_to_hlfhlf_translate_to_englishhlf_decompile_asthlf_decompile_bytecodehlf_similarity_gatehlf_capsule_validatehlf_capsule_runhlf_host_functionshlf_host_callhlf_tool_listhlf_memory_storehlf_memory_queryhlf_memory_statshlf_instinct_stephlf_instinct_gethlf_spec_lifecyclehlf_benchmarkhlf_benchmark_suite
Recovered finding:
- The tool table itself lists
24names, not 22. - So the README is internally inconsistent: the summary count and the detailed table do not agree.
Observed in hlf_mcp/server.py:
25tools9resources
Tools found in code:
hlf_compilehlf_formathlf_linthlf_runhlf_validatehlf_benchmarkhlf_benchmark_suitehlf_disassemblehlf_memory_storehlf_memory_queryhlf_memory_statshlf_instinct_stephlf_instinct_gethlf_translate_to_hlfhlf_translate_to_englishhlf_decompile_asthlf_decompile_bytecodehlf_capsule_validatehlf_capsule_runhlf_host_functionshlf_host_callhlf_tool_listhlf_similarity_gatehlf_spec_lifecyclehlf_submit_ast
Resources found in code:
hlf://grammarhlf://opcodeshlf://host_functionshlf://examples/{name}hlf://governance/host_functionshlf://governance/bytecode_spechlf://governance/align_ruleshlf://governance/tag_i18nhlf://stdlib
Conclusion:
- The standalone server is ahead of the README counts.
hlf_submit_astandhlf://governance/tag_i18nare visible implementation additions beyond the earlier simplified README summary.
Observed in local uncommitted hlf/mcp_tools.py:
- Original legacy surface retained:
hlf_compilehlf_executehlf_validatehlf_friction_loghlf_self_observehlf_get_versionhlf_composehlf_decomposehlf_analyzehlf_optimize
- New README-era HLF surface added on top:
hlf_formathlf_linthlf_runhlf_disassemblehlf_translate_to_hlfhlf_translate_to_englishhlf_decompile_asthlf_decompile_bytecodehlf_similarity_gatehlf_capsule_validatehlf_capsule_runhlf_host_functionshlf_host_callhlf_tool_listhlf_memory_storehlf_memory_queryhlf_memory_statshlf_instinct_stephlf_instinct_gethlf_spec_lifecyclehlf_benchmarkhlf_benchmark_suite
Conclusion:
- The local patch is a convergence attempt, not a final aligned state.
- It blends legacy provider responsibilities with the newer standalone product tool surface.
These conclusions are strongly supported by surviving files, memory, and local changes:
- The main problem was not just missing code. It was canonicality drift.
- The source Sovereign MCP server and the standalone HLF_MCP server are different products with different responsibilities.
- The local uncommitted work was likely trying to port standalone HLF_MCP capabilities into the old provider stack without yet deleting or deprecating the legacy tools.
- The README cannot currently be treated as numerically authoritative because its own tool/resource counts drift from the tables and the implementation.
- Before committing anything, one canonical MCP surface needs to be chosen:
- keep the standalone HLF-first server as canonical,
- or keep the old provider API as canonical,
- or explicitly support both as separate modes with different names.
- Decide whether
hlf_mcp/server.pyorhlf/mcp_tools.pyis the canonical MCP interface. - If
hlf_mcp/server.pyis canonical, deprecate or narrow the legacy provider-only tools instead of duplicating surfaces. - Update README counts to match the real tool and resource inventory.
- Exclude generated runtime artifacts like
data/hlf_hot_store.dbfrom any commit. - Validate the local compiler/VM changes before trusting the ported tool behavior.
- HLF is a capability amplifier.
- The README was being treated as the spec target.
- Prior session notes already captured specific metrics API fixes and pending validation work.
- Remaining tasks recorded in memory were: full pytest run, VS Code MCP wiring, smoke test, and commit/push.