bregctl usage errors repeat a rejected argument value, including --operator-reference
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
Hướng nghiên cứu
Bắt đầu trong crates/registry-bregctl/src/lib.rs, tại đường dẫn usage.invalid trong main, và so sánh mẫu chẩn đoán không có giá trị hiện có được evidencectl sử dụng với các bản sửa lỗi cho caseworkctl/schedulingctl. Thêm một bài kiểm thử bregctl sử dụng một sentinel bị từ chối cho --operator-reference, sau đó xác minh rằng sentinel không xuất hiện trong cả stdout lẫn stderr đối với các đường dẫn lỗi dành cho người dùng và JSON.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
bregctl builds its usage-error diagnostic from clap's rendered error (crates/registry-bregctl/src/lib.rs, the usage.invalid path in main), in both human and JSON output. Clap's rendering quotes the rejected value, so a refused or misspelled --operator-reference=VALUE is written back to stdout or stderr in clear. Everywhere else, that value is kept only as a keyed hash.
Exposure is limited to the operator's own terminal and anything capturing its output, such as CI logs. It is still a gap in data minimization.
evidencectl on main already uses a fixed message. The WP3 Casework and Scheduling PR fixes caseworkctl and schedulingctl by building the message from the error kind and the argument name, while keeping our own value-free validator reasons.
Fix: apply the same pattern in bregctl. Add a test that passes a sentinel value clap rejects for --operator-reference and asserts the sentinel appears in neither stdout nor stderr.
Planned with the bregctl half of #1412, which moves bregctl onto the shared ctl report contract.
- Ngôn ngữ chính
- Rust
- Star
- 2
- Fork
- 0
- Merge trung bình
- 7 giờ 46 phút
- Pull request đã merge (30 ngày)
- 199
Chuẩn bị môi trường
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 registrystack/registry-stack
-
area:breg criticality:p3 documentation triage:needs-implementation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
registrystack/registry-stack#1713 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:breg bug criticality:p3 triage:needs-implementation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
registrystack/registry-stack#1682 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:casework bug criticality:p3 triage:needs-implementation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
registrystack/registry-stack#1669 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:evidence bug criticality:p3 triage:needs-implementation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
registrystack/registry-stack#1665 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Evidence: OPERATOR-CONTRACT says audit sequence numbers restart, but the .seq companion keeps themĐang mởagent-ready area:docs area:evidence criticality:p3 documentation triage:needs-implementation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
registrystack/registry-stack#1647 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của registrystack/registry-stack
Issue tương tự
-
`sysknife history --help` says --since takes ISO-8601, and the parser refuses offsets and bare datesĐang mởbug easy good first issue help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 94/100
lacs-project/sysknife#519 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
lbjlaq/Antigravity-Manager#3539 · 2 bình luận ·
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 72/100
stratum-mining/stratum#2407 ·
Maintainer thường phản hồi trong vòng 2 ngày