Skip to content

refactor(testing): deslop test-only production seams - #165371

Merged
steipete merged 6 commits into
mainfrom
deslop/l376-test-only-seams2-20261004
Oct 5, 2026
Merged

steipete merged 6 commits into
mainfrom
deslop/l376-test-only-seams2-20261004

Conversation

@steipete

@steipete steipete commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Production paths still carry dependency tables, alternate branches, mutable setters, and exports that only tests use. This continues the cleanup in #164320.

User Impact

Configuration, persisted data, protocols, CLI help, tool descriptions, and visible UI remain unchanged. Real production dependency injection, authority checks, cleanup ordering, and documented SDK test helpers remain. Provider discovery and OAuth requests now use the existing shared guarded HTTP transport; supported Copilot enterprise origins, deadlines, and caller cancellation are retained.

Why This Change Was Made

Tests now arrange fixtures through the existing module, process, filesystem, HTTP, clock, and browser boundaries. Production calls its actual owners directly.

  • Remove the image tool's mutable provider dependency table and compression/execution forwarding options; preserve lazy media/model loading and paid-request authority checks.
  • Remove the auth-store publication override. Exercise publication failure and rollback through the snapshot publication owner. Inline the model write-target helper into its sole production caller and assert actual configuration writes.
  • Remove root help/version output and loader overrides, invalid-config recovery injection, native relay transport/stdio overrides, and the onboarding recommendation store accessor. Preserve lazy Doctor/Gateway loading, consent, deadlines, and diagnostics.
  • Remove onboarding browser, foreground Gateway, dashboard-readiness, and remote-inference test bags; retain real callbacks and verify target/presence/deadline behavior through their owners.
  • Remove Doctor host/platform/filesystem/command and SQLite maintenance overrides while retaining real collectors, workspace/environment inputs, repair prompts, and maintenance authority.
  • Remove avatar HTTP fetch/clock options and MCP standalone ticket secret/reset hooks. Ticket tests cross HTTP admission, including authority changes during body parsing; the captured timestamp used by the real channel-action caller remains.
  • Remove Bun SQLite test-only native dependency registries and internal admission options; retain the process-wide selection owner, inherited worker facts, and explicit library selection.
  • Remove Bedrock/Mantle discovery, Chutes/xAI OAuth, Copilot catalog, Ollama discovery, and Mattermost probe test overrides. Preserve actual cancellation, refresh settlement, SSRF, and cache contracts.
  • Remove Google Meet's mutable tool/CLI test hooks, browser profile host overrides, and Chrome MCP process cleanup hooks. Retain process identity checks, platform behavior, and the session factory needed by lifecycle fixtures.
  • Remove Feishu registration/streaming transport overrides, Matrix's test-only bootstrap cache bypass, and iMessage staging command/token overrides; retain the real transport guards and bounded cleanup.
  • Remove system-agent approval/planner/overview test dependencies and the overview fast-test branch. Preserve prepared inference ownership and lazy runners.
  • Remove annotation Undo and widget export test options; browser fixtures now exercise message replies, clipboard activation, and downloads. Remove Vitest metadata copying from proxy fetch wrappers.

The conversation-list, Google Meet calendar, and sidebar clock opportunities are excluded because concurrent deslop PRs own those files. No production implementation was moved to another production directory.

Fixes found along the way

Mantle discovery, Chutes OAuth, and Copilot catalog requests now use the shared HTTP guard and release the transport on success, HTTP errors, parse errors, and cancellation. This removes the raw-fetch boundary violations without new configuration, scanner suppressions, or allowlist growth. Tests cover guarded destinations, deadline/caller aborts, cleanup, unchanged delivery traces, and auth-order rollback through the actual persistence owner.

Evidence

Production scope removes 953 net lines (598 added / 1,551 removed), excluding tests, test support, fixtures, documentation, and generated paths. The implemented batch originally removed 1,005; concurrent main changes independently absorbed sixteen lines, and the required shared-transport repairs add 36 production lines.

  • Linux / Node 24: 175 focused tests passed on the rebased candidate, including all 19 previously failing cases and the conflict-resolved Claude discovery/lint tests. Five shards completed in 80.39 seconds. The relocated filesystem-backed fleet overview case took 527 ms in the initial Linux correction proof.
  • Plugin contracts: 1,140 tests passed. Real Chromium clipboard lifetime suite: 24 tests passed in a 5.21-second runner invocation.
  • Independent review of the full rebased diff: no actionable P0–P2 findings. Real production timestamp reuse, native worker typing, publication rollback, cancellation, and auth-discovery contracts remain covered.
  • Clean exact base 6b4e887c39a06b7682e9c9b8f8a63979feb2b655 reproduces the candidate's 17-file Madge cycle through the state database and startup migration modules. Both command outputs are byte-identical, and this PR changes none of those cycle participants. scripts/check-import-cycles.ts reports zero runtime value cycles on both. The clean-base runtime-API inventory passes all seven cases. Earlier main fe493b83337 passes both cycle checks and the inventory; the newer startup optimization in perf(gateway): reuse admitted state during process bootstrap #165498 is incorporated in this base. Earlier terminal-outcome, skill-refresh, and runtime-API inventory failures were fixed upstream.
  • After the code conflict rebase and fixture type repairs: 252 focused tests passed in 60.19 seconds, and the command-test TypeScript graph passes. The retained controls include SSRF direct/proxy/block routing, exact HTTP methods, provider cancellation, image execution, and MCP authority/expiry checks.
  • Canonical baseline pruning only shrinks counts/exemptions. Changed-file guards and production typechecking passed; earlier core-test type errors were repaired. The complete remaining type/lint matrix is delegated to hosted CI on the exact pushed head. Earlier candidate fec07ec0fb3f61fe84370cf6c2b1eafc94aef4c2 also passed all 1,140 plugin contracts after the last baseline-only rebase.

Round-one CI failures were repaired together: missed test consumers, native/module mock typing, lint, and guarded provider transport. The transport/fixture repair passes 269 focused tests in 188.77 seconds, the extension test type graph, the raw-fetch guard, and all 1,140 plugin contracts on Linux. The final cancellation-fixture correction passes 91 focused tests in 33.21 seconds, typed lint with zero warnings/errors, and the unchanged line cap. Its independent review is clean. Round-two Gateway fixture typing was independently reproduced on hourly main and fixed upstream in e78e965; evidence.

Final Google Meet conflict integration passes all 145 tests across six files (679.62 seconds summed Vitest duration on the overloaded Mac). The subsequent conflict-only rebase preserves that implementation; its only manual resolution keeps lower assertion-baseline counts. Independent review of the complete integration is scoped-clean. Remote reacquisition did not produce usable compute within ten minutes, so these final commands ran serially at nice -n 15. The optional targeted lint invocation could not reach lint because its SDK declaration prerequisite timed out after 300 seconds; exact-head hosted CI remains the lint/type gate.

The final local plugin-contract run completed with 1,138 passed, one failed, and one skipped across 48 files (2,087.36 seconds). The host-hook admitted-registry session-patch failure reproduces identically on clean exact base 6b4e887c39a: the unchanged fixture crosses the owner's existing five-second retirement deadline under host load, then reports Plugin scoped-owner was reloaded or disabled. The full clean-base host-hook file has 51 passes and that same failure. This is retained as an inherited local failure, with no assertion or deadline change. The other failure was a 180-second setup timeout in the deprecated-config scanner; clean base passes the complete file in 75.91 seconds, and latest hourly-main CI also passes it. A passing replay is not claimed as a fix for the timing failure.

Final published candidate 159ca39d194d7f9e9a7393a82cf8c777457f0c32 incorporates only import conflicts with newer upstream test cleanup on base 906eb2d2a9648b4e12bda61c7285d4f05fc5e1f5. Chrome MCP/cleanup and Google Meet integration pass all 140 cases in 216.56 seconds. Both cycle checks were rerun: zero runtime value cycles; Madge output remains byte-identical to the clean-main reproduction above. The conflict delta received independent narrow review with no findings, preserving the broader scoped-clean review. The focused candidate deprecated-config guard also passes (133.02 seconds); its earlier full-suite setup timeout remains recorded, not represented as a fixed defect.

Third hosted CI on exact head 159ca39d194d7f9e9a7393a82cf8c777457f0c32 completed: 76 jobs passed, 21 skipped, none cancelled. The sole root failure is check-guards / Madge; the CI gate fails downstream. Independent hourly-main architecture job, head 78e406060b56bac2d09810161ac7b483861e9879, reports the identical ordered 17-file cycle at 11:35:55 UTC, before the PR's 11:54:18 failure. Both runtime-value checks report zero. None of the 17 cycle participants is changed by this PR. This qualifies the maintainer-authorized inherited-failure squash merge; no PR-caused test, type, lint, dependency, or security failure is waived.

@clawsweeper

clawsweeper Bot commented Oct 5, 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.

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 159ca39d194d7f9e9a7393a82cf8c777457f0c32
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/auth-profiles/store.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@steipete
steipete enabled auto-merge (squash) October 5, 2026 06:06
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 5, 2026, 7:53 AM ET / 11:53 UTC (Revision 6).

ClawSweeper review

What this changes

The branch removes test-only overrides from production code, moves fixtures to existing boundaries, and routes several provider requests through guarded HTTP transport.

Regression provenance

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

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep open: the previously reported P1 proxy-routing regression remains in both catalog paths and survives the verified test merge. The cleanup remains useful and is not superseded by the earlier merged batch.

Priority: P2
Reviewed head: 159ca39d194d7f9e9a7393a82cf8c777457f0c32

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The cleanup has useful validation, but the source-proven proxy compatibility regression prevents a merge-ready rating.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this verified maintainer PR. Reported Chromium and focused boundary validation are supplemental; catalog tests mock fetch and DNS and do not establish proxy routing. No stored-data contract changes were identified.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this verified maintainer PR. Reported Chromium and focused boundary validation are supplemental; catalog tests mock fetch and DNS and do not establish proxy routing. No stored-data contract changes were identified.
Evidence reviewed 8 items Pinned introduction and merge ownership: Reviewed the merge-base-to-head introduction. The raw test-merge record has exactly the pinned base followed by the pinned head; comparing that result with its base preserves both problematic catalog changes.
Copilot transport regression: Catalog discovery replaces ambient fetch with guarded fetch without selecting environment-proxy mode. Its production consumers include dynamic catalog discovery and starter-model selection.
Mantle has the same introduced trigger: Mantle discovery also replaces ambient fetch with the default guarded transport, without selecting environment-proxy mode; advisory discovery can consequently return an empty or cached catalog when direct egress fails.
Findings 1 actionable finding [P1] [P1] Preserve environment-proxy routing for catalog requests
Security None None.

How this fits together

OpenClaw’s CLI, Gateway, and provider plugins turn configuration and credentials into runtime operations. Provider catalog discovery feeds available models and onboarding’s starter-model selection.

flowchart TD
  A[Configuration and credentials] --> B[CLI and Gateway]
  B --> C[Provider catalog discovery]
  C --> D[Guarded HTTP transport]
  D --> E{Proxy or direct routing}
  E --> F[Provider endpoint]
  F --> G[Available models and setup selection]
Loading

Before merge

  • [P1] Preserve environment-proxy routing for catalog requests (P1) - With HTTPS_PROXY configured and OPENCLAW_PROXY_ACTIVE unset, CLI/Gateway bootstrap installs an environment-proxy dispatcher used by the previous ambient fetch. This call defaults to strict guarded fetch and attaches a direct pinned dispatcher instead, so proxy-only installations lose Copilot catalog discovery and starter-model selection. extensions/amazon-bedrock-mantle/discovery.ts:277 introduces the same failure. Preserve proxy routing and NO_PROXY bypass through the existing guarded-fetch contract. This remains the unresolved finding from the previous review.
  • Resolve merge risk (P1) - Existing proxy-only deployments could lose Copilot catalog discovery and starter-model selection, or Mantle discovery, despite retaining their configured HTTPS_PROXY.
  • Complete next step (P2) - Preserve environment-proxy routing in both catalog callers and verify HTTPS_PROXY, NO_PROXY bypass, and direct routing before merge.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P1] [P1] Preserve environment-proxy routing for catalog requests — extensions/github-copilot/models.ts:314-317
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

None.

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. Preserve both catalog transport modes (recommended)
    Repair Copilot and Mantle to honor ordinary environment proxies while retaining direct routing, NO_PROXY bypass, destination checks, cancellation, and cleanup.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Preserve environment-proxy routing in Copilot and Mantle catalog discovery using the existing guarded-fetch contract; verify HTTPS_PROXY routing with OPENCLAW_PROXY_ACTIVE unset, NO_PROXY bypass, and direct routing while retaining destination checks, deadlines, cancellation, and transport release.

Technical review

Best possible solution:

Keep the seam cleanup while preserving environment-proxy routing and NO_PROXY bypass through the existing guarded transport contract.

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

Yes, from source: configure HTTPS_PROXY, leave OPENCLAW_PROXY_ACTIVE unset, and invoke either catalog on a network requiring the proxy; the new guard selects direct transport. This review did not execute that scenario.

Is this the best way to solve the issue?

No, as submitted: removing test-only overrides fits the existing owners, but replacing ambient fetch must preserve the supported proxy contract.

Full review comments:

  • [P1] [P1] Preserve environment-proxy routing for catalog requests — extensions/github-copilot/models.ts:314-317
    With HTTPS_PROXY configured and OPENCLAW_PROXY_ACTIVE unset, CLI/Gateway bootstrap installs an environment-proxy dispatcher used by the previous ambient fetch. This call defaults to strict guarded fetch and attaches a direct pinned dispatcher instead, so proxy-only installations lose Copilot catalog discovery and starter-model selection. extensions/amazon-bedrock-mantle/discovery.ts:277 introduces the same failure. Preserve proxy routing and NO_PROXY bypass through the existing guarded-fetch contract. This remains the unresolved finding from the previous review.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5449de6efa13.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is useful internal cleanup with a bounded pre-merge compatibility defect, rather than an established urgent regression affecting released users.
  • merge-risk: 🚨 compatibility: The introduced catalog transport changes can bypass existing environment-proxy settings and break proxy-only setups.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The ordinary external-contributor proof gate does not apply to this verified maintainer PR. Reported Chromium and focused boundary validation are supplemental; catalog tests mock fetch and DNS and do not establish proxy routing. No stored-data contract changes were identified.

Evidence

Acceptance criteria:

  • [P1] pnpm test extensions/github-copilot/models.test.ts --maxWorkers=1.
  • [P1] pnpm test extensions/amazon-bedrock-mantle/discovery.test.ts --maxWorkers=1.
  • [P1] pnpm test src/infra/net/fetch-guard.ssrf.test.ts --maxWorkers=1.
  • [P1] git diff --check.

What I checked:

  • Pinned introduction and merge ownership: Reviewed the merge-base-to-head introduction. The raw test-merge record has exactly the pinned base followed by the pinned head; comparing that result with its base preserves both problematic catalog changes. (48dc5754f0e1)
  • Copilot transport regression: Catalog discovery replaces ambient fetch with guarded fetch without selecting environment-proxy mode. Its production consumers include dynamic catalog discovery and starter-model selection. (extensions/github-copilot/models.ts:314, 159ca39d194d)
  • Mantle has the same introduced trigger: Mantle discovery also replaces ambient fetch with the default guarded transport, without selecting environment-proxy mode; advisory discovery can consequently return an empty or cached catalog when direct egress fails. (extensions/amazon-bedrock-mantle/discovery.ts:277, 159ca39d194d)
  • Shared routing contract: Guarded fetch defaults to strict mode. Ordinary environment proxies require trusted environment-proxy mode, whereas strict mode uses the managed-proxy path only when OPENCLAW_PROXY_ACTIVE is set; otherwise it creates a direct pinned dispatcher. CLI and Gateway bootstrap separately install an environment-proxy global dispatcher, which the former ambient calls used. (src/infra/net/fetch-guard.ts:535, 159ca39d194d)
  • Current main still needs this cleanup: Fetched main retains Copilot’s ambient-fetch implementation and test override. The provider cleanup is therefore still distinct branch work; the earlier merged cleanup at refactor(testing): deslop test-only production seams #164320 covers different seams. (extensions/github-copilot/models.ts:298, 5449de6efa13)
  • Re-review continuity and validation: The supplied completed review already raised this proxy-routing finding. The captured body reports focused tests, plugin contracts, Chromium clipboard validation, and independently reproduced inherited failures. The inspected catalog tests use mocked fetch and DNS, so their destination and cancellation assertions do not establish ordinary proxy routing. (extensions/github-copilot/models.test.ts:16, 159ca39d194d)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Repair both catalog transport modes and verify proxy routing, NO_PROXY bypass, and direct routing while retaining cancellation and destination checks.

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 (5 earlier review cycles)
  • reviewed 2026-10-05T06:07:52.472Z sha fec07ec :: blocked before merge. :: none
  • reviewed 2026-10-05T07:31:23.819Z sha 7644547 :: blocked before merge. :: [P1] Preserve environment-proxy routing for guarded catalog requests
  • reviewed 2026-10-05T08:58:30.730Z sha d82a11e :: blocked before merge. :: [P1] [P1] Preserve environment-proxy routing for guarded catalog requests
  • reviewed 2026-10-05T09:45:59.156Z sha d82a11e :: blocked before merge. :: [P1] [P1] Preserve environment-proxy routing for guarded catalog requests
  • reviewed 2026-10-05T10:35:21.263Z sha d82a11e :: blocked before merge. :: [P1] [P1] Preserve environment-proxy routing for catalog requests

@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

The Gateway type error in round-two CI is inherited from main. The earlier hourly-main job, at fdd3a97f23ef55fe8e76ff8f002bcdb8cb2ffc8f, reports the identical TS2739 at src/gateway/server-lifecycle.catalog-write.test.ts:162: the fixture omits resolveGatewayContext and loadSubagentRegistryActivation.

The failing test and startup-observer owner are byte-identical between that main run, the PR's tested merge base, and the tested merge. This PR changes neither. Main now contains e78e965a55e, which supplies both fixture dependencies.

The two cancellation-fixture lint failures in round two are attributable to this PR and are being repaired separately. Auto-merge is paused during that repair; the inherited-error qualification does not excuse those failures.

@clawsweeper clawsweeper Bot added the P2 Normal backlog priority with limited blast radius. label Oct 5, 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. labels Oct 5, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Oct 5, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 5, 2026
@openclaw-barnacle openclaw-barnacle Bot closed this Oct 5, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 5, 2026
Remove internal dependency tables, mutable overrides, alternate test paths, and test-only exports. Keep real production injection, authority and lifecycle checks, lazy loading, and documented SDK test helpers. Tests use the existing module, OS, HTTP, clock, and browser owners. No intended user-visible behavior change.
@steipete
steipete force-pushed the deslop/l376-test-only-seams2-20261004 branch from d82a11e to 159ca39 Compare October 5, 2026 11:45
@steipete

steipete commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor Author

The final pre-push cycle comparison is bound to candidate a505659c6aee42243c090cca52e985d8ad9dc51a and its clean exact main base 6b4e887c39a06b7682e9c9b8f8a63979feb2b655.

node --import ./scripts/tsx.mjs scripts/check-madge-import-cycles.ts produces byte-identical output on both: one component covering src/infra/deferred-plugin-migrations.ts, startup-migration-checkpoint.ts, state-migrations.receipts.ts, and 14 state database/read modules. This PR changes none of those 17 files. The newer main startup optimization in #165498 introduced this path; the earlier main snapshot fe493b83337 passes the same check.

node --import ./scripts/tsx.mjs scripts/check-import-cycles.ts reports zero runtime value cycles on both candidate and exact base. Clean exact-base runtime-API inventory passes all seven cases. This is independent baseline evidence, not a claim that Madge passed on the candidate.

The final local plugin-contract invocation also retains an inherited host-hook failure: the admitted-registry session-patch case throws Plugin scoped-owner was reloaded or disabled at plugin-instance.ts:381. Running its entire file on clean exact base reproduces the same failure (51 other cases pass). Test, registry runtime, and instance owner are unchanged. The old owner has a real five-second retirement deadline; this load-sensitive fixture exceeds it. No timeout or assertion has been weakened.

After the final import-only conflict rebase to 159ca39d194d7f9e9a7393a82cf8c777457f0c32 (base 906eb2d2a9648b4e12bda61c7285d4f05fc5e1f5), both cycle checks were rerun. Runtime cycles remain zero and the complete Madge output is still byte-identical to the clean-base reproduction above. The three affected Chrome MCP/Google Meet files pass 140 tests; the focused deprecated-config guard passes on the candidate as well.

Hosted pre-existence is now confirmed: hourly-main run 37303621445 / architecture job 111742258843, head 78e406060b56bac2d09810161ac7b483861e9879, reports the identical ordered 17-file Madge cycle at 11:35:55 UTC. The PR check-guards job reports it at 11:54:18 UTC. Both runtime-value checks report zero. The exact-head PR run otherwise has 76 successful jobs, 21 skipped, no cancellations, and only the downstream CI gate failure. Proceeding with the explicitly authorized inherited-failure squash merge pinned to 159ca39d194d7f9e9a7393a82cf8c777457f0c32.

@steipete
steipete enabled auto-merge (squash) October 5, 2026 11:47
@steipete
steipete merged commit 7879c7f into main Oct 5, 2026
164 of 168 checks passed
@steipete
steipete deleted the deslop/l376-test-only-seams2-20261004 branch October 5, 2026 12:07
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Oct 5, 2026
52 upstream commits. Upstream's X guest helpers (openclaw#165543) change channel
schema content without changing any count. In Feishu, openclaw#165371 removes the
test-only fetchImpl and lookupFn options from FeishuStreamingSession and
app registration, and openclaw#165374 updates fs-safe. This branch's
reply-dispatcher already builds the streaming session with three
arguments, and none of its Feishu tests used the removed options.

Two generated files conflicted, docs/.generated/config-baseline.sha256 and
src/config/bundled-channel-config-metadata.generated.ts. Both were
regenerated from this merge rather than hand-merged. build:docker ran in a
separate detached checkout of this commit. Counts stay core 2505, channel
3874 and plugin 4490. The core and plugin hashes match upstream/main and
the channel hash is new, as predicted. The three generated-file checks pass
there.

Feishu: 101 files and 1520 tests in the extension project, 17 files and 218
tests in the database-workers project, all passing. The forwarder test and
the routing guards pass, 503 tests. tsgo:core, tsgo:extensions,
tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines,
assertion-safety, database-worker, test-timeout-race and test-mock-exports
ratchets against upstream/main, oxlint and oxfmt on the 43 changed code
files all pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
* refactor(testing): deslop test-only production seams

Remove internal dependency tables, mutable overrides, alternate test paths, and test-only exports. Keep real production injection, authority and lifecycle checks, lazy loading, and documented SDK test helpers. Tests use the existing module, OS, HTTP, clock, and browser owners. No intended user-visible behavior change.

* fix(testing): preserve production-boundary coverage after seam cleanup

* test: exercise dashboard readiness through the fetch boundary

* test: align readiness fixtures with native callback types

* fix(testing): repair fixture consumers and guarded transports

* test(providers): preserve typed cancellation reasons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui channel: feishu Channel integration: feishu channel: imessage Channel integration: imessage channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost cli CLI command changes commands Command implementations extensions: amazon-bedrock extensions: amazon-bedrock-mantle extensions: browser extensions: chutes extensions: github-copilot extensions: ollama extensions: xai gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. plugin: google-meet rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant