create-principles-disciple 1.150.2 → 1.150.4
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/_release/product-identity.json +1 -1
- package/codex-adapter/dist/ingestion/admission.js +2 -0
- package/codex-adapter/dist/pd-hook.d.ts +7 -5
- package/codex-adapter/dist/pd-hook.js +18 -7
- package/codex-adapter/dist/tool-semantics.js +5 -1
- package/codex-adapter/dist/worker/workspace-worker.js +4 -2
- package/codex-adapter/package.json +1 -1
- package/console/dist/lib/utils.js +16 -1
- package/console/dist/web/assets/app.css +147 -46
- package/console/dist/web/assets/app.js +35 -32
- package/console/package.json +2 -0
- package/core/dist/runtime/activation/adaptive-selection-output.d.ts +35 -0
- package/core/dist/runtime/activation/adaptive-selection-output.d.ts.map +1 -0
- package/core/dist/runtime/activation/adaptive-selection-output.js +38 -0
- package/core/dist/runtime/activation/adaptive-selection-output.js.map +1 -0
- package/core/dist/runtime/activation-compatibility-read-model.d.ts.map +1 -1
- package/core/dist/runtime/activation-compatibility-read-model.js +2 -1
- package/core/dist/runtime/activation-compatibility-read-model.js.map +1 -1
- package/core/dist/runtime/adapter/artificer-l2-adapter.d.ts.map +1 -1
- package/core/dist/runtime/adapter/artificer-l2-adapter.js +89 -27
- package/core/dist/runtime/adapter/artificer-l2-adapter.js.map +1 -1
- package/core/dist/runtime/adapter/context-budget.d.ts +49 -0
- package/core/dist/runtime/adapter/context-budget.d.ts.map +1 -0
- package/core/dist/runtime/adapter/context-budget.js +127 -0
- package/core/dist/runtime/adapter/context-budget.js.map +1 -0
- package/core/dist/runtime/adapter/output-schema-registry.d.ts.map +1 -1
- package/core/dist/runtime/adapter/output-schema-registry.js +7 -0
- package/core/dist/runtime/adapter/output-schema-registry.js.map +1 -1
- package/core/dist/runtime/adapter/pi-ai-runtime-adapter.d.ts +30 -7
- package/core/dist/runtime/adapter/pi-ai-runtime-adapter.d.ts.map +1 -1
- package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js +559 -211
- package/core/dist/runtime/adapter/pi-ai-runtime-adapter.js.map +1 -1
- package/core/dist/runtime/candidate-audit.d.ts.map +1 -1
- package/core/dist/runtime/candidate-audit.js +2 -1
- package/core/dist/runtime/candidate-audit.js.map +1 -1
- package/core/dist/runtime/config/pd-config-effective.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-effective.js +2 -0
- package/core/dist/runtime/config/pd-config-effective.js.map +1 -1
- package/core/dist/runtime/config/pd-config-types.d.ts +52 -0
- package/core/dist/runtime/config/pd-config-types.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-types.js.map +1 -1
- package/core/dist/runtime/config/pd-config-validate.d.ts.map +1 -1
- package/core/dist/runtime/config/pd-config-validate.js +134 -0
- package/core/dist/runtime/config/pd-config-validate.js.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-contract.js +8 -0
- package/core/dist/runtime/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.d.ts.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +24 -0
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/core/dist/runtime/index.d.ts +2 -0
- package/core/dist/runtime/index.d.ts.map +1 -1
- package/core/dist/runtime/index.js +2 -0
- package/core/dist/runtime/index.js.map +1 -1
- package/core/dist/runtime/internalization/rule-host-input-builder.d.ts +16 -0
- package/core/dist/runtime/internalization/rule-host-input-builder.d.ts.map +1 -1
- package/core/dist/runtime/internalization/rule-host-input-builder.js +18 -0
- package/core/dist/runtime/internalization/rule-host-input-builder.js.map +1 -1
- package/core/dist/runtime/internalization/split-diagnostician-runner.d.ts +8 -0
- package/core/dist/runtime/internalization/split-diagnostician-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/split-diagnostician-runner.js +24 -2
- package/core/dist/runtime/internalization/split-diagnostician-runner.js.map +1 -1
- package/core/dist/runtime/internalization/tool-semantic-registry.d.ts +26 -0
- package/core/dist/runtime/internalization/tool-semantic-registry.d.ts.map +1 -1
- package/core/dist/runtime/internalization/tool-semantic-registry.js +55 -5
- package/core/dist/runtime/internalization/tool-semantic-registry.js.map +1 -1
- package/core/dist/runtime/internalization-chain-integrity-read-model.d.ts.map +1 -1
- package/core/dist/runtime/internalization-chain-integrity-read-model.js +2 -2
- package/core/dist/runtime/internalization-chain-integrity-read-model.js.map +1 -1
- package/core/dist/runtime/internalization-integrity-remediation.d.ts.map +1 -1
- package/core/dist/runtime/internalization-integrity-remediation.js +2 -2
- package/core/dist/runtime/internalization-integrity-remediation.js.map +1 -1
- package/core/dist/runtime/operator-health-read-model.d.ts.map +1 -1
- package/core/dist/runtime/operator-health-read-model.js +2 -2
- package/core/dist/runtime/operator-health-read-model.js.map +1 -1
- package/core/dist/runtime/pain-recall-read-model.d.ts.map +1 -1
- package/core/dist/runtime/pain-recall-read-model.js +4 -3
- package/core/dist/runtime/pain-recall-read-model.js.map +1 -1
- package/core/dist/runtime/pruning-read-model.d.ts.map +1 -1
- package/core/dist/runtime/pruning-read-model.js +3 -2
- package/core/dist/runtime/pruning-read-model.js.map +1 -1
- package/core/dist/runtime/risk/risk-calculator-policy.d.ts +12 -2
- package/core/dist/runtime/risk/risk-calculator-policy.d.ts.map +1 -1
- package/core/dist/runtime/risk/risk-calculator-policy.js +33 -22
- package/core/dist/runtime/risk/risk-calculator-policy.js.map +1 -1
- package/core/dist/runtime/schema-conformance-read-model.js +2 -2
- package/core/dist/runtime/schema-conformance-read-model.js.map +1 -1
- package/core/dist/runtime/store/sqlite-connection.d.ts +0 -5
- package/core/dist/runtime/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime/store/sqlite-connection.js +4 -12
- package/core/dist/runtime/store/sqlite-connection.js.map +1 -1
- package/core/dist/runtime/store/storage-paths.d.ts +17 -0
- package/core/dist/runtime/store/storage-paths.d.ts.map +1 -0
- package/core/dist/runtime/store/storage-paths.js +52 -0
- package/core/dist/runtime/store/storage-paths.js.map +1 -0
- package/core/dist/runtime/trajectory-retention.d.ts +257 -0
- package/core/dist/runtime/trajectory-retention.d.ts.map +1 -0
- package/core/dist/runtime/trajectory-retention.js +598 -0
- package/core/dist/runtime/trajectory-retention.js.map +1 -0
- package/core/dist/telemetry-event.d.ts +2 -2
- package/core/dist/telemetry-event.d.ts.map +1 -1
- package/core/dist/telemetry-event.js +5 -0
- package/core/dist/telemetry-event.js.map +1 -1
- package/core/dist/trajectory-store.d.ts +9 -9
- package/core/dist/trajectory-store.d.ts.map +1 -1
- package/core/dist/trajectory-store.js +9 -12
- package/core/dist/trajectory-store.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/installers/codex-host-installer.d.ts.map +1 -1
- package/dist/installers/codex-host-installer.js +92 -5
- package/dist/installers/codex-host-installer.js.map +1 -1
- package/dist/installers/mcp-binding-shape-mirror.d.ts +27 -0
- package/dist/installers/mcp-binding-shape-mirror.d.ts.map +1 -0
- package/dist/installers/mcp-binding-shape-mirror.js +105 -0
- package/dist/installers/mcp-binding-shape-mirror.js.map +1 -0
- package/dist/skill-catalog.d.ts +35 -0
- package/dist/skill-catalog.d.ts.map +1 -0
- package/dist/skill-catalog.js +85 -0
- package/dist/skill-catalog.js.map +1 -0
- package/dist/skill-delivery-parity.d.ts +22 -0
- package/dist/skill-delivery-parity.d.ts.map +1 -0
- package/dist/skill-delivery-parity.js +31 -0
- package/dist/skill-delivery-parity.js.map +1 -0
- package/host-runtime/dist/active-principle-prompt.d.ts +8 -0
- package/host-runtime/dist/active-principle-prompt.js +15 -5
- package/host-runtime/dist/adaptive-decision-protocol.d.ts +142 -0
- package/host-runtime/dist/adaptive-decision-protocol.js +190 -0
- package/host-runtime/dist/adaptive-priority-provider.d.ts +37 -13
- package/host-runtime/dist/adaptive-priority-provider.js +65 -62
- package/host-runtime/dist/adaptive-selection.d.ts +67 -62
- package/host-runtime/dist/adaptive-selection.js +218 -301
- package/host-runtime/dist/adaptive-skip-decision.d.ts +26 -14
- package/host-runtime/dist/adaptive-skip-decision.js +33 -29
- package/host-runtime/dist/codex-rule-context-provider.js +4 -1
- package/host-runtime/dist/governance-observation-store.d.ts +40 -1
- package/host-runtime/dist/governance-observation-store.js +188 -9
- package/host-runtime/dist/governance-signal-admission.d.ts +19 -3
- package/host-runtime/dist/governance-signal-admission.js +12 -4
- package/host-runtime/dist/host-tool-declaration.d.ts +18 -2
- package/host-runtime/dist/host-tool-declaration.js +67 -11
- package/host-runtime/dist/host-tool-semantic-resolver.d.ts +7 -0
- package/host-runtime/dist/host-tool-semantic-resolver.js +22 -2
- package/host-runtime/dist/index.d.ts +3 -0
- package/host-runtime/dist/index.js +14 -0
- package/host-runtime/dist/production-rulehost-gate.js +36 -4
- package/host-runtime/dist/trajectory-retention.d.ts +147 -0
- package/host-runtime/dist/trajectory-retention.js +907 -0
- package/host-runtime/package.json +1 -1
- package/install-layout/dist/index.d.ts +9 -2
- package/install-layout/dist/index.js +26 -9
- package/install-layout/dist/mcp-binding-contract.d.ts +91 -0
- package/install-layout/dist/mcp-binding-contract.js +230 -0
- package/install-layout/package.json +1 -1
- package/package.json +4 -4
- package/pd-cli/dist/commands/build-trajectory-evidence.d.ts.map +1 -1
- package/pd-cli/dist/commands/build-trajectory-evidence.js +17 -11
- package/pd-cli/dist/commands/build-trajectory-evidence.js.map +1 -1
- package/pd-cli/dist/commands/codex-reconcile.d.ts +7 -0
- package/pd-cli/dist/commands/codex-reconcile.d.ts.map +1 -1
- package/pd-cli/dist/commands/codex-reconcile.js +11 -2
- package/pd-cli/dist/commands/codex-reconcile.js.map +1 -1
- package/pd-cli/dist/commands/codex-worker.d.ts.map +1 -1
- package/pd-cli/dist/commands/codex-worker.js +35 -0
- package/pd-cli/dist/commands/codex-worker.js.map +1 -1
- package/pd-cli/dist/commands/command-helpers.d.ts +1 -1
- package/pd-cli/dist/commands/command-helpers.js +1 -1
- package/pd-cli/dist/commands/errors-list.d.ts +1 -1
- package/pd-cli/dist/commands/errors-list.js +1 -1
- package/pd-cli/dist/commands/health-mcp.d.ts +23 -1
- package/pd-cli/dist/commands/health-mcp.d.ts.map +1 -1
- package/pd-cli/dist/commands/health-mcp.js +81 -22
- package/pd-cli/dist/commands/health-mcp.js.map +1 -1
- package/pd-cli/dist/commands/health.d.ts +1 -1
- package/pd-cli/dist/commands/health.d.ts.map +1 -1
- package/pd-cli/dist/commands/health.js +12 -5
- package/pd-cli/dist/commands/health.js.map +1 -1
- package/pd-cli/dist/commands/principles-stats.d.ts +1 -1
- package/pd-cli/dist/commands/principles-stats.js +1 -1
- package/pd-cli/dist/commands/trajectory-retention.d.ts +23 -0
- package/pd-cli/dist/commands/trajectory-retention.d.ts.map +1 -0
- package/pd-cli/dist/commands/trajectory-retention.js +159 -0
- package/pd-cli/dist/commands/trajectory-retention.js.map +1 -0
- package/pd-cli/dist/commands/workbuddy-setup.d.ts +69 -0
- package/pd-cli/dist/commands/workbuddy-setup.d.ts.map +1 -0
- package/pd-cli/dist/commands/workbuddy-setup.js +379 -0
- package/pd-cli/dist/commands/workbuddy-setup.js.map +1 -0
- package/pd-cli/dist/commands/workbuddy-worker.d.ts.map +1 -1
- package/pd-cli/dist/commands/workbuddy-worker.js +42 -6
- package/pd-cli/dist/commands/workbuddy-worker.js.map +1 -1
- package/pd-cli/dist/index.d.ts +1 -7
- package/pd-cli/dist/index.d.ts.map +1 -1
- package/pd-cli/dist/index.js +15 -1201
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/program.d.ts +17 -0
- package/pd-cli/dist/program.d.ts.map +1 -0
- package/pd-cli/dist/program.js +1263 -0
- package/pd-cli/dist/program.js.map +1 -0
- package/pd-cli/dist/services/delivery-surfaces.d.ts.map +1 -1
- package/pd-cli/dist/services/delivery-surfaces.js +7 -5
- package/pd-cli/dist/services/delivery-surfaces.js.map +1 -1
- package/pd-cli/dist/services/version-report.d.ts.map +1 -1
- package/pd-cli/dist/services/version-report.js +30 -4
- package/pd-cli/dist/services/version-report.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/pd-mcp-server/dist/version.d.ts +1 -1
- package/pd-mcp-server/dist/version.js +1 -1
- package/pd-mcp-server/package.json +3 -1
- package/plugin/dist/bundle.js +477 -471
- package/plugin/dist/constants/tools.d.ts +8 -1
- package/plugin/dist/core/trajectory-retention-trigger.d.ts +13 -0
- package/plugin/dist/core/trajectory.d.ts +14 -0
- package/plugin/dist/hooks/gate-block-helper.d.ts +17 -0
- package/plugin/dist/hooks/gate.d.ts +7 -2
- package/plugin/dist/host-runtime/openclaw-host-runtime.d.ts +1 -0
- package/plugin/dist/index.d.ts +5 -0
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/dist/rulehost-evidence.js +29 -23
- package/plugin/dist/templates/langs/en/skills/pd-cli-operator/SKILL.md +16 -5
- package/plugin/dist/templates/langs/en/skills/pd-control/SKILL.md +7 -6
- package/plugin/dist/templates/langs/en/skills/pd-pain-signal/SKILL.md +141 -28
- package/plugin/dist/templates/langs/en/skills/pd-review/SKILL.md +15 -1
- package/plugin/dist/templates/langs/zh/skills/pd-cli-operator/SKILL.md +16 -5
- package/plugin/dist/templates/langs/zh/skills/pd-control/SKILL.md +7 -6
- package/plugin/dist/templates/langs/zh/skills/pd-pain-signal/SKILL.md +142 -29
- package/plugin/dist/templates/langs/zh/skills/pd-review/SKILL.md +15 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/plugin/templates/langs/en/skills/pd-cli-operator/SKILL.md +16 -5
- package/plugin/templates/langs/en/skills/pd-control/SKILL.md +7 -6
- package/plugin/templates/langs/en/skills/pd-pain-signal/SKILL.md +141 -28
- package/plugin/templates/langs/en/skills/pd-review/SKILL.md +15 -1
- package/plugin/templates/langs/zh/skills/pd-cli-operator/SKILL.md +16 -5
- package/plugin/templates/langs/zh/skills/pd-control/SKILL.md +7 -6
- package/plugin/templates/langs/zh/skills/pd-pain-signal/SKILL.md +142 -29
- package/plugin/templates/langs/zh/skills/pd-review/SKILL.md +15 -1
- package/release-manager/dist/installers/codex-host-installer.js +92 -5
- package/release-manager/dist/installers/mcp-binding-shape-mirror.js +105 -0
- package/release-manager/package.json +1 -1
- package/workbuddy-adapter/dist/codec/input-decoder.d.ts +10 -0
- package/workbuddy-adapter/dist/codec/input-decoder.js +62 -5
- package/workbuddy-adapter/dist/host-adapter.js +1 -0
- package/workbuddy-adapter/dist/index.d.ts +1 -0
- package/workbuddy-adapter/dist/index.js +1 -0
- package/workbuddy-adapter/dist/ingestion/catch-up.d.ts +25 -0
- package/workbuddy-adapter/dist/ingestion/catch-up.js +161 -0
- package/workbuddy-adapter/dist/ingestion/encode-cwd.d.ts +6 -0
- package/workbuddy-adapter/dist/ingestion/encode-cwd.js +39 -0
- package/workbuddy-adapter/dist/ingestion/index.d.ts +13 -0
- package/workbuddy-adapter/dist/ingestion/index.js +13 -0
- package/workbuddy-adapter/dist/ingestion/ingestion.d.ts +46 -0
- package/workbuddy-adapter/dist/ingestion/ingestion.js +135 -0
- package/workbuddy-adapter/dist/ingestion/transcript-decoder.d.ts +70 -0
- package/workbuddy-adapter/dist/ingestion/transcript-decoder.js +554 -0
- package/workbuddy-adapter/dist/ingestion/transcript-path.d.ts +39 -0
- package/workbuddy-adapter/dist/ingestion/transcript-path.js +117 -0
- package/workbuddy-adapter/dist/ingestion/transcript-source.d.ts +15 -0
- package/workbuddy-adapter/dist/ingestion/transcript-source.js +152 -0
- package/workbuddy-adapter/dist/pd-hook.d.ts +8 -0
- package/workbuddy-adapter/dist/pd-hook.js +59 -2
- package/workbuddy-adapter/dist/worker/workspace-worker.d.ts +9 -0
- package/workbuddy-adapter/dist/worker/workspace-worker.js +46 -17
- package/workbuddy-adapter/package.json +1 -1
- package/workbuddy-adapter/plugin/hooks/hooks.json +11 -0
- package/workbuddy-adapter/plugin/skills/pd-cli-operator/SKILL.md +57 -19
- package/workbuddy-adapter/plugin/skills/pd-control/SKILL.md +21 -9
- package/workbuddy-adapter/plugin/skills/pd-pain-signal/SKILL.md +72 -61
- package/workbuddy-adapter/plugin/skills/pd-review/SKILL.md +27 -12
|
@@ -1,46 +1,84 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pd-cli-operator
|
|
3
|
-
description:
|
|
3
|
+
description: 当需要只读检查 PD 运行健康、查询痛苦/任务/运行/候选/工件,检查治理开关与 worker 活性,或追踪痛苦到原则的证据链时使用。用于 PD CLI 与 Runtime 排障;不用于登记痛苦、Owner 治理审阅或宿主管理。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
<!-- generated by @principles/pd-skills; edit packages/pd-skills/skills/** -->
|
|
7
|
+
|
|
8
|
+
# PD CLI Operator
|
|
9
|
+
|
|
10
|
+
通过现有 PD CLI 查询事实、定位链路断点,并给出基于证据的结论。本技能只负责操作路由,不实现第二套业务逻辑。
|
|
7
11
|
|
|
8
12
|
## 工作区
|
|
9
13
|
|
|
10
14
|
始终使用 WorkBuddy 固定治理工作区 `~/.workbuddy/pd-workspace`,先将 `~` 解析为当前用户主目录的绝对路径。不得切换到当前项目目录、Codex 工作区或 OpenClaw 工作区。
|
|
11
15
|
|
|
12
|
-
##
|
|
16
|
+
## 工作流程
|
|
17
|
+
|
|
18
|
+
1. **确认工作区。** 按上文「工作区」一节的宿主规则取权威工作区。无法确定工作区就先报告阻塞,不要从当前目录、最近目录或其他宿主猜测。
|
|
19
|
+
2. **发现真实命令。** 先检查 `pd --help`,再检查目标命令的 `--help`。命令名和参数以当前安装版本为准。
|
|
20
|
+
3. **优先只读检查。** 按问题选择最少的查询命令,不遍历无关工作区。
|
|
21
|
+
4. **逐段追踪。** 分别核实痛苦登记、诊断任务、运行结果、候选、准入和 Owner 治理结果,不由单个状态字段推断整条链路已完成。
|
|
22
|
+
5. **报告证据。** 说明已确认事实、未知部分、阻塞层和下一步;区分命令成功与业务目标成功。
|
|
23
|
+
|
|
24
|
+
## 宿主接入自检
|
|
13
25
|
|
|
14
26
|
1. 先运行以下只读命令,确认 Runtime 功能和 worker 状态:
|
|
15
27
|
|
|
16
28
|
pd runtime features --workspace "<用户主目录>/.workbuddy/pd-workspace" --json
|
|
17
29
|
pd workbuddy worker --status --workspace "<用户主目录>/.workbuddy/pd-workspace" --json
|
|
18
30
|
|
|
19
|
-
2. 按需使用 CLI
|
|
20
|
-
3. 报告真实输出中的 `host.workbuddy` 开关、worker 模式和错误原因。
|
|
21
|
-
|
|
31
|
+
2. 按需使用 CLI 帮助确认其他只读命令的可用性,再查询痛苦、任务、运行记录、候选或证据链;其中 `<workspace>` 必须替换为上面的 WorkBuddy 固定治理工作区,不能换成当前项目目录。
|
|
32
|
+
3. 报告真实输出中的 `host.workbuddy` 开关、worker 模式和错误原因。
|
|
33
|
+
|
|
34
|
+
## 常用只读命令
|
|
35
|
+
|
|
36
|
+
先确认当前 CLI 支持这些命令,再按需执行:
|
|
37
|
+
|
|
38
|
+
- 健康检查:`pd health --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`
|
|
39
|
+
- Runtime 探针:`pd runtime probe --runtime pi-ai --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`
|
|
40
|
+
- 流程策略:`pd runtime flow show --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`
|
|
41
|
+
- 痛苦列表与准入证据:`pd pain list --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`、`pd pain evidence --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`
|
|
42
|
+
- 痛苦到原则的追踪:`pd runtime trace show --pain-id "<painId>" --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`
|
|
43
|
+
- 任务与运行:`pd task show "<taskId>" --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`、`pd run show "<runId>" --workspace "<用户主目录>/.workbuddy/pd-workspace"`
|
|
44
|
+
- 候选与工件:`pd candidate list --task-id "<taskId>" --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`、`pd candidate show "<candidateId>" --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`、`pd artifact show "<artifactId>" --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`
|
|
22
45
|
|
|
23
46
|
## 按需召回原则的历史痛苦
|
|
24
47
|
|
|
25
|
-
当原则文本本身不够用——不确定它为何存在、触发边界是什么、或当前情况是否与当初的失败相似——使用 `pd pain recall
|
|
48
|
+
当原则文本本身不够用——不确定它为何存在、触发边界是什么、或当前情况是否与当初的失败相似——使用 `pd pain recall`。原则已经清楚或任务与其历史无关时不要调用,那只会增加延迟。
|
|
26
49
|
|
|
27
|
-
|
|
28
|
-
|
|
50
|
+
- 带疑问召回:`pd pain recall --principle-id "<规范原则 ID>" --context "<当前疑问>" --limit 3 --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`
|
|
51
|
+
- 查看指定痛苦:`pd pain recall --principle-id "<规范原则 ID>" --pain-id "<painId>" --workspace "<用户主目录>/.workbuddy/pd-workspace" --json`
|
|
29
52
|
|
|
30
53
|
结果判读:
|
|
31
54
|
|
|
32
|
-
-
|
|
33
|
-
- 先看顶层 `status
|
|
34
|
-
- 每条结果区分三类信息:痛苦记录(`pain.reason`、`pain.text`)、已保存的 `diagnoses`(模型生成——`isOriginalOwnerStatement` 恒为 `false`,绝不把诊断解释当作 Owner
|
|
35
|
-
- `
|
|
55
|
+
- 必须传规范账本原则 ID(UUID);显示标题和提示词渲染 ID 无法解析。
|
|
56
|
+
- 先看顶层 `status`。`ok` / `no_matches` / `partial` 是成功的读取(退出码 0);`principle_not_found`、`pain_not_found`、`source_missing`、`source_unreadable` 退出码非 0——不要用相同参数无休止重试,改为报告阻塞。
|
|
57
|
+
- 每条结果区分三类信息:痛苦记录(`pain.reason`、`pain.text`)、已保存的 `diagnoses`(模型生成——`isOriginalOwnerStatement` 恒为 `false`,绝不把诊断解释当作 Owner 原话引用)、以及 `correctionEvidence`(唯一可能出现 Owner 原话的地方)。
|
|
58
|
+
- `--pain-id` 只在该原则已验证的关联集合内筛选;candidateId/taskId/artifactId 永远不是 painId。
|
|
59
|
+
- 每条结果的 `availability` 区分 `not_recorded`(确实没有记录)与 `unreadable`(无法读取);顶层 `partial` 表示部分来源不可用——如实说明缺口,不要猜测。
|
|
60
|
+
- 召回的历史是背景,不是权威:不得用它覆盖当前任务的直接证据。
|
|
61
|
+
|
|
62
|
+
## 结果判定
|
|
63
|
+
|
|
64
|
+
- `painId` 只证明痛苦登记有回执。
|
|
65
|
+
- 任务创建不等于诊断完成。
|
|
66
|
+
- 候选生成不等于通过准入;必须检查实际 admission 决策及对应账本证据。
|
|
67
|
+
- 准入成功不等于 Owner 已批准或原则已激活;打开 Console 也不等于完成治理决定。
|
|
68
|
+
- worker 已注册不等于 worker 正在运行;插件存在不等于技能已加载;健康检查通过不等于某条痛苦已经完成诊断。
|
|
69
|
+
|
|
70
|
+
## 写操作与失败
|
|
36
71
|
|
|
37
|
-
|
|
72
|
+
本技能默认只读。若需要重试、恢复、修复或其他有副作用的操作,先确认用户意图、命令帮助、资格条件和影响范围;支持时先 dry-run,执行后读回真实状态。不要盲目重试可能产生副作用的命令。
|
|
38
73
|
|
|
39
|
-
|
|
74
|
+
CLI 不可用时,保留真实错误并区分未安装、工作区未初始化、权限不足与 Runtime 故障。需要安装、初始化、停用或恢复宿主接入时转交 `pd-control`;需要审阅候选时转交 `pd-review`;需要登记 Owner 反馈时转交 `pd-pain-signal`。
|
|
40
75
|
|
|
41
76
|
## 禁止
|
|
42
77
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
- 不通过 CLI
|
|
78
|
+
- 不直接修改数据库、账本、配置或内部工件。
|
|
79
|
+
- 不写 `.state/.pain_flag`,不调用 legacy `write_pain_flag`。
|
|
80
|
+
- 不伪造运行证据或把推测写成已确认根因。
|
|
81
|
+
- 不通过 CLI、脚本或其他技能批准、拒绝或激活原则。
|
|
82
|
+
- 不将命令退出码为 0 自动等同于业务成功。
|
|
83
|
+
- 不初始化项目目录,不切换到其他宿主的治理库。
|
|
84
|
+
- 不将 worker 注册或插件存在描述为真实运行或行为生效。
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pd-control
|
|
3
|
-
description: 当 Owner
|
|
3
|
+
description: 当 Owner 明确要求安装、初始化、停用、重新启用或修复 PD 宿主接入时使用。只使用当前宿主正式支持的管理入口;不直接改配置或业务状态。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
<!-- generated by @principles/pd-skills; edit packages/pd-skills/skills/** -->
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# PD Control
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 目标
|
|
11
|
+
|
|
12
|
+
通过正式安装器和宿主管理机制管理 PD 接入。本技能是受限路由入口,不复制安装器逻辑,也不改变原则、候选、任务或账本状态。只执行 Owner 明确要求的操作。
|
|
13
|
+
|
|
14
|
+
## 安装或初始化
|
|
15
|
+
|
|
16
|
+
安装/注册必须使用正式 WorkBuddy 插件安装器/宿主管理流程。本技能不提供安装命令,也不复制安装器逻辑。安装/注册插件不等于启用治理,插件默认状态为关闭。完成后用 `pd-cli-operator` 对固定治理工作区 `~/.workbuddy/pd-workspace` 做只读检查,并报告真实回执。
|
|
11
17
|
|
|
12
18
|
## 停用
|
|
13
19
|
|
|
@@ -19,13 +25,19 @@ description: 当 Owner 明确要求管理 WorkBuddy 的 PD 接入、停用或修
|
|
|
19
25
|
|
|
20
26
|
只有退出码为 0 且 JSON 回执确认 `ok=true`、`enabled=false`、`host=workbuddy` 时,才能报告停用成功。报告真实回执中的工作区与状态。新 Hook 调用读取该开关;已运行中的任务是否停止必须另行核验。
|
|
21
27
|
|
|
22
|
-
##
|
|
28
|
+
## 启用或恢复
|
|
29
|
+
|
|
30
|
+
本宿主不支持:随插件交付的控制脚本只实现停用,没有可验证的启用入口。
|
|
31
|
+
应改走:正式 WorkBuddy 插件安装器/宿主管理流程。若该流程未提供可验证的启用操作,明确报告不支持;不得猜测命令、手工修改配置或调用私有安装器函数。
|
|
32
|
+
|
|
33
|
+
## 成功判定
|
|
23
34
|
|
|
24
|
-
|
|
35
|
+
区分安装器执行成功、插件被宿主发现、Hook 实际运行和 PD 业务链路健康。每一步都需要对应的真实回执或运行证据。插件存在不等于已启用,安装成功也不等于 Runtime 健康。
|
|
25
36
|
|
|
26
37
|
## 禁止
|
|
27
38
|
|
|
28
|
-
-
|
|
29
|
-
-
|
|
39
|
+
- 不手工修改宿主配置或 PD 状态文件。
|
|
40
|
+
- 不覆盖用户配置,不删除业务数据来停用 PD。
|
|
41
|
+
- 不通过 CLI、脚本或其他技能批准、拒绝或激活原则。
|
|
42
|
+
- 不将未验证的宿主操作报告为成功。
|
|
30
43
|
- 不将安装、注册或配置存在描述为 PD 已实际启用。
|
|
31
|
-
- 不批准、拒绝或激活原则。
|
|
@@ -3,15 +3,17 @@ name: pd-pain-signal
|
|
|
3
3
|
description: 记录一条"相对锚点的显著行为背离"(Pain)。Owner 用 `PD记录痛苦:` 前缀发消息时由 WorkBuddy Hook 处理;Owner 明确要求你登记且能指出锚点时,通过 PD MCP 工具 pd_submit_pain 提交本次记录。禁止后台提交,禁止编造锚点。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
<!-- generated by @principles/pd-skills; edit packages/pd-skills/skills/** -->
|
|
7
|
+
|
|
6
8
|
# PD Pain Signal(WorkBuddy)
|
|
7
9
|
|
|
8
|
-
Pain =
|
|
10
|
+
Pain = 相对某个明确锚点的、具体的行为背离。三要素必须同时成立:
|
|
9
11
|
|
|
10
|
-
1. **锚点** —— Owner
|
|
11
|
-
2. **具体行为** ——
|
|
12
|
-
3. **显著背离** ——
|
|
12
|
+
1. **锚点** —— Owner 的明示要求、既有原则,或生效中的 Agent 指令 / Skill 要求。
|
|
13
|
+
2. **具体行为** —— 你实际做了什么、漏了什么。
|
|
14
|
+
3. **显著背离** —— 相对该锚点可以说清楚的差距。
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
没有证明影响、没有重复发生、Owner 之前没纠正过,都**不是**不提交的理由,只影响 Owner 的注意力排序。
|
|
15
17
|
|
|
16
18
|
## 入口 1 —— Owner 原生前缀(由 Hook 处理,不要代劳)
|
|
17
19
|
|
|
@@ -22,6 +24,7 @@ Owner 在自己的消息开头输入:
|
|
|
22
24
|
- 前缀必须位于消息开头并使用全角冒号;正文 1–500 字符。
|
|
23
25
|
- 超长输入会被拒绝并要求精简,不会静默截断。
|
|
24
26
|
- 只记录 Owner 原文;引用、工具输出和模型转述不构成新的 Owner 提交。
|
|
27
|
+
- 登记写入 WorkBuddy 固定治理工作区 `~/.workbuddy/pd-workspace`(由 Hook 解析,不需要 Agent 传入)。
|
|
25
28
|
- 这条路径由 UserPromptSubmit Hook 处理。不要模拟宿主事件,也不要把同一条消息再提交一次。
|
|
26
29
|
- 如果当前消息没有此前缀,不要要求 Owner 重发;按入口 2 处理(若 Owner 明确要求登记)。
|
|
27
30
|
|
|
@@ -41,70 +44,71 @@ Owner 在自己的消息开头输入:
|
|
|
41
44
|
|
|
42
45
|
schema 是严格的:`score`、`severity`、`priority`、`sessionId`、`approved`、文件路径、metadata 都会在写入前被协议层拒绝。
|
|
43
46
|
|
|
44
|
-
##
|
|
47
|
+
## 锚点
|
|
45
48
|
|
|
46
|
-
|
|
49
|
+
只能选一类。`anchorRef` 必须能让别人找到这条要求。
|
|
47
50
|
|
|
48
|
-
### `owner_expectation`(Owner
|
|
51
|
+
### `owner_expectation`(Owner 明示要求)
|
|
49
52
|
|
|
50
|
-
Owner
|
|
53
|
+
Owner 说过 —— 本次对话、Owner 文档或已批准的决定。`anchorRef` 写明出处,例如 `本次对话 14:02 Owner: "..."` 或 `docs/xxx.md §2`。
|
|
51
54
|
|
|
52
|
-
-
|
|
55
|
+
- 只凭记忆的 Owner 要求不得提交。没有可引用的位置就先向 Owner 确认,或者不提交。
|
|
53
56
|
|
|
54
|
-
### `established_principle
|
|
57
|
+
### `established_principle`(既有原则)
|
|
55
58
|
|
|
56
|
-
`anchorRef` 必须是 `<principleId>@<version
|
|
59
|
+
`anchorRef` 必须是 `<principleId>@<version>`(例如 `P-42@1`)。两者都从 `pd principle list` 取,禁止猜测或推断版本号。
|
|
57
60
|
|
|
58
|
-
|
|
61
|
+
服务端会校验存在性、版本与状态:
|
|
59
62
|
|
|
60
|
-
- `active`
|
|
61
|
-
|
|
63
|
+
- `active` 或 `probation` → 可作为背离依据。
|
|
64
|
+
`probation` 会返回 `anchor_probation` 警告:背离成立,但该原则仍在验证期。
|
|
65
|
+
- `candidate`、`archived`、`deprecated` → 不能作为违规依据,只能作背景。
|
|
62
66
|
|
|
63
|
-
|
|
67
|
+
服务端只校验存在性 / 版本 / 状态。**适用范围与优先级冲突无法在此机器判定。** 如果你无法确认该原则适用于当前场景,在 `reason` 里写"适用性待确认",不要写成已定论。
|
|
64
68
|
|
|
65
|
-
### `agent_instruction
|
|
69
|
+
### `agent_instruction`(生效中的 Agent 指令)
|
|
66
70
|
|
|
67
|
-
`anchorRef` 必须是 `<path>#<section
|
|
71
|
+
`anchorRef` 必须是 `<path>#<section>` 且**不含空格**,例如 `AGENTS.md#verification`。它必须指向当前宿主生效的要求(AGENTS.md、PRINCIPLES.md、SKILL.md、工具说明)。
|
|
68
72
|
|
|
69
|
-
###
|
|
73
|
+
### 没有锚点
|
|
70
74
|
|
|
71
|
-
|
|
75
|
+
如果你无法把锚点归入以上三类,不要提交。先向 Owner 澄清。
|
|
72
76
|
|
|
73
|
-
## `reason`
|
|
77
|
+
## `reason` —— 六部分,按顺序
|
|
74
78
|
|
|
75
|
-
1. **锚点** ——
|
|
76
|
-
2. **锚点来源与引用等级** —— `verbatim` / `paraphrase` / `recollection` / `inference
|
|
77
|
-
3. **观察到的行为** ——
|
|
78
|
-
4. **背离** ——
|
|
79
|
-
5.
|
|
80
|
-
6. **上下文** ——
|
|
79
|
+
1. **锚点** —— 引用或指明(原则 id@version、指令 path#section、Owner 原话 + 出处)。
|
|
80
|
+
2. **锚点来源与引用等级** —— `verbatim` / `paraphrase` / `recollection` / `inference`。不得抬高等级。仅有 `recollection` 或 `inference` 时不够:先与 Owner 确认原话。
|
|
81
|
+
3. **观察到的行为** —— 具体动作、顺序、跳过的步骤、越界之处。不要写"质量不好"。
|
|
82
|
+
4. **背离** —— 相对锚点的差距:没做 / 做反了 / 做了但绕过了。
|
|
83
|
+
5. **为何值得记录**(辅助)—— 帮 Owner 排优先级。它**不是**受理条件,绝不能用它否决一条本来有效的 Pain。
|
|
84
|
+
6. **上下文** —— 何时、何地发生,范围要克制。
|
|
81
85
|
|
|
82
|
-
|
|
86
|
+
不得隐瞒冲突的锚点。不得为了让提交更容易被接受而夸大背离。不得把第 5 部分变成门槛。
|
|
83
87
|
|
|
84
|
-
## 授权 ——
|
|
88
|
+
## 授权 —— 仅本次
|
|
85
89
|
|
|
86
|
-
|
|
90
|
+
调用工具前,先向 Owner 说明:
|
|
87
91
|
|
|
88
|
-
1.
|
|
89
|
-
2.
|
|
90
|
-
3.
|
|
91
|
-
4.
|
|
92
|
+
1. 锚点是什么、出自哪里;
|
|
93
|
+
2. 你观察到的具体行为;
|
|
94
|
+
3. 两者之间的背离;
|
|
95
|
+
4. 可选:为什么可能重要。
|
|
92
96
|
|
|
93
|
-
|
|
97
|
+
然后在**当前对话**取得 Owner 的明确同意。
|
|
94
98
|
|
|
95
|
-
-
|
|
96
|
-
- Owner
|
|
97
|
-
-
|
|
98
|
-
- 后台、定时、
|
|
99
|
+
- 没有回复、回答含糊、或一句"随便"都**不是**授权。
|
|
100
|
+
- Owner 修改了内容,就按最终版本重新确认后再提交。
|
|
101
|
+
- 授权只覆盖这一次提交。不得复用于另一条 Pain、另一个会话,或内容已变化的"重试"。
|
|
102
|
+
- 后台、定时、hook 驱动、无人值守的运行**不得**自行提交。
|
|
99
103
|
|
|
100
104
|
## 严重度与 `painType`
|
|
101
105
|
|
|
102
|
-
-
|
|
103
|
-
-
|
|
106
|
+
- 不要传分数或严重度。工具没有这个参数,系统会把省略的严重度记为**中等**。你不能自提;如果你认为很严重,就写进 `reason` 让 Owner 判断。
|
|
107
|
+
- 除非你确有把握,否则省略 `painType`。默认是 `principle_deviation`。
|
|
104
108
|
- 默认值只对 `established_principle` 锚点成立:没有原则引用的 `principle_deviation` 会被拒绝(`anchor_invalid`,"principle_deviation requires deviationAnchor{...}")。锚点是 `owner_expectation` / `agent_instruction` 时必须显式给出如实匹配的类型(如 `tool_failure`);没有合适的类型就向 Owner 说明,不要硬填。
|
|
105
|
-
-
|
|
109
|
+
- 不得为了看起来更紧急而回填 `user_frustration`(或任何其它类型)。
|
|
106
110
|
|
|
107
|
-
##
|
|
111
|
+
## 阅读回执
|
|
108
112
|
|
|
109
113
|
工具返回一份 JSON 回执(`pd.pain-submit-receipt.v1`):
|
|
110
114
|
|
|
@@ -112,31 +116,38 @@ Owner 在本次对话、Owner 文档或已批准决定中明确表达过。`anch
|
|
|
112
116
|
status, painId, taskId, workspaceDir, diagnosis, anchor, provenance, warnings, error, nextAction
|
|
113
117
|
```
|
|
114
118
|
|
|
115
|
-
| status | 含义 |
|
|
119
|
+
| status | 含义 | 你该做什么 |
|
|
116
120
|
|---|---|---|
|
|
117
|
-
| `submitted` |
|
|
118
|
-
| `refused` | 没有写入(`task_duplicate`
|
|
119
|
-
| `failed` |
|
|
120
|
-
| `submit_unconfirmed` | 写入已开始但结果未知(超时或异常) |
|
|
121
|
+
| `submitted` | Pain 与诊断任务已写入 | 报告 `painId` / `taskId`。`diagnosis.status` 是 `pending`:诊断**尚未**运行 |
|
|
122
|
+
| `refused` | 没有写入(`task_duplicate` 时表示已存在等价任务) | 报告 `error.code` + `nextAction`;不要盲目重试 |
|
|
123
|
+
| `failed` | 写入失败,唯一带 `isError: true` 的状态 | 报告 `error.code` / `error.message` / `nextAction`;任务可能存在也可能不存在 |
|
|
124
|
+
| `submit_unconfirmed` | 写入已开始但结果未知(超时或异常) | 不要重提;先 `pd task show <taskId>` 对账 |
|
|
125
|
+
|
|
126
|
+
可能见到的 `refused` 代码:`invalid_input`、`anchor_invalid`、`anchor_unverifiable`(账本不可读)、`anchor_not_found`(未知 id/版本或空账本)、`anchor_not_currently_valid`、`task_duplicate`、`ingress_*`。
|
|
127
|
+
|
|
128
|
+
降级传输:
|
|
129
|
+
|
|
130
|
+
- `minimal` —— 回执缩减为 `status / painId / taskId / workspaceDir / diagnosis`。
|
|
131
|
+
- `untransportable` —— 纯文本陈述,或 `isError: true` 信封。结果未知时一律报告 UNKNOWN,绝不说成"没有写入"。
|
|
121
132
|
|
|
122
|
-
|
|
133
|
+
只报告回执实际返回的标识与状态。登记不等于诊断,不等于候选受理,不等于批准,不等于激活。
|
|
123
134
|
|
|
124
|
-
|
|
135
|
+
## 操作员补救路径(事后,绝不是 Agent 的默认动作)
|
|
125
136
|
|
|
126
|
-
|
|
127
|
-
|
|
137
|
+
本宿主不支持:现有 WorkBuddy 交付内容没有事后 CLI 补录路径,Agent 也无法核实可信会话标识。
|
|
138
|
+
应改走:由 Owner 通过入口 1 的前缀重新登记;确需事后补录时,由操作员按当前 `pd pain record --help` 的合同执行,Agent 不得自行拼写。
|
|
128
139
|
|
|
129
|
-
|
|
140
|
+
## 核验下游状态
|
|
130
141
|
|
|
131
|
-
|
|
142
|
+
用 `pd-cli-operator` 查看实际任务与证据链。若诊断产出了候选,必须用真实的 `admissionResults` / `admitted` 决策与对应非空 `ledgerEntryIds` 核验;仅有非空 `candidateIds` 不算成功。`needs_evidence` 或拒绝都要如实报告。用 `pd-review` 打开 Owner Console。 WorkBuddy 的治理工作区固定为 `~/.workbuddy/pd-workspace`;需要查下游用 `pd task show <taskId>`,不得猜测或扫描 session/turn 标识。
|
|
132
143
|
|
|
133
144
|
## 禁止
|
|
134
145
|
|
|
135
|
-
-
|
|
136
|
-
- 后台、定时、
|
|
137
|
-
- 编造锚点、原则 id@version
|
|
138
|
-
-
|
|
139
|
-
- 在 `pd_submit_pain`
|
|
140
|
-
- `submit_unconfirmed`
|
|
141
|
-
- 写 `.state/.pain_flag`
|
|
146
|
+
- 未经当前消息里 Owner 的明确要求与同意就提交。
|
|
147
|
+
- 后台、定时、hook 或无人值守运行中提交。
|
|
148
|
+
- 编造锚点、原则 id@version、指令路径或 Owner 原话。
|
|
149
|
+
- 传分数、严重度、优先级、session id 或批准令牌。
|
|
150
|
+
- 在 `pd_submit_pain` 不可用时,用猜出来的 lineage、本地开关或宿主匹配器绕过写 CLI。
|
|
151
|
+
- `submit_unconfirmed` 之后不经 `pd task show <taskId>` 对账就重提。
|
|
152
|
+
- 写 `.state/.pain_flag` 或调用旧的 `write_pain_flag`。
|
|
142
153
|
- 批准、激活或修改原则。
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pd-review
|
|
3
|
-
description:
|
|
3
|
+
description: 当 Owner 要查看 PD 诊断结果、原则候选或治理状态,或提出批准、拒绝、激活等治理请求时使用。所有 Owner 决策必须由 Owner 在正式 Web Console 中完成。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
<!-- generated by @principles/pd-skills; edit packages/pd-skills/skills/** -->
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# PD Review
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 目标
|
|
11
|
+
|
|
12
|
+
帮助 Owner 查看真实证据并进入 PD 正式治理界面。技能可以查询、解释和打开 Console,但不能代替 Owner 决策。
|
|
13
|
+
|
|
14
|
+
## 工作区
|
|
15
|
+
|
|
16
|
+
始终使用 WorkBuddy 固定治理工作区 `~/.workbuddy/pd-workspace`,先将 `~` 解析为当前用户主目录的绝对路径。不得切换到当前项目目录、Codex 工作区或 OpenClaw 工作区。
|
|
17
|
+
|
|
18
|
+
## 流程
|
|
19
|
+
|
|
20
|
+
1. 确认目标是 PD 的痛苦、诊断、候选或原则治理,而不是普通代码评审。
|
|
21
|
+
2. 使用 `pd-cli-operator` 或已有真实回执核对状态。区分 Owner 原话、宿主轨迹、模型诊断、准入决定和已发生的治理动作。
|
|
22
|
+
3. 按下文「打开 Console」给出的宿主方式启动 Console,不要猜测工作区。
|
|
23
|
+
4. 只有命令真实返回成功时才报告 Console 已启动。若失败,保留错误并转交 `pd-control` 排查宿主安装。
|
|
24
|
+
5. 告知 Owner 在 Console 中查看证据并亲自完成批准、拒绝或其他治理操作。
|
|
11
25
|
|
|
12
26
|
## 打开 Console
|
|
13
27
|
|
|
@@ -15,16 +29,17 @@ WorkBuddy 的治理工作区固定为 `~/.workbuddy/pd-workspace`,与 WorkBudd
|
|
|
15
29
|
|
|
16
30
|
pd console open --workspace "<用户主目录>/.workbuddy/pd-workspace"
|
|
17
31
|
|
|
18
|
-
只报告命令真实返回的 Console
|
|
19
|
-
|
|
20
|
-
## Owner 治理
|
|
32
|
+
只报告命令真实返回的 Console 地址和状态。失败时保留错误原因,不声称已打开。
|
|
21
33
|
|
|
22
|
-
|
|
34
|
+
## 状态边界
|
|
23
35
|
|
|
24
|
-
|
|
36
|
+
- 候选存在不代表已批准。
|
|
37
|
+
- 打开 Console 不代表已批准。
|
|
38
|
+
- Owner 表达了“批准”意图,不代表 Console 中的审批动作已经完成。
|
|
39
|
+
- 批准、激活和后续行为差异是不同阶段,必须分别核实。
|
|
25
40
|
|
|
26
41
|
## 强制禁止
|
|
27
42
|
|
|
28
|
-
- 不通过 CLI
|
|
29
|
-
- Console 不可用时,不得切换到 CLI
|
|
30
|
-
- 不伪造 Owner
|
|
43
|
+
- 不通过 CLI、脚本、数据库、文件或其他技能批准、拒绝或激活原则。
|
|
44
|
+
- Console 不可用时,不得切换到 CLI 审批作为备用方案。
|
|
45
|
+
- 不伪造 Owner 决策,不将候选生成或准入结果描述成已激活。
|