| 1 | package agent |
| 2 | |
| 3 | import ( |
| 4 | "reasonix/internal/event" |
| 5 | "reasonix/internal/provider" |
| 6 | ) |
| 7 | |
| 8 | const HistoricalChecksNoticeCode = "historical_checks" |
| 9 | const HistoricalChecksNoticeText = "Historical checks were not completed. The old quality policy is retired; these records do not block current work. Use /continue-checks to check the work explicitly." |
| 10 | |
| 11 | // HistoricalChecks projects an old checkpoint without reviving its quality |
| 12 | // gate. Both history hosts and explicit recovery use this eligibility boundary. |
| 13 | func HistoricalChecks(recovery *provider.FinalReadinessRecovery) *event.FinalReadiness { |
| 14 | if recovery == nil || !recovery.Pending { |
| 15 | return nil |
| 16 | } |
| 17 | return &event.FinalReadiness{Attempts: 1, Missing: append([]string(nil), recovery.Missing...)} |
| 18 | } |
| 19 |