RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/grpc/grpc

AGENTS.md

src/core/lib/transport/AGENTS.md
AGENTS.md

Quality

39/100

Scores the file, not the repository.

Length

366 words

4 headings · 0 code blocks

Repository

45k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
grpc/grpc/src/core/lib/transport/AGENTS.mdRawGitHub
1# Common Transport Utilities (lib/transport)
2 
3* This directory contains common implementation details, abstractions, and utilities shared across various gRPC transport implementations (such as CHTTP2, PH2, Inproc, and Chaotic Good).
4 
5See also: [gRPC Transports overview](../../transport/AGENTS.md)
6 
7## Overarching Purpose
8 
9Files in this directory provide essential abstractions and reusable components that transport implementations depend on. Rather than each transport reinventing basic networking, state tracking, or encoding primitives, they utilize the APIs exposed here.
10 
11**Core Responsibilities:**
12* **Transport Abstraction Interfaces:** The core struct definitions for `grpc_transport` and `grpc_stream`.
13* **Promise-Based Networking:** Providing the `PromiseEndpoint` API to wrap traditional EventEngine endpoints with modern C++ Coroutine/Promise interfaces.
14* **Bandwidth Estimation:** Tracking bytes sent/received over time to dynamically compute Bandwidth-Delay Product (BDP) for flow control.
15* **State & Error Tracking:** Tracking connectivity states and converting error namespaces/types (e.g., HTTP/2 status/errors to `absl::Status` or gRPC status codes).
16* **Header Encoding & Parsing:** Encoding and decoding gRPC timeout headers securely and efficiently.
17 
18## Key Files and Components
19 
20* **`transport.{h,cc}`**
21 * Defines the underlying `grpc_transport` and `grpc_stream` structs.
22 * Contains core serialization, statistic structures, and operational batching definitions (`grpc_transport_stream_op_batch`).
23* **`promise_endpoint.{h,cc}`**
24 * The `PromiseEndpoint` class provides a convenient API to run asynchronous read/write network streams using the gRPC Promise framework (`src/core/lib/promise`).
25* **`bdp_estimator.{h,cc}`**
26 * The `BdpEstimator` tracks traffic flow to adapt HTTP/2 window sizes (flow control) based on connection bandwidth and latency.
27* **`connectivity_state.{h,cc}`**
28 * Tracks `grpc_connectivity_state` transitions for channels/transports. Provides state change notifications.
29* **`timeout_encoding.{h,cc}`**
30 * Provides standard routines to encode and decode the `grpc-timeout` HTTP/2 header.
31* **`status_conversion.{h,cc}`**
32 * Utility functions converting between HTTP status codes, HTTP/2 errors (`grpc_chttp2_error_code`), and gRPC canonical status codes (`grpc_status_code`).
33* **`error_utils.{h,cc}`**
34 * Utilities for converting transit errors, raw `grpc_error_handle` objects, or `absl::Status` into status codes and error messages.
35* **`call_final_info.{h,cc}`**
36 * Struct definitions tracking transport-level metrics and statistics compiled when a call terminates.
37 
38## Dependencies and Guidelines
39 
40* **Modern promise-based code:** New additions or modifications to `PromiseEndpoint` should strictly follow the conventions of the gRPC Promise framework located in `src/core/lib/promise/`.
41* **Compatibility:** Changes in this directory affect all transport types. Extra caution should be taken to avoid breaking behavior across CHTTP2, PH2, and chaotic_good transports. Ensure their respective unit and end-to-end tests run after making any modifications here.
42 

Sections

  • Common Transport Utilities (lib/transport)
  • Overarching Purpose
  • Key Files and Components
  • Dependencies and Guidelines

What it covers

dependencies

Stack — with the evidence

swift

(1.00)

csharp

(1.00)

cpp

(1.00)

python

(0.60)

ruby

(0.60)

php

(0.60)

dotnet

(0.60)

ruff

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
grpc
Language
—
License
—
Archived
no

All configs in this repo

Also in grpc/grpc

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
grpc/grpcsrc/core/ext/filters/census/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections25/1003 days ago
grpc/grpcsrc/core/ext/filters/gcp_authentication/AGENTS.md · 45kAGENTS.mdswiftcsharp+7security44/1003 days ago
grpc/grpcsrc/core/ext/filters/http/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections44/1003 days ago
grpc/grpcsrc/core/ext/filters/stateful_session/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections44/1003 days ago
grpc/grpcsrc/core/ext/transport/chaotic_good/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections48/1003 days ago
grpc/grpcsrc/core/ext/transport/inproc/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections44/1003 days ago
grpc/grpcsrc/core/filter/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections44/1003 days ago
grpc/grpcsrc/core/handshaker/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections39/1003 days ago
grpc/grpcsrc/core/server/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections44/1003 days ago
grpc/grpcsrc/core/service_config/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections44/1003 days ago
grpc/grpcsrc/core/telemetry/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections39/1003 days ago
grpc/grpcsrc/core/transport/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections39/1003 days ago
grpc/grpcsrc/core/credentials/transport/AGENTS.md · 45kAGENTS.mdswiftcsharp+7security39/1003 days ago
grpc/grpcsrc/core/ext/filters/backend_metrics/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections44/1003 days ago
grpc/grpcsrc/core/credentials/AGENTS.md · 45kAGENTS.mdswiftcsharp+7security39/1003 days ago
grpc/grpcsrc/core/tsi/AGENTS.md · 45kAGENTS.mdswiftcsharp+7security39/1003 days ago
grpc/grpcsrc/core/tsi/alts/AGENTS.md · 45kAGENTS.mdswiftcsharp+7no sections39/1003 days ago
grpc/grpcsrc/core/credentials/call/AGENTS.md · 45kAGENTS.mdswiftcsharp+7security39/1003 days ago
grpc/grpcsrc/core/ext/transport/chttp2/AGENTS.md · 45kAGENTS.mdswiftcsharp+7testarchdependencies48/1003 days ago
grpc/grpcAGENTS.md · 45kAGENTS.mdswiftcsharp+7styledependenciesdo-not54/1003 days ago
Diff against src/core/ext/filters/census/AGENTS.md Diff against src/core/ext/filters/gcp_authentication/AGENTS.md Diff against src/core/ext/filters/http/AGENTS.md Diff against src/core/ext/filters/stateful_session/AGENTS.md Diff against src/core/ext/transport/chaotic_good/AGENTS.md Diff against src/core/ext/transport/inproc/AGENTS.md Diff against src/core/filter/AGENTS.md Diff against src/core/handshaker/AGENTS.md Diff against src/core/server/AGENTS.md Diff against src/core/service_config/AGENTS.md Diff against src/core/telemetry/AGENTS.md Diff against src/core/transport/AGENTS.md Diff against src/core/credentials/transport/AGENTS.md Diff against src/core/ext/filters/backend_metrics/AGENTS.md Diff against src/core/credentials/AGENTS.md Diff against src/core/tsi/AGENTS.md Diff against src/core/tsi/alts/AGENTS.md Diff against src/core/credentials/call/AGENTS.md Diff against src/core/ext/transport/chttp2/AGENTS.md Diff against AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
vllm-project/vllmAGENTS.md · 88kAGENTS.mdpythonpytorch+3setuptestlint-formatstyle+5100/1003 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
react/react-nativepackages/react-native-compatibility-check/AGENTS.md · 126kAGENTS.mdreactreact-native+11testlint-formatstylearch+499/1003 days ago
netdata/netdatasrc/go/plugin/ibm.d/AGENTS.md · 80kAGENTS.mddockerinfrastructure+7buildtestlint-formatarch+399/1003 days ago
dragonflydb/dragonflyAGENTS.md · 31kAGENTS.mdcppredis+6setupbuildtestlint-format+1096/1002 days ago
dotnet/aspnetcoresrc/Components/AGENTS.md · 38kAGENTS.mdcsharpdotnet+5buildteststylearch+396/1003 days ago
duckdb/duckdbAGENTS.md · 40kAGENTS.mdcppswift+1buildtestlint-formatstyle+896/100today
steipete/CodexBarAGENTS.md · 20kAGENTS.mdswiftgithub-actionsbuildteststylearch+493/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack