Skip to content

Advisory @WRN on stderr is easy for LLM tool loops to ignore #19

Description

@chouswei

Summary

Operational signals (stale_in_store, near_cap*, ttl_expiring, mission_settled) are emitted on stderr as @WRN lines. MCP folds them into the JSON envelope, but agents typically reason over stdout wire only.

Evidence

  • Emission: src/memnet/output.py; documented in README.md / LLM-GUIDE.md ("Warnings live on stderr — you must read them").
  • MCP: MemNetResponse carries stderr plus errors[] (errors from @ERR); warnings are not first-class structured fields.
  • Domain pipelines often call run_memnet and parse stdout (e.g. warm supplements) without branching on warnings.

Impact

Sessions expire, caps fill, and stale rows accumulate without the agent adjusting behaviour — exactly the failure mode the goldfish loop tries to prevent.

Suggested direction

Promote top warnings into structured MCP fields (warnings: [{code, msg}]) and/or echo critical warnings into warm stdout as @WRN rows when serving agents.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions