[FEATURE] Harness Get/Update RPCs and optimistic-concurrency preconditions for configuration writes
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start with the HarnessService protobuf and its Agent and AgentTemplate RPC counterparts, then trace update and delete handling through kubecrud and the generated Go and TypeScript clients. The issue describes the required behavior, but the work spans API definitions, authorization, Kubernetes concurrency, error mapping, and client generation. Done means Buf lint, generation, and compatibility checks pass, with stale updates and deletes returning ABORTED and no-version requests retaining their behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature summary
Add GetHarness and UpdateHarness to HarnessService, and make configuration writes honor Kubernetes optimistic-concurrency preconditions.
Problem
HarnessServiceexposes List, Create and Delete. API clients cannot read one Harness or change it in place, unlike Agents and AgentTemplates.- Update RPCs read the current object and overwrite its spec, ignoring the caller's
metadata.resourceVersion. Two editors silently overwrite each other. kubecrudmaps an update conflict toINTERNAL, so clients cannot tell a lost race from a server failure.- Delete reads the object and then deletes it by name. A delete-and-recreate between the two calls removes the new object, and callers cannot supply the version they reviewed.
Proposed implementation
GetHarnessandUpdateHarness, following the Agent and AgentTemplate RPC shapes and authorization.- Updates keep server-owned metadata and apply the caller's
resourceVersionwhen present. - Optional
resource_versiononDeleteAgentRequest,DeleteAgentTemplateRequestandDeleteHarnessRequest; delete is fenced by the object's UID and that version. - Conflicts map to
ABORTEDand missing objects toNOT_FOUNDon update and delete.
All protobuf changes are additive.
Acceptance
- A stale update or delete returns
ABORTED; an older request never deletes a recreated object. - Requests without a version keep their current behavior.
- Harness Get/Update use the existing authorization and validation path.
- Buf lint, generation and compatibility checks pass.
Alternatives
Clients delete and recreate Harnesses, and retry on INTERNAL. This replaces the object and cannot distinguish conflicts.
Affected services
Controller gRPC API, generated Go and TypeScript clients.
Contribution
I have an implementation in a downstream fork and can submit it once the shape is agreed. Prepared with Codex and Claude Code assistance.
- Ngôn ngữ chính
- Go
- Star
- 4.5k
- Fork
- 937
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 150
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kagent-dev/kagent
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kagent-dev/kagent#3792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kagent-dev/kagent#3790 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kagent-dev/kagent#3789 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] A2A lookups by task or context ID reveal whether another user's resource existsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
kagent-dev/kagent#3787 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Python memory summarization fails for Gemini models: the request has no model nameCó thể đã có người làm @BahaaMattar đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kagent-dev/kagent#3710 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kagent-dev/kagent
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
limitlessprojects/Go-Hybrid#4764 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: lint fails on main, generated CLI docs out of dateCó thể đã có người làm @bupd đã nhận hôm nay. Đang mởbug documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
goharbor/harbor-cli#1180 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
crane: mutate --env adds duplicate PATH on Windows images when key case differsCó thể đã có người làm @aad1tyaaaaa đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
google/go-containerregistry#2523 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bosh_io_stemcell_type: regular does not work for noble and resolute as it adds -go_agent as suffixĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
cloudfoundry/bosh-deployment-resource#138 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100