Repository navigation
Dissolve complexity_linearity_audit_project.rs (gunbc#5364 landed) - #6211
Conversation
…oject dissolution. #5364's decl_facts corpus accessor is live but v2 .dag lacks expr_data/MatchPattern introspection — wildcard-arm AST walk correctly stays in cli_run until that reader lands. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Addressed review items: composer-2.5 / claude-opus-4-7 (APPROVE): Verified against current HEAD ( Opus minor observation ( No code changes required for either review. — sent from smart-seal-361 |
…-projection, no host I/O - verified zero fs/net/process calls, same play as #6211/#6212) (#6217) * WIP: Dissolve rest_transport_facts.rs + wire_value_serialize.rs (pure fact-pr * WIP: Dissolve rest_transport_facts.rs + wire_value_serialize.rs (pure fact-pr * WIP: Dissolve rest_transport_facts.rs + wire_value_serialize.rs (pure fact-pr * WIP: Dissolve rest_transport_facts.rs + wire_value_serialize.rs (pure fact-pr * Merge origin/main into session/bold-hawk-669 — resolve HAND roster conflicts Keep dissolved rest_transport/wire_value fold in cli_run.rs; adopt main's import_closure_equivalence_tests; align hand_maintained_mods with 9-file roster. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Brian Searls <briansrls@gunb.ai> Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
Deletes
complexity_linearity_audit_project.rs(588 LOC,HAND_MAINTAINED_STAGE0_FILES) and completes the largest safe dissolution slice now that gunbc#5364's corpus accessor is live.Verified #5364 shape before dissolving:
v2.std.decl_index.decl_facts(pool_roots)and siblings (concept_decl_facts,fn_arrow_decl_facts_live) expose whole-corpusDeclFact { node: Node, … }rows — sufficient for enumeration and structuralfold_nodescans (as inno_dual_representation_test/scan.dag). They do not exposeexpr_data::ExprMatch,MatchPattern::Wildcard, or param type-head resolution in v2.dag. Full step-3 dissolution ("pure.dagNode-tree reader" for wildcard-arm detection) is therefore not writable yet; attempting it would fabricate-green over missing primitives.This PR lands:
complexity_linearity_audit_project.rs; remove fromHAND_MAINTAINED_STAGE0_FILESandregen_stage0patch hook.v2.lens.complexity_linearity_audit(.dagdata); retirecomplexity_linearity_migration_debt_roster()host builtin.complexity_linearity_wildcard_facts,complexity_linearity_syntactic_finding_count,complexity_linearity_syntactic_site_fired) intocli_run.rs— same additive seam pattern asinert_carrier_*/non_fold_residue_*post-HAND lens E: retire non_fold_residue_project.rs — lens .dag owns verdict #6042..dag(landed Ground v2.lens.complexity_linearity_audit's Rust wildcard-arm-over-closed-coproduct intrinsic into a .dag lens (same play as #6037/#6042) #6189); emit bin updated to callcli_run.Remaining gate (named): fn-body wildcard-arm AST walk stays in Rust until v2 gains
.dag-accessible match/pattern introspection overDeclFact.node.body.^resolved_graph_declared_*invalue_carrier.dagare still aspirational symbols; the live accessor isdecl_facts, which stops at opaqueNodewithout expr surface tags.Net: −588 hand-maintained LOC; +393 in generated-adjacent
cli_run.rshost seam (receipt: one fewerHAND_MAINTAINEDfile, regen roster shrinks).Test plan
cargo test -p v1-compiler --lib complexity_linearity— 4/4 green (synthetic closed-coproduct match + live-tree corpus walk + eval/testgen site raw-fact checks)cargo run --bin complexity_linearity_audit— exit 0, non-empty findings over witness rootscargo clippy -p v1-compiler -- -D warnings— cleansrc/v2/test/claim/complexity_linearity/syntactic_audit_witness_test.dag— unchanged imports; triage still pure.dagover host raw facts (CI batch-2)