Repository navigation
docs: generate gRPC schema reference - #1719
Conversation
samuv
left a comment
There was a problem hiding this comment.
Thanks @Sanskarzz! This looks aligned with the narrowed scope of #712. I verified that the reference regenerates consistently and the site builds.
One request: could the message tables show oneof membership? In ConverseRequest, prompt, retry, and the control frames belong to oneof kind, but the current table makes them look independent. protoc-gen-doc exposes this information, so it should be a template change.
I wouldn’t expand this PR to tackle field numbers, map formatting, or cleanup of the proto comments. Thanks again for taking this on!
Thanks, @samuv. I’ve added a Oneof column to the generated message tables and regenerated the reference. ConverseRequest now shows prompt, retry, and the control frames as members of kind. I also excluded the synthetic oneofs used internally for protobuf optional fields. I kept field numbers, map formatting, and proto comment cleanup outside this PR’s scope.
|
|
Thanks for the quick update, @Sanskarzz — the The failing “Docs (matlatl)” job is stopping at the gRPC schema freshness check, before matlatl runs. Since this branch started, #1725 changed Could you update your branch from |
b3a0a10 to
ff55e11
Compare
@samuv Please approve and run workflows |
samuv
left a comment
There was a problem hiding this comment.
Thank you, @Sanskarzz. Looks good, so I’ll go ahead and merge this. I’ll follow up with a few visual improvements for the large table.
Summary
HarnessServiceandScheduleServiceprotobuf contracts.task docs:grpc-ref, include it intask docs, and add a non-mutating CIfreshness check.
guide.
Development stage
and the in-PR plan declares
**Expected tasks:** 1, a non-placeholder**Combined rationale:**, and no runtime/public/operator/persistence/trust-boundaryinterface change (
None — rationale; workflow-only meta-changes may review processdocs/skills here)
Contract linkage
Interface conformance
mecatl.v1.HarnessServiceand
mecatl.v1.ScheduleServicecontracts. It does not change those contracts.Issue relationship
Closes #712
Type of change
Test plan
Baseline checks
task lint)task test)go run ./cmd/mecademo)task docs)task site:build)task api:check)task api:update+engine/CHANGELOG.mdtask ac-trace-strict)/panel-reviewThe full Go lint/test/demo and engine API gates were not run because this change
does not modify Go code, runtime behavior, or the engine API. Documentation and
workflow-specific gates are listed below.
Additional focused checks:
task docs:grpc-reftask lint:actionsbuf builduser-docs/reference/grpc-schema.mdChanges
buf.gen.grpc-docs.yamlscripts/grpc-schema.md.tmpluser-docs/reference/grpc-schema.mdTaskfile.yml.github/workflows/ci.ymlUser-facing change
Readers can look up both public gRPC services, all RPC signatures and streaming
directions, and their messages, enums, fields, and protobuf comments on one
generated reference page.
Special notes for reviewers
The generator intentionally includes only the public Harness and Schedule
contracts. HTTP/OpenAPI/SSE generation remains outside this change and is
tracked separately in #1706. Driver and other internal protobuf contracts are
also excluded.
Descriptions come directly from protobuf comments so the reference cannot
silently diverge from the schema. Some existing comments contain internal ADR,
issue, or implementation references; cleaning those comments would require a
separate protobuf-comment change and is outside #712's no-proto-change scope.