bregctl usage errors repeat a rejected argument value, including --operator-reference
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
Comienza en crates/registry-bregctl/src/lib.rs, en la ruta usage.invalid de main, y compara el patrón de diagnóstico existente sin valor utilizado por evidencectl y las correcciones de caseworkctl/schedulingctl. Añade una prueba de bregctl que use un sentinel rechazado para --operator-reference y verifica que el sentinel no aparezca ni en stdout ni en stderr en las rutas de error humana y JSON.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 2
- Forks
- 0
- Merge medio
- 7 h 46 min
- PR fusionados (30 d)
- 199
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de registrystack/registry-stack
-
area:breg criticality:p3 documentation triage:needs-implementation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
registrystack/registry-stack#1713 ·
Los mantenedores suelen responder en 1 día
-
area:breg bug criticality:p3 triage:needs-implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
registrystack/registry-stack#1682 ·
Los mantenedores suelen responder en 1 día
-
area:casework bug criticality:p3 triage:needs-implementation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
registrystack/registry-stack#1669 ·
Los mantenedores suelen responder en 1 día
-
area:evidence bug criticality:p3 triage:needs-implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
registrystack/registry-stack#1665 ·
Los mantenedores suelen responder en 1 día
-
Evidence: OPERATOR-CONTRACT says audit sequence numbers restart, but the .seq companion keeps themAbiertoagent-ready area:docs area:evidence criticality:p3 documentation triage:needs-implementation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
registrystack/registry-stack#1647 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de registrystack/registry-stack
Issues similares
-
`sysknife history --help` says --since takes ISO-8601, and the parser refuses offsets and bare datesAbiertobug easy good first issue help wanted
Dificultad 1/5 1-3 horas Aptitud para principiantes 94/100
lacs-project/sysknife#519 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
lbjlaq/Antigravity-Manager#3539 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
stratum-mining/stratum#2407 ·
Los mantenedores suelen responder en 2 días