harnessed 2.0.0 → 3.0.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/README.md +263 -28
- package/dist/cli.mjs +486 -190
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/workflows/capabilities.yaml +468 -0
- package/workflows/defaults.yaml +71 -4
- package/workflows/disciplines/karpathy.yaml +47 -0
- package/workflows/disciplines/language.yaml +38 -0
- package/workflows/disciplines/operational.yaml +61 -0
- package/workflows/disciplines/output-style.yaml +62 -0
- package/workflows/disciplines/priority.yaml +28 -0
- package/workflows/disciplines/protocols.yaml +70 -0
- package/workflows/discuss/auto/.gitkeep +0 -0
- package/workflows/discuss/auto/SKILL.md +63 -0
- package/workflows/discuss/auto/workflow.yaml +40 -0
- package/workflows/discuss/phase/SKILL.md +61 -0
- package/workflows/discuss/phase/workflow.yaml +35 -0
- package/workflows/discuss/strategic/SKILL.md +66 -0
- package/workflows/discuss/strategic/workflow.yaml +47 -0
- package/workflows/discuss/subtask/SKILL.md +67 -0
- package/workflows/discuss/subtask/workflow.yaml +33 -0
- package/workflows/judgments/stage-routing.yaml +93 -0
- package/workflows/judgments/web-design-routing.yaml +37 -0
- package/workflows/judgments/web-search-routing.yaml +52 -0
- package/workflows/judgments/web-testing-routing.yaml +50 -0
- package/workflows/plan/architecture/SKILL.md +62 -0
- package/workflows/plan/architecture/workflow.yaml +33 -0
- package/workflows/plan/auto/.gitkeep +0 -0
- package/workflows/plan/auto/SKILL.md +63 -0
- package/workflows/plan/auto/workflow.yaml +41 -0
- package/workflows/plan/phase/SKILL.md +64 -0
- package/workflows/plan/phase/workflow.yaml +37 -0
- package/workflows/research/SKILL.md +6 -2
- package/workflows/research/workflow.yaml +34 -3
- package/workflows/retro/SKILL.md +68 -0
- package/workflows/retro/workflow.yaml +40 -0
- package/workflows/task/auto/.gitkeep +0 -0
- package/workflows/task/auto/SKILL.md +68 -0
- package/workflows/task/auto/workflow.yaml +57 -0
- package/workflows/task/clarify/SKILL.md +83 -0
- package/workflows/task/clarify/workflow.yaml +39 -0
- package/workflows/task/code/SKILL.md +89 -0
- package/workflows/task/code/workflow.yaml +55 -0
- package/workflows/task/deliver/SKILL.md +118 -0
- package/workflows/task/deliver/workflow.yaml +77 -0
- package/workflows/task/test/SKILL.md +93 -0
- package/workflows/task/test/workflow.yaml +44 -0
- package/workflows/verify/auto/.gitkeep +0 -0
- package/workflows/verify/auto/SKILL.md +77 -0
- package/workflows/verify/auto/workflow.yaml +74 -0
- package/workflows/verify/code-review/SKILL.md +69 -0
- package/workflows/verify/code-review/workflow.yaml +32 -0
- package/workflows/verify/design/SKILL.md +72 -0
- package/workflows/verify/design/workflow.yaml +33 -0
- package/workflows/verify/multispec/SKILL.md +86 -0
- package/workflows/verify/multispec/workflow.yaml +58 -0
- package/workflows/verify/paranoid/SKILL.md +71 -0
- package/workflows/verify/paranoid/workflow.yaml +30 -0
- package/workflows/verify/progress/SKILL.md +67 -0
- package/workflows/verify/progress/workflow.yaml +44 -0
- package/workflows/verify/qa/SKILL.md +73 -0
- package/workflows/verify/qa/workflow.yaml +31 -0
- package/workflows/verify/security/SKILL.md +67 -0
- package/workflows/verify/security/workflow.yaml +31 -0
- package/workflows/verify/simplify/SKILL.md +67 -0
- package/workflows/verify/simplify/workflow.yaml +31 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# workflows/verify/security/workflow.yaml — Phase v3.0-3.4 W0 T3.4.W0.13b
|
|
2
|
+
#
|
|
3
|
+
# Stage ④.e verify sub-workflow — gstack /cso 安全审查 OWASP/auth/secrets
|
|
4
|
+
# (has_auth_or_secrets 触发, 可选 conditional, sister ~/.claude/CLAUDE.md "可选 /cso" verbatim)。
|
|
5
|
+
#
|
|
6
|
+
# Sister refs:
|
|
7
|
+
# - ~/.claude/CLAUDE.md "Verify 阶段 — 可选 /cso" 章节
|
|
8
|
+
# - workflows/judgments/stage-routing.yaml verify-security-secrets trigger (has_auth_or_secrets)
|
|
9
|
+
# - workflows/capabilities.yaml — gstack-cso (Bucket 3 治理关卡, impl: gstack, cmd: /cso)
|
|
10
|
+
# - workflows/verify-work/workflow.yaml v2 SHIPPED phase 06-cso-conditional sister pattern
|
|
11
|
+
# - .planning/phase-v3.0-3.2/RESEARCH-workflows.md § Area 2 verify/security example verbatim
|
|
12
|
+
|
|
13
|
+
schema_version: harnessed.workflow.v3
|
|
14
|
+
workflow: verify-security
|
|
15
|
+
description: |
|
|
16
|
+
Stage ④.e gstack /cso 安全审查 OWASP/auth/secrets (has_auth_or_secrets 触发, 可选 conditional)。
|
|
17
|
+
Gate: judgments.stage-routing.verify-security-secrets.fires (phase.has_auth_or_secrets == true)
|
|
18
|
+
— security-critical PR fire only (auth / session / credentials / api keys / SQL / OWASP top 10);
|
|
19
|
+
普通 PR 应 skip — gstack /cso 是高成本 Paranoid CSO 视角重武器。
|
|
20
|
+
|
|
21
|
+
disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
|
|
22
|
+
tools_available: [gstack-cso]
|
|
23
|
+
|
|
24
|
+
phases:
|
|
25
|
+
- id: 01-cso
|
|
26
|
+
name: gstack-cso (安全审查 OWASP/auth/secrets — has_auth_or_secrets 触发)
|
|
27
|
+
upstream: gstack
|
|
28
|
+
capability: '{{ capabilities.gstack-cso.cmd }}'
|
|
29
|
+
model: opus
|
|
30
|
+
gate: judgments.stage-routing.verify-security-secrets.fires
|
|
31
|
+
max_iterations: 3
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: verify-simplify
|
|
3
|
+
description: |
|
|
4
|
+
Stage ④.g verify sub-workflow — code-simplifier 末尾串行 (移除重复 / 多余逻辑,
|
|
5
|
+
sister ~/.claude/CLAUDE.md "Verify 阶段 — 末尾 code-simplifier" verbatim)。
|
|
6
|
+
schema_version: harnessed.workflow.v3 with disciplines_applied (6 default) + tools_available
|
|
7
|
+
(code-simplifier) + 1 phase (gate ref is_final_step 末尾串行)。
|
|
8
|
+
Triggered by harnessed CLI `harnessed verify-simplify --phase <num>` or slash command
|
|
9
|
+
`/verify-simplify` after `harnessed setup`.
|
|
10
|
+
trigger_phrases:
|
|
11
|
+
- "verify simplify"
|
|
12
|
+
- "code simplify"
|
|
13
|
+
- "代码简化"
|
|
14
|
+
- "移除重复逻辑"
|
|
15
|
+
- "跑 verify-simplify"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# verify-simplify workflow (v3)
|
|
19
|
+
|
|
20
|
+
## Overview
|
|
21
|
+
|
|
22
|
+
1-phase sub-workflow mapping CLAUDE.md "Verify 阶段 — 末尾 code-simplifier" onto harnessed
|
|
23
|
+
runtime (Phase v3.0-3.4 W0.13d — D-04 Stage ④ Verify 7 sub + Pattern A sub-workflow ship)。
|
|
24
|
+
|
|
25
|
+
| phase | id | upstream | model | capability | gate |
|
|
26
|
+
| ----- | -- | -------- | ----- | ---------- | ---- |
|
|
27
|
+
| 1 | `01-simplify` | mattpocock-skills | sonnet | `{{ capabilities.code-simplifier.cmd }}` | `judgments.stage-routing.verify-simplify-tail.fires` |
|
|
28
|
+
|
|
29
|
+
Per-phase config loads from `workflows/verify/simplify/workflow.yaml`; engine 4-level gate
|
|
30
|
+
resolver evaluates `phase.is_final_step == true` via expr-eval — true 则 invoke
|
|
31
|
+
`/code-simplifier` (移除重复 / 多余逻辑), false 则 skip。verify 链末尾步骤,
|
|
32
|
+
sister verify-work v2 phase 08-code-simplifier verbatim 位置。
|
|
33
|
+
|
|
34
|
+
## Capability refs
|
|
35
|
+
|
|
36
|
+
Sister `workflows/capabilities.yaml` entries:
|
|
37
|
+
- `code-simplifier` — Bucket 1 mattpocock 高频招式 (impl: mattpocock-skills,
|
|
38
|
+
cmd: /code-simplifier, fires_when: stage=='verify' AND is_final_step)
|
|
39
|
+
|
|
40
|
+
## Gate ref
|
|
41
|
+
|
|
42
|
+
Sister `workflows/judgments/stage-routing.yaml`:
|
|
43
|
+
- `verify-simplify-tail.fires` — `phase.stage == 'verify' and phase.is_final_step == true`
|
|
44
|
+
|
|
45
|
+
## Routing rules
|
|
46
|
+
|
|
47
|
+
- ✅ **触发**: verify chain 末尾步骤 (所有其他 verify sub 已 ship, 准备 code 简化收尾)
|
|
48
|
+
- ❌ **跳过**: verify chain 中间步骤 (避免过早简化干扰后续 review)
|
|
49
|
+
|
|
50
|
+
## CLI invocation
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# Dry-run preview — arbitrate-only, never spawns SDK.
|
|
54
|
+
harnessed verify-simplify --phase <num> --dry-run --non-interactive
|
|
55
|
+
|
|
56
|
+
# Apply path — real SDK spawn (gate eval true 时).
|
|
57
|
+
harnessed verify-simplify --phase <num> --apply
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## References
|
|
61
|
+
|
|
62
|
+
- D-04 Stage ④ Verify 7 sub 分解
|
|
63
|
+
- ~/.claude/CLAUDE.md "Verify 阶段 — 末尾 code-simplifier" verbatim
|
|
64
|
+
- workflows/capabilities.yaml — code-simplifier
|
|
65
|
+
- workflows/judgments/stage-routing.yaml — verify-simplify-tail trigger
|
|
66
|
+
- workflows/defaults.yaml — ralph_max_iterations.verify-simplify.* values (W2.2 backfill)
|
|
67
|
+
- workflows/verify-work/workflow.yaml v2 SHIPPED phase 08-code-simplifier sister verbatim
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# workflows/verify/simplify/workflow.yaml — Phase v3.0-3.4 W0 T3.4.W0.13d
|
|
2
|
+
#
|
|
3
|
+
# Stage ④.g verify sub-workflow — code-simplifier 末尾串行 (移除重复 / 多余逻辑)
|
|
4
|
+
# (sister ~/.claude/CLAUDE.md "Verify 阶段 — 末尾 code-simplifier" verbatim)。
|
|
5
|
+
#
|
|
6
|
+
# Sister refs:
|
|
7
|
+
# - ~/.claude/CLAUDE.md "Verify 阶段 — code-simplifier 末尾串行" 章节
|
|
8
|
+
# - workflows/judgments/stage-routing.yaml verify-simplify-tail trigger (is_final_step)
|
|
9
|
+
# - workflows/capabilities.yaml — code-simplifier (Bucket 1 mattpocock, fires_when stage=='verify' AND is_final_step)
|
|
10
|
+
# - workflows/verify-work/workflow.yaml v2 SHIPPED phase 08-code-simplifier sister pattern
|
|
11
|
+
# - .planning/phase-v3.0-3.2/RESEARCH-workflows.md § Area 2 verify/simplify example verbatim
|
|
12
|
+
|
|
13
|
+
schema_version: harnessed.workflow.v3
|
|
14
|
+
workflow: verify-simplify
|
|
15
|
+
description: |
|
|
16
|
+
Stage ④.g code-simplifier 末尾串行 (移除重复 / 多余逻辑, sister CLAUDE.md "Verify 阶段
|
|
17
|
+
— 末尾 code-simplifier" verbatim)。fires_when phase.stage == 'verify' AND phase.is_final_step
|
|
18
|
+
== true (sister capabilities.yaml code-simplifier entry + stage-routing.verify-simplify-tail
|
|
19
|
+
trigger)。
|
|
20
|
+
|
|
21
|
+
disciplines_applied: [karpathy, output-style, language, operational, priority, protocols]
|
|
22
|
+
tools_available: [code-simplifier]
|
|
23
|
+
|
|
24
|
+
phases:
|
|
25
|
+
- id: 01-simplify
|
|
26
|
+
name: code-simplifier (末尾串行 — 移除重复 / 多余逻辑)
|
|
27
|
+
upstream: mattpocock-skills
|
|
28
|
+
capability: '{{ capabilities.code-simplifier.cmd }}'
|
|
29
|
+
model: sonnet
|
|
30
|
+
gate: judgments.stage-routing.verify-simplify-tail.fires
|
|
31
|
+
max_iterations: '{{ defaults.ralph_max_iterations.verify-simplify.01-simplify }}'
|