Skip to content

test(release): forward-port 2026.10.5 release-line harness fixes - #177319

Merged
RomneyDa merged 10 commits into
mainfrom
fix/forward-port-2026.10.5-harness
Oct 20, 2026
Merged

RomneyDa merged 10 commits into
mainfrom
fix/forward-port-2026.10.5-harness

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

release/2026.10.5 (shipped as v2026.10.5, tip 1b58cb9a1b4) carried test and harness fixes that never reached main. The stable-main closeout audit listed 21 candidates. Several of them fix defects that main still has: lanes that time out, live and e2e proofs that fail, and fixtures that race on every candidate.

User Impact

No user-visible change. Release-validation lanes on main stop failing for harness reasons that 10.5 already diagnosed. The only CI-cost change: the Telegram candidate job can now use up to 90 minutes. The calling release-checks job keeps its 210-minute bound.

Why This Change Was Made

Each candidate was checked against current main:

  • read main's code at the affected site
  • looked for an equivalent fix with git log -S and git apply --check -R
  • where it was cheap, reproduced the failure on main before porting

Commits that still apply cleanly and correctly use cherry-pick -x. The rest are adapted to main's code, and their messages say how. Release-only adapters, and fixes main already has, are skipped with the reason below.

Test and harness files only, plus one CI job budget (run_telegram 60 → 90 min). No product code changes.

Included

Release commit Change Defect still on main How
3cb49f0c4c0 Telegram release lane run_telegram 60 → 90 min; precreate the prepared-delivery audit receipt in the shared workspace (10.4 8b786700801e) main still has a 60-minute budget, the same scenario set, and the receipt under the private tempRoot Adapted: main's runner YAML anchor
761ef64bd51 Register test/gateway-agentsapi.live.test.ts as env-gated optional shard evidence The test file is on main; nothing sets OPENCLAW_LIVE_AGENTS_API; it is not in OPTIONAL_LIVE_SHARD_FILE_ENVS cherry-pick -x
e8772a97030 Decode the Codex CLI --json error before matching after plugin uninstall Reproduced on main: a canonical {"error":{"message":...}} payload fails assert-agent-error (escaped quotes) cherry-pick -x
fcdf0d1b2ce upgrade-survivor cron-scheduled-authority seeds through the published baseline's SQLite writer, with owner gating for pre-2026.7.1 baselines; bundled-plugin runtime smoke joins deferred discovery via update.status before the package-manager watchdog main still writes a raw cron/jobs.json, which current candidates treat as a retired pre-July store. main still defers install discovery (<manager> root -g via detectGlobalInstallManagerForRoot) until after ready Adapted: codex-grep hunk dropped (see skipped); cron-seed test uses main's writeFileSync(..., { mode })
a48d4a8faed Scope the CLI announce barrier tool to the agent:dev:cli-announce-* parent probe main's probe plugin registers the barrier for every session, so subagent children see it. d5c0db78deb only reached the 10.1 backport branches cherry-pick -x (adds gateway-cli-backend.live-cache.test.ts)
1a4c2a0ebc8 Subagent restart live proof waits up to 360 s for the orphan settlement main still SIGKILLs 3 times, and the breaker threshold is 3 unclean boots within 5 min (gateway-boot-lifecycle.kernel.ts), but the wait is 30 s cherry-pick -x
d3a06e7e573 sessions_send visible-child proof skips user-role runtime context carriers Reproduced on main: the unmodified test times out after 120 s (final bus-event kinds=[...]) cherry-pick -x
ca1521329f3 Ultra lane: Skill Workshop review runs are not held to max effort Same Ultra assertion on main. On main, #173889 pins reviews to thinkLevel: "low", so the release's "medium" expectation would still fail Adapted: expect low for skill-workshop-review: runs. Over-cap live file, so the effort policy moves to gateway-models.profiles.live.ultra-wire.test-helpers.ts; deterministic cases run in the normal helper suite
e3c63f2de46 Startup readiness probes use Connection: close main still probes /healthz//readyz with keep-alive fetches against an in-process Gateway Adapted: main's probe sites (9)
fa2049a3693 Buzz cold-start test mocks computeBackoff → 0 Measured on main: the reconnect cases take 1.66–1.72 s of the 4 s waitForSettled budget (#175418) cherry-pick -x

Skipped

Release commit Reason
af481921454 (ACP upgrade metadata) main already has the equivalent: readSavedAcpMetadata reads acp_sessions by session key
8abe2e9ff2e (widget restart observer identity) main already gives the TEST observer its own observer-device.sqlite identity
156472fa4c2 (cron placement HOOK_ROTATED skip) main fixed the step instead of skipping it (#175764, HOOK_QUEUED respects root FIFO). #174956 is still open
e2cf9a3ff79 (tsdown heartbeat worker target) main already lists gateway-state-owner-heartbeat in workerBuildTargets
c26630c4cf4 (scoped refresh reacquisition) Port of a case main already has ("retains compatible discovery and reacquires it after credentials change")
aac0e3be82a (settlement read resume) The release-only test case does not exist on main
4ea92815a86 (dashboard transcript persistence) Release-line adaptation of main's e6c4986438b (already on main) to release-only IndexedDB stores
2493e5b10f7 (preauth timeout constant) Works around the release line's 15 s handshake timeout. main ships 30 s, and its test already matches it
0e702cadf5d (restart module harness stubs) Stubs for release backport dependencies. main's harness passes unchanged (test/scripts/update-restart-module-outcome.test.ts)
8ec76b2e670 (drop errorDetails) Removes main-only fields from a backport test. main keeps them
21d68f6290a (flip-proof TS2459) main already uses path.basename(..., SESSION_ARCHIVE_ZSTD_SUFFIX)
fcdf0d1b2ce codex npm grep hunk only main already probes dynamic-tool-source-reply.ts and dynamic-tools.ts for continuesSourceReplyProgress

Not candidates (release-only by design): the #167443/#173580 reverts, the Kova pin, and the OpenCode glm-5.2 pin.

Evidence

Local, macOS, pnpm test <file> --maxWorkers=1 (wall time from time):

Proof Result Wall
test/e2e/qa-lab/runtime/sessions-send-visible-child.product-proof.e2e.test.ts, main version (before) fails: timed out after 120000ms 167 s test (plus a build)
same file, this branch passes 69 s test (4m21s with build)
extensions/buzz/src/gateway.cold-start-recovery.test.ts, before → after 8/8 → 8/8; reconnect cases 1657/1724 ms → 1366/552 ms 36.5 s → 12.7 s
src/gateway/server-agent-database-startup.test.ts 13/13 1m54s
src/gateway/gateway-models.profiles.live.test-helpers.test.ts (new Skill Workshop review cases) 17/17 28.6 s
pnpm test:live -- src/gateway/gateway-models.profiles.live.test.ts -t "OpenAI Ultra wire capture" (deterministic block, no credentials) 16 passed 29.8 s
src/gateway/gateway-cli-backend.live-cache.test.ts (new) 1/1 1m05s
test/scripts/upgrade-survivor-cron-seed.test.ts (4 cases, was 3: adds the 2026.6.34 pre-owner baseline) 11/11 55.8 s
test/scripts/upgrade-survivor-assertions.test.ts 79/79 32.8 s
9 sibling upgrade-survivor, bundled-plugin probe, and docker-e2e-plan suites 192/192 28.6 s
test/scripts/openclaw-release-telegram-qa-workflow.test.ts + test/scripts/test-live-shard.test.ts pass (with bash 5 on PATH; see note) 47 s
test/scripts/update-restart-module-outcome.test.ts on main (justifies skipping 0e702cadf5d) 1/1 5.2 s
node scripts/e2e/lib/codex-npm-plugin-live/assertions.mjs assert-agent-error 1 with a canonical JSON error payload fails on main, passes here <1 s
  • pnpm tsgo:test passes (1m21s); pnpm tsgo:scripts passes.
  • oxfmt --check and oxlint pass on the touched files; pnpm check:line-cap-ratchet passes; git diff --check is clean.
  • pnpm check:changed --base origin/main (10m52s): typecheck all, lint, and the guards pass. Two checks fail for reasons outside this diff. The dead-export scan flags extensions/matrix/.../inbound-dedupe-migration.ts and extensions/copilot/.../tool-bridge.test-support.ts, neither touched here. The core tsgo shard root budget is over its advisory 720 limit in both gateway-root (725, including the one new live-cache.test.ts root) and plugins-platform (725, not touched here).
  • node --check passes for the touched .mjs files; bash -n passes for the touched shell scripts.

Rebased onto origin/main 2c15272ec4fa (505 new commits). Conflicts:

  • src/gateway/server-agent-database-startup.test.ts: started from main's newer version (69bef1a) and reapplied the Connection: close probe at its 9 sites.
  • src/gateway/gateway-models.profiles.live.test-helpers.test.ts: kept main's new createRpcSourceForTest import and waitForGatewayAgentRun suite, and added the Skill Workshop review cases after them.

None of the 505 commits fixes an included defect. The included/skipped tables are unchanged. Main's assertOpenAIUltraWireEffort, its observation type, and review-run's thinkLevel: "low" are byte-identical to the pre-rebase versions.

Post-rebase:

Proof Result Wall
server-agent-database-startup.test.ts 13/13 1m38s
gateway-models.profiles.live.test-helpers.test.ts 34/34 16.6 s
Ultra wire capture deterministic block 16 passed 34.1 s
upgrade-survivor-cron-seed.test.ts 11/11 53.2 s
upgrade-survivor-assertions.test.ts 79/79 17.4 s

pnpm tsgo:test (5m38s) and pnpm tsgo:scripts pass. oxfmt --check, oxlint, the line-cap ratchet, and git diff --check are clean.

Not run locally (credentials or Docker required): the Telegram release lane, the Codex npm plugin live Docker lane, the upgrade-survivor Docker lanes, the bundled plugin runtime smoke, the CLI backend, widget, and subagent restart live proofs, and the Ultra live lane. These are covered by typecheck, lint, the cheapest deterministic paths above, and the 10.5 release-line runs that motivated each fix.

Note: on macOS's /bin/bash 3.2, openclaw-release-telegram-qa-workflow.test.ts > keeps launcher identity private... fails with declare: -A: invalid option. That is a host-shell limitation and unrelated to this diff. It passes with bash 5.

Refs #175418 (Buzz cold-start flake), #174956 (fixed on main by #175764; can be closed).

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts docker Docker and sandbox tooling extensions: qa-lab channel: buzz size: L labels Oct 19, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR forward-ports release-validation fixture repairs and increases the Telegram candidate job budget.

Example: Release validation runs the Telegram candidate scenario set.

  • Before: The candidate job stops at its 60-minute limit.
  • After: The candidate job allows 90 minutes while retaining its assertions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, focused harness repairs with no actionable finding; evidence is strongest for deterministic fixtures and limited for adapted live and Docker paths.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test and harness PR is outside the ordinary contributor-proof gate; its body supplies focused test results and explicitly identifies live and Docker paths that were not rerun.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Release validation rejects candidates because fixtures drifted from supported runtime behavior or exhaust their job budget.
Reason: The maintainer-authored direction restores useful release evidence without changing product behavior, public configuration, dependencies, or production storage contracts.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: these maintainer-authored harness repairs remain useful on main, and review found no definite correctness or security regression.

Priority: P2
Reviewed head: 4c6f4383fe903a0c50153c3b9207046732c3daba

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The adapted live and Docker lanes lack a branch-level replay; reported before/after execution covers selected fixtures.
Agent review details

How this fits together

Release workflows invoke test harnesses that prepare isolated installations, exercise Gateway behavior, and turn observed results into release-validation evidence.

flowchart TD
  A[Release workflow] --> B[Scenario harness]
  B --> C[Published baseline fixtures]
  C --> D[Candidate Gateway]
  D --> E[Behavior assertions]
  E --> F[Release validation result]
Loading

Technical review

Best possible solution:

Land the fixture repairs through the existing release harness owners once required checks pass.

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

Source inspection supports the fixture mismatches, and the PR reports selected before/after failures; this read-only review ran no target code and does not independently reproduce the timing-sensitive lanes.

Is this the best way to solve the issue?

The changes use existing persistence, context-parsing, and discovery owners while retaining behavioral assertions; the extracted Ultra helper supports the existing line-cap constraint without introducing a parallel production path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 436a01a2e3e4.

Provenance checked

  • Published cron upgrade fixtures keeps the original intent (a8c1182: Retire unsupported pre-July cron file imports while preserving supported SQLite upgrade verification.)
  • Shared published cron writer keeps the original intent (9de3ca5: Seed realistic upgrade specimens through the installed baseline's writer rather than candidate codecs.)
  • Ultra wire assertions changes intended behavior with a stated reason (ec23435: Check every captured request while distinguishing independently admitted background work from explicit Ultra runs.)
  • Ultra native request capture keeps the original intent (cb696a1: Observe real provider traffic without changing endpoints, schema policy, streaming, authentication, or cancellation.)
  • CLI announcement barrier keeps the original intent (3bbeba7: Coordinate parent completion and child announcement in the live CLI fixture.)
  • Visible-child waited-send proof keeps the original intent (09b032a: Verify that an inline child reply does not trigger duplicate reply and announcement work.)
  • Telegram release workflow keeps the original intent (2a1d6e4: Run candidate validation through a trusted, isolated harness with controlled permissions.)
  • Gateway startup readiness tests keeps the original intent (3f6c1d3: Verify asynchronous database admission while keeping readiness fenced until required preparation succeeds.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 9de3ca5 adds scripts/e2e/lib/upgrade-survivor/sqlite-volume.mjs:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9de3ca5fc93d; files: scripts/e2e/lib/upgrade-survivor/sqlite-volume.mjs)
  • Dallin Romney: Raw commit d76b29e adds .github/workflows/openclaw-release-telegram-qa.yml:756 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d76b29e1529d; files: .github/workflows/openclaw-release-telegram-qa.yml)
  • Vincent Koc: Raw commit 2a1d6e4 adds .github/workflows/openclaw-release-telegram-qa.yml:712 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 2a1d6e49d5bd; files: .github/workflows/openclaw-release-telegram-qa.yml)

PR surface

Tests +173, Config 0, Other +41. Total +214 across 22 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 12 360 187 +173
Docs 0 0 0 0
Config 1 1 1 0
Generated 0 0 0 0
Other 9 115 74 +41
Total 22 476 262 +214

Review metrics

Metric Value Why it matters
Telegram candidate job budget 60 → 90 minutes Adds headroom for the existing scenario set; the calling release-checks budget remains 210 minutes.

Labels

Label changes:

  • add P2: Repairs release-validation failures with limited impact outside internal test and harness workflows.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs release-validation failures with limited impact outside internal test and harness workflows.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 19, 2026, 8:48 AM ET / 12:48 UTC.

…d evidence

test/gateway-agentsapi.live.test.ts (new since 2026.10.4) skips its only case
unless OPENCLAW_LIVE_AGENTS_API=1, which the native live test-harness shard
never sets, so the shard's no-passing-assertions guard failed it on every
2026.10.5 candidate once the other harness tests went green. Register it in
the existing whole-file opt-in map like the other env-gated live proofs.

(cherry picked from commit 761ef64)
The live Codex npm plugin lane matched the expected post-uninstall error
against raw --json stdout, where quotes are escaped, so the correct
owner-plugin-not-activatable error never matched. Decode the canonical CLI
error message first, as the 2026.10.4 release line does (a9fd56d).

(cherry picked from commit e8772a9)
(cherry picked from commit d5c0db7)
(cherry picked from commit a48d4a8)
The native subagent restart live proof SIGKILLs the Gateway three times in
about two minutes. The third unclean boot trips the documented restart-loop
breaker (3 unclean boots within 5 minutes, #166238), which pauses restart
settlement, including interrupted subagent recovery (#166846), until the
unclean window drains. The orphan assertion added with the #169144 backport
only waited 30 seconds, so the nonannouncing child was still `running`.

Wait up to 360 seconds for the orphan settlement so the proof covers the
breaker pause and the automatic resume after its window. Assertions are
unchanged. 2026.10.4 passed because it predates the breaker pause, startup
subagent reconciliation, and this assertion.

Deterministic proof: the quiet-child e2e twin with SIGKILL restarts and an
exec-blocked child passes with one prior kill; with two warm-up kills it logs
"restart-loop breaker tripped" and the parent continuation never arrives
within 60 seconds; with a 400-second wait it settles and passes (338s).

(cherry picked from commit 1a4c2a0)
…roof

The sessions_send visible-child proof timed out on every 2026.10.5
candidate: its synthetic provider picked the latest user item that lacked
the legacy <<<BEGIN_OPENCLAW_INTERNAL_CONTEXT>>> marker as the user prompt.

Since #168546 (backport 8d66b94), OpenAI-compatible Responses
endpoints, including mock-openai, keep runtime context in a user-role
"OpenClaw runtime context:" carrier after the user turn instead of a
developer message. The fixture then read that carrier as the prompt, never
saw the "send" prompt on turn 2, answered PARENT_READY again, and the test
waited for PARENT_DONE until timeout.

Captured provider requests: v2026.10.4 sends the turn-2 carrier with role
developer; the 10.5 tip sends it with role user. Reverting a293f2e
(#168410) left the failure unchanged.

Select the prompt with the shared qa-lab isInternalRuntimeContextCarrierText
helper, which already accepts current and legacy carrier shapes.

(cherry picked from commit d3a06e7)
The isolated Telegram candidate job hit its 60-minute limit at scenario 24/25
on every 2026.10.5 candidate (about 62 minutes needed at 102-108s per packaged
Gateway start). main carries the same Telegram scenario set and job, so
raise the job budget to 90 minutes; the calling release-checks job keeps its
210-minute bound.

Also carry the 2026.10.4 release-line fixture fix for
telegram-prepared-delivery-recovery (8b78670): keep the audit receipt in
the shared Gateway workspace and create it up front so the isolated SUT can
append without EACCES. main still writes it under the private tempRoot.

(cherry picked from commit 3cb49f0, adapted to main's runner anchor)
The deferred-fleet startup test failed twice in 2026.10.5 FRV #12 with
`fetch failed` / `read ECONNRESET`. Its Gateway shares the test process's
event loop. A /healthz or /readyz probe could reuse a keep-alive socket
that Undici still treated as live; when the request was written and a
synchronous main-thread startup stall followed, the server's idle-timer
callback ran before the poll phase read the request and destroyed the
socket with the request unread, so the kernel reset the connection.

main still probes with default keep-alive fetches. Probe with
`Connection: close`, matching existing Gateway test probes. Assertions are
unchanged.

(cherry picked from commit e3c63f2, adapted to main's probe sites)
…s in the Ultra lane

Since #161057 the Skill Workshop counts iterations per session, so Ultra probe
sessions trigger a background review after idling. The review runs under its
own skill-workshop-review: run and does not inherit the session's thinking
level, so the lane's every-request-is-max assertion failed on 2026.10.5
whenever a review reached the provider.

On main, #173889 pins review runs to thinkLevel "low" (review-run.ts), which
the OpenAI stream wrapper sends as effort "low". Expect that effort for review
runs; Ultra runs and their sessions must still be max, and independent
heartbeats stay medium.

The live file is over the line cap, so the Ultra wire effort policy moves to
a sibling helper with its observation type, and the deterministic review
cases run in the normal helper suite.

(cherry picked from commit ca15213, adapted to main's review thinking level)
…me-smoke harness fixes

Release-line harness fixes that 2026.10.1-2026.10.5 carried but main never
received:

- cron-scheduled-authority: seed the cron authority specimen through the
  published baseline's own SQLite writer (seedPublishedCronJobs) instead of a
  raw cron/jobs.json that current candidates treat as a retired pre-July
  store; drop owner fields for pre-2026.7.1 baselines
  (usesCronOwnerAtBaseline). The dispatcher passes the package root to
  seedState, and the scenario now requires a published baseline.
- bundled plugin runtime smoke: join deferred read-only update discovery via
  update.status before the package-manager child watchdog. main still defers
  install discovery (`<manager> root -g`) until after ready, so it can race
  the watchdog's no-package-manager-children check.

Skips the codex npm plugin live source-reply grep from the release commit:
main already probes dynamic-tool-source-reply.ts and dynamic-tools.ts.

(cherry picked from commit fcdf0d1, codex grep hunk dropped; cron seed
test adapted to main's executable-mode fixture writes)
@RomneyDa
RomneyDa force-pushed the fix/forward-port-2026.10.5-harness branch from 4c6f438 to 47ce2ed Compare October 20, 2026 04:06
@RomneyDa
RomneyDa merged commit a000edb into main Oct 20, 2026
139 of 140 checks passed
@RomneyDa
RomneyDa deleted the fix/forward-port-2026.10.5-harness branch October 20, 2026 06:28
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…nclaw#177319)

* fix(test): treat the env-gated Agents API live proof as optional shard evidence

test/gateway-agentsapi.live.test.ts (new since 2026.10.4) skips its only case
unless OPENCLAW_LIVE_AGENTS_API=1, which the native live test-harness shard
never sets, so the shard's no-passing-assertions guard failed it on every
2026.10.5 candidate once the other harness tests went green. Register it in
the existing whole-file opt-in map like the other env-gated live proofs.

(cherry picked from commit 761ef64)

* fix(test): decode the Codex CLI JSON error after plugin uninstall

The live Codex npm plugin lane matched the expected post-uninstall error
against raw --json stdout, where quotes are escaped, so the correct
owner-plugin-not-activatable error never matched. Decode the canonical CLI
error message first, as the 2026.10.4 release line does (a9fd56d).

(cherry picked from commit e8772a9)

* fix(test): scope CLI announcement barrier to parent probe

(cherry picked from commit d5c0db7)
(cherry picked from commit a48d4a8)

* test(live): wait out the crash-loop breaker before the orphan settles

The native subagent restart live proof SIGKILLs the Gateway three times in
about two minutes. The third unclean boot trips the documented restart-loop
breaker (3 unclean boots within 5 minutes, openclaw#166238), which pauses restart
settlement, including interrupted subagent recovery (openclaw#166846), until the
unclean window drains. The orphan assertion added with the openclaw#169144 backport
only waited 30 seconds, so the nonannouncing child was still `running`.

Wait up to 360 seconds for the orphan settlement so the proof covers the
breaker pause and the automatic resume after its window. Assertions are
unchanged. 2026.10.4 passed because it predates the breaker pause, startup
subagent reconciliation, and this assertion.

Deterministic proof: the quiet-child e2e twin with SIGKILL restarts and an
exec-blocked child passes with one prior kill; with two warm-up kills it logs
"restart-loop breaker tripped" and the parent continuation never arrives
within 60 seconds; with a 400-second wait it settles and passes (338s).

(cherry picked from commit 1a4c2a0)

* test(qa-lab): skip user-role runtime carriers in visible-child send proof

The sessions_send visible-child proof timed out on every 2026.10.5
candidate: its synthetic provider picked the latest user item that lacked
the legacy <<<BEGIN_OPENCLAW_INTERNAL_CONTEXT>>> marker as the user prompt.

Since openclaw#168546 (backport 8d66b94), OpenAI-compatible Responses
endpoints, including mock-openai, keep runtime context in a user-role
"OpenClaw runtime context:" carrier after the user turn instead of a
developer message. The fixture then read that carrier as the prompt, never
saw the "send" prompt on turn 2, answered PARENT_READY again, and the test
waited for PARENT_DONE until timeout.

Captured provider requests: v2026.10.4 sends the turn-2 carrier with role
developer; the 10.5 tip sends it with role user. Reverting a293f2e
(openclaw#168410) left the failure unchanged.

Select the prompt with the shared qa-lab isInternalRuntimeContextCarrierText
helper, which already accepts current and legacy carrier shapes.

(cherry picked from commit d3a06e7)

* test(buzz): skip real reconnect backoff in cold-start recovery

(cherry picked from commit fa2049a)

* fix(release): let the Telegram release lane finish its 25 scenarios

The isolated Telegram candidate job hit its 60-minute limit at scenario 24/25
on every 2026.10.5 candidate (about 62 minutes needed at 102-108s per packaged
Gateway start). main carries the same Telegram scenario set and job, so
raise the job budget to 90 minutes; the calling release-checks job keeps its
210-minute bound.

Also carry the 2026.10.4 release-line fixture fix for
telegram-prepared-delivery-recovery (8b78670): keep the audit receipt in
the shared Gateway workspace and create it up front so the isolated SUT can
append without EACCES. main still writes it under the private tempRoot.

(cherry picked from commit 3cb49f0, adapted to main's runner anchor)

* test(gateway): probe startup readiness on fresh connections

The deferred-fleet startup test failed twice in 2026.10.5 FRV openclaw#12 with
`fetch failed` / `read ECONNRESET`. Its Gateway shares the test process's
event loop. A /healthz or /readyz probe could reuse a keep-alive socket
that Undici still treated as live; when the request was written and a
synchronous main-thread startup stall followed, the server's idle-timer
callback ran before the poll phase read the request and destroyed the
socket with the request unread, so the kernel reset the connection.

main still probes with default keep-alive fetches. Probe with
`Connection: close`, matching existing Gateway test probes. Assertions are
unchanged.

(cherry picked from commit e3c63f2, adapted to main's probe sites)

* test(live): expect review effort for Skill Workshop background reviews in the Ultra lane

Since openclaw#161057 the Skill Workshop counts iterations per session, so Ultra probe
sessions trigger a background review after idling. The review runs under its
own skill-workshop-review: run and does not inherit the session's thinking
level, so the lane's every-request-is-max assertion failed on 2026.10.5
whenever a review reached the provider.

On main, openclaw#173889 pins review runs to thinkLevel "low" (review-run.ts), which
the OpenAI stream wrapper sends as effort "low". Expect that effort for review
runs; Ultra runs and their sessions must still be max, and independent
heartbeats stay medium.

The live file is over the line cap, so the Ultra wire effort policy moves to
a sibling helper with its observation type, and the deterministic review
cases run in the normal helper suite.

(cherry picked from commit ca15213, adapted to main's review thinking level)

* test(release): forward-port 2026.10.4-line upgrade-survivor and runtime-smoke harness fixes

Release-line harness fixes that 2026.10.1-2026.10.5 carried but main never
received:

- cron-scheduled-authority: seed the cron authority specimen through the
  published baseline's own SQLite writer (seedPublishedCronJobs) instead of a
  raw cron/jobs.json that current candidates treat as a retired pre-July
  store; drop owner fields for pre-2026.7.1 baselines
  (usesCronOwnerAtBaseline). The dispatcher passes the package root to
  seedState, and the scenario now requires a published baseline.
- bundled plugin runtime smoke: join deferred read-only update discovery via
  update.status before the package-manager child watchdog. main still defers
  install discovery (`<manager> root -g`) until after ready, so it can race
  the watchdog's no-package-manager-children check.

Skips the codex npm plugin live source-reply grep from the release commit:
main already probes dynamic-tool-source-reply.ts and dynamic-tools.ts.

(cherry picked from commit fcdf0d1, codex grep hunk dropped; cron seed
test adapted to main's executable-mode fixture writes)
RomneyDa added a commit that referenced this pull request Nov 1, 2026
RomneyDa added a commit that referenced this pull request Nov 2, 2026
telegram-prepared-delivery-recovery failed with EACCES when the trusted QA
runner read the audit receipt. The isolated SUT created that file itself,
with the launcher's umask 077, so it was sut:sut 0600 and unreadable by the
runner. Moving the path (state dir, workspace subdir) or chmodding its
directory could not help: the launcher re-owns the workspace only at SUT
start, before the file exists.

Create the receipt as the runner before restartAfterStateMutation, as main
does. The launcher then re-owns it runner:sut 0660, the SUT appends through
group write, and the runner reads it as owner.

Scenario hunk taken from main a000edb (#177319), which carried the
2026.10.4/2026.10.5 release-line fixture fix.
RomneyDa added a commit that referenced this pull request Nov 2, 2026
The cron-scheduled-authority survivor wrote a retired cron/jobs.json specimen
that no shipped baseline would hold, then ran an older "bridge" Doctor
(2026.9.7, later chained with 2026.10.1) to move it into SQLite. That bridge
cannot open schema-20 state from 2026.10.x baselines, and on pre-October
baselines it rewrites config into a shape the baseline updater rejects.

Forward-port the main harness design (#177319): seed the five jobs through the
installed baseline's openclaw/plugin-sdk/cron-store-runtime writer, so the
specimen is in the baseline's own SQLite codec, and let the candidate update
perform the scheduled-authority migration. June baselines predate persisted
owners, so their jobs are seeded ownerless and must stay without authority.
Remove the bridge, the baseline Doctor phase, and the assertion carve-outs
that only existed for it.
RomneyDa added a commit that referenced this pull request Nov 2, 2026
The native test-harness shard selects test/gateway-agentsapi.live.test.ts,
which skips unless OPENCLAW_LIVE_AGENTS_API=1. The release shard checker
then rejected the lane for a selected file with no passing assertions.
Register it as an opt-in file, matching origin/main (#177319).
RomneyDa added a commit that referenced this pull request Nov 2, 2026
All 25 scenarios now pass, and the recovered prepared-delivery scenario takes
about 3.5 minutes instead of failing fast, so the 60-minute job was cancelled
during the last scenario on two candidates (runs 41422605053, 41430660433).
Match origin/main's 90-minute budget (#177319); the parent waits up to 180m.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: buzz docker Docker and sandbox tooling extensions: qa-lab gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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