Document ACP capability masking modules and session knobs - #89
Conversation
Update the exec subsystem repository layout in `docs/developers-guide.md` to list `acp_helpers.rs` and the three ACP test modules (`protocol_acp_tests.rs`, `protocol_acp_bdd_tests.rs`, `protocol_acp_forwarding_tests.rs`), and refresh the `session.rs` entry to mention the `with_acp_initialize_rewrite_enabled` opt-in. Add `///` doc comments to the `rewrite_acp_initialize` field on `ExecSessionOptions` and `ProtocolSessionOptions`, and to the `with_stdin_forwarding_disabled` builder on `ProtocolSessionOptions`, so the new ACP seam is documented at the field and method level.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
This documentation-only change fills developer-documentation gaps introduced alongside the ACP capability-masking implementation in Changes
Validation
Notes: No execplan document was introduced. Work documents the ACP capability-masking seam (from WalkthroughSummarise the documentation-only updates across the exec subsystem: add ChangesACP Documentation and Repository Layout
Suggested labelsIssue Poem
🚥 Pre-merge checks | ✅ 17 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (17 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Add `///` doc comments to every previously undocumented item in `src/engine/connection/exec/protocol.rs`, `src/engine/connection/exec/session.rs`, and `src/engine/connection/exec/acp_helpers.rs` so that docstring coverage across the protocol-mode exec proxy and ACP first-frame helpers clears the 80% threshold. The new docs cover `ProtocolSessionOptions` and its `disable_stdin_forwarding` field, `ProtocolSessionOptions::new`, the `HeldOpenStdin` adapter, `ProtocolProxyIo::with_options`, the `run_protocol_session_async_with_options` entry point, and the `protocol_host_stdin`, `settle_stdin_forwarding_task`, `classify_stdin_forwarding_task_result`, `abort_stdin_forwarding_task`, `forward_host_stdin_to_exec_async`, `run_output_loop_async`, `handle_log_output_chunk`, and `write_output_chunk` helpers. In `session.rs` the `disable_protocol_stdin_forwarding` field and the `protocol_session_options` conversion gain matching docs. In `acp_helpers.rs` the `InitialFrameAction` and `ForwardUnchangedReason` enums, the `next_initial_frame_action`, `log_unmodified_forwarding`, `log_exceeded_maximum_size`, `log_eof_before_newline`, `forward_unmodified_initial_frame`, `forward_masked_initial_frame`, `log_masked_frame_forwarded`, `read_next_bounded_frame_chunk`, and `remove_masked_acp_capabilities` items are now documented. No logic, signatures, tests, or non-doc comments are changed.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
This comment was marked as resolved.
This comment was marked as resolved.
|
@coderabbitai Have the following failed checks now been resolved? If further work is required, please provide an AI agent prompt for the remaining work to be done to address these failures. Do not treat warnings as optional or aspirational. Where a change is out of scope for this PR, propose a GitHub issue unless one exists already. ❌ Failed checks (1 inconclusive)
|
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 9430
The checker evaluated either a stale snapshot or an incorrect repository path and reported an absence that does not reflect the actual branch state. No documentation work is outstanding for this PR. The unreliability of the automated "Developer Documentation" checker is a tooling concern that sits outside the scope of this PR. Shall I open a GitHub issue to track improving its environment resolution so it evaluates the correct branch state? |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainI need to inspect the current state of each file to verify which findings remain open. 🏁 Script executed: Length of output: 534 🏁 Script executed: Length of output: 7931
|
Add `///` doc comments to the previously undocumented private fields of `ProtocolProxyIo` and `HeldOpenStdin` in `src/engine/connection/exec/protocol.rs`, to the `poll_read` implementation on `impl AsyncRead for HeldOpenStdin`, and to the variants of `InitialFrameAction` and `ForwardUnchangedReason` in `src/engine/connection/exec/acp_helpers.rs`. The pre-existing `//` block comment on `HeldOpenStdin` is replaced by field-level `///` docs that capture the same intent — the duplex reader never yields bytes, and the writer guard keeps the reader from seeing EOF — so docstring coverage clears the threshold without losing the explanation. No logic, signatures, tests, or other comments are altered.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 2493
No further work is required on this PR. |
Summary
This branch documents the Agentic Control Protocol (ACP) capability-masking
seam introduced in #79. It updates the exec subsystem repository layout in
the developer's guide and adds field- and method-level
///doc commentsto the new ACP session knobs so that
cargo buildno longer surfacesmissing_docswarnings against them and so that future contributors candiscover the seam from the documented module map.
The change is documentation only; no production behaviour changes.
Review walkthrough
to see the refreshed exec-subsystem layout:
acp_helpers.rsis listedimmediately after
protocol.rs, thesession.rsentry now mentions thewith_acp_initialize_rewrite_enabledopt-in, and the three ACP testmodules (
protocol_acp_tests.rs,protocol_acp_bdd_tests.rs,protocol_acp_forwarding_tests.rs) are appended to thetests/subtree.
for the
///doc comment on therewrite_acp_initializefield ofExecSessionOptions, which describes the masking behaviour applied tothe first ACP
initializeframe.for the matching field-level doc on
ProtocolSessionOptions::rewrite_acp_initializeand the new
///doc comment on thewith_stdin_forwarding_disabledbuilder.
Validation
cargo build: clean (nomissing_docswarnings)cargo clippy --workspace --all-targets --all-features -- -D warnings:clean
cargo test --workspace: all suites pass (33 result lines, 0 failures)Notes
No execplan is associated with this branch; the work is a follow-up to the
ACP capability-masking implementation merged in #79 and addresses the
developer-documentation gaps noted against that change.