Andrew Hundt
|
7626a5b14f
|
mcp.c: OOM-safe guards + notes/ documentation with mermaid diagrams
OOM fixes (applied to both feature branches):
1. trace_call_path: calloc for seen_out/seen_in dedup arrays gracefully
degrades on OOM — skips dedup instead of NULL-dereference crash
2. build_snippet_response: head_tail combined buffer malloc falls back
to head-only output on OOM instead of NULL snprintf
Documentation (notes/ folder):
- notes/token-reduction-changes.md: 8 RTK-inspired strategies, config
system, real-world results, mermaid architecture diagram
- notes/reference-api-indexing-changes.md: 7-layer AI grounding defense,
QN prefix format, deferred work, mermaid flow diagram
- notes/merged-branch-changes.md: branch lineage gitGraph, combined
architecture diagram, snippet mode decision flow, token reduction
pipeline per tool, test coverage, merge conflict resolution
Tests: 2064 passed, 0 failed
Signed-off-by: Andrew Hundt <ATHundt@gmail.com>
|
2026-03-20 14:30:46 -04:00 |
|