Files
doge_cogs/CLAUDE.md
T
Ziad ArafatandClaude Opus 5.5 95d3b87610 Test the watch cog over real HTTP; test-container installs like Red; TDD rules
- 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>
2026-11-10 09:42:47 -07:00

525 B

doge_cogs: notes for AI agents

  • Work test first. Read TESTING.md before changing code or tests, and use the superpowers test-driven-development skill: 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 check before 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.