Proto Stubs

Pre-generated stubs

The gRPC stubs (src/kbs_plugin_sdk/plugin/plugin_pb2.py and plugin_pb2_grpc.py) are pre-generated and committed to the repository. Users and contributors do not need to run any proto compilation step.

Regenerating (maintainers only)

To regenerate stubs from a specific Trustee ref:

make proto TRUSTEE_VERSION=<tag-or-commit>

This fetches plugin.proto from the trustee repository at the given ref and regenerates the Python stubs using grpcio-tools. TRUSTEE_VERSION defaults to the contents of the TRUSTEE_VERSION file at the repository root.

Stub regeneration is also handled automatically by scripts/release.sh. See Release Process for details.