# grpc/proposal architecture

> Architecture diagram of the GitHub repository grpc/proposal, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/grpc/proposal
- Repository: https://github.com/grpc/proposal

## Overview

##### Project Type and Purpose
- This is an open-source documentation repository that holds the gRPC RFCs (design proposals) for the gRPC ecosystem.
- Its primary purpose is to collect, version, and govern design proposals (RFCs) across all gRPC languages and core.

##### Main Components
a. GitHub Repository (“grpc/grpc-rfcs”)
- Contains all markdown files for proposals, grouped by prefix (A*, P*, L*, G*).
- Holds governance docs (GOVERNANCE.md, CONTRIBUTING.md), templates (GRFC-TEMPLATE.md), and process documentation (README.md).
b. Proposal Files
- A-prefixed: cross-language design proposals (e.g., A1-http-connect-proxy-support.md)
- L-prefixed: language-specific external API changes (e.g., L102-core-move-insecure-creds-declaration.md)
- G-prefixed: protocol-level changes (e.g., G2-http3-protocol.md)
- P-prefixed: process proposals (e.g., P1-cloud-native.md)
c. Contribution Workflow
- Fork & branch on GitHub → Copy & rename GRFC-TEMPLATE.md → Draft RFC → Open PR → Assign APPROVER → Start discussion on grpc-io mailing list → Iterate for 10+ business days → APPROVER finalizes → Merge.
d. External Services
- GitHub: pull request hosting, file versioning.
- grpc-io Google Group: design discussion and community feedback.

##### Architectural Patterns and Design Principles
- “Content as Code”: Markdown files under Git version control.
- Template-driven consistency: a single GRFC-TEMPLATE.md enforces uniform structure.
- Prefix-based categorization: file name conventions route files to the right area of concern (cross-language, language-specific, protocol, process).
- Clear governance boundaries: designated APPROVER role and formal state transitions (Draft → In Review → Final → Implemented).

##### Relationships and Data Flow
- Contributors clone/fork the repo → create new markdown RFC → submit PR to GitHub → triggered review by APPROVER → PR linked to grpc-io thread → community discussion → APPROVER merges final PR → new RFC appears in repo.
- Static repo content is consumed directly on GitHub or via any downstream documentation site integration (not in this repo).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Personas
    Developer["Developer"]:::contributor
    Approver["Approver (Approver ‘a11r’, etc.)"]:::approver
    Forum(("grpc-io Forum")):::forum

    %% Repository and Contents
    subgraph "grpc-rfcs GitHub Repo"
        direction TB
        RepoMain["grpc-rfcs GitHub Repo"]:::repo

        subgraph "Governance Documents"
            GOV["GOVERNANCE.md"]:::repo
            COC["CODE-OF-CONDUCT.md"]:::repo
        end

        subgraph "Contribution Guidelines & Process Docs"
            RD["README.md"]:::repo
            RT["GRFC-TEMPLATE.md"]:::repo
        end

        subgraph "Cross-Language Design Proposals (A*)"
            AFiles["A*.md files"]:::repo
            AGraphics["A*_graphics/"]:::repo
        end

        subgraph "Protocol-Level Changes (G*)"
            G1["G1-true-binary-metadata.md"]:::repo
            G2["G2-http3-protocol.md"]:::repo
        end

        subgraph "Language-Specific API Changes (L*)"
            LFiles["L*.md files"]:::repo
            LGraphics["L*_graphics/"]:::repo
        end

        subgraph "Process Proposals (P*)"
            P1["P1-cloud-native.md"]:::repo
            P3["P3-grfcs-for-core-api-changes.md"]:::repo
            P4["P4-grpc-cve-process.md"]:::repo
            P5["P5-jdk-version-support.md"]:::repo
            P6["P6-grpc-io-announce.md"]:::repo
        end
    end

    %% Process Flow
    Developer -->|"fork & clone"| RepoMain
    Developer -->|"draft RFC & submit PR"| PR["Pull Request"]:::repo
    PR -->|"review"| Approver
    PR -->|"discussion"| Forum
    Approver -->|"approve & merge"| RepoMain

    %% Click Events
    click RepoMain "https://github.com/grpc/proposal/tree/master//"
    click GOV "https://github.com/grpc/proposal/blob/master/GOVERNANCE.md"
    click COC "https://github.com/grpc/proposal/blob/master/CODE-OF-CONDUCT.md"
    click RD "https://github.com/grpc/proposal/blob/master/README.md"
    click RT "https://github.com/grpc/proposal/blob/master/GRFC-TEMPLATE.md"
    click AFiles "https://github.com/grpc/proposal/tree/master//"
    click AGraphics "https://github.com/grpc/proposal/tree/master/A14_graphics/"
    click G1 "https://github.com/grpc/proposal/blob/master/G1-true-binary-metadata.md"
    click G2 "https://github.com/grpc/proposal/blob/master/G2-http3-protocol.md"
    click LFiles "https://github.com/grpc/proposal/tree/master//"
    click LGraphics "https://github.com/grpc/proposal/tree/master/L38_graphics/"
    click P1 "https://github.com/grpc/proposal/blob/master/P1-cloud-native.md"
    click P3 "https://github.com/grpc/proposal/blob/master/P3-grfcs-for-core-api-changes.md"
    click P4 "https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md"
    click P5 "https://github.com/grpc/proposal/blob/master/P5-jdk-version-support.md"
    click P6 "https://github.com/grpc/proposal/blob/master/P6-grpc-io-announce.md"

    %% Styles
    classDef contributor fill:#ADD8E6,stroke:#000,color:#000
    classDef approver fill:#90EE90,stroke:#000,color:#000
    classDef repo fill:#D3D3D3,stroke:#000,color:#000
    classDef forum fill:#FFD700,stroke:#000,color:#000
```
