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

stacklok / toolhive / 46033543114
75%

Build:
DEFAULT BRANCH: main
Ran 27 Nov 2026 04:37PM UTC
Jobs 1
Files 1093
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

27 Nov 2026 04:25PM UTC coverage: 75.058% (+0.05%) from 75.013%
46033543114

push

github

web-flow
Accept a call's messages after its token expires (#7339)

* Accept an open call's messages after its token expires

A call-bound token's exp now limits only when a call can start. A tool
call that outlives its token keeps, on its session and while it is open
and younger than the maximum call duration, its cancellation, JSON-RPC
responses such as elicitation answers, and GET and DELETE. Nothing else
is accepted after exp.

The token validator gets an opt-in option, WithExpiredTokenAdmission,
that checks an expired JWT again on everything but exp, bounds its age,
and asks a callback. callbinding.Binding is shared by the validator and
the vMCP's call-binding check: the server takes it as CallBinding and
the auth factory through WithCallBinding. Admitted identities are
marked, get no upstream tokens, are refused any call by the core and
the authorization gate, and are audited with admitted_after_expiry and
the call's operation ID.

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

* Address review of after-expiry admission

Refuse a CallBinding that callbinding.New did not build, log the
admitter's record failures at DEBUG, document that a stream opened
after exp outlives the call, and bound the elicitation test's wait.

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

* Keep a Legacy call open while it dispatches

Closing a Legacy call's POST returns its request but not its dispatch,
and a go-sdk client closes the POST before it cancels. The call now
stays open while its dispatch runs on the replica, so the cancellation,
before or after exp, still reaches it; the last dispatch ends the call.

Binding now owns opening and ending calls (OpenCall, EndCall,
BeginDispatch) instead of exposing its record and returned set. Core
admission refuses identities admitted after expiry, so both gates and
dispatch hold the backstop. A request that crosses exp goes to the
after-exp path. Docs cover the library API, the audit keys and the
validator option.
... (continued)

386 of 411 new or added lines in 10 files covered. (93.92%)

3 existing lines in 2 files now uncovered.

105149 of 140091 relevant lines covered (75.06%)

979.8 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
89.39
0.06% pkg/auth/token.go
8
37.4
-0.3% pkg/vmcp/cli/serve.go
7
90.69
-0.69% pkg/vmcp/server/call_binding.go
2
98.66
pkg/vmcp/callbinding/shared.go

Coverage Regressions

Lines Coverage ∆ File
2
59.15
-0.21% pkg/workloads/manager.go
1
90.69
-0.69% pkg/vmcp/server/call_binding.go
Jobs
ID Job ID Ran Files Coverage
1 46033543114.1 27 Nov 2026 04:37PM UTC 1093
75.06
GitHub Action Run
Source Files on build 46033543114
  • Tree
  • List 1093
  • Changed 13
  • Source Changed 11
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46033543114
  • a58810e2 on github
  • Prev Build on main (#46019001757)
  • Next Build on main (#46037094118)
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