From dd518aeacaf081336f148637ba5ba51459444206 Mon Sep 17 00:00:00 2001 From: omartelo Date: Sun, 8 Nov 2026 21:12:52 -0300 Subject: [PATCH] fix(agentplugin): raise the plugin ceiling to 0.22.0 for the Bearer contract #1067 made the loopback listener accept Authorization: Bearer beside ?token=, a contract change lich-plugin ships as 0.21.0 (its hooks send the header). The ceiling stayed at 0.21.0, so no lich would install that release. The compat tests move with the contract: 0.21.0 is now in range and 0.22.0 is the first release past it. --- internal/agentplugin/compat.go | 4 ++-- internal/agentplugin/compat_test.go | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/internal/agentplugin/compat.go b/internal/agentplugin/compat.go index ea009411e..8c31336de 100644 --- a/internal/agentplugin/compat.go +++ b/internal/agentplugin/compat.go @@ -14,8 +14,8 @@ const ( // install says which release a report comes from. PluginVersionFloor = "0.13.0" // PluginVersionCeiling is the first release past the newest contract this - // lich implements (0.20), and the first one it cannot vouch for. - PluginVersionCeiling = "0.21.0" + // lich implements (0.21), and the first one it cannot vouch for. + PluginVersionCeiling = "0.22.0" // ModAnswerRelease is the first release whose mod answers a subagent // worker's errand itself (docs/hooks/mod-answer.md). ModAnswerRelease = "0.17.0" diff --git a/internal/agentplugin/compat_test.go b/internal/agentplugin/compat_test.go index 3c950a607..d85fae214 100644 --- a/internal/agentplugin/compat_test.go +++ b/internal/agentplugin/compat_test.go @@ -18,7 +18,8 @@ func TestCompatible(t *testing.T) { "0.18.0": true, "0.19.0": true, "0.20.0": true, - "0.21.0": false, + "0.21.0": true, + "0.22.0": false, "1.0.0": false, "": false, "not-a-semver": false, @@ -36,9 +37,9 @@ func TestNewestCompatible(t *testing.T) { tags []string want string }{ - {"newest in range wins over a newer one past it", []string{"0.21.0", "0.13.2", "0.13.10", "0.12.9"}, "0.13.10"}, + {"newest in range wins over a newer one past it", []string{"0.22.0", "0.13.2", "0.13.10", "0.12.9"}, "0.13.10"}, {"order does not matter", []string{"0.13.0", "0.13.1"}, "0.13.1"}, - {"nothing in range", []string{"0.21.0", "0.12.0"}, ""}, + {"nothing in range", []string{"0.22.0", "0.12.0"}, ""}, {"no releases", nil, ""}, } for _, tc := range tests {