Stage 3 tests still build tickets through the legacy GeneralWorker #11

Closed
opened 2026-10-13 05:50:47 -04:00 by vinny · 0 comments
Owner

src/cmonet/general/worker.py and src/cmonet/general/context.py (449 lines) are not wired in server.py. They are marked legacy (general/context.py, around line 107), and only tests use them:

  • tests/stage3/helpers.py (ticket_for) and tests/library/world.py make every stage-3 execution ticket through GeneralWorker._begin / _accept.
  • tests/stage3/test_general.py has 16 tests on the worker itself.

So many execution tests start from a decision recorded the stage-3 way, not the way agents/runtime.py records it today.

Proposal:

  1. Move the helpers to the current runtime's ticket path.
  2. Delete the worker tests and the two modules (repository hygiene, AGENTS.md).

Found in the 2026-10-13 review (PR #1). PR #1 removed other dead code: domain/ports.py and seven unused functions.

`src/cmonet/general/worker.py` and `src/cmonet/general/context.py` (449 lines) are not wired in `server.py`. They are marked legacy (`general/context.py`, around line 107), and only tests use them: - `tests/stage3/helpers.py` (`ticket_for`) and `tests/library/world.py` make every stage-3 execution ticket through `GeneralWorker._begin` / `_accept`. - `tests/stage3/test_general.py` has 16 tests on the worker itself. So many execution tests start from a decision recorded the stage-3 way, not the way `agents/runtime.py` records it today. Proposal: 1. Move the helpers to the current runtime's ticket path. 2. Delete the worker tests and the two modules (repository hygiene, AGENTS.md). Found in the 2026-10-13 review (PR #1). PR #1 removed other dead code: `domain/ports.py` and seven unused functions.
vinny closed this issue 2026-10-13 20:35:14 -04:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
vinny/CMOnet#11
No description provided.