Skip to content

fix(gateway): bind detached lifecycle dispatch - #126040

Merged
steipete merged 1 commit into
mainfrom
codex/fix-main-detached-lifecycle-dispatch
Aug 18, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/fix-main-detached-lifecycle-dispatch

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Detached subagent completion delivery failed after the originating Gateway request scope ended. Main CI profile 3/6 timed out in subagent-completion-direct-fallback because all direct-handoff retries lacked an instance binding.

Root Cause

The ambient process-global Gateway fallback was correctly removed, but detached announce, descendant wake, and queued generated-media recovery still called the request-scoped in-process dispatcher. Their lifecycle owner had no closure-bound Gateway principal.

Fix

The active Gateway instance now exposes a lifecycle-bound agent-turn dispatcher. It preserves final-result waiting, acceptance/abort hooks, delegated completion-tool handoff, model/scopes, cron continuation, and internal-delivery media facts. Detached announce, descendant wake, and restart recovery share this canonical owner; missing or closed instances fail closed.

Evidence

The exact Crabline Telegram scenario remains a proof gap: local source-runner artifact freshness scanning prevented the child launch. A qa-channel probe did confirm the former missing-binding error was gone before timing out on its Telegram-specific terminal marker.

AI-assisted: yes. No agent transcript attached.

@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Aug 18, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. 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. labels Aug 18, 2026
@clawsweeper

clawsweeper Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 6:00 PM ET / 22:00 UTC.

ClawSweeper review

What this changes

The PR routes detached subagent announcements and queued restart-recovery turns through the active Gateway lifecycle runtime so they can dispatch agent work after the original request scope ends.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer approval: the patch replaces a request-scoped dispatcher that cannot serve detached work with the existing lifecycle-owned Gateway runtime. No discrete correctness defect was found in the proposed change, but its privileged dispatch boundary warrants exact-head validation and human approval.

Priority: P1
Reviewed head: ee634455ed45718d07c83332bb753185461188c4
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused owner-boundary repair with source-backed regression coverage; exact-head Gateway validation remains the material merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned internal Gateway fix is not subject to the external-contributor real-behavior-proof gate; the PR body supplies focused and Testbox validation claims for normal maintainer review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-owned internal Gateway fix is not subject to the external-contributor real-behavior-proof gate; the PR body supplies focused and Testbox validation claims for normal maintainer review.
Evidence reviewed 5 items Current-main failure boundary: The in-process dispatcher accepts only an ambient plugin request scope or an explicit context resolver, and otherwise throws the missing-binding error; detached completion code on current main imports that dispatcher.
Lifecycle-owned replacement: The proposed runtime registers delegated handoff state, maps the existing final/abort/model/cron/media options into a synthetic Gateway client, and releases handoff state after dispatch.
Detached call sites: The direct subagent announce path and restart-sentinel generated-media path both now enter the lifecycle dispatcher, covering the two owner paths named by the PR.
Findings None None.
Security None None.

Live Verification

Command: pnpm test src/agents/subagents/announce/subagent-announce-delivery.runtime.test.ts

Result: FAIL (partial) — step 2 expect_output delivers a detached announce after the originating request scope has ended: expected terminal output was not visible within 30 seconds: "delivers a detached announce after the originating request scope has ended"

pnpm test src/agents/subagents/announce/subagent-announce-delivery.runtime.test.ts
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126040-jiuKQW/target$ pnpm test src/agents/subagents/announce/subagent-announce-delivery.runtime.test.ts
$ node --import tsx scripts/test-projects.mts src/agents/subagents/announce/subagent-announce-delivery.runtime.test.ts
pnpm test src/agents/subagents/announce/subagent-announce-delivery.runtime.test.ts
[test] starting test/vitest/vitest.agents-support.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-126040-jiuKQW/target

 ✓  agents-support  src/agents/subagents/announce/subagent-announce-delivery.runtime.test.ts (1 test) 23ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  22:01:43
   Duration  26.50s (transform 22.01s, setup 1.04s, import 25.06s, tests 23ms, environment 0ms)

[test] passed 1 Vitest shard in 32.06s
runner@runnervmzvulz:/tmp/clawsweeper-live-proof-126040-jiuKQW/target$ pnpm test src/agents/subagents/announce/subagent-announce-delivery.runtime.test.ts
$ node --import tsx scripts/test-projects.mts src/agents/subagents/announce/subagent-announce-delivery.runtime.test.ts

































Assertions:

  • FAIL expect_output: delivers a detached announce after the originating request scope has ended

How this fits together

Detached subagent completion and restart recovery occur after an inbound Gateway request has finished. They need the active Gateway instance to validate and run an internal agent turn, then return completion delivery to the owning session or channel.

flowchart LR
  A[Subagent completion or recovery event] --> B[Detached delivery path]
  B --> C[Lifecycle dispatch bridge]
  C --> D[Active Gateway instance]
  D --> E[Bound internal agent turn]
  E --> F[Session or channel delivery]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned Gateway lifecycle-principal change be approved once the exact-head Gateway checks are green? Approve after exact-head validation: Land once the focused lifecycle and Gateway checks pass on the current head.

Why: The change governs privileged internal dispatch after request teardown, and the protected maintainer label requires explicit human handling rather than automated cleanup.

Before merge

  • Resolve merge risk (P1) - This bug fix adds 74 net production lines in an authority-sensitive Gateway path; exact-head validation must confirm final-result waiting, delegated handoff, cron continuation, and media-delivery options retain their prior behavior.
  • Complete next step (P2) - The protected maintainer-owned authority-boundary PR needs human approval and exact-head validation, not an automated replacement repair.
Agent review details

Security

None.

PR surface

Source +74, Tests +75. Total +149 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 6 84 10 +74
Tests 2 77 2 +75
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 161 12 +149

Review metrics

Metric Value Why it matters
Production vs test LOC production +84/-10 (net +74); tests +77/-2 (net +75) The added production plumbing carries lifecycle authority and delivery semantics, so its net growth merits exact-head validation.

Merge-risk options

Maintainer options:

  1. Complete lifecycle validation before merge (recommended)
    Require exact-head Gateway validation for detached announce and restart-recovery dispatch before landing this authority-boundary change.

Technical review

Best possible solution:

Keep one lifecycle-owned dispatch facade and land only after its exact-head Gateway checks confirm detached delivery and recovery option propagation.

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

Yes, source-reproducible: current main's detached path reaches a dispatcher that requires a request scope or explicit resolver, while the new focused test establishes the same no-request-scope setup with an active instance runtime.

Is this the best way to solve the issue?

Yes: using the existing lifecycle-owned Gateway runtime is a cleaner repair than restoring an ambient request-scoped fallback, and it preserves the established internal agent-turn validation path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 41e3968ee4f6.

Labels

Label changes:

  • add P1: Detached subagent completion and recovery delivery can fail in active Gateway workflows.
  • add merge-risk: 🚨 security-boundary: The patch propagates synthetic dispatch scopes and delegated completion-handoff authority across a Gateway lifecycle boundary.
  • add merge-risk: 🚨 availability: An error in lifecycle dispatch can prevent detached agent work from completing or recovering.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned internal Gateway fix is not subject to the external-contributor real-behavior-proof gate; the PR body supplies focused and Testbox validation claims for normal maintainer review.

Label justifications:

  • P1: Detached subagent completion and recovery delivery can fail in active Gateway workflows.
  • merge-risk: 🚨 availability: An error in lifecycle dispatch can prevent detached agent work from completing or recovering.
  • merge-risk: 🚨 security-boundary: The patch propagates synthetic dispatch scopes and delegated completion-handoff authority across a Gateway lifecycle boundary.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned internal Gateway fix is not subject to the external-contributor real-behavior-proof gate; the PR body supplies focused and Testbox validation claims for normal maintainer review.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the preceding typed internal-agent and recovery-facade refactors as well as this lifecycle-dispatch change. (role: typed gateway dispatch contributor; confidence: high; commits: 432356a68438, bff0494f33b2, ee634455ed45; files: src/gateway/server-instance-runtime.ts, src/gateway/server-recovery-runtime-context.ts)

Rank-up moves

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

  • Let the exact-head Gateway checks finish green before approval.

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.

@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready at source head ee634455ed45718d07c83332bb753185461188c4.

  • Exact-head CI run 32190196446 completed successfully, including the applicable Gateway and repository gates.
  • Fresh commit autoreview passed clean at correctness 0.97 with no accepted/actionable findings.
  • ClawSweeper found no discrete correctness defect; its sole Rank-up move was green exact-head Gateway checks, now satisfied.
  • Maintainer decision: I accept the lifecycle-principal boundary. Detached lifecycle dispatch is owned by the active Gateway instance and fails closed when the instance is absent or closed.

@steipete
steipete merged commit 8ccfd07 into main Aug 18, 2026
234 checks passed
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete
steipete deleted the codex/fix-main-detached-lifecycle-dispatch branch August 18, 2026 23:31
steipete added a commit that referenced this pull request Aug 19, 2026
Restore the reviewed #126062 dispatcher after its squash merge retained the older lifecycle export from #126040. Keep detached subagent completion delivery bound to the originating live Gateway resolver.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
obviyus added a commit that referenced this pull request Oct 1, 2026
… warning in the owner chat (#162772)

## What Problem This Solves

Fixes: when an automation's owner-conversation repair turn (#161007) times out, the owner chat gets a generic "Request timed out… Please try again" warning that the user never asked for and the session never recorded.

## User Impact

A repair turn now posts only what the agent wrote: a fix note, a question, or nothing (NO_REPLY). A runtime failure of the repair itself, such as an idle timeout, run deadline, or provider error, posts nothing. The job's next failure sends the normal failure alert, which names the repair. Ordinary user turns are unchanged and still show the timeout warning.

## Why This Change Was Made

**Provenance.** The repair (#161007, fb2052a) dispatches the Gateway `agent` method with `deliver: true` on the instance lifecycle principal. When a run ends on the terminal-timeout path, `run/terminal-timeout.ts` appends a synthetic `{ text, isError: true }` payload. The idle-timeout copy comes from e899b32. `command/post-run.ts` hands that payload to `command/delivery.ts`, which sends it. The only payload selection there is `selectSourceDeliverablePayloads` (#156540), and it filters only `message_tool_only` turns. That path is right for a user's own turn. For a scheduler-authored repair, the warning tells the user to "try again" about a message they never sent, and the brief's NO_REPLY instruction cannot suppress text the runtime generates. `transcript-persistence` already leaves `isError` payloads out of the transcript, so the chat showed a message the session never recorded.

**Fix.** Add one host-owned option, `internalDeliverySuppressErrors`. It follows the same path as the existing `internalDeliverySuppressText` (#126040): lifecycle dispatch option → synthetic client `internal` → agent ingress → `AgentCommandOpts`. It is not a wire param or config key. It is a Gateway-only command option (`AgentCommandGatewayOnlyKey`), and `sanitizePublicAgentCommandIngressOpts` clears it, so plugin ingress cannot set it. `selectSourceDeliverablePayloads` now takes the command opts and drops `isError` payloads when the option is set. Both of its callers use it: `delivery.ts`, and `post-run.ts` for the pending-final marker, so restart redelivery matches what was sent. `runGatewayCronFailureRepair` is the only caller that sets it. The run result, `onResultErrorPayload`, lifecycle error status, and history are unchanged.

Known limit (owner decision): if the Gateway restarts while a repair turn is running, main-session restart recovery resumes that turn without this option. A timeout on the resumed turn then posts the warning, which is the behavior before this PR and never louder. Persisting the flag would mean a new `restartRecovery*` session field threaded through the claim, adopt and clear logic in about 10 places, all for a compound restart-plus-timeout edge, so it is left out.

Also not covered: if the provider has `models.providers.<id>.timeoutSeconds` set, the transport timeout throws a `FailoverError` before delivery, so the repair was already silent there. Nothing changes on that path.

**Bounded cost.** No new messages. One fewer message per timed-out repair turn. One boolean is threaded through existing internal plumbing. A plain array filter runs only when the option is set.

Hermes check: Hermes cron keeps result delivery and failure notices apart. Failure notices go through their own lane (`failure_deliver`, `for_failure=True`, notification category `diagnostic`, which a target profile can hide; see `cron/scheduler_delivery.py`). The same split applies here: the repair turn delivers its authored result, and the failure lane (cron's alert) owns escalation.

## Evidence

- `src/agents/command/delivery.test.ts`, real `deliverAgentCommandResult` with only the outbound transport mocked:
  - a timeout `isError` payload is delivered by default, which is the ordinary turn and is unchanged;
  - with the option set, nothing is sent;
  - with an authored reply plus the timeout, only the authored reply is sent.
  - Fails on origin/main because the payload is sent.
- `src/agents/agent-command-execution-identity.test.ts`: forged plugin ingress with `internalDeliverySuppressErrors: true` is sanitized to `undefined`.
- `src/gateway/server.cron-failure-repair.test.ts`, real Gateway with `cron.add`/`cron.run`: the repair turn reaches `agentCommand` with `internalDeliverySuppressErrors: true`. Fails on origin/main.
- **Live Telegram Test Server, live model (`openai/gpt-6-astra`), DM owner conversation.** Each run uses an isolated source Gateway with `agents.defaults.timeoutSeconds: 200`. A proxy in front of the real OpenAI API returns a 400 for the automation's own runs, and every model request of the repair turn gets SSE `response.created` and then silence, so the turn's idle watchdog (120s) has to end it. That is a timeout the live model can't be made to produce on demand. Scenario: owned hourly job, `failureAlert {after: 2}`; run ×2 → repair turn; wait 240s; run (3rd failure).

  | Owner DM | origin/main | PR head `57c23a5` |
  |---|---|---|
  | repair turn (owner history: brief, then two aborted assistant turns with `LLM idle timeout (120s)`) | *"The model did not produce a response before the model idle timeout. Please try again, or increase models.providers.<id>.timeoutSeconds…"* posted | nothing posted |
  | 3rd failure | *"Automation "Inbox sync" failed 3 times / An automatic repair was requested… / Cause: format"* | same alert |

  Both runs completed: lease released, no listeners left.
- qa-lab smoke (throwaway, real isolated source Gateway, qa-channel, mock provider behind a stall proxy, `agents.defaults.timeoutSeconds=20`): the repair run hits `embedded run timeout: runId=cron-failure-repair:…`, and the owner conversation gets no outbound. A normal inbound turn stalled the same way still gets "Request timed out before a response was generated…". The same harness on origin/main delivered that warning to the owner conversation.
- Focused suites (`pnpm vitest run <file> --maxWorkers=1`): `src/agents/command/delivery.test.ts` 46 passed in 7.9s; `src/agents/agent-command-execution-identity.test.ts` 15 passed in 5.5s; `src/gateway/server.cron-failure-repair.test.ts` 1 passed in 28.5s (real Gateway startup, unchanged by this PR).

LOC vs origin/main: prod +39/−9 (11 files, mostly one-line plumbing), test +33/−1.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
… warning in the owner chat (openclaw#162772)

## What Problem This Solves

Fixes: when an automation's owner-conversation repair turn (openclaw#161007) times out, the owner chat gets a generic "Request timed out… Please try again" warning that the user never asked for and the session never recorded.

## User Impact

A repair turn now posts only what the agent wrote: a fix note, a question, or nothing (NO_REPLY). A runtime failure of the repair itself, such as an idle timeout, run deadline, or provider error, posts nothing. The job's next failure sends the normal failure alert, which names the repair. Ordinary user turns are unchanged and still show the timeout warning.

## Why This Change Was Made

**Provenance.** The repair (openclaw#161007, fc14fc8) dispatches the Gateway `agent` method with `deliver: true` on the instance lifecycle principal. When a run ends on the terminal-timeout path, `run/terminal-timeout.ts` appends a synthetic `{ text, isError: true }` payload. The idle-timeout copy comes from 3799c86. `command/post-run.ts` hands that payload to `command/delivery.ts`, which sends it. The only payload selection there is `selectSourceDeliverablePayloads` (openclaw#156540), and it filters only `message_tool_only` turns. That path is right for a user's own turn. For a scheduler-authored repair, the warning tells the user to "try again" about a message they never sent, and the brief's NO_REPLY instruction cannot suppress text the runtime generates. `transcript-persistence` already leaves `isError` payloads out of the transcript, so the chat showed a message the session never recorded.

**Fix.** Add one host-owned option, `internalDeliverySuppressErrors`. It follows the same path as the existing `internalDeliverySuppressText` (openclaw#126040): lifecycle dispatch option → synthetic client `internal` → agent ingress → `AgentCommandOpts`. It is not a wire param or config key. It is a Gateway-only command option (`AgentCommandGatewayOnlyKey`), and `sanitizePublicAgentCommandIngressOpts` clears it, so plugin ingress cannot set it. `selectSourceDeliverablePayloads` now takes the command opts and drops `isError` payloads when the option is set. Both of its callers use it: `delivery.ts`, and `post-run.ts` for the pending-final marker, so restart redelivery matches what was sent. `runGatewayCronFailureRepair` is the only caller that sets it. The run result, `onResultErrorPayload`, lifecycle error status, and history are unchanged.

Known limit (owner decision): if the Gateway restarts while a repair turn is running, main-session restart recovery resumes that turn without this option. A timeout on the resumed turn then posts the warning, which is the behavior before this PR and never louder. Persisting the flag would mean a new `restartRecovery*` session field threaded through the claim, adopt and clear logic in about 10 places, all for a compound restart-plus-timeout edge, so it is left out.

Also not covered: if the provider has `models.providers.<id>.timeoutSeconds` set, the transport timeout throws a `FailoverError` before delivery, so the repair was already silent there. Nothing changes on that path.

**Bounded cost.** No new messages. One fewer message per timed-out repair turn. One boolean is threaded through existing internal plumbing. A plain array filter runs only when the option is set.

Hermes check: Hermes cron keeps result delivery and failure notices apart. Failure notices go through their own lane (`failure_deliver`, `for_failure=True`, notification category `diagnostic`, which a target profile can hide; see `cron/scheduler_delivery.py`). The same split applies here: the repair turn delivers its authored result, and the failure lane (cron's alert) owns escalation.

## Evidence

- `src/agents/command/delivery.test.ts`, real `deliverAgentCommandResult` with only the outbound transport mocked:
  - a timeout `isError` payload is delivered by default, which is the ordinary turn and is unchanged;
  - with the option set, nothing is sent;
  - with an authored reply plus the timeout, only the authored reply is sent.
  - Fails on origin/main because the payload is sent.
- `src/agents/agent-command-execution-identity.test.ts`: forged plugin ingress with `internalDeliverySuppressErrors: true` is sanitized to `undefined`.
- `src/gateway/server.cron-failure-repair.test.ts`, real Gateway with `cron.add`/`cron.run`: the repair turn reaches `agentCommand` with `internalDeliverySuppressErrors: true`. Fails on origin/main.
- **Live Telegram Test Server, live model (`openai/gpt-6-astra`), DM owner conversation.** Each run uses an isolated source Gateway with `agents.defaults.timeoutSeconds: 200`. A proxy in front of the real OpenAI API returns a 400 for the automation's own runs, and every model request of the repair turn gets SSE `response.created` and then silence, so the turn's idle watchdog (120s) has to end it. That is a timeout the live model can't be made to produce on demand. Scenario: owned hourly job, `failureAlert {after: 2}`; run ×2 → repair turn; wait 240s; run (3rd failure).

  | Owner DM | origin/main | PR head `57c23a5` |
  |---|---|---|
  | repair turn (owner history: brief, then two aborted assistant turns with `LLM idle timeout (120s)`) | *"The model did not produce a response before the model idle timeout. Please try again, or increase models.providers.<id>.timeoutSeconds…"* posted | nothing posted |
  | 3rd failure | *"Automation "Inbox sync" failed 3 times / An automatic repair was requested… / Cause: format"* | same alert |

  Both runs completed: lease released, no listeners left.
- qa-lab smoke (throwaway, real isolated source Gateway, qa-channel, mock provider behind a stall proxy, `agents.defaults.timeoutSeconds=20`): the repair run hits `embedded run timeout: runId=cron-failure-repair:…`, and the owner conversation gets no outbound. A normal inbound turn stalled the same way still gets "Request timed out before a response was generated…". The same harness on origin/main delivered that warning to the owner conversation.
- Focused suites (`pnpm vitest run <file> --maxWorkers=1`): `src/agents/command/delivery.test.ts` 46 passed in 7.9s; `src/agents/agent-command-execution-identity.test.ts` 15 passed in 5.5s; `src/gateway/server.cron-failure-repair.test.ts` 1 passed in 28.5s (real Gateway startup, unchanged by this PR).

LOC vs origin/main: prod +39/−9 (11 files, mostly one-line plumbing), test +33/−1.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant