Reuse validation facts when attributing skipped edits

This commit is contained in:
2026-11-17 04:34:31 +00:00
parent ee1ac8fc89
commit cc0a420722
10 changed files with 172 additions and 55 deletions

View File

@@ -26,8 +26,19 @@ type ProposalMetadata struct {
type EnrichedCorrectionProposal struct {
CorrectionProposal
ProposalMetadata
OriginalApplicability Applicability `json:"-"`
}
// Applicability records whether validation previewed a proposal against the
// original section and could apply it there.
type Applicability uint8
const (
ApplicabilityUnknown Applicability = iota
Applicable
Inapplicable
)
// Validate checks only basic structural integrity of the proposal.
// Semantic checks (staleness, span presence, replacement behavior) are handled
// by proposal preview/application and validator execution.