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

オープン
#1,217 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, git
領域
tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
3
フォーク
2
平均マージ
11時間 49分
マージ済み PR(30日)
102

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

d-oit/do-knowledge-studio のほかの issue

d-oit/do-knowledge-studio の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。