mirror of
https://github.com/RustyRaptor/doge_cogs.git
synced 2026-12-03 15:55:21 -07:00
- tests/test_watch_cog.py + watch_helpers.py: the watch cog against a fake media-preload on a real socket (spec-shaped JSON, bearer token), so the generated client, httpx, httpcore and anyio all run. 21 tests; checked against six mutations of watch.py, each caught. - scripts/test-container.sh installs cog requirements the way Red's Downloader does (pip -t lib, image's PIP_CONSTRAINT, lib appended after the venv via DOGE_COGS_LIB). On the pre-constraint image 20 watch tests fail with the 2026-11-09 production error; on the current image all pass. - test_alignment_isolation: discover every core module instead of a hand list that had missed guess, render, baseline, sampling and others. - TESTING.md (the loop, good tests, layers) and CLAUDE.md for agents. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
525 B
525 B
doge_cogs: notes for AI agents
- Work test first. Read
TESTING.mdbefore changing code or tests, and use the superpowerstest-driven-developmentskill: failing test, watch it fail, minimal code, whole suite green. - Existing code without tests: add tests, then run a mutation check (break the code, see a test fail, undo).
mise run checkbefore pushing; it includes the run inside dogebot's Red image on yveltal.- Never edit cogs inside the running bot. Push here; dogebot's dogesetup installs the new version.