Skip to content

fix: native compress telemetry crashes with HIVE_BACKEND=native - #66

Draft
cursor[bot] wants to merge 10 commits into
mainfrom
cursor/critical-bug-investigation-14ef
Draft

fix: native compress telemetry crashes with HIVE_BACKEND=native#66
cursor[bot] wants to merge 10 commits into
mainfrom
cursor/critical-bug-investigation-14ef

Conversation

@cursor

@cursor cursor Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Bug and impact

HiveStack.compress() crashes with NameError when the native backend path is used and telemetry is enabled. Any deployment with backend="native" (or HIVE_BACKEND=native with an explicit rust_brain) plus telemetry will fail on every compression call — including MCP hive_compress and step() flows.

Root cause

The native compress branch builds a result CompressedTurn, but the telemetry block still referenced the Python-only out variable from the other branch.

Fix and validation

  • Record telemetry from result.* fields (works for both native and Python paths).
  • Added regression test test_native_compress_with_telemetry_does_not_crash.
  • Verified: 5 targeted tests pass (new test + HLC snapshot/gossip suite).
Open in Web View Automation 

cursoragent and others added 10 commits August 25, 2026 17:30
Tier 1: Add uv.lock, pre-commit, Dependabot, ruff config, Python 3.13 CI,
and fix HLC preservation on snapshot restore and gossip replay.

Tier 2: Add server/mcp/agents/http optional extras, long-context compression
eval script, and CI smoke jobs for MCP and long-context workloads.

Tier 3: Wire HIVE_BACKEND in HiveStack, implement LinUCB policy updater,
and add httpx async LLM client support.

Tier 4: Refresh enterprise roadmap and improvement plan, add pip-audit/SBOM
CI jobs, bump Jetson Docker base image, and enable nightly GPU smoke CI.

Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
Reflect PR #62 changes: new optional extras, HIVE_BACKEND, LinUCB,
MCP/server deployment, 200-test CI matrix, uv.lock/pre-commit, and
upcoming PFN busyBee training-mode integration.

Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
- README outcome table: HLC fix, MCP, long-context eval, HIVE_BACKEND, LinUCB
- New docs/WHATS_NEW.md with tier summary and Twitter-ready copy
- CHANGELOG [Unreleased] docs entry; dedupe [full] install block in README

Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
- Rewrite hive.mcp_server for MCP 2.x MCPServer API (hive-mcp console script)
- Add client config generator, installer, and project .cursor/mcp.json
- Document setup in docs/MCP_SETUP.md and harness wiring in docs/HARNESS_SETUP.md
- Add hive.harness.load_routing_policy() for SWE-bench eval (busyBee or rules)
- Add integration tests; 214 tests passing

Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
HiveStack.compress() native path built `result` but telemetry still
referenced Python-only `out`, causing NameError when backend=native,
rust_brain is provided, and telemetry is enabled.

Co-authored-by: Daniel <DJLougen@users.noreply.github.com>
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