mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
* docs: add token budget enforcement analysis and fix plan Document root cause of context window overflow (2.7M tokens sent to 1M model): L4 chat history bypasses all compaction systems. Add fix plan with phased approach to enforce token budget at message assembly point. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: correct root cause analysis — L1 unbudgeted, not L4 Previous analysis incorrectly blamed L4 chat history as the primary culprit. Investigation shows L4 stores only bare L5 text + compacted responses. The real issue is systemic: no total payload enforcement, with L1 (project context) being the largest unbudgeted layer and PROJECT_COMPACT_THRESHOLD being blind to L1 size. Updated fix plan to be model-agnostic (use autoCompactThreshold as single budget, no model-specific lookup tables), added contextTurns deprecation, and history guarantee principle. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: hard cap L1 project context at 600k tokens + payload diagnostics - Truncate project context at 2.4M chars (~600k tokens) to prevent total payload from exceeding model context windows (temporary fix until full token budget enforcement is implemented) - Add per-layer token estimate logging when payload exceeds 2M chars to help diagnose context window overflow reports - Document Obsidian CLI dev tools in CLAUDE.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| AGENT_PLANNING_REFLECTION_V0.md | ||
| AGENT_REASONING_BLOCK.md | ||
| BEDROCK_TOOL_CALLING.md | ||
| CITATION_IMPLEMENTATION.md | ||
| CONTEXT_ENGINEERING.md | ||
| deprecating-intent-analyzer.md | ||
| MESSAGE_ARCHITECTURE.md | ||
| MIYO_SEARCH_PLAN.md | ||
| NATIVE_TOOL_CALLING_MIGRATION.md | ||
| SELF_HOSTED_SEARCH.md | ||
| TECHDEBT.md | ||
| TODO-composer-tool-redesign.md | ||
| TOKEN_BUDGET_ENFORCEMENT.md | ||
| TOOLS.md | ||