# Phase 20AS - Relationship Intelligence Review and Import

Phase 20AS adds Relationship Review as the next implemented Story Intelligence review stage after Assets.

## Implemented Behaviour

- Relationship candidates are built only from stored Scene Intelligence JSON.
- No manuscript reread occurs.
- No OpenAI calls are made.
- No Story Intelligence prompts are changed.
- Duplicate relationship detections are merged by resolved character pair, ignoring direction.
- Candidates are only actionable when both character names resolve to existing PlotDirector characters or aliases.
- Existing PlotDirector relationships are suggested when the same character pair already has a relationship.
- Authors can choose:
  - Create new relationship
  - Link existing relationship
  - Merge with another reviewed relationship
  - Ignore

## Imported Data

Approved relationship decisions can create or link:

- `CharacterRelationships`
- `RelationshipEvents`

Relationship events are created only from stored relationship signals or observations already present in the scene intelligence result. The importer does not invent relationship changes.

Imported relationship records and events are available to existing PlotDirector relationship surfaces, including character pages, relationship pages and relationship map views.

## Pipeline Position

The current implemented pipeline is now:

1. Review Scenes
2. Create Scenes
3. Review Characters
4. Create Characters
5. Review Locations
6. Create Locations
7. Review Assets
8. Create Assets
9. Review Relationships
10. Create Relationships
11. Complete

Future Story Intelligence stages remain:

- Knowledge
- Continuity
- Timeline Events
