Move location registry reconciliation into shared operations

This commit is contained in:
2026-11-25 15:59:25 +00:00
parent dc198cfc0c
commit b6a3638d70
7 changed files with 95 additions and 162 deletions

View File

@@ -26,6 +26,19 @@ type Finding struct {
Message string
}
// ReconciliationFallback describes the final omitted proposal groups without
// changing the family-owned scope or reason classification.
func ReconciliationFallback(scope, reason string, omitted int, details ...string) Finding {
message := "semantic reconciliation did not obtain ordinary acceptance; using supported fallback output"
if omitted > 0 {
message = fmt.Sprintf("%d proposal group(s) omitted from the final semantic proposal; all affected candidates were preserved separately", omitted)
}
if len(details) > 0 {
message = Aggregate(message, details)
}
return Finding{Scope: scope, ReasonCode: reason, Message: message}
}
// Corrections collects domain-owned model instructions and contextual record
// descriptions without coupling them to operator-facing diagnostics. Rules are
// emitted before affected records so the bounded result remains useful even