Epic: Stub Package Cleanup — Remove Ghost Packages and Empty Stub Modules #946

Open
opened 2026-03-14 03:15:38 +00:00 by freemo · 0 comments
Owner

Background and Context

A codebase audit revealed several packages that exist only as empty stubs or ghost artifacts with no functional code. These packages occupy namespace, confuse IDE tooling, and misrepresent the implementation status of the system.

Specifically:

  • src/cleveragents/acp/ — Ghost package containing only __pycache__/ with 9 orphaned .pyc files and no .py source files. The ACP (Agent Communication Protocol) module was superseded by the A2A protocol (ADR-047) but was never properly removed.
  • src/cleveragents/runtime/ — Empty stub package with only __init__.py containing __all__ = [].
  • src/cleveragents/domain/repositories/ — Empty stub package with only __init__.py containing __all__ = [].
  • src/cleveragents/domain/plans/ — Empty stub package with only __init__.py containing __all__ = [].
  • src/cleveragents/application/workflows/ — Empty stub package with only __init__.py containing __all__ = [].

Per the specification and CONTRIBUTING.md, no half-done or placeholder implementations should exist in the source tree. Each of these must be either properly implemented (if the spec requires them) or cleanly removed (if they are dead code).

Expected Behavior

The source tree contains no ghost packages, no orphaned .pyc files without corresponding .py sources, and no empty stub packages that serve no architectural purpose. Every package in the source tree either contains functional code or is removed.

Acceptance Criteria

  • acp/ directory is fully removed including all __pycache__/ contents
  • runtime/ is either implemented per spec or removed with imports updated
  • domain/repositories/ is either implemented per spec or removed with imports updated
  • domain/plans/ is either implemented per spec or removed with imports updated
  • application/workflows/ is either implemented per spec or removed with imports updated
  • No orphaned .pyc files remain anywhere in the source tree without corresponding .py files
  • All import references to removed packages are updated or removed
  • nox passes (all default sessions) after cleanup

Definition of Done

This Epic is complete when all child issues are closed and merged. No ghost packages or empty stub packages remain in the source tree, and all tests pass.

## Background and Context A codebase audit revealed several packages that exist only as empty stubs or ghost artifacts with no functional code. These packages occupy namespace, confuse IDE tooling, and misrepresent the implementation status of the system. Specifically: - **`src/cleveragents/acp/`** — Ghost package containing only `__pycache__/` with 9 orphaned `.pyc` files and no `.py` source files. The ACP (Agent Communication Protocol) module was superseded by the A2A protocol (ADR-047) but was never properly removed. - **`src/cleveragents/runtime/`** — Empty stub package with only `__init__.py` containing `__all__ = []`. - **`src/cleveragents/domain/repositories/`** — Empty stub package with only `__init__.py` containing `__all__ = []`. - **`src/cleveragents/domain/plans/`** — Empty stub package with only `__init__.py` containing `__all__ = []`. - **`src/cleveragents/application/workflows/`** — Empty stub package with only `__init__.py` containing `__all__ = []`. Per the specification and CONTRIBUTING.md, no half-done or placeholder implementations should exist in the source tree. Each of these must be either properly implemented (if the spec requires them) or cleanly removed (if they are dead code). ## Expected Behavior The source tree contains no ghost packages, no orphaned `.pyc` files without corresponding `.py` sources, and no empty stub packages that serve no architectural purpose. Every package in the source tree either contains functional code or is removed. ## Acceptance Criteria - [ ] `acp/` directory is fully removed including all `__pycache__/` contents - [ ] `runtime/` is either implemented per spec or removed with imports updated - [ ] `domain/repositories/` is either implemented per spec or removed with imports updated - [ ] `domain/plans/` is either implemented per spec or removed with imports updated - [ ] `application/workflows/` is either implemented per spec or removed with imports updated - [ ] No orphaned `.pyc` files remain anywhere in the source tree without corresponding `.py` files - [ ] All import references to removed packages are updated or removed - [ ] `nox` passes (all default sessions) after cleanup ## Definition of Done This Epic is complete when all child issues are closed and merged. No ghost packages or empty stub packages remain in the source tree, and all tests pass.
freemo added the
MoSCoW
Could have
Points
8
Priority
Medium
State
Verified
Type
Epic
labels 2026-03-14 03:15:44 +00:00
freemo added a new dependency 2026-03-14 03:19:38 +00:00
hurui200320 was assigned by freemo 2026-03-14 04:27:40 +00:00
freemo added this to the v3.2.0 milestone 2026-03-16 16:09:19 +00:00
hurui200320 was unassigned by freemo 2026-04-02 06:13:49 +00:00
freemo self-assigned this 2026-04-02 06:13:49 +00:00
freemo removed the
Priority
Medium
State
Verified
Type
Epic
labels 2026-04-03 00:30:20 +00:00
freemo added a new dependency 2026-04-03 12:14:38 +00:00
freemo added a new dependency 2026-04-05 06:19:01 +00:00
HAL9000 added the
Priority
Medium
State
Unverified
Type
Epic
labels 2026-04-13 01:53:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Blocks Depends on
Reference: cleveragents/cleveragents-core#946