bregctl usage errors repeat a rejected argument value, including --operator-reference
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 crates/registry-bregctl/src/lib.rs 中 main 的 usage.invalid 路径开始,比较 evidencectl 使用的现有无值诊断模式以及 caseworkctl/schedulingctl 的修复。添加一个 bregctl 测试,使用一个因 --operator-reference 而被拒绝的 sentinel,然后验证在面向人类和 JSON 的错误路径中,sentinel 既不会出现在 stdout 中,也不会出现在 stderr 中。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Rust
- 星标
- 2
- 派生
- 0
- 平均合并
- 7 小时 46 分钟
- 30 天内合并 PR
- 199
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
registrystack/registry-stack 的其他 Issue
-
area:breg criticality:p3 documentation triage:needs-implementation
难度 1/5 1 小时以内 新手友好度 86/100
registrystack/registry-stack#1713 ·
维护者通常 1 天内回复
-
area:breg bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 85/100
registrystack/registry-stack#1682 ·
维护者通常 1 天内回复
-
area:casework bug criticality:p3 triage:needs-implementation
难度 1/5 1 小时以内 新手友好度 88/100
registrystack/registry-stack#1669 ·
维护者通常 1 天内回复
-
area:evidence bug criticality:p3 triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 86/100
registrystack/registry-stack#1665 ·
维护者通常 1 天内回复
-
Evidence: OPERATOR-CONTRACT says audit sequence numbers restart, but the .seq companion keeps them未关闭agent-ready area:docs area:evidence criticality:p3 documentation triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 78/100
registrystack/registry-stack#1647 · 1 条评论 ·
维护者通常 1 天内回复
查看 registrystack/registry-stack 的全部 Issue
相似的 Issue
-
`sysknife history --help` says --since takes ISO-8601, and the parser refuses offsets and bare dates未关闭bug easy good first issue help wanted
难度 1/5 1-3 小时 新手友好度 94/100
lacs-project/sysknife#519 ·
维护者通常 1 天内回复
-
enhancement
难度 1/5 1 小时以内 新手友好度 72/100
-
documentation
难度 1/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 88/100
lbjlaq/Antigravity-Manager#3539 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
stratum-mining/stratum#2407 ·
维护者通常 2 天内回复