Skip to content

refactor(core): streamline the correspondence engine loop#114

Merged
jcushman merged 2 commits into
mainfrom
refactor-core-engine-loop
Jun 29, 2026
Merged

refactor(core): streamline the correspondence engine loop#114
jcushman merged 2 commits into
mainfrom
refactor-core-engine-loop

Conversation

@jcushman

Copy link
Copy Markdown
Collaborator

Maintainability refactor of binoc-core's correspondence driver — no behavior change.

  • Extract the edit-list build/compact phases and a record_fire helper out of the main loop.
  • Name the parse-memoization keys and centralize LinkCtx construction.

Touches only binoc-core/src/correspondence/driver.rs. just check and the full just test suite pass.

(Auto generated pull request)

jcushman added 2 commits June 16, 2026 16:51
…e helper

Split run_inner's two large post-loop blocks into build_edit_lists and
compact_edit_lists, and collapse the repeated fire-counter/FireEvent
bookkeeping into RunStats::record_fire. Pure mechanical extraction;
behavior unchanged (core + vector suites green).
Replace the positional (u8, u32, ArtifactFormat[, String]) parse/decline
memoization tuples with named ParseClaim/Decline structs (+ side_code and
ParseClaim::declined_by helpers), and collapse the three duplicated
LinkCtx constructions into a single link_ctx() helper. Behavior unchanged
(core + vector suites green; clippy clean).
@jcushman jcushman merged commit ff06813 into main Jun 29, 2026
10 checks passed
@jcushman jcushman deleted the refactor-core-engine-loop branch June 29, 2026 17:06
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