Problem
The ListAgents (and GetAgent) RPCs return Agent messages with organization_id always empty. The field exists in the proto schema (organization_id = 10 on Agent message, added in api PR #67), and the value is stored in the DB and loaded into store.Agent.OrganizationID, but the server's toProtoAgent() converter in internal/server/converter.go never maps it to the proto field.
Impact
The agents-orchestrator's assembler validates agent.GetOrganizationId() != "" before creating workloads. Since it's always empty, the reconciler logs "agent organization id missing" and never starts any workloads.
Fix
In internal/server/converter.go, add OrganizationId: agent.OrganizationID.String() to the toProtoAgent() return struct.
Context
- Proto field added in
agynio/api PR #67
- Stale TODO from commit
bab4d8f — converter was never updated when the proto field was added in a6ce033
- Blocks orchestrator E2E (PR #70 in
agynio/agents-orchestrator)
Problem
The
ListAgents(andGetAgent) RPCs returnAgentmessages withorganization_idalways empty. The field exists in the proto schema (organization_id = 10onAgentmessage, added in api PR #67), and the value is stored in the DB and loaded intostore.Agent.OrganizationID, but the server'stoProtoAgent()converter ininternal/server/converter.gonever maps it to the proto field.Impact
The agents-orchestrator's assembler validates
agent.GetOrganizationId() != ""before creating workloads. Since it's always empty, the reconciler logs"agent organization id missing"and never starts any workloads.Fix
In
internal/server/converter.go, addOrganizationId: agent.OrganizationID.String()to thetoProtoAgent()return struct.Context
agynio/apiPR #67bab4d8f— converter was never updated when the proto field was added ina6ce033agynio/agents-orchestrator)