Make the do-harness.toml sensor map executable: add ./scripts/harness.sh <sensor>
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 内容生成。
描述
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
- Add
scripts/harness.sh <sensor>that readsdo-harness.toml(a tiny TOML read or a generated mirror inscripts/lib/, mirroringagent_surface_generated.py), matches changed paths viagit diff --name-only, and prints/runs the matching sensor command. - Default
git diffagainst the merge-base; accept--allfor full verification. - Extend the existing BATS suite (
tests/) to cover sensor resolution for representative paths. - Update
agents-docs/HARNESS.mdand the AGENTS.md pointer if the entry command changes.
References
- Repo's own harness engineering doc (
agents-docs/HARNESS.md) — "iterate on failure" principle. - Harness engineering as a 2026 practice (progressive loading, verification loops): https://www.nxcode.io/resources/news/harness-engineering-complete-guide-ai-agent-codex-2026
- 主要语言
- TypeScript
- 星标
- 3
- 派生
- 2
- 平均合并
- 11 小时 49 分钟
- 30 天内合并 PR
- 102
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
d-oit/do-knowledge-studio 的其他 Issue
-
Migrate do-harness.toml to the current [[sensors]] schema (do-harness CLI 0.6.0 cannot parse it)未关闭chore config priority: low
难度 2/5 1-3 小时 新手友好度 90/100
d-oit/do-knowledge-studio#1219 ·
维护者通常 1 天内回复
-
Dependabot only scans the root manifest — add workspace packages/* directories, cooldown, and grouped updates可能已有人在做 @d-oit 今天认领。 未关闭ci config deps priority: medium
难度 2/5 1-3 小时 新手友好度 88/100
d-oit/do-knowledge-studio#1212 ·
维护者通常 1 天内回复
-
documentation priority: low
难度 3/5 1-2 天 新手友好度 68/100
d-oit/do-knowledge-studio#1218 ·
维护者通常 1 天内回复
-
discussion enhancement performance priority: low search
难度 4/5 3-5 天 新手友好度 52/100
d-oit/do-knowledge-studio#1216 ·
维护者通常 1 天内回复
-
ai-agent enhancement feature priority: low
难度 4/5 3-5 天 新手友好度 68/100
d-oit/do-knowledge-studio#1215 ·
维护者通常 1 天内回复
查看 d-oit/do-knowledge-studio 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
danielmiessler/LifeOS#3028 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
-
iOS: last line of a long UITextView text is sometimes not drawn (frame a fraction of a point short)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 90/100
Koenkk/zigbee2mqtt#33855 ·
维护者通常 1 天内回复