diag: add stable source reasons and diagnostic incidence reporting

This commit is contained in:
dev committed 2026-10-07 18:52:36 +03:00
1 parent 911982dd1c
commit dbd9763713
21 files changed
+571 -156

No files matched your search

+2 -2
View File
@@ -13,11 +13,11 @@ The published [native smoke](../evaluation/results/2026-10-05-native-smoke.md),
Reconsider the proposal only after the following evidence is available:
1. **Incidence with an explicit denominator.** Publish aggregate counts for an independently chosen `Aji/source` cohort: runs with at least one eligible E3101 or classified Copy-move E7006, divided by all source runs, failures included, with sample size and agent/toolchain strata. Count affected runs separately from repeated diagnostic occurrences. Report unknown E7006 reasons as unknown, not eligible or zero. Current `ajieval profile` counts codes per run but does not classify Copy-move reasons or guarantee a pre-acceptance cutoff; specify that cutoff and missing-data treatment before collecting a new cohort.
1. **Incidence with an explicit denominator.** Publish aggregate counts for an independently chosen `Aji/source` cohort: runs with at least one eligible E3101 or classified Copy-move E7006, divided by all source runs, failures included, with sample size and agent/toolchain strata. Count affected runs separately from repeated diagnostic occurrences. Report unknown E7006 reasons as unknown, not eligible or zero. `ajieval summary`, `profile` and `checkpoint` now classify structured code/reason counts (DD-017), retaining unknown reasons and log availability; they cover the entire recorded transcript, without a pre-acceptance cutoff. Specify that cutoff and missing-data treatment before collecting a new cohort.
2. **Material repair cost.** Show that the eligible cases cause location/transcription work, failed patches, retries or meaningful tool cost, and compare the proposed workflow against today's `suggested_effects` plus ordinary editing on independent public fixtures/tasks. Frequency alone is insufficient; a syntactically exact edit may cost more to apply than the existing repair.
3. **A usable application path.** Resolve the byte-offset workflow objection below and validate the chosen path with the actual editor/tool interface. Application must remain explicit, stale-input checks must hold, and edited source must be rechecked.
The Copy-move incidence branch has an independent instrumentation prerequisite: E7006 currently has no stable `reason` field, and the harness counts codes only. A separate diagnostic-schema task must specify and emit structured reasons distinguishing Copy moves from other E7006 forms; a reporting follow-up must count affected runs by code/reason without parsing `message`. These tasks are independently useful and do not require implementing this RFC. Their owner routing and completion conditions are recorded in the [assessment](../design/review-2026-10-07-assessment.md). Missing reasons in old records remain unknown. E3101 incidence remains measurable by code without this prerequisite; neither future instrumentation nor existing counts justify relaxing the repair-cost/workflow conditions above.
The independent instrumentation prerequisite is implemented by DD-017/spec 15 §10: E7006 carries a stable `reason`, `move_copy` excludes borrowed and non-materializable operands, and ajieval counts occurrences and affected runs by code/reason without parsing `message`. These changes implement no edits or application workflow. The [assessment](../design/review-2026-10-07-assessment.md) records the baseline gap and subsequent follow-up. Missing reasons in old records remain unknown; no historical data is relabeled and no new incidence experiment is supplied. E3101 remains countable by code. This instrumentation does not satisfy the repair-cost/workflow conditions above or change this RFC's Proposed status and recommendation to defer.
No numeric N% or minimum sample size is justified by the current reports. If the owner chooses an incidence threshold and sample-size gate, record them before evaluating a new cohort rather than selecting them to match observed results. These conditions reopen design review; they do not automatically accept the RFC. Do not change frozen B1 instrumentation or inputs, inspect private held-out material, or use M/C to select or tune the eligible transformations. An authorized independent operator may publish aggregate metadata under the evaluation protocol.