harnessed 4.42.0 → 4.43.1

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.
@@ -6,7 +6,6 @@
6
6
  schema_version: harnessed.discipline.v1
7
7
  discipline: priority
8
8
  enforcement_layer: workflow
9
- auto_enforce: true
10
9
 
11
10
  priority_hierarchy:
12
11
  - gstack # 决策层 最高优先
@@ -37,5 +36,3 @@ rules:
37
36
  e.g., gstack /office-hours + GSD /gsd-discuss-phase fire together → gstack runs first
38
37
  enforcement: warn
39
38
  trigger: capabilities.fired_count > 1
40
- check_method: heuristic
41
- # NEW src/discipline/enforcement/before-spawn.ts hook — sort fired capabilities by tier rank
@@ -6,7 +6,6 @@
6
6
  schema_version: harnessed.discipline.v1
7
7
  discipline: priority
8
8
  enforcement_layer: workflow
9
- auto_enforce: true
10
9
 
11
10
  priority_hierarchy:
12
11
  - gstack # 决策层 最高优先
@@ -37,5 +36,3 @@ rules:
37
36
  e.g., gstack /office-hours + GSD /gsd-discuss-phase 同 fire → gstack 先跑
38
37
  enforcement: warn
39
38
  trigger: capabilities.fired_count > 1
40
- check_method: heuristic
41
- # NEW src/discipline/enforcement/before-spawn.ts hook — sort fired capabilities by tier rank
@@ -3,11 +3,15 @@
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)
6
+ #
7
+ # 4.43.0 — required_fields / forbidden_phrases / file_ownership were structured
8
+ # fields that nothing ever checked (and `auto_enforce` a switch nothing read). Their
9
+ # content is kept below as description text: same information, no longer
10
+ # pretending to be machine-enforced.
6
11
 
7
12
  schema_version: harnessed.discipline.v1
8
13
  discipline: protocols
9
14
  enforcement_layer: workflow
10
- auto_enforce: false # 默认 NOT auto-enforce — 协议是 cross-session, harnessed 主要 validate
11
15
 
12
16
  rules: []
13
17
 
@@ -15,56 +19,27 @@ protocols:
15
19
  cc-handoff-ideation-to-onboarding:
16
20
  description: |
17
21
  场景 A — Ideation-CC 写自包含产品设计文档;Onboarding-CC 新项目目录读取并启动 GSD
18
- required_fields:
19
- - 业务目的
20
- - 范围/边界
21
- - 关键决策+决策理由
22
- - 技术栈+理由
23
- - 已识别风险
24
- - 推荐 milestone 划分
25
- - "Open questions (OPEN: <问题>, decision required by user)"
26
- forbidden_phrases:
27
- - "TODO"
28
- - "待补充"
29
- - "暂定"
22
+ 必备字段:业务目的 / 范围/边界 / 关键决策+决策理由 / 技术栈+理由 / 已识别风险 /
23
+ 推荐 milestone 划分 / Open questions (OPEN: <问题>, decision required by user)
24
+ 禁用字样:TODO / 待补充 / 暂定
30
25
 
31
26
  plan-execute-cc-ready-metadata:
32
27
  description: |
33
28
  场景 B — Plan-CC 离场 PLAN.md 必须 ready-to-execute (metadata 标记)
34
- required_fields:
35
- - "status: ready-to-execute"
36
- - "每个 task: 精确文件路径"
37
- - "每个 task: acceptance criteria"
38
- - "每个 task: 依赖前置 task 编号"
39
- - "## Open Questions 节为空"
40
- forbidden_phrases:
41
- - "TODO"
42
- - "待补充"
43
- - "暂定"
29
+ 必备:status: ready-to-execute;每个 task 含精确文件路径、acceptance criteria、
30
+ 依赖前置 task 编号;## Open Questions 节为空
31
+ 禁用字样:TODO / 待补充 / 暂定
44
32
 
45
33
  file-ownership-strict:
46
34
  description: |
47
35
  跨 CC 写入边界 — 下游 CC 不修改上游 artifact;歧义写到 PROGRESS.md ## Blocked
48
- file_ownership:
49
- ideation-cc:
50
- - 产品设计文档
51
- onboarding-cc:
52
- - ".planning/* (初始化)"
53
- - 项目代码
54
- plan-cc:
55
- - SPEC.md
56
- - DISCUSS.md
57
- - PLAN.md
58
- - RESEARCH.md
59
- execute-cc:
60
- - PROGRESS.md
61
- - VERIFICATION.md
62
- - 代码
63
- - commit
36
+ ideation-cc:产品设计文档
37
+ onboarding-cc:.planning/* (初始化)、项目代码
38
+ plan-cc:SPEC.md、DISCUSS.md、PLAN.md、RESEARCH.md
39
+ execute-cc:PROGRESS.md、VERIFICATION.md、代码、commit
64
40
  rules:
65
41
  - id: no-modify-upstream-artifact
66
42
  description: |
67
43
  下游 CC 发现上游 artifact 模糊 → 写 PROGRESS.md ## Blocked,不修改上游
68
44
  enforcement: halt
69
45
  trigger: cc.role == 'execute' AND file.target matches 'PLAN.md|SPEC.md|DISCUSS.md|RESEARCH.md'
70
- check_method: file-content-match
@@ -2,6 +2,10 @@
2
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
+ #
6
+ # 4.43.0 — documentation only. The structured fields these rules used to carry
7
+ # (fallback_action / message_template / override_signal / chain_isolation) were
8
+ # never read; each rule is implemented in code, named in its description below.
5
9
 
6
10
  schema_version: harnessed.judgment.v1
7
11
 
@@ -11,25 +15,19 @@ rules:
11
15
  铁律 1 — 拿不准 → 跳过 + 透明声明。
12
16
  Workflow runtime 在 gate eval throw GateEvalError 或 evidence 不足时,
13
17
  emit ⚠️ message 给用户, 不静默跳过。
14
- fallback_action: skip_with_transparency
15
- message_template: "⚠️ 跳过 {gate_name}, 因为 {reason}。如认为需要请明示。"
18
+ 实现:src/workflow/masterOrchestrator-helpers.ts emitGateTransparency(跳过原因逐条打印)。
16
19
 
17
20
  user-explicit-override:
18
21
  description: |
19
22
  铁律 2 — 用户明示 → 覆盖判据。
20
- Workflow runtime 词法匹配 user input, 命中以下任一 signal 强制 invoke,
23
+ Workflow runtime 词法匹配 user input, 命中 signal 强制 invoke,
21
24
  即使 fires_when==false / skips_when==true。
22
- override_signal:
23
- - "先 brainstorm"
24
- - "跑 office-hours"
25
- - "讨论一下"
26
- - "office-hours"
27
- - "brainstorm"
28
- - "深度调研"
25
+ 实现:关键词表在 workflows/judgments/user-overrides.yaml,由
26
+ src/cli/lib/extract-user-overrides.ts 匹配后写入 gateContext.user_overrides。
29
27
 
30
28
  chain-isolation:
31
29
  description: |
32
30
  铁律 3 — 链式互不前置, 跳过战略层 ≠ 必须跳过 phase 层;
33
31
  每层独立判断 (防"上层没跑下层不敢跑"的死板)。
34
32
  Strategic / phase / subtask 三层 gate eval 互相独立, 无父子继承。
35
- chain_isolation: true
33
+ 实现:每个 gate 各自求值,没有任何代码让下层 gate 依赖上层结果。