Alexander Whitestone
87dc5eadfe
Wire orchestrator pipe into task runner + pipe-verifying integration tests ( #134 )
2026-03-06 01:20:14 -05:00
Alexander Whitestone
2b97da9e9c
Add pre-commit hook enforcing 30s test suite time limit ( #132 )
2026-03-05 19:45:38 -05:00
Alexander Whitestone
aff3edb06a
Audit cleanup: security fixes, code reduction, test hygiene ( #131 )
2026-03-05 18:56:52 -05:00
Alexander Whitestone
584eeb679e
Operation Darling Purge: slim to wealth core (-33,783 lines) ( #121 )
2026-03-02 13:17:38 -05:00
Alexander Whitestone
3a8496a3f1
feat: add security middleware suite - CSRF, security headers, and request logging ( #102 )
...
Implements three security middleware components with full test coverage:
- CSRF Protection: Token generation/validation, safe method allowlist,
auto-exempt webhooks, constant-time comparison for timing attack prevention
- Security Headers: X-Content-Type-Options, X-Frame-Options, CSP,
Permissions-Policy, Referrer-Policy, HSTS (production)
- Request Logging: Method/path/status/duration logging with correlation IDs,
configurable path exclusions, X-Forwarded-For support
Also fixes Discord test isolation issue where settings.discord_token
was not being properly reset between tests.
New files:
- src/dashboard/middleware/{csrf,security_headers,request_logging}.py
- tests/dashboard/middleware/test_{csrf,security_headers,request_logging}.py
Addresses design review recommendations R3, R8, R9, R4.
All tests pass: 1950 passed, 40 skipped
Co-authored-by: Alexander Payne <apayne@MM.local >
2026-02-28 23:21:09 -05:00
Alexander Whitestone
51140fb7f0
test: remove hardcoded sleeps, add pytest-timeout ( #69 )
...
- Replace fixed time.sleep() calls with intelligent polling or WebDriverWait
- Add pytest-timeout dependency and --timeout=30 to prevent hangs
- Fixes test flakiness and improves test suite speed
Co-authored-by: Alexander Payne <apayne@MM.local >
2026-02-26 22:52:36 -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
Claude
d2c80fbf4c
refactor: Phase 2a — consolidate dashboard routes (27→22 files)
...
Merge related route files to reduce sprawl:
- voice.py ← voice_enhanced.py (enhanced pipeline merged in)
- swarm.py ← swarm_internal.py + swarm_ws.py (internal API + WebSocket)
- self_coding.py ← self_modify.py (self-modify endpoints merged in)
- Delete mobile_test.py route + template (test-only page, not for prod)
- Delete test_xss_prevention.py (tested the deleted mobile_test page)
Update app.py to use consolidated imports.
Update test_voice_enhanced.py patch paths.
Remove mobile_test.py from coverage omit (file deleted).
27 route files → 22. Tests: 1502 passed (1 removed with deleted page).
https://claude.ai/code/session_019oMFNvD8uSGSSmBMGkBfQN
2026-02-26 21:30:39 +00:00
Claude
4e11dd2490
refactor: Phase 3 — reorganize tests into module-mirroring subdirectories
...
Move 97 test files from flat tests/ into 13 subdirectories:
tests/dashboard/ (8 files — routes, mobile, mission control)
tests/swarm/ (17 files — coordinator, docker, routing, tasks)
tests/timmy/ (12 files — agent, backends, CLI, tools)
tests/self_coding/ (14 files — git safety, indexer, self-modify)
tests/lightning/ (3 files — L402, LND, interface)
tests/creative/ (8 files — assembler, director, image/music/video)
tests/integrations/ (10 files — chat bridge, telegram, voice, websocket)
tests/mcp/ (4 files — bootstrap, discovery, executor)
tests/spark/ (3 files — engine, tools, events)
tests/hands/ (3 files — registry, oracle, phase5)
tests/scripture/ (1 file)
tests/infrastructure/ (3 files — router cascade, API)
tests/security/ (3 files — XSS, regression)
Fix Path(__file__) reference in test_mobile_scenarios.py for new depth.
Add __init__.py to all test subdirectories.
Tests: 1503 passed, 9 failed (pre-existing), 53 errors (pre-existing)
https://claude.ai/code/session_019oMFNvD8uSGSSmBMGkBfQN
2026-02-26 21:21:28 +00:00