consciousness/poc-memory/src
Kent Overstreet 3a8575b429 agents: fix vllm crash on malformed tool args, always use API
Three fixes:

1. Sanitize tool call arguments before pushing to conversation
   history — vllm re-parses them as JSON on the next request and
   crashes on invalid JSON from a previous turn. Malformed args now
   get replaced with {} and the model gets an error message telling
   it to retry with valid JSON.

2. Remove is_split special case — split goes through the normal
   job_consolidation_agent path like all other agents.

3. call_for_def always uses API when api_base_url is configured,
   regardless of tools field. Remove tools field from all .agent
   files — memory tools are always provided by the API layer.

Also adds prompt size guard (800KB max) to catch oversized prompts
before they hit the model context limit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 14:33:36 -04:00
..
agents agents: fix vllm crash on malformed tool args, always use API 2026-03-20 14:33:36 -04:00
bin Add find-deleted diagnostic tool 2026-03-18 22:57:12 -04:00
cli consolidation: data-driven agent plan, drop transfer/connector/replay 2026-03-20 14:02:28 -04:00
neuro cleanup: fix all build warnings, delete dead DMN context code 2026-03-20 14:20:34 -04:00
query render: deduplicate footer links against inline references 2026-03-20 13:37:29 -04:00
store cleanup: fix all build warnings, delete dead DMN context code 2026-03-20 14:20:34 -04:00
config.rs config: derive Deserialize on Config, eliminate manual field extraction 2026-03-20 14:10:57 -04:00
counters.rs counters: add redb-backed persistent counters (skeleton) 2026-03-10 23:59:39 -04:00
cursor.rs Clean up unused imports, dead code, and compiler warnings 2026-03-17 00:47:52 -04:00
graph.rs graph: community isolation scoring + sort:isolation query 2026-03-20 12:55:14 -04:00
lib.rs Remove dead action pipeline: parsing, depth tracking, knowledge loop, fact miner 2026-03-17 00:37:12 -04:00
lookups.rs split into workspace: poc-memory and poc-daemon subcrates 2026-03-08 20:43:59 -04:00
main.rs graph: community isolation scoring + sort:isolation query 2026-03-20 12:55:14 -04:00
migrate.rs provenance: convert from enum to freeform string 2026-03-11 01:19:52 -04:00
similarity.rs Agent identity, parallel scheduling, memory-search fixes, stemmer optimization 2026-03-15 12:49:10 -04:00
spectral.rs Upgrade workspace to edition 2024, add --local flag to agent run 2026-03-18 22:44:36 -04:00
transcript.rs Agent identity, parallel scheduling, memory-search fixes, stemmer optimization 2026-03-15 12:49:10 -04:00
tui.rs consolidation: data-driven agent plan, drop transfer/connector/replay 2026-03-20 14:02:28 -04:00
util.rs util: add jsonl_load/jsonl_append helpers, convert graph.rs 2026-03-10 15:22:03 -04:00