frontend: collect independent source diagnostics without cascades

This commit is contained in:
dev committed 2026-10-09 16:01:18 +03:00
1 parent 2c6c7a3dcd
commit 4cda44823d
47 files changed
+697 -44

No files matched your search

+13 -1
View File
@@ -45,6 +45,18 @@ Var inference remains an optional language-policy question. No change is adopted
Nine registered kinds now provide contextual E7001/E7005 advice through `repair_candidates`; argument and binding borrows are separate. Fixed hints and alternative units are specified in spec 10/15 and the registry. Enum variant payloads, `&&`, unsupported block comments, incomplete types and other nearby spellings have explicit exclusion tests. No syntax alias, var inference, inferred slice end or automatic cast selection was added.
Validation: 1735/1735 conformance, including exact `.advice` JSON goldens for all kinds; 161 CLI/package advice checks; unit/registry tests, grammar, formatter, hosted smoke and format checks. Independent Claude review caught the enum-payload context and confirmed the static candidate lifetime correction. Multi-error collection and the public dev measurement remain pending.
Validation: 1735/1735 conformance, including exact `.advice` JSON goldens for all kinds; 161 CLI/package advice checks; unit/registry tests, grammar, formatter, hosted smoke and format checks. Independent Claude review caught the enum-payload context and confirmed the static candidate lifetime correction. At this increment's boundary, multi-error collection was still pending; its delivery follows below. The public dev measurement remains pending.
Bundle growth versus the pre-increment generated bundle (whose Quick Reference matched HEAD): Quick Reference `cl100k_base` 8955 → 9237 (+282, 3.15%), `o200k_base` 8991 → 9272, Qwen2.5 9233 → 9515. Full Source Reference Bundle excluding AIR: 77358 → 78582 (+1224, 1.58%), 77594 → 78815 and 79315 → 80563 respectively. The table and machine advice registry account for this explicit cost; the proposed reduction in repair rounds has not been measured.
## Second increment delivered (2026-10-09)
Spec 15 §10 now defines delimiter-bounded parser recovery, first-error phase stops, collection across validated function bodies, deterministic order and the fixed 32-diagnostic limit. Every failed item/body contributes only its first error. A broken header/import or uncertain delimiter boundary stops collection; no partial AST/AIR reaches another stage. The first failing imported file carries its recovered list. Bodies start with fresh state; failed constants/features/linearity accumulations are restored. Calls read validated signatures, so a bad callee does not create a caller error. Later instances of a failed template are skipped. E7900 still replaces other diagnostics and carries no advice.
Check/lower/run/report/explore and syntax-only fmt now carry the applicable JSON Lines lists. The 12 original mini-probes preserve acceptance and every prior first-diagnostic field; the three-function syntax probe grows from one to three records, and the two-cast probe from one to two. These are compiler observations, not measurements of model repair rounds.
Validation: full conformance 1760/1760; all 25 independent-error fixtures; 234 CLI/package collection checks, 163 advice checks and 5975 formatter checks over 1442 files (770 accepted AIR outputs remain identical). Unit tests compare the next function's complete output/constant tags with fresh lowering after failed borrow/scope/loop bodies, pin constant/feature rollback and no output on error, and test std failure collapse to E7900. Remaining CI Python hosted/oracle checks passed (38 commands, including examples under 200 schedule seeds); source construct coverage remains 121/121. Evaluation harness self-tests also passed (41 tests, one skipped), using scripted/mocked providers rather than model runs. The reason suite's stale void-parameter expectation now pins the earlier E7005, its registry scan selects only the reason section, and the defensive void/never move guard is unit-tested. Claude found no remaining implementation defects after review.
Combined bundle cost for both increments: Quick Reference `cl100k_base` 8955 → 9255 (+300, 3.35%), `o200k_base` 8991 → 9290 and Qwen2.5 9233 → 9534. Full Source Reference Bundle excluding AIR: 77358 → 79072 (+1714, 2.22%), 77594 → 79306 and 79315 → 81059. The second increment adds 18 Quick Reference and 490 full-source tokens in `cl100k_base`; the cost documents recovery boundaries and the JSON Lines contract instead of adding language syntax.
The implementation is ready for a new pinned public dev condition. Gobang is not installed/exposed in this workspace, so no model runs or claimed threefold improvement are recorded here. The evaluation owner should confirm that its tool wrapper retains every diagnostic JSON line and freeze the new compiler commit, docs hashes, model/settings and tool behavior before rerunning the same four public dev tasks. Compare checks/turns and first-code/full-code counts separately; retain the earlier condition unchanged. Ajieval's inspected single-object readers are for documentation/Gobang tool envelopes, not raw compiler stdout; that does not verify the external Gobang wrapper. P6-12 remains open for this measurement, and P6-6 remains open in full.