feat(clients): models+runtime: close gaps (all Discovery methods wrapped, live re-verification)

models: EndpointAdmin and PublisherAdmin wrap every remaining method of the
owned resources (84 call table rows, 132 Discovery methods covered, v1beta1
twins, IAM, operations, responses, export, config, enableModel); planner
rejects undeclared body keys; VertexModel::TurnBuilder replays model turns
with every thoughtSignature; Lyria WAV mime from bytes; veo-3.1 default.
runtime: v1beta1 feedbackEntries, A2A gateway (40 rpcs), a2aTasks, task store
records, scoped operations, beta twin flag (103 rows, 214 methods covered);
checker verifies twins, a2aEndpoint patterns and coverage.
example: admin routes for both parts. SPECs: live results moved from
Unverified to Verified live (Veo, Lyria, thought signatures, v1beta1 routes).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 05:47:34 +02:00
co-authored by Claude Sonnet 5.5
parent 29d775a923
commit 8e807945a2
38 changed files with 4437 additions and 72 deletions
+38 -4
View File
@@ -16,6 +16,34 @@ enum class Call {
kCancelAsyncQuery, kExecuteCode, kGetIamPolicy, kSetIamPolicy, kTestIamPermissions,
kOperationGet, kOperationList, kOperationCancel, kOperationDelete,
kRevisionGet, kRevisionList, kRevisionDelete, kRevisionQuery, kRevisionStreamQuery,
// Rows below were added from Discovery to close the gap list. Families of
// A2A gateway calls: Engine/EngineV1 hang off an engine, Revision/RevisionV1
// off a runtime revision; the V1 forms are `.../a2a/v1/...` routes.
kOperationWait, kRevisionQueryV1, kRevisionStreamQueryV1, kRevisionOperationGet,
kRevisionOperationList, kRevisionOperationCancel, kRevisionOperationWait,
kRevisionOperationDelete, kExampleOperationGet, kExampleOperationCancel,
kExampleOperationWait, kExampleOperationDelete, kFeedbackList, kFeedbackCreate, kFeedbackGet,
kFeedbackPatch, kFeedbackDelete, kFeedbackUpdateContext, kFeedbackGetContext,
kFeedbackOperationGet, kFeedbackOperationList, kFeedbackOperationCancel,
kFeedbackOperationWait, kFeedbackOperationDelete, kA2aTaskCreate, kA2aTaskAppendEvents,
kA2aTaskDelete, kA2aTaskList, kA2aTaskGet, kA2aTaskEventsList, kTaskRecordCreate,
kTaskRecordAppendEvents, kTaskRecordDelete, kTaskRecordList, kTaskRecordGet, kA2aEngineCard,
kA2aEngineExtendedAgentCard, kA2aEngineTasks, kA2aEngineTasksGetEngine,
kA2aEngineTasksPushConfigs, kA2aEngineTasksPushConfigsGetEngine, kA2aEngineTasksCancel,
kA2aEngineTasksSubscribe, kA2aEngineMessageSend, kA2aEngineMessageStream, kA2aEngineV1Card,
kA2aEngineV1ExtendedAgentCard, kA2aEngineV1Tasks, kA2aEngineV1TasksGetEngine,
kA2aEngineV1TasksPushConfigs, kA2aEngineV1TasksPushConfigsGetEngine, kA2aEngineV1TasksCancel,
kA2aEngineV1TasksSubscribe, kA2aEngineV1MessageSend, kA2aEngineV1MessageStream,
kA2aRevisionCard, kA2aRevisionExtendedAgentCard, kA2aRevisionTasks,
kA2aRevisionTasksGetEngine, kA2aRevisionTasksPushConfigs,
kA2aRevisionTasksPushConfigsGetEngine, kA2aRevisionTasksCancel, kA2aRevisionTasksSubscribe,
kA2aRevisionMessageSend, kA2aRevisionMessageStream, kA2aRevisionV1Card,
kA2aRevisionV1ExtendedAgentCard, kA2aRevisionV1Tasks, kA2aRevisionV1TasksGetEngine,
kA2aRevisionV1TasksPushConfigs, kA2aRevisionV1TasksPushConfigsGetEngine,
kA2aRevisionV1TasksCancel, kA2aRevisionV1TasksSubscribe, kA2aRevisionV1MessageSend,
kA2aRevisionV1MessageStream, kTaskStoreOperationGet, kTaskStoreOperationList,
kTaskStoreOperationCancel, kTaskStoreOperationWait, kTaskStoreOperationDelete,
kTaskRecordEventsList,
};
struct CallSpec {
@@ -36,10 +64,16 @@ struct SchemaFields {
const CallSpec& spec_of(Call call);
clients::Method method_of(Call call);
// Endpoint for the call's API version in a location.
ServiceEndpoint endpoint_of(Call call, const std::string& location);
// The table itself, for listing (demo, tests, conformance).
std::size_t call_count();
const CallSpec& spec_at(std::size_t index);
// Endpoint for the call's API version in a location. `beta` selects the
// v1beta1 twin of a v1 row (tools/check_discovery.py verifies every v1 row
// has the same method, path, rpc id and fields in v1beta1).
ServiceEndpoint endpoint_of(Call call, const std::string& location, bool beta = false);
// Path under the endpoint base: "/projects/.../reasoningEngines/x:query".
// `target` replaces the {+name}, {+parent} or {+resource} placeholder.
std::string render(Call call, const std::string& target);
// `target` replaces the {+name}, {+parent} or {+resource} placeholder; `tail`
// replaces {+a2aEndpoint} (validated: segments of [A-Za-z0-9._:-], no "..").
std::string render(Call call, const std::string& target, const std::string& tail = "");
} // namespace molo::google::runtime