PROJECT.md - Piper Morgan Development

Repository Information

CRITICAL: Always use the correct repository URL:

Branch Discipline:

Vision

Piper Morgan is an intelligent PM assistant that transforms how product managers work with AI agents. By combining spatial intelligence, domain-driven design, and systematic orchestration, Piper becomes a true thought partner who learns and adapts to each PM’s unique style and needs.

We’re building this with a revolutionary approach: one human PM collaborating with AI agents as the entire development team. This isn’t just about building a product - it’s about discovering new methods for human-AI excellence.

Current State

📊 For current sprint/epic position and version, always see docs/briefing/BRIEFING-CURRENT-STATE.md

This document describes the project’s stable context (vision, architecture, methodology). Current state changes frequently - check BRIEFING-CURRENT-STATE.md for the latest.

We follow the Inchworm Protocol: complete each piece 100% before moving forward. No exceptions. The 75% Pattern (components abandoned before completion) is our primary anti-pattern to prevent.

Technical Foundation

Core Stack:

Key Patterns:

File Structure Reality:

main.py             # Primary backend application entry point
web/app.py          # FastAPI web framework (933 lines, refactor at 1000)
services/           # All business logic here
cli/commands/       # Direct command implementations
config/             # PIPER.md and user config

Development Methodology

Inchworm Protocol (ADR-035): Sequential completion. Each epic 100% done before next begins.

Excellence Flywheel (v2.0): see docs/internal/development/methodology-core/methodology-00-EXCELLENCE-FLYWHEEL.md for the canonical three-layer reformulation (Concept / Practice / Mnemonic). The Practice layer’s five practices: (1) Verify Before Building, (2) Test What Matters Not What’s Easy, (3) Coordinate Through Structure, (4) Track to Completion with Evidence, (5) Audit the Composition. The canonical doc is the source of truth.

Evidence-Based Progress: No “done” without proof. Terminal output, test results, working demos.

Core Systems

Note: For current operational status, see docs/briefing/BRIEFING-CURRENT-STATE.md

System Location Purpose
Intent Classification services/intent_service/ Universal entry point for all requests
Integrations services/integrations/ Slack, GitHub, Notion, Calendar, MCP, Spatial
Orchestration services/orchestration/ Workflow coordination
Learning services/learning/ Preference and pattern learning
Knowledge services/knowledge/ RAG system with embeddings

Learning Philosophy

Every problem discovered is a gift - we found it now rather than later. We value:

When something doesn’t work as expected, that’s exciting - we’ve learned something new about our system.

Resources and Navigation

Navigating Documentation: For complete documentation structure, see: docs/NAVIGATION.md

Key Documents:

Finding Things:

# Find implementation
grep -r "ClassName" . --include="*.py"

# Find patterns
cat docs/internal/architecture/current/patterns/ | grep -A 10 "Pattern Name"

# Check what exists
ls -la services/
ls -la web/

Standards to Maintain

  1. Domain Separation: Business logic never in controllers
  2. Config Separation: User config never in system code
  3. Spatial Intelligence: All plugins must implement
  4. Complete Work: No TODOs without issue numbers
  5. Evidence Required: No claims without proof

Success Indicators

You’re succeeding when:

Remember

“We do these things not because they are easy, but because we thought they would be easy!” 😉

The path is clearer today than it has ever been. We have strong aversion to leaving things unfinished. Every session moves us closer to excellence.


Welcome to the Piper Morgan project. Your contribution matters.

Document Maintenance: This document describes stable project context. For current state (version, sprint position, active issues), always check docs/briefing/BRIEFING-CURRENT-STATE.md.

Last Updated: March 14, 2026