bregctl usage errors repeat a rejected argument value, including --operator-reference
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
crates/registry-bregctl/src/lib.rs の main にある usage.invalid パスから始め、evidencectl で使われている既存の値なし診断パターンと、caseworkctl/schedulingctl の修正を比較します。--operator-reference に対して拒否される sentinel を使う bregctl テストを追加し、人間向けおよび 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分
- マージ済み PR(30日)
- 199
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
-
area: dogs area: lookout bug security
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 2 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
OpenDevicePartnership/ina4230#31 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
posit-dev/ggsql#565 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信