Skip to content

Investigate #537 with native release-channel scheduling intervention - #549

Merged
thomhurst merged 1 commit into
mainfrom
issue-537-owner-intervention
Nov 13, 2026
Merged

thomhurst merged 1 commit into
mainfrom
issue-537-owner-intervention

Conversation

@thomhurst

Copy link
Copy Markdown
Owner

The completed net10 stack capture for #537 identifies pending native release-channel reads and handler continuations among its sampled allocation families, but does not identify the historical allocation delta. Add an owner-specific scheduling intervention instead of repeating unchanged inclusive controls.

Both arms replace only the retained fixture's Release channel before setup, keeping capacity 8, Wait full mode and multiple readers/writers. Vary only native AllowSynchronousContinuations; keep the original BDN waiter and all frozen workload assemblies. A dedicated net10 workflow captures each arm's full ABBA with complete marker-delimited sampled stacks, raw traces, runtime/module records, executable inputs and failed outcomes. The wrapper passes the arm only to its child and reuses the existing launcher unchanged.

This changes scheduling and downstream execution in new instrumented fixed-count runs. It cannot establish historical ownership, exact object counts, or justify a production performance trade-off. Never subtract weighted samples or independent totals. Original unfavorable evidence remains retained. No production fix or attribution is claimed.

Validation: existing launcher 22 tests and new wrapper 3 tests pass; net10 probe and net11 reader Release builds pass with zero warnings/errors; actionlint and diff checks pass. Frozen Linux x64 execution is delegated to the hosted workflow because this host is macOS ARM64. Sources, binaries and logs are independently copied/read-back SHA-256 verified at /Users/tom/git/Relayer-evidence/issue-537/release-validation-4afb5060febb9577bb0320451f10b116d67aed16/inventory.json (33 files), outside removable worktrees while #537 remains open. This is local retention, not permanent public hosting.

Native/existing reuse: .NET 10.0.15 Channel.CreateBounded already passes the native scheduling option to BoundedChannel; ChannelOptions describes its scheduling/parallelism implications. Existing frozen verifier, original BDN waiter, pinned dotnet-trace and allocation reader are reused. No native capability is reimplemented. Production per-message cost unchanged, 0 B added. No docs impact (investigation tools only).

Related to #537; partial investigation progress, not a closing implementation. Next unit: independently retain/hash every hosted outcome, inspect coverage and module identities, then compare complete owner/stack families within each scheduling arm without historical or exact-count inference.

@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: bacc7c7d-544a-45f2-a2f8-6056e28a8c0a
  • 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

@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-13T04:05:25.608296Z 2ee2c28 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.

@github-actions

Copy link
Copy Markdown

Review of #549

I read the diff and checked how the wrapper hands the arm to the launcher. I found no blocking issues.

  • Child-only environment: frozen_concurrent_control.py builds its child environments from os.environ (dict(os.environ, ...) or the default inherit), so RELAYER_FROZEN_RELEASE_CHANNEL reaches the probe. The wrapper never mutates its own environment, and the test asserts this.
  • Probe guards: the probe fails fast on an unknown arm, on an arm combined with a mode other than --bdn-await, and on a missing or non-empty original channel. It also checks that the replacement bound to the fixture. That matches the fail-early convention.
  • Scope: this is investigation tooling only. It adds no production per-message cost, and the reflection is confined to the probe. Both channels are built with the native Channel.CreateBounded, so no native capability is reimplemented.
  • Wrapper behaviour: it refuses to overwrite existing metadata (open('x')) and keeps the arm metadata when the child fails. The tests cover both, plus rejection of an unknown arm.
  • Workflow: actions are pinned by SHA, permissions are read-only, and both arms run under if: always(). The workflow's failure status is propagated.

Two non-blocking notes:

  1. I could not read the retained EndToEndBenchmarks fixture, so I did not verify the _signals and <Release>k__BackingField reflection targets. The probe throws if they are wrong, so a mismatch will show up as a failed run.
  2. The pull_request path trigger runs the real capture against a hard-coded run ID on every edit to this workflow file. Consider workflow_dispatch only if that cost matters.

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 4afb5060fe

ℹ️ 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
thomhurst force-pushed the issue-537-owner-intervention branch from 4afb506 to 2ee2c28 Compare November 13, 2026 03:58
@thomhurst

Copy link
Copy Markdown
Owner Author

Rebased onto current origin/main and resolved the probe conflict in 2ee2c28, retaining native allocation profiling and release-channel scheduling metadata. No production path changes.

Validation: net11 and net10 Release probe builds pass with zero warnings/errors (net10 uses the workflow’s explicit target-framework restore). Existing launcher 24 tests and release wrapper 3 tests pass. Linux x64 frozen execution remains hosted validation. New sources, binaries and logs were copied and SHA-256 read-back verified against originals at /Users/tom/git/Relayer-evidence/pr-549/2ee2c2862a10f641410862db41f8f8c85da38afa/inventory.json. The earlier 33-file inventory cited in the PR body was independently rehashed successfully; those results describe the previous head.

Disposition of Claude’s non-blocking notes: reflection binding remains guarded by fail-fast checks and requires the retained Linux fixture for execution; no new claim of successful fixture execution is made. Keep the existing path trigger so workflow edits validate the capture; changing its trigger is optional and does not warrant another functional change.

@codex review

@github-actions

Copy link
Copy Markdown

Review of #549

I read the diff and checked it against the launcher it wraps (frozen_concurrent_control.py). I found nothing that should block merge.

Checked and sound

  • The wrapper passes RELAYER_FROZEN_RELEASE_CHANNEL only through subprocess.run(env=...). The existing launcher calls its probe and dotnet-trace with env=None unless an allocation profiler is set, so the child inherits the variable. The first test confirms the parent environment is not mutated.
  • --bdn-await, --trace-tool, --profile-reader and --keep-traces are all existing launcher flags.
  • The probe validates the variable (null, async or sync) and requires --bdn-await when it is set. Before replacing the channel it checks that the original is an empty Channel<byte>. It then checks that the replacement bound to the fixture.
  • Both arms use the same replacement channel and differ only in AllowSynchronousContinuations, as the PR describes.
  • The wrapper writes the intervention metadata before launching and refuses to overwrite it (open('x')). The failed-run test confirms the metadata survives a failure.
  • All of the new code is investigation tooling. The reflection in tools/FrozenConcurrentProbe/Program.cs is not on a production per-message path, so the zero-allocation and no-reflection rules do not apply. The PR states 0 B production cost and no docs impact, which fits.
  • Native reuse is explained: the PR uses the System.Threading.Channels option directly and reimplements nothing.
  • The workflow pins its actions by SHA and uses read-only permissions. It validates the run ID with a regex before using it.

Minor, non-blocking

  • test_rejects_unknown_arm_before_launch passes only ["control", "unknown"], so argparse would exit on the missing positionals even if the choices constraint were removed. Pass a complete argument list with the invalid arm so the test covers the arm check.
  • open('x') makes a rerun into an existing output path fail before launch. That seems intended for evidence retention. A one-line note in the docstring would help whoever hits it.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 2ee2c2862a

ℹ️ 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

Both required reviews approve current head 2ee2c28: Claude CLEAR (43362403016/1), Codex completed/no findings. REST reviews/inline comments and GraphQL threads are empty. Disposition of Claude’s current nonblocking notes: the invalid-arm test could be more specific, but runtime argparse choices still reject invalid arms; strengthening unchanged validation is optional. The exclusive-output behavior intentionally protects retained evidence; a docstring clarification is optional. Neither warrants another functional push under the review policy.

Rehashed all 20 archived validation/source/binary files against the recorded lengths/SHA-256 and compared archived sources directly with the reviewed commit. Inventory: /Users/tom/git/Relayer-evidence/pr-549/2ee2c2862a10f641410862db41f8f8c85da38afa/inventory.json. No tests rerun because code has not changed.

Hosted scheduling run 43362405505 succeeded. Independently retained/read-back SHA-256 verified all 919 files / 294,859,724 bytes and checked all three original frozen inventories. Inventory: /Users/tom/git/Relayer-evidence/issue-537/release-scheduling-43362405505-retention-sha256.json; all eight outcomes, every type/stack group and runtime/module event: release-scheduling-43362405505-analysis.json. This is local retention outside removable worktrees while #537 remains open, not permanent public hosting.

Each launch delivered 262,144 messages on .NET 10.0.15 x64 with original BDN waiter. Inclusive ABBA B/message: async 754.837646 / 753.565948 / 749.629089 / 753.938446; sync 789.598907 / 790.396149 / 790.469269 / 790.914703. Zero lost events throughout; sync candidate launch 3 has one sample without a stack, all other launches zero; no unnamed-frame samples. Relayer module paths match the respective frozen image with baseline PDB ef7c3a80-acfb-4f79-88df-e326e4a64741 and candidate d81853d2-0a0b-4ea1-8589-54ae944b6e02. These records do not prove loaded runtime/JIT bytes or historical identity.

All sampled families were inspected: DI scope/cache/handler resolution, JSON argument construction, handler pooled state-machine boxes/actions, native bounded-channel reads (message/byte/int), rare Object[] and background DynamicResolver.Finalize/DestroyScout. One sync candidate ArraySegment sample has no stack and remains unattributed. Sync arms contain no sampled blocked int reads and show larger sampled handler state-machine weights; these are scheduling-sensitive new executions, not exact counts or causal historical attribution. Candidate totals remain within or below their own baseline bracket. Do not subtract independent totals or sample weights. No demonstrated defect or authorized production trade-off is established; #537 stays open and all original unfavorable evidence remains intact.

The separate control run 43362405465 also completed successfully. Proceeding through the protected promotion/auto-merge wrapper; #549 remains partial investigation and does not close #537.

@thomhurst
thomhurst marked this pull request as ready for review November 13, 2026 04:04
@thomhurst
thomhurst enabled auto-merge (squash) November 13, 2026 04:04
@thomhurst
thomhurst merged commit 3624ee4 into main Nov 13, 2026
23 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.

1 participant