harnessed 5.0.16 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/bin/harnessed-update-reminder-worker.mjs +1 -1
- package/bin/harnessed-update-reminder.mjs +1 -1
- package/dist/cli.mjs +1314 -322
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/manifests/skill-packs/planning-with-files.yaml +6 -1
- package/package.json +1 -1
- package/workflows/auto/SKILL.md +1 -1
- package/workflows/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/auto/SKILL.md +1 -1
- package/workflows/discuss/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/phase/SKILL.md +1 -1
- package/workflows/discuss/phase/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/strategic/SKILL.md +1 -1
- package/workflows/discuss/strategic/SKILL.zh-Hans.md +1 -1
- package/workflows/discuss/subtask/SKILL.md +1 -1
- package/workflows/discuss/subtask/SKILL.zh-Hans.md +1 -1
- package/workflows/harnessed-update/SKILL.md +1 -1
- package/workflows/harnessed-update/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/ai-integration/SKILL.md +1 -1
- package/workflows/plan/ai-integration/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/architecture/SKILL.md +1 -1
- package/workflows/plan/architecture/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/auto/SKILL.md +1 -1
- package/workflows/plan/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/phase/SKILL.md +1 -1
- package/workflows/plan/phase/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/secure/SKILL.md +1 -1
- package/workflows/plan/secure/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/spec/SKILL.md +1 -1
- package/workflows/plan/spec/SKILL.zh-Hans.md +1 -1
- package/workflows/plan/ui/SKILL.md +1 -1
- package/workflows/plan/ui/SKILL.zh-Hans.md +1 -1
- package/workflows/research/SKILL.md +3 -1
- package/workflows/research/SKILL.zh-Hans.md +3 -1
- package/workflows/retro/SKILL.md +1 -1
- package/workflows/retro/SKILL.zh-Hans.md +1 -1
- package/workflows/role-prompts.yaml +6 -3
- package/workflows/role-prompts.zh-Hans.yaml +6 -3
- package/workflows/ship/auto/SKILL.md +1 -1
- package/workflows/ship/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/ship/preflight/SKILL.md +1 -1
- package/workflows/ship/preflight/SKILL.zh-Hans.md +1 -1
- package/workflows/task/auto/SKILL.md +1 -1
- package/workflows/task/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/task/clarify/SKILL.md +1 -1
- package/workflows/task/clarify/SKILL.zh-Hans.md +1 -1
- package/workflows/task/code/SKILL.md +1 -1
- package/workflows/task/code/SKILL.zh-Hans.md +1 -1
- package/workflows/task/deliver/SKILL.md +1 -1
- package/workflows/task/deliver/SKILL.zh-Hans.md +1 -1
- package/workflows/task/test/SKILL.md +1 -1
- package/workflows/task/test/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/auto/SKILL.md +1 -1
- package/workflows/verify/auto/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/code-review/SKILL.md +1 -1
- package/workflows/verify/code-review/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/design/SKILL.md +1 -1
- package/workflows/verify/design/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/eval-review/SKILL.md +1 -1
- package/workflows/verify/eval-review/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/multispec/SKILL.md +1 -1
- package/workflows/verify/multispec/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/paranoid/SKILL.md +1 -1
- package/workflows/verify/paranoid/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/progress/SKILL.md +1 -1
- package/workflows/verify/progress/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/qa/SKILL.md +1 -1
- package/workflows/verify/qa/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/second-opinion/SKILL.md +1 -1
- package/workflows/verify/second-opinion/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/security/SKILL.md +1 -1
- package/workflows/verify/security/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/simplify/SKILL.md +1 -1
- package/workflows/verify/simplify/SKILL.zh-Hans.md +1 -1
- package/workflows/verify/validate-phase/SKILL.md +1 -1
- package/workflows/verify/validate-phase/SKILL.zh-Hans.md +1 -1
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/index.ts"],"names":[],"mappings":";AAAA,IAAA,eAAA,GAAA;AAAA,EAEE,OAAA,EAAW,OA8Gb,CAAA;;;AC3GO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"5.1.0\",\n \"description\": \"AI coding harness package manager + composition orchestrator\",\n \"type\": \"module\",\n \"license\": \"Apache-2.0\",\n \"author\": \"easyinplay\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/easyinplay/harnessed.git\"\n },\n \"homepage\": \"https://github.com/easyinplay/harnessed#readme\",\n \"bugs\": \"https://github.com/easyinplay/harnessed/issues\",\n \"keywords\": [\n \"claude-code\",\n \"ai-harness\",\n \"package-manager\",\n \"composition\",\n \"skill-pack\",\n \"mcp\",\n \"orchestrator\"\n ],\n \"engines\": {\n \"node\": \">=22.0.0\"\n },\n \"packageManager\": \"pnpm@10.12.0\",\n \"bin\": {\n \"harnessed\": \"./dist/cli.mjs\",\n \"harnessed-inject-state\": \"./bin/harnessed-inject-state.mjs\"\n },\n \"main\": \"./dist/index.mjs\",\n \"types\": \"./dist/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.mjs\",\n \"default\": \"./dist/index.mjs\"\n },\n \"./schemas\": {\n \"types\": \"./dist/schemas/index.d.ts\",\n \"import\": \"./dist/schemas/index.mjs\"\n },\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"dist\",\n \"bin\",\n \"manifests\",\n \"messages\",\n \"workflows\",\n \"routing\",\n \"config-templates\",\n \"schemas\",\n \"CHANGELOG.md\",\n \"README.md\",\n \"README-zh.md\",\n \"LICENSE\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.md\"\n ],\n \"scripts\": {\n \"dev\": \"tsup --watch\",\n \"build\": \"tsc --noEmit && tsup && node ./scripts/build-hooks.mjs\",\n \"prepack\": \"npm run build\",\n \"build:hooks\": \"node ./scripts/build-hooks.mjs\",\n \"build:schema\": \"node ./scripts/build-schema.mjs\",\n \"validate:schema\": \"node ./scripts/validate-schema.mjs\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run --passWithNoTests\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage --passWithNoTests\",\n \"test:codex-live\": \"node ./scripts/codex-live/run.mjs\",\n \"bench\": \"vitest bench --run\",\n \"bench:runtime\": \"node scripts/benchmark-runtime.mjs\",\n \"test:runtime-channels\": \"node scripts/runtime-channel-smoke.mjs\",\n \"test:docs\": \"node --test tests/docs/install-channels.contract.mjs\",\n \"lint\": \"biome check .\",\n \"lint:fix\": \"biome check --write .\",\n \"format\": \"biome format --write .\",\n \"build:binary\": \"bun scripts/build-binary.mjs\"\n },\n \"dependencies\": {\n \"@anthropic-ai/claude-agent-sdk\": \"0.3.142\",\n \"@clack/prompts\": \"^0.10.1\",\n \"@sinclair/typebox\": \"^0.34.49\",\n \"ajv\": \"^8.20.0\",\n \"ajv-errors\": \"^3.0.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"commander\": \"^13.0.0\",\n \"diff\": \"^9.0.0\",\n \"expr-eval\": \"^2.0.2\",\n \"picocolors\": \"^1.1.1\",\n \"proper-lockfile\": \"^4.1.2\",\n \"smol-toml\": \"^1.9.1\",\n \"undici\": \"^8.12.1\",\n \"yaml\": \"^2.9.0\"\n },\n \"devDependencies\": {\n \"@biomejs/biome\": \"^2.0.0\",\n \"@types/node\": \"^22.10.0\",\n \"@types/proper-lockfile\": \"^4.1.4\",\n \"@vitest/coverage-v8\": \"^4.0.0\",\n \"esbuild\": \"0.27.7\",\n \"tsup\": \"^8.3.0\",\n \"typescript\": \"^5.6.0\",\n \"vitest\": \"^4.0.0\"\n },\n \"pnpm\": {\n \"onlyBuiltDependencies\": [\n \"esbuild\"\n ]\n }\n}\n","// Main library entry — re-exports public APIs.\n// phase 1.1 batch 1: skeleton only; schema validator wired in batch 2 (T3+).\n\nimport pkg from '../package.json' with { type: 'json' }\n\nexport const VERSION = pkg.version\n"]}
|
|
@@ -45,7 +45,12 @@ spec:
|
|
|
45
45
|
codex:
|
|
46
46
|
install:
|
|
47
47
|
method: npx-skill-installer
|
|
48
|
-
|
|
48
|
+
# Phase 91 — narrowed to one explicit `--skill planning-with-files`
|
|
49
|
+
# selection plus `--global` (user-scope-only install, no cwd copy): the
|
|
50
|
+
# install footprint is provably bounded to ~/.agents/skills/planning-with-files,
|
|
51
|
+
# the exact paths verify below checks. `--agent` stays out of the manifest;
|
|
52
|
+
# the installer injects `--agent codex` per platform (v4.14.0 T4).
|
|
53
|
+
cmd: "npx --yes skills@latest add OthmanAdi/planning-with-files --skill planning-with-files --global --copy -y"
|
|
49
54
|
npm_version: ^1.5.7
|
|
50
55
|
# The skill target is exactly `planning-with-files` (one repo segment ==
|
|
51
56
|
# one skill dir). Declaring it makes the target set provable, so the
|
package/package.json
CHANGED
package/workflows/auto/SKILL.md
CHANGED
|
@@ -131,7 +131,7 @@ Do NOT pipe to `harnessed run auto` — that is the CI/headless path ({{ host.ha
|
|
|
131
131
|
|
|
132
132
|
**If you lose context (compaction / resume):** run `harnessed status --recover` first — it reads the ledger and prints "you are here, this is next" so you resume at the first `pending` sub instead of restarting. If the ledger is empty, re-run steps 2-3.
|
|
133
133
|
|
|
134
|
-
<!-- harnessed-generated:v4.13.
|
|
134
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
135
135
|
|
|
136
136
|
## References
|
|
137
137
|
|
|
@@ -127,7 +127,7 @@ Sister `workflows/capabilities.yaml`:
|
|
|
127
127
|
|
|
128
128
|
**若丢失上下文(compaction / resume):** 先跑 `harnessed status --recover` —— 它读 ledger 并打印「你在这里,下一步是什么」,让你从第一个 `pending` sub 续跑而非重启。若 ledger 为空,重跑 step 2-3。
|
|
129
129
|
|
|
130
|
-
<!-- harnessed-generated:v4.13.
|
|
130
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
131
131
|
|
|
132
132
|
## 参考文档
|
|
133
133
|
|
|
@@ -104,4 +104,4 @@ Do NOT pipe to `harnessed run harnessed-update` — that is the CI/headless path
|
|
|
104
104
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete harnessed-update --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
105
105
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail harnessed-update --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
106
106
|
|
|
107
|
-
<!-- harnessed-generated:v4.13.
|
|
107
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -86,4 +86,4 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
86
86
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete harnessed-update --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
87
87
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail harnessed-update --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
88
88
|
|
|
89
|
-
<!-- harnessed-generated:v4.13.
|
|
89
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -36,4 +36,4 @@ Do NOT pipe to `harnessed run plan-ai-integration` — that is the CI/headless p
|
|
|
36
36
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete plan-ai-integration --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
37
37
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-ai-integration --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
38
38
|
|
|
39
|
-
<!-- harnessed-generated:v4.13.
|
|
39
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -35,4 +35,4 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
35
35
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete plan-ai-integration --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
36
36
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-ai-integration --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
37
37
|
|
|
38
|
-
<!-- harnessed-generated:v4.13.
|
|
38
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -68,7 +68,7 @@ Do NOT pipe to `harnessed run plan-architecture` — that is the CI/headless pat
|
|
|
68
68
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete plan-architecture --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
69
69
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-architecture --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
70
70
|
|
|
71
|
-
<!-- harnessed-generated:v4.13.
|
|
71
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
72
72
|
|
|
73
73
|
## References
|
|
74
74
|
|
|
@@ -67,7 +67,7 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
67
67
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete plan-architecture --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
68
68
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-architecture --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
69
69
|
|
|
70
|
-
<!-- harnessed-generated:v4.13.
|
|
70
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
71
71
|
|
|
72
72
|
## 参考文档
|
|
73
73
|
|
|
@@ -80,7 +80,7 @@ Do NOT pipe to `harnessed run plan` — that is the CI/headless path ({{ host.ha
|
|
|
80
80
|
|
|
81
81
|
**If you lose context (compaction / resume):** run `harnessed status --recover` first — it reads the ledger and prints "you are here, this is next" so you resume at the first `pending` sub instead of restarting. If the ledger is empty, re-run steps 2-3.
|
|
82
82
|
|
|
83
|
-
<!-- harnessed-generated:v4.13.
|
|
83
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
84
84
|
|
|
85
85
|
## References
|
|
86
86
|
|
|
@@ -79,7 +79,7 @@ Sister `workflows/capabilities.yaml`:
|
|
|
79
79
|
|
|
80
80
|
**若丢失上下文(compaction / resume):** 先跑 `harnessed status --recover` —— 它读 ledger 并打印「你在这里,下一步是什么」,让你从第一个 `pending` sub 续跑而非重启。若 ledger 为空,重跑 step 2-3。
|
|
81
81
|
|
|
82
|
-
<!-- harnessed-generated:v4.13.
|
|
82
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
83
83
|
|
|
84
84
|
## 参考文档
|
|
85
85
|
|
|
@@ -70,7 +70,7 @@ Do NOT pipe to `harnessed run plan-phase` — that is the CI/headless path ({{ h
|
|
|
70
70
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete plan-phase --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
71
71
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-phase --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
72
72
|
|
|
73
|
-
<!-- harnessed-generated:v4.13.
|
|
73
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
74
74
|
|
|
75
75
|
## References
|
|
76
76
|
|
|
@@ -69,7 +69,7 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
69
69
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete plan-phase --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
70
70
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-phase --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
71
71
|
|
|
72
|
-
<!-- harnessed-generated:v4.13.
|
|
72
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
73
73
|
|
|
74
74
|
## 参考文档
|
|
75
75
|
|
|
@@ -36,4 +36,4 @@ Do NOT pipe to `harnessed run plan-secure` — that is the CI/headless path ({{
|
|
|
36
36
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete plan-secure --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
37
37
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-secure --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
38
38
|
|
|
39
|
-
<!-- harnessed-generated:v4.13.
|
|
39
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -35,4 +35,4 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
35
35
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete plan-secure --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
36
36
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-secure --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
37
37
|
|
|
38
|
-
<!-- harnessed-generated:v4.13.
|
|
38
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -36,4 +36,4 @@ Do NOT pipe to `harnessed run plan-spec` — that is the CI/headless path ({{ ho
|
|
|
36
36
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete plan-spec --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
37
37
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-spec --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
38
38
|
|
|
39
|
-
<!-- harnessed-generated:v4.13.
|
|
39
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -35,4 +35,4 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
35
35
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete plan-spec --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
36
36
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-spec --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
37
37
|
|
|
38
|
-
<!-- harnessed-generated:v4.13.
|
|
38
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -36,4 +36,4 @@ Do NOT pipe to `harnessed run plan-ui` — that is the CI/headless path ({{ host
|
|
|
36
36
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete plan-ui --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
37
37
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail plan-ui --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
38
38
|
|
|
39
|
-
<!-- harnessed-generated:v4.13.
|
|
39
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -35,4 +35,4 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
35
35
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete plan-ui --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
36
36
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail plan-ui --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
37
37
|
|
|
38
|
-
<!-- harnessed-generated:v4.13.
|
|
38
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -70,4 +70,6 @@ Do NOT pipe to `harnessed run research` — that is the CI/headless path ({{ hos
|
|
|
70
70
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete research --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
71
71
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail research --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
6. Persistence — the `result_file` IS the research report: the sub writes its full findings there and you read them back from that file. Do NOT create a planning-with-files triple (`task_plan.md` / `progress.md` / `findings.md`) or a GSD skeleton (`.planning/STATE.md` / `ROADMAP.md` / `REQUIREMENTS.md`) around a standalone research run, and do not invoke `planning-with-files` or any localized variant of it (e.g. `planning-with-files-de`): the canonical skill belongs to managed phase workflows whose caller explicitly asks for planning-doc persistence, and a localized variant is never a substitute for it. If you explicitly direct the report into an existing phase dir or a dedicated report path, `result_file` still carries the link + one-paragraph summary + completion marker.
|
|
74
|
+
|
|
75
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -68,4 +68,6 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
68
68
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete research --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
69
69
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail research --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
6. 持久化 —— `result_file` **就是**调研报告:sub 把完整发现写进该文件,你从该文件读回。**不要**围绕独立调研创建 planning-with-files 三件套(`task_plan.md` / `progress.md` / `findings.md`)或 GSD 骨架(`.planning/STATE.md` / `ROADMAP.md` / `REQUIREMENTS.md`),也不要调用 `planning-with-files` 或其任何本地化变体(如 `planning-with-files-de`):canonical skill 属于「调用方明确要求规划文档持久化」的受管 phase workflow,本地化变体永远不是它的替代品。若你明确把报告导向现有 phase 目录或专用报告路径,`result_file` 仍须携带链接 + 一段摘要 + 完成标记。
|
|
72
|
+
|
|
73
|
+
<!-- harnessed-generated:v4.13.1 -->
|
package/workflows/retro/SKILL.md
CHANGED
|
@@ -62,7 +62,7 @@ Do NOT pipe to `harnessed run retro` — that is the CI/headless path ({{ host.h
|
|
|
62
62
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete retro --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
63
63
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail retro --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
64
64
|
|
|
65
|
-
<!-- harnessed-generated:v4.13.
|
|
65
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
66
66
|
|
|
67
67
|
## References
|
|
68
68
|
|
|
@@ -60,7 +60,7 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
60
60
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete retro --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
61
61
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail retro --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
62
62
|
|
|
63
|
-
<!-- harnessed-generated:v4.13.
|
|
63
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
64
64
|
|
|
65
65
|
## 参考文档
|
|
66
66
|
|
|
@@ -148,7 +148,7 @@ prompts:
|
|
|
148
148
|
specialist: "Research analyst"
|
|
149
149
|
responsibility: |
|
|
150
150
|
Multi-source investigation (docs / web search / codebase grep / library
|
|
151
|
-
probe) producing a
|
|
151
|
+
probe) producing a research report with citations, NOT speculation. Use
|
|
152
152
|
`ctx7` for library docs, `tavily-mcp` / `exa-mcp` for web, `gh` CLI for
|
|
153
153
|
GitHub artifacts, and codebase `Grep` for internal references.
|
|
154
154
|
checklist:
|
|
@@ -156,9 +156,12 @@ prompts:
|
|
|
156
156
|
- "Cite version explicitly when discussing library / framework APIs (training cutoff may be stale)"
|
|
157
157
|
- "Capture conflicting sources side-by-side; do not silently pick one"
|
|
158
158
|
- "Flag `OPEN: <question>` for items the user must decide; never paper over"
|
|
159
|
-
- "
|
|
159
|
+
- "Write the full report into the `result_file` named in the Result delivery section — that file IS the default report, and no other file is required for delivery"
|
|
160
|
+
- "Never create planning docs on your own initiative: no planning-with-files triple (`task_plan.md` / `progress.md` / `findings.md`) and no GSD skeleton (`.planning/STATE.md` / `ROADMAP.md` / `REQUIREMENTS.md`), and do NOT invoke `planning-with-files` — nor any localized variant of it such as `planning-with-files-de` — when the caller did not ask for planning-doc persistence"
|
|
161
|
+
- "Only when the caller explicitly names an existing phase dir or a dedicated report path: write the report there exactly as instructed (in a managed phase workflow that is `.planning/phases/<NN>-<slug>/findings.md` via the canonical `planning-with-files` skill — never a self-selected localized substitute), and record the link plus a one-paragraph summary in `result_file` together with the completion marker"
|
|
162
|
+
- "Write the report and any working notes in the harnessed user's configured language (see the ## Language section); citations, URLs and identifiers stay verbatim"
|
|
160
163
|
severity: "verified / unverified / conflicting / open"
|
|
161
|
-
description: "Multi-source research producing a citation-backed
|
|
164
|
+
description: "Multi-source research producing a citation-backed report (no speculation)."
|
|
162
165
|
|
|
163
166
|
retro:
|
|
164
167
|
primary_cap: "retro-gstack"
|
|
@@ -133,7 +133,7 @@ prompts:
|
|
|
133
133
|
specialist: "调研分析师"
|
|
134
134
|
responsibility: |
|
|
135
135
|
多源调研(docs / web search / 代码库 grep / library 探查),产出一份
|
|
136
|
-
|
|
136
|
+
带引用的调研报告,而非臆测。library 文档用 `ctx7`,web 用
|
|
137
137
|
`tavily-mcp` / `exa-mcp`,GitHub 工件用 `gh` CLI,内部引用用代码库
|
|
138
138
|
`Grep`。
|
|
139
139
|
checklist:
|
|
@@ -141,9 +141,12 @@ prompts:
|
|
|
141
141
|
- "讨论 library / framework API 时显式标注版本(训练截止可能已过时)"
|
|
142
142
|
- "把相互冲突的来源并列呈现;不要悄悄只选一个"
|
|
143
143
|
- "用户必须裁决的事项标 `OPEN: <问题>`;绝不掩盖"
|
|
144
|
-
- "
|
|
144
|
+
- "把完整报告写进 Result delivery 节指定的 `result_file` —— 该文件**就是**默认报告,交付不需要任何其他文件"
|
|
145
|
+
- "绝不自行创建规划文档:不建 planning-with-files 三件套(`task_plan.md` / `progress.md` / `findings.md`),不建 GSD 骨架(`.planning/STATE.md` / `ROADMAP.md` / `REQUIREMENTS.md`);调用方未要求规划文档持久化时,不调用 `planning-with-files` —— 也不调用它的任何本地化变体(如 `planning-with-files-de`)"
|
|
146
|
+
- "仅当调用方明确给出现有 phase 目录或专用报告路径时:严格按要求把报告写到该处(受管 phase workflow 中即经 canonical `planning-with-files` skill 写 `.planning/phases/<NN>-<slug>/findings.md` —— 绝不自选本地化替代品),并在 `result_file` 记录链接 + 一段摘要 + 完成标记"
|
|
147
|
+
- "报告与工作笔记用 harnessed 用户配置的语言书写(见 ## Language 节);引用、URL、标识符保持原文"
|
|
145
148
|
severity: "verified / unverified / conflicting / open"
|
|
146
|
-
description: "
|
|
149
|
+
description: "多源调研产出带引用支撑的报告(不臆测)。"
|
|
147
150
|
|
|
148
151
|
retro:
|
|
149
152
|
primary_cap: "retro-gstack"
|
|
@@ -75,4 +75,4 @@ Do NOT pipe to `harnessed run ship` — that is the CI/headless path ({{ host.ha
|
|
|
75
75
|
|
|
76
76
|
**If you lose context (compaction / resume):** run `harnessed status --recover` first — it reads the ledger and prints "you are here, this is next" so you resume at the first `pending` sub instead of restarting. If the ledger is empty, re-run steps 2-3.
|
|
77
77
|
|
|
78
|
-
<!-- harnessed-generated:v4.13.
|
|
78
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -73,4 +73,4 @@ preflight 通过后,主控将 PR + deploy 委派给 gstack `/ship`(组合复
|
|
|
73
73
|
|
|
74
74
|
**若丢失上下文(compaction / resume):** 先跑 `harnessed status --recover` —— 它读 ledger 并打印「你在这里,下一步是什么」,让你从第一个 `pending` sub 续跑而非重启。若 ledger 为空,重跑 step 2-3。
|
|
75
75
|
|
|
76
|
-
<!-- harnessed-generated:v4.13.
|
|
76
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -71,4 +71,4 @@ Do NOT pipe to `harnessed run ship-preflight` — that is the CI/headless path (
|
|
|
71
71
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete ship-preflight --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
72
72
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail ship-preflight --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
73
73
|
|
|
74
|
-
<!-- harnessed-generated:v4.13.
|
|
74
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -66,4 +66,4 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
66
66
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete ship-preflight --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
67
67
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail ship-preflight --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
68
68
|
|
|
69
|
-
<!-- harnessed-generated:v4.13.
|
|
69
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
@@ -89,7 +89,7 @@ Do NOT pipe to `harnessed run task` — that is the CI/headless path ({{ host.ha
|
|
|
89
89
|
|
|
90
90
|
**If you lose context (compaction / resume):** run `harnessed status --recover` first — it reads the ledger and prints "you are here, this is next" so you resume at the first `pending` sub instead of restarting. If the ledger is empty, re-run steps 2-3.
|
|
91
91
|
|
|
92
|
-
<!-- harnessed-generated:v4.13.
|
|
92
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
93
93
|
|
|
94
94
|
## References
|
|
95
95
|
|
|
@@ -88,7 +88,7 @@ Sister `workflows/capabilities.yaml`:
|
|
|
88
88
|
|
|
89
89
|
**若丢失上下文(compaction / resume):** 先跑 `harnessed status --recover` —— 它读 ledger 并打印「你在这里,下一步是什么」,让你从第一个 `pending` sub 续跑而非重启。若 ledger 为空,重跑 step 2-3。
|
|
90
90
|
|
|
91
|
-
<!-- harnessed-generated:v4.13.
|
|
91
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
92
92
|
|
|
93
93
|
## References
|
|
94
94
|
|
|
@@ -80,7 +80,7 @@ Do NOT pipe to `harnessed run task-code` — that is the CI/headless path ({{ ho
|
|
|
80
80
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete task-code --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
81
81
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail task-code --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
82
82
|
|
|
83
|
-
<!-- harnessed-generated:v4.13.
|
|
83
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
84
84
|
|
|
85
85
|
## References
|
|
86
86
|
|
|
@@ -78,7 +78,7 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
78
78
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete task-code --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
79
79
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail task-code --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
80
80
|
|
|
81
|
-
<!-- harnessed-generated:v4.13.
|
|
81
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
82
82
|
|
|
83
83
|
## References
|
|
84
84
|
|
|
@@ -108,7 +108,7 @@ Do NOT pipe to `harnessed run task-deliver` — that is the CI/headless path ({{
|
|
|
108
108
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete task-deliver --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
109
109
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail task-deliver --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
110
110
|
|
|
111
|
-
<!-- harnessed-generated:v4.13.
|
|
111
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
112
112
|
|
|
113
113
|
## References
|
|
114
114
|
|
|
@@ -108,7 +108,7 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
108
108
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete task-deliver --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
109
109
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail task-deliver --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
110
110
|
|
|
111
|
-
<!-- harnessed-generated:v4.13.
|
|
111
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
112
112
|
|
|
113
113
|
## References
|
|
114
114
|
|
|
@@ -108,7 +108,7 @@ Do NOT pipe to `harnessed run task-test` — that is the CI/headless path ({{ ho
|
|
|
108
108
|
4. When `result_file` carries the completion marker: Bash `harnessed checkpoint complete task-test --result-file <result_file> --wait 60 --summary "<one-line>"`. Fail-CLOSED — it blocks unless every declared `artifacts_expected` file exists, the TDD boundary passes (non-empty evidence / both the red and green sides present / the test file was not deleted), and the result file carries a verbatim `<promise>COMPLETE</promise>` (or a structured COMPLETE status). `--wait 60` bounds ONE call to 60 seconds — run the SAME command again when the sub needs longer, never an unbounded wait. `--result <text>` is the inline variant; `--result-file` wins and is quoting-safe on Windows. A `result-wait-timeout` exit means the sub has not signalled YET — repeat the same command; `--force` records an audited override (`evidence_status=overridden`) — it does not silently pass.
|
|
109
109
|
5. If the complete gate blocked: Bash `harnessed checkpoint fail task-test --failing-tests <n>` to record the attempt. It prints `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP` once a stop condition is reached. Respawn ONLY while none of those three has fired; any one of them means STOP — re-scope the subtask, fix the blocker, or escalate to the user.
|
|
110
110
|
|
|
111
|
-
<!-- harnessed-generated:v4.13.
|
|
111
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
112
112
|
|
|
113
113
|
## References
|
|
114
114
|
|
|
@@ -103,7 +103,7 @@ freestyle 会旁路引擎(无 ledger、无 evidence guard)。harnessed 给你 sp
|
|
|
103
103
|
4. 当 `result_file` 携带完成标记时:Bash `harnessed checkpoint complete task-test --result-file <result_file> --wait 60 --summary "<one-line>"`。fail-CLOSED —— 除非声明的 `artifacts_expected` 文件全部存在、TDD boundary 通过(证据非空 / 红绿两侧齐全 / 测试文件未被删除)、且结果文件含逐字 `<promise>COMPLETE</promise>`(或结构化 COMPLETE 状态),否则拦下。`--wait 60` 只约束**单次**调用为 60 秒 —— sub 需要更久就重复**同一条**命令,绝不无限等待。`--result <text>` 是内联变体;`--result-file` 优先且在 Windows 上引号安全。`result-wait-timeout` 退出码表示 sub 尚未发出完成信号 —— 重复同一条命令;`--force` 记录可审计的覆盖(`evidence_status=overridden`),不是静默放行。
|
|
104
104
|
5. 若 complete 闸门拦下:Bash `harnessed checkpoint fail task-test --failing-tests <n>` 记录本次尝试。命中停机条件时会打印 `BUDGET-EXHAUSTED` / `NO-PROGRESS` / `BREAK-LOOP`。**仅当**三者都未触发时才允许重 spawn;任一触发即 STOP —— 重新收敛子任务范围、修掉阻塞点,或上报用户。
|
|
105
105
|
|
|
106
|
-
<!-- harnessed-generated:v4.13.
|
|
106
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
107
107
|
|
|
108
108
|
## 参考资料
|
|
109
109
|
|
|
@@ -104,7 +104,7 @@ Do NOT pipe to `harnessed run verify` — that is the CI/headless path ({{ host.
|
|
|
104
104
|
|
|
105
105
|
**If you lose context (compaction / resume):** run `harnessed status --recover` first — it reads the ledger and prints "you are here, this is next" so you resume at the first `pending` sub instead of restarting. If the ledger is empty, re-run steps 2-3.
|
|
106
106
|
|
|
107
|
-
<!-- harnessed-generated:v4.13.
|
|
107
|
+
<!-- harnessed-generated:v4.13.1 -->
|
|
108
108
|
|
|
109
109
|
## References
|
|
110
110
|
|