Commit Graph

16 Commits

Author SHA1 Message Date
rob 304400cc85 fix: update visualizer to support @AI_Visualizer mentions
- Change MENTION_TOKEN to MENTION_REGEX supporting both @AI_visual and @AI_Visualizer
- Makes it case-insensitive and consistent with other agents (AI_Moderator, AI_Designer)
- Update agent name from AI_Visual to AI_Visualizer
- Update HTML markers from AUTO:VISUAL to AUTO:VISUALIZER
- Update tests to match new naming
- All tests passing
2025-11-04 22:32:57 -04:00
rob e6292fbad4 refactor: remove HTML markers from voting participant agents
- Remove HTML comment markers from AI_Moderator and AI_Designer
- These are voting participants, not background tools
- Should comment naturally like humans in discussions
- Occasional duplicate comments are acceptable and enrich discussion
- Background agents (Visualizer, Researcher) still keep markers
- Updated test to check for 'Name: AI_Moderator' instead of markers
- All 41 tests passing
2025-11-04 22:22:35 -04:00
rob 39a0c94160 debugging and tweeking 2025-11-04 20:14:26 -04:00
rob 2dbcbf1443 agent upgrade 2025-11-04 18:44:29 -04:00
rob e203323ac7 agents refactor 2025-11-04 17:45:11 -04:00
rob 3ec5fa67a5 updating 2025-11-04 13:33:39 -04:00
rob 5bfe3d3d9b test: add end-to-end stage promotion tests (specification tests)
Created comprehensive test suite for multi-stage discussion promotion:

**Tests Added (4 total):**
1. test_feature_to_design_promotion - Full promotion workflow
2. test_design_document_creation - Design doc generation
3. test_vote_threshold_not_met - Negative case validation
4. test_ai_votes_excluded_when_configured - Vote filtering

**Current Status:**
-  2 tests passing (negative cases: threshold not met, AI exclusion)
- ⏸️  1 test skipped (design doc creation - not fully implemented)
-  1 test failing (promotion logic needs pre-commit hook or direct automation call)

**Purpose:**
These tests serve as living specification for the expected behavior.
They document the complete promotion workflow and will pass once the
status update logic is fully integrated into the automation chain.

**Test Coverage:**
- Vote counting with human/AI filtering
- Promotion threshold validation
- Status transitions (OPEN → READY_FOR_DESIGN)
- Design discussion file generation
- Metadata header updates

Addresses PROGRESS.md Stage 3: "Add end-to-end design stage test"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-02 20:15:43 -04:00
rob 44cc12c0ab feat: share ai fallback with agents and add provider status 2025-11-02 00:21:10 -03:00
rob 01ead5754f fix: ensure codex fallback uses stdin 2025-11-01 23:19:09 -03:00
rob d6a88e483b fix: allow yaml header edits in append-only check 2025-11-01 23:05:27 -03:00
rob 0e83b6cf88 feat: parse codex exec json output for fallbacks 2025-11-01 17:28:57 -03:00
rob 57255a7e09 feat: load ai command chain from shared config 2025-11-01 14:37:57 -03:00
rob feb8580b3a feat: add ai fallback chain with no-change sentinel 2025-11-01 14:25:22 -03:00
rob 4176f51e7d fix: Add YAML syntax fix and mock AI script for testing
- Fix missing space after colon in features.ai-rules.yml
- Add tools/mock_ai.sh for testing automation without real AI
- Ensures installer has valid YAML templates

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 09:18:59 -03:00
rob 05002b766b test: Add comprehensive workflow tests and improve template tests
Testing improvements completing Week 1 consolidation:

1. Add tests/test_workflow.py (6 comprehensive tests)
   - test_extract_vote_value: Vote value extraction
   - test_parse_votes_single_participant_single_vote: Basic parsing
   - test_parse_votes_single_participant_multiple_votes: Latest vote wins
   - test_parse_votes_multiple_participants: Multi-participant tracking
   - test_parse_votes_malformed_lines: Error handling
   - test_parse_votes_mixed_content: Real-world scenarios

2. Improve tests/test_template_meta.py
   - Replace stub tests with real implementations
   - test_find_template_fields: Field extraction from templates
   - test_render_request_from_template: Template rendering
   - test_render_request_from_template_with_existing_meta: Preserve existing data

3. Add __init__.py files for test imports
   - assets/__init__.py: Make assets importable
   - automation/__init__.py: Make automation importable
   - Enables tests to import workflow.py and create_feature.py

4. Update pyproject.toml pytest configuration
   - Add ".", "assets" to pythonpath
   - Allows tests to import from automation/ and assets/

Test Results:
- All 11 tests passing
- Coverage: workflow vote parsing, template rendering, utils
- Foundation ready for Stage 2 development

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 16:20:42 -03:00
rob 4e7ad11b4c feat: Implement vote parsing orchestrator and testing infrastructure
Major implementation milestone - core automation is now functional:

1. Add automation/workflow.py (Phase 1 - Vote Parsing)
   - Parse VOTE: lines from discussion files
   - Track latest vote per participant
   - Print human-readable vote summaries
   - Non-blocking (always exits 0)
   - Proper error handling for missing files/git failures
   - 158 lines of production-quality code

2. Add testing infrastructure
   - Create tests/ directory with pytest configuration
   - Add test_utils.py with actual version reading test
   - Add test_template_meta.py (stubs for META system tests)
   - Add test_build.py (stub for build verification)
   - Configure pytest in pyproject.toml (pythonpath)
   - All 4 tests passing

3. Add AGENTS.md - Developer guidelines
   - Project structure and module organization
   - Build, test, and development commands
   - Coding style and naming conventions
   - Testing guidelines
   - Commit and PR guidelines

4. Update docs/DESIGN.md
   - Document workflow.py implementation
   - Update automation status from "planned" to "implemented"
   - Clarify Phase 1 vs future phases

5. Code cleanup - Remove empty stub modules
   - Delete src/cascadingdev/feature_seed.py
   - Delete src/cascadingdev/fs_scaffold.py
   - Delete src/cascadingdev/ramble_integration.py
   - Delete src/cascadingdev/rules_seed.py

Impact:
- Users can now see vote counts in their commits
- Testing foundation enables safe refactoring
- Code is cleaner with only working modules
- Week 1 implementation goals complete

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 14:25:53 -03:00