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

Offen
#1,217 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
72/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
bash, git
Bereich
tooling

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
TypeScript
Sterne
3
Forks
2
Ø Merge
11 Std. 49 Min.
Gemergte PRs (30 T.)
102

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus d-oit/do-knowledge-studio

Alle Issues in d-oit/do-knowledge-studio

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.