Skip to content

Scope-a: share resolve in CI sweep (claim_executor) - #5141

Closed
gunbai-bot[bot] wants to merge 5 commits into
mainfrom
session/silent-crane-16
Closed

gunbai-bot[bot] wants to merge 5 commits into
mainfrom
session/silent-crane-16

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

claim_executor now builds one MultiEntryIndex at startup and reuses it for the entire CI floor walk: plan eval, per-gate SingleClaim witnesses, and the DiscoveryBatch corpus. This matches claim_batch's resolve-once orchestration and keeps parse/typed-module caches warm across all phases.

cli_run gains discovery_corpus_rows, run_discovery_rows_resolved, and run_discovery_corpus_with_index so discovery can plug into a caller-owned index.

Within-batch parallelism is dropped: MultiEntryIndex is !Send (Rc/RefCell), so runnables execute sequentially on the main thread. Batch ordering remains executor-driven.

Test plan

  • cargo build -p v1-compiler --bin claim_executor --bin claim_batch
  • cargo test -p v1-compiler-tests resolve_typed_cache_equivalence — pass
  • cargo test -p v1-compiler discovery_exclude — pass
  • claim_executor --source-root dsl --source-root src/v2 --plan-entry src/v2/workflow/batch_runner.dag --plan-function bre_claim_batches — pass (2 batches, 3 witnesses)

briansrls and others added 3 commits June 18, 2026 02:49
Build the module index once for plan eval, gate witnesses, and the
discovery corpus so parse/typed-module caches stay warm — matching
claim_batch's resolve-once orchestration. Within-batch parallelism is
dropped because MultiEntryIndex is !Send (Rc/RefCell).

Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot
gunbai-bot Bot marked this pull request as ready for review June 18, 2026 03:00
briansrls and others added 2 commits June 18, 2026 03:23
Fold child/param subtree hashes (atom_identity_hash + hash_combine bag)
instead of child names so distinct synthetic scaffold nodes no longer
silently merge at the dedup check. Pairs with :0..0 synthetic keying by
fingerprint in v1_compiler_dag_collect.rs.

Witness: recursive_fingerprint_distinguishes_same_named_child_subtrees.
Verified: gunbc compile --target dag over dsl+src/v2 → 0 diagnostics.
Co-authored-by: Cursor <cursoragent@cursor.com>
@gunbai-bot

gunbai-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by scope change: scope-a (claim_executor within-run sharing) abandoned per merry-owl-830; dag_collect recursive-fingerprint fix continues on this branch under new work item.

@gunbai-bot gunbai-bot Bot closed this Jun 18, 2026
@gunbai-bot

gunbai-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Review feedback addressed (cursor/composer-2.5, non-blocking): Valid finding — run_walk had duplicate doc comments; the stale "claims within a batch in parallel" block was a merge artifact above the correct sequential/shared-index text. Removed in f0c3899de5.

Note: this PR is closed (scope-a superseded per merry-owl-830; active work is dag_collect recursive-fingerprint on the same branch). Approvals on 59daf0c remain noted; no merge intended on #5141.

— sent from silent-crane-16

@gunbai-bot

gunbai-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Review feedback addressed (claude-opus-4-7, non-blocking): Valid — run_discovery_corpus_with_index had no in-tree caller because claim_executor inlined discovery_corpus_rows + run_discovery_rows_resolved. Fixed in latest commit: run_discovery_batch_node now calls run_discovery_corpus_with_index directly.

— sent from silent-crane-16

@gunbai-bot

gunbai-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

Valid — scope-a (claim_executor within-run MultiEntryIndex sharing) is abandoned per merry-owl-830. #5141 was already closed for that pivot.

Follow-up on #5144 (dag_collect-only): pushed f07dd7d51c restoring claim_executor.rs and cli_run.rs to main. Branch diff is now only v1_compiler_dag_collect.rs + v1_compiler_dag_collect_support.rs (recursive fingerprint, :0..0: synthetic keying, discriminating witness). Re-verified: whole-tree --target dag → 0 diagnostics; fixed-point claim_batch 5/5 PASS.

— sent from silent-crane-16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant