Repository navigation
Conversation
The 10m defaultPluginInvokeTimeout bounds a HUNG plugin, but some legitimate host->plugin calls are long-running: the R10 [update] step's deploy:vm op=rebuild runs a full unattended OS reinstall, which exceeds 10m and was cut off mid-rebuild (context deadline exceeded) even though check-live had passed 64/64. CHARLY_PLUGIN_INVOKE_TIMEOUT (a Go duration, e.g. 30m) raises it without a rebuild; a missing/unparseable/non-positive value keeps the 10m default. TestPluginInvokeTimeoutFromEnv pins the precedence and was verified to fail without the env read.
Review — BLOCKHead SHA: Change class: core runtime/config change — Go code in Security screen: PASS — no secrets/egress/eval, no guardrail or validator-spec edits, no new deps; the only new input is an operator-set duration env var, parsed and bounded to the 10m default. (No T1–T4 finding.) Blocks
Tool-limited note (not a block): the diff adds no Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — BLOCKHead SHA: Change class: core runtime/config change — Go code in Security screen: PASS — no secrets/egress/eval, no guardrail or validator-spec edits, no new deps; the only new input is an operator-set duration env var, parsed and bounded to the 10m default. (No T1–T4 finding.) Blocks
Tool-limited note (not a block): the diff adds no Verdict: BLOCK opencode/deepseek-v4.1-flash — action-review. |
|
Withdrawn: this tunes the arbitrary 10m number instead of fixing the root cause. The bound is a hung-plugin guard applied as a TOTAL-duration cap, so it kills a legitimately-progressing ~13min unattended OS install (check-omarchy-iso-vm's R10 [update] gate). Root fix = an idle/no-progress bound (replacing the total cap) lands separately. |
Summary
defaultPluginInvokeTimeoutwas a hardcoded 10 minutes. It correctly bounds a HUNG host→plugin call (the deploy-del deadlock it was added for), but some legitimate calls are long-running: the R10[update]step'sdeploy:vm op=rebuildruns a full unattended OS reinstall, which exceeds 10m and was cut off mid-rebuild.Make it configurable via
CHARLY_PLUGIN_INVOKE_TIMEOUT(a Go duration string, e.g.30m):The var stays a package var so tests can still override it to a short value.
How tested
TestPluginInvokeTimeoutFromEnvpins the precedence table (unset/30m/1h/-5m/garbage) and was verified to FAIL when the env read is removed:The existing
TestInvokeTyped_FailsFastOnHungPluginstill passes (the hung-plugin guard is intact).Live context:
check-omarchy-iso-vmreached[check-live] PASS64/64 then hit[update] FAIL after 13m8.492swithrpc error: code = DeadlineExceeded— the exact bound this makes raisable.Rulebook compliance
[update]timeout was root-caused to the hardcoded invoke bound, not the reinstall.go build+go teston the final tree.Change classification
gofmt/go build/go test.analysed on a live system— the timeout was observed on the live bed; the override is unit-proven. The full charly R10 bed gate is downstream.Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)