diag: add factual related borrow and task locations
This commit is contained in:
1 parent
dbd9763713
commit
8ee0f4c2bf
27 files changed
+659
-18
No files matched your search
@@ -101,3 +101,9 @@ Compatibility: formerly accepted bare continuations in statement/tail position r
|
||||
Spec 15 §10 requires a registered reason on each E7006. Frontend rejection sites select an enum category explicitly; `move_copy` excludes borrowed and non-materializable operands. ajieval groups observed codes/reasons per run and reports unknown historical reasons separately, without reading message prose. Existing code counts remain compatible; missing logs are unavailable evidence. Counts describe observed command outputs, not the true frequency of all errors.
|
||||
|
||||
Reason: a shared code cannot establish whether Copy moves occur often enough to justify RFC 0038. Structured categories also let an agent choose the appropriate rule without classifying prose. This small diagnostic schema extension uses a decision record and a P6-7 plan increment; no new rejection, code, source/AIR syntax, verifier/runtime state or repair application is introduced. Existing locations, payloads, interpreter records, resource/borrow invariants and frozen evaluation inputs remain intact. Enum/registry and CLI/report tests cover serialization, generic/package propagation and historical uncertainty. Bundle growth is recorded in docs/agent/README.md. RFC 0038 remains Proposed with its existing recommendation to defer pending frequency and application-usability data.
|
||||
|
||||
## DD-018 — Factual related positions without choosing a repair
|
||||
|
||||
RFC 0037's implementation/spec integration is prepared under P6-7; formal RFC status remains Proposed for owner adoption. Spec 10 §2 and spec 15 §10 define one typed related record for each identified E2101/E2104 conflict and E4302 task. Definition lookup retains the selected conflict; loan metadata retains the creating spawn even when a cancelled join replaces its SSA handle. Source mapping is independent, and an absent mapping exposes AIR coordinates without a guessed source position. Primary selection, fields and duplicate suppression are unchanged. There is no enclosing-block inference, conflict enumeration or edit.
|
||||
|
||||
The invariant is unchanged acceptance, ownership/loan verification and deterministic interpreter behavior; provenance never participates in liveness or transfer decisions. AIR format 0, syntax, effects/capabilities and diagnostic codes are unchanged. Positive/rejected source/AIR fixtures, repeated cancelled joins, CLI/package mapping and typed serialization tests check the contract. Bundle growth is measured in docs/agent/README.md. This improves factual repair context; no measured repair-cost or MCC claim is made, and RFC 0038 stays deferred pending evidence.
|
||||
@@ -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.
|
||||
Reference in new issue
Block a user