Commit Graph

3 Commits

Author SHA1 Message Date
Alexander Whitestone
77c8ccf18c feat: restore self-modification loop (Fixes #983)
Some checks failed
Tests / lint (pull_request) Successful in 34s
Tests / test (pull_request) Failing after 29m20s
Restores the branch→edit→test→commit/revert loop deleted in
Operation Darling Purge (commit 584eeb679e).

New package: src/self_coding/
- self_modify/loop.py  — SelfModifyLoop: creates a self-modify/<slug>
  branch, runs an edit callable, gates commits on pytest -x -q, reverts
  on failure, then opens a Gitea PR via the REST API.
- gitea_client.py — thin GiteaClient wrapper (create_pull_request,
  add_issue_comment); degrades gracefully when token absent or network
  unreachable.

Tests: tests/self_coding/test_loop.py (15 unit tests, all passing).
All 451 unit tests green; lint clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 21:37:23 -04:00
Alexander Whitestone
584eeb679e Operation Darling Purge: slim to wealth core (-33,783 lines) (#121) 2026-03-02 13:17:38 -05:00
Claude
9f4c809f70 refactor: Phase 2b — consolidate 28 modules into 14 packages
Complete the module consolidation planned in REFACTORING_PLAN.md:

Modules merged:
- work_orders/ + task_queue/ → swarm/ (subpackages)
- self_modify/ + self_tdd/ + upgrades/ → self_coding/ (subpackages)
- tools/ → creative/tools/
- chat_bridge/ + telegram_bot/ + shortcuts/ + voice/ → integrations/ (new)
- ws_manager/ + notifications/ + events/ + router/ → infrastructure/ (new)
- agents/ + agent_core/ + memory/ → timmy/ (subpackages)

Updated across codebase:
- 66 source files: import statements rewritten
- 13 test files: import + patch() target strings rewritten
- pyproject.toml: wheel includes (28→14), entry points updated
- CLAUDE.md: singleton paths, module map, entry points table
- AGENTS.md: file convention updates
- REFACTORING_PLAN.md: execution status, success metrics

Extras:
- Module-level CLAUDE.md added to 6 key packages (Phase 6.2)
- Zero test regressions: 1462 tests passing

https://claude.ai/code/session_01JNjWfHqusjT3aiN4vvYgUk
2026-02-26 22:07:41 +00:00