harnessed 3.4.4 → 3.6.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/THIRD-PARTY-NOTICES.md +34 -0
- package/dist/cli.mjs +259 -27
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/workflows/capabilities.yaml +17 -18
- package/workflows/disciplines/karpathy.yaml +1 -1
- package/workflows/disciplines/language.yaml +1 -1
- package/workflows/disciplines/operational.yaml +20 -2
- package/workflows/disciplines/output-style.yaml +1 -1
- package/workflows/disciplines/priority.yaml +1 -1
- package/workflows/disciplines/protocols.yaml +1 -1
- package/workflows/discuss/auto/SKILL.md +1 -2
- package/workflows/discuss/auto/workflow.yaml +1 -2
- package/workflows/discuss/phase/SKILL.md +0 -1
- package/workflows/discuss/phase/workflow.yaml +1 -1
- package/workflows/discuss/strategic/SKILL.md +1 -2
- package/workflows/discuss/strategic/workflow.yaml +2 -3
- package/workflows/discuss/subtask/SKILL.md +0 -1
- package/workflows/discuss/subtask/workflow.yaml +1 -1
- package/workflows/judgments/fallback.yaml +1 -1
- package/workflows/judgments/parallelism-gate.yaml +4 -3
- package/workflows/judgments/phase-gate.yaml +2 -2
- package/workflows/judgments/strategic-gate.yaml +2 -2
- package/workflows/judgments/subtask-gate.yaml +2 -2
- package/workflows/judgments/tdd-gate.yaml +2 -2
- package/workflows/judgments/user-overrides.yaml +82 -0
- package/workflows/judgments/web-design-routing.yaml +1 -1
- package/workflows/judgments/web-search-routing.yaml +1 -1
- package/workflows/judgments/web-testing-routing.yaml +1 -1
- package/workflows/plan/architecture/SKILL.md +2 -3
- package/workflows/plan/architecture/workflow.yaml +2 -2
- package/workflows/plan/auto/SKILL.md +1 -2
- package/workflows/plan/auto/workflow.yaml +1 -2
- package/workflows/plan/phase/SKILL.md +3 -4
- package/workflows/plan/phase/workflow.yaml +3 -3
- package/workflows/plan-feature/SKILL.md +4 -4
- package/workflows/research/SKILL.md +5 -5
- package/workflows/research/workflow.yaml +4 -4
- package/workflows/retro/SKILL.md +2 -3
- package/workflows/retro/workflow.yaml +1 -2
- package/workflows/role-prompts.yaml +51 -5
- package/workflows/task/auto/SKILL.md +2 -3
- package/workflows/task/auto/workflow.yaml +2 -3
- package/workflows/task/clarify/SKILL.md +0 -1
- package/workflows/task/code/SKILL.md +3 -4
- package/workflows/task/code/workflow.yaml +0 -1
- package/workflows/task/deliver/SKILL.md +3 -6
- package/workflows/task/deliver/workflow.yaml +7 -6
- package/workflows/task/test/SKILL.md +0 -1
- package/workflows/task/test/workflow.yaml +1 -2
- package/workflows/verify/auto/SKILL.md +5 -6
- package/workflows/verify/auto/workflow.yaml +4 -5
- package/workflows/verify/code-review/SKILL.md +3 -5
- package/workflows/verify/code-review/workflow.yaml +1 -3
- package/workflows/verify/design/SKILL.md +3 -5
- package/workflows/verify/design/workflow.yaml +4 -5
- package/workflows/verify/multispec/SKILL.md +6 -8
- package/workflows/verify/multispec/workflow.yaml +5 -8
- package/workflows/verify/paranoid/SKILL.md +2 -3
- package/workflows/verify/paranoid/workflow.yaml +1 -2
- package/workflows/verify/progress/SKILL.md +2 -3
- package/workflows/verify/progress/workflow.yaml +0 -1
- package/workflows/verify/qa/SKILL.md +4 -5
- package/workflows/verify/qa/workflow.yaml +1 -2
- package/workflows/verify/security/SKILL.md +1 -2
- package/workflows/verify/security/workflow.yaml +1 -2
- package/workflows/verify/simplify/SKILL.md +2 -3
- package/workflows/verify/simplify/workflow.yaml +1 -2
- package/workflows/verify-work/SKILL.md +5 -7
- package/workflows/verify-work/workflow.yaml +5 -7
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,OA+Fb,CAAA;;;AC5FO,IAAM,UAAU,eAAA,CAAI","file":"index.mjs","sourcesContent":["{\n \"name\": \"harnessed\",\n \"version\": \"3.6.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 },\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 \"manifests\",\n \"workflows\",\n \"routing\",\n \"config-templates\",\n \"schemas\",\n \"README.md\",\n \"LICENSE\",\n \"NOTICE\",\n \"THIRD-PARTY-NOTICES.md\"\n ],\n \"scripts\": {\n \"dev\": \"tsup --watch\",\n \"build\": \"tsc --noEmit && tsup\",\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 \"bench\": \"vitest bench --run\",\n \"lint\": \"biome check .\",\n \"lint:fix\": \"biome check --write .\",\n \"format\": \"biome format --write .\"\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 \"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 \"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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harnessed",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "AI coding harness package manager + composition orchestrator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
"schemas",
|
|
51
51
|
"README.md",
|
|
52
52
|
"LICENSE",
|
|
53
|
-
"NOTICE"
|
|
53
|
+
"NOTICE",
|
|
54
|
+
"THIRD-PARTY-NOTICES.md"
|
|
54
55
|
],
|
|
55
56
|
"scripts": {
|
|
56
57
|
"dev": "tsup --watch",
|
|
@@ -70,9 +70,9 @@ capabilities:
|
|
|
70
70
|
|
|
71
71
|
caveman:
|
|
72
72
|
# v3.4.2: dual-install ("互为补充") — caveman ships BOTH as user-skill
|
|
73
|
-
# (git clone caveman repo into
|
|
74
|
-
# plugin (`caveman@caveman` in installed_plugins.json). Resolver
|
|
75
|
-
# either; emits combined warning only if BOTH are missing.
|
|
73
|
+
# (git clone caveman repo into <claude-home>/skills/caveman/) AND as Claude
|
|
74
|
+
# Code plugin (`caveman@caveman` in installed_plugins.json). Resolver
|
|
75
|
+
# detects either; emits combined warning only if BOTH are missing.
|
|
76
76
|
impl: caveman
|
|
77
77
|
install_type: [user-skill, plugin]
|
|
78
78
|
skill_dir: caveman
|
|
@@ -179,7 +179,7 @@ capabilities:
|
|
|
179
179
|
cmd: /ui-ux-pro-max
|
|
180
180
|
since: v2.0
|
|
181
181
|
category: tool-slash-cmd
|
|
182
|
-
description: UI/UX 默认主方案 数据驱动
|
|
182
|
+
description: UI/UX 默认主方案 数据驱动
|
|
183
183
|
fires_when:
|
|
184
184
|
- phase.has_ui_changes == true
|
|
185
185
|
- subtask.type == 'ui_polish'
|
|
@@ -192,7 +192,7 @@ capabilities:
|
|
|
192
192
|
cmd: /frontend-design
|
|
193
193
|
since: v2.0
|
|
194
194
|
category: tool-slash-cmd
|
|
195
|
-
description: UI 创意/装饰补充
|
|
195
|
+
description: UI 创意/装饰补充
|
|
196
196
|
fires_when:
|
|
197
197
|
- phase.has_ui_changes == true AND phase.requires_creative_polish == true
|
|
198
198
|
|
|
@@ -201,7 +201,7 @@ capabilities:
|
|
|
201
201
|
cmd: playwright
|
|
202
202
|
since: v2.0
|
|
203
203
|
category: tool-bundled-skill
|
|
204
|
-
description: AI 实时操作浏览器 一行 Bash (
|
|
204
|
+
description: "AI 实时操作浏览器 一行 Bash (手层 — 探查 / 调试 / 一次性交互)"
|
|
205
205
|
fires_when:
|
|
206
206
|
- subtask.type == 'browser_probe'
|
|
207
207
|
|
|
@@ -210,7 +210,7 @@ capabilities:
|
|
|
210
210
|
cmd: "@playwright/test"
|
|
211
211
|
since: v2.0
|
|
212
212
|
category: tool-plugin
|
|
213
|
-
description: E2E test framework TypeScript (
|
|
213
|
+
description: "E2E test framework TypeScript (脑层 — 写测试 / 跑 CI / 断言 / fixtures / reporter)"
|
|
214
214
|
fires_when:
|
|
215
215
|
- subtask.type == 'e2e_test' AND subtask.language == 'typescript'
|
|
216
216
|
|
|
@@ -221,7 +221,7 @@ capabilities:
|
|
|
221
221
|
cmd: /webapp-testing
|
|
222
222
|
since: v2.0
|
|
223
223
|
category: tool-bundled-skill
|
|
224
|
-
description: Python 后端联动 E2E (
|
|
224
|
+
description: "Python 后端联动 E2E (筋骨层 — Python Playwright + with_server.py)"
|
|
225
225
|
fires_when:
|
|
226
226
|
- subtask.type == 'e2e_test' AND subtask.language == 'python'
|
|
227
227
|
|
|
@@ -230,7 +230,7 @@ capabilities:
|
|
|
230
230
|
cmd: chrome-devtools
|
|
231
231
|
since: v2.0
|
|
232
232
|
category: tool-mcp
|
|
233
|
-
description: 性能/a11y/内存泄漏诊断 (
|
|
233
|
+
description: 性能/a11y/内存泄漏诊断 (非功能性 only; NOT for E2E test)
|
|
234
234
|
fires_when:
|
|
235
235
|
- subtask.type in ['perf_diagnose', 'a11y_audit', 'memory_leak']
|
|
236
236
|
|
|
@@ -239,7 +239,7 @@ capabilities:
|
|
|
239
239
|
cmd: ctx7
|
|
240
240
|
since: v2.0
|
|
241
241
|
category: tool-cli
|
|
242
|
-
description: 库 API/框架/SDK 文档抓取
|
|
242
|
+
description: 库 API/框架/SDK 文档抓取
|
|
243
243
|
fires_when:
|
|
244
244
|
- subtask.needs_library_docs == true
|
|
245
245
|
|
|
@@ -248,7 +248,7 @@ capabilities:
|
|
|
248
248
|
cmd: tavily_search
|
|
249
249
|
since: v2.0
|
|
250
250
|
category: tool-mcp
|
|
251
|
-
description: Web 搜索默认 (关键词/库 API/时效)
|
|
251
|
+
description: Web 搜索默认 (关键词/库 API/时效)
|
|
252
252
|
fires_when:
|
|
253
253
|
- subtask.needs_web_search == true
|
|
254
254
|
|
|
@@ -257,7 +257,7 @@ capabilities:
|
|
|
257
257
|
cmd: web_fetch_exa
|
|
258
258
|
since: v2.0
|
|
259
259
|
category: tool-mcp
|
|
260
|
-
description: 描述式/学术 Web 搜索
|
|
260
|
+
description: "描述式/学术 Web 搜索 (覆盖默认 Tavily 的场景 — 描述式查询 / 学术 / 批量抓多 URL)"
|
|
261
261
|
fires_when:
|
|
262
262
|
- subtask.needs_web_search == true AND subtask.search_type in ['descriptive', 'academic']
|
|
263
263
|
|
|
@@ -432,7 +432,6 @@ capabilities:
|
|
|
432
432
|
description: Manus-style persistent markdown planning (Claude Code plugin slash cmd)
|
|
433
433
|
requires:
|
|
434
434
|
plugin: planning-with-files >=2.2.0
|
|
435
|
-
plugin_path: ~/.claude/plugins/cache/planning-with-files/planning-with-files/2.34.0
|
|
436
435
|
outputs:
|
|
437
436
|
- task_plan.md
|
|
438
437
|
- progress.md
|
|
@@ -469,14 +468,14 @@ capabilities:
|
|
|
469
468
|
|
|
470
469
|
# ============================================================================
|
|
471
470
|
# Bucket 5 — Agent Teams 3 升级触发 (per D-11 + Q-AUDIT-5b schema fix +
|
|
472
|
-
#
|
|
471
|
+
# bundled Agent Teams prerequisite: CC 2.1.133+ + env var)
|
|
473
472
|
# ============================================================================
|
|
474
473
|
#
|
|
475
474
|
# Q-AUDIT-5b 2026-05-20 fix: settings_env_var root-level `env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS`
|
|
476
475
|
# (NOT nested experimental.* — Wave A 本地 settings.json 实证修正 prior schema 错误)。
|
|
477
476
|
# Per Q-AUDIT-2 D-11: harnessed doctor + setup 检查 env var present + cc_version ≥2.1.133。
|
|
478
477
|
#
|
|
479
|
-
# 5 fires_when OR-chain (multi-select
|
|
478
|
+
# 5 fires_when OR-chain (multi-select; Agent Teams upgrade triggers):
|
|
480
479
|
# 1. teammate_send_message_needed — teammate 间需 SendMessage 互通 (NOT fire-and-forget)
|
|
481
480
|
# 2. subagent_context_overflow — 某 subagent 撞 context 上限需分担
|
|
482
481
|
# 3. shared_task_list — 多 teammate 共享 task list 自协调
|
|
@@ -487,7 +486,7 @@ capabilities:
|
|
|
487
486
|
cmd: TeamCreate
|
|
488
487
|
since: v2.0
|
|
489
488
|
category: agent-platform
|
|
490
|
-
description: Agent Teams team 创建 (CC 2.1.133+ experimental
|
|
489
|
+
description: Agent Teams team 创建 (CC 2.1.133+ experimental)
|
|
491
490
|
requires:
|
|
492
491
|
settings_env_var: env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS == "1"
|
|
493
492
|
cc_version: ">=2.1.133"
|
|
@@ -513,7 +512,7 @@ capabilities:
|
|
|
513
512
|
cmd: TeamDelete
|
|
514
513
|
since: v2.0
|
|
515
514
|
category: agent-platform
|
|
516
|
-
description: Agent Teams cleanup (shutdown_request 之后 TeamDelete;
|
|
515
|
+
description: Agent Teams cleanup (shutdown_request 之后 TeamDelete; mandatory cleanup discipline)
|
|
517
516
|
requires:
|
|
518
517
|
settings_env_var: env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS == "1"
|
|
519
518
|
cc_version: ">=2.1.133"
|
|
@@ -993,7 +992,7 @@ capabilities:
|
|
|
993
992
|
- subtask.parallel_count <= 3
|
|
994
993
|
- subtask.communication_needed == false
|
|
995
994
|
|
|
996
|
-
# D-11 NEW google-workspace.yaml (gws CLI
|
|
995
|
+
# D-11 NEW google-workspace.yaml (gws CLI — Google Workspace OAuth2 keyring auth)
|
|
997
996
|
gws:
|
|
998
997
|
impl: cli
|
|
999
998
|
cmd: gws
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows/disciplines/karpathy.yaml
|
|
2
|
-
# karpathy 心法 + 编码硬限 —
|
|
2
|
+
# karpathy 心法 + 编码硬限 — bundled discipline (think-before-coding / simplicity-first / surgical-changes / goal-driven)
|
|
3
3
|
# Phase v3.0-3.3 W0.4 ship per D-09 (L0 Discipline Substrate)
|
|
4
4
|
# Snapshot of CLAUDE.md as of v3.0 ship date (K7 mitigation, verbatim)
|
|
5
5
|
|
|
@@ -20,7 +20,7 @@ rules:
|
|
|
20
20
|
stay consistent with CLI tone.
|
|
21
21
|
enforcement: info
|
|
22
22
|
trigger: every Claude response
|
|
23
|
-
check_method: read
|
|
23
|
+
check_method: read env.HARNESSED_USER_LANG, validate output lang matches
|
|
24
24
|
|
|
25
25
|
- id: preserve-english-categories
|
|
26
26
|
description: 8 类强制保留英文原文,不翻译不音译 (语言无关 — 任何 user_lang 都适用)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# workflows/disciplines/operational.yaml
|
|
2
|
-
# 操作纪律 —
|
|
3
|
-
#
|
|
2
|
+
# 操作纪律 — bundled discipline (biome preempt + commit safety +
|
|
3
|
+
# A7 ADR + no-skip-hooks + authorization-not-transitive + destructive-ops-explicit)
|
|
4
4
|
# Phase v3.0-3.3 W0.4 ship per D-09
|
|
5
5
|
# Snapshot of CLAUDE.md as of v3.0 ship date (K7 mitigation, verbatim)
|
|
6
6
|
|
|
@@ -59,3 +59,21 @@ rules:
|
|
|
59
59
|
enforcement: warn
|
|
60
60
|
trigger: cmd.requires_approval == true AND session.has_prior_approval == true
|
|
61
61
|
check_method: heuristic
|
|
62
|
+
|
|
63
|
+
# v3.6.0 Phase 3 — transparent-skip discipline (P0b 下半,Audit § fallback
|
|
64
|
+
# 三条铁律 "拿不准 → 倾向跳过 + 透明声明"). prompt-inject method delivered
|
|
65
|
+
# via src/workflow/run.ts TRANSPARENT_SKIP_RULES const appended to
|
|
66
|
+
# criticalSystemReminder_EXPERIMENTAL alongside ESCALATION_RULES (v3.5.0
|
|
67
|
+
# Phase 2 sister). Spawned subagent reads the rule + emits the verbatim
|
|
68
|
+
# skip message when gate context is ambiguous instead of silent execution.
|
|
69
|
+
- id: transparent-skip-on-low-confidence
|
|
70
|
+
description: |
|
|
71
|
+
When a phase gate condition cannot be confidently evaluated (e.g.
|
|
72
|
+
expected context fields missing, default-valued, or contradictory),
|
|
73
|
+
prefer skip + transparent explanation over silent execution.
|
|
74
|
+
Verbatim format: "这次跳过了 <phase>, 因为 <reason>. 如果你认为
|
|
75
|
+
需要请明说" / English: "Skipped <phase> because <reason>. Tell me
|
|
76
|
+
if you actually need it."
|
|
77
|
+
enforcement: warn
|
|
78
|
+
trigger: gate_evaluation_low_confidence
|
|
79
|
+
check_method: prompt-inject
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows/disciplines/output-style.yaml
|
|
2
|
-
# 对话回答风格 —
|
|
2
|
+
# 对话回答风格 — bundled discipline (BLUF + no-sycophantic + no-emoji + no-em-dash + 量词精确 + no-end-recap + no-empty-continuation-question)
|
|
3
3
|
# Phase v3.0-3.3 W0.4 ship per D-09
|
|
4
4
|
# Snapshot of CLAUDE.md as of v3.0 ship date (K7 mitigation, verbatim)
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows/disciplines/priority.yaml
|
|
2
|
-
# 优先级仲裁 —
|
|
2
|
+
# 优先级仲裁 — bundled discipline (7-tier hierarchy: gstack > gsd > superpowers > planning-with-files > karpathy > mattpocock > parallel)
|
|
3
3
|
# Phase v3.0-3.3 W0.4 ship per D-09
|
|
4
4
|
# Snapshot of CLAUDE.md as of v3.0 ship date (K7 mitigation, verbatim)
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows/disciplines/protocols.yaml
|
|
2
|
-
# 跨 CC instance 协议 —
|
|
2
|
+
# 跨 CC instance 协议 — bundled cc-handoff protocols (Ideation→Onboarding +
|
|
3
3
|
# Plan→Execute) + 写入边界表
|
|
4
4
|
# Phase v3.0-3.3 W0.4 ship per D-09
|
|
5
5
|
# Snapshot of CLAUDE.md as of v3.0 ship date (K7 mitigation, verbatim)
|
|
@@ -20,7 +20,7 @@ trigger_phrases:
|
|
|
20
20
|
## Overview
|
|
21
21
|
|
|
22
22
|
4-stage cadence Stage ① master orchestrator delegating to 3 independent sub-workflows
|
|
23
|
-
(
|
|
23
|
+
(bundled 3-tier independent clarification: strategic / phase / subtask):
|
|
24
24
|
|
|
25
25
|
| sub | gate ref | mode | when fires |
|
|
26
26
|
| --- | -------- | ---- | ---------- |
|
|
@@ -70,7 +70,6 @@ After completion, the Bash output prints a `Next:` hint on stderr suggesting the
|
|
|
70
70
|
- D-01 master orchestrator delegation pattern
|
|
71
71
|
- D-02 bare slash cmd convention (ADR 0030 namespace policy LOCK)
|
|
72
72
|
- D-04 Stage ① Discuss 三层独立判
|
|
73
|
-
- ~/.claude/CLAUDE.md "澄清/审查触发判据" 节 verbatim
|
|
74
73
|
- workflows/judgments/stage-routing.yaml — discuss-{strategic,phase,subtask}-delegate triggers
|
|
75
74
|
- workflows/discuss/{strategic,phase,subtask}/workflow.yaml — 3 sub-workflow Phase 3.4 SHIPPED
|
|
76
75
|
- workflows/judgments/fallback.yaml — 链式互不前置 chain-isolation 铁律
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# workflows/discuss/auto/workflow.yaml — Phase v3.0-3.5 W1 T3.5.W1.1
|
|
2
2
|
#
|
|
3
3
|
# Stage ① Discuss master orchestrator — 3 sub-workflow parallel gate-eval (chain-isolation 铁律
|
|
4
|
-
# per
|
|
4
|
+
# per bundled 3-tier clarification gate + fallback.yaml "链式互不前置")。
|
|
5
5
|
# 3 sub 独立判 gate, 可能全跑 / 1-2 个 / 全跳 + 透明声明。
|
|
6
6
|
#
|
|
7
7
|
# Sister refs:
|
|
8
|
-
# - ~/.claude/CLAUDE.md "澄清/审查触发判据" 节 (战略 / Phase / 子任务三层独立判)
|
|
9
8
|
# - workflows/judgments/stage-routing.yaml — discuss-{strategic,phase,subtask}-delegate triggers
|
|
10
9
|
# - workflows/discuss/{strategic,phase,subtask}/workflow.yaml — 3 sub-workflow Phase 3.4 SHIPPED
|
|
11
10
|
# - workflows/capabilities.yaml — planning-with-files (discuss sink findings.md)
|
|
@@ -68,7 +68,6 @@ After completion, the Bash output prints a `Next:` hint on stderr suggesting the
|
|
|
68
68
|
## References
|
|
69
69
|
|
|
70
70
|
- D-04 Stage ① Discuss 三层 (战略 / phase / 子任务)
|
|
71
|
-
- ~/.claude/CLAUDE.md "Phase 层: GSD /gsd-discuss-phase"
|
|
72
71
|
- workflows/capabilities.yaml — gsd-discuss-phase / planning-with-files
|
|
73
72
|
- workflows/judgments/phase-gate.yaml — gsd-discuss-phase trigger
|
|
74
73
|
- workflows/defaults.yaml — ralph_max_iterations.discuss-phase.* values (W2.2 backfill)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# workflows/discuss/phase/workflow.yaml — Phase v3.0-3.4 W0 T3.4.W0.2
|
|
2
2
|
#
|
|
3
3
|
# Stage ①.b Phase 层 sub-workflow — GSD /gsd-discuss-phase 灰色澄清
|
|
4
|
-
# (
|
|
4
|
+
# (bundled 3-tier clarification — phase layer).
|
|
5
5
|
#
|
|
6
6
|
# Sister refs:
|
|
7
7
|
# - workflows/judgments/phase-gate.yaml — gsd-discuss-phase trigger
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: discuss-strategic
|
|
3
3
|
description: |
|
|
4
4
|
Stage ①.a 战略层 discuss sub-workflow — gstack /office-hours + /plan-ceo-review 新功能 / 新
|
|
5
|
-
milestone / 新产品方向启动前强制治理关卡 (
|
|
5
|
+
milestone / 新产品方向启动前强制治理关卡 (bundled gstack governance gate, mandatory before new-feature)。
|
|
6
6
|
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
7
7
|
(gstack-office-hours + gstack-plan-ceo-review + planning-with-files) + 3 phases (gate
|
|
8
8
|
judgments.strategic-gate.* fires + planning-with-files /plan findings.md 持久化)。
|
|
@@ -73,7 +73,6 @@ After completion, the Bash output prints a `Next:` hint on stderr suggesting the
|
|
|
73
73
|
|
|
74
74
|
- D-04 Stage ① Discuss 三层 (战略 / phase / 子任务)
|
|
75
75
|
- D-12 gstack 治理关卡强制
|
|
76
|
-
- ~/.claude/CLAUDE.md "gstack 治理关卡 🔒 新功能启动前强制"
|
|
77
76
|
- workflows/capabilities.yaml — gstack-office-hours / gstack-plan-ceo-review / planning-with-files
|
|
78
77
|
- workflows/judgments/strategic-gate.yaml — office-hours / plan-ceo-review triggers
|
|
79
78
|
- workflows/defaults.yaml — ralph_max_iterations.discuss-strategic.* values (W2.2 backfill)
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# workflows/discuss/strategic/workflow.yaml — Phase v3.0-3.4 W0 T3.4.W0.1
|
|
2
2
|
#
|
|
3
3
|
# Stage ①.a 战略层 sub-workflow — gstack 治理关卡 /office-hours + /plan-ceo-review
|
|
4
|
-
# 新功能 / 新 milestone / 新产品方向启动前强制 (
|
|
5
|
-
#
|
|
4
|
+
# 新功能 / 新 milestone / 新产品方向启动前强制 (bundled gstack governance gate —
|
|
5
|
+
# mandatory before new-project / new-milestone / new-feature phases).
|
|
6
6
|
#
|
|
7
7
|
# Sister refs:
|
|
8
|
-
# - ~/.claude/CLAUDE.md "澄清/审查触发判据 — 战略层" 章节
|
|
9
8
|
# - workflows/judgments/strategic-gate.yaml — office-hours / plan-ceo-review triggers
|
|
10
9
|
# - workflows/capabilities.yaml — gstack-office-hours / gstack-plan-ceo-review / planning-with-files
|
|
11
10
|
# - src/workflow/schema/workflow.ts WorkflowSchemaV3 (Phase 3.3 W0.5 SHIPPED)
|
|
@@ -74,7 +74,6 @@ After completion, the Bash output prints a `Next:` hint on stderr suggesting the
|
|
|
74
74
|
|
|
75
75
|
- D-04 Stage ① Discuss 三层 (战略 / phase / 子任务)
|
|
76
76
|
- D-05 phase.invokes_tools conditional fire (NEW v3)
|
|
77
|
-
- ~/.claude/CLAUDE.md "子任务层: superpowers:brainstorming"
|
|
78
77
|
- workflows/capabilities.yaml — superpowers-brainstorming / grill-with-docs / grill-me
|
|
79
78
|
- workflows/judgments/subtask-gate.yaml — brainstorming trigger
|
|
80
79
|
- workflows/defaults.yaml — ralph_max_iterations.discuss-subtask.* values (W2.2 backfill)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# workflows/discuss/subtask/workflow.yaml — Phase v3.0-3.4 W0 T3.4.W0.3
|
|
2
2
|
#
|
|
3
3
|
# Stage ①.c 子任务层 sub-workflow — superpowers brainstorming (≥2 approach / 核心算法 /
|
|
4
|
-
# API contract / 错误成本高)
|
|
4
|
+
# API contract / 错误成本高). Bundled 3-tier clarification — subtask layer.
|
|
5
5
|
#
|
|
6
6
|
# Sister refs:
|
|
7
7
|
# - workflows/judgments/subtask-gate.yaml — brainstorming trigger
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows/judgments/fallback.yaml
|
|
2
|
-
# Fallback 三条铁律 —
|
|
2
|
+
# Fallback 三条铁律 — bundled judgment (unsure → tend to skip with transparent disclosure / explicit user signal overrides / tiers independent)
|
|
3
3
|
# Sister: 不同于 triggers (fires_when/skips_when 模式), 本 file 使用 'rules' 顶级 key
|
|
4
4
|
# Phase v2.0-2.3 Wave 0 T2.3.W0.2 ship per R20.16 + D-16
|
|
5
5
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# workflows/judgments/parallelism-gate.yaml
|
|
2
|
-
# Parallelism 判据 —
|
|
3
|
-
#
|
|
2
|
+
# Parallelism 判据 — bundled subagent vs Agent Teams routing rules
|
|
3
|
+
# (4 triggers: subagent-default / main-session-fallback / agent-teams-upgrade / ralph-loop-wrapper)
|
|
4
|
+
# Bundled Agent Teams lifecycle: 5 upgrade triggers + cleanup discipline
|
|
4
5
|
# Phase v2.0-2.3 Wave 0 T2.3.W0.2 ship per D-11 (parallelism-gate) + R20.10 (ralph-loop 正交 wrapper)
|
|
5
6
|
|
|
6
7
|
schema_version: harnessed.judgment.v1
|
|
@@ -23,7 +24,7 @@ triggers:
|
|
|
23
24
|
|
|
24
25
|
agent-teams-upgrade:
|
|
25
26
|
description: |
|
|
26
|
-
Upgrade — Claude Code Agent Teams 升级
|
|
27
|
+
Upgrade — Claude Code Agent Teams 升级 (bundled rule):
|
|
27
28
|
5 任一触发即可 (teammate SendMessage 互通 / subagent context overflow /
|
|
28
29
|
共享 task list 自协调 / 对立假设辩论 / 全栈三路协同)。
|
|
29
30
|
开 team 前 token 成本估算 team_cost < 2 × subagent_cost 才划算。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# workflows/judgments/phase-gate.yaml
|
|
2
|
-
# Phase 层 (Phase tier) 判据 —
|
|
3
|
-
#
|
|
2
|
+
# Phase 层 (Phase tier) 判据 — bundled judgment (3-tier independent clarification: strategic / phase / subtask)
|
|
3
|
+
# Pairs with: GSD /gsd-discuss-phase orchestration gate (also /gsd-new-project, /gsd-next; when capability available)
|
|
4
4
|
# Phase v2.0-2.3 Wave 0 T2.3.W0.2 ship per D-04 + D-16 multi-file 分类
|
|
5
5
|
|
|
6
6
|
schema_version: harnessed.judgment.v1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# workflows/judgments/strategic-gate.yaml
|
|
2
|
-
# 战略层 (Strategy tier) 判据 —
|
|
3
|
-
#
|
|
2
|
+
# 战略层 (Strategy tier) 判据 — bundled judgment (3-tier independent clarification: strategic / phase / subtask)
|
|
3
|
+
# Pairs with: gstack /office-hours + /plan-ceo-review governance gate (when capability available)
|
|
4
4
|
# Phase v2.0-2.3 Wave 0 T2.3.W0.2 ship per D-04 + D-16 multi-file 分类
|
|
5
5
|
|
|
6
6
|
schema_version: harnessed.judgment.v1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# workflows/judgments/subtask-gate.yaml
|
|
2
|
-
# 子任务层 (Subtask tier) 判据 —
|
|
3
|
-
#
|
|
2
|
+
# 子任务层 (Subtask tier) 判据 — bundled judgment (3-tier independent clarification: strategic / phase / subtask)
|
|
3
|
+
# Pairs with: superpowers:brainstorming skill (与 superpowers TDD red-green-refactor 并行评估; when capability available)
|
|
4
4
|
# Phase v2.0-2.3 Wave 0 T2.3.W0.2 ship per D-04 + D-16 multi-file 分类
|
|
5
5
|
|
|
6
6
|
schema_version: harnessed.judgment.v1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# workflows/judgments/tdd-gate.yaml
|
|
2
|
-
# TDD 判据 —
|
|
3
|
-
#
|
|
2
|
+
# TDD 判据 — bundled judgment (Execute-stage TDD: red-green-refactor strongly recommended for core logic / algorithms / high-reliability)
|
|
3
|
+
# Pairs with: superpowers:test-driven-development skill (alias mattpocock /tdd per D-13; when capability available)
|
|
4
4
|
# Phase v2.0-2.3 Wave 0 T2.3.W0.2 ship per D-13 (6 fires + 3 skips)
|
|
5
5
|
|
|
6
6
|
schema_version: harnessed.judgment.v1
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# workflows/judgments/user-overrides.yaml
|
|
2
|
+
# v3.6.0 Phase 3 — user-override keyword → trigger gate refs lookup
|
|
3
|
+
# (P0b 上半,Audit § fallback 三条铁律 "用户明示 → 覆盖判据" mechanism)
|
|
4
|
+
#
|
|
5
|
+
# Runtime: CLI extracts keywords from user task description, matches against
|
|
6
|
+
# `keywords` substring patterns, collects matched `triggers[]` into
|
|
7
|
+
# gateContext.user_overrides[]. judgmentResolver pre-checks user_overrides[]
|
|
8
|
+
# before expression evaluation — if gateRef in user_overrides → fires=true bypass.
|
|
9
|
+
#
|
|
10
|
+
# Cross-validation status (Wave 1 灰区 #1/#2/#3 resolved per user ack 2026-05-25):
|
|
11
|
+
# - arch-review.triggers[0] points to stage-routing.plan-architecture-delegate
|
|
12
|
+
# (no architecture-gate.yaml exists; semantically nearest existing entry per
|
|
13
|
+
# 灰区 #2 Option C — no scope creep)
|
|
14
|
+
# - phase-discuss.triggers[0] points to phase-gate.gsd-discuss-phase (no
|
|
15
|
+
# `gray-areas` entry exists in phase-gate.yaml; renamed per 灰区 #1/#3
|
|
16
|
+
# Option A — naming drift fix, semantic equivalent)
|
|
17
|
+
|
|
18
|
+
schema_version: harnessed.user-overrides.v1
|
|
19
|
+
|
|
20
|
+
overrides:
|
|
21
|
+
- id: brainstorm
|
|
22
|
+
keywords:
|
|
23
|
+
- "先 brainstorm"
|
|
24
|
+
- "brainstorm 一下"
|
|
25
|
+
- "讨论一下"
|
|
26
|
+
- "先想想"
|
|
27
|
+
- "先讨论"
|
|
28
|
+
- "brainstorm first"
|
|
29
|
+
- "let's brainstorm"
|
|
30
|
+
triggers:
|
|
31
|
+
- judgments.subtask-gate.brainstorming.fires
|
|
32
|
+
- judgments.stage-routing.discuss-subtask-delegate.fires
|
|
33
|
+
|
|
34
|
+
- id: strategic-review
|
|
35
|
+
keywords:
|
|
36
|
+
- "跑 office-hours"
|
|
37
|
+
- "office-hours"
|
|
38
|
+
- "找 CEO"
|
|
39
|
+
- "战略层"
|
|
40
|
+
- "战略评估"
|
|
41
|
+
- "plan-ceo-review"
|
|
42
|
+
triggers:
|
|
43
|
+
- judgments.strategic-gate.office-hours.fires
|
|
44
|
+
- judgments.strategic-gate.plan-ceo-review.fires
|
|
45
|
+
- judgments.stage-routing.discuss-strategic-delegate.fires
|
|
46
|
+
|
|
47
|
+
- id: arch-review
|
|
48
|
+
keywords:
|
|
49
|
+
- "架构审查"
|
|
50
|
+
- "plan-eng-review"
|
|
51
|
+
- "复杂架构"
|
|
52
|
+
- "engineering review"
|
|
53
|
+
triggers:
|
|
54
|
+
- judgments.stage-routing.plan-architecture-delegate.fires
|
|
55
|
+
|
|
56
|
+
- id: phase-discuss
|
|
57
|
+
keywords:
|
|
58
|
+
- "phase 澄清"
|
|
59
|
+
- "灰色澄清"
|
|
60
|
+
- "discuss-phase"
|
|
61
|
+
- "gsd-discuss-phase"
|
|
62
|
+
triggers:
|
|
63
|
+
- judgments.phase-gate.gsd-discuss-phase.fires
|
|
64
|
+
- judgments.stage-routing.discuss-phase-delegate.fires
|
|
65
|
+
|
|
66
|
+
- id: paranoid-review
|
|
67
|
+
keywords:
|
|
68
|
+
- "关键模块"
|
|
69
|
+
- "paranoid review"
|
|
70
|
+
- "/review"
|
|
71
|
+
- "staff engineer review"
|
|
72
|
+
triggers:
|
|
73
|
+
- judgments.stage-routing.verify-paranoid-critical.fires
|
|
74
|
+
|
|
75
|
+
- id: tdd
|
|
76
|
+
keywords:
|
|
77
|
+
- "强制 TDD"
|
|
78
|
+
- "TDD first"
|
|
79
|
+
- "red-green-refactor"
|
|
80
|
+
- "test first"
|
|
81
|
+
triggers:
|
|
82
|
+
- judgments.tdd-gate.tdd-strongly-suggested.fires
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows/judgments/web-design-routing.yaml
|
|
2
|
-
#
|
|
2
|
+
# Bundled routing rule: ui-ux-pro-max 默认主方案 (数据驱动) + frontend-design 创意补充 + arbitration
|
|
3
3
|
# Phase v3.0-3.2 Wave A RESEARCH → 3.3 W0.3 ship per D-11
|
|
4
4
|
#
|
|
5
5
|
# 默认 ui-ux-pro-max 优先 (数据驱动 / 标准化 / 可解释);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows/judgments/web-search-routing.yaml
|
|
2
|
-
#
|
|
2
|
+
# Bundled routing rule: 条件式 fallback + Tavily/Exa MCP routing (with WebFetch / gh CLI / ctx7 CLI fallbacks)
|
|
3
3
|
# Phase v3.0-3.2 Wave A RESEARCH → 3.3 W0.3 ship per D-11
|
|
4
4
|
#
|
|
5
5
|
# 路由优先级 (per rules/web-search.md):
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# workflows/judgments/web-testing-routing.yaml
|
|
2
|
-
#
|
|
2
|
+
# Bundled routing rule: 三层职责矩阵 (脑 @playwright/test / 手 playwright-cli / 筋骨 webapp-testing) + 决策树
|
|
3
3
|
# Phase v3.0-3.2 Wave A RESEARCH → 3.3 W0.3 ship per D-11
|
|
4
4
|
#
|
|
5
5
|
# 三层职责矩阵 verbatim:
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plan-architecture
|
|
3
3
|
description: |
|
|
4
|
-
Stage ②.a 架构层 plan sub-workflow — gstack /plan-eng-review (
|
|
5
|
-
|
|
4
|
+
Stage ②.a 架构层 plan sub-workflow — gstack /plan-eng-review (复杂架构强制治理关卡;
|
|
5
|
+
bundled plan-stage cadence: mandatory before complex-architecture phases)。schema_version:
|
|
6
6
|
harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
7
7
|
[plan-eng-review] + 1 phase (01-plan-eng-review) + gate literal expr
|
|
8
8
|
`phase.is_complex_architecture == true`。Triggered by harnessed CLI `harnessed
|
|
@@ -70,6 +70,5 @@ After completion, the Bash output prints a `Next:` hint on stderr suggesting the
|
|
|
70
70
|
|
|
71
71
|
- D-04 Stage ② Plan 二层 (架构 / 计划)
|
|
72
72
|
- D-12 gstack 治理关卡 (复杂架构强制)
|
|
73
|
-
- ~/.claude/CLAUDE.md "⚠️ 复杂架构前: /plan-eng-review"
|
|
74
73
|
- workflows/capabilities.yaml — plan-eng-review (Bucket 7)
|
|
75
74
|
- workflows/defaults.yaml — ralph_max_iterations.plan-architecture.* values (W2.2 backfill)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# workflows/plan/architecture/workflow.yaml — Phase v3.0-3.4 W0 T3.4.W0.4
|
|
2
2
|
#
|
|
3
|
-
# Stage ②.a 架构层 sub-workflow — gstack /plan-eng-review (
|
|
4
|
-
#
|
|
3
|
+
# Stage ②.a 架构层 sub-workflow — gstack /plan-eng-review (mandatory before
|
|
4
|
+
# complex-architecture phases per bundled plan-stage cadence).
|
|
5
5
|
#
|
|
6
6
|
# Sister refs:
|
|
7
7
|
# - workflows/capabilities.yaml — plan-eng-review (Bucket 7 gstack 33 optional registry)
|
|
@@ -21,7 +21,7 @@ trigger_phrases:
|
|
|
21
21
|
## Overview
|
|
22
22
|
|
|
23
23
|
4-stage cadence Stage ② master orchestrator delegating to 2 sequential sub-workflows
|
|
24
|
-
(
|
|
24
|
+
(bundled Plan-stage cadence + D-06 planning-with-files cross-cutting tool):
|
|
25
25
|
|
|
26
26
|
| order | sub | gate ref | mode | when fires |
|
|
27
27
|
| ----- | --- | -------- | ---- | ---------- |
|
|
@@ -71,6 +71,5 @@ After completion, the Bash output prints a `Next:` hint on stderr suggesting the
|
|
|
71
71
|
- D-01 master orchestrator delegation pattern
|
|
72
72
|
- D-02 bare slash cmd convention (ADR 0030 namespace policy LOCK)
|
|
73
73
|
- D-06 planning-with-files cross-cutting tool (NOT 独立 sub-workflow)
|
|
74
|
-
- ~/.claude/CLAUDE.md "Plan 阶段" 节 verbatim
|
|
75
74
|
- workflows/judgments/stage-routing.yaml — plan-{architecture,phase}-delegate triggers
|
|
76
75
|
- workflows/plan/{architecture,phase}/workflow.yaml — 2 sub-workflow Phase 3.4 SHIPPED
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# workflows/plan/auto/workflow.yaml — Phase v3.0-3.5 W1 T3.5.W1.2
|
|
2
2
|
#
|
|
3
3
|
# Stage ② Plan master orchestrator — 串行 invoke 2 sub (architecture conditional → phase always)
|
|
4
|
-
# per
|
|
4
|
+
# per bundled Plan-stage cadence + RESEARCH-workflows § Area 2。
|
|
5
5
|
# planning-with-files /plan 是 D-06 cross-cutting tool (NOT 独立 sub-workflow per user clarification 2)。
|
|
6
6
|
#
|
|
7
7
|
# Sister refs:
|
|
8
|
-
# - ~/.claude/CLAUDE.md "Plan 阶段 (GSD + planning-with-files, 可选 gstack 架构审查)" 节
|
|
9
8
|
# - workflows/judgments/stage-routing.yaml — plan-{architecture,phase}-delegate triggers
|
|
10
9
|
# - workflows/plan/{architecture,phase}/workflow.yaml — 2 sub-workflow Phase 3.4 SHIPPED
|
|
11
10
|
# - workflows/capabilities.yaml — planning-with-files + plan-eng-review + gsd-plan-phase
|