{{define "partial_relationship.html"}} {{$r := .R}}

{{if $r.SourceTitle}}{{$r.SourceTitle}}{{else}}(item){{end}} {{relTypeLabel $r.Rel.Type}} {{if $r.TargetTitle}}{{$r.TargetTitle}}{{else}}(item){{end}}

Strength {{score2 $r.Rel.Score}} ({{strengthLabel $r.Rel.Score}}) {{provenanceLabel $r.Rel.Provenance}} {{$r.Rel.ReviewStatus}} {{$r.Rel.ScoreVersion}}

{{if $r.Rel.Inferred}}

Proposed by analysis. This is a suggestion, not an established fact, until someone confirms it.

{{end}} {{if $r.Rel.Evidence.SourceExcerpt}}
From the first item{{$r.Rel.Evidence.SourceExcerpt}}
{{if $r.Rel.Evidence.TargetExcerpt}}
From the second item{{$r.Rel.Evidence.TargetExcerpt}}
{{end}}
{{end}}
Evidence — how this strength was calculated {{range $r.Rel.Evidence.Signals}} {{end}}
Signals contributing to the relationship strength
SignalEvidence StrengthWeightContribution
{{.Type}} {{.Value}}{{if .Detail}}
{{.Detail}}{{end}}
{{score2 .Strength}} {{score2 .Weight}} {{score2 .Contribution}}
Total (capped at 1.00) {{score2 $r.Rel.Score}}
{{if $r.Rel.Evidence.SharedEntities}}

Shared entities: {{range $r.Rel.Evidence.SharedEntities}}{{.}}{{end}}

{{end}} {{if $r.Rel.Evidence.ModelRationale}}

Model opinion

A language model{{if $r.Rel.Evidence.ModelVersion}} ({{$r.Rel.Evidence.ModelVersion}}){{end}} described the connection as follows. This is one signal among those above, not the score itself, and it is not a verified fact.

{{$r.Rel.Evidence.ModelRationale}}
{{end}} {{if $r.Rel.ReviewHistory}}

Decision history

History is append-only. Rejecting a relationship never deletes the original proposal or its evidence.

{{end}}
{{end}}