Skip to content

refactor(agents): remove dead test surfaces - #107113

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/agents-test-seams
Jul 14, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/agents-test-seams

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

The agents test surface exposed unused helpers and retained redundant MCP harness modules, making dead code appear reusable and adding maintenance debt to the export baseline.

Why This Change Was Made

Tests now exercise public composition, define narrow local fixtures, or import the owning runtime's existing testing seam directly. The unreferenced harness modules, duplicate aliases, dead exports, and matching baseline entries are removed.

User Impact

No user-visible behavior changes. The internal agents surface is smaller and future dead-code checks have less intentional debt to preserve.

Evidence

  • Blacksmith Testbox tbx_01kxfcry576j34vpvm4aq7cxcx
  • 306 focused tests passed across the affected agents and auto-reply suites
  • pnpm deadcode:exports: 1,047 intentional entries matched, down from 1,054
  • pnpm deadcode:unused-files: 25 intentional entries matched
  • full pnpm check:changed passed
  • fresh graph reindex: 314,161 nodes, 1,303,639 edges, 23,380 files
  • graph search returned zero results for the removed symbols and deleted harness paths
  • fresh gpt-5.6-sol medium autoreview passed in local and committed branch modes with no findings, both at 0.94 confidence
  • git diff --check passed

AI-assisted; the resulting code and validation evidence were reviewed before submission.

@vincentkoc vincentkoc self-assigned this Jul 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts agents Agent runtime and tooling size: M maintainer Maintainer-authored PR labels Jul 14, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 14, 2026 04:23
@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready proof for 1a7bc479bdafba7625d9321ba46c27aff5855d60:

  • Blacksmith Testbox tbx_01kxfcry576j34vpvm4aq7cxcx
  • 306 focused tests passed across the affected agents and auto-reply suites
  • pnpm deadcode:exports passed with 1,047 entries, down from 1,054
  • pnpm deadcode:unused-files passed with 25 entries
  • full pnpm check:changed passed
  • fresh post-edit codebase graph index: 314,161 nodes, 1,303,639 edges, 23,380 files
  • graph searches returned zero references for the removed symbols and harness paths
  • gpt-5.6-sol medium autoreview passed with no findings in local mode (019f5eda-f076-75c3-a803-ab764e897149) and committed branch mode (019f5edb-6134-7d90-a388-cf9baee0f57b), both at 0.94 confidence
  • scripts/pr review-validate-artifacts 107113 passed with recommendation READY FOR /prepare-pr and zero findings
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 107113 passed; pushed and prepared SHA match exactly
  • current main has no touched-file overlap since the merge base, and GitHub reports the PR mergeable

Known proof gaps: none for this behavior-preserving internal refactor.

@vincentkoc
vincentkoc merged commit 3a55f8d into main Jul 14, 2026
127 of 134 checks passed
@vincentkoc
vincentkoc deleted the refactor/agents-test-seams branch July 14, 2026 04:23
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

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

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant