A 7-Stage Signal-to-Decision Pipeline That Runs on the PM's Thinking, Not Around It

image.png

<aside> 👉🏻

Executive Summary

PM Intelligence Engine is a personal workflow execution engine that converts market signals into structured product decisions through a 7-stage AI pipeline with mandatory human gates. Unlike conversational AI tools that assist with individual tasks, it runs the full decision workflow — from signal normalization through multi-agent evaluation to routing decisions and executive summaries — while ensuring the PM's judgment, not the system's, determines what happens next. Each stage has typed input/output contracts, making every recommendation traceable to its evidence chain. The system is designed around a single principle: automation should handle orchestration, not judgment.

</aside>

🎯 Objective

Product managers spend most of their time on the work surrounding decisions — gathering signals, formatting documents, synthesizing evaluations — rather than on the decisions themselves. This project was built on a different premise: the structured orchestration of PM analysis can and should be automated, so the PM's time goes entirely to the judgment calls that automation can't make.

The goal was not to build a tool that assists with PM work. It was to build a system that runs the full decision workflow — from raw signal intake to routing decision and executive summary — with the PM's thinking encoded at every stage and the PM's judgment preserved at every gate. The system executes; the PM decides.

⚙️ High-Level Architecture

The engine is built around a simple three-phase arc: SENSE → DECIDE → LEARN.

It is intentionally narrow in scope: it runs stages, persists state, manages human gates, and exports artifacts. Signal harvesting, wiki sync, and operational scheduling are owned by the separate Hermes operations plane, which interacts with the engine exclusively via its HTTP API. This boundary is enforced as a design principle — direct database mutation or file-based approval by external systems is prohibited.

Layer Responsibility
Public API Surface POST /signals, POST /runs/start, GET /runs, gate action routes
Workflow Engine S1–S7 stage execution, gate state machine, SQLite persistence
Export run_finalizer — single exit point on terminal state; writes completed-run artifacts to the pm-intelligence-engine archive
Notifications Hermes (ops plane) — Gate 1/2/3 notifications via Discord/Telegram; engine FanoutNotifier for local/development use only

External systems — pm-decision-context (reasoning contract loaded at every LLM call) and Hermes (signal harvesting, wiki sync, scheduling) — interact only through the published API contract. The engine never reaches outward.

📋 The 7-Stage Pipeline

Each signal runs through a sequential pipeline with typed input/output contracts at every boundary. The choice to use stage functions rather than conversational agents was deliberate: each stage has a strict Pydantic model in, Pydantic model out signature. This makes every stage testable in isolation, every output traceable, and every revision request precise.

Stage Name LLM Description
S1 Signal No Normalize raw input into a structured, factual signal record
S2 Insight Yes Extract "what changed" and connect it to a strategy pillar
S3 Opportunity Yes Frame a falsifiable hypothesis with target user and assumed value
S4 Evaluation Yes × 4 Four independent persona agents evaluate in parallel
S5 Prioritization Partial Weighted composite score → routing decision (PRD / PoC / Kill)
S6A PoC Plan Yes Minimum experiment design for low-confidence opportunities
S6B PRD Yes Structured product requirements document for high-confidence opportunities
S7 Executive Summary Yes One-page narrative brief; archived in pm-intelligence-engine when a decide run completes; Hermes (ops plane) syncs completed decision runs to the wiki

For a decision workflow, rigidity is a feature: stages cannot produce unchecked narrative outputs that escape evaluation. Stages can be re-run individually if a revision is needed, and the eval harness verifies each stage's output against golden data from historical runs.

🧑‍⚖️ Human Gate Design

One gate. Not three.