Repository navigation
[2026.10.10-beta.5] fix(agents): repair backport regressions in agents lane FRV tests - #187567
Conversation
(cherry picked from commit dfa7774)
…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.
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).
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)
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
…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.
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +4, Tests +30, Docs +7. Total +41 across 10 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 29, 2026, 6:36 AM ET / 10:36 UTC. |
Problem
Provisional Full Release Validation run 40845145475 (normalCi child 40846102753, plus job 123354345833) on the
release/2026.10.10backport sweep fails nine agents-lane test files. Each one passes atv2026.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.
src/agents/prepared-model-catalog-worker.pool.integration.test.ts(5 cases,Plugin registration custody cannot transfer)b9981fa0f8f2(#162226, main3e42abb61808). Confirmed: fails at that commit, passes at its parent52df852cd5be"fix(plugins): allow retained registrations on reused inspections"src/secrets/target-registry.docs.test.tsbe72b16def91(#176510, Beam mirror token SecretRef). Not the Google Chat/X changedfa777452ad3. The result matches the generated matrix byte for bytesrc/agents/tools/pdf-tool.test.ts"supplies Codex instructions"f41ea65146c1(#181356, mainf64e38f3528b). Found by bisect280c7c7d494asrc/agents/tools/web-search-output.security.test.tsaggregate bound2b35452c550e(#179703, main47c1c2aaf50f)src/agents/openai-transport-stream.replay-and-tools.test.tsstore-disabled replayc93fe0b182e8(#185774, main86ddabdee50a)542e074c4767)src/auto-reply/commands-registry.test.tsmultiline aliases9b93c22d22f6(#176293, maind7359a71255c)/btwand/sideinput is now preserved (intended)/btw first line\nsecond linesrc/auto-reply/reply/get-reply-run.prepared-metadata.test.ts23e702af95b0(#185573) together with59b6c1091674(main786cfd7d27b2)preserveWorkspaceDirOnRefresh: false, and nested runs borrow itsrc/agents/prepared-model-runtime.owner-selection.test.ts"prepares prompt-only runtime owners separately…"0c77c1dd8b3a(#182952, main4c3bf18daa6c, which shipped no test). Fails at the very commit that added it, so it is not related to #185573 or59b6c1091674runtimePluginPurposenormalization removed, the test fails at the lease assertionsrc/infra/clawhub-plugin-catalog.test.tsastral MCP text74e414a21a47(#182753, mainf50dd3e1d0ec)versions: { items: [] }default that main'sreadDetailhelper suppliesEvidence
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 testper 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.src/plugins/registry-inspection-transfer.test.tsandsrc/agents/prepared-model-catalog-worker.reuse.integration.test.tspass, as do theprepared-model-runtimereply-fallback, gateway-leases and auth-recovery tests.oxfmt --check,oxlintandgit diff --checkare clean on the changed files.Release work: targeted local checks only, no autoreview or Testbox.