Skip to content

lanes: three guards on lone-stream copy pricing - #4668

Merged
ashhart merged 4 commits into
mainfrom
lead/lanes-copy-pricing-guards
Nov 22, 2026
Merged

ashhart merged 4 commits into
mainfrom
lead/lanes-copy-pricing-guards

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Three small guards on the lone-stream copy pricing that #4661 brought back, from a review of that change. Each is its own commit with tests in zig/src/core/lanes/copy_edges_test.zig:

  • copy_rule.zig: an empty list of copy chances is refused by name before any state is allocated or indexed (today's only caller always passes one entry).
  • copy_rule.zig: a measured copy cost of zero, infinity or NaN keeps the offered unpriced width instead of dividing by it.
  • lone_copy.zig: enabled also requires max_copy > 0, so with copies off the pricing reads no clock, allocates nothing and emits no events.

No change to which rows are verified when the inputs are ordinary, and tokens are unchanged. Host tests: test-lone-copy-host (481 passed, 1 skipped, including the six new cases) and test-qwen35-hip-host (123 passed, 2 skipped).

@ashhart
ashhart merged commit df0f420 into main Nov 22, 2026
12 of 23 checks passed
@ashhart
ashhart deleted the lead/lanes-copy-pricing-guards branch November 22, 2026 21:09
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