Migrate do-harness.toml to the current [[sensors]] schema (do-harness CLI 0.6.0 cannot parse it)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 90/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- bash, github-actions, shell
调研方向
阅读 docs/adoption.md 中的传感器契约,然后检查 do-harness.toml 和 tests/do-harness-path-selection.bats。更新配置及其路径选择断言,使其使用当前的 [[sensors]] 模式,同时保持离线路径与 CI 路径筛选器之间的对齐。完成的标准是 do-harness explain --changed 能够解析该文件,schema-version 为 1,并且路径选择测试通过。
由索引模型根据 Issue 内容生成。
描述
Summary
do-harness.toml uses the legacy [sensors.<name>] map shape. The current do-harness CLI (v0.6.0) rejects it:
$ do-harness explain --changed
error: invalid config file do-harness.toml: TOML parse error at line 7, column 2
7 | [sensors.feedback]
| ^^^^^^^
invalid type: map, expected a sequence
do-harness migrate cannot fix it automatically (--write refuses: "refuses conflicts it cannot resolve"); its dry run only offers schema-version = 1, which still leaves the map-vs-sequence mismatch.
Required change
- Rewrite
do-harness.tomlto the[[sensors]]array contract (name,argv,when-changed,severity,timeoutper docs/adoption.md):command = "pnpm run lint && ..."becomesargv = ["bash", "-lc", "pnpm run lint && ..."](argv is executed without a shell).pathsmaps towhen-changedglobs.- Name the advisory/lifecycle semantics explicitly (
severity = "warn"for advisory sensors,--strictbehavior documented).
- Update
tests/do-harness-path-selection.bats, which asserts the old shape (tomllib.load(f).get("sensors", {})+s in sensors): with[[sensors]],tomllibyields a list, so the membership assertion must index by name instead. - Keep the offline-paths ↔ CI path-filter alignment assertions green (
do-harness-path-selection.batschecks alignment with the CI workflow's path filters). - Bump
schema-versionto 1 in the same change.
Impact
- Unblocks the entire
do-harnessCLI workflow (verify,explain,status,hook install) in this repository; today every command exits with a config error. - No behavior change to CI; the file feeds only the local agent harness.
References
- Sensor contract: https://github.com/d-o-hub/do-harness/blob/main/docs/adoption.md#cross-stack-command-recipes
- Found while running the do-harness workflow in this repo (follow-up to the workflow-adoption work; related: #1217's sensor-runner idea).
- 主要语言
- 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
-
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 天内回复
-
chore priority: low skills
难度 3/5 1-2 天 新手友好度 72/100
d-oit/do-knowledge-studio#1217 ·
维护者通常 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
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
yavorsky/unbuilt.app#65 ·
-
CVE security
难度 2/5 1-3 小时 新手友好度 68/100
mckinsey/agents-at-scale-ark#4091 · 1 条评论 ·
维护者通常 1 天内回复
-
factory:subtask
难度 1/5 1 小时以内 新手友好度 94/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
NUS-Project-SaBai/project-sabai#386 ·
维护者通常 3 天内回复
-
android needs clarification
难度 2/5 1-3 小时 新手友好度 72/100
super-productivity/super-productivity#12105 · 3 条评论 ·
维护者通常 1 天内回复