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

stacklok / toolhive / 46180251007
75%

Build:
DEFAULT BRANCH: main
Ran 28 Nov 2026 07:24PM UTC
Jobs 1
Files 1077
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

28 Nov 2026 07:15PM UTC coverage: 75.15% (+0.005%) from 75.145%
46180251007

push

github

web-flow
Let Cedar grant tool visibility with read_tool (#7358)

* Let Cedar grant tool visibility with read_tool

A tool is listed when a call_tool permit allows it and no read_tool
forbid matches, or when a read_tool-scoped permit allows it and no
call or read forbid matches. Policy sets with no read_tool policy list
the same tools as before. Cedar answers tool:read itself, so the
tool:call fallback no longer applies to Cedar.

* Fix the read_tool warning match and update a stale comment

The warning matched the unquoted action name, so it never fired. Match
the quoted form cedar-go writes, add a test for it, and update the
ToolReadNative comment that still said Cedar does not implement it.

* Fix the lint findings in the read_tool code

Name the unused receiver, and iterate policies with All() instead of the
deprecated Map().

* docs: note that argument-conditioned call permits do not list tools

* test: cover read_tool scope, fail-closed Cedar errors and nil policy set

* style: fix import grouping in read_tool_test.go

* fix: address review nits on read_tool (constant, docs, policy-reload test)

* fix: a permit error no longer hides a tool a read_tool permit lists

* fix: read-side read_tool errors hide the tool; address review nits

* test: admission fallback test uses a per-tool call-only stub

* style: wrap long doc comment and test line; document read_tool error rule

* docs: reword tool:call read-satisfaction rule to name read_tool forbids

* fix: address remaining review items on read_tool (tests, comments, docs)

* test: use an argument-conditioned call permit for the read_tool grant case

* feat: warn when a call_tool permit errors during tools/list visibility

* feat: log a call_tool permit error once per policy until policies reload

---------

Co-authored-by: rkb32 <youremail@example.com>
Co-authored-by: rkb32 <rkb32@users.noreply.github.com>

99 of 114 new or added lines in 2 files covered. (86.84%)

91 existing lines in 9 files now uncovered.

104756 of 139396 relevant lines covered (75.15%)

995.07 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
88.16
pkg/authz/authorizers/cedar/read_tool.go
6
95.77
-0.74% pkg/authz/authorizers/cedar/core.go

Coverage Regressions

Lines Coverage ∆ File
31
87.38
0.01% pkg/vmcp/client/client.go
17
59.69
-0.23% pkg/vmcp/server/sessionmanager/factory.go
15
81.08
0.06% pkg/vmcp/server/serve_handlers.go
11
90.72
0.04% pkg/vmcp/aggregator/default_aggregator.go
6
19.87
-3.97% pkg/client/manager.go
6
58.81
-0.63% pkg/workloads/manager.go
3
93.02
-0.57% pkg/vmcp/aggregator/tool_adapter.go
1
96.59
0.08% pkg/vmcp/aggregator/priority_resolver.go
1
97.56
0.01% pkg/vmcp/server/modern_envelope.go
Jobs
ID Job ID Ran Files Coverage
1 46180251007.1 28 Nov 2026 07:24PM UTC 1077
75.15
GitHub Action Run
Source Files on build 46180251007
  • Tree
  • List 1077
  • Changed 18
  • Source Changed 14
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46180251007
  • ccca33fb on github
  • Prev Build on main (#46154083452)
  • Next Build on main (#46306572608)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc