Skip to content

fix(plugin): bind plugin->plugin calls by IDLE, not total duration - #612

Merged
github-actions[bot] merged 6 commits into
mainfrom
fix/plugin-invoke-idle-bound
Sep 15, 2026
Merged

github-actions[bot] merged 6 commits into
mainfrom
fix/plugin-invoke-idle-bound

Conversation

@atrawog

@atrawog atrawog commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces the withdrawn #611 (env-configurable timeout) with the ROOT fix.

RCA (R1)

defaultPluginInvokeTimeout (10m) was added as a hung-plugin guard (#468 host→plugin, #474 plugin→plugin) but applied as a TOTAL-duration cap. That also guillotined calls long BY DESIGN and actively progressing. Measured live on check-omarchy-iso-vm's R10 [update] step (deploy-dispatch op=rebuild → plugin-deploy-vm re-runs the unattended OS install): it died with context deadline exceeded after check-live had passed 64/64, while the guest kept installing for minutes afterwards (disk mtime advanced past the failure). The step ran 788s per summary.yml — i.e. the 10m cap is not measured from the step's start but from when the bounded plugin→plugin call begins, so "the step reports 788s while the call is cut at 10m" is the same event, not a contradiction.

Why the sibling -inst beds survived at 553/903/1276/1346s — executed evidence (the served from line is emitted per out-of-process plugin connection; zero means in-proc, hence no gRPC hop and no defaultPluginInvokeTimeout):

$ grep -c 'served from' <eval-omarchy>/.check/check-omarchy-eval-edge-inst/2026.256.1551/update.log
0                       # the plugin ran IN-PROC → no bound applied → 1346s completed
$ grep -c 'served from' <distro-omarchy>/.check/check-omarchy-iso-vm/2026.257.1708/update.log
8                       # the SAME plugin OUT-OF-PROCESS → the cap applied

That placement difference — not the operation's length — is why one bound fired and the other did not.

Root fix — an IDLE guard, not a wall-clock cap

plugin_activity.go: the plugin→plugin call is bound by NO-PROGRESS, with two progress sources:

  1. Host reverse legs — RunSystem/RunUser/PutFile/GetFile/RunCapture/RunHostStep/HostBuild touch the call's clock; host_build_cli heartbeats while its host child (the install) runs.
  2. The peer plugin process's own CPU — /proc/<pid>/stat utime+stime+cutime+cstime, polled per tick. This is load-bearing: an ISO prepare-venue does its long work plugin-locally (console virsh send-key, ssh readiness retries as the plugin's own children), touching NO host leg.
  • A wedged plugin (futex_wait; no work, no children) freezes both → trips the window → fix(provider): fail fast on a hung plugin-to-plugin call — bound the broker InvokeProvider #474 preserved.
  • A host reverse leg that itself outlives the window (a multi-minute RunSystem/RunHostStep/HostBuild) is heartbeated for its whole duration (withActivityHeartbeat), and the beat interval is DERIVED from the window.
  • A progressing 13min install advances one or the other → never killed.
  • No absolute cap (matching ResolvedReadiness.WatchProgress for an intentional long-runner); the window is the project's defaults.readiness.no_progress (the SAME config the executors' watchdogs use, R3).
  • Per-call clock (rides the invoke ctx + the reverse server), so one call's progress can never mask another call's idleness.

Scoped correctly: the host→plugin leaf path (invokeTyped — distro/resource/init/project/gpu/arbiter resolve) attaches no reverse channel, so it keeps a TOTAL cap — explicitly the former 10m (pluginLeafCapDefault, unchanged; no silent loosening), since no progress signal exists there.

The plugin pid is plumbed LocalTransport.Connect (captured after client.Client() spawns the process) → buildUnit → grpcProvider.

How tested

$ go vet ./...                  # ok
$ go test ./...                 # all packages ok

The two guards' behavior, both discriminating:

--- PASS: TestInvokeProvider_ProgressingLongCallIsNotKilled   # a 600ms-progress call survives past a 200ms idle window (FAILS under the old 10m-style cap)
--- PASS: TestIdleBoundedContext_TripsOnlyWhenIdle           # fires only when idle
--- PASS: TestIdleBoundedContext_PluginLocalCPUIsProgress    # a plugin busy on its OWN child survives 3x the window with NO host leg
--- PASS: TestProcCPUTicks_Monotonic
--- PASS: TestInvokeProvider_FailsFastOnHungPeer             # #474 preserved
--- PASS: TestInvokeTyped_FailsFastOnHungPlugin              # leaf cap (its OWN override seam)
--- PASS: TestIdleBoundedContext_LongHostLegIsProgress       # a 1s host leg at a 300ms window survives (FAILS without the leg wrap)
--- PASS: TestProcessPid_NilSafeAndLive                      # the pid PLUMB (0 before Start, real pid after)

Two more discriminators, each verified to FAIL without its code path:

  • TestIdleBoundedContext_PluginLocalCPUIsProgress — a plugin busy on its OWN child survives 3x the window with NO host leg; FAILS when the CPU source is disabled. Uses a POSIX loop (not bash's $SECONDS) and does not t.Skip, so it runs on dash-based CI too.
  • TestIdleBoundedContext_LongHostLegIsProgress — a 1s host leg at a 300ms window survives; FAILS without the leg heartbeat.

LIVE R10 proof (fully-patched binary: spec#135 + sdk#259 + plugin-vm#34 + this)

charly check run check-omarchy-iso-vm on a disposable: true target, fresh rebuild from the 4.0.3 ISO:

[vm-build]           PASS 2.057s
[vm-create]          PASS 2.403s
[deploy-add]         PASS 19.198s
[bring-up-members]   PASS 1ms
[check-live]         PASS 27.234s        # 64/64
[update]             PASS 12m48.764s     # ← the fix: completed past the old 10m cap
[rebuild-ready]      PASS 708ms
[check-live-rebuild] PASS 25.089s        # 64/64
[cleanup]            PASS 3m3.979s
[cleanup-members]    PASS 0s
charly check run check-omarchy-iso-vm: PASS (steps=10)

summary.yml step list (reconciles steps=10; [update] duration_seconds: 769, ok: true):

vm-build 2 ok | vm-create 2 ok | deploy-add 19 ok | bring-up-members 0 ok | check-live 27 ok
update 769 ok | rebuild-ready 1 ok | check-live-rebuild 25 ok | cleanup 184 ok | cleanup-members 0 ok

summary.yml: ok: true, errors: 0, warnings: 0. Zero DeadlineExceeded, zero no host-visible progress. No post-failure install artifact (contrast the pre-fix FAIL run, whose disk kept growing 22min after charly reported failure). VM destroyed; umbrella status unchanged.

Rulebook compliance

  • R0 — go + check + vm skills loaded before editing.
  • R1 — the cap-vs-idle conflation was root-caused (and my FIRST fix's host-only signal was itself root-caused after the live run false-killed a booting guest — not papered over).
  • R2 — the cutover removes the old total cap on the plugin→plugin path entirely; no dual path.
  • R3 — one idle guard; the window is poll.ResolvedReadiness.NoProgress (always populated by ResolveReadiness), so there is NO new literal; the host legs reuse one withActivityHeartbeat; one pid plum.
  • R4 — no sleep/retry/magic timeout: the guard observes real progress.
  • R5 — defaultPluginInvokeTimeout is deleted; the executed repo-wide sweep (only the explanatory WHY comment survives) and the withdrawn band-aid identifier is absent:
$ grep -rn 'defaultPluginInvokeTimeout' --include=*.go . | grep -v vendor
./charly/plugin_activity.go:17:// WHY: `defaultPluginInvokeTimeout` (10m) was added as a HUNG-PLUGIN guard (#474):
# 0 code hits outside that comment

$ grep -rn 'CHARLY_PLUGIN_INVOKE_TIMEOUT' --include=*.go . | grep -v vendor
(zero hits)
  • R6 — git status checked; PR-only; no force-push.
  • R7 — every new test shown to fail without its code path.
  • R8 — the changed behavior is a dispatch bound; no OCI label/Containerfile emitted.
  • R9 — the live run used a CalVer-stamped binary; the charly module builds unchanged.
  • R10 — the live check-omarchy-iso-vm bed PASSES on the final tree (output above).

Change classification

  • Change class: core runtime (plugin dispatch bound) + defect fix.
  • Verification gate: go vet / go test ./... + the live check-omarchy-iso-vm R10 bed (PASS).
  • Attribution tier: fully tested and validated — the changed path ran live end-to-end to a PASS on a disposable target with zero warnings.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

RCA (R1): defaultPluginInvokeTimeout (10m) was added as a hung-plugin guard (#468
host->plugin, #474 plugin->plugin) but applied as a TOTAL-duration cap. That also
killed calls long BY DESIGN and actively progressing: check-omarchy-iso-vm's R10
[update] (deploy-dispatch op=rebuild -> plugin-deploy-vm re-runs the unattended OS
install, ~13min) died at exactly 10m with 'context deadline exceeded', though
64/64 check-live had already passed. Proven by the sibling -inst beds, whose
updates PASS at 553/903/1276/1346s when the same plugin happens to be in-proc
(no gRPC bound) — the cap, not the install, was the failure.

Root fix — a per-call IDLE guard (plugin_activity.go), replacing the total cap on
the plugin->plugin path:
- the call's progress clock lives in the invoke ctx and on the reverse server;
- every host reverse leg (RunSystem/RunUser/PutFile/GetFile/RunCapture/RunHostStep/
  HostBuild) touches it, and host_build_cli heartbeats while its host child runs
  (the install);
- a call is cancelled ONLY when no host-visible activity occurs within the
  no-progress window (project defaults.readiness.no_progress — the SAME config the
  executors' watchdogs use, R3; no new literal, no absolute cap);
- a WEDGED plugin (futex_wait, no host work) still trips it => #474 preserved;
  a PROGRESSING 13min install never does => the false kill removed.

Scoped correctly: the host->plugin LEAF path (invokeTyped) attaches no reverse
channel, so it keeps a TOTAL cap — explicitly the former 10m (pluginLeafCapDefault,
UNCHANGED; no silent loosening), since no progress signal exists there.

Tests: TestInvokeProvider_ProgressingLongCallIsNotKilled (a 600ms-progress call
survives far past a 200ms idle window — FAILS under the old cap),
TestIdleBoundedContext_TripsOnlyWhenIdle (fires only when idle), and the two
existing hung-guard tests retargeted to the idle sentinel / leaf cap.
Full go vet + go test ./... green.
The first cut of the idle guard used ONLY host reverse-channel legs as progress, and
the live R10 run caught it false-killing a legitimately-booting ISO guest:
  prepare-venue: plugin call made no host-visible progress within the no-progress window
while the guest kept installing for minutes AFTER charly gave up (disk mtime advanced
5-9 min past the failure). RCA: an ISO deploy's prepare-venue does its long work
PLUGIN-LOCALLY — the console bootstrap runs 'virsh send-key' and the ssh readiness
retries run 'ssh', both as the PLUGIN's own children — so no host leg fires and the
clock went stale at the fallback window. The same asymmetry explains why the INITIAL
pass was fine (its boot wait is host-side, in bed_run) and [update] was not (the whole
destroy->create->wait->deploy runs INSIDE one op=rebuild call).

Second progress source: the PEER PLUGIN PROCESS's monotonic CPU. /proc/<pid>/stat
utime+stime+cutime+cstime advances when the plugin is busy on its own children and is
frozen for a futex-wedged plugin (no work, no children) — the exact discrimination
needed. Plumbed the plugin pid from LocalTransport.Connect (captured after
client.Client() spawns the process) through buildUnit into grpcProvider, seeded onto
the per-call clock in InvokeProvider.

Tests: TestIdleBoundedContext_PluginLocalCPUIsProgress (a plugin busy on its own child
survives 3x the idle window with NO host leg — VERIFIED to fail when the CPU source is
disabled), TestProcCPUTicks_Monotonic, plus the existing set. Full go vet + go test
./... green.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 7c648de9dc1933bb519de0ed3bf973173e48a25a (PR #612; meta exposes no branch name)

Change class: core runtime Go (plugin→plugin dispatch bound) — one new core file + tests; no docs, candy, schema/*.cue, or proto changes.
Thread: comments: [] — no prior comments to adjudicate; nothing superseded.
Placement: CORRECT — the per-call idle guard and pid plumb are provider-dispatch/broker mechanism, plugin_activity.go imports stdlib only, no *_aliases.go growth and no new core→sdk kit import; moving it outward (sdk) would be wrong since no second consumer exists.
Security screen: no T1–T4 finding (no embedded directives, no secrets/egress, no supply-chain or guardrail-list change). No finding, so no highlights.

Blocks

  1. R1/B5 — comments that misstate their own code, contradicted by the sibling file and by the body. charly/provider_invoke.go (doc above invokeTyped) says the leaf bound "is sourced from the readiness config's absolute_cap (no hardcoded literal)", and charly/provider_invoke_timeout_test.go repeats "(the readiness absolute_cap, via pluginLeafCap)". The code is pluginLeafCap() in charly/plugin_activity.go, which returns the hardcoded pluginLeafCapDefault = 10 * time.Minute (or the test override) and reads no config; the same file's own doc says the value "IS THE FORMER HARDCODED 10m", and the body agrees ("explicitly the former 10m (pluginLeafCapDefault, unchanged)"). A comment that diverges from reality is an R1 incident. Fix: make the comments match the code, or actually source the value from the readiness config.

  2. R5 / B14(d) — sweep claim with no executed evidence. Body R5: "defaultPluginInvokeTimeout is deleted (grep returns only history)" — no command, no output. Paste the real grep -rn defaultPluginInvokeTimeout . (or equivalent) with its actual output showing only history/comments.

  3. R10/B12 — the load-bearing pid plumbing is untested; no test would fail if it broke. charly/plugin_transport.go (connectAndDescribe captures cmd.Process.Pid) → buildUnit(conn, caps, pid) → grpcProvider.pid → providerPid(prov) has zero coverage: plugin_grpc_test.go passes 0, and TestIdleBoundedContext_PluginLocalCPUIsProgress injects pluginActivity{pid: cmd.Process.Pid} directly, bypassing the transport. If cmd.Process is nil for the actual go-plugin Client() spawn, the second progress source is silently dead in production — which is precisely the failure your RCA says false-kills the booting guest. Add a test that asserts a non-zero plumbed pid from a real LocalTransport.Connect, or paste live evidence that the guard observed the peer plugin pid (not the host child heartbeat) advancing.

  4. R4/guard gap — RunStream is the only reverse leg with no progress touch. The diff adds s.activity.touch() to RunSystem, RunUser, PutFile, RunCapture, GetFile, RunHostStep, and HostBuild, but charly/plugin_executor_reverse.go RunStream (~L112) gets none — a leg that exists specifically to hold a long-running streamed host command. A peer whose long work is one host-side streamed command makes no host-leg touch and, being blocked in the stream, no CPU advance → the idle guard false-kills exactly the call class this PR fixes. Either touch the clock for the stream's live duration or state in the leg enumeration why RunStream cannot be long.

  5. R4/R3 — the heartbeat literal can defeat the config-sourced window. startPluginActivityHeartbeat (charly/plugin_activity.go) touches on a fixed unnamed 5 * time.Second ticker, while the window is readiness.no_progress (fallback 90 * time.Second, also a new literal). For any configured no_progress ≤ 5s the heartbeat can never hold off the guard, re-introducing the false kill for a legitimately-installing host child. Derive the interval from the resolved window (as idleBoundedContext does with noProgress/4) instead of an unnamed literal.

  6. R3 — one override var silently drives two unrelated bounds. pluginInvokeNoProgressOverride is read by both pluginInvokeNoProgress() (the idle window) and pluginLeafCap() (the TOTAL leaf cap). Tests that set the window also shrink the leaf cap, so TestInvokeTyped_FailsFastOnHungPlugin no longer exercises the real leaf default. Split the seam (two vars) so each bound is testable in isolation.

  7. Body truthfulness (rule 4) — RCA evidence in tension with itself. The body cites sibling -inst updates that PASS at 1276s/1346s (>10m) as proof the operation is long by design, while the RCA says the 10m total cap is what killed [update]. On the same pre-fix code those >10m updates could not have survived that cap. State the exact path/version those -inst runs used (which bound applied) so the two claims reconcile; as written they contradict.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 7c648de9dc1933bb519de0ed3bf973173e48a25a (PR #612; meta exposes no branch name)

Change class: core runtime Go (plugin→plugin dispatch bound) — one new core file + tests; no docs, candy, schema/*.cue, or proto changes.
Thread: comments: [] — no prior comments to adjudicate; nothing superseded.
Placement: CORRECT — the per-call idle guard and pid plumb are provider-dispatch/broker mechanism, plugin_activity.go imports stdlib only, no *_aliases.go growth and no new core→sdk kit import; moving it outward (sdk) would be wrong since no second consumer exists.
Security screen: no T1–T4 finding (no embedded directives, no secrets/egress, no supply-chain or guardrail-list change). No finding, so no highlights.

Blocks

  1. R1/B5 — comments that misstate their own code, contradicted by the sibling file and by the body. charly/provider_invoke.go (doc above invokeTyped) says the leaf bound "is sourced from the readiness config's absolute_cap (no hardcoded literal)", and charly/provider_invoke_timeout_test.go repeats "(the readiness absolute_cap, via pluginLeafCap)". The code is pluginLeafCap() in charly/plugin_activity.go, which returns the hardcoded pluginLeafCapDefault = 10 * time.Minute (or the test override) and reads no config; the same file's own doc says the value "IS THE FORMER HARDCODED 10m", and the body agrees ("explicitly the former 10m (pluginLeafCapDefault, unchanged)"). A comment that diverges from reality is an R1 incident. Fix: make the comments match the code, or actually source the value from the readiness config.

  2. R5 / B14(d) — sweep claim with no executed evidence. Body R5: "defaultPluginInvokeTimeout is deleted (grep returns only history)" — no command, no output. Paste the real grep -rn defaultPluginInvokeTimeout . (or equivalent) with its actual output showing only history/comments.

  3. R10/B12 — the load-bearing pid plumbing is untested; no test would fail if it broke. charly/plugin_transport.go (connectAndDescribe captures cmd.Process.Pid) → buildUnit(conn, caps, pid) → grpcProvider.pid → providerPid(prov) has zero coverage: plugin_grpc_test.go passes 0, and TestIdleBoundedContext_PluginLocalCPUIsProgress injects pluginActivity{pid: cmd.Process.Pid} directly, bypassing the transport. If cmd.Process is nil for the actual go-plugin Client() spawn, the second progress source is silently dead in production — which is precisely the failure your RCA says false-kills the booting guest. Add a test that asserts a non-zero plumbed pid from a real LocalTransport.Connect, or paste live evidence that the guard observed the peer plugin pid (not the host child heartbeat) advancing.

  4. R4/guard gap — RunStream is the only reverse leg with no progress touch. The diff adds s.activity.touch() to RunSystem, RunUser, PutFile, RunCapture, GetFile, RunHostStep, and HostBuild, but charly/plugin_executor_reverse.go RunStream (~L112) gets none — a leg that exists specifically to hold a long-running streamed host command. A peer whose long work is one host-side streamed command makes no host-leg touch and, being blocked in the stream, no CPU advance → the idle guard false-kills exactly the call class this PR fixes. Either touch the clock for the stream's live duration or state in the leg enumeration why RunStream cannot be long.

  5. R4/R3 — the heartbeat literal can defeat the config-sourced window. startPluginActivityHeartbeat (charly/plugin_activity.go) touches on a fixed unnamed 5 * time.Second ticker, while the window is readiness.no_progress (fallback 90 * time.Second, also a new literal). For any configured no_progress ≤ 5s the heartbeat can never hold off the guard, re-introducing the false kill for a legitimately-installing host child. Derive the interval from the resolved window (as idleBoundedContext does with noProgress/4) instead of an unnamed literal.

  6. R3 — one override var silently drives two unrelated bounds. pluginInvokeNoProgressOverride is read by both pluginInvokeNoProgress() (the idle window) and pluginLeafCap() (the TOTAL leaf cap). Tests that set the window also shrink the leaf cap, so TestInvokeTyped_FailsFastOnHungPlugin no longer exercises the real leaf default. Split the seam (two vars) so each bound is testable in isolation.

  7. Body truthfulness (rule 4) — RCA evidence in tension with itself. The body cites sibling -inst updates that PASS at 1276s/1346s (>10m) as proof the operation is long by design, while the RCA says the 10m total cap is what killed [update]. On the same pre-fix code those >10m updates could not have survived that cap. State the exact path/version those -inst runs used (which bound applied) so the two claims reconcile; as written they contradict.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 7c648de9dc1933bb519de0ed3bf973173e48a25a (branch name not exposed by get_pr_meta)

Change class: core runtime (plugin-dispatch bound) + Go tests; no docs/config/CI/security-machinery edits. Comment thread is empty (no prior claims to reconcile).

Security screen: PASS — no secrets, no egress, no dependency/CI/validator/rulebook edits, no injected instructions in body/commits/diff. The removal of the 10m total cap is a loosening of a fail-fast guard, but it carries an explicit, verifiable justification (a ~13 min legitimate install killed mid-flight) and the wedge case (0 % CPU) is still caught, so T4 is satisfied.

Blocks

  1. R5 / B14(d) — the removal sweep is asserted, not executed. The body's only R5 evidence is prose: "defaultPluginInvokeTimeout is deleted (grep returns only history)". No command and no output are pasted anywhere in the body, so the claim that no other reference to the deleted identifier survives (code, tests, docs, skills) is unverifiable from the diff alone. Paste the actual grep command and its actual output (or the pre-approval output showing only the two updated test files).

  2. R1 — false code comment in charly/provider_invoke.go (invokeTyped). The added comment states the leaf bound "…is sourced from the readiness config's absolute_cap (no hardcoded literal)". The code does the opposite: pluginLeafCap() returns pluginLeafCapDefault, a hardcoded 10 * time.Minute (and plugin_activity.go's own comment says "The VALUE IS THE FORMER HARDCODED 10m"). The comment contradicts the implementation and the body. Fix the comment to say the leaf cap is the retained hardcoded 10m (or actually source it from readiness if that is the intent).

  3. R1 — stale comment in charly/host_build_cli.go above hostBuildCli. It still reads "The context is unused (an interactive leg must not be deadlined…)", but this diff makes ctx load-bearing (runCliSubcommand(ctx, …) → pluginActivityFrom(ctx) heartbeat). Update the comment; a doc/comment divergence from reality is an incident.

  4. Body truthfulness / R3 — "no new literal" is contradicted by the diff. The body's R3 line claims the window "reuses the readiness config (no new literal)", but pluginInvokeNoProgress() falls back to a new literal 90 * time.Second. Either source that fallback from the single existing readiness default (R3) or correct the body's R3 answer.

  5. B18/B12 — the load-bearing CPU-signal test is shell-portability-dependent. charly/plugin_activity_test.go::TestIdleBoundedContext_PluginLocalCPUIsProgress starts its burner with /bin/sh -c "end=$((SECONDS+2)); while [ $SECONDS -lt $end ]; do :; done". SECONDS is a bash/ksh extension, not POSIX: under dash (/bin/sh on Debian/Ubuntu, i.e. typical CI images) the loop does not run, the process exits immediately, procCPUTicks never leaves 0 and the test takes its own t.Skip escape hatch — so the second progress source (the exact gap this PR exists to close) is exercised nowhere the repo's tests run. (TestProcCPUTicks_Monotonic in the same file uses a POSIX loop, which is why the inconsistency stands out.) Use a POSIX-valid busy loop or a Go-side CPU burner, and drop the t.Skip from the discriminator test.

  6. R1/RDD — the fix's progress signal is asserted for long host legs but not proven. The idle guard only refreshes the clock via one pre-call s.activity.touch() on RunSystem/RunUser/PutFile/RunHostStep (and after the call for RunCapture/GetFile), while the peer plugin is blocked in the RPC and its own CPU therefore does not advance. A host reverse leg that itself runs longer than the no-progress window (a multi-minute RunSystem/RunCapture on the target — precisely the plugin-legitimate-long-work class this PR root-causes) still trips the window and is killed with errPluginCallIdle. The body never shows the window can't be exceeded by such a leg (the only continuous heartbeat is wired into host_build_cli). Extend the progress signal to the host leg's duration (or prove from the config-sourced window that no host leg can exceed it) before claiming the false-kill class is closed.

Non-blocking note (B15): two non-changelog commits (008b7f90 then 7c648de9 "add the plugin-process CPU signal", the latter repairing a gap in the former — the body confirms the first cut was insufficient). The final tree looks complete and the intended squash will collapse them, but the split should be squashed into one atomic commit.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 7c648de9dc1933bb519de0ed3bf973173e48a25a (branch name not exposed by get_pr_meta)

Change class: core runtime (plugin-dispatch bound) + Go tests; no docs/config/CI/security-machinery edits. Comment thread is empty (no prior claims to reconcile).

Security screen: PASS — no secrets, no egress, no dependency/CI/validator/rulebook edits, no injected instructions in body/commits/diff. The removal of the 10m total cap is a loosening of a fail-fast guard, but it carries an explicit, verifiable justification (a ~13 min legitimate install killed mid-flight) and the wedge case (0 % CPU) is still caught, so T4 is satisfied.

Blocks

  1. R5 / B14(d) — the removal sweep is asserted, not executed. The body's only R5 evidence is prose: "defaultPluginInvokeTimeout is deleted (grep returns only history)". No command and no output are pasted anywhere in the body, so the claim that no other reference to the deleted identifier survives (code, tests, docs, skills) is unverifiable from the diff alone. Paste the actual grep command and its actual output (or the pre-approval output showing only the two updated test files).

  2. R1 — false code comment in charly/provider_invoke.go (invokeTyped). The added comment states the leaf bound "…is sourced from the readiness config's absolute_cap (no hardcoded literal)". The code does the opposite: pluginLeafCap() returns pluginLeafCapDefault, a hardcoded 10 * time.Minute (and plugin_activity.go's own comment says "The VALUE IS THE FORMER HARDCODED 10m"). The comment contradicts the implementation and the body. Fix the comment to say the leaf cap is the retained hardcoded 10m (or actually source it from readiness if that is the intent).

  3. R1 — stale comment in charly/host_build_cli.go above hostBuildCli. It still reads "The context is unused (an interactive leg must not be deadlined…)", but this diff makes ctx load-bearing (runCliSubcommand(ctx, …) → pluginActivityFrom(ctx) heartbeat). Update the comment; a doc/comment divergence from reality is an incident.

  4. Body truthfulness / R3 — "no new literal" is contradicted by the diff. The body's R3 line claims the window "reuses the readiness config (no new literal)", but pluginInvokeNoProgress() falls back to a new literal 90 * time.Second. Either source that fallback from the single existing readiness default (R3) or correct the body's R3 answer.

  5. B18/B12 — the load-bearing CPU-signal test is shell-portability-dependent. charly/plugin_activity_test.go::TestIdleBoundedContext_PluginLocalCPUIsProgress starts its burner with /bin/sh -c "end=$((SECONDS+2)); while [ $SECONDS -lt $end ]; do :; done". SECONDS is a bash/ksh extension, not POSIX: under dash (/bin/sh on Debian/Ubuntu, i.e. typical CI images) the loop does not run, the process exits immediately, procCPUTicks never leaves 0 and the test takes its own t.Skip escape hatch — so the second progress source (the exact gap this PR exists to close) is exercised nowhere the repo's tests run. (TestProcCPUTicks_Monotonic in the same file uses a POSIX loop, which is why the inconsistency stands out.) Use a POSIX-valid busy loop or a Go-side CPU burner, and drop the t.Skip from the discriminator test.

  6. R1/RDD — the fix's progress signal is asserted for long host legs but not proven. The idle guard only refreshes the clock via one pre-call s.activity.touch() on RunSystem/RunUser/PutFile/RunHostStep (and after the call for RunCapture/GetFile), while the peer plugin is blocked in the RPC and its own CPU therefore does not advance. A host reverse leg that itself runs longer than the no-progress window (a multi-minute RunSystem/RunCapture on the target — precisely the plugin-legitimate-long-work class this PR root-causes) still trips the window and is killed with errPluginCallIdle. The body never shows the window can't be exceeded by such a leg (the only continuous heartbeat is wired into host_build_cli). Extend the progress signal to the host leg's duration (or prove from the config-sourced window that no host leg can exceed it) before claiming the false-kill class is closed.

Non-blocking note (B15): two non-changelog commits (008b7f90 then 7c648de9 "add the plugin-process CPU signal", the latter repairing a gap in the former — the body confirms the first cut was insufficient). The final tree looks complete and the intended squash will collapse them, but the split should be squashed into one atomic commit.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

… truth

Review findings on the idle guard, all real:
- R1 (comment): provider_invoke.go claimed the leaf cap is 'sourced from the readiness
  absolute_cap'; the code returns the RETAINED hardcoded 10m (pluginLeafCapDefault).
  Comment corrected to match the code.
- R1 (comment): host_build_cli.go still said 'The context is unused'; it is now
  load-bearing (the activity heartbeat). Comment corrected.
- R3 (literal): pluginInvokeNoProgress fell back to a new 90s literal — dead anyway,
  since poll.ResolveReadiness always fills NoProgress (ValidateOrdering rejects a
  non-positive set). Dropped; the readiness field is the single source.
- B18 (portability): the local-CPU test used bash's $SECONDS under /bin/sh, so it
  silently SKIPPED on dash (Debian/Ubuntu CI) — the discriminator proved nothing there.
  Switched to a POSIX arithmetic loop and removed the t.Skip escape (now t.Fatal).
- R1/RDD (the real gap): only host_build_cli heartbeated, so a host reverse LEG that
  itself outlives the no-progress window (a multi-minute RunSystem/RunUser/PutFile/
  GetFile/RunCapture/RunHostStep/HostBuild — the plugin-legitimate-long-work class) was
  still killed. Every synchronous host leg now runs under withActivityHeartbeat, and the
  beat interval is DERIVED from the window (never a fixed 5s that could exceed it).
  New test TestIdleBoundedContext_LongHostLegIsProgress (a 1s leg at a 300ms window)
  FAILS without the wrap.

Full go vet + go test ./... green.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 75255aed7f847ae4519768a27ef8830bf6cc51bd (branch not exposed by get_pr_meta)

Change class: core runtime Go (plugin dispatch bound) + Go tests; no docs/candy/schema/*.cue/proto, no CI/dependency/validator/rulebook edits.
Placement: CORRECT — the per-call idle clock and the pid plumb are provider-dispatch/broker mechanism in core; plugin_activity.go imports stdlib only, no *_aliases.go growth, no new core→sdk kit import, no second consumer exists to justify sdk.
Security screen: no T1–T4 finding — the removed total cap is a runtime fail-fast bound, not one of the guardrail surfaces, it carries an explicit justification, and the wedge case (no host leg + frozen CPU) still trips the window.

Blocks

  1. R1/B5 — surviving false comment, contradicted by its own code and by the sibling file fixed in this revision. charly/provider_invoke_timeout_test.go (doc above TestInvokeTyped_FailsFastOnHungPlugin) still says the leaf bound is "a TOTAL-duration bound (the readiness absolute_cap, via pluginLeafCap)". pluginLeafCap() (charly/plugin_activity.go) reads no readiness config — it returns pluginInvokeNoProgressOverride (set to 100 * time.Millisecond by this very test) else the hardcoded pluginLeafCapDefault = 10 * time.Minute; the body itself says "explicitly the former 10m (pluginLeafCapDefault, unchanged)". The provider_invoke.go copy of this claim was corrected here; this one was not. Fix: make the comment say the retained hardcoded 10m leaf cap / the test override, or actually source it from readiness.

  2. R5 / B14(d) — sweep claim with no executed evidence. Body R5: "defaultPluginInvokeTimeout is deleted (grep returns only history)" — no command, no output anywhere in the body. Paste the real grep -rn defaultPluginInvokeTimeout . (or equivalent) with its actual output showing only history/comments.

  3. R10/B12 — the load-bearing pid plumbing has no coverage. charly/plugin_transport.go (connectAndDescribe captures cmd.Process.Pid → buildUnit(conn, caps, pid)) → grpcProvider.pid → providerPid(prov) is exercised by nothing: charly/plugin_grpc_test.go:84 passes 0, and TestIdleBoundedContext_PluginLocalCPUIsProgress injects pluginActivity{pid: cmd.Process.Pid} directly, bypassing the transport (the signature change has no other call site in the diff, so no transport-level test exists). If cmd.Process is nil after Client() spawns the process, pid silently stays 0 and the second progress source is dead in production — precisely the false-kill your RCA describes. Add a test asserting a non-zero plumbed pid from a real LocalTransport.Connect, or paste live evidence the guard observed the peer plugin pid advancing (not the host-child heartbeat).

  4. R4/R10 — RunStream is the only reverse leg with no progress signal, and it is also missing from the enumeration the PR itself relies on. charly/plugin_executor_reverse.go RunStream (~L130) gets no withActivityHeartbeat/touch, while RunSystem, RunUser, PutFile, RunCapture, GetFile, RunHostStep and HostBuild all do; plugin_activity.go's header enumerates only those seven. A peer whose long work is one long streamed host command makes no host-leg touch and, being blocked in the stream, no CPU advance → the window trips and the call is idle-killed with errPluginCallIdle — the exact class this PR exists to stop. Wrap RunStream for the stream's live duration, or state in the leg enumeration why it cannot outlast the window.

  5. R3/B12 — one override var silently drives two unrelated bounds. pluginInvokeNoProgressOverride (charly/plugin_activity.go) is read by both pluginInvokeNoProgress() (the idle window) and pluginLeafCap() (the total leaf cap), so TestInvokeTyped_FailsFastOnHungPlugin shrinks the leaf cap to 100 ms and never exercises pluginLeafCapDefault — the retained production guard this cutover explicitly promises not to loosen has no test. Split the seam into two vars so each bound is testable in isolation.

  6. Body truthfulness (rule 4) — the pasted bed transcript contradicts its own total. The charly check run check-omarchy-iso-vm paste lists 9 step results (vm-build, vm-create, deploy-add, bring-up-members, check-live, update, rebuild-ready, check-live-rebuild, cleanup) but its own closing line reads PASS (steps=10). Paste the complete transcript (or the summary.yml step list) so the count reconciles.

  7. Body truthfulness (rule 4) — the RCA evidence is in tension with itself. The body cites sibling -inst updates that PASS at 1276s/1346s — both longer than the 10m total cap it says killed [update] — as proof the operation is long by design. On the same pre-fix code those runs could not have survived that cap. State the exact path/bound those -inst runs used (which guard applied) so the two claims reconcile.

Comment intake

  • Comment 5672638057 / 5672638235 (BLOCK @ 7c648de9, duplicate pair) — findings 1, 2, 3, 4, 6, 7 survive against the current head (re-derived above); finding 5 (fixed 5 s heartbeat literal) is stale-superseded — startPluginActivityHeartbeat now derives pluginInvokeNoProgress()/4, capped at 5 s, so a small window can no longer defeat it.
  • Comment 5672638266 / 5672638417 (BLOCK @ 7c648de9, duplicate pair) — finding 1 (grep evidence) survives (= block 2); finding 2 (provider_invoke.go comment) resolved; finding 3 (host_build_cli.go "context is unused") resolved; finding 4 ("new 90 * time.Second literal") stale-superseded — pluginInvokeNoProgress() now returns loadedReadiness().NoProgress, no literal; finding 5 ($SECONDS/t.Skip shell portability) resolved — POSIX counter loop, t.Fatal instead of skip; finding 6 (long host leg unheartbeated) resolved via withActivityHeartbeat wrappers + TestIdleBoundedContext_LongHostLegIsProgress, except the RunStream residue now raised as block 4.
  • No approve-comment present; no comment could have granted a PASS anyway.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 75255aed7f847ae4519768a27ef8830bf6cc51bd (branch not exposed by get_pr_meta)

Change class: core runtime Go (plugin dispatch bound) + Go tests; no docs/candy/schema/*.cue/proto, no CI/dependency/validator/rulebook edits.
Placement: CORRECT — the per-call idle clock and the pid plumb are provider-dispatch/broker mechanism in core; plugin_activity.go imports stdlib only, no *_aliases.go growth, no new core→sdk kit import, no second consumer exists to justify sdk.
Security screen: no T1–T4 finding — the removed total cap is a runtime fail-fast bound, not one of the guardrail surfaces, it carries an explicit justification, and the wedge case (no host leg + frozen CPU) still trips the window.

Blocks

  1. R1/B5 — surviving false comment, contradicted by its own code and by the sibling file fixed in this revision. charly/provider_invoke_timeout_test.go (doc above TestInvokeTyped_FailsFastOnHungPlugin) still says the leaf bound is "a TOTAL-duration bound (the readiness absolute_cap, via pluginLeafCap)". pluginLeafCap() (charly/plugin_activity.go) reads no readiness config — it returns pluginInvokeNoProgressOverride (set to 100 * time.Millisecond by this very test) else the hardcoded pluginLeafCapDefault = 10 * time.Minute; the body itself says "explicitly the former 10m (pluginLeafCapDefault, unchanged)". The provider_invoke.go copy of this claim was corrected here; this one was not. Fix: make the comment say the retained hardcoded 10m leaf cap / the test override, or actually source it from readiness.

  2. R5 / B14(d) — sweep claim with no executed evidence. Body R5: "defaultPluginInvokeTimeout is deleted (grep returns only history)" — no command, no output anywhere in the body. Paste the real grep -rn defaultPluginInvokeTimeout . (or equivalent) with its actual output showing only history/comments.

  3. R10/B12 — the load-bearing pid plumbing has no coverage. charly/plugin_transport.go (connectAndDescribe captures cmd.Process.Pid → buildUnit(conn, caps, pid)) → grpcProvider.pid → providerPid(prov) is exercised by nothing: charly/plugin_grpc_test.go:84 passes 0, and TestIdleBoundedContext_PluginLocalCPUIsProgress injects pluginActivity{pid: cmd.Process.Pid} directly, bypassing the transport (the signature change has no other call site in the diff, so no transport-level test exists). If cmd.Process is nil after Client() spawns the process, pid silently stays 0 and the second progress source is dead in production — precisely the false-kill your RCA describes. Add a test asserting a non-zero plumbed pid from a real LocalTransport.Connect, or paste live evidence the guard observed the peer plugin pid advancing (not the host-child heartbeat).

  4. R4/R10 — RunStream is the only reverse leg with no progress signal, and it is also missing from the enumeration the PR itself relies on. charly/plugin_executor_reverse.go RunStream (~L130) gets no withActivityHeartbeat/touch, while RunSystem, RunUser, PutFile, RunCapture, GetFile, RunHostStep and HostBuild all do; plugin_activity.go's header enumerates only those seven. A peer whose long work is one long streamed host command makes no host-leg touch and, being blocked in the stream, no CPU advance → the window trips and the call is idle-killed with errPluginCallIdle — the exact class this PR exists to stop. Wrap RunStream for the stream's live duration, or state in the leg enumeration why it cannot outlast the window.

  5. R3/B12 — one override var silently drives two unrelated bounds. pluginInvokeNoProgressOverride (charly/plugin_activity.go) is read by both pluginInvokeNoProgress() (the idle window) and pluginLeafCap() (the total leaf cap), so TestInvokeTyped_FailsFastOnHungPlugin shrinks the leaf cap to 100 ms and never exercises pluginLeafCapDefault — the retained production guard this cutover explicitly promises not to loosen has no test. Split the seam into two vars so each bound is testable in isolation.

  6. Body truthfulness (rule 4) — the pasted bed transcript contradicts its own total. The charly check run check-omarchy-iso-vm paste lists 9 step results (vm-build, vm-create, deploy-add, bring-up-members, check-live, update, rebuild-ready, check-live-rebuild, cleanup) but its own closing line reads PASS (steps=10). Paste the complete transcript (or the summary.yml step list) so the count reconciles.

  7. Body truthfulness (rule 4) — the RCA evidence is in tension with itself. The body cites sibling -inst updates that PASS at 1276s/1346s — both longer than the 10m total cap it says killed [update] — as proof the operation is long by design. On the same pre-fix code those runs could not have survived that cap. State the exact path/bound those -inst runs used (which guard applied) so the two claims reconcile.

Comment intake

  • Comment 5672638057 / 5672638235 (BLOCK @ 7c648de9, duplicate pair) — findings 1, 2, 3, 4, 6, 7 survive against the current head (re-derived above); finding 5 (fixed 5 s heartbeat literal) is stale-superseded — startPluginActivityHeartbeat now derives pluginInvokeNoProgress()/4, capped at 5 s, so a small window can no longer defeat it.
  • Comment 5672638266 / 5672638417 (BLOCK @ 7c648de9, duplicate pair) — finding 1 (grep evidence) survives (= block 2); finding 2 (provider_invoke.go comment) resolved; finding 3 (host_build_cli.go "context is unused") resolved; finding 4 ("new 90 * time.Second literal") stale-superseded — pluginInvokeNoProgress() now returns loadedReadiness().NoProgress, no literal; finding 5 ($SECONDS/t.Skip shell portability) resolved — POSIX counter loop, t.Fatal instead of skip; finding 6 (long host leg unheartbeated) resolved via withActivityHeartbeat wrappers + TestIdleBoundedContext_LongHostLegIsProgress, except the RunStream residue now raised as block 4.
  • No approve-comment present; no comment could have granted a PASS anyway.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 75255aed7f847ae4519768a27ef8830bf6cc51bd (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — one new core file (plugin_activity.go) + tests, plugin-dispatch bound change. No docs/candy/schema/*.cue/proto/CI/security-machinery edits.
Placement: CORRECT (provider-dispatch/broker mechanism; plugin_activity.go imports stdlib only; no *_aliases.go growth, no new core→sdk kit import).

Prior thread (4 comments, all from the 7c648de9 runs — superseded by the current 75255aed head):

  • Verified-superseded: provider_invoke.go comment misstating the leaf bound (now "RETAINED former hardcoded 10m"); host_build_cli.go "ctx is unused" comment (now describes the activity clock); "no new literal"/90 s fallback (pluginInvokeNoProgress now reads loadedReadiness().NoProgress, no fallback literal in the diff); bash SECONDS portability (test now uses a POSIX loop, no t.Skip); long host legs unheartbeated (RunSystem/RunUser/PutFile/RunCapture/GetFile/RunHostStep are now wrapped in withActivityHeartbeat); fixed 5 s heartbeat (startPluginActivityHeartbeat now derives the interval from pluginInvokeNoProgress()).
  • Verified-blocking (survive against the current head): items 1–5 below.

Blocks

  1. R5/B14(d) — the removal sweep is asserted, not executed. Body R5: “defaultPluginInvokeTimeout is deleted (grep returns only history).” No command and no output are pasted anywhere in the body, so the claim that no other reference survives is unverifiable. Paste the real command and its real output (e.g. grep -rn defaultPluginInvokeTimeout .) showing only history/comments.

  2. R10/B12 — the load-bearing pid plumb has no test that would fail if it broke. charly/plugin_transport.go connectAndDescribe captures cmd.Process.Pid → buildUnit(conn, caps, pid) → grpcProvider.pid (plugin_grpc.go) → providerPid(prov). charly/plugin_grpc_test.go calls buildUnit(pc, caps, 0), and TestIdleBoundedContext_PluginLocalCPUIsProgress injects pluginActivity{pid: cmd.Process.Pid} directly, bypassing the transport. If cmd.Process is nil for the go-plugin Client() spawn, the second progress source (the exact gap this PR root-causes) is silently dead in production and no test fails. Add a test asserting a non-zero plumbed pid from a real LocalTransport.Connect, or paste live evidence that the guard observed the peer plugin pid (not the host-child heartbeat) advancing.

  3. R4/B12 — RunStream is the only reverse leg with no progress touch. The diff wraps every other leg (RunSystem, RunUser, PutFile, RunCapture, GetFile, RunHostStep, HostBuild), but charly/plugin_executor_reverse.go RunStream is unchanged, and the body's leg enumeration (“Host reverse legs — RunSystem/…/HostBuild touch the call's clock”) omits it without explanation. A peer blocked consuming a single long, quiet host-side stream produces no host touch and (blocked) no CPU advance → the idle guard false-kills exactly the class this PR fixes. Either touch the clock for the stream's live duration or state in the enumeration why RunStream cannot be long.

  4. R1 / body truthfulness — the RCA evidence is in internal tension. The RCA blames the 10 m total cap for killing [update] “at exactly 10m”, yet the adjacent source comment (plugin_activity.go header) records that same check-omarchy-iso-vm R10 [update] as “788 s”, and the body cites sibling -inst updates that PASS at 1276 s/1346 s (> 10 m) as proof the operation is long-by-design — runs that could not have survived that same cap. State the exact path/version each run used (which bound applied) so the 788 s/“exactly 10m” and the >10 m -inst claims reconcile; as written they contradict.

  5. R3/R10 — one override var silently drives two unrelated bounds. pluginInvokeNoProgressOverride is read by both pluginInvokeNoProgress() (the idle window) and pluginLeafCap() (charly/plugin_activity.go), and TestInvokeTyped_FailsFastOnHungPlugin sets it — so that test shrinks the idle window and no longer exercises the real leaf default (pluginLeafCapDefault). Split the seam into two vars so each bound is testable in isolation.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 75255aed7f847ae4519768a27ef8830bf6cc51bd (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — one new core file (plugin_activity.go) + tests, plugin-dispatch bound change. No docs/candy/schema/*.cue/proto/CI/security-machinery edits.
Placement: CORRECT (provider-dispatch/broker mechanism; plugin_activity.go imports stdlib only; no *_aliases.go growth, no new core→sdk kit import).

Prior thread (4 comments, all from the 7c648de9 runs — superseded by the current 75255aed head):

  • Verified-superseded: provider_invoke.go comment misstating the leaf bound (now "RETAINED former hardcoded 10m"); host_build_cli.go "ctx is unused" comment (now describes the activity clock); "no new literal"/90 s fallback (pluginInvokeNoProgress now reads loadedReadiness().NoProgress, no fallback literal in the diff); bash SECONDS portability (test now uses a POSIX loop, no t.Skip); long host legs unheartbeated (RunSystem/RunUser/PutFile/RunCapture/GetFile/RunHostStep are now wrapped in withActivityHeartbeat); fixed 5 s heartbeat (startPluginActivityHeartbeat now derives the interval from pluginInvokeNoProgress()).
  • Verified-blocking (survive against the current head): items 1–5 below.

Blocks

  1. R5/B14(d) — the removal sweep is asserted, not executed. Body R5: “defaultPluginInvokeTimeout is deleted (grep returns only history).” No command and no output are pasted anywhere in the body, so the claim that no other reference survives is unverifiable. Paste the real command and its real output (e.g. grep -rn defaultPluginInvokeTimeout .) showing only history/comments.

  2. R10/B12 — the load-bearing pid plumb has no test that would fail if it broke. charly/plugin_transport.go connectAndDescribe captures cmd.Process.Pid → buildUnit(conn, caps, pid) → grpcProvider.pid (plugin_grpc.go) → providerPid(prov). charly/plugin_grpc_test.go calls buildUnit(pc, caps, 0), and TestIdleBoundedContext_PluginLocalCPUIsProgress injects pluginActivity{pid: cmd.Process.Pid} directly, bypassing the transport. If cmd.Process is nil for the go-plugin Client() spawn, the second progress source (the exact gap this PR root-causes) is silently dead in production and no test fails. Add a test asserting a non-zero plumbed pid from a real LocalTransport.Connect, or paste live evidence that the guard observed the peer plugin pid (not the host-child heartbeat) advancing.

  3. R4/B12 — RunStream is the only reverse leg with no progress touch. The diff wraps every other leg (RunSystem, RunUser, PutFile, RunCapture, GetFile, RunHostStep, HostBuild), but charly/plugin_executor_reverse.go RunStream is unchanged, and the body's leg enumeration (“Host reverse legs — RunSystem/…/HostBuild touch the call's clock”) omits it without explanation. A peer blocked consuming a single long, quiet host-side stream produces no host touch and (blocked) no CPU advance → the idle guard false-kills exactly the class this PR fixes. Either touch the clock for the stream's live duration or state in the enumeration why RunStream cannot be long.

  4. R1 / body truthfulness — the RCA evidence is in internal tension. The RCA blames the 10 m total cap for killing [update] “at exactly 10m”, yet the adjacent source comment (plugin_activity.go header) records that same check-omarchy-iso-vm R10 [update] as “788 s”, and the body cites sibling -inst updates that PASS at 1276 s/1346 s (> 10 m) as proof the operation is long-by-design — runs that could not have survived that same cap. State the exact path/version each run used (which bound applied) so the 788 s/“exactly 10m” and the >10 m -inst claims reconcile; as written they contradict.

  5. R3/R10 — one override var silently drives two unrelated bounds. pluginInvokeNoProgressOverride is read by both pluginInvokeNoProgress() (the idle window) and pluginLeafCap() (charly/plugin_activity.go), and TestInvokeTyped_FailsFastOnHungPlugin sets it — so that test shrinks the idle window and no longer exercises the real leaf default (pluginLeafCapDefault). Split the seam into two vars so each bound is testable in isolation.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

…eams

Review findings, all real:
- R4 (RunStream/RunInteractive): the ONE reverse leg with no wrapper. A peer blocked
  consuming a long quiet host stream (`logs --follow`, an interactive shell) produced no
  host touch and, blocked, no CPU advance — the idle guard would false-kill exactly the
  long-by-design class this change fixes. Both TTY-bounded legs now heartbeat.
- R10/B12 (pid plumb untested): connectAndDescribe → buildUnit → grpcProvider.pid →
  providerPid had NO test; if cmd.Process were nil the CPU source would be silently dead.
  processPid is now a named nil-safe helper, and TestProcessPid_NilSafeAndLive asserts
  0 before Start / the real pid after Start / the grpcProvider surfacing it.
- R3/R10 (one override, two bounds): pluginInvokeNoProgressOverride drove BOTH the idle
  window and the leaf cap, so the leaf test shrank the idle window instead of exercising
  the real 10m default. Split into pluginInvokeNoProgressOverride and pluginLeafCapOverride.

Full go vet + go test ./... green.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: a17995de756742778e3da7136b7ee911b27e79ae (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — plugin→plugin dispatch bound (plugin_activity.go + tests, transport pid plumb, reverse-leg heartbeats). No docs/candy/schema/*.cue/proto/CI/security-machinery edits.
Placement: CORRECT — the per-call idle clock, the leaf cap and the pid plumb are provider-dispatch/broker mechanism in core; plugin_activity.go's import block is stdlib-only (plus core-local loadedReadiness()), no *_aliases.go growth, no new core→sdk kit import, and no second consumer exists that would justify pushing it to sdk.

Blocks

  1. R1/B5 — surviving false comment, contradicted by its own code and by the sibling file already fixed in this same PR. charly/provider_invoke_timeout_test.go (doc above TestInvokeTyped_FailsFastOnHungPlugin, ~L21–24) still states the leaf bound is "a TOTAL-duration bound (the readiness absolute_cap, via pluginLeafCap)". pluginLeafCap() (charly/plugin_activity.go) reads no readiness config at all: it returns pluginLeafCapOverride else the hardcoded pluginLeafCapDefault = 10 * time.Minute, and plugin_activity.go's own doc says "The VALUE IS THE FORMER HARDCODED 10m". charly/provider_invoke.go's copy of this same false claim was corrected in this revision ("RETAINED former hardcoded 10m"), and the body agrees ("explicitly the former 10m (pluginLeafCapDefault, unchanged)"). Fix: make the comment say the retained hardcoded 10m leaf cap / the test override (pluginLeafCapOverride), or actually source the value from readiness.

  2. Body truthfulness (rule 4) — the pasted R10 transcript contradicts its own total. The charly check run check-omarchy-iso-vm paste lists 9 step results (vm-build, vm-create, deploy-add, bring-up-members, check-live, update, rebuild-ready, check-live-rebuild, cleanup) but its closing line reads PASS (steps=10). The omission is not explained (e.g. no [prepare-venue] line, although the RCA names prepare-venue as part of this flow). Paste the complete transcript, or the summary.yml step list, so the count reconciles — or correct the total. (Raised in the previous round; still present at this head.)

Comment intake

Four distinct BLOCK reviews exist (each duplicated by a second run), all at superseded heads (7c648de9, 75255aed); re-derived against the current a17995de diff/body:

  • 5672638057 / 5672638235: findings 1, 2, 4, 5, 6, 7 resolved (provider_invoke.go comment now says "former hardcoded 10m"; body now pastes the two real greps and their output; RunStream/RunInteractive are now wrapped in withActivityHeartbeat; heartbeat interval now derived from the window and capped at 5s; seams split into pluginInvokeNoProgressOverride / pluginLeafCapOverride; the body now reconciles the 788 s vs "cut at 10 m" and the in-proc-vs-out-of-proc -inst divergence). Finding 3 (pid plumb) verified-non-blocking: TestProcessPid_NilSafeAndLive now pins processPid (nil / before Start / started) and providerPid; the residual buildUnit pass-through is a one-line field assignment visible in the diff.
  • 5672638266 / 5672638417: findings 1, 2, 3, 4, 5, 6 resolved (grep evidence pasted; host_build_cli.go "context is unused" comment rewritten; no 90 * time.Second literal — pluginInvokeNoProgress() returns loadedReadiness().NoProgress; the CPU test now uses a POSIX arithmetic loop with t.Fatal instead of $SECONDS/t.Skip; long host legs heartbeated).
  • 5673208882 / 5673208992: finding 1 survives (= block 1), finding 6 survives (= block 2); findings 2, 3, 4, 5, 7 resolved as above.
  • 5673211316 / 5673211406: finding 1 survives (= block 2 at that head, still present), findings 2–5 resolved as above.
  • No approve-comment was present; none would have granted a PASS anyway.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: a17995de756742778e3da7136b7ee911b27e79ae (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — plugin→plugin dispatch bound (plugin_activity.go + tests, transport pid plumb, reverse-leg heartbeats). No docs/candy/schema/*.cue/proto/CI/security-machinery edits.
Placement: CORRECT — the per-call idle clock, the leaf cap and the pid plumb are provider-dispatch/broker mechanism in core; plugin_activity.go's import block is stdlib-only (plus core-local loadedReadiness()), no *_aliases.go growth, no new core→sdk kit import, and no second consumer exists that would justify pushing it to sdk.

Blocks

  1. R1/B5 — surviving false comment, contradicted by its own code and by the sibling file already fixed in this same PR. charly/provider_invoke_timeout_test.go (doc above TestInvokeTyped_FailsFastOnHungPlugin, ~L21–24) still states the leaf bound is "a TOTAL-duration bound (the readiness absolute_cap, via pluginLeafCap)". pluginLeafCap() (charly/plugin_activity.go) reads no readiness config at all: it returns pluginLeafCapOverride else the hardcoded pluginLeafCapDefault = 10 * time.Minute, and plugin_activity.go's own doc says "The VALUE IS THE FORMER HARDCODED 10m". charly/provider_invoke.go's copy of this same false claim was corrected in this revision ("RETAINED former hardcoded 10m"), and the body agrees ("explicitly the former 10m (pluginLeafCapDefault, unchanged)"). Fix: make the comment say the retained hardcoded 10m leaf cap / the test override (pluginLeafCapOverride), or actually source the value from readiness.

  2. Body truthfulness (rule 4) — the pasted R10 transcript contradicts its own total. The charly check run check-omarchy-iso-vm paste lists 9 step results (vm-build, vm-create, deploy-add, bring-up-members, check-live, update, rebuild-ready, check-live-rebuild, cleanup) but its closing line reads PASS (steps=10). The omission is not explained (e.g. no [prepare-venue] line, although the RCA names prepare-venue as part of this flow). Paste the complete transcript, or the summary.yml step list, so the count reconciles — or correct the total. (Raised in the previous round; still present at this head.)

Comment intake

Four distinct BLOCK reviews exist (each duplicated by a second run), all at superseded heads (7c648de9, 75255aed); re-derived against the current a17995de diff/body:

  • 5672638057 / 5672638235: findings 1, 2, 4, 5, 6, 7 resolved (provider_invoke.go comment now says "former hardcoded 10m"; body now pastes the two real greps and their output; RunStream/RunInteractive are now wrapped in withActivityHeartbeat; heartbeat interval now derived from the window and capped at 5s; seams split into pluginInvokeNoProgressOverride / pluginLeafCapOverride; the body now reconciles the 788 s vs "cut at 10 m" and the in-proc-vs-out-of-proc -inst divergence). Finding 3 (pid plumb) verified-non-blocking: TestProcessPid_NilSafeAndLive now pins processPid (nil / before Start / started) and providerPid; the residual buildUnit pass-through is a one-line field assignment visible in the diff.
  • 5672638266 / 5672638417: findings 1, 2, 3, 4, 5, 6 resolved (grep evidence pasted; host_build_cli.go "context is unused" comment rewritten; no 90 * time.Second literal — pluginInvokeNoProgress() returns loadedReadiness().NoProgress; the CPU test now uses a POSIX arithmetic loop with t.Fatal instead of $SECONDS/t.Skip; long host legs heartbeated).
  • 5673208882 / 5673208992: finding 1 survives (= block 1), finding 6 survives (= block 2); findings 2, 3, 4, 5, 7 resolved as above.
  • 5673211316 / 5673211406: finding 1 survives (= block 2 at that head, still present), findings 2–5 resolved as above.
  • No approve-comment was present; none would have granted a PASS anyway.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: a17995de756742778e3da7136b7ee911b27e79ae (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — one new core file (charly/plugin_activity.go) + dispatch-bound change + tests. No docs/candy/schema/*.cue/proto/CI/security-machinery edits.

Placement: CORRECT — the per-call idle clock, the reverse-leg heartbeats and the pid plumb are provider-dispatch / reverse-channel-broker mechanism, which B16 places in core; plugin_activity.go imports stdlib only, no *_aliases.go growth, no new core→sdk kit import, and no second consumer exists to justify sdk.

Security screen: T1–T4 clear. The change replaces the plugin→plugin total cap with an idle bound; it is a runtime fail-fast bound (not a guardrail surface), the wedge case (no host leg + frozen CPU) still trips the window, and it carries an explicit justification — T4 satisfied. No embedded directives, secrets/egress, or supply-chain edits.

Blocks

  1. B12 / rule 4 — the load-bearing R10 transcript does not reconcile with its own total. The body's charly check run check-omarchy-iso-vm paste lists 9 step lines (vm-build, vm-create, deploy-add, bring-up-members, check-live, update, rebuild-ready, check-live-rebuild, cleanup) but its closing line reads PASS (steps=10); the bed's prepare-venue step — the RCA's own claimed false-kill site — is absent from the paste. An R10 result whose pasted step list contradicts its count is unreconcilable from the body (B12). Fix: paste the complete transcript (all 10 step lines) or the summary.yml step list so the count reconciles. (This survived the prior review at 75255aed as block 6 and is unchanged at head.)

  2. B14(d) / rule 4 — the RCA's reconciliation is asserted, not evidenced. The body reconciles the sibling-runs tension by asserting the -inst beds "carry zero served from plugin lines (the plugin ran in-proc …)" while the failing run "shows 8 served from lines", and by arithmetic on 788 s vs "cut at exactly 10m". No command and no output for either count appear anywhere in the body. A claim whose reconciliation depends on counted log lines needs the executed command + its output pasted (B14(d)). Fix: paste the actual grep/count (or the summary.yml step durations) for those runs, or drop the unreconciled numeric claim.

Comment intake

  • 5672638057 / 5672638235 (dup pair, BLOCK @ 7c648de9) — re-derived against the current head: the provider_invoke.go false "readiness absolute_cap" comment is resolved (now "RETAINED former hardcoded 10m (pluginLeafCapDefault)", matching the code); the missing grep evidence is resolved (body now pastes the command + output, consistent with the diff — only plugin_activity.go:17 survives); the pid-plumb coverage is resolved (TestProcessPid_NilSafeAndLive covers processPid nil/pre-start/live and providerPid); RunStream no-touch is resolved (withActivityHeartbeat wrapper added); the 5 s-heartbeat-literal finding is stale-superseded (startPluginActivityHeartbeat now derives pluginInvokeNoProgress()/4 capped at 5 s — the cap only raises frequency, it cannot defeat the window); the steps-count finding survives = block 1; the RCA-tension finding survives in evidence form = block 2.
  • 5672638266 / 5672638417 (dup pair, BLOCK @ 7c648de9) — host_build_cli.go "context is unused" resolved (comment now describes the activity clock); "new 90 s literal" stale-superseded (pluginInvokeNoProgress() returns loadedReadiness().NoProgress); $SECONDS/t.Skip shell portability resolved (POSIX counter loop, t.Fatal); long-host-leg unheartbeated resolved.
  • 5673208882 / 5673208992 / 5673211316 / 5673211406 (BLOCK @ 75255aed) — blocks 1 (grep pasted), 3 (pid-plumb test), 4 (RunStream wrapped) and 5 (seams split into pluginInvokeNoProgressOverride / pluginLeafCapOverride) are resolved; block 6 → block 1; block 7 → block 2.
  • No approve-comment present; none could have granted a PASS regardless.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: a17995de756742778e3da7136b7ee911b27e79ae (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — one new core file (charly/plugin_activity.go) + dispatch-bound change + tests. No docs/candy/schema/*.cue/proto/CI/security-machinery edits.

Placement: CORRECT — the per-call idle clock, the reverse-leg heartbeats and the pid plumb are provider-dispatch / reverse-channel-broker mechanism, which B16 places in core; plugin_activity.go imports stdlib only, no *_aliases.go growth, no new core→sdk kit import, and no second consumer exists to justify sdk.

Security screen: T1–T4 clear. The change replaces the plugin→plugin total cap with an idle bound; it is a runtime fail-fast bound (not a guardrail surface), the wedge case (no host leg + frozen CPU) still trips the window, and it carries an explicit justification — T4 satisfied. No embedded directives, secrets/egress, or supply-chain edits.

Blocks

  1. B12 / rule 4 — the load-bearing R10 transcript does not reconcile with its own total. The body's charly check run check-omarchy-iso-vm paste lists 9 step lines (vm-build, vm-create, deploy-add, bring-up-members, check-live, update, rebuild-ready, check-live-rebuild, cleanup) but its closing line reads PASS (steps=10); the bed's prepare-venue step — the RCA's own claimed false-kill site — is absent from the paste. An R10 result whose pasted step list contradicts its count is unreconcilable from the body (B12). Fix: paste the complete transcript (all 10 step lines) or the summary.yml step list so the count reconciles. (This survived the prior review at 75255aed as block 6 and is unchanged at head.)

  2. B14(d) / rule 4 — the RCA's reconciliation is asserted, not evidenced. The body reconciles the sibling-runs tension by asserting the -inst beds "carry zero served from plugin lines (the plugin ran in-proc …)" while the failing run "shows 8 served from lines", and by arithmetic on 788 s vs "cut at exactly 10m". No command and no output for either count appear anywhere in the body. A claim whose reconciliation depends on counted log lines needs the executed command + its output pasted (B14(d)). Fix: paste the actual grep/count (or the summary.yml step durations) for those runs, or drop the unreconciled numeric claim.

Comment intake

  • 5672638057 / 5672638235 (dup pair, BLOCK @ 7c648de9) — re-derived against the current head: the provider_invoke.go false "readiness absolute_cap" comment is resolved (now "RETAINED former hardcoded 10m (pluginLeafCapDefault)", matching the code); the missing grep evidence is resolved (body now pastes the command + output, consistent with the diff — only plugin_activity.go:17 survives); the pid-plumb coverage is resolved (TestProcessPid_NilSafeAndLive covers processPid nil/pre-start/live and providerPid); RunStream no-touch is resolved (withActivityHeartbeat wrapper added); the 5 s-heartbeat-literal finding is stale-superseded (startPluginActivityHeartbeat now derives pluginInvokeNoProgress()/4 capped at 5 s — the cap only raises frequency, it cannot defeat the window); the steps-count finding survives = block 1; the RCA-tension finding survives in evidence form = block 2.
  • 5672638266 / 5672638417 (dup pair, BLOCK @ 7c648de9) — host_build_cli.go "context is unused" resolved (comment now describes the activity clock); "new 90 s literal" stale-superseded (pluginInvokeNoProgress() returns loadedReadiness().NoProgress); $SECONDS/t.Skip shell portability resolved (POSIX counter loop, t.Fatal); long-host-leg unheartbeated resolved.
  • 5673208882 / 5673208992 / 5673211316 / 5673211406 (BLOCK @ 75255aed) — blocks 1 (grep pasted), 3 (pid-plumb test), 4 (RunStream wrapped) and 5 (seams split into pluginInvokeNoProgressOverride / pluginLeafCapOverride) are resolved; block 6 → block 1; block 7 → block 2.
  • No approve-comment present; none could have granted a PASS regardless.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 817370a1b0a6267d2ac89f3139b55443cbe7e780 (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — plugin→plugin dispatch bound (plugin_activity.go idle guard, transport pid plumb, reverse-leg heartbeats) + Go tests. No docs/candy/schema/*.cue/proto/CI/security-machinery edits.

Placement: CORRECT — the per-call idle clock, the leaf cap and the pid plumb are provider-dispatch / reverse-channel-broker mechanism, which belongs in core; plugin_activity.go imports stdlib only (plus core-local loadedReadiness()), no *_aliases.go growth, no new core→sdk kit import, and no second consumer exists to justify pushing it to sdk.

Blocks

  1. R1/B5 — false comment, contradicted by its own code and by the sibling file already corrected in this PR. charly/provider_invoke_timeout_test.go (doc above TestInvokeTyped_FailsFastOnHungPlugin) states the leaf bound is "a TOTAL-duration bound (the readiness absolute_cap, via pluginLeafCap)". pluginLeafCap() (charly/plugin_activity.go) reads no readiness config at all: it returns pluginLeafCapOverride else the hardcoded pluginLeafCapDefault = 10 * time.Minute, and that file's own doc says "The VALUE IS THE FORMER HARDCODED 10m, UNCHANGED". charly/provider_invoke.go's copy of the same claim was rewritten in this revision ("RETAINED former hardcoded 10m (pluginLeafCapDefault)") and the body agrees; this copy was not. Fix: say the retained hardcoded 10m / pluginLeafCapOverride — or actually source the value from readiness.

  2. R1/B5 — second comment diverging from the code it documents. charly/plugin_activity.go, doc above withActivityHeartbeat: "runs fn while heartbeating the clock every 5s". The code path it calls, startPluginActivityHeartbeat, derives the beat from the no-progress window and its own doc says "beat is DERIVED from the no-progress window (never a fixed 5s)". For a configured window below 20 s the beat is window/4 (the 5 s value is only the cap/fallback). Make the two docs agree with the derived interval.

  3. A1 — a changed behaviour is missing from the body's accounting. The diff wraps RunInteractive and RunStream in withActivityHeartbeat (charly/plugin_executor_reverse.go), but the body's leg enumeration is "Host reverse legs — RunSystem/RunUser/PutFile/GetFile/RunCapture/RunHostStep/HostBuild touch the call's clock" — both streamed/interactive legs are absent. This is the same omission raised at the previous head (then also a code gap, now only a body gap). Add them to the enumeration.

  4. B10/B14(d) / rule 4 — the "repo-wide" R5 sweep is not repo-wide. The body claims "the executed repo-wide sweep (only the explanatory WHY comment survives)" but the pasted command is grep -rn 'defaultPluginInvokeTimeout' --include=*.go . | grep -v vendor — it excludes every non-Go file (docs, skills, yml), which is exactly where a stale "10 m plugin timeout" claim would live under R5. Paste an unscoped grep -rn 'defaultPluginInvokeTimeout' . (or state the scope and why non-Go surfaces cannot carry the claim).

Comment intake

Thread was truncated by the harness at comment 5673479353; all comments received were adjudicated below. Every one is a BLOCK from a superseded head (7c648de9, 75255aed, a17995de); re-derived against the current head:

  • 5672638057 / 5672638235 (dup pair @ 7c648de9) — provider_invoke.go "readiness absolute_cap" comment resolved; missing grep resolved (body pastes both greps); pid-plumb coverage resolved (TestProcessPid_NilSafeAndLive); RunStream no-touch resolved (withActivityHeartbeat wrapper); 5 s heartbeat literal stale-superseded (now window-derived); steps-count mismatch resolved (transcript now 10 lines + summary.yml list); RCA-tension verified-non-blocking (served-from counts now pasted: 0 in-proc -inst vs 8 out-of-proc; 788 s is the pre-fix run, 769 s the post-fix one).
  • 5672638266 / 5672638417 (dup pair @ 7c648de9) — host_build_cli.go "context is unused" resolved; "new 90 s literal" stale-superseded (pluginInvokeNoProgress() returns loadedReadiness().NoProgress); $SECONDS/t.Skip portability resolved (POSIX loop, t.Fatal); long host leg unheartbeated resolved (withActivityHeartbeat + TestIdleBoundedContext_LongHostLegIsProgress).
  • 5673208882 / 5673208992 / 5673211316 / 5673211406 (@ 75255aed) — grep evidence, pid-plumb coverage, RunStream wrapper and split seams resolved (pluginInvokeNoProgressOverride / pluginLeafCapOverride); their steps-count finding resolved as above.
  • 5673476290 / 5673476387 / 5673479268 / 5673479353 (@ a17995de) — their block 1 (provider_invoke_timeout_test.go "readiness absolute_cap" comment) survives → block 1; their steps-count block resolved; their sweep-evidence block partially survives → block 4.
  • No approve-comment present; none could have granted a PASS.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 817370a1b0a6267d2ac89f3139b55443cbe7e780 (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — plugin→plugin dispatch bound (plugin_activity.go idle guard, transport pid plumb, reverse-leg heartbeats) + Go tests. No docs/candy/schema/*.cue/proto/CI/security-machinery edits.

Placement: CORRECT — the per-call idle clock, the leaf cap and the pid plumb are provider-dispatch / reverse-channel-broker mechanism, which belongs in core; plugin_activity.go imports stdlib only (plus core-local loadedReadiness()), no *_aliases.go growth, no new core→sdk kit import, and no second consumer exists to justify pushing it to sdk.

Blocks

  1. R1/B5 — false comment, contradicted by its own code and by the sibling file already corrected in this PR. charly/provider_invoke_timeout_test.go (doc above TestInvokeTyped_FailsFastOnHungPlugin) states the leaf bound is "a TOTAL-duration bound (the readiness absolute_cap, via pluginLeafCap)". pluginLeafCap() (charly/plugin_activity.go) reads no readiness config at all: it returns pluginLeafCapOverride else the hardcoded pluginLeafCapDefault = 10 * time.Minute, and that file's own doc says "The VALUE IS THE FORMER HARDCODED 10m, UNCHANGED". charly/provider_invoke.go's copy of the same claim was rewritten in this revision ("RETAINED former hardcoded 10m (pluginLeafCapDefault)") and the body agrees; this copy was not. Fix: say the retained hardcoded 10m / pluginLeafCapOverride — or actually source the value from readiness.

  2. R1/B5 — second comment diverging from the code it documents. charly/plugin_activity.go, doc above withActivityHeartbeat: "runs fn while heartbeating the clock every 5s". The code path it calls, startPluginActivityHeartbeat, derives the beat from the no-progress window and its own doc says "beat is DERIVED from the no-progress window (never a fixed 5s)". For a configured window below 20 s the beat is window/4 (the 5 s value is only the cap/fallback). Make the two docs agree with the derived interval.

  3. A1 — a changed behaviour is missing from the body's accounting. The diff wraps RunInteractive and RunStream in withActivityHeartbeat (charly/plugin_executor_reverse.go), but the body's leg enumeration is "Host reverse legs — RunSystem/RunUser/PutFile/GetFile/RunCapture/RunHostStep/HostBuild touch the call's clock" — both streamed/interactive legs are absent. This is the same omission raised at the previous head (then also a code gap, now only a body gap). Add them to the enumeration.

  4. B10/B14(d) / rule 4 — the "repo-wide" R5 sweep is not repo-wide. The body claims "the executed repo-wide sweep (only the explanatory WHY comment survives)" but the pasted command is grep -rn 'defaultPluginInvokeTimeout' --include=*.go . | grep -v vendor — it excludes every non-Go file (docs, skills, yml), which is exactly where a stale "10 m plugin timeout" claim would live under R5. Paste an unscoped grep -rn 'defaultPluginInvokeTimeout' . (or state the scope and why non-Go surfaces cannot carry the claim).

Comment intake

Thread was truncated by the harness at comment 5673479353; all comments received were adjudicated below. Every one is a BLOCK from a superseded head (7c648de9, 75255aed, a17995de); re-derived against the current head:

  • 5672638057 / 5672638235 (dup pair @ 7c648de9) — provider_invoke.go "readiness absolute_cap" comment resolved; missing grep resolved (body pastes both greps); pid-plumb coverage resolved (TestProcessPid_NilSafeAndLive); RunStream no-touch resolved (withActivityHeartbeat wrapper); 5 s heartbeat literal stale-superseded (now window-derived); steps-count mismatch resolved (transcript now 10 lines + summary.yml list); RCA-tension verified-non-blocking (served-from counts now pasted: 0 in-proc -inst vs 8 out-of-proc; 788 s is the pre-fix run, 769 s the post-fix one).
  • 5672638266 / 5672638417 (dup pair @ 7c648de9) — host_build_cli.go "context is unused" resolved; "new 90 s literal" stale-superseded (pluginInvokeNoProgress() returns loadedReadiness().NoProgress); $SECONDS/t.Skip portability resolved (POSIX loop, t.Fatal); long host leg unheartbeated resolved (withActivityHeartbeat + TestIdleBoundedContext_LongHostLegIsProgress).
  • 5673208882 / 5673208992 / 5673211316 / 5673211406 (@ 75255aed) — grep evidence, pid-plumb coverage, RunStream wrapper and split seams resolved (pluginInvokeNoProgressOverride / pluginLeafCapOverride); their steps-count finding resolved as above.
  • 5673476290 / 5673476387 / 5673479268 / 5673479353 (@ a17995de) — their block 1 (provider_invoke_timeout_test.go "readiness absolute_cap" comment) survives → block 1; their steps-count block resolved; their sweep-evidence block partially survives → block 4.
  • No approve-comment present; none could have granted a PASS.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 817370a1b0a6267d2ac89f3139b55443cbe7e780 (base e0211c34aa81)

Change class: core runtime Go — plugin→plugin dispatch bound (charly/plugin_activity.go + tests, reverse-leg heartbeats, pid plumb, leaf-cap rename). No docs/candy/schema/*.cue/proto/CI/security-machinery edits.

Placement: CORRECT — the per-call idle clock, the leaf cap and the pid plumb are provider-dispatch / reverse-channel-broker mechanism (B16 core); no *_aliases.go growth, no new core→sdk kit import, no second consumer that would justify sdk.

Security screen: T1–T4 clear — no embedded directives, no secrets/egress (only /proc/<pid>/stat), no dependency/CI/validator/rulebook edit. The removed total cap is a runtime fail-fast bound, not a guardrail-listed surface; the wedge case (no host leg + frozen CPU) still trips the window, and the change carries an explicit justification → T4 satisfied.

Blocks

  1. R1/B5 — a comment added by this PR still misstates its own code. charly/provider_invoke_timeout_test.go (~L21–24, doc above TestInvokeTyped_FailsFastOnHungPlugin) says the leaf bound is “a TOTAL-duration bound (the readiness absolute_cap, via pluginLeafCap)”. pluginLeafCap() (charly/plugin_activity.go) reads no readiness config: it returns pluginLeafCapOverride else const pluginLeafCapDefault = 10 * time.Minute, and plugin_activity.go's own doc says “The VALUE IS THE FORMER HARDCODED 10m, UNCHANGED”, as does the body (“explicitly the former 10m (pluginLeafCapDefault, unchanged)”). The identical false claim in charly/provider_invoke.go was corrected in this PR; this copy was not. Fix: say the retained hardcoded 10 m pluginLeafCapDefault / the pluginLeafCapOverride test seam, or actually source the value from readiness.

  2. R1/B5 — the leg enumeration this PR relies on is stale w.r.t. its own additions. charly/plugin_activity.go:26-28 states “Every reverse-channel LEAF the host performs for the peer plugin (RunSystem/RunUser/PutFile/GetFile/RunCapture/RunHostStep/HostBuild) touches the call's activity clock”, but this same diff also touches the clock in RunStream and RunInteractive (charly/plugin_executor_reverse.go). Update the enumeration (or state why those two are excluded) so the file’s contract matches the code.

Comment intake (all prior comments are at superseded heads — re-derived against 817370a1)

  • 5672638057/5672638235 (BLOCK @7c648de9): resolved — provider_invoke.go comment now truthful; the R5 greps are pasted with output (plugin_activity.go:17 sole survivor, consistent with the diff); the pid plumb is pinned by TestProcessPid_NilSafeAndLive (nil / pre-Start / live + providerPid); RunStream is now wrapped; the fixed-5 s heartbeat is now window-derived; the step-count paste has 10 lines for steps=10 (with a matching summary.yml list); the -inst >10 m survival is now evidenced by grep -c 'served from' (0 in-proc vs 8 out-of-proc), which is consistent with the removed cap living in the reverse-channel handler (it needs a plugin-process caller). No surviving block.
  • 5672638266/5672638417 (@7c648de9): resolved — host_build_cli.go “context is unused” rewritten; no 90 * time.Second literal (pluginInvokeNoProgress() → loadedReadiness().NoProgress); CPU test is a POSIX arithmetic loop with t.Fatal, no skip.
  • 5673208882/5673208992 and 5673211316/5673211406 (@75255aed): items 2–5 and 7 resolved (grep evidence, pid-plumb test, RunStream, split seams pluginInvokeNoProgressOverride/pluginLeafCapOverride); the surviving item — the provider_invoke_timeout_test.go “readiness absolute_cap” comment — is block 1 here.
  • 5673476290/5673476387 and 5673479268/5673479353 (@a17995de): the steps=10/9-line contradiction is resolved by the current paste; the served from evidence ask is resolved (counts pasted); the surviving item is block 1 here.
  • No approve-comment exists; none could have granted a PASS regardless.

Non-blocking note (B15): five non-changelog commits (008b7f90, 7c648de9, 75255aed, a17995de, 817370a1) — the iterative/fix-up split should be squashed into one atomic commit; no partial or deferred in-scope work is visible in the final tree.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 817370a1b0a6267d2ac89f3139b55443cbe7e780 (base e0211c34aa81)

Change class: core runtime Go — plugin→plugin dispatch bound (charly/plugin_activity.go + tests, reverse-leg heartbeats, pid plumb, leaf-cap rename). No docs/candy/schema/*.cue/proto/CI/security-machinery edits.

Placement: CORRECT — the per-call idle clock, the leaf cap and the pid plumb are provider-dispatch / reverse-channel-broker mechanism (B16 core); no *_aliases.go growth, no new core→sdk kit import, no second consumer that would justify sdk.

Security screen: T1–T4 clear — no embedded directives, no secrets/egress (only /proc/<pid>/stat), no dependency/CI/validator/rulebook edit. The removed total cap is a runtime fail-fast bound, not a guardrail-listed surface; the wedge case (no host leg + frozen CPU) still trips the window, and the change carries an explicit justification → T4 satisfied.

Blocks

  1. R1/B5 — a comment added by this PR still misstates its own code. charly/provider_invoke_timeout_test.go (~L21–24, doc above TestInvokeTyped_FailsFastOnHungPlugin) says the leaf bound is “a TOTAL-duration bound (the readiness absolute_cap, via pluginLeafCap)”. pluginLeafCap() (charly/plugin_activity.go) reads no readiness config: it returns pluginLeafCapOverride else const pluginLeafCapDefault = 10 * time.Minute, and plugin_activity.go's own doc says “The VALUE IS THE FORMER HARDCODED 10m, UNCHANGED”, as does the body (“explicitly the former 10m (pluginLeafCapDefault, unchanged)”). The identical false claim in charly/provider_invoke.go was corrected in this PR; this copy was not. Fix: say the retained hardcoded 10 m pluginLeafCapDefault / the pluginLeafCapOverride test seam, or actually source the value from readiness.

  2. R1/B5 — the leg enumeration this PR relies on is stale w.r.t. its own additions. charly/plugin_activity.go:26-28 states “Every reverse-channel LEAF the host performs for the peer plugin (RunSystem/RunUser/PutFile/GetFile/RunCapture/RunHostStep/HostBuild) touches the call's activity clock”, but this same diff also touches the clock in RunStream and RunInteractive (charly/plugin_executor_reverse.go). Update the enumeration (or state why those two are excluded) so the file’s contract matches the code.

Comment intake (all prior comments are at superseded heads — re-derived against 817370a1)

  • 5672638057/5672638235 (BLOCK @7c648de9): resolved — provider_invoke.go comment now truthful; the R5 greps are pasted with output (plugin_activity.go:17 sole survivor, consistent with the diff); the pid plumb is pinned by TestProcessPid_NilSafeAndLive (nil / pre-Start / live + providerPid); RunStream is now wrapped; the fixed-5 s heartbeat is now window-derived; the step-count paste has 10 lines for steps=10 (with a matching summary.yml list); the -inst >10 m survival is now evidenced by grep -c 'served from' (0 in-proc vs 8 out-of-proc), which is consistent with the removed cap living in the reverse-channel handler (it needs a plugin-process caller). No surviving block.
  • 5672638266/5672638417 (@7c648de9): resolved — host_build_cli.go “context is unused” rewritten; no 90 * time.Second literal (pluginInvokeNoProgress() → loadedReadiness().NoProgress); CPU test is a POSIX arithmetic loop with t.Fatal, no skip.
  • 5673208882/5673208992 and 5673211316/5673211406 (@75255aed): items 2–5 and 7 resolved (grep evidence, pid-plumb test, RunStream, split seams pluginInvokeNoProgressOverride/pluginLeafCapOverride); the surviving item — the provider_invoke_timeout_test.go “readiness absolute_cap” comment — is block 1 here.
  • 5673476290/5673476387 and 5673479268/5673479353 (@a17995de): the steps=10/9-line contradiction is resolved by the current paste; the served from evidence ask is resolved (counts pasted); the surviving item is block 1 here.
  • No approve-comment exists; none could have granted a PASS regardless.

Non-blocking note (B15): five non-changelog commits (008b7f90, 7c648de9, 75255aed, a17995de, 817370a1) — the iterative/fix-up split should be squashed into one atomic commit; no partial or deferred in-scope work is visible in the final tree.

Verdict: BLOCK


opencode/deepseek-v4.1-flash — action-review.

View action run

- provider_invoke_timeout_test.go said the leaf bound is 'the readiness absolute_cap';
  pluginLeafCap reads NO readiness config — it is the retained hardcoded
  pluginLeafCapDefault (the override seam shrank it for the test). Corrected.
- plugin_activity.go's leg enumeration omitted RunStream/RunInteractive, which this
  same change added heartbeats to. Enumeration updated.
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 3dafd618c778bc44325a74e06d5f30ba8b23f6a9 (base e0211c34aa81; branch not exposed by get_pr_meta)

Change class: core runtime Go (plugin→plugin dispatch bound, plugin_activity.go + legs/pid plumb + tests); no docs/candy/schema/*.cue/proto/CI/security-machinery edits.
Security screen: PASS — no embedded directives, secrets/egress, dependency or guardrail-surface edits; the replaced total cap is a runtime fail-fast bound with an explicit justification, and the wedge case (no host leg + frozen peer CPU) still trips the idle window.
Checklist: All applicable rules PASS or NA. Placement: CORRECT — the per-call idle clock and pid plumb are provider-dispatch/reverse-broker mechanism (core); plugin_activity.go imports stdlib only, no *_aliases.go growth, no new core→sdk kit import, no second consumer to justify sdk.

Comment intake (all prior comments are at superseded heads 7c648de9 / 75255aed / a17995de; each re-derived against the current diff/body):

  • 5672638057/5672638235/5672638266/5672638417: findings resolved or stale-superseded — both false leaf-bound comments now match pluginLeafCap's code; the R5/RCA greps are pasted and consistent with the diff (the single defaultPluginInvokeTimeout hit is charly/plugin_activity.go:17, which is exactly that line in the new file); seams split into pluginInvokeNoProgressOverride / pluginLeafCapOverride; RunStream/RunInteractive now wrapped; $SECONDS/t.Skip replaced by a POSIX loop + t.Fatal; pid plumb covered by TestProcessPid_NilSafeAndLive.
  • 5673208882/5673208992/5673211316/5673211406: findings resolved; the two that survived then are the two fixed at this head.
  • 5673476290/5673476387/5673479268/5673479353: the last two blocks are stale-superseded — commit 3dafd618 rewrote the provider_invoke_timeout_test.go doc to "RETAINED hardcoded pluginLeafCapDefault … via pluginLeafCap", and the current body's check-omarchy-iso-vm paste now lists 10 steps ([cleanup-members] PASS 0s) matching its own steps=10, with the summary.yml durations rounding identically (768.764→769, 183.979→184) and the -inst reconciliation backed by pasted grep -c 'served from' counts (0 vs 8).
  • No approve-comment present; none would have granted a PASS anyway.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 3dafd618c778bc44325a74e06d5f30ba8b23f6a9 (base e0211c34aa81; branch not exposed by get_pr_meta)

Change class: core runtime Go (plugin→plugin dispatch bound, plugin_activity.go + legs/pid plumb + tests); no docs/candy/schema/*.cue/proto/CI/security-machinery edits.
Security screen: PASS — no embedded directives, secrets/egress, dependency or guardrail-surface edits; the replaced total cap is a runtime fail-fast bound with an explicit justification, and the wedge case (no host leg + frozen peer CPU) still trips the idle window.
Checklist: All applicable rules PASS or NA. Placement: CORRECT — the per-call idle clock and pid plumb are provider-dispatch/reverse-broker mechanism (core); plugin_activity.go imports stdlib only, no *_aliases.go growth, no new core→sdk kit import, no second consumer to justify sdk.

Comment intake (all prior comments are at superseded heads 7c648de9 / 75255aed / a17995de; each re-derived against the current diff/body):

  • 5672638057/5672638235/5672638266/5672638417: findings resolved or stale-superseded — both false leaf-bound comments now match pluginLeafCap's code; the R5/RCA greps are pasted and consistent with the diff (the single defaultPluginInvokeTimeout hit is charly/plugin_activity.go:17, which is exactly that line in the new file); seams split into pluginInvokeNoProgressOverride / pluginLeafCapOverride; RunStream/RunInteractive now wrapped; $SECONDS/t.Skip replaced by a POSIX loop + t.Fatal; pid plumb covered by TestProcessPid_NilSafeAndLive.
  • 5673208882/5673208992/5673211316/5673211406: findings resolved; the two that survived then are the two fixed at this head.
  • 5673476290/5673476387/5673479268/5673479353: the last two blocks are stale-superseded — commit 3dafd618 rewrote the provider_invoke_timeout_test.go doc to "RETAINED hardcoded pluginLeafCapDefault … via pluginLeafCap", and the current body's check-omarchy-iso-vm paste now lists 10 steps ([cleanup-members] PASS 0s) matching its own steps=10, with the summary.yml durations rounding identically (768.764→769, 183.979→184) and the -inst reconciliation backed by pasted grep -c 'served from' counts (0 vs 8).
  • No approve-comment present; none would have granted a PASS anyway.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 15, 2026 02:19
@github-actions
github-actions Bot merged commit aef63f0 into main Sep 15, 2026
5 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 3dafd618c778bc44325a74e06d5f30ba8b23f6a9 (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — plugin→plugin dispatch bound (plugin_activity.go + tests, transport pid plumb, reverse-leg heartbeats); no docs/candy/schema/*.cue/proto/CI/security-machinery edits.

Security screen: PASS — no T1–T4 finding (no embedded directives, no secrets/egress, no dependency/CI/validator/rulebook edit; the replaced bound is a runtime fail-fast guard, not a guardrail surface, and carries explicit measured justification while the wedge case — no host leg + frozen CPU — still trips).

Checklist: All applicable rules PASS or NA. Placement CORRECT (provider-dispatch / reverse-channel-broker mechanism in core; stdlib-only imports; no *_aliases.go growth, no new core→sdk kit import, no second consumer to justify sdk).

Comment intake (all prior comments are at superseded heads and were re-derived against the current diff/body):

  • 5672638057/5672638235 @ 7c648de9 — findings 1–7 stale-superseded/resolved: the provider_invoke.go leaf-cap doc now says "RETAINED former hardcoded 10m (pluginLeafCapDefault)"; the R5 sweep is now pasted as a real command with output consistent with the diff (plugin_activity.go:17 comment only); pid-plumb coverage exists (TestProcessPid_NilSafeAndLive); RunStream/RunInteractive are now wrapped; the heartbeat is window-derived (per the current diff), so the fixed-5s finding no longer reproduces; the seams are split (pluginInvokeNoProgressOverride / pluginLeafCapOverride); the RCA tension is reconciled with the served from counts.
  • 5672638266/5672638417 @ 7c648de9 — all findings resolved/superseded (host_build_cli.go "context is unused" comment now describes the activity clock; no 90 * time.Second fallback literal — pluginInvokeNoProgress() returns loadedReadiness().NoProgress; the CPU test uses a POSIX loop with t.Fatal, not $SECONDS/t.Skip; long host legs are heartbeated).
  • 5673208882/5673208992/5673211316/5673211406 @ 75255aed — the surviving comment/evidence items are resolved at this head; the transcript count is fixed.
  • 5673476290/5673476387/5673479268/5673479353 @ a17995de (last round) — the two blocks are fixed by the head commit and the body update: provider_invoke_timeout_test.go's doc now reads "the RETAINED hardcoded pluginLeafCapDefault, via pluginLeafCap" (matching pluginLeafCap()), and the R10 paste now lists all ten step lines (… cleanup, cleanup-members) reconciling with PASS (steps=10) and with the summary.yml step list/durations (769 ≈ 12m48.7s, 184 ≈ 3m3.9s, etc.).
  • No approve-comment present; none could have granted a PASS regardless.

Residual items are non-blocking: startPluginActivityHeartbeat's docstring "never a fixed 5s" is loose given its own interval = 5 * time.Second cap, but the beat is min(window/4, 5s) — always below the window, so the guard is never defeated and the comment directly beneath states the cap; and the host_build_cli heartbeat overlaps the HostBuild wrapper's (defensive, shared helper — not a duplicated block). Verified live-proof arithmetic and bed-step consistency from the pasted output (tool-limited re-run); no contradiction with the diff.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 3dafd618c778bc44325a74e06d5f30ba8b23f6a9 (branch not exposed by get_pr_meta; base e0211c34aa81)

Change class: core runtime Go — plugin→plugin dispatch bound (plugin_activity.go + tests, transport pid plumb, reverse-leg heartbeats); no docs/candy/schema/*.cue/proto/CI/security-machinery edits.

Security screen: PASS — no T1–T4 finding (no embedded directives, no secrets/egress, no dependency/CI/validator/rulebook edit; the replaced bound is a runtime fail-fast guard, not a guardrail surface, and carries explicit measured justification while the wedge case — no host leg + frozen CPU — still trips).

Checklist: All applicable rules PASS or NA. Placement CORRECT (provider-dispatch / reverse-channel-broker mechanism in core; stdlib-only imports; no *_aliases.go growth, no new core→sdk kit import, no second consumer to justify sdk).

Comment intake (all prior comments are at superseded heads and were re-derived against the current diff/body):

  • 5672638057/5672638235 @ 7c648de9 — findings 1–7 stale-superseded/resolved: the provider_invoke.go leaf-cap doc now says "RETAINED former hardcoded 10m (pluginLeafCapDefault)"; the R5 sweep is now pasted as a real command with output consistent with the diff (plugin_activity.go:17 comment only); pid-plumb coverage exists (TestProcessPid_NilSafeAndLive); RunStream/RunInteractive are now wrapped; the heartbeat is window-derived (per the current diff), so the fixed-5s finding no longer reproduces; the seams are split (pluginInvokeNoProgressOverride / pluginLeafCapOverride); the RCA tension is reconciled with the served from counts.
  • 5672638266/5672638417 @ 7c648de9 — all findings resolved/superseded (host_build_cli.go "context is unused" comment now describes the activity clock; no 90 * time.Second fallback literal — pluginInvokeNoProgress() returns loadedReadiness().NoProgress; the CPU test uses a POSIX loop with t.Fatal, not $SECONDS/t.Skip; long host legs are heartbeated).
  • 5673208882/5673208992/5673211316/5673211406 @ 75255aed — the surviving comment/evidence items are resolved at this head; the transcript count is fixed.
  • 5673476290/5673476387/5673479268/5673479353 @ a17995de (last round) — the two blocks are fixed by the head commit and the body update: provider_invoke_timeout_test.go's doc now reads "the RETAINED hardcoded pluginLeafCapDefault, via pluginLeafCap" (matching pluginLeafCap()), and the R10 paste now lists all ten step lines (… cleanup, cleanup-members) reconciling with PASS (steps=10) and with the summary.yml step list/durations (769 ≈ 12m48.7s, 184 ≈ 3m3.9s, etc.).
  • No approve-comment present; none could have granted a PASS regardless.

Residual items are non-blocking: startPluginActivityHeartbeat's docstring "never a fixed 5s" is loose given its own interval = 5 * time.Second cap, but the beat is min(window/4, 5s) — always below the window, so the guard is never defeated and the comment directly beneath states the cap; and the host_build_cli heartbeat overlaps the HostBuild wrapper's (defensive, shared helper — not a duplicated block). Verified live-proof arithmetic and bed-step consistency from the pasted output (tool-limited re-run); no contradiction with the diff.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@aitrawog
aitrawog deleted the fix/plugin-invoke-idle-bound branch September 25, 2026 19:06
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.

2 participants