Report correction repair operations and outcomes
This commit is contained in:
@@ -48,7 +48,7 @@ remain in opt-in debug files.
|
||||
An `errors` record with `scope: work_unit` identifies zero-based `stage_index`
|
||||
and `chunk_index`, optional `stage_id`, module key/instance, initial segment range, applied-correction
|
||||
count, and a `failures` sequence. Each failure identifies the operation
|
||||
(`proposal`, `validation`, or `validation_input`), optional validator and
|
||||
(`proposal`, `validation`, `validation_input`, or `correction_repair`), optional validator and
|
||||
zero-based batch index, safe reason/message, sorted proposal indices when
|
||||
known, and execution counts when available. Multiple failed batches in one
|
||||
work unit form one error record. `scope: run` instead records phase, safe reason
|
||||
@@ -62,7 +62,9 @@ may still be approved or rejected normally.
|
||||
Each recovery identifies its work unit, optional `stage_id`, and successful operation, with sorted
|
||||
`reasons`, a safe message, available execution counts, and sorted
|
||||
`filtered_proposals` details. One recovery can contain `output_repaired`,
|
||||
`service_recovered`, and `proposals_filtered` together. Filtering covers
|
||||
`service_recovered`, `correction_revised`, and `proposals_filtered` together.
|
||||
`correction_revised` means a repair yielded a fully validated revision; its
|
||||
application outcome is recorded in the Markdown report. Filtering covers
|
||||
defective response proposals; low confidence, protected-term rejection,
|
||||
ordinary editorial rejection, and an apply-time conflict caused by an earlier
|
||||
accepted correction are not filtering recoveries. Failed operations are errors,
|
||||
@@ -84,8 +86,12 @@ the one-based position and module, plus the operator ID when supplied. Completed
|
||||
counts. `—` means not started and `n*` means interrupted with n facts recorded.
|
||||
An empty stage or chunk set is identified as having no work units. Short reason breakdowns count
|
||||
records containing each reason; a recovery can have several reasons, so those
|
||||
counts need not sum to the recovery total. The report refers to both YAML
|
||||
files. It does not include transcript excerpts or correction lists.
|
||||
counts need not sum to the recovery total. When a repair was attempted, a
|
||||
Correction repair table lists its stage, chunk,
|
||||
original proposal index, semantic attempt count, and final outcome (`applied`,
|
||||
`approved_skipped`, `withdrawn`, `rejected`, `exhausted`, `unavailable`, or
|
||||
`interrupted`). The report refers to both YAML files. It does not include
|
||||
transcript excerpts or correction lists.
|
||||
|
||||
## Debug-Only Files
|
||||
|
||||
|
||||
@@ -276,6 +276,8 @@ validator responses remains [deferred](future.md#domain-aware-response-recovery)
|
||||
|
||||
## Stage 7 — Account for operations and publish compact ordinary outcomes
|
||||
|
||||
**Completed.**
|
||||
|
||||
1. Add `correction_repair` as an operation kind in
|
||||
`internal/framework/outcomes`. For each repair call retain its proposal
|
||||
identity, attempt number, operation counts, and safe terminal reason.
|
||||
|
||||
Reference in New Issue
Block a user