@model CharacterWorkspaceOperation @{var r=Model.Record.Relationship;var destructive=Model.Action is "archive" or "event-remove";var linked=Model.Action.StartsWith("event-")&&Model.Event?.ProtectedSource==true;}

@(Model.Action=="archive"?"Remove relationship":Model.Action=="event-remove"?"Remove one relationship event":Model.Action=="definition"?"Edit relationship":"Edit one relationship event")

@r.CharacterAName @(r.IsReciprocal?"↔":"→") @r.CharacterBName · @r.RelationshipTypeName · @r.RelationshipCategoryName

@if(Model.Action=="archive"){

This removes the underlying relationship definition from active Family, Story and Timeline views. It archives one canonical record; it does not permanently delete it.

@Model.Record.EventCount dependent scene events will be retained, including their source/history. Restore the definition through Archived Items to make them active again.

@(r.IsReciprocal?"Both directions of this reciprocal flag belong to this one record and will be removed together.":"This is a directional record.")

@if(Model.Record.OtherPairRecords>0){

@Model.Record.OtherPairRecords separately recorded relationship(s) between these characters will remain. They are independent authored records; review them separately.

} }else if(Model.Action=="event-remove"){

This permanently removes only event #@Model.EventID at scene #@Model.Event?.Record.SceneID. The relationship definition and other events remain. Its derived state will be recalculated from the remaining records.

} @if(linked){

This event has manuscript evidence, review provenance or source dependencies. Direct modification/removal is blocked so that evidence is not orphaned. Use its source/review workflow.

Open source scene} else if(!destructive){

@(Model.Action=="definition"?"Category is derived from the selected canonical type. Book, narrative start/end and initial/scene-established status remain unchanged. Structural changes with recorded history or across categories require the full Relationships Editor.":"This changes one recorded development at its original scene, not the definition or other events.")

@if(Model.Action=="definition"){

@Model.Record.EventCount recorded event(s) will be retained. Type/direction changes are available here only without events and within the existing category. Independent definitions are unchanged.

Family-category reciprocity changes require the full editor to review family semantics.

Full Relationships Editor for this pair } @if(Model.Action!="definition"||r.IsInitialRelationship){} } @if(destructive&&!linked){}
@if(!linked){}Full Relationships Editor