community icon indicating copy to clipboard operation
community copied to clipboard

Debug / explain mode for context mounting

Open nierclaw-sudo opened this issue 8 months ago • 2 comments

I'd really like a debug / explain mode for context mounting.

Once a memory system starts combining multiple recall surfaces, the next question is always: why did these items make it into active context, and why did other plausible items not make it?

That is a little different from ordinary retrieval explanation.

Retrieval explanation is basically: "why was this memory found?"

Mounting explanation is: "why did this memory win a slot in the final active context?"

That distinction starts to matter as soon as selection is happening across:

  • Working Memory
  • search hits
  • thread evidence
  • crystals
  • graph-linked memories

Without some visibility into that final selection step, recall tuning gets hard. When a mounted memory feels off, or when something obviously useful is missing, there isn't much to inspect besides the raw returned set.

What would already help a lot is a lightweight debug mode that annotates mounted items with things like:

  • source surface
  • score / score breakdown
  • token cost
  • short selection reason

Optionally it would also be useful to expose near-miss candidates that got dropped because of budget pressure.

I don't think this needs to be part of the default output. A verbose/debug-only mode would be enough.

From the integration side, this would make it much easier to tune mounting policy without guessing which signal actually dominated the final choice.

From the NMEM side, I think it would also make backend-side recall quality a lot easier to inspect and improve.

nierclaw-sudo avatar Apr 01 '26 05:04 nierclaw-sudo

Thanks for reporting this. I’m doing a full issue sweep today so recent bugs do not sit without a maintainer response.

I’m keeping this open for now rather than guessing. It stays in the active triage set until we either confirm it is already fixed in recent work or turn it into a concrete implementation task.

wey-gu avatar Apr 21 '26 06:04 wey-gu

Thanks for opening this, and welcome. I’m doing a full issue sweep today so older requests do not just sit here unanswered.

I’m keeping this open as backlog / product planning, not closing it away. When we touch this area more concretely, I’ll try to come back here with either a design direction or an implementation update.

wey-gu avatar Apr 21 '26 07:04 wey-gu