Skip to content

Select frozen native throughput runners for diagnostic controls - #567

Merged
thomhurst merged 2 commits into
mainfrom
issue-565-throughput-controls
Nov 13, 2026
Merged

thomhurst merged 2 commits into
mainfrom
issue-565-throughput-controls

Conversation

@thomhurst

@thomhurst thomhurst commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

The frozen native BDN launcher can select only ConcurrentRoundTrip, preventing focused replay of the three throughput failures in Performance run 43376451021 (#565). Add explicit selectors for scoped DirectScopedDispatch, log ComposedRoundTrip and queue NativeRoundTrip, validating the original generated parameter and one-operation job. The concurrent default stays available.

Closes #566

Reuses the retained BenchmarkDotNet generated executable/Default job, native CLI runner identity, existing frozen-input verifier and frozen_scope_control.result timing parser. Preserves all native timing samples and outcomes; no parallel engine or gate decision. All diagnostic artifact consumers retain the newly shared parser dependency. Exposes the selector through the existing trusted workflow input.

Validation: 13 native launcher tests, 15 scope parser/launcher tests, 5 core crossover tests and 4 audit tests pass; diff check passes. Verified all three original executable inventories and selected runner IDs 6/16/12 against original generated source. Original unfavorable artifact remains retained independently at /Users/tom/git/Relayer-evidence/issue-565/original/ with read-back length/SHA-256 manifest original-retention-sha256.json (772 files, 228,576,077 bytes). No retained reports are committed.

This delivers a diagnostic prerequisite, not historical throughput attribution: #565 stays open and natively blocked by #566. After trusted-main delivery, run focused controls with performance_run=43376451021 and each new selector, compare each within its own bracket, retain all outcomes, and investigate image/runtime/process-order confounders. Reversed controlled ordering cannot invalidate historical failures. No Performance rerun or threshold change.

No docs impact: contributor diagnostic tooling only. Production per-message cost: unchanged, 0 B added. No production performance trade-off.

Validation archive for head 1e0ea0e6907d32b8ebd99bb2fa420da3d6eabc3f: /Users/tom/git/Relayer-evidence/pr-567/1e0ea0e6907d32b8ebd99bb2fa420da3d6eabc3f/. All 27 retained source/workflow/test-log files were length/SHA-256 compared to originals and independently read back against inventory.json; local retention lasts while this PR is open. Original historical run evidence stays independently under issue-565.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1b0419b5-6e40-4e21-8cfc-1e8156a42af2
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@thomhurst

Copy link
Copy Markdown
Owner Author

@codex review

@github-actions

Copy link
Copy Markdown

Reviewed the head of PR 567. Diagnostic tooling only, with no production per-message impact.

  • Selector logic: executable() filters on owner class, method and parameter assignment, and requires exactly one match. The new test covers both the opposite-parameter runner and the ambiguous-duplicate case.
  • Protocol record: protocol.json now carries the selected benchmark, case, parameter and operations per invoke. The one-operation timing path is tested without the eight-message denominator.
  • Concurrent default: the default case still runs the original GC parser and now adds the native timing samples as well.
  • Dependency: the new frozen_scope_control import is added to every workflow artifact list that ships frozen_bdn_control.py. The shared workflow input is a choice, and it is passed through an env var rather than interpolated into the shell command.
  • Repo rules: it reuses the existing native timing parser and verifier, adds no parallel engine, and the PR states "no docs impact" and 0 B production cost.

Non-blocking: the CASES parameter strings are matched against BDN-generated source text, so a BenchmarkDotNet upgrade could change them. That fails loudly with the "selected parameter" error, which is acceptable.

No actionable findings.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T06:52:34.843167Z 8af5315 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 1e0ea0e690

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

Fixed the failed native diagnostic launches in commit 8af531515f1105dd12e0c90392c5317acaf7fe44: the shared parser required ns/op, while run 43380026270 emitted valid us/op timing samples. Normalize native ns/us/µs/μs/ms/s values to nanoseconds, retaining every sample and the existing allocation calculation. Regression coverage exercises every supported unit. This reuses BenchmarkDotNet output and the existing shared parser; no production cost or docs impact.

Validation: all 58 frozen-control unit tests pass; diff check passes. Replayed parsing against all four original native logs from run 43380026270 successfully (14/15/27/31 retained samples). Original logs and error outcomes remain unchanged under /Users/tom/git/Relayer-evidence/pr-567/failures/. New source and test log archive: /Users/tom/git/Relayer-evidence/pr-567/8af531515f1105dd12e0c90392c5317acaf7fe44/, length/SHA-256 verified against originals. Earlier validation archive applies to the earlier head only. No Performance gate rerun or throughput attribution claim.

@codex review

@github-actions

Copy link
Copy Markdown

Review of #567 (head reviewed as checked out in pr-head/)

No actionable findings. This is contributor diagnostic tooling only, with no production per-message impact.

Checked:

  • CASES selection requires exactly one runner matching owner class, method and parameter assignment. The tests cover the opposite-parameter and duplicate-runner cases, so a wrong benchmark cannot be selected silently. Operations-per-invoke and GC-stat validation is per case.
  • The concurrent default keeps its previous behaviour. timing_result is applied first and result overlays the eight-operation keys. The one-operation cases correctly omit bytesPerMessage.
  • Unit normalization in frozen_scope_control.result is covered by a test for every unit.
  • Every workflow that bundles or runs frozen_bdn_control.py now also includes frozen_scope_control.py, so the new import dependency is retained. The benchmark_case input is a choice, so passing it through an env var to --case is not injectable.
  • No docs impact is reasonable here.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 8af531515f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

Promotion audit: Claude CLEAR and Codex completed without findings both identify current head 8af531515f1105dd12e0c90392c5317acaf7fe44; all review surfaces read, no review threads or outstanding findings. Rechecked both retained validation inventories by length and SHA-256 (30 files total), and compared all 25 archived source/workflow files with their original Git blobs at the measured heads. Current-head 58-test log remains retained under /Users/tom/git/Relayer-evidence/pr-567/8af531515f1105dd12e0c90392c5317acaf7fe44/; earlier evidence stays under its measured SHA. Logs remain inventory-verified; original disposable worktree copies are no longer present. No code changes or repeated tests in this unit.

@thomhurst
thomhurst marked this pull request as ready for review November 13, 2026 06:50
@thomhurst
thomhurst enabled auto-merge (squash) November 13, 2026 06:51
@thomhurst
thomhurst merged commit 3bf00b2 into main Nov 13, 2026
34 checks passed
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.

Select retained scoped dispatch and in-memory runners in the native BDN launcher

1 participant