diag: add factual related borrow and task locations

This commit is contained in:
dev committed 2026-10-07 19:12:58 +03:00
1 parent dbd9763713
commit 8ee0f4c2bf
27 files changed
+659 -18

No files matched your search

+4 -2
View File
@@ -207,10 +207,12 @@ The reason field improves machine repairability on its own; the reporting follow
### C5 — Related locations
**Truth / existing coverage:** the second source location is missing despite SSA conflict identities. **Consistency:** factual locations are compatible; a suggested enclosing block is not automatically a proven fact about a valid repair. **Mission:** explicitness and repairability. **Payoff:** scope the first RFC to previous borrow origin and outstanding task/spawn locations, preserving primary location, stable codes and deterministic ordering through source/AIR mapping and modules. Test reborrows, call-returned borrows, regions, task loans and merged provenance. Defer block-enclosure analysis until its meaning, feasibility and soundness are specified. A diagnostic extension alone need not change ownership semantics.
**Truth / existing coverage:** at the review baseline, the second source location was missing despite SSA conflict identities. **Consistency:** factual locations are compatible; a suggested enclosing block is not automatically a proven fact about a valid repair. **Mission:** explicitness and repairability. **Payoff:** scope the first RFC to previous borrow origin and outstanding task/spawn locations, preserving primary location, stable codes and deterministic ordering through source/AIR mapping and modules. Test reborrows, call-returned borrows, regions, task loans and merged provenance. Defer block-enclosure analysis until its meaning, feasibility and soundness are specified. A diagnostic extension alone need not change ownership semantics.
The public native smoke reports six E2101 occurrences in AIR command output; P5-0 reports two in a strong agent's source run, repaired in one cycle. These support the relevance of borrow feedback, not a measured economic benefit of related positions. Review supports RFC 0037's bounded scope and the need to carry the original spawn through cancelled-handle transitions. Source variable names may help later; they remain outside scope rather than being inferred from SSA names.
Subsequent language work prepares RFC 0037's implementation and spec integration together under [DD-018](decisions.md#dd-018--factual-related-positions-without-choosing-a-repair)/P6-7. Each identified covered conflict receives one factual record; primary selection and deduplication remain unchanged, and cancelled-join handles retain spawn provenance. Related source mapping never guesses a position. The implementation/tests and measured bundle growth are recorded in the plan; they supply no new empirical repair-cost result. Formal RFC status remains Proposed for owner adoption. This follow-up is authorized language work, not implementation inferred from this assessment.
### C6 — Integer contracts
**Truth / existing coverage:** declaration support remains pending; guard/assert are existing alternatives for local checks. **Consistency:** no unproved predicate may silently gain an unspecified runtime meaning. Define mathematical versus fixed-width arithmetic/overflow, evaluation timing, old-state capture, supported expressions, traps, effect requirements, interprocedural checking and behavior under concurrency/resource obligations. Distinguish decidable proof from executable runtime checking; not every possible contract is executable. Review AIR format-0 extension rules and register any new feature. **Mission:** verifier strength. **Payoff:** high and unknown, including solver/TCB and source/AIR bundle growth. A focused P6-6 RFC should compare existing primitives before recommending a language extension or priority.
@@ -249,6 +251,6 @@ Recommended sequence, subject to the existing owner plan:
The original review identifies a real growth/measurement risk and a concrete diagnostic repair gap. Its strongest immediate contributions are better evidence accounting and related source locations; it does not establish a current floating-point determinism bug, missing diagnostic statistics, or a need for new behavioral abstractions.
Following owner discussion, the bounded C5 and C1 proposals are written as [RFC 0037](../rfcs/0037-borrow-diagnostic-related-locations.md) and [RFC 0038](../rfcs/0038-bounded-diagnostic-edits.md), both **Proposed**, with no implementation or acceptance implied. The three requested documentation clarifications are complete. Generated bundle measurements after the Quick Reference sentence: cl100k Quick 8,688, other source 64,160, full source 72,848; o200k 8,723 / 64,359 / 73,082; Qwen2.5 8,954 / 65,733 / 74,687. AIR and std reference sizes are unchanged. C3/C4/C9 remain owner policy options.
Following owner discussion, the bounded C5 and C1 proposals were written as [RFC 0037](../rfcs/0037-borrow-diagnostic-related-locations.md) and [RFC 0038](../rfcs/0038-bounded-diagnostic-edits.md), both **Proposed**, with no implementation or acceptance implied at drafting. The three requested documentation clarifications are complete. Generated bundle measurements after the Quick Reference sentence: cl100k Quick 8,688, other source 64,160, full source 72,848; o200k 8,723 / 64,359 / 73,082; Qwen2.5 8,954 / 65,733 / 74,687. AIR and std reference sizes were unchanged by those clarifications. Subsequent schema/reporting and related-position increments are recorded above. C3/C4/C9 remain owner policy options.
The subsequent RFC review supports 0037 and recommends deferring 0038 as described above; formal adoption remains the owner's decision. The reviewed drafts had 2,010 and 2,381 words respectively (`wc -w`), disproportionate to the small diagnostic extension. At spec integration, express the schema and code-to-role/eligibility mapping as a few table rows plus indispensable invariants; keep rationale, alternatives and test matrices in RFCs/tests and remeasure bundle growth. Compactness must still preserve source-map fallback, deterministic ordering and task-spawn provenance. The evidence/workflow qualification added to 0038 is outside the bundles and is not itself language growth.