Skip to content

[2026.10.10-beta.5] fix(gateway,subagents): repair backport regressions in gateway lane FRV tests - #187589

Merged
RomneyDa merged 9 commits into
release/2026.10.10from
beta5/gateway-owner
Oct 29, 2026
Merged

RomneyDa merged 9 commits into
release/2026.10.10from
beta5/gateway-owner

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Problem

Provisional Full Release Validation run 40845145475 (normalCi child run 40846102753, release head f488276) failed these gateway and subagent tests. All of them pass on v2026.10.10-beta.4.

FRV job Test
checks-node-agentic-gateway-server-isolated-3 src/gateway/managed-image-attachments.test.ts: "does not let a valid fallback mask an unreadable exact row" (malformed JSON)
checks-node-agentic-gateway-server-isolated-6 src/gateway/session-utils-store-lookup.test.ts: "rejects an unreadable canonical candidate instead of returning its alias" (malformed JSON)
checks-node-bundle-infra-small-private-qa-5 src/config/sessions/session-accessor.sqlite-schema-probes.test.ts: "selected readonly listing > returns the ordered selected metadata…" (malformed JSON)
agentic-control-plane-runtime-state src/gateway/server.logs-tail.test.ts: "logs.tail preserves ambiguous and long PEM prefix context at a byte cursor"
checks-node-agentic-control-plane-agent-chat-hosted-1 src/gateway/server.sessions-send-owner-continuation.test.ts: all 5 cases time out after 120 s
checks-node-bundle-infra-small-private-qa-12 subagent-announce.requester-settle-results.test.ts: "includes all six child outcomes…"
agentic-control-plane-runtime-state server.subagent-settle-replay.harness.test.ts: "recovers public work once through a sibling and reconciles its progress only"
job 123354314746 subagent-announce.requester-settle-wake.private.test.ts: 4 "preserves the admitted reply policy" cases
job 123354314746 subagent-registry-lifecycle-wake.retry.test.ts: "preserves retry ownership after the originating scope drains"
checks-node-release-packed-31 subagent-spawn.production-boundary.test.ts: "keeps queued collector effects with their original parent when it is operator-completed / operator-stopped"

Root causes and fixes

  1. malformed JSON from SQLite. Release-only product fix.
    • Culprit: 08ee066, the backport of fix(memory): prevent session searches from loading the full catalog #181247.
    • Main retired the legacy sessionFile locator. The release adaptation instead projects json_extract(entry_json, '$.sessionFile') on every selected row, including ordinary listings that make no transcript selection.
    • SQLite raises malformed JSON for an unreadable entry_json row before parseSessionEntryJson can apply its own skip or reject policy.
    • Fix: project the locator only for transcript selections, and only for rows where json_valid(entry_json) holds.
    • Commit: fix(sessions): keep malformed rows out of the legacy transcript locator projection.
  2. logs-tail. Missing test follow-up, cherry-picked from main.
  3. sessions_send owner continuation timeouts. Test realigned to the intended backported behavior.
  4. Subagent settle fixtures. Release-only test fixes.
  5. Settle retry mock. Release-only test fix.
    • Culprit: 9b8ee9c made execution cleanup call retireRequesterFollowupAuthority.
    • The mock of requester-cron-authority.js in this test lacked that export, so each wake threw.
    • Fix: add the export to the mock.
  6. Queued collector operator hold. Release-only product fix.
    • Culprit: 4643f86, the release's adaptation of fix(agents): preserve restart recovery for delegated child work #181373. It captures operator authority for every spawn but dropped main's authority && !registerParams.collect guard.
    • Result: queued collectors took operator completion custody and kept a hold on the operator source after their parent completed or stopped.
    • Fix: restore the guard, and keep completionAuthorityRequired aligned with it.

Not changed (classified)

  • src/sessions/background-session-result.test.ts ("commits during active source work…"): flake.
    • The release-adapted fixture, from 7027213, waits on a worker-backed commit with the default 1 s vi.waitFor.
    • It failed once locally under concurrent compile load (1373 ms). Run alone it passes 3/3 here and 10/10 on a second branch.
  • src/gateway/setup-inference.first-signin.integration.test.ts: flake. It passes 3/3 alone at head. In CI the activation failed with "OpenClaw state database lifecycle is retired", the cross-generation guard from 62f0c60, while the test was sharing a gateway-database-workers process with other files. That points to a module generation retired by a neighboring file in the shared worker, not to the code under test. This needs a follow-up in the sqlite test lifecycle if it recurs.

Evidence

Local runs use Node 24.22.1. The branch is rebased on release head 6db0c14.

Test Before, at release head 0137250 After, this branch
session-utils-store-lookup + managed-image-attachments 2 failed / 60 60/60
session-accessor.sqlite-schema-probes 1 failed / 14 14/14
server.logs-tail 1 failed / 6 6/6
server.sessions-send-owner-continuation 5 timed out / 5 5/5, about 3 s each
subagent-spawn.production-boundary 2 failed 46/46
requester-settle-results / requester-settle-wake.private / lifecycle-wake.retry / settle-replay harness failing 1/1, 10/10, 3/3, 33/33

Touched-file suites also pass:

  • combined-store-gateway.worker, session-entry-read.worker, and the memory-core session-search-visibility suites: 65/65
  • the announce settle suites
  • the registry queued-recovery and requester-source suites

Other checks: pnpm tsgo:core clean; oxfmt and oxlint clean on changed files.

RomneyDa and others added 8 commits October 29, 2026 03:43
…or projection

The #181247 backport (08ee066) adapted the main change for the release
branch's legacy sessionFile locator by projecting json_extract(entry_json,
'$.sessionFile') on every selected row. SQLite raises 'malformed JSON' for an
unreadable entry_json before parseSessionEntryJson can apply its skip/reject
policy, so ordinary selected listings and gateway lookups failed with a raw
SQLite error. Project the locator only for transcript selections and only for
valid JSON rows. Release-only: main retired the sessionFile locator.
…backport

9b8ee9c (#181373 backport) adopts timed sessions_send children into the
requester turn and changes the inline wait to waitForAgentRunReply. The backport
dropped a8a3680's matching fixture changes, so the test spied on the old
SessionFollowupCompletion.take and waited forever. Apply main's fixture hunk
(observe waitForAgentRunReply and registry persistence). The release branch has
no session-controller liveness check (#175837), so a claimed result is handed
back only by the requester run's settlement; the synthetic original run now
performs the settleRequesterRun call its embedded runner makes on completion.

Adapted from a8a3680
…med-cohort backport

The 2f7589a backport of #181260 filters delivered child findings from
settle wakes (needsRequesterSettleFindings). On main, #178104 moved the shared
makeSettledChild default to pending delivery; the release fixture still
defaults to delivered, so this case lost every finding. Mark its children
pending, as the backport did for its other undelivered fixtures.
…181260 backport

Backport 2f7589a dropped the source commit's fixture change because
main had moved the recovery case into
server.subagent-settle-replay-recovery.test-support.ts. Apply the same
'progress only' pending-delivery setup to the inline release copy.

(adapted from commit 535989c)
…181260 backport

Backport 2f7589a filters delivered child findings from settle wakes.
On main, #178104 moved the shared fixture default to pending and renamed
these cases to pending pairs; the release fixture still defaults to
delivered, so the private marker was filtered. Mark the children pending.
…ixture

Backport 9b8ee9c (#181373) made execution cleanup call
retireRequesterFollowupAuthority. This release-only fixture mocks
requester-cron-authority.js without that export, so the retry wake threw
and warned. Main no longer has this mock.
…tody

The release adaptation 4643f86 of #181373 started capturing the
operator continuation context for every spawn so collectors also record
their original requester source. It dropped the collect guard on binding
completion authority, so a queued collector retained an operator source
hold after its parent completed or stopped. Main binds only non-collect
runs (authority && !registerParams.collect); restore that guard here and
keep completionAuthorityRequired aligned with it.
@clawsweeper

clawsweeper Bot commented Oct 29, 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 agents Agent runtime and tooling size: S labels Oct 29, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
The added retireRequesterFollowupAuthority export changed the grandfathered
factory hash. Name the isolation reason and prune the stale baseline entry.
@RomneyDa

Copy link
Copy Markdown
Member Author

CI follow-up on b9b2bd1:

  • mock-exports ratchet: fixed. The requester-cron-authority.js mock in subagent-registry-lifecycle-wake.retry.test.ts now carries a // mock-isolation: reason, and the stale baseline entry is pruned. scripts/check-test-mock-exports.mts --base origin/release/2026.10.10 reports OK (9573 factories).
  • session-accessor.sqlite-schema-probes › "refreshes admitted session readers…" (database is locked, job 123400944968): classified as a flake, not caused by this PR.
    • This PR's change to this area is the selected-listing projection in session-accessor.sqlite-entry-list.read.ts. This test doesn't call that path: it exercises reader and worker schema probes plus a worker commit.
    • The CI case ran 9.7 s in a hosted infra shard before the lock error, which points to lock contention under load.
    • Locally on this branch the file passes 5/5 (14/14 each run). The same test passed in FRV 40845145475.
  • code-mode.bridge.lifecycle › "admits nested activity…exec_0" (host timeout, job 123400944745): classified as a flake, unrelated to this PR.
    • The PR touches no code-mode files.
    • The failing case hit the host timeout at about 5.9 s, while sibling cases in the same shard took up to 15 s, which points to load.
    • Locally the file passes 3/3 (18/18 each run).

@RomneyDa
RomneyDa merged commit 3a7d1fa into release/2026.10.10 Oct 29, 2026
123 checks passed
@RomneyDa
RomneyDa deleted the beta5/gateway-owner branch October 29, 2026 11:18
sectrgt pushed a commit to sectrgt/openclaw that referenced this pull request Nov 2, 2026
…openclaw#181260 backport

2f7589a (backport of openclaw#181260) drops already-delivered findings from
settle wakes. The same-human completion-custody fixture marked its child
delivered, so the wake had nothing to deliver and returned false. Keep the
finding pending, as for the other settle fixtures realigned in openclaw#187589.
Release-only: main has no copy of this fixture.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. gateway Gateway runtime size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants