Skip to content

fix: raise the signed host_calls ceiling to 512 - #33

Merged
lr00rl merged 1 commit into
mainfrom
fix/invoke-hostcall-ceiling
Aug 11, 2026
Merged

fix: raise the signed host_calls ceiling to 512#33
lr00rl merged 1 commit into
mainfrom
fix/invoke-hostcall-ceiling

Conversation

@lr00rl

@lr00rl lr00rl commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

sub-store 插件按真实店形实测的预算(export 258 / import 260 / migrate 263 / render 68)全部超过服务端 64 的签名上限,CI 清单门正确拦截。上限提到 512(店 256 记录上限的最坏形态 263 + 余量),默认预算不动(64)。这是插件 0.12.1-alpha.6 的前置:先发服务端,再签插件。

  • go test ./internal/plugin 全绿
  • CI
  • 部署 prod 后再发插件

The 64 cap predates store-shaped plugins. The sub-store plugin's measured
worst cases run past it: an export reattaches one program key per script
file against a 256-record store (2+256=258), a backup restore is the same
shape (260), a migration adds three upstream fetches (263), and rendering
a script file over a collection of remote members needs 4+64. Every one
of those is a legitimate, store-bounded shape; the ceiling made the CI
manifest gate reject budgets that the conformance tests pin to reality.

512 covers the store-bounded worst cases with headroom and still kills a
runaway plugin, which is what the cap exists for. The default budget for
methods that declare none stays 64.
@lr00rl
lr00rl merged commit ca73126 into main Aug 11, 2026
1 check passed
@lr00rl
lr00rl deleted the fix/invoke-hostcall-ceiling branch August 11, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant