Make the do-harness.toml sensor map executable: add ./scripts/harness.sh <sensor>

Abierto
#1,217 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, git
Área
tooling

Línea de trabajo

Start by reading do-harness.toml and agents-docs/HARNESS.md, then inspect the existing BATS tests under tests/ for harness conventions. Implement the entry point at scripts/harness.sh, using git diff --name-only to resolve changed paths to the canonical sensor command and supporting --all; update agents-docs/HARNESS.md and AGENTS.md if needed. Done means representative paths resolve to the expected sensors, command output and exit status are preserved, and the expanded BATS suite passes.

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

Descripción

chore priority: low skills

Summary

do-harness.toml is a well-designed sensor map (path → canonical verification command), but agents-docs/HARNESS.md:35 states it is "a convention, not a tool: no script, hook, or CI job parses it". In practice an agent must re-derive which sensor matches its changed paths and copy the right command by hand — the exact mechanical step that drifts or gets skipped under pressure.

Evidence

  • do-harness.toml — 5 sensors (feedback, verification, offline, schema/data, release).
  • agents-docs/HARNESS.md — documents the "convention, not a tool" decision and says the BATS suite keeps the map honest; but the selection step (which sensor for my diff?) is still manual and error-prone.

Impact

  • Workflow: turns a 3-step manual lookup into ./scripts/harness.sh feedback; agents run the canonical command more often and run the wrong heavy suite less often.
  • Consistency: one executor enforces set -euo pipefail, output truncation, and exit-code propagation uniformly; the BATS suite can then test the runner instead of just the map.
  • Aligned with harness philosophy: this is not speculative config — it automates an existing documented decision procedure.

Proposed approach

  1. Add scripts/harness.sh <sensor> that reads do-harness.toml (a tiny TOML read or a generated mirror in scripts/lib/, mirroring agent_surface_generated.py), matches changed paths via git diff --name-only, and prints/runs the matching sensor command.
  2. Default git diff against the merge-base; accept --all for full verification.
  3. Extend the existing BATS suite (tests/) to cover sensor resolution for representative paths.
  4. Update agents-docs/HARNESS.md and the AGENTS.md pointer if the entry command changes.

References

Lenguaje dominante
TypeScript
Estrellas
3
Forks
2
Merge medio
11 h 49 min
PR fusionados (30 d)
102

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

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 d-oit/do-knowledge-studio

Todos los issues de d-oit/do-knowledge-studio

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.