Skip to content

test: remove low-value tests (batch d670) - #185705

Open
steipete wants to merge 21 commits into
mainfrom
tcr/land-d670-1793091141
Open

steipete wants to merge 21 commits into
mainfrom
tcr/land-d670-1793091141

Conversation

@steipete

@steipete steipete commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Land the retained portion of test-reduction campaign batch d670 on main pinned at 06c9568. Consolidate repeated fixture setup and overlapping scenarios while retaining distinct provider, authority, lifecycle, privacy, and persistence proof.

This is test-only: no product behavior or production source changes. Conflicts were resolved toward current main, not the campaign's older prerequisite refactors.

Scope and static deltas

Counts below compare the pinned main tree with this PR. Declarations are static test call-site counts, not expanded runtime case counts. Paths within each shard are listed in matching order.

Shard Files Lines before -> after Declarations before -> after
j0335 logging No retained changes 0 delta 0 delta
j0336 agents src/agents/subagents/registry/subagent-registry-lifecycle-wake.retry.test.ts; subagent-registry-state.test.ts 654 -> 445; 600 -> 543 10 -> 6; 19 -> 15
j0337 secrets No retained changes 0 delta 0 delta
j0338 memory extensions/memory-core/src/memory/generic-embedding-provider.integration.test.ts; manager-index.test-support.ts 679 -> 478; 603 -> 599 11 -> 10; 0 -> 0
j0339 tools No retained changes 0 delta 0 delta
j0340 memory-wiki extensions/memory-wiki/src/cli.test.ts; query.test.ts 876 -> 839; 946 -> 795 27 -> 26; 23 -> 22
j0341 auto-reply src/auto-reply/reply/agent-runner-execution-lifecycle.test.ts; commands-subagents.test.ts; model-selection.test.ts 609 -> 542; 602 -> 606; 611 -> 581 12 -> 8; 16 -> 14; 11 -> 11
j0342 plugins src/plugins/capability-provider-runtime.generation.test.ts; memory-provider-runtime.test.ts; status.runtime-inspection.test.ts 601 -> 554; 600 -> 556; 603 -> 595 16 -> 13; 19 -> 19; 10 -> 10
j0343 openrouter extensions/openrouter/video-generation-provider.test.ts 731 -> 613 24 -> 18
j0344 transcripts No retained changes 0 delta 0 delta
j0345 devices ui/src/pages/devices/devices-page.test.tsx 855 -> 659 28 -> 20
j0346 tts No retained changes 0 delta 0 delta

Production LOC: +0/-0. Test and test-support LOC: +1772/-2937 (net -1165), across 14 files.

All 12 original shard reports explicitly state that tests and coverage were not run under CI-only instructions; no measured coverage-total line is available. Their initial line reductions were j0335 1364->1336, j0336 1793->1772, j0337 1317->1298, j0338 1169->1082, j0339 1380->1312, j0340 1813->1804, j0341 1786->1776, j0342 1804->1785, j0343 1419->1346, j0344 1332->1312, j0345 1389->1339, j0346 unchanged. Follow-up commits and main-preserving resolutions change those totals; the table above is the actual PR delta. No runtime performance or coverage-equivalence claim is made.

Replay decisions

18 source commits retained (some partially): a030e10564e9, 9115493693aa, 49bce64811ba, 143418f8ae9c, b653cde52cc4, 01335ad30cca, 5dccbe1068fe, 9ca5437d29d4, 16fa3b878ea4, 36ca194e526b, 77b5ccb1fb6b, e9d4a05fed65, 92b4a04de11c, 32ca6f852a23, 1ad9c8ebb9c2, f3cc07969f9d, 3d34e8a5b11f, bdea70a976fb.

12 source commits skipped:

  • 5830ecb54ad5 (logging): missing prerequisite helpers and divergent owner proof.
  • 72fd05758a95, 4a330e7e6b92, 5fd9740720f0 (secrets): missing shared proxy fixture; preserve current transport/lifecycle tests.
  • 382481574ce2, d0d97d3e2dc6, a4c0ec815f1b (tools): missing prerequisite media/history/terminal harness changes and newer main authority cases.
  • 9122843b28e5 (wiki): empty; scoped visibility fixtures already present on main.
  • 49342bf55f5b (openrouter): dependent on skipped index harness changes; leave remaining mapping assertions intact.
  • de4ae1baefc5, 7404ca8a8043 (transcripts): divergent SQL bound, provenance, and service-lifecycle proof.
  • 6f5c0ace4761 (tts): duplicate summary block already absent; preserve main's per-agent configuration proof.

Partial resolutions: keep the current generic embedding provider contract plus its request fields/config helper; leave subagent-registry.persistence.test-support.ts unchanged (current callers and rollback coverage); retain wiki denied-read regression and signed-commentary privacy log case; leave OpenRouter index.test.ts and devices view.devices.test.ts unchanged. A final integration commit restores fixture dependencies needed by retained current-main tests.

Evidence

  • pnpm install --frozen-lockfile --prefer-offline: passed.
  • node_modules/.bin/oxfmt --write on all 14 changed files: passed.
  • node_modules/.bin/oxlint -c .oxlintrc.json on all 14 changed files: exit 0.
  • git diff --check against pinned main: passed.
  • Per operator CI-only rule, no Vitest, check-changed, tsgo, Testbox, or Crabbox runs. No leases allocated.
  • Hosted openclaw/ci-gate is the execution proof and auto-merge gate. Independent autoreview runs during CI.

CODEOWNERS: no changed path matches the current ownership file.

Independent review

The independent review completed with three P2 coverage concerns. All were checked against unchanged owning-boundary proof and rejected as duplicate-coverage requests:

  • Bridge read/search isolation: extensions/memory-wiki/src/agent-vault-isolation.test.ts, “enforces bridge ownership through registered corpus fallbacks”, covers sandboxed main, secondary and unowned pages for both memory_get and memory_search. corpus-supplement.ts calls the same getMemoryWikiPage/searchMemoryWiki owners. The direct query test retains session-derived normalization and missing-caller denial.
  • Cross-generation retry isolation: src/agents/subagents/completion/subagent-completion-admission.requester-wake.test.ts, “retains the known outcome for unchanged siblings when one member is $change”, tests a rejected generation-1 outcome followed by generation-2 rearm, verifies no extra transport and preserves the new wake. “reconciles failed replay persistence before transport with a rearmed sibling” separately covers replay publication failure and rearm.
  • Metadata body preservation: extensions/memory-wiki/src/apply.test.ts, “persists metadata, indexes and human blocks (update: %s)”, exercises update_metadata and asserts the human block and distinctive note survive. cli.ts forwards only metadata into that owner; this PR retains CLI option/frontmatter assertions.

No production changes or assertion weakening were made in response. Auto-merge was paused for investigation, then re-armed on the unchanged reviewed head.

Initial hosted CI found two test type errors: compact snapshots omit task, and the catalog table inferred an optional body. The follow-up uses generation for the same frozen-snapshot mutation check and explicitly types the body/entry fixture union. Both fixes passed format, plain oxlint and diff checks; a separate scoped P0-P2 review found no actionable issues. Fresh-head CI is the execution gate. The initial PR-context check also required canonical problem/evidence headings; those headings are now present.

The next run passed both corrected type shards but found an unnecessary DOM-query generic and a combined cancel-then-confirm dialog test that reopened before the prior operation settled. Removed the generic and dropped that consolidation, restoring main's separate device-confirmation and node-cancellation cases. A scoped review found no actionable issues. The mock-export ratchet required explicit isolation reasons on four existing partial wiki mocks; those reasons now describe their synthetic Gateway, provider and agent boundaries. Other baseline ratchets passed. No timeouts, retries or assertions were weakened.

Share database cleanup and batch assertions without changing transport fixtures. Remove eight HTTP message variants already covered by manager-embedding-policy.test.ts: splits only provider errors with an explicit numeric embedding item limit. Retain declared-cap, corrected-cap, halving, terminal-error, dimension, credential and Nemotron transport checks.

CI-only: plain oxlint, oxfmt and git diff --check passed. No tests or coverage run. Shard LOC 1169 -> 1082 (-7.4%); below the 20% target because the shared manager lifecycle fixture and remaining transport contracts are retained.
Keep real provider creation, HTTP transport and MemoryManagerEmbeddingOps retry behavior while removing the cache-disabled indexing fixture. Index/cache mapping remains covered by index.test.ts: maps source-wide batch fallback results to missing chunks after cache hits, and batches forced memory and session indexing across files.

Retain declared/corrected cap proof in manager-embedding-policy.test.ts: preserves paired inputs and persists each slice once with declared cap. Retain Qianfan capped/uncapped, case normalization and qualified-name branches; remove the duplicate unqualified capped model. Consolidate query bytes, vectors and unchanged documents into formats both retrieval roles; retain raw input and clearing overrides in the negative-family case. Keep every credential/destination and dimension boundary.

Shrink HTTP response fixtures and use deterministic disposal for the read-only FTS observer. CI-only: oxfmt, plain oxlint and diff checks passed; no tests or coverage run. Cumulative shard LOC 1169 -> 932 (-20.3%), expanded cases 27 -> 15.
Share singleton wake completion and row-mutation setup; reuse the wake driver's existing scoped disposal. Remove a one-row parameter table and redundant fixture bindings without dropping any behavior assertions.

CI-only campaign: plain oxlint, oxfmt and diff checks pass; no tests or coverage run. Shard LOC 1793 to 1772 (1.2%), below the 20% target. Retain distinct physical requester authority, stopped-pause interleavings, event/deadline waits, scope and generation ownership, persistence failure recovery, compact/full read paths, cache publication races, schema admission and snapshot isolation. Persistence test support is already consolidated in the supplied base and remains unchanged.
Remove the unused createRequiredDeliveryFixture builder after a repository-wide caller search. Keep source rollback proof in subagent-registry-task-replacement.test.ts (restores a terminal predecessor when successor/source-retirement persistence rejects replacement); retain the distinct no-lifecycle-generation throwing path here.

Unify compact/full child snapshot transitions while preserving cold admission, immutable payloads, live moves, publication, deletion and reinsertion order. Share per-agent control-selection fixtures with hydrated descendant proof. Keep repeated real SQLite write refusal through sweeps, then recover after dropping the trigger, without instrumenting internal worker command counts. Reuse the existing worker-state lifetime through aroundEach.

CI-only: plain oxlint, oxfmt and git diff --check pass; no tests or coverage run. Additional reduction 1772 to 1632 lines; cumulative 1793 to 1632 (9.0%), below the 20% target. Remaining requester authority, stop/capacity interleavings, wake generations and failure recovery, cache admission/publication races, schema checks and snapshot isolation retain distinct proof.
Consolidate descendant event/deadline and retirement fixtures, retain both timing interleavings, and prove generation-two delivery in the retained SQLite failure/sweep case. Share registry record construction and combine writer publication with closed-scope checks without dropping their assertions.

Keep failed replay publication and old-generation isolation in subagent-completion-admission.requester-wake.test.ts: reconciles failed replay persistence before transport with a rearmed sibling; retains the known outcome for unchanged siblings when one member is rearmed. Initial registration refusal remains in subagent-registry.completion-authority.test.ts registration-rejected; tombstone rollback remains in subagent-control.test.ts kill tombstone persistence refusal and subagent-registry-worker.test.ts native transaction/commit admission rollback.

CI-only: plain oxlint, oxfmt, git diff --check and independent static preservation review pass; no tests or coverage run. This commit reduces 1632 to 1429 lines; cumulative shard reduction is 1793 to 1429 (20.3%). No production files or files outside the shard changed.
Consolidate default, self, and agent visibility fixtures without deleting behavioral assertions. Preserve Unicode tokenizer regression 7d80521: the newer canonical-form test can still pass with the old ASCII tokenizer. Keep CLI FIFO, UTF-8, terminal output, agent routing, and rollback interleaving coverage intact.
Consolidate body-file error setup into distinct permission, empty, and UTF-8 rows. Compact snippet rows and person-routing fixtures; reuse the vault page writer and remove unused resolver mock bookkeeping. Preserve all authority checks, source-citation paths, Unicode regressions, and rollback interleavings. CI-only: formatting, plain oxlint, and diff checks; no tests run. Reduction remains below 20% because no further independent behavior can be removed safely.
Retain bridge ownership matrix in agent-vault-isolation.test.ts: enforces bridge ownership through registered corpus fallbacks. Keep session-derived case normalization and missing-caller denial here. Reuse local query/CLI clients and FIFO writer cleanup. Drop duplicate metadata body/index assertions covered by apply.test.ts: persists metadata, indexes and human blocks; OKF path naming remains covered by okf.test.ts: imports OKF concept documents as searchable wiki concept pages. Keep CLI option forwarding, output outcomes, UTF-8 and filesystem boundary cases, revocation cleanup and rollback interleavings. CI-only static lint/format/diff checks; no test runs. Cumulative reduction is 10.6%, below the requested 20%.
Reuse selection config and user-pin fixtures, share the missing/restored credential assertions, and simplify command reply extraction. Preserve all distinct cases and authority, privacy, compaction, and lifecycle assertions; the already-reduced lifecycle suite is unchanged.

CI-only validation: plain oxlint, oxfmt, and git diff --check passed. No tests, coverage, builds, or typechecks run. Reduction is 1786 to 1776 lines; the 20 percent target remains unmet because the remaining cases protect distinct behavior.
Combine the two settled-fallback cancellation scenarios around a real reply operation. The retained test drains pending tools before freezing, suppresses the late response, preserves compaction accounting and controller ownership, records message-tool mute, and verifies cleanup. Remove the fabricated operation result and test-only adapter output assertion.

Drop callback-presence assertions already proved by the exact durable accounting outcomes. Reuse the auth-store type and simplify snapshot fixture guards. Generic info header and run-id proof remains in the sanitization and invalid-date cases.

Reviewed PASS 20 moves 1-5 and prior reduction history. Remaining tables exercise distinct policy, authority, provenance, privacy, or lifecycle branches; no further whole-test duplicate or dead subject identified. Cumulative shard LOC 1786 to 1740 (2.6 percent), below the 20 percent target. CI-only validation: plain oxlint, oxfmt, and git diff --check pass; no tests, coverage, builds, or typechecks run.
Carry log filtering and explicit history limits through global-session inspection; preserve private-only empty output and user role markers. The displayed-index scenario now also owns killed-status precedence. The newest-three status scenario owns the non-finite-duration regression alongside normal durations.

Carry registry-before-preflight proof through the channel-evidence failure/retry scenario. Carry abort-signal forwarding through the rejected-primary/successful-fallback scenario, and lane progress through waiting-to-execution typing. Remove only the duplicated setup and assertions already performed in these retained flows.

Use a prepared-policy fixture at the model-selection consumer boundary; policy preparation remains covered by model-selection.catalog-overlay.test.ts: keeps capabilities with their owner. Remove unused default catalog inventory; catalog-consuming scenarios provide their own prepared or configured rows.

CI-only: plain oxlint, oxfmt, and git diff --check passed. No tests, coverage, builds, or typechecks run. Cumulative LOC 1786 to 1631 (8.7 percent); 20 percent target remains unmet with distinct boundary cases retained.
Reuse legacy manager overrides and test-owned provider cleanup without removing cases or assertions. Keep distinct inspection disposal, install authority, catalog generation, and memory authority paths intact.

CI-only: plain oxlint, oxfmt, and diff check passed. No tests or coverage run. Shard test LOC 1804 to 1785; below the 20 percent target because remaining cases protect distinct behaviors.
Keep real native model/auth calls at each registration root, but remove detailed policy replay owned by model-selection.test.ts, auth profile owner tests, and loader.runtime-registry.test.ts. Preserve restricted execution authority and forbidden broad-runtime loading.

Consolidate empty/invalid catalog cases through one table without dropping rows. Simplify first-install inputs and retain persisted slot assertions instead of repeating returned config. Doctor ok already aggregates error, diagnostic, and configuration warning emptiness. Keep direct memory cleanup and rollback proof; remove only the redundant status call-shape assertion.

CI-only: plain oxlint, oxfmt, and git diff --check passed; no test or coverage runs. Additional LOC reduction 1785 to 1743; cumulative 1804 to 1743 remains below the 20 percent target. No files deleted.
Consolidate cold catalog setup into one row per source, requested-owner, and disabled-plugin branch. Keep source-only alias lookup separate from requested-owner exclusion. Inline the single-use catalog mutation wrapper without dropping validation cases.

Use minimal health facts and shared legacy-provider setup, references, and publication cleanup. Retain all memory authorization, redaction, cleanup, and health outcomes. No production or support-file changes.

CI-only: plain oxlint, oxfmt, and diff check passed; no tests or coverage run. This pass reduces 1743 to 1705 lines. Cumulative 1804 to 1705 remains below 20 percent; independent file reviews found no further safe duplicate layer. No files deleted.
Share response and request-policy fixtures and table input validation, duration normalization, and malformed submissions without dropping expanded cases. Preserve auth, replay, polling, malformed-body and cleanup assertions. CI-only: plain oxlint, oxfmt and diff checks pass; test execution and coverage deferred to hosted CI. Reduction is below 20 percent because the remaining owner-boundary cases have no behavior-complete keeper.
Merge dated DeepSeek replay and Anthropic alias cases into retained stream tables. models.test.ts retains dated model matching; maps OpenRouter video model discovery into unified catalog rows now also proves malformed-row filtering. Share download and oversized-response fixtures. Remove generic fetch method/identity/audit-shape assertions; retain auth, destination, request-policy isolation, deadline forwarding and cleanup checks. The mapping test remains the configured-header and private-network-policy keeper for the shared video catalog fetch owner. Strengthen the custom-route replay fixture with an assistant answer so a route-policy regression changes the asserted output.

CI-only: plain oxlint, oxfmt and diff checks pass; no test runs. Cumulative shard lines are 1419 to 1266, below the 20 percent target. Remaining distinct plugin registration/auth, transport, replay, Fusion prompt, catalog and media-response contracts were retained.
Reuse page setup, request routing, DOM queries, and rotation fixtures. Keep the distinct permission, stale-response, polling, and rendering cases.

Consolidate token reveal and blocked dismissal proof in the retained explicit-acknowledgement flow; preserve title, token, copy control, blocked gesture, hint, and acknowledgement assertions.

CI-only validation: oxfmt, diff check, and plain oxlint. Shard reduction is 50 of 1389 lines (3.6%); further cuts would require a separately reviewed relaxation of retained behavior coverage.
Share ready, deciding and read-only approval fixtures; retain per-row labels, disabled controls and no-mutation assertions. Exercise node, system-info and desktop stale responses in one connection-invalidation table. Combine retained binding and approval drafts through reload and reconnect.

Remove duplicate skeleton presentation covered by view-inventory-readiness.test.ts: shows an empty inventory refresh as one skeleton after initial readiness; the page coalescing test retains the device.pair.requested entry path. Move valid-authority cancellation into the retained device-rejection flow; confirm-dialog.test.ts also covers cancellation. Keep delayed token delivery and copy proof here; device-token-reconnect.e2e.test.ts covers token visibility, Escape refusal and acknowledgement.

Drop copied tooltip wording and duplicate mock-call checks, retain version-drift decisions, and trim shared fixtures. Original shard: 1389 to 1109 lines (20.2 percent). CI-only: oxfmt, plain oxlint and diff-check passed; no test runs.
@clawsweeper

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

@steipete
steipete enabled auto-merge (squash) October 27, 2026 09:02
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T09:44:05.509098Z 73f857f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete disabled auto-merge October 27, 2026 09:10
@steipete
steipete enabled auto-merge (squash) October 27, 2026 09:12
@steipete
steipete disabled auto-merge October 27, 2026 09:28
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates test fixtures and overlapping scenarios across memory, subagents, replies, plugins, OpenRouter, and Devices.

Example: An embedding endpoint accepts at most 10 inputs per request.

  • Before: Declared-cap and corrected-cap scenarios repeat HTTP and indexing scaffolding.
  • After: The existing policy suite retains expected request sizes such as 20, 10, 10, 13, 10, 3, while the transport suite retains representative rejection and recovery cases.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused test consolidation with verified retained contracts and no actionable source finding; this is not a green-CI landing verdict.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only PR changes no shipped behavior; retained boundary assertions were inspected and available exact-head CI results were reviewed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored direction reduces repeated maintenance work while retaining distinct provider, isolation, persistence, cancellation, and UI lifecycle contracts.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: the test consolidation has useful retained boundary coverage, and no concrete introduced defect was found; the failing CI checks still need attribution.

Priority: P3
Reviewed head: 651f59a9b7ae47ab1cf35ac2353f6a9fdfa96bb7

Before merge

None.

Findings

None.

Agent review details

How this fits together

These suites feed synthetic requests, database failures, and UI events into existing production owners, then assert transport, persistence, authorization, lifecycle, and rendering outcomes.

flowchart LR
  A[Synthetic scenarios] --> B[Shared test fixtures]
  B --> C[Existing production owners]
  C --> D[Transport and state outcomes]
  D --> E[Boundary assertions]
Loading

Technical review

Best possible solution:

Retain the consolidation and existing boundary suites, with any CI-caused repair confined to the failing fixture or assertion.

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

This is test consolidation rather than a reported product bug; source inspection verifies the reduced scenarios and their retained owning-boundary coverage.

Is this the best way to solve the issue?

The consolidation uses existing owners and local fixtures, preserves distinct failure cases in sibling suites, and introduces no competing production path.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Verified introduction and test-only scope: The pinned merge-base-to-head diff changes only tests and test support; production sources, dependencies, workflows, and persisted formats are unchanged. (651f59a9b7ae)
  • Bridge isolation remains covered: The unchanged registered-corpus test checks allowed main-agent pages, denied secondary and unowned pages, and unrestricted access through both memory_get and memory_search; corpus-supplement.ts delegates to the same query owners used by the reduced suite. (extensions/memory-wiki/src/agent-vault-isolation.test.ts:130, 651f59a9b7ae)
  • Metadata preservation remains covered: The unchanged mutation-owner test updates metadata and verifies that the distinctive human note, human block, and index survive; the reduced CLI test retains option-to-frontmatter checks. (extensions/memory-wiki/src/apply.test.ts:18, 651f59a9b7ae)
  • Retry-generation isolation remains covered: The unchanged completion-admission suite injects rejected outcome persistence, rearms one sibling to generation two, verifies no extra transport, and preserves the newer wake; a separate case covers failed replay publication. (src/agents/subagents/completion/subagent-completion-admission.requester-wake.test.ts:590, 651f59a9b7ae)
  • Embedding split contracts remain covered: The existing policy suite retains positive and negative provider-error classification, declared and corrected caps, ordered outputs, and paired cache candidates; index.test.ts retains source-wide fallback mapping after cache hits. (extensions/memory-core/src/memory/manager-embedding-policy.test.ts:546, 651f59a9b7ae)
  • Token acknowledgement remains covered: The unchanged browser E2E checks token visibility, Escape refusal, the dismissal hint, and explicit acknowledgement; the retained page test covers delayed token delivery after disconnect and the copy control. (ui/src/e2e/device-token-reconnect.e2e.test.ts:260, 651f59a9b7ae)

Likely related people:

  • Peter Steinberger: Raw commit 0061cdd adds extensions/memory-core/src/memory/generic-embedding-provider.integration.test.ts:466 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0061cdde5f9a; files: extensions/memory-core/src/memory/generic-embedding-provider.integration.test.ts)
  • Josh Lehman: Raw commit 0dc63ee adds src/plugins/memory-provider-runtime.test.ts:17 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0dc63eecaddd; files: src/plugins/memory-provider-runtime.test.ts)
  • Vincent Koc: Raw commit c4a0ca0 adds src/agents/subagent-registry-state.test.ts:26 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: c4a0ca0b7a41; files: src/agents/subagent-registry-state.test.ts)
  • Leon-SK668: Raw commit 690241f adds extensions/memory-wiki/src/cli.test.ts:220 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 690241f3643b; files: extensions/memory-wiki/src/cli.test.ts)

PR surface

Tests -1186. Total -1186 across 14 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 14 1760 2946 -1186
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 1760 2946 -1186

Review metrics

Metric Value Why it matters
Production versus test LOC Production +0/-0; tests and support +1760/-2946, net -1186. The pinned introduced diff reduces duplicated scaffolding without adding production machinery.

Labels

Label changes:

  • add P3: This is test-maintenance work with no production behavior change or established user-facing regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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:

  • P3: This is test-maintenance work with no production behavior change or established user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Attribute the core lint and UI modal failures on the reviewed head, repairing only failures caused by this diff.

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 27, 2026, 5:28 AM ET / 09:28 UTC.

@steipete
steipete enabled auto-merge (squash) October 27, 2026 09:41

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73f857f1a6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +623 to 624
expect(modalQuery(".chat-copy-btn")).toBeInstanceOf(HTMLButtonElement);
dialogButton(t("devices.inventory.rotateAcknowledge")).click();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Retain dismissal protection coverage for revealed tokens

For an in-band token rotation, the deleted dismissal test was the only proof that a modal-cancel event is prevented and the one-time credential remains visible until acknowledgment. The retained test only clicks Acknowledge, while the withheld-token test exercises the opposite dismissal behavior. A repository-wide test search found no replacement coverage: removing event.preventDefault() from showSecretRevealDialog would now pass these tests despite allowing an accidental dismissal to lose the newly rotated credential. Fold the cancellation and token-retention assertions into this retained rotation scenario before acknowledging it.

Useful? React with 👍 / 👎.

roboclaw-bot added a commit that referenced this pull request Nov 3, 2026
…age (#192003)

* refactor(tests): consolidate repeated fixtures without dropping coverage

Consolidate file-local setup and repeated case bodies while retaining caller,
security, lifecycle, migration, and evidence-integrity assertions.

Adapt reviewed portions of #185705, #185748, and #185707 with lost contracts
restored. Keep the shared budget and existing allocations unchanged.

Co-authored-by: galiniliev <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

* test: prune documented Wiki mock isolation allowance

Regenerate the shrink-only mock-export baseline after the Wiki fixture consolidation added its explicit isolation rationale. Remove exactly the retired gateway-runtime entry; test-line budgets and allocations remain unchanged.

Co-authored-by: galiniliev <[email protected]>

---------

Co-authored-by: galiniliev <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
…age (openclaw#192003)

* refactor(tests): consolidate repeated fixtures without dropping coverage

Consolidate file-local setup and repeated case bodies while retaining caller,
security, lifecycle, migration, and evidence-integrity assertions.

Adapt reviewed portions of openclaw#185705, openclaw#185748, and openclaw#185707 with lost contracts
restored. Keep the shared budget and existing allocations unchanged.

Co-authored-by: galiniliev <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

* test: prune documented Wiki mock isolation allowance

Regenerate the shrink-only mock-export baseline after the Wiki fixture consolidation added its explicit isolation rationale. Remove exactly the retired gateway-runtime entry; test-line budgets and allocations remain unchanged.

Co-authored-by: galiniliev <[email protected]>

---------

Co-authored-by: galiniliev <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant