# Contributor handoff — tokio-rs/tokio

> Canonical page: https://codevetter.com/unpack/tokio/agent-handoff

# Contributor handoff — tokio-rs/tokio

Scanned commit 2746c3ae26f8ac0af6023843a7f23d419c334efe (2026-10-02). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Begin with the owning manifest, public exports, implementation, and exact feature-gated test. Preserve scheduler, readiness, cancellation, and persistence contracts when making focused changes. Tests and CI were inspected, not executed, and the investigation is bounded rather than exhaustive. The suggested checks below are for a later authorized implementation session; this read-only investigation did not run repository code or modify files.
- Read workspace patches and owning feature tables first: local dependency substitution and empty default features materially affect which implementations and APIs are built. — [Cargo.toml#L18-L23](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/Cargo.toml#L18-L23) [tokio/Cargo.toml#L24-L42](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/Cargo.toml#L24-L42) [tokio-util/Cargo.toml#L19-L33](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio-util/Cargo.toml#L19-L33)
- For startup changes, read entry::parse_knobs, Builder::build, threaded construction, and Runtime::block_on together; generated wrappers and runtime context must remain coherent. — [tokio-macros/src/entry.rs#L468-L519](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio-macros/src/entry.rs#L468-L519) [tokio/src/runtime/builder.rs#L1146-L1151](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/builder.rs#L1146-L1151) [tokio/src/runtime/builder.rs#L2180-L2198](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/builder.rs#L2180-L2198) [tokio/src/runtime/runtime.rs#L376-L382](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/runtime.rs#L376-L382)
- For scheduler changes, preserve dual queue/task-list closure and draining order; use the existing Loom racy_shutdown scenario as a relevant lifecycle regression target. — [tokio/src/runtime/scheduler/multi_thread/worker.rs#L9-L57](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/scheduler/multi_thread/worker.rs#L9-L57) [tokio/src/runtime/tests/loom_multi_thread.rs#L80-L99](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/tests/loom_multi_thread.rs#L80-L99)
- For networking changes, preserve WouldBlock readiness clearing, accepted-stream readiness initialization, and from_std nonblocking/runtime requirements; tcp_echo is a focused integration target. — [tokio/src/runtime/io/registration.rs#L225-L244](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/runtime/io/registration.rs#L225-L244) [tokio/src/net/tcp/stream.rs#L171-L180](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/net/tcp/stream.rs#L171-L180) [tokio/src/net/tcp/stream.rs#L190-L199](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/net/tcp/stream.rs#L190-L199) [tokio/tests/tcp_echo.rs#L16-L51](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/tests/tcp_echo.rs#L16-L51)
- For filesystem changes, inspect both the blocking fallback and unstable Linux io-uring branch; retain the distinction between File::poll_write acknowledgement, flush, and sync_all. — [tokio/src/fs/write.rs#L26-L50](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/fs/write.rs#L26-L50) [tokio/src/fs/file.rs#L774-L796](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/fs/file.rs#L774-L796) [tokio/src/fs/file.rs#L1146-L1169](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/fs/file.rs#L1146-L1169) [tokio/src/fs/file.rs#L317-L322](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/src/fs/file.rs#L317-L322)
- In an authorized coding session, start with cargo test -p tokio --features full --test tcp_echo or --test fs_file as appropriate; inspect file cfg guards before selecting flags. — [tokio/tests/tcp_echo.rs#L3-L9](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/tests/tcp_echo.rs#L3-L9) [tokio/tests/fs_file.rs#L2-L14](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/tests/fs_file.rs#L2-L14) [docs/contributing/pull-requests.md#L188-L198](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/docs/contributing/pull-requests.md#L188-L198)
- Tests and CI were inspected, not executed: use the defined nextest/doctest split, trybuild harness, and bounded Loom jobs as verification plans rather than recorded passing results. — [.github/workflows/ci.yml#L119-L133](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/.github/workflows/ci.yml#L119-L133) [tests-build/tests/macros.rs#L1-L37](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tests-build/tests/macros.rs#L1-L37) [.github/workflows/loom.yml#L14-L17](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/.github/workflows/loom.yml#L14-L17)
- Follow the documented Rust 2021 rustfmt invocation rather than cargo fmt; preserve Rust 1.85 compatibility, public documentation, regression tests, and patch/minor versioning expectations. — [docs/contributing/pull-requests.md#L132-L143](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/docs/contributing/pull-requests.md#L132-L143) [docs/contributing/pull-requests.md#L178-L208](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/docs/contributing/pull-requests.md#L178-L208) [tokio/Cargo.toml#L9-L11](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/tokio/Cargo.toml#L9-L11) [CONTRIBUTING.md#L43-L54](https://github.com/tokio-rs/tokio/blob/2746c3ae26f8ac0af6023843a7f23d419c334efe/CONTRIBUTING.md#L43-L54)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
