agentleFS
MicrosoftKnown publishermicrosoft/nacelle/.github/skills/nacelle-review/SKILL.md

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.

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
  1. Distinctive:

    Use this domain workflow with the general review rules.

    line 8
  2. Distinctive:

    Read the repository instructions and Rust instructions.

    line 13
  3. Very specific:

    Keep reusable byte/message codecs and reader/writer buffers in nacelle-codec.

    line 25
  4. Very specific:

    Keep transport-neutral handlers, lifecycle, limits, telemetry, and TLS primitives in nacelle-core.

    line 26
  5. Very specific:

    Keep TCP/Unix policy in nacelle-tcp, HTTP policy in nacelle-http, provider implementations in their TLS crates, and convenience re-exports …

    line 28
  6. Very specific:

    Keep the reference protocol in the unpublished examples/nacelle-reference-protocol package, outside the published library API.

    line 30
  7. Distinctive:

    Verify size limits reject input before unbounded growth, and that reader and writer adapters preserve bounded buffering and backpressure.

    line 42
  8. Distinctive:

    Check encoding and partial writes for dropped, duplicated, reordered, or incorrectly flushed data.

    line 47
  9. Very specific:

    Treat Nacelle's pending-frame queue and buffering inside AsyncWrite independently.

    line 49
  10. Distinctive:

    Check silent completions, protocol error responses, and completion callbacks separately.

    line 57
  11. Distinctive:

    Verify task, queue, connection, and buffer bounds.

    line 65
  12. Very specific:

    Check blocking operations, lock scope across .await, task ownership, Send/Sync requirements, and cleanup when a future is dropped.

    line 67
  13. Very specific:

    Read manifests and the feature matrix.

    line 88
  14. Distinctive:

    Verify changed feature-gated paths under the smallest relevant feature set and the supported provider combinations.

    line 93
  15. Distinctive:

    Keep peer-controlled data out of metric labels.

    line 98
  16. Very specific:

    Start with focused tests for the owning crate.

    line 112
  17. Distinctive:

    Use this matrix as the behavioral part of the general review evidence ledger.

    line 130
  18. Very specific:

    Use the Rust instructions for formatting, lint, and test gates.

    line 138
  19. Distinctive:

    Verify corresponding API, feature, configuration, security, and performance documentation updates.

    line 143

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 in nacelle-core.
  • Keep TCP/Unix policy in nacelle-tcp, HTTP policy in nacelle-http, provider implementations in their TLS crates, and convenience re-exports in nacelle.
  • Keep the reference protocol in the unpublished examples/nacelle-reference-protocol package, 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 AsyncWrite independently. 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/Sync requirements, and cleanup when a future is dropped.
  • At affected .await, select!, and join! 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-features as a valid provider combination or let openssl implicitly select rustls.
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.