Skip to content

[2026.10.10-beta.5] fix(agents): repair backport regressions in agents lane FRV tests - #187567

Merged
RomneyDa merged 9 commits into
release/2026.10.10from
beta5/agents-test-drift
Oct 29, 2026
Merged

RomneyDa merged 9 commits into
release/2026.10.10from
beta5/agents-test-drift

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Problem

Provisional Full Release Validation run 40845145475 (normalCi child 40846102753, plus job 123354345833) on the release/2026.10.10 backport sweep fails nine agents-lane test files. Each one passes at v2026.10.10-beta.4 (the owner-selection case was added after beta.4) and reproduces locally at the release head (Node 24.22.1).

Root causes and fixes

Two backports need code from main: one follow-up fix cherry-picked, plus the docs-matrix regeneration. The other seven failures are release-only test fixtures that the backports did not update. Each realigned fixture follows an intended behavior change in the backported commit. No assertions were weakened.

Test Culprit (release) Cause Fix
src/agents/prepared-model-catalog-worker.pool.integration.test.ts (5 cases, Plugin registration custody cannot transfer) b9981fa0f8f2 (#162226, main 3e42abb61808). Confirmed: fails at that commit, passes at its parent Main follow-up missing Cherry-pick main 52df852cd5be "fix(plugins): allow retained registrations on reused inspections"
src/secrets/target-registry.docs.test.ts be72b16def91 (#176510, Beam mirror token SecretRef). Not the Google Chat/X change Docs matrix not refreshed Cherry-pick main dfa777452ad3. The result matches the generated matrix byte for byte
src/agents/tools/pdf-tool.test.ts "supplies Codex instructions" f41ea65146c1 (#181356, main f64e38f3528b). Found by bisect A ChatGPT catalog row with only an API key is now stale and routes to the Platform contract (intended) Port main's fixture OAuth login from 280c7c7d494a
src/agents/tools/web-search-output.security.test.ts aggregate bound 2b35452c550e (#179703, main 47c1c2aaf50f) Main raised the JSON envelope bound to 23,000 because rows now keep their fields. The 20,000-char content cap is unchanged. The backport missed that assertion in this release-only file Apply main's assertion change
src/agents/openai-transport-stream.replay-and-tools.test.ts store-disabled replay c93fe0b182e8 (#185774, main 86ddabdee50a) Unverifiable stateless reasoning (no replay ID, no authorized encrypted state) is now omitted (intended). Main had already deleted this test (542e074c4767) Assert the reasoning item is absent. Assistant and function_call ID assertions are kept
src/auto-reply/commands-registry.test.ts multiline aliases 9b93c22d22f6 (#176293, main d7359a71255c) Multiline /btw and /side input is now preserved (intended) Expect /btw first line\nsecond line
src/auto-reply/reply/get-reply-run.prepared-metadata.test.ts 23e702af95b0 (#185573) together with 59b6c1091674 (main 786cfd7d27b2) Together these adopt #185512's design: replies prepare the configured agent inventory workspace with preserveWorkspaceDirOnRefresh: false, and nested runs borrow it Expect the agent inventory workspace in the acquire input. Main's copy no longer asserts this input
src/agents/prepared-model-runtime.owner-selection.test.ts "prepares prompt-only runtime owners separately…" 0c77c1dd8b3a (#182952, main 4c3bf18daa6c, which shipped no test). Fails at the very commit that added it, so it is not related to #185573 or 59b6c1091674 The backported test came from another line and seeded discovered rows only through the in-process builder. Here, Gateway-configured agents load their full catalog through the catalog worker, so setup never saw the row Seed the worker mock too, and match the row by its own fields (the catalog adds provenance). The production assertion is kept: with #182952's runtimePluginPurpose normalization removed, the test fails at the lease assertion
src/infra/clawhub-plugin-catalog.test.ts astral MCP text 74e414a21a47 (#182753, main f50dd3e1d0ec) The adaptation dropped the versions: { items: [] } default that main's readDetail helper supplies Add it to the fixture

Evidence

With Node 24.22.1, before the fix (release head 01372509133), each file failed: pdf-tool 1/27, web-search security 1/12, openai replay 1/20, commands-registry 1/37, get-reply-run prepared-metadata 1/1, secrets docs 1/1, clawhub catalog 1/32, catalog worker pool 5/12, owner-selection 1/25.

After the fix (this head):

  • pnpm test per file: pdf-tool 27/27, web-search security + budget 14/14, openai replay 20/20, commands-registry 37/37, prepared-metadata 1/1, secrets docs 1/1, clawhub catalog 32/32, catalog worker pool 12/12, owner-selection 25/25.
  • Siblings: src/plugins/registry-inspection-transfer.test.ts and src/agents/prepared-model-catalog-worker.reuse.integration.test.ts pass, as do the prepared-model-runtime reply-fallback, gateway-leases and auth-recovery tests.
  • oxfmt --check, oxlint and git diff --check are clean on the changed files.

Release work: targeted local checks only, no autoreview or Testbox.

steipete and others added 8 commits October 29, 2026 02:27
The backport of #182753 (74e414a) dropped the versions: { items: [] }
default that main's readDetail helper supplies, so the release-branch
fixture fails the versions response guard.
…test

Main's 47c1c2a raised the aggregate JSON envelope bound from 22,000 to
23,000 because rows now keep their titles and site names (more wrap
envelopes); the 20,000-char untrusted content cap is unchanged. The release
backport 2b35452 put the new tests in web-search-budget.test.ts and
missed this assertion in the release-only security test file.
…test

Backport 9b93c22 (#176293, main d7359a7) intentionally preserves
multiline /btw, /side and /loop arguments. The release-only registry test
still asserted the old first-line truncation for /side; main no longer has
that assertion.
Backport f41ea65 (#181356, main f64e38f) intentionally resolves a
ChatGPT catalog row with only an API key as stale, routing it to the Platform
contract. Port main's matching fixture update from 280c7c7 (shipped
inside an unrelated visitor-access commit) so the test exercises the Codex
subscription route it names.
Release backports 23e702a (#185573) and 59b6c10 (main 786cfd7)
together adopt #185512's design: replies prepare the configured agent
inventory workspace (preserveWorkspaceDirOnRefresh: false) and nested runs
borrow it, while the reply workspace stays the execution boundary. Main's
copy of this test no longer asserts the acquire input (db8180b).
Backport c93fe0b (#185774, main 86ddabd) intentionally stops
replaying reasoning that has neither a replay ID nor authorized encrypted
state when store is disabled. Main removed this test earlier (542e074);
the release copy still expected the unverifiable item.
Catalog scope growth can reuse the same physical registry inspection. Keep
its already-owned registrations in place instead of transferring them into
their own resource map and failing with a duplicate-custody error.

Preserve live-owner validation and all distinct-inspection transfer and
disposal behavior. Extend the resource-backed lifecycle regression with
self-adoption before abandoned growth and promotion.

Proof: regression fails on unchanged production; fixed resource lifecycle
and all seven selected catalog cases pass. Targeted native types, typed
lint, format, suppression tests, runtime/static cycles and planner pass.
Independent review found no actionable P0-P2 findings.

(cherry picked from commit 52df852)
@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 docs Improvements or additions to documentation 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
…r test

Backport 0c77c1d (#182952, main 4c3bf18, which shipped no test)
carried a test adapted from another line that seeded discovered rows only
through the in-process catalog builder. On this branch Gateway-configured
agents load their full catalog through the catalog worker, so the setup never
saw the row and the test failed from the commit that added it. Seed the worker
mock too and match the row by its own fields (the catalog adds provenance).
Verified: the test fails at the lease assertion when #182952's
runtimePluginPurpose normalization is removed and passes with it.
@clawsweeper clawsweeper Bot added 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-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR backports the reused-inspection registration fix and updates release validation fixtures and the generated credential matrix.

Example: A model-catalog refresh reuses its existing physical plugin inspection.

  • Before: Registration adoption attempts to transfer resources into their own map and throws “Plugin registration custody cannot transfer”.
  • After: The live inspection retains its registrations and catalog preparation continues.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported backport with clean code review and successful exact-head checks; behavioral evidence remains at the in-process test boundary.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its reported production-owner lifecycle tests cover self-adoption, retained callbacks, retirement rejection before I/O, and cleanup.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release-candidate catalog preparation can fail when inspection reuse attempts duplicate registration custody, and stale fixtures prevent reliable release validation.
Reason: The maintainer-authored direction is established, the failure is concrete, and the changes preserve the intended backported contracts.

Regression provenance

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

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs concrete release-branch backport failures, preserves intended behavior, and has no actionable introduced defects.

Priority: P2
Reviewed head: eb253e8029919a08496e6e98e82a421171fd5953

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No shipped Gateway run exercising the same-inspection refresh is supplied; the documented before/after proof uses focused tests.
Agent review details

How this fits together

The prepared model-catalog worker acquires plugin inspections, discovers models, and returns catalog facts to the Gateway; inspection resources own registration transfer and cleanup.

flowchart TD
  A[Gateway catalog request] --> B[Prepared catalog worker]
  B --> C[Plugin inspection loader]
  C --> D[Inspection resource owner]
  D --> E[Retained registrations]
  B --> F[Published catalog facts]
Loading

Technical review

Best possible solution:

Land the focused release backport through the normal release-branch workflow while retaining its existing lifecycle and behavioral assertions.

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

The pre-fix self-transfer reaches an explicit duplicate-custody exception, and the body reports focused failing and passing runs; this read-only review did not rerun them.

Is this the best way to solve the issue?

The change repairs the existing resource owner with a same-instance no-op and aligns fixtures with verified intended behavior, without adding another owner or compatibility path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4ececc447d2e.

Provenance checked

  • Inspection registration custody keeps the original intent (3e42abb: Reuse unchanged plugin registrations during same-context catalog growth and transfer their resource custody only at promotion.)
  • Stateless reasoning replay expectation changes intended behavior with a stated reason (507038c: The original test was preserved during suite splitting; the later replay fix intentionally omits stateless reasoning without verifiable replay state.)
  • Prepared-model owner-selection fixture keeps the original intent (0c77c1d: Protect discovered-model inheritance for isolated completions; the release fixture must seed the worker-backed catalog and tolerate added provenance fields.)
  • PDF subscription fixture keeps the original intent (8e047c3: Retain PDF orchestration coverage after test consolidation; the OAuth fixture matches main's adjustment for stale ChatGPT catalog routing.)
  • Search output bounds keeps the original intent (c83dcc2: Bound hostile provider content at its canonical owner; the updated envelope allowance preserves the independent 20,000-character content limit.)
  • Multiline command expectation changes intended behavior with a stated reason (acc375f: Originally preserve multiline skill payloads without broadening unrelated aliases; the later intentional command change also preserves side-question arguments.)
  • Reply inventory workspace expectation keeps the original intent (e15fa0b: Retain prepared-generation coverage during test consolidation; current production prepares the configured inventory workspace while executing in the reply workspace.)
  • Credential matrix and ClawHub detail fixture keeps the original intent (unknown: These additions restore existing contracts: Beam declares mirror.token as a SecretInput, and the detail parser requires versions.items.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduction: Reviewed the merge-base-to-head diff; the only production change is the same-inspection early return, while base-only process, worker, and cron changes are outside this PR. (src/plugins/registry-inspection-resources.ts:94, eb253e802991)
  • Concrete failure mechanism: The catalog worker calls retained-registration adoption during promotion; transferring a registration to its own resource source triggers the existing duplicate-custody rejection. (src/plugins/registry-registration-resources.ts:160, eb253e802991)
  • Existing main repair: The production fix and lifecycle-test extension exactly match the main follow-up commit; current main retains the same guard. (src/plugins/registry-inspection-resources.ts:95, 52df852cd5be)
  • Lifecycle coverage retained: The extended real-loader lifecycle test retains abandoned-growth, successful handoff, rejection before SQLite I/O after retirement, and exactly-once disposal assertions. (src/plugins/registry-inspection-transfer.test.ts:36, eb253e802991)
  • Fixture provenance: Verified the PDF OAuth fixture against main, the search envelope adjustment against its original commit, multiline preservation against the canonical parser change, and the reply workspace expectation against current production code. (src/auto-reply/reply/get-reply-run.ts:45, eb253e802991)
  • Exact-head validation: Paginated check results show 59 successes, 69 skips, and one cancelled dispatch, with no pending or failed checks; the PR body separately reports before/after focused tests and sibling passes. (eb253e802991)

PR surface

Source +4, Tests +30, Docs +7. Total +41 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 4 0 +4
Tests 8 46 16 +30
Docs 1 7 0 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 57 16 +41

Labels

Label changes:

  • add P2: A bounded release-branch catalog failure and stale validation fixtures warrant repair without evidence of an urgent released-user outage.
  • 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: A bounded release-branch catalog failure and stale validation fixtures warrant repair without evidence of an urgent released-user outage.
  • 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 29, 2026, 6:36 AM ET / 10:36 UTC.

@RomneyDa
RomneyDa merged commit 6db0c14 into release/2026.10.10 Oct 29, 2026
138 of 139 checks passed
@RomneyDa
RomneyDa deleted the beta5/agents-test-drift branch October 29, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

2 participants