Skip to content

refactor: graduate dead_code tests to tests/, delete obsolete artifacts#1

Merged
codejedi-ai merged 1 commit intomainfrom
master
Mar 14, 2026
Merged

refactor: graduate dead_code tests to tests/, delete obsolete artifacts#1
codejedi-ai merged 1 commit intomainfrom
master

Conversation

@codejedi-ai
Copy link
Copy Markdown
Owner

@codejedi-ai codejedi-ai commented Mar 14, 2026

Migrated (dead_code/ → tests/ with cleanup):

  • test_duckduckgo_search.py → tests/test_web_search.py
  • test_fda_run.py → tests/test_fda_navigation_simple.py
  • test_fda_detailed.py → tests/test_fda_navigation_detailed.py
  • test_fda_headed.py → tests/test_fda_navigation_headed.py
  • test_fda_simple_headed.py → tests/test_fda_navigation_simple_headed.py

Cleanup applied to all migrated tests:

  • Removed stale sys.path.insert (tests/ is inside the package now)
  • Consistent TARGET_URL constant at module level
  • Consistent if name == "main" guard

Deleted (already live or obsolete):

  • dead_code/core/ (memory entities/ops already in smolclaw/agent/)
  • dead_code/tools/ (smolagents-style registry superseded by EIM)
  • dead_code/fix_event_sourcing.py (one-time repair script, already applied)

dead_code/ directory fully removed.


Note

Low Risk
Low risk because changes are limited to deleting unused legacy modules and minor refactors to test scripts, with no production logic modified.

Overview
Deletes the legacy dead_code/ tree (old core memory helpers, tool registry/browser tools, and a one-off fix_event_sourcing.py script).

Cleans up and standardizes the migrated smoke tests in tests/ (FDA navigation variants and DuckDuckGo search): removes sys.path hacks, introduces a shared TARGET_URL constant, and normalizes the __main__ entrypoints and output/result dumping.

Written by Cursor Bugbot for commit 93335b0. This will update automatically on new commits. Configure here.

Migrated (dead_code/ → tests/ with cleanup):
- test_duckduckgo_search.py     → tests/test_web_search.py
- test_fda_run.py               → tests/test_fda_navigation_simple.py
- test_fda_detailed.py          → tests/test_fda_navigation_detailed.py
- test_fda_headed.py            → tests/test_fda_navigation_headed.py
- test_fda_simple_headed.py     → tests/test_fda_navigation_simple_headed.py

Cleanup applied to all migrated tests:
- Removed stale sys.path.insert (tests/ is inside the package now)
- Consistent TARGET_URL constant at module level
- Consistent if __name__ == "__main__" guard

Deleted (already live or obsolete):
- dead_code/core/           (memory entities/ops already in smolclaw/agent/)
- dead_code/tools/          (smolagents-style registry superseded by EIM)
- dead_code/fix_event_sourcing.py  (one-time repair script, already applied)

dead_code/ directory fully removed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codejedi-ai codejedi-ai merged commit d16c700 into main Mar 14, 2026
3 checks passed
cyber-agent67 pushed a commit to Duo-Keyboard-Koalition/SmolClaw that referenced this pull request Mar 14, 2026
cyber-agent67 pushed a commit that referenced this pull request Mar 14, 2026
…ing, then restore.

● Bash(git stash && git checkout master && git merge main -m "sync: bring master up to main" && git push origin master &&
      git push upstream master && git checkout refa…)
  ⎿  Saved working directory and index state WIP on main: c627431 sync: merge upstream/main (PR #1 merge commit)
     Switched to branch 'master'
     Your branch is up to date with 'origin/master'.
     … +65 lines (ctrl+o to expand)

● All branches are fully synced on both remotes:

  ┌───────────────────────┬────────────────────────┬────────────────────────┐
  │        Branch         │ origin (cyber-agent67) │ upstream (codejedi-ai) │
  ├───────────────────────┼────────────────────────┼────────────────────────┤
  │ main                  │ c627431 ✓              │ c627431 ✓              │
  ├───────────────────────┼────────────────────────┼────────────────────────┤
  │ master                │ c627431 ✓              │ c627431 ✓              │
  ├───────────────────────┼────────────────────────┼────────────────────────┤
  │ refactor/p2-structure │ c627431 ✓              │ c627431 ✓              │
  └───────────────────────┴────────────────────────┴────────────────────────┘

  Note: you also have uncommitted local changes on main (stash was restored). Those changes are not yet committed — let me
  know if you'd like to commit and push them too.
cyber-agent67 pushed a commit that referenced this pull request Mar 14, 2026
…ing, then restore.

● Bash(git stash && git checkout master && git merge main -m "sync: bring master up to main" && git push origin master &&
      git push upstream master && git checkout refa…)
  ⎿  Saved working directory and index state WIP on main: c627431 sync: merge upstream/main (PR #1 merge commit)
     Switched to branch 'master'
     Your branch is up to date with 'origin/master'.
     … +65 lines (ctrl+o to expand)

● All branches are fully synced on both remotes:

  ┌───────────────────────┬────────────────────────┬────────────────────────┐
  │        Branch         │ origin (cyber-agent67) │ upstream (codejedi-ai) │
  ├───────────────────────┼────────────────────────┼────────────────────────┤
  │ main                  │ c627431 ✓              │ c627431 ✓              │
  ├───────────────────────┼────────────────────────┼────────────────────────┤
  │ master                │ c627431 ✓              │ c627431 ✓              │
  ├───────────────────────┼────────────────────────┼────────────────────────┤
  │ refactor/p2-structure │ c627431 ✓              │ c627431 ✓              │
  └───────────────────────┴────────────────────────┴────────────────────────┘

  Note: you also have uncommitted local changes on main (stash was restored). Those changes are not yet committed — let me
  know if you'd like to commit and push them too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant