• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 23006060128
64%

Build:
DEFAULT BRANCH: main
Ran 12 Mar 2026 02:10PM UTC
Jobs 1
Files 553
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Mar 2026 02:07PM UTC coverage: 64.25% (-0.02%) from 64.27%
23006060128

push

github

web-flow
Add annotation cache for tools/list to tools/call flow (#4114)

* Add annotation cache for tools/list to tools/call flow

The authz middleware now caches tool annotations from tools/list
responses and injects them into context during tools/call requests.
This bridges the gap where annotations are visible in tools/list but
lost by the time tools/call arrives as a separate HTTP request.

- Add AnnotationCache with concurrent-safe get/set operations
- ResponseFilteringWriter populates cache during tools/list filtering
- Middleware closure captures cache, injects annotations for tools/call
- Graceful degradation when tools/call arrives before tools/list

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix stale annotation cache entries on tools/list

SetFromToolsList previously merged into the existing map, so tools
whose annotations were removed in a subsequent tools/list response
retained stale cached entries. Replace the entire map atomically
to ensure eviction of removed tools.

Also add a test for the eviction behavior and document the
intentional omission of the Title field in convertMCPAnnotation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

62 of 65 new or added lines in 3 files covered. (95.38%)

39 existing lines in 4 files now uncovered.

48412 of 75349 relevant lines covered (64.25%)

73.47 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
83.54
-1.02% pkg/authz/middleware.go

Uncovered Existing Lines

Lines Coverage ∆ File
6
76.15
-5.5% pkg/secrets/keyring/keyctl_linux.go
8
23.56
-4.6% pkg/client/manager.go
11
68.42
-14.47% pkg/client/discovery.go
14
74.44
-5.19% pkg/client/config.go
Jobs
ID Job ID Ran Files Coverage
1 23006060128.1 12 Mar 2026 02:10PM UTC 553
64.25
GitHub Action Run
Source Files on build 23006060128
  • Tree
  • List 553
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23006060128
  • 942893e9 on github
  • Prev Build on main (#23003621793)
  • Next Build on main (#23006149677)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc