Skip to content

anolishq/anolis-protocol

Repository files navigation

anolis-protocol

buf

Canonical protocol contracts for the Anolis ecosystem.

Scope

  • Owns ADPP protobuf schema used by anolis and providers.
  • Contains protocol-only artifacts (schema + semantics + compatibility docs).
  • Contains no runtime/provider implementation code.

Layout

anolis-protocol/
├── buf.yaml              # Buf v2 module config (lint, breaking, deps)
├── buf.gen.yaml          # Canonical generation config (C++, Python)
├── buf.lock              # Pinned dependency hashes
├── proto/
│   └── anolis/
│       └── deviceprovider/
│           └── v1/
│               ├── envelope.proto    # Request / Response top-level envelopes
│               ├── status.proto      # Status and error codes
│               ├── handshake.proto   # Hello request/response
│               ├── inventory.proto   # ListDevices / DescribeDevice
│               ├── telemetry.proto   # ReadSignals / SignalValue
│               ├── call.proto        # CallRequest / CallResponse
│               ├── health.proto      # ProviderHealth / DeviceHealth
│               ├── readiness.proto   # WaitReady request/response
│               ├── types.proto       # Device, CapabilitySet, FunctionSpec, ArgSpec
│               └── value.proto       # Value, ValueType
└── docs/
    ├── index.md
    ├── semantics.md
    └── versioning.md

Development

Requires Buf CLI v1.x.

# Verify the schema compiles
buf build

# Check lint rules
buf lint

# Check formatting
buf format --diff

# Check for breaking changes vs main
buf breaking --against "https://github.com/anolishq/anolis-protocol.git#branch=main"

# Generate C++ and Python bindings (outputs to gen/, not committed)
buf generate

Versioning

  • Repository uses semantic versioning tags: MAJOR.MINOR.PATCH.
  • Breaking wire-contract changes require a major bump.
  • buf breaking enforces this automatically on every PR.
  • See docs/versioning.md.

About

Canonical protocol contracts for the Anolis ecosystem.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors