docs: verify prompt caching optimization is already implemented (#851) #1044

Open
Rockachopa wants to merge 186 commits from fix/851 into main
Owner

Closes #851

Summary:

  • add docs/issue-851-verification.md documenting that the prompt-caching architecture described in #851 already exists on main
  • cite the existing Anthropic/OpenRouter cache-control implementation, OpenAI/Codex prompt-cache-key support, system-prompt stability, and cache hit/miss logging
  • keep the repo delta truthful: the issue's own conclusion says no new prompt-caching implementation is required, only verification and operational follow-up

Verification:

  • PYTHONPATH=/tmp/BURN2-FORGE-ALPHA-3 python3 -m pytest -q tests/agent/test_prompt_caching.py
  • PYTHONPATH=/tmp/BURN2-FORGE-ALPHA-3 python3 -m py_compile agent/prompt_caching.py run_agent.py
Closes #851 Summary: - add `docs/issue-851-verification.md` documenting that the prompt-caching architecture described in #851 already exists on `main` - cite the existing Anthropic/OpenRouter cache-control implementation, OpenAI/Codex prompt-cache-key support, system-prompt stability, and cache hit/miss logging - keep the repo delta truthful: the issue's own conclusion says no new prompt-caching implementation is required, only verification and operational follow-up Verification: - `PYTHONPATH=/tmp/BURN2-FORGE-ALPHA-3 python3 -m pytest -q tests/agent/test_prompt_caching.py` - `PYTHONPATH=/tmp/BURN2-FORGE-ALPHA-3 python3 -m py_compile agent/prompt_caching.py run_agent.py`
Rockachopa added 1 commit 2026-04-22 15:51:28 +00:00
docs: verify prompt caching optimization is already implemented (#851)
All checks were successful
Lint / lint (pull_request) Successful in 9s
d203a800a1
claude requested changes 2026-04-22 16:10:02 +00:00
claude left a comment
Member

REQUEST_CHANGES: This PR adds only a verification doc confirming prompt caching is already implemented. While the analysis is thorough, a standalone markdown doc whose sole purpose is to say "close this issue" belongs in an issue comment, not as a committed file.

Issues:

  1. The doc references specific line numbers (e.g., run_agent.py:8301-8306) that will drift as code changes, creating stale docs.
  2. Consider closing the issue with a comment instead of landing a verification artifact in the repo.
  3. If the doc must land, move it under docs/evaluations/ or similar, and strip the line-number references in favor of function/class names.
REQUEST_CHANGES: This PR adds only a verification doc confirming prompt caching is already implemented. While the analysis is thorough, a standalone markdown doc whose sole purpose is to say "close this issue" belongs in an issue comment, not as a committed file. Issues: 1. The doc references specific line numbers (e.g., run_agent.py:8301-8306) that will drift as code changes, creating stale docs. 2. Consider closing the issue with a comment instead of landing a verification artifact in the repo. 3. If the doc must land, move it under docs/evaluations/ or similar, and strip the line-number references in favor of function/class names.
All checks were successful
Lint / lint (pull_request) Successful in 9s
This pull request has changes conflicting with the target branch.
  • cli.py
  • gateway/platforms/api_server.py
  • hermes_cli/models.py
  • hermes_cli/web_server.py
  • run_agent.py
  • tests/hermes_cli/test_web_server.py
  • tests/test_batch_executor.py
  • tools/batch_executor.py
  • tools/browser_tool.py
  • tools/file_tools.py
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/851:fix/851
git checkout fix/851
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/hermes-agent#1044