nacelle-review
Skill6 starsChanged 15 days agoMITView on GitHub
Review Nacelle Rust and Cargo changes for decoder progress, response-byte attribution, buffer ownership, transport and Handler contracts, cancellation, backpressure, TLS separation, features, and behavioral validation.
In this repository5 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- docs-reviewSkill
- planningSkill
- pr-descriptionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 10 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this domain workflow with the general review rules.
- Distinctive: line 13
Read the repository instructions and Rust instructions.
- Very specific: line 25
Keep reusable byte/message codecs and reader/writer buffers in nacelle-codec.
- Very specific: line 26
Keep transport-neutral handlers, lifecycle, limits, telemetry, and TLS primitives in nacelle-core.
- Very specific: line 28
Keep TCP/Unix policy in nacelle-tcp, HTTP policy in nacelle-http, provider implementations in their TLS crates, and convenience re-exports …
- Very specific: line 30
Keep the reference protocol in the unpublished examples/nacelle-reference-protocol package, outside the published library API.
- Distinctive: line 42
Verify size limits reject input before unbounded growth, and that reader and writer adapters preserve bounded buffering and backpressure.
- Distinctive: line 47
Check encoding and partial writes for dropped, duplicated, reordered, or incorrectly flushed data.
- Very specific: line 49
Treat Nacelle's pending-frame queue and buffering inside AsyncWrite independently.
- Distinctive: line 57
Check silent completions, protocol error responses, and completion callbacks separately.
- Distinctive: line 65
Verify task, queue, connection, and buffer bounds.
- Very specific: line 67
Check blocking operations, lock scope across .await, task ownership, Send/Sync requirements, and cleanup when a future is dropped.
- Very specific: line 88
Read manifests and the feature matrix.
- Distinctive: line 93
Verify changed feature-gated paths under the smallest relevant feature set and the supported provider combinations.
- Distinctive: line 98
Keep peer-controlled data out of metric labels.
- Very specific: line 112
Start with focused tests for the owning crate.
- Distinctive: line 130
Use this matrix as the behavioral part of the general review evidence ledger.
- Very specific: line 138
Use the Rust instructions for formatting, lint, and test gates.
- Distinctive: line 143
Verify corresponding API, feature, configuration, security, and performance documentation updates.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reviewing Nacelle Rust and Runtime Changes
Use this domain workflow with the general review rules. Review the affected contracts; do not require every check below for unrelated changes.
Preparation
Read the repository instructions and Rust instructions. For the affected area, consult the architecture guide, owning crate, callers, tests, manifests, and public reference documentation. Apply the security and performance guidance when relevant.
Review Procedure
1. Check Ownership and Compatibility
- Keep reusable byte/message codecs and reader/writer buffers in
nacelle-codec. Keep transport-neutral handlers, lifecycle, limits, telemetry, and TLS primitives innacelle-core. - Keep TCP/Unix policy in
nacelle-tcp, HTTP policy innacelle-http, provider implementations in their TLS crates, and convenience re-exports innacelle. - Keep the reference protocol in the unpublished
examples/nacelle-reference-protocolpackage, outside the published library API. - Trace public type, trait, error, configuration, default, feature, and wire changes through consumers and adapters. Confirm intended changes have compatibility documentation and focused coverage.
2. Check Decoding, Encoding, and Buffer Ownership
- Successful decoding must consume input; requesting more input must leave the cumulative buffer unchanged. Check partial input, multiple frames, malformed input, EOF, and oversized input where the change affects those paths.
- Verify size limits reject input before unbounded growth, and that reader and writer adapters preserve bounded buffering and backpressure.
- Preserve shared backing allocations and zero-copy behavior where promised. Trace slices and retained messages rather than assuming an extra clone or borrowed value is either necessary or safe.
- Check encoding and partial writes for dropped, duplicated, reordered, or incorrectly flushed data.
- Treat Nacelle's pending-frame queue and buffering inside
AsyncWriteindependently. An empty frame queue does not prove the underlying writer is flushed; account for both when tracing admission and streaming progress. - Distinguish encoded, buffered, socket-written, and flushed bytes, and track which response owns each count. A failed coalesced flush must not attribute earlier responses' bytes to the current request, or lose current-response bytes already written before that flush. Compare every affected success and error call site of delivery-accounting helpers.
- Check silent completions, protocol error responses, and completion callbacks separately. A request that generates no response must not acquire response bytes merely because its rejection or cleanup flushes an earlier response.
3. Check Async Lifecycle and Resource Bounds
- Trace handler errors, cancellation, deadlines, connection teardown, and graceful shutdown through the affected tasks.
- Verify task, queue, connection, and buffer bounds; ensure slow peers or handlers cannot bypass the intended backpressure.
- Check blocking operations, lock scope across
.await, task ownership,Send/Syncrequirements, and cleanup when a future is dropped. - At affected
.await,select!, andjoin!boundaries, identify which future can be dropped, what partial I/O progress it owns, and whether subsequent cleanup can retry that work. Verify cancellation cannot replay a written prefix or restart an indefinitely blocked flush. - Track connection, request, handler, and application leases through ownership transfers and every exit. Check their documented release boundaries when body pumping, handler completion, admission, and response delivery progress independently; do not assume one joined future's lifetime matches another's.
- For coupled admission, body-pump, handler, and delivery futures, record progress dependencies at concrete call sites in the evidence ledger: each bounded queue's producer and consumer, what each pending operation awaits, and which operation can cancel it. Check saturated queues and terminal failure paths. Failure reporting must reach the driver without awaiting capacity owned by work that the failure needs to cancel.
- Require deterministic coverage for changed timing behavior where practical; follow existing paused-time tests rather than adding sleep-based assumptions.
4. Check Features, TLS, and Diagnostics
- Read manifests and the feature matrix. Rustls serves TCP and HTTP; OpenSSL is
TCP-specific. Negotiated TLS metadata belongs in
nacelle-core. - Preserve mutual exclusion of Rustls and OpenSSL; do not use workspace
--all-featuresas a valid provider combination or letopensslimplicitly selectrustls. - Verify changed feature-gated paths under the smallest relevant feature set and the supported provider combinations.
- Compare runtime scheduling with relevant features enabled and disabled, including pre-flush placement and concurrent body/handler progress. Successful compilation alone does not establish equivalent behavior.
- Keep peer-controlled data out of metric labels. Preserve low cardinality, stable rejection reasons, and opt-in diagnostic overhead.
- At each affected rejection checkpoint, compare legacy/static policies and listener/direct entry points across applicable shared, serial, and local paths. Trace the returned error, response-or-close behavior, lease release, operation phase, and actual observer-event/counter emission. Check metric switches, including the error domain, independently of observer delivery. Stable labels do not establish that an event is emitted or counted once.
- For hot-path changes, identify allocations, retained buffers, locks, timers, and instrumentation. Require comparable measurements before accepting a throughput, latency, or memory improvement claim.
5. Evaluate Evidence and Report
Start with focused tests for the owning crate. Codec changes start with
cargo test -p nacelle-codec --all-features; performance claims also need the
existing benchmark comparison under comparable conditions.
For delivery or admission changes, build a relevant behavioral coverage matrix from the invariants, not only from the tests already present:
- Immediate and coalesced delivery, with and without earlier pending responses.
- Ready rejection and pending admission; success and failure at affected hooks.
- Rejection with and without a protocol error response, including silent completions and callback-bearing responses where affected.
- Partial writes, write errors or deadlines, and failures of the underlying flush after response bytes have already been written.
- Body EOF/read deadlines, handler failure, cancellation, and teardown while another operation is pending.
- Relevant feature configurations, bounded-channel backpressure, response order, per-request byte attribution, and lease release.
Use this matrix as the behavioral part of the general review evidence ledger. For each applicable case, cite concrete call sites and exercised coverage, source-backed reasoning or a counterexample, or an explicit evidence gap. Justify irrelevant cases; do not require an unrelated Cartesian product. Favor deterministic partial-progress fixtures and paused time when tests are authorized. Passing existing tests must not be treated as proof that untested failure paths preserve these contracts.
Use the Rust instructions for formatting, lint, and test gates. Feature wiring,
TLS, cross-crate changes, and readiness work require the broader
./scripts/validate-all.sh evidence. A review does not itself authorize running
or installing every check.
Verify corresponding API, feature, configuration, security, and performance documentation updates. Report findings using the general review severity and evidence rules, with skipped checks and remaining uncertainty stated explicitly.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

