Phoenix × GESA
Every engagement is an episode. Every episode improves the pipeline.
How GESA Learns from Phoenix
GESA (Generative Episodic Simulated Annealing) is the optimization layer of the Cormorant stack. It turns decisions into learning by recording every action as an episode — context + action + outcome + time — and using episode history to improve future decisions.
Each Phoenix engagement is a GESA episode. The context, decisions, challenges, and outcomes are all recorded — making every subsequent engagement better informed.
The Episode Structure
A Phoenix engagement produces a rich episode for GESA:
Episode: Phoenix Engagement #N
├── Context
│ ├── Legacy stack: COBOL / DB2 / CICS
│ ├── Codebase size: 2.1M lines
│ ├── Business rules extracted: 847
│ ├── 6D diagnostic: D6 origin, 4/6 dimensions affected
│ └── Fetch score: 0.89 (Execute)
├── Action
│ ├── Pipeline duration: 4.5 months
│ ├── Team: 1 AI Lead + 2 domain experts
│ ├── Ambiguity flags resolved: 23
│ └── Target stack: Next.js + Go + PostgreSQL
├── Outcome
│ ├── Business rules certified: 841/847 (99.3%)
│ ├── Approved exceptions: 6
│ ├── Post-deployment Fetch score: 0.12 (Wait)
│ └── Client satisfaction: High
└── Lessons
├── COBOL date handling required extra extraction pass
├── Stakeholder availability was the primary bottleneck
└── Agent 3 flagged 23 ambiguities; 19 were genuineWhat GESA Learns
Over multiple Phoenix engagements, GESA accumulates knowledge about:
Extraction Patterns
- Which legacy stacks produce the cleanest business rule extractions
- Which patterns require extra extraction passes (e.g., date handling in COBOL, stored procedures in Oracle)
- How codebase size correlates with extraction time and accuracy
Ambiguity Prediction
- Which types of systems produce the most ambiguity flags
- Which ambiguities are typically genuine vs. false positives
- How stakeholder availability affects resolution time
Architecture Selection
- Which target stacks work best for which types of business logic
- How team composition affects build speed and quality
- Which sequencing strategies minimize integration risk
Validation Patterns
- Expected coverage rates for different system types
- Common gap exceptions and their justifications
- Regression test patterns that catch the most issues
Temperature and Phoenix
GESA's simulated annealing schedule — high temperature for exploration, low temperature for exploitation — maps to Phoenix engagement strategy:
| Temperature | Phoenix Behavior |
|---|---|
| High (early engagements) | Explore different extraction approaches, try varied architectures, experiment with agent configurations |
| Medium (growing experience) | Converge on proven patterns, adapt based on episode history, optimize for common scenarios |
| Low (mature pipeline) | Execute the best-known approach for each system type, minimal experimentation, maximum efficiency |
As the episode library grows, GESA's recommendations become increasingly precise — the pipeline gets faster, cheaper, and more reliable with each engagement.
The Adaptive Pipeline
Without GESA, every Phoenix engagement starts from scratch. With GESA, each engagement benefits from everything learned before:
Engagement 1: Explore → 4.5 months → Episode stored
Engagement 2: Adapt → 3.5 months → Episode stored
Engagement 3: Optimize → 2.5 months → Episode stored
...
Engagement N: Execute → Approaching optimal efficiencyThe Phoenix pipeline isn't static. It's a learning system that improves every time it transforms a legacy codebase.
"The Phoenix burns and rises. GESA remembers why."