`agent-review-report-contract` and `frontmatter-schema`: NDJSON diagnostics; classify `workspace-coupling`

Abierto
#2,763 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
cli, tooling

Línea de trabajo

Read the two ADRs named in the issue, then inspect contrib/dev-tools/checks/agent-review-report-contract/src/main.rs, contrib/dev-tools/checks/frontmatter-validator/src/bin/frontmatter-schema.rs, and contrib/dev-tools/analysis/workspace-coupling/src/main.rs. Check their callers in workflows, hooks, and docs/packages.md, plus the spec under docs/issues/open/. Run the relevant checks and tests; done means diagnostics follow the stated NDJSON and exit-code contract, stdout is empty where required, and callers and output documentation are updated.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Part of EPIC #2758. Order 4 of 11, wave 1.

Goal

The two plain-text dev-tool checks follow the no-stdout-result contract, and workspace-coupling is checked and, if needed, fixed.

Background

contrib/dev-tools/checks/agent-review-report-contract/src/main.rs writes a plain-text success line to stdout and plain-text failures to stderr. contrib/dev-tools/checks/frontmatter-validator/src/bin/frontmatter-schema.rs writes frontmatter-schema: <error> to stderr (usage already exits 2). Neither is in the ADR table (EPIC issue 1 adds them as no-stdout-result). contrib/dev-tools/analysis/workspace-coupling/src/main.rs already emits NDJSON on stderr with exit codes for usage and runtime; verify where its Markdown report goes (file argument versus stdout) and whether stdout stays empty. Verify who calls each tool (workflows, hooks, docs/packages.md) and update those callers.

The contract in short: see the ADRs docs/adrs/20260519000000_define_global_cli_output_contract.md and docs/adrs/20261106102632_scope_the_cli_output_contract_and_keep_exit_codes_to_zero_one_two.md.

In scope

  • agent-review-report-contract: nothing on stdout; one NDJSON record per failure on stderr (with kind); exit 0 when clean, 1 on a finding or failure.
  • frontmatter-schema: NDJSON diagnostics on stderr; usage stays 2.
  • workspace-coupling: fix only what the check finds; record the outcome.
  • Update tests and any docs describing the output.

Out of scope

  • Changing what the checks validate.
  • Editing the ADR.

Acceptance criteria

  • Neither converted tool writes plain text on any channel.
  • On success stdout is empty and the exit code is 0; on a finding the exit code is 1 with NDJSON records.
  • workspace-coupling leaves stdout empty or is documented as a stdout-result-data tool with a JSON result.
  • Callers are unaffected or updated.

The full specification (implementation plan, verification plan, files this issue may touch) is added by the spec PR under docs/issues/open/.

Lenguaje dominante
Rust
Estrellas
532
Forks
56
Merge medio
11 h 20 min
PR fusionados (30 d)
282

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de torrust/torrust-tracker

Todos los issues de torrust/torrust-tracker

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.