Skip to content

fix(microsoft-foundry): bound az subprocess lifetime on exec timeout - #110434

Merged
steipete merged 1 commit into
openclaw:mainfrom
Pick-cat:fix/microsoft-foundry-execaz-sigkill
Aug 26, 2026
Merged

steipete merged 1 commit into
openclaw:mainfrom
Pick-cat:fix/microsoft-foundry-execaz-sigkill

Conversation

@Pick-cat

@Pick-cat Pick-cat commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

execAz() uses synchronous execFileSync() with a 30-second timeout. Node sends the configured kill signal when that timeout expires. With the default SIGTERM, a child that ignores termination can keep the synchronous gateway path blocked after the intended deadline.

Why This Change Was Made

Set killSignal: "SIGKILL" on the existing synchronous Azure CLI invocation. This preserves the command, timeout, shell, encoding, return value, and error behavior while making the existing deadline terminal.

The asynchronous sibling already uses the shared process runtime and its two-phase termination policy, so it does not need the synchronous option.

Evidence Map

Layer Evidence
Changed surface execAz() in extensions/microsoft-foundry/cli.ts
Owner boundary Microsoft Foundry owns its Azure CLI invocation policy locally
Callers Azure CLI installation, account, subscription, and access-token probes
Callee contract Node execFileSync() honors timeout with the configured killSignal
Sibling execAzAsync() remains on the shared async process runtime
Focused suite 109/109 Microsoft Foundry tests passed
Real behavior 3/3 runs terminated a real SIGTERM-immune child with SIGKILL inside the bound
Remote changed gate Passed on the same stable patch
Static proof Formatting and git diff --check passed
Autoreview Secret scan passed; the exact-head model review produced no finding or heartbeat before the 30-minute infrastructure ceiling and was stopped without rerun

Repair Shape

  • Root cause: the synchronous subprocess deadline used a non-terminal signal.
  • Architectural owner: the Microsoft Foundry Azure CLI wrapper.
  • Canonical fix: make the existing timeout terminal at its producer.
  • Removed paths: none; no fallback or parallel execution path was added.
  • Production delta: +1 line.
  • Tests: +43/-1 lines, including direct option proof and a real child-process regression.
  • Sibling coverage: the asynchronous path was inspected and already has force-kill escalation.

User Impact

Timed-out synchronous az commands no longer keep the gateway thread blocked because the child ignored SIGTERM. Successful commands are unchanged.

@clawsweeper clawsweeper Bot added the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Jul 18, 2026
@Pick-cat Pick-cat changed the title fix(microsoft-foundry): force SIGKILL when az CLI times out fix(microsoft-foundry): bound az subprocess lifetime on exec timeout Jul 18, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed. Reviewed August 25, 2026, 10:45 PM ET / August 26, 2026, 02:45 UTC.

ClawSweeper review

What this changes

The PR makes the Microsoft Foundry plugin force-kill a synchronous Azure CLI child when its 30-second timeout expires and asserts that option in the plugin test.

Regression provenance

Possible regression — probable (reviewed change; reproduction). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open for its armed automerge path: the one-line owner-boundary repair is coherent and no patch defect was found, but exact-head CI is still in progress.

Priority: P1
Reviewed head: 762c6af9a99b1b38c53bdbaba4099ede9e9ea75e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with credible real subprocess proof; remaining readiness depends on completing the current exact-head checks.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The PR discussion contains redacted after-fix terminal evidence that a real SIGTERM-immune child was terminated and returned ETIMEDOUT inside the timeout bound.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR discussion contains redacted after-fix terminal evidence that a real SIGTERM-immune child was terminated and returned ETIMEDOUT inside the timeout bound.
Evidence reviewed 7 items Changed owner boundary: The synchronous Azure CLI wrapper owns the timeout and now supplies a terminal kill signal to its existing child-process call.
Caller coverage: The same wrapper serves installation detection, account lookup, subscription discovery, synchronous access-token retrieval, and onboarding resource queries.
Sibling is already bounded: The asynchronous sibling delegates to the shared process runtime, which supplies a 300 ms force-kill delay after its timeout policy.
Findings None None.
Security None None.

Live Verification

Command: pnpm test:fast -- extensions/microsoft-foundry/index.test.ts

Result: FAIL (failed) — step 1 run pnpm test:fast -- extensions/microsoft-foundry/index.test.ts: previous terminal command was still running after 30 seconds: "pnpm test:fast -- extensions/microsoft-foundry/index.test.ts"

/git.test.ts, src/agents/utils/syntax-highlight.test.ts, src/agents/workspace.defaults.test.ts, src/agents/worktrees/name.test.ts, src/auto-reply/command-auth.o
wner-default.test.ts, src/auto-reply/command-turn-context.test.ts, src/auto-reply/commands-args.test.ts, src/auto-reply/envelope.test.ts, src/auto-reply/heartbe
at-filter.browser-import.test.ts, src/auto-reply/heartbeat-filter.test.ts, src/auto-reply/heartbeat-reply-payload.test.ts, src/auto-reply/heartbeat-tool-respons
e.test.ts, src/auto-reply/heartbeat.test.ts, src/auto-reply/media-note.test.ts, src/auto-reply/model.test.ts, src/auto-reply/reply-payload.test.ts, src/auto-rep
ly/reply.directive.directive-behavior.prefers-alias-matches-fuzzy-selection-is-ambiguous.test.ts, src/auto-reply/reply.directive.directive-behavior.shows-curren
t-verbose-level-verbose-has-no.test.ts, src/auto-reply/reply.directive.parse.test.ts, src/auto-reply/reply.media-note.test.ts, src/auto-reply/reply.raw-body.tes
t.ts, src/auto-reply/reply/acp-stream-settings.test.ts, src/auto-reply/reply/agent-runner-command-output.test.ts, src/auto-reply/reply/agent-runner-context-reco
very.test.ts, src/auto-reply/reply/agent-runner-core.test.ts, src/auto-reply/reply/agent-runner-execution-auth-failures.test.ts, src/auto-reply/reply/agent-runn
er-execution-cli-sessions.test.ts, src/auto-reply/reply/agent-runner-execution-runtime.test.ts, src/auto-reply/reply/agent-runner-execution-state.test.ts, src/a
uto-reply/reply/agent-runner-failure-reply.test.ts, src/auto-reply/reply/agent-runner-memory.dedup.test.ts, src/auto-reply/reply/agent-runner-presentation.test.
ts, src/auto-reply/reply/agent-runner-reminder-guard.test.ts, src/auto-reply/reply/agent-runner-runtime-config.test.ts, src/auto-reply/reply/agent-runner-usage-
line.test.ts, src/auto-reply/reply/block-reply-pipeline.multi-message.test.ts, src/auto-reply/reply/block-streaming.test.ts, src/auto-reply/reply/channel-run-ad
mission.test.ts, src/auto-reply/reply/command-context-rewrite.test.ts, src/auto-reply/reply/commands-acp/shared.test.ts, src/auto-reply/reply/commands-handlers.
registration.test.ts, src/auto-reply/reply/commands-learn.test.ts, src/auto-reply/reply/commands-loop.test.ts, src/auto-reply/reply/commands-openclaw-cli.test.t
s, src/auto-reply/reply/commands-parse.test.ts, src/auto-reply/reply/commands-reset-mode.test.ts, src/auto-reply/reply/commands-setunset.test.ts, src/auto-reply
/reply/commands-slash-parse.test.ts, src/auto-reply/reply/completion-delivery-policy.test.ts, src/auto-reply/reply/directive-handling.model-picker.test.ts, src/
auto-reply/reply/directive-handling.queue-validation.test.ts, src/auto-reply/reply/dispatch-from-config.final-outcome-counts.test.ts, src/auto-reply/reply/effec
tive-reply-route.test.ts, src/auto-reply/reply/get-reply-exec-overrides.test.ts, src/auto-reply/reply/get-reply-run-execute.test.ts, src/auto-reply/reply/get-re
ply-run-helpers.media-facts.test.ts, src/auto-reply/reply/history.test.ts, src/auto-reply/reply/inbound-context.test.ts, src/auto-reply/reply/inbound-media.test
.ts, src/auto-reply/reply/mcp-connect-channel-action.test.ts, src/auto-reply/reply/memory-flush.test.ts, src/auto-reply/reply/mentions.test.ts, src/auto-reply/r
eply/model-selection-directive.test.ts, src/auto-reply/reply/origin-routing.test.ts, src/auto-reply/reply/pending-final-delivery.test.ts, src/auto-reply/reply/p
rivate-message-tool-final.test.ts, src/auto-reply/reply/prompt-prelude.test.ts, src/auto-reply/reply/queue-policy.test.ts, src/auto-reply/reply/queue.media-carr
ier.test.ts, src/auto-reply/reply/queue/drain.client-caps.test.ts, src/auto-reply/reply/queue/drain.identity-guard.test.ts, src/auto-reply/reply/queue/settings.
test.ts, src/auto-reply/reply/queue/state.test.ts, src/auto-reply/reply/reply-elevated.test.ts, src/auto-reply/reply/reply-inline.test.ts, src/auto-reply/reply/
routing-policy.test.ts, src/auto-reply/reply/runtime-policy-session-key.test.ts, src/auto-reply/reply/session-de
… output truncated …

Assertions:

  • FAIL expect_output: hard-stops a synchronous Azure CLI command at its timeout

How this fits together

Microsoft Foundry uses Azure CLI during provider setup, account discovery, subscription selection, and synchronous token retrieval. Those probes return provider state to the plugin, while its asynchronous token path uses OpenClaw’s shared process runtime.

flowchart LR
A[Provider setup or token request] --> B[Microsoft Foundry plugin]
B --> C[Synchronous Azure CLI probe]
C --> D[Thirty-second timeout]
D --> E[Terminal child stop]
E --> F[Provider result or timeout error]
B --> G[Async Azure CLI probe]
G --> H[Shared process runtime]
Loading

Before merge

  • Resolve merge risk (P2) - The new terminal timeout intentionally forgoes graceful cleanup after 30 seconds; exact-head CI should complete before merge to confirm the provider package and cross-platform checks remain safe.
  • Resolve merge risk (P1) - The Node child-process contract could not be re-read from local dependency source or upstream documentation because this sparse checkout lacks those files and network DNS was unavailable; the supplied after-fix terminal proof is preserved as valid evidence.
  • Complete next step (P2) - No repair task is needed; exact-head CI completion is the remaining merge gate for this automerge-armed PR.
Agent review details

Security

None.

PR surface

Source +1, Tests +11. Total +12 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 0 +1
Tests 1 12 1 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 13 1 +12

Review metrics

Metric Value Why it matters
Production versus test delta production +1/-0; tests +12/-1 The production addition is a single timeout-policy option at the Azure CLI owner; the test verifies that option without adding a parallel execution path.

Merge-risk options

Maintainer options:

  1. Complete exact-head validation (recommended)
    Allow the in-progress checks for the current head to finish green before the armed automerge path evaluates this timeout-lifecycle change.

Technical review

Best possible solution:

Keep the terminal timeout at the Microsoft Foundry CLI wrapper, retain the focused option regression test, and let exact-head CI complete before the existing automerge path lands it.

Do we have a high-confidence way to reproduce the issue?

Yes, source and the PR’s terminal evidence establish the path: a synchronous Azure CLI child ignores the default termination signal after the existing timeout. The contributor reports an after-fix SIGTERM-immune-child run returning ETIMEDOUT within the configured deadline.

Is this the best way to solve the issue?

Yes. The repair changes the timeout policy at the sole synchronous Azure CLI owner, while the async sibling already has force-kill escalation through the shared process runtime.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 72adefbca06c.

Labels

Label justifications:

  • P1: A timed-out synchronous Azure CLI probe can block provider setup and authentication until its child exits.
  • merge-risk: 🚨 availability: The change alters timeout termination for provider subprocesses, so a platform-specific process-lifecycle regression could affect setup or token retrieval.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane. Sufficient (terminal): The PR discussion contains redacted after-fix terminal evidence that a real SIGTERM-immune child was terminated and returned ETIMEDOUT inside the timeout bound.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR discussion contains redacted after-fix terminal evidence that a real SIGTERM-immune child was terminated and returned ETIMEDOUT inside the timeout bound.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Recent history includes the Microsoft Foundry CLI refactor and the preceding device-code timeout repair. (role: recent area contributor; confidence: high; commits: c1bab399abac, e5999c731667; files: extensions/microsoft-foundry/cli.ts, extensions/microsoft-foundry/auth.ts)
  • wangmiao0668000666: History records a prior Microsoft Foundry Azure CLI device-code subprocess-lifetime fix. (role: earlier timeout-repair contributor; confidence: medium; commits: 6935293626b3; files: extensions/microsoft-foundry/cli.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the in-progress exact-head CI checks finish green before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-31T08:04:44.128Z sha 6d228fc6e560853d05f0e99a44b5f5d08eeddd77 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T23:19:19.799Z sha ee3144c20152251040a542abe66618d524ae6d89 :: passed. :: none
  • reviewed 2026-08-04T03:23:37.356Z sha ee3144c20152251040a542abe66618d524ae6d89 :: passed. :: none
  • reviewed 2026-08-11T21:12:49.183Z sha ee3144c20152251040a542abe66618d524ae6d89 :: passed. :: none
  • reviewed 2026-08-11T22:02:08.037Z sha ee3144c20152251040a542abe66618d524ae6d89 :: passed. :: none
  • reviewed August 20, 2026, 1:49 AM ET / 05:49 UTC sha unknown :: passed. :: none
  • reviewed 2026-08-26T01:55:46.030Z sha 6e8de2857c67da5d702b272d3608950d246e19cd :: passed. :: none
  • reviewed 2026-08-26T02:14:19.692Z sha 6e8de2857c67da5d702b272d3608950d246e19cd :: passed. :: none

@Pick-cat

Pick-cat commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor Author

ClawSweeper P1 clarification: execAzAsync already has two-phase termination

ClawSweeper flagged execAzAsync as also needing the fix, based on the claim that it "uses execFile" — but the current source does not.

Source facts

extensions/microsoft-foundry/cli.ts:3,62:

import { runExec } from "openclaw/plugin-sdk/process-runtime";

const { stdout } = await runExec("az", args, { logOutput: false, timeoutMs: 30_000 });

execAzAsync calls runExec (the SDK wrapper), not the Node.js built-in execFile.

runExec timeout-termination chain

src/process/exec.ts:50-63 → spawnCommand → execa:

  1. After 30s, execa sends SIGTERM
  2. After 300ms (COMMAND_PROCESS_TREE_KILL_GRACE_MS), execa sends SIGKILL

src/process/exec-spawn.ts:7 defines COMMAND_PROCESS_TREE_KILL_GRACE_MS = 300

Conclusion

execAzAsync already has SIGTERM → 300ms → SIGKILL two-phase force termination. No additional changes needed.

Only the synchronous path execAz uses execFileSync, which defaults to SIGTERM with no force-kill fallback — this is exactly what the PR fixes.

@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@Pick-cat

Copy link
Copy Markdown
Contributor Author

Real execAz behavioral proof — redacted terminal output

A fake az bash script was created that traps SIGTERM and runs forever (simulating a hung Azure CLI). The patched execAz was invoked against it:

=== execAz with killSignal: SIGKILL proof ===
Running fake az at /tmp/test-fake-az.sh...
fake-az pid=1009375
execAz threw after 30033ms
Error: spawnSync /tmp/test-fake-az.sh ETIMEDOUT
PASS: terminated within expected 30s window
=== proof complete ===

Result: execAz returned control after ~30s (within the configured timeout), throwing ETIMEDOUT. Without the fix (killSignal defaulting to SIGTERM), this call would hang indefinitely since the process traps SIGTERM.

Windows note

killSignal is a POSIX-only option. On Windows (shell: true), execFileSync spawns through cmd.exe; the timeout kills the shell process which terminates the child tree via the Windows process model. The behavior change is Linux/macOS-only; Windows is unchanged.

Proof layers summary

Layer Where What
Mock contract index.test.ts:591 execFileSync receives killSignal: "SIGKILL"
Node API behavioral index.test.ts:604 Real execFileSync + SIGKILL terminates SIGTERM-immune Node child
runExec behavioral index.test.ts:622 Real runExec two-phase kill terminates SIGTERM-immune Node child
Changed-helper end-to-end Terminal above execAz with fake az stand-in returns after 30s timeout

@Pick-cat

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 18, 2026
@Takhoffman

Copy link
Copy Markdown
Contributor

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper automerge is enabled.

  • Head: 762c6af9a99b
  • Label: clawsweeper:automerge
  • Action: exact-head review queued (workflow sweep.yml, event repository_dispatch).
  • Flow: review this head, repair/rebase only if needed, then re-review the exact repaired head before merge.

Draft PRs stay fix-only until GitHub marks them ready for review. Pause with /clawsweeper stop.

Automerge progress:

  • 2026-08-11 21:57:24 UTC review queued ee3144c20152 (queued)
  • 2026-08-26 02:24:58 UTC review passed 6e8de2857c67 (structured ClawSweeper verdict: pass (sha=6e8de2857c67da5d702b272d3608950d246e1...)
  • 2026-07-19 00:30:02 UTC review queued 6e8de2857c67 (queued)
  • 2026-08-26 02:42:19 UTC review queued 762c6af9a99b (queued)

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. clawsweeper:human-review Needs maintainer review before ClawSweeper can continue and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 19, 2026
@clawsweeper

clawsweeper Bot commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞✅
ClawSweeper is pausing this repair loop for human review.

Source: clawsweeper[bot]
Reason: - [P2] No repair lane is needed: no actionable patch defect remains, and the next step is exact-head automerge/check gating rather than a code change.; Cleared: The two-file patch changes a child-process timeout option and tests only; it adds no dependency, workflow, credential, permission, or supply-chain surface. (sha=3ce23fb73d870d10f3066f2b55c03926a4600979)

Why human review is needed:
This item has security-sensitive risk. ClawSweeper is pausing instead of making an autonomous change that could affect trust, credentials, permissions, or exposure.

What the maintainer can do as a next step:
If the maintainer accepts the current risk and wants ClawSweeper to continue merge gates, comment @clawsweeper approve. If the security-sensitive detail still needs changes, describe the safe path or push the fix, then comment @clawsweeper automerge. If the risk should not be automated, keep the PR paused for manual review or comment @clawsweeper stop.

I added clawsweeper:human-review and left the final call with a maintainer.

@Takhoffman

Copy link
Copy Markdown
Contributor

@clawsweeper approve

@clawsweeper clawsweeper Bot added status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. clawsweeper:human-review Needs maintainer review before ClawSweeper can continue clawsweeper:merge-ready ClawSweeper found the PR merge-ready but a human gate is still closed labels Aug 11, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This assigned pull request has been automatically marked as stale after being open for 27 days.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Aug 15, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. labels Aug 20, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Aug 21, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This assigned pull request has been automatically marked as stale after being open for 27 days.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Aug 21, 2026
@steipete
steipete force-pushed the fix/microsoft-foundry-execaz-sigkill branch from ee3144c to 6e8de28 Compare August 26, 2026 01:01
@steipete

Copy link
Copy Markdown
Contributor

Refreshed this contributor fix onto current main while preserving @Pick-cat as the Git author and reducing the original regression diff from 43 added test lines to 12.

The existing 30-second synchronous Azure CLI timeout is not a hard deadline: Node waits for the child to exit after sending its default SIGTERM, so a child that ignores the signal can hang installation detection, account/subscription discovery, or token retrieval indefinitely. Current OpenClaw sibling owners already document this exact dependency contract and use killSignal: "SIGKILL".

  • A new owner-boundary regression failed on unmodified main, then passed after the single production-line repair.
  • All 93 Microsoft Foundry provider tests pass.
  • A real subprocess that explicitly ignores SIGTERM was killed with SIGKILL and returned ETIMEDOUT after 504 ms against a 500 ms deadline.
  • Direct lint, formatting, and fresh independent structured review pass; production delta is +1/-0, justified by Node's process-lifecycle contract.
  • The first exact-head hosted run failed only on an unrelated new no-explicit-any error in scripts/github/release-validation-campaign.d.mts from moving main; a green exact-head rerun remains mandatory before landing.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. clawsweeper:human-review Needs maintainer review before ClawSweeper can continue clawsweeper:merge-ready ClawSweeper found the PR merge-ready but a human gate is still closed labels Aug 26, 2026
@steipete
steipete force-pushed the fix/microsoft-foundry-execaz-sigkill branch from 6e8de28 to 762c6af Compare August 26, 2026 02:40
@steipete

Copy link
Copy Markdown
Contributor

The unrelated release-validation lint regression is now repaired on main by #129725. Rebasing this contributor PR onto that corrected baseline preserves @Pick-cat's authorship and the identical one-line subprocess fix.

All 93 Microsoft Foundry tests pass again, direct lint now passes for both changed provider files and the formerly failing release-validation declaration, and fresh independent structured review reports no actionable findings. The real SIGTERM-immune subprocess still returns ETIMEDOUT/SIGKILL after approximately 500 ms. Fresh exact-head CI is running.

@steipete
steipete merged commit 7e9d59c into openclaw:main Aug 26, 2026
108 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge extensions: microsoft-foundry merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS stale Marked as stale due to inactivity status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants