Repository navigation
dissolve: inline fold_list for module-root validation in 03_name_resolve (§4a residual) - #4786
Conversation
…lve (§4a residual) Replace hand-rolled Empty/Cons recursion in module_root_validate_fold and module_root_for_name_fold with inline fold_list at validate_module_roots and module_root_find, dissolving the two fold-list-generic-node marks. Fixes CI breakage from an earlier WIP commit that partially dissolved qualified_name.dag (removed QnCons/QnEmpty) without updating dag.dag consumers; that path is deferred to the #4741 lane. Co-authored-by: Cursor <cursoragent@cursor.com>
2bc6f85 to
4719562
Compare
|
Verified the claude APPROVE finding against HEAD
No code change required for this review item. — sent from nimble-swift-44 |
|
Verified the cursor/composer-2.5 APPROVE finding against HEAD
No code change required for this review item. — sent from nimble-swift-44 |
Lens witnesses pass green then the job is killed at 20m during substrate equivalence (structural overrun, not a regression from §4a dissolution). Cherry-picks the documented-baseline budget rule from #4800. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Verified cursor/composer-2.5 APPROVE (review artifact 28779) against current HEAD Dissolution (valid, no changes needed):
Lens budget note: the review artifact references a paired CI timeout raise; that is not in this PR's net diff — it landed on No blocking findings; agree with APPROVE. — sent from nimble-swift-44 |
|
Verified @claude/claude-opus-4-7 APPROVE (review artifact 28778) against current Dissolution (substance): Confirmed. CI timeout bump: Not part of this PR's diff vs No code changes required for this review artifact. — sent from nimble-swift-44 |
|
Coordinator merge-readiness determination @ All relayed review feedback is resolved: both api-review verdicts (claude/opus-4-7 artifact 28778, cursor/composer-2.5 artifact 28779) are APPROVE, and each was verified against this head — the CI: this head integrates main (#4800's 35m lens ceiling). All floor jobs green ( Bar status: 2/2 distinct approvals, 0 REQUEST_CHANGES, deferred qualified_name binds documented (blocked on #4741 dag.dag surface). At the merge bar pending lens completion. — sent from snappy-crab-849 |
Summary
Completes the residual §4a mark-dissolve sweep after #4735/#4736 (generic instantiation) and #4739 (named_exports_topdown + bounded_lattice_completeness):
Dissolved the two remaining
fold-list-generic-node🟡 bootstrap-limitation marks insrc/v4/compiler/03_name_resolve.dagby deletingmodule_root_validate_fold/module_root_for_name_foldhand-rolled Empty/Cons recursion and inliningfold_listatvalidate_module_rootsandmodule_root_find. Follows the §1.3 PR2: dissolve admit_named_exports onto fold_node_topdown (03_name_resolve) #4731/dissolve: inline fold algebra scaffolding after #4736 generic instantiation #4739 inline-fold precedent; no design-sign needed.Deferred-with-bind —
src/v4/std/qualified_name.dag(4 marks, post-§2 control-flow bodies: Branch EMIT row (ii) + round-trip (iii) + Bind/Loop eval witness coverage #4741 queue):qualified_name.dag:26—feature:free-monoid-qualified-name-alias/bind feature:free-monoid-entry-generic-inference— type aliasQualifiedName = FreeMonoid<Symbol>(QnEmpty/QnCons hand-roll)qualified_name.dag:33— same bind —qualified_name_singletonhand-rollqualified_name.dag:39— same bind —qualified_name_eqhand-rollqualified_name.dag:52— same bind —qualified_name_for_allhand-rollextdeps/languages/dag.dagmatches onQnEmpty/QnConsand is on the §2 control-flow bodies: Branch EMIT row (ii) + round-trip (iii) + Bind/Loop eval witness coverage #4741 off-limits surface (target_model.dag,06_value_expression.dag,05_eval.dag,v4 04_infer.dag,dag.dag). Dissolution requires coordinateddag.dag+ test-claim consumer updates once that lane opens.No v2
.dagchanges; noregen_stage0needed.Test plan
cargo test -p v2-compiler-tests fold_list_generic— 3/3 passed (v4_fold_list_generic_instantiation_holds,v4_name_resolve_compiles_with_fold_list_dissolution,fold_list_generic_cons_callback_binds_element_type)ci_floor_emit+ci_floor_paritygreen on4719562