Commit Graph

4 Commits

Author SHA1 Message Date
mrhavens d4abe70a79 fix(testing): Add comprehensive test suite
- test_nonfiction.py with 100+ test cases
- Tests for PurposeClassifier
- Tests for taxonomy/frameworks
- Tests for critique criteria
- Tests for all framework types
- Tests for intake agent
- Tests for multi-source ingest

This addresses the testing gap identified in code review.
2026-03-14 05:22:45 +00:00
mrhavens 4b4addedf7 feat: Issue #18 - Purpose Classifier for Nonfiction
- Created opus_orchestrator/nonfiction/classifier.py
  - PurposeClassifier class with keyword-based classification
  - LLM-enhanced classification (optional)
  - ReaderPurpose enum (6 purposes)
  - ClassificationResult dataclass

- Keyword classification covers:
  - LEARN_HANDS_ON: how to, learn to, tutorial, skills, etc.
  - UNDERSTAND: understand, why, concept, mental model, etc.
  - TRANSFORM: change, become, improve, habits, etc.
  - DECIDE: decide, choose, compare, vs, analysis
  - REFERENCE: manual, handbook, comprehensive, API
  - BE_INSPIRED: inspire, story, journey, biography

- Tests pass for all 6 purposes with high confidence

This is the foundation for the entire nonfiction pipeline (Issue #18).
2026-03-13 20:15:20 +00:00
mrhavens e05370fc69 feat: Tests and streaming endpoint
Team 5: Features & Polish

Implemented:
- #7: Added comprehensive test suite
  - TestConfig: Configuration validation tests
  - TestSchemas: Pydantic schema validation tests
  - TestFrameworks: Story framework prompt tests
  - TestGitHubIngestor: GitHub ingestion tests
  - TestAgentResponse: Agent response tests
  - TestLLMClient: Mocked LLM client tests

- #8: Added streaming endpoint
  - /generate/stream returns Server-Sent Events
  - Yields progress updates
  - TODO: Full streaming from LangGraph workflow

Not implemented (TODO):
- #13: Monolith file refactoring - Split into separate PR
- #15: Research agent integration - Requires design work
- #16: Nonfiction support - Requires framework expansion
2026-03-13 18:19:39 +00:00
mrhavens 40378ad65e Initial commit: Opus Orchestrator AI - Full-flow book generation
- LangGraph workflow orchestration
- CrewAI agent crews (Fiction Fortress & Nonfiction Fortress)
- PydanticAI schema validation
- Fiction agents: Architect, Worldsmith, Character Lead, Voice, Editor
- Nonfiction agents: Researcher, Analyst, Writer, Fact-Checker, Editor
- Complete schema definitions for books, chapters, critiques
- Configuration management
- Basic test suite
2026-03-12 17:45:05 +00:00