Skip to content

fix(qa): keep leases when Gateway startup teardown fails - #131740

Merged
steipete merged 12 commits into
mainfrom
steipete/kind-vaughan-6d9a27
Aug 28, 2026
Merged

steipete merged 12 commits into
mainfrom
steipete/kind-vaughan-6d9a27

Conversation

@steipete

@steipete steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #131643 — QA Lab releases leases after unconfirmed Gateway startup cleanup.

What Problem This Solves

Fixes an issue where source-checkout QA runs could return a shared transport credential lease after Gateway startup failed, even while a descendant of that Gateway remained alive. The real suite cleanup path and lease client reproduced this against a disposable process group and synthetic loopback broker: the old code released with the leader gone but its descendant still running.

Why This Change Was Made

Create the Gateway lifetime owner before awaiting startup and register every spawn before acceptance/readiness. That same owner survives failed startup, retry, replacement and explicit finalization, and returns never-spawned, confirmed-stopped or unconfirmed independently of cleanup diagnostics. Standard suites, manual lanes, shared live-lane startup and private QA fixtures no longer infer termination from a missing ready handle.

The refactor removes the success-only startup factories, reuses conservative POSIX liveness, serializes concurrent stops, permits a later stop to retry unconfirmed termination, and preserves failure artifacts until explicit finalization. Fixture cleanup preserves both operation and cleanup errors while attempting all owned cleanup phases. Existing transport cleanup / cleanupAfterGatewayStop contracts remain unchanged.

User Impact

A failed QA startup cannot release its Gateway-backed lease without authoritative shutdown confirmation. Unconfirmed termination retains lease heartbeat and runtime ownership; unrelated diagnostic errors do not masquerade as live processes. Normal npm Gateway behavior is unchanged: this is private source-checkout QA infrastructure, and the private facade callers migrate together.

No public configuration option, dependency, SQLite schema, persisted-state format, broker TTL or protocol change. Telegram's conditional quarantine is not generic protection, and there is no new durability guarantee after parent/host loss. Discord/WhatsApp adapter phase repairs and transcript work remain separate.

Evidence

Final source: 822c20f2cca. Exact-head gates: CI 33208608685 and PR-native CodeQL 33208608680. Both completed successfully: CI 172 successful jobs / 16 intentional skips; PR-native CodeQL includes actual semantic query tests, analysis and fail-on-findings. Network semantic job.

  • Real process/lease red→green on macOS/Linux; Linux QA: 217 files / 3,019 tests. A disposable leader/descendant and synthetic broker demonstrate lease retention plus heartbeat until confirmed termination; the normal control releases.
  • Actual private-QA build and isolated CLI/Gateway/QA Channel/mock-provider flow passed 1/1, with no reply to unmentioned chatter, the expected mention reply, all three listeners closed and zero owned processes/temp entries. Historical source identity and limits are retained.
  • New-main WhatsApp/Discord fixtures migrated without changing assertions, attachment behavior, timeouts or provenance. 78 focused tests and root/extension types passed; the actual hosted built attachment flow passed all five variants.
  • Selector regressions run actual YAML Bash and real jq: four intended red cases, then 190 tests passed with two intentional skips. Scoped checks and workflow sanity passed. New exact-head CodeQL passed all seven semantic expected rows, full analysis and fail-on-findings.
  • OcPath's wall-clock benchmark incorrectly charged off-CPU delays to synchronous work. Its test-only helper now measures current-worker CPU, removing minimum-of-three compensation while preserving all numeric budgets, multiplier, workloads and assertions. A real bounded 250 ms wait was red before the edit and green afterward; all 40 plugin files / 684 tests, extension types, format, scoped gate and type-aware lint passed. Fresh isolated review is clean. No original-host CPU cause or end-to-end latency proof is asserted.

Complete final proof, commands, contracts, review dispositions and limits.

CI follow-through and review disposition

Nine prior commits replayed patch-identically, with no conflicts, onto pinned main 4788f764f578b28c6ab26ee19b941a940632ffe0 after actual merge-tree failures. Subsequent Discord, selector and OcPath repairs did not rebase for drift. Private-QA imports remain within plugin boundaries; newly landed executable callers of removed startup APIs were migrated. The final fixture integrations retain synchronous ownership and cleanup before startup awaits.

Necessary CodeQL follow-through corrects the renamed JSONL socket owner from the macOS companion cancellation/JSONL owner refactor (#131650), escalates sensitive diffs into same-PR semantic work, covers configured net-policy and JS/TS-family sources, retains real query fixtures (5 raw + 2 managed rows, distinct stems and both MTS options), registers duplicate-scan targets and permits formatting whitespace in the exact owner assertion. No query scope, action pin, permission or timeout is weakened.

The late missing/null-patch finding is addressed at the metadata owner. .patch // "" was pre-existing, not introduced here. GitHub's optional-patch contract was inspected directly; a live first-100-file read had patches for all entries, so no actual omission or precise omission threshold is claimed. One successful snapshot replaces three requests and duplicate scans; explicit absent/null monitored-source metadata selects full analysis. The adjacent shard detector propagates API/parse failures. Ordinary/excluded cases and exact contract/Codex triggers are preserved.

ClawSweeper's latest exact-head review at August 28, 20:40 UTC reports no actionable findings; its previous review explicitly accepted the selector repair. Its remaining Rank-up moves are final exact-head green CI and maintainer inspection of files omitted from its limited input. The complete 115-file introduced diff, pinned base and retained full/fixture reviews were inspected, and the combined-scope parent checkpoint is now complete under the existing maintainer fix/test/land authorization; no schema/persistence change is hidden in the omitted input. The latest OcPath delta has its own fresh isolated review and boundary regression.

Runtime +1,104/−1,193 (net −89); tests/support +2,204/−455 (net +1,749); tooling/guards +41/−34 (net +7); docs +32. Most files are mechanical private-QA caller migration and focused regression/semantic fixtures. Latest test-only OcPath repair is +24/−22.

Limits: no live credentialed channel/model, Windows, live Linux UID-controller or host-loss durability proof. Original process/CLI proof remains at its recorded source identity, not a new local rebuild. Earlier declaration preparation hit the unchanged 300000 ms timeout; subsequent complete extension types and supported type-aware lint reuse passed, and normal hosted preparation passed on this exact head. No successful full local gate is claimed for that earlier timeout. Named follow-ups: 29 original root-QA lint diagnostics outside canonical lint shards (including two unchanged supplemental callback errors), and GitHub's 3,000-file API-cap policy. Separate adapter/transcript work is not closed here. The narrow suppression inventory decision is approved and resolved.

AI-assisted implementation and independent review.

Release-note context: QA Lab retains Gateway ownership and transport leases through failed startup until shutdown is confirmed, while preserving failure artifacts and diagnostic errors. Docs: https://docs.openclaw.ai/concepts/qa-e2e-automation.

The final OcPath shard passed all 12 benchmark/determinism cases; the full shard passed 450 files / 5,902 tests, with one file / 57 tests intentionally skipped. No retry or threshold increase was needed.

@clawsweeper

clawsweeper Bot commented Aug 28, 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 docs Improvements or additions to documentation extensions: qa-lab size: XL maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 10:59
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: needs maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 4:40 PM ET / 20:40 UTC.

ClawSweeper review

What this changes

The branch gives QA Gateway startup a lifecycle owner that survives failed startup, releases transport leases only after confirmed shutdown, migrates QA callers, and strengthens CodeQL network-boundary routing.

Regression provenance

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

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for maintainer review: the central lease-ownership repair is source-supported and no discrete patch defect was established, but this maintainer-labelled PR has incomplete introduction evidence and running exact-head checks.

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

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The core owner-boundary repair is coherent and has focused process-level coverage, but incomplete PR-introduction metadata prevents a complete introduced-diff assessment.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external-contributor proof gate; nevertheless, the supplied evidence and the reviewed integration test connect the lifecycle owner to a real spawned process group, a local credential client, injected termination denial, and retained lease heartbeat.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate; nevertheless, the supplied evidence and the reviewed integration test connect the lifecycle owner to a real spawned process group, a local credential client, injected termination denial, and retained lease heartbeat.
Evidence reviewed 7 items Current-main failure shape: The fetched main cleanup plan treated a missing Gateway stop callback as already stopped, allowing post-Gateway transport cleanup after startup failed before a handle was returned.
Lifecycle repair: The PR creates the owner before startup, registers the child synchronously, and returns an explicit confirmed/unconfirmed process result for cleanup.
Lease-release gate: Cleanup now runs the transport’s release phase only when the lifecycle result is not unconfirmed.
Findings None None.
Security None None.

How this fits together

QA Lab launches isolated Gateways for source-checkout scenarios and may hold shared transport credentials while they run. The Gateway lifecycle result controls whether transport cleanup may release those credentials and remove runtime artifacts.

flowchart LR
  A[QA suite] --> B[Gateway lifecycle owner]
  B --> C[Gateway process group]
  C --> D{Shutdown confirmed?}
  D -->|Yes| E[Release transport lease]
  D -->|No| F[Retain lease and artifacts]
  B --> G[QA callers and fixtures]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned QA lifecycle and CodeQL-routing change proceed to landing after the omitted introduced hunks are reviewed and exact-head CI completes successfully? Complete the final maintainer gate: Review the omitted introduced hunks and land when the exact-head required checks complete green.

Why: The protected maintainer label requires human handling, and incomplete introduction evidence prevents an automated complete-diff merge conclusion.

Before merge

  • Resolve merge risk (P1) - The host introduction record lacks a merge base and omits 35 changed-file entries, leaving parts of this broad QA and CI branch outside independently attributable diff review.
  • Resolve merge risk (P1) - Exact-head required checks are still queued or in progress, including checks affected by the changed CodeQL routing workflow.
  • Complete next step (P2) - This protected, maintainer-owned P1 PR needs human scope review of the omitted introduced hunks and completion of exact-head CI; no narrow automated repair is identified.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Classified LOC delta production +1,104/-1,193 (net -89); tests/support +1,870/-423 (net +1,447); docs +21 The supplied PR accounting shows net-negative production code despite the lifecycle-owner refactor; substantial test/support growth covers migrated callers and process-boundary behavior.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Validate the final automation path (recommended)
    Keep the PR open until exact-head CI exercises the modified CodeQL selection and network-boundary checks successfully.

Technical review

Best possible solution:

Retain the single pre-start lifecycle owner and its explicit shutdown result, then land only after a maintainer has covered the omitted introduced hunks and the exact-head required checks are green.

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

Yes. The source provides a concrete POSIX process-group fault path: the integration test uses an actual spawned descendant and local credential broker, then asserts no release after denied termination; it was not rerun in this read-only checkout.

Is this the best way to solve the issue?

Yes for the central defect. Moving ownership before the awaited startup closes the missing-handle gap in fetched main, while the cleanup plan consumes the owner-recorded terminal result instead of inferring liveness from handle absence.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5e5b3d5136d0.

Labels

Label justifications:

  • P1: A failed QA Gateway startup can otherwise release a shared transport credential while a descendant remains alive.
  • merge-risk: 🚨 automation: The PR changes CodeQL pull-request selection, query scope, and semantic fixtures, so merge safety depends on exact-head automation validation.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; nevertheless, the supplied evidence and the reviewed integration test connect the lifecycle owner to a real spawned process group, a local credential client, injected termination denial, and retained lease heartbeat.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame attributes the affected Gateway startup and cleanup owner to Peter Steinberger, whose GitHub handle is steipete. (role: recent area contributor; confidence: high; commits: 05bd54051438; files: extensions/qa-lab/src/gateway-child.ts, extensions/qa-lab/src/suite.ts)

Rank-up moves

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

  • Review the host-omitted introduced hunks alongside the lifecycle and CodeQL changes.
  • Wait for the exact-head required checks to finish green.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-28T12:48:18.709Z sha cd1a3d7 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T15:13:17.496Z sha c8dcd8b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T16:39:11.924Z sha f119bf5 :: needs changes before merge. :: [P1] Classify JavaScript fixture files in the raw-socket query
  • reviewed 2026-08-28T17:14:36.952Z sha f46aa49 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T17:43:03.597Z sha 99999b1 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T18:53:55.675Z sha 9f2b7794c61efb588428b3afba647991627e2506 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T19:25:53.120Z sha b4d3f9d :: found issues before merge. :: [P1] Fail closed when GitHub omits a source patch
  • reviewed 2026-08-28T19:55:53.868Z sha 332b1a5 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/kind-vaughan-6d9a27 branch from c3e4e89 to 3647070 Compare August 28, 2026 11:38
@steipete
steipete requested a review from a team as a code owner August 28, 2026 11:58
@steipete

steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Final source: 822c20f2cca. Exact-head gates: CI 33208608685 and PR-native CodeQL 33208608680. Both completed successfully: CI 172 successful jobs / 16 intentional skips; PR-native CodeQL includes actual semantic query tests, analysis and fail-on-findings. Network semantic job.

This updates the existing proof and supersedes prior resolved inventory/CI blockers.

The original bug was an ownership gap: QA created the ready Gateway handle only after startup, then inferred that no handle meant no process. Failed startup could return a credential lease while a Gateway descendant remained alive. The lifecycle owner now exists before startup, registers each spawn synchronously, and survives startup failure, retries, replacement and finalization. Only never-spawned or confirmed-stopped permits Gateway-backed lease release; unconfirmed retains ownership, heartbeat and failure artifacts. Diagnostics remain separate from process settlement. Success-only factories and missing-handle inference are removed across suites, manual/shared lanes and private QA fixtures.

Process and operator proof. Real suite cleanup and the credential HTTP client were exercised against a disposable leader/descendant and synthetic loopback broker on macOS and Linux. Before: release while the descendant lived. After: no release and continued heartbeat when termination was denied; the normal control releases after confirmed termination. Signal-zero probes remained real. Linux QA passed 217 files / 3,019 tests.

The private-QA build at cd1a3d74e8edfe4a43e982f867b961473655253c and actual isolated CLI/Gateway/QA Channel/mock provider passed 1/1. This remains proof at its original source identity, not a claim of a new local rebuild:

OPENCLAW_BUILD_PRIVATE_QA=1 node --import ./scripts/tsx.mjs scripts/build-all.mts
OPENCLAW_ENABLE_PRIVATE_QA_CLI=1 node openclaw.mjs qa suite --provider-mode mock-openai --scenario channel-chat-baseline --concurrency 1 --output-dir .artifacts/qa-e2e/startup-lease-fix/operator-smoke-87vZGF/suite

The parsed summary asserted no reply to unmentioned chatter and QA-CHANNEL-BASELINE-OK for the mention. All three listeners closed; zero owned processes and no temporary Gateway entries remained. No live channel/model credentials or operator Gateway were used.

Integration and security gates. Nine commits were replayed patch-identically onto pinned main 4788f764f578b28c6ab26ee19b941a940632ffe0, without conflicts. Newly landed WhatsApp and Discord fixtures needed test-only migrations: the deferred stop mock returns its authoritative result, and the attachment scenario registers owner cleanup before awaiting startup. Cases, assertions, timeouts, provenance and cleanup ordering are preserved. The complete new caller neighborhood was inspected. Local proof passed 78 tests across six files, root types red→green, extension types, format and fresh isolated review. The actual built Discord attachment flow passed all five variants in hosted build-artifacts, one named test and zero failures; the other scenario is intentionally filtered. Verified final-head build merge: 69ecb973a98ace903bd8ca526db53e395fa2d060; its parents include source 822c20f2ccace8676b5e8b7e364be6096183e66a.

Full CodeQL exposed a stale exact JSONL socket owner after the macOS companion cancellation/JSONL owner refactor (#131650); its classification was corrected without widening allowance. The PR now escalates sensitive changes to semantic analysis in the same pull-request run, covers configured net-policy and TS/MTS/JS/MJS sources, runs real fixtures with all five raw-socket and two managed-proxy expected rows, and enforces SARIF findings. Distinct JS/TS fixture stems, both explicit MTS options, duplicate-scan registration and whitespace-tolerant exact owner/function assertions retain coverage.

The late missing-patch finding is fixed. Attribution correction: .patch // "" already existed on pinned main; this PR did not introduce it. GitHub's API contract and schema make patch optional. This PR's live first 100 file entries all had string patches; absent/null inputs are controlled valid API cases, not an observed omission or a claimed size threshold. One successful metadata snapshot now drives selection, absent/null monitored-source patches select full semantics, and raw/proxy checks share one added-line stream. The sibling shard detector propagates fetch/parse failures before its loop. Three requests and duplicate policy became one canonical flow; exclusions, exact triggers, query scope, permissions and timeouts are preserved.

Actual YAML Bash plus real jq reproduced four red cases before the workflow edit. Afterward, 190 tests passed with two intentional skips, including 39 selector/findings cases; scoped types/type-aware lint and full workflow sanity passed. Fresh isolated Codex review found no actionable P0/P1 defects.

OcPath CI follow-through. The prior CI shard failed only three wall-clock budgets: 959.96/800 ms, 4753.43/2000 ms and 992.67/400 ms; 449 other files / 5,896 tests passed. Original-host CPU samples are unavailable. No particular host-contention or dependency cause is asserted. The demonstrated measurement flaw is that off-CPU scheduling delays count against synchronous compute. The minimum-of-three workaround in #122994, authored and merged by @steipete, retained that flaw.

The private helper now uses current-worker process.threadCpuUsage() and sums user/system microseconds. It removes wall-clock/minimum-of-three compensation, preserves every numeric budget, the CI multiplier, workload and functional assertion, and explicitly names these CPU budgets. Process-wide CPU would incorrectly include other Vitest workers. No parser/runtime, dependency, runner, policy or timeout changed.

A fresh SharedArrayBuffer plus bounded 250 ms Atomics.wait proved old-code red (252.62 ms against the 200 ms CI-scaled test budget; all 11 original cases passed), then new-code green. The complete plugin passed 40 files / 684 tests. The Node 22.22.3 API contract, supported engine range, installed types and synchronous markdown-it source were inspected. Node 24.20.0 and Bun 1.4.0 API probes showed nonzero compute CPU; bounded waits consumed 253.95/298.12 ms wall time but 0.885/0.928 ms thread CPU. This is neither a full Bun Vitest run nor a recreation of the original host slowdown or end-to-end latency proof.

Final local commands ran under Node 24 with isolated allowlisted HOME/state/config and no inherited live credentials:

node scripts/run-vitest.mjs extensions/oc-path
node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.extensions.test.json --incremental --tsBuildInfoFile .artifacts/tsgo-cache/extensions-test.tsbuildinfo
OPENCLAW_OXLINT_SKIP_PREPARE=1 node scripts/check-changed.mjs -- extensions/oc-path/src/oc-path/tests/scenarios/perf-determinism.test.ts
node node_modules/oxfmt/bin/oxfmt --check extensions/oc-path/src/oc-path/tests/scenarios/perf-determinism.test.ts
git diff --check

All passed. The scoped gate includes extension types and type-aware lint: 263 rules, zero warnings/errors. Supported prerequisite separation reused usable declarations; it did not weaken type policy. Fresh isolated Codex review of the complete helper/owners/contracts and red/green proof found no P0/P1 defects. Prior full and fixture reviews still cover unchanged code.

Review disposition and limits. ClawSweeper's latest exact-head review at August 28, 20:40 UTC reports no actionable correctness or security findings; the previous review explicitly accepted the selector repair. Its Rank-up requests are exact-head green checks and inspection of 35 files omitted from its supplied input. The combined-scope parent checkpoint is complete under the existing maintainer fix/test/land authorization: the complete 115-file introduced diff, pinned base, patch-identical stack and full/fixture reviews were inspected. No schema or persisted-data change exists; the bot's truncated-input marker is not a discovered migration. Live main rules and active secops maintainer membership were reverified: linear history and openclaw/ci-gate (strict=false), with no independent approval rule. The explicit parent checkpoint approved this exact source head for native landing under the existing maintainer authorization.

Runtime +1,104/−1,193 (net −89); tests/support +2,204/−455 (net +1,749); tooling/guards +41/−34 (net +7); docs +32. Latest OcPath commit alone: tests +24/−22. No public configuration, schema, dependency, protocol or broker TTL change. No live credentialed channel/model, Windows, live Linux UID-controller or parent/host-loss durability proof is claimed.

Earlier local declaration preparation timed out at its unchanged 300000 ms limit; later complete extension types and supported type-aware lint reuse passed. That earlier full local gate is not claimed successful. Selector guard setup needed an external isolated temp root for unchanged CommonJS fixtures and the repository-pinned actionlint fix; temporary writable Go-cache cleanup was rerun successfully. No assertions or rules were relaxed. Named follow-ups remain the 29 original root-QA lint diagnostics (including two unchanged supplemental E2E HTTP callbacks) and GitHub's 3,000-file API-cap policy. Separate adapter/transcript work remains separate. The previously approved suppression inventory is resolved.

The final OcPath shard passed all 12 benchmark/determinism cases; the full shard passed 450 files / 5,902 tests, with one file / 57 tests intentionally skipped. No retry or threshold increase was needed.

@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 maintainer proof decision A ClawSweeper-authored PR needs a maintainer proof capture or override decision. labels Aug 28, 2026
@steipete steipete self-assigned this Aug 28, 2026
@steipete
steipete marked this pull request as draft August 28, 2026 16:25
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 16:45
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 28, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P2 Normal backlog priority with limited blast radius. 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 28, 2026
@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 28, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 28, 2026
@steipete
steipete merged commit 6e6a0e5 into main Aug 28, 2026
259 checks passed
@steipete
steipete deleted the steipete/kind-vaughan-6d9a27 branch August 28, 2026 21:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…1740)

* fix(qa): keep leases when Gateway startup teardown fails

Retain a synchronous QA child owner through startup, replacement, and explicit finalization. Release Gateway-backed transport leases only after authoritative process settlement, independently of cleanup diagnostics. Preserve failure artifacts and primary fixture errors.

Fixes openclaw#131643

* test(qa): keep fixture cleanup inside plugin boundaries

* test(qa): retain integrated fixture owners and stop observations

* ci: follow renamed local JSONL socket owner in CodeQL

* test(qa): record reviewed cleanup error suppressions

* test(ci): exercise PR-native network semantic review

Route sensitive changes into the existing semantic gate and restore configured net-policy coverage. Add actual query fixtures, including an intentional red checkpoint for JavaScript-family raw clients before the follow-up predicate repair. PR remains draft until semantic proof and final CI pass.

* fix(ci): classify supported JavaScript network sources

Preserve the existing directory and owner boundaries across TS, MTS, JS, and MJS. Hosted semantic regression 33190472078 failed on exactly the three missing executable rows; expected findings and test exclusions remain unchanged.

* test(ci): isolate network fixtures and retain guard coverage

Use independent fixture stems and explicit MTS extractor inputs while preserving every expected finding. Scan the semantic fixture root for duplicates and keep the exact socket-owner assertion insensitive to formatting.

* test(qa): return confirmed stop in WhatsApp cleanup fixture

* test(qa): own Discord attachment gateway before startup

* ci: fail closed on unavailable CodeQL diff metadata

* test(oc-path): measure synchronous worker CPU budgets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: oc-path extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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.

[Bug]: QA Lab releases leases after unconfirmed Gateway startup cleanup

1 participant