Plugin Release: governance v1.7.0
- feat: routing rules and the complexity router are extracted into the dedicated
routingplugin: governance now runs at priority 4 and routing at 5,PublishRoutingAllowlistandLoadBalanceProviderare exported onGovernancePluginandBaseGovernancePluginand are called from the routing plugin after rule evaluation instead of from governance'sPreRequestHook,runPreRequestRoutingis removed, andReloadRoutingRule,RemoveRoutingRuleand the routing rule and complexity analyzer handlers leaveGovernanceManagerandGovernanceHandlerforRoutingHandlerunder/api/routing/*(with deprecated/api/governance/*aliases) (#6144, #6145, #6146) - feat: batch usage reporting:
ReportBatchUsageapplies settled batch cost, tokens and requests to every budget and rate limit on aBatchUsageReportexactly once per request ID via a claim/release marker with a 7-day TTL, and charges the creating user's tiers whenUserIDis present;BumpBudgetUsageandBumpRateLimitUsageare added toGovernanceStore; governance IDs, including VK-scoped, user-scoped and global wildcard budgets and rate limits, are collected for batch-create requests that carry no model (thanks @SahilChoudhary22!) (#5295, #6410, #6505) - feat: honor
BifrostContextKeySkipModelCheckinEvaluateVirtualKeyRequestso evaluate-only requests such as/inspectbypass the model allowlist while budgets, rate limits and provider checks still apply (#6479) - feat: add a no-op
HTTPTransportPreAuthHookfor the new pre-authentication transport phase (#6375) - chore: upgraded core to v1.8.0 and framework to v1.6.0
Installation
# Update your go.mod to use the new plugin version
go get github.com/maximhq/bifrost/plugins/governance@v1.7.0This release was automatically created from version file: plugins/governance/version