Skip to content

fix(honcho): include manager-scoped honcho.json settings in gateway cache signature#33440

Open
Dusk1e wants to merge 1 commit into
NousResearch:mainfrom
Dusk1e:fix/gateway-honcho-manager-cache-busting
Open

fix(honcho): include manager-scoped honcho.json settings in gateway cache signature#33440
Dusk1e wants to merge 1 commit into
NousResearch:mainfrom
Dusk1e:fix/gateway-honcho-manager-cache-busting

Conversation

@Dusk1e

@Dusk1e Dusk1e commented May 27, 2026

Copy link
Copy Markdown
Contributor

Summary

The gateway cache signature only fingerprints Honcho peer-mapping fields today, but HonchoSessionManager freezes a wider config subset at init. As a result, some honcho.json edits are ignored until an unrelated cache eviction or restart rebuilds the cached agent.

This patch extends the Honcho cache-busting subset to include the manager-scoped settings that are baked into HonchoSessionManager construction, and adds regression coverage for those settings.

Problem

HonchoSessionManager snapshots settings like:

  • contextTokens
  • writeFrequency
  • dialecticReasoningLevel
  • dialecticDynamic
  • dialecticMaxChars
  • observation-derived booleans
  • messageMaxChars
  • dialecticMaxInputChars

But the gateway cache signature only covered peer routing / identity fields. That meant editing those manager-scoped settings in honcho.json would not take effect on the next gateway message if the cached agent was reused.

Fix

Extend GatewayRunner._extract_cache_busting_config() to fingerprint the manager-scoped Honcho settings that are frozen by HonchoSessionManager at init.

Add regression coverage verifying that changing each of these settings changes both:

  1. the extracted Honcho cache-busting subset
  2. the final agent config signature

Tests

Ran:

  • tests/honcho_plugin/test_pin_peer_name.py
  • tests/gateway/test_agent_cache.py

Precedent

This follows the same cache-busting pattern established in:

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins labels May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants