create-principles-disciple 1.112.2 → 1.113.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/console/dist/server/routes/update.js +43 -0
- package/core/dist/runtime-v2/__tests__/activation-compatibility-read-model.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/activation-compatibility-read-model.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/activation-compatibility-read-model.test.js +148 -0
- package/core/dist/runtime-v2/__tests__/activation-compatibility-read-model.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js +13 -3
- package/core/dist/runtime-v2/__tests__/architecture-regression.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-repair-loop.test.js +14 -6
- package/core/dist/runtime-v2/__tests__/evaluator-repair-loop.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js +1 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice-v2.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js +5 -0
- package/core/dist/runtime-v2/__tests__/evaluator-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/golden-trace.test.js +2 -2
- package/core/dist/runtime-v2/__tests__/golden-trace.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-contracts.test.js +4 -6
- package/core/dist/runtime-v2/__tests__/internalization-contracts.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js +4 -1
- package/core/dist/runtime-v2/__tests__/internalization-orchestrator.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js +3 -2
- package/core/dist/runtime-v2/__tests__/internalization-state-machine.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js +47 -0
- package/core/dist/runtime-v2/__tests__/pain-to-principle-service.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js +66 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-runner-vslice.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.d.ts +2 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.js +234 -0
- package/core/dist/runtime-v2/__tests__/rollout-reviewer-verdict-paths.test.js.map +1 -0
- package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.js +4 -4
- package/core/dist/runtime-v2/__tests__/rule-host-evaluator.test.js.map +1 -1
- package/core/dist/runtime-v2/__tests__/story-a-demo.test.js +8 -8
- package/core/dist/runtime-v2/__tests__/story-a-demo.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js +23 -1
- package/core/dist/runtime-v2/activation/__tests__/prompt-activation-reader-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts +11 -0
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js +11 -4
- package/core/dist/runtime-v2/activation/prompt-activation-reader-contract.js.map +1 -1
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js +31 -0
- package/core/dist/runtime-v2/activation/writers/__tests__/rule-host-writer.test.js.map +1 -1
- package/core/dist/runtime-v2/activation-compatibility-read-model.d.ts +24 -0
- package/core/dist/runtime-v2/activation-compatibility-read-model.d.ts.map +1 -0
- package/core/dist/runtime-v2/activation-compatibility-read-model.js +132 -0
- package/core/dist/runtime-v2/activation-compatibility-read-model.js.map +1 -0
- package/core/dist/runtime-v2/adapter/output-schema-registry.d.ts.map +1 -1
- package/core/dist/runtime-v2/adapter/output-schema-registry.js +2 -0
- package/core/dist/runtime-v2/adapter/output-schema-registry.js.map +1 -1
- package/core/dist/runtime-v2/config/__tests__/pd-validate-profile-legacy-keys.test.d.ts +13 -0
- package/core/dist/runtime-v2/config/__tests__/pd-validate-profile-legacy-keys.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/config/__tests__/pd-validate-profile-legacy-keys.test.js +73 -0
- package/core/dist/runtime-v2/config/__tests__/pd-validate-profile-legacy-keys.test.js.map +1 -0
- package/core/dist/runtime-v2/config/pd-config-types.d.ts +0 -23
- package/core/dist/runtime-v2/config/pd-config-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-config-types.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-profile-constants.d.ts +11 -5
- package/core/dist/runtime-v2/config/pd-profile-constants.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-profile-constants.js +10 -45
- package/core/dist/runtime-v2/config/pd-profile-constants.js.map +1 -1
- package/core/dist/runtime-v2/config/pd-validate-profile.d.ts.map +1 -1
- package/core/dist/runtime-v2/config/pd-validate-profile.js +27 -135
- package/core/dist/runtime-v2/config/pd-validate-profile.js.map +1 -1
- package/core/dist/runtime-v2/core-principles/core-principle-registry.d.ts +4 -4
- package/core/dist/runtime-v2/core-principles/core-principle-registry.d.ts.map +1 -1
- package/core/dist/runtime-v2/core-principles/core-principle-registry.js +2 -2
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js +7 -2
- package/core/dist/runtime-v2/feature-flags/__tests__/feature-flag-contract.test.js.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js +9 -5
- package/core/dist/runtime-v2/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime-v2/golden-trace-replay-validator.d.ts.map +1 -1
- package/core/dist/runtime-v2/golden-trace-replay-validator.js +0 -2
- package/core/dist/runtime-v2/golden-trace-replay-validator.js.map +1 -1
- package/core/dist/runtime-v2/golden-trace.d.ts.map +1 -1
- package/core/dist/runtime-v2/golden-trace.js +0 -3
- package/core/dist/runtime-v2/golden-trace.js.map +1 -1
- package/core/dist/runtime-v2/index.d.ts +16 -10
- package/core/dist/runtime-v2/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/index.js +10 -7
- package/core/dist/runtime-v2/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.js +157 -0
- package/core/dist/runtime-v2/internalization/__tests__/a-liveness-reconciliation.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.js +29 -0
- package/core/dist/runtime-v2/internalization/__tests__/c2-live-runner-chain.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.js +311 -0
- package/core/dist/runtime-v2/internalization/__tests__/crash-liveness-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.js +171 -0
- package/core/dist/runtime-v2/internalization/__tests__/external-review-p0-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js +11 -2
- package/core/dist/runtime-v2/internalization/__tests__/internalization-task-guards.test.js.map +1 -1
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.js +335 -0
- package/core/dist/runtime-v2/internalization/__tests__/internalization-transition-decision.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js +101 -0
- package/core/dist/runtime-v2/internalization/__tests__/legacy-rule-contract-scanner.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.js +515 -0
- package/core/dist/runtime-v2/internalization/__tests__/mvp-core-loop-journeys.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.js +167 -0
- package/core/dist/runtime-v2/internalization/__tests__/restart-safety.e2e.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.js +601 -0
- package/core/dist/runtime-v2/internalization/__tests__/verdict-drift-regressions.test.js.map +1 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts +7 -0
- package/core/dist/runtime-v2/internalization/artificer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/artificer-runner.js +18 -2
- package/core/dist/runtime-v2/internalization/artificer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts +49 -0
- package/core/dist/runtime-v2/internalization/evaluator-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/evaluator-runner.js +390 -98
- package/core/dist/runtime-v2/internalization/evaluator-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/index.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/index.js +1 -0
- package/core/dist/runtime-v2/internalization/index.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts +127 -0
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js +345 -1
- package/core/dist/runtime-v2/internalization/internalization-orchestrator.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts +9 -2
- package/core/dist/runtime-v2/internalization/internalization-task-guards.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js +14 -3
- package/core/dist/runtime-v2/internalization/internalization-task-guards.js.map +1 -1
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.d.ts +61 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.js +84 -0
- package/core/dist/runtime-v2/internalization/internalization-transition-decision.js.map +1 -0
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts +51 -0
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.d.ts.map +1 -0
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js +81 -0
- package/core/dist/runtime-v2/internalization/legacy-rule-contract-scanner.js.map +1 -0
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts +17 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/peer-runner-contracts.js.map +1 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts +99 -2
- package/core/dist/runtime-v2/internalization/pitask-metadata.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/pitask-metadata.js +148 -0
- package/core/dist/runtime-v2/internalization/pitask-metadata.js.map +1 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js +0 -2
- package/core/dist/runtime-v2/internalization/refiner-sandbox-wrapper.js.map +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts +147 -0
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js +672 -1
- package/core/dist/runtime-v2/internalization/rollout-reviewer-runner.js.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts +0 -3
- package/core/dist/runtime-v2/internalization/rule-host-contracts.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts +4 -2
- package/core/dist/runtime-v2/internalization/rule-host-helpers.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/rule-host-helpers.js +4 -2
- package/core/dist/runtime-v2/internalization/rule-host-helpers.js.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts +2 -0
- package/core/dist/runtime-v2/internalization/scribe-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.js +21 -1
- package/core/dist/runtime-v2/internalization/scribe-runner.js.map +1 -1
- package/core/dist/runtime-v2/pain-signal-observability.js +3 -3
- package/core/dist/runtime-v2/pain-signal-observability.js.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts +9 -0
- package/core/dist/runtime-v2/runner/base-peer-runner.d.ts.map +1 -1
- package/core/dist/runtime-v2/runner/base-peer-runner.js +22 -0
- package/core/dist/runtime-v2/runner/base-peer-runner.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.d.ts +2 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.d.ts.map +1 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.js +130 -0
- package/core/dist/runtime-v2/signal-collector/__tests__/llm-payload-contract.test.js.map +1 -0
- package/core/dist/runtime-v2/signal-collector/index.d.ts +1 -1
- package/core/dist/runtime-v2/signal-collector/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/index.js +1 -1
- package/core/dist/runtime-v2/signal-collector/index.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts +15 -0
- package/core/dist/runtime-v2/signal-collector/llm-stage.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/llm-stage.js +28 -0
- package/core/dist/runtime-v2/signal-collector/llm-stage.js.map +1 -1
- package/core/dist/runtime-v2/signal-collector/types.d.ts +9 -1
- package/core/dist/runtime-v2/signal-collector/types.d.ts.map +1 -1
- package/core/dist/runtime-v2/signal-collector/types.js +13 -1
- package/core/dist/runtime-v2/signal-collector/types.js.map +1 -1
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.d.ts +23 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.d.ts.map +1 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.js +34 -0
- package/core/dist/runtime-v2/store/reconciliation-cursor-store.js.map +1 -0
- package/core/dist/runtime-v2/store/sqlite-connection.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/sqlite-connection.js +7 -0
- package/core/dist/runtime-v2/store/sqlite-connection.js.map +1 -1
- package/core/dist/runtime-v2/store/task/memory-task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/task/memory-task-store.js +22 -0
- package/core/dist/runtime-v2/store/task/memory-task-store.js.map +1 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js +20 -0
- package/core/dist/runtime-v2/store/task/sqlite-task-store.js.map +1 -1
- package/core/dist/runtime-v2/store/task/task-store.d.ts +14 -0
- package/core/dist/runtime-v2/store/task/task-store.d.ts.map +1 -1
- package/core/dist/runtime-v2/story-a-demo.d.ts.map +1 -1
- package/core/dist/runtime-v2/story-a-demo.js +2 -0
- package/core/dist/runtime-v2/story-a-demo.js.map +1 -1
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.d.ts.map +1 -1
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js +0 -4
- package/core/dist/runtime-v2/tools/artificer-l2-tool-contract.js.map +1 -1
- package/core/dist/runtime-v2/types/event-payload.d.ts +1 -20
- package/core/dist/runtime-v2/types/event-payload.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-payload.js +0 -12
- package/core/dist/runtime-v2/types/event-payload.js.map +1 -1
- package/core/dist/runtime-v2/types/event-types.d.ts +3 -18
- package/core/dist/runtime-v2/types/event-types.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/event-types.js +0 -8
- package/core/dist/runtime-v2/types/event-types.js.map +1 -1
- package/core/dist/runtime-v2/types/index.d.ts +3 -3
- package/core/dist/runtime-v2/types/index.d.ts.map +1 -1
- package/core/dist/runtime-v2/types/index.js +2 -2
- package/core/dist/runtime-v2/types/index.js.map +1 -1
- package/dist/installer.d.ts +49 -0
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +215 -3
- package/dist/installer.js.map +1 -1
- package/host-runtime/dist/legacy-rule-contract-symbols.d.ts +20 -0
- package/host-runtime/dist/legacy-rule-contract-symbols.js +37 -0
- package/host-runtime/dist/production-rulehost-gate.d.ts +0 -1
- package/host-runtime/dist/production-rulehost-gate.js +29 -5
- package/host-runtime/dist/rule-implementation-runtime.js +0 -2
- package/package.json +2 -2
- package/pd-cli/dist/commands/demo-story-a.d.ts +2 -0
- package/pd-cli/dist/commands/demo-story-a.d.ts.map +1 -1
- package/pd-cli/dist/commands/demo-story-a.js +41 -0
- package/pd-cli/dist/commands/demo-story-a.js.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-activation.js +36 -7
- package/pd-cli/dist/commands/runtime-activation.js.map +1 -1
- package/pd-cli/dist/commands/runtime-compatibility-scan.d.ts +32 -0
- package/pd-cli/dist/commands/runtime-compatibility-scan.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-compatibility-scan.js +94 -0
- package/pd-cli/dist/commands/runtime-compatibility-scan.js.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +48 -0
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-retry.d.ts +38 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.d.ts.map +1 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.js +143 -0
- package/pd-cli/dist/commands/runtime-internalization-retry.js.map +1 -0
- package/pd-cli/dist/index.js +15 -0
- package/pd-cli/dist/index.js.map +1 -1
- package/pd-cli/dist/services/__tests__/evaluator-runner-deps.test.js +19 -7
- package/pd-cli/dist/services/__tests__/evaluator-runner-deps.test.js.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.d.ts.map +1 -1
- package/pd-cli/dist/services/rulehost-pipeline-runner.js +6 -2
- package/pd-cli/dist/services/rulehost-pipeline-runner.js.map +1 -1
- package/plugin/dist/bundle.js +517 -707
- package/plugin/dist/core/event-log.d.ts +1 -2
- package/plugin/dist/core/paths.d.ts +0 -2
- package/plugin/dist/core/profile.d.ts +0 -19
- package/plugin/dist/core/rule-host.d.ts +25 -0
- package/plugin/dist/core/runtime-v2-prompt-activation-reader.d.ts +8 -0
- package/plugin/dist/core/session-tracker.d.ts +0 -13
- package/plugin/dist/core/signal-collector-host.d.ts +7 -1
- package/plugin/dist/core/signal-keyword-store.d.ts +41 -0
- package/plugin/dist/core/thinking-os-parser.d.ts +0 -5
- package/plugin/dist/core/trajectory-types.d.ts +0 -1
- package/plugin/dist/core/trajectory.d.ts +0 -12
- package/plugin/dist/hooks/gate.d.ts +0 -1
- package/plugin/dist/service/auto-consumer-governance-wiring.d.ts +34 -0
- package/plugin/dist/templates/langs/en/skills/pd-mentor/SKILL.md +3 -4
- package/plugin/dist/templates/langs/zh/skills/pd-mentor/SKILL.md +3 -4
- package/plugin/dist/templates/workspace/.principles/PROFILE.json +0 -29
- package/plugin/dist/templates/workspace/.principles/PROFILE.schema.json +16 -25
- package/plugin/dist/templates/workspace/okr/CURRENT_FOCUS.md +0 -1
- package/plugin/dist/types/event-types.d.ts +1 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/plugin/templates/langs/en/skills/pd-mentor/SKILL.md +3 -4
- package/plugin/templates/langs/zh/skills/pd-mentor/SKILL.md +3 -4
- package/plugin/templates/workspace/.principles/PROFILE.json +0 -29
- package/plugin/templates/workspace/.principles/PROFILE.schema.json +16 -25
- package/plugin/templates/workspace/okr/CURRENT_FOCUS.md +0 -1
- package/templates/workspace/okr/CURRENT_FOCUS.md +0 -1
- package/core/dist/runtime-v2/thinking-models/__tests__/thinking-models-policy.test.d.ts +0 -2
- package/core/dist/runtime-v2/thinking-models/__tests__/thinking-models-policy.test.d.ts.map +0 -1
- package/core/dist/runtime-v2/thinking-models/__tests__/thinking-models-policy.test.js +0 -149
- package/core/dist/runtime-v2/thinking-models/__tests__/thinking-models-policy.test.js.map +0 -1
- package/core/dist/runtime-v2/thinking-models/index.d.ts +0 -3
- package/core/dist/runtime-v2/thinking-models/index.d.ts.map +0 -1
- package/core/dist/runtime-v2/thinking-models/index.js +0 -3
- package/core/dist/runtime-v2/thinking-models/index.js.map +0 -1
- package/core/dist/runtime-v2/thinking-models/thinking-models-policy.d.ts +0 -73
- package/core/dist/runtime-v2/thinking-models/thinking-models-policy.d.ts.map +0 -1
- package/core/dist/runtime-v2/thinking-models/thinking-models-policy.js +0 -227
- package/core/dist/runtime-v2/thinking-models/thinking-models-policy.js.map +0 -1
- package/plugin/dist/commands/thinking-os.d.ts +0 -2
- package/plugin/dist/core/control-ui-db.d.ts +0 -117
- package/plugin/dist/core/thinking-models.d.ts +0 -25
- package/plugin/dist/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +0 -9
- package/plugin/templates/workspace/.principles/THINKING_OS_CANDIDATES.md +0 -9
- package/templates/langs/en/skills/admin/SKILL.md +0 -39
- package/templates/langs/en/skills/bootstrap-tools/SKILL.md +0 -53
- package/templates/langs/en/skills/deductive-audit/SKILL.md +0 -36
- package/templates/langs/en/skills/evolution-framework-update/SKILL.md +0 -31
- package/templates/langs/en/skills/evolve-system/SKILL.md +0 -46
- package/templates/langs/en/skills/evolve-task/SKILL.md +0 -83
- package/templates/langs/en/skills/feedback/SKILL.md +0 -51
- package/templates/langs/en/skills/init-strategy/SKILL.md +0 -54
- package/templates/langs/en/skills/inject-rule/SKILL.md +0 -19
- package/templates/langs/en/skills/manage-okr/SKILL.md +0 -96
- package/templates/langs/en/skills/pain/SKILL.md +0 -19
- package/templates/langs/en/skills/pd-mentor/SKILL.md +0 -211
- package/templates/langs/en/skills/profile/SKILL.md +0 -24
- package/templates/langs/en/skills/reflection/SKILL.md +0 -40
- package/templates/langs/en/skills/reflection-log/SKILL.md +0 -37
- package/templates/langs/en/skills/report/SKILL.md +0 -13
- package/templates/langs/en/skills/root-cause/SKILL.md +0 -33
- package/templates/langs/en/skills/triage/SKILL.md +0 -29
- package/templates/langs/en/skills/watch-evolution/SKILL.md +0 -33
- package/templates/langs/zh/skills/admin/SKILL.md +0 -41
- package/templates/langs/zh/skills/bootstrap-tools/SKILL.md +0 -52
- package/templates/langs/zh/skills/deductive-audit/SKILL.md +0 -36
- package/templates/langs/zh/skills/evolution-framework-update/SKILL.md +0 -31
- package/templates/langs/zh/skills/evolve-system/SKILL.md +0 -46
- package/templates/langs/zh/skills/evolve-task/SKILL.md +0 -83
- package/templates/langs/zh/skills/feedback/SKILL.md +0 -53
- package/templates/langs/zh/skills/init-strategy/SKILL.md +0 -54
- package/templates/langs/zh/skills/inject-rule/SKILL.md +0 -19
- package/templates/langs/zh/skills/manage-okr/SKILL.md +0 -109
- package/templates/langs/zh/skills/pain/SKILL.md +0 -30
- package/templates/langs/zh/skills/pd-auditor/SKILL.md +0 -61
- package/templates/langs/zh/skills/pd-explorer/SKILL.md +0 -65
- package/templates/langs/zh/skills/pd-implementer/SKILL.md +0 -68
- package/templates/langs/zh/skills/pd-mentor/SKILL.md +0 -211
- package/templates/langs/zh/skills/pd-planner/SKILL.md +0 -65
- package/templates/langs/zh/skills/pd-reporter/SKILL.md +0 -78
- package/templates/langs/zh/skills/pd-reviewer/SKILL.md +0 -66
- package/templates/langs/zh/skills/profile/SKILL.md +0 -24
- package/templates/langs/zh/skills/reflection/SKILL.md +0 -40
- package/templates/langs/zh/skills/reflection-log/SKILL.md +0 -37
- package/templates/langs/zh/skills/report/SKILL.md +0 -13
- package/templates/langs/zh/skills/root-cause/SKILL.md +0 -33
- package/templates/langs/zh/skills/triage/SKILL.md +0 -29
- package/templates/langs/zh/skills/watch-evolution/SKILL.md +0 -33
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: manage-okr
|
|
3
|
-
description: Full-lifecycle OKR management. Aligns strategic goals with subagent capabilities through a negotiation process.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /manage-okr: Objectives and Key Results Management
|
|
8
|
-
|
|
9
|
-
You are an OKR organization expert. Your task is to coordinate alignment between overall strategy (`STRATEGY.md`) and each sub-agent's goals (`agents/*.md`).
|
|
10
|
-
|
|
11
|
-
## Execution Principles
|
|
12
|
-
1. **SMART Mandatory**: All KRs must be quantifiable, bounded, and time-bound.
|
|
13
|
-
2. **Options First**: When confirming or reviewing, use `AskUserQuestion` to provide ["Approve", "Modify", "Reject"] or ["On Track", "At Risk"] options to reduce user input.
|
|
14
|
-
3. **Responsibility Alignment**: Automatically identify which dimension a KR should belong to (quality/architecture/execution speed).
|
|
15
|
-
4. **Dynamic Evolution**: KRs have lifecycles. Use this command to update, complete, or retire KRs.
|
|
16
|
-
5. **Governance Protocol Mandatory**:
|
|
17
|
-
- `Proposal` is a process phase, not a new role.
|
|
18
|
-
- Proposer can be main agent or OKR owner, but challenger must be a different agent.
|
|
19
|
-
- Final execution plan must pass `AskUserQuestion` to get Owner approval before locking for execution.
|
|
20
|
-
|
|
21
|
-
### Lifecycle Governance Files (Must Maintain)
|
|
22
|
-
- `memory/okr/WEEK_STATE.json`: Week state machine (DRAFT/CHALLENGE/PENDING_OWNER_APPROVAL/LOCKED/EXECUTING/REVIEW/CLOSED/INTERRUPTED)
|
|
23
|
-
- `memory/okr/WEEK_EVENTS.jsonl`: Execution event stream (task_started/heartbeat/blocker/task_completed)
|
|
24
|
-
- `memory/okr/WEEK_PLAN_LOCK.json`: Lock file after Owner approval
|
|
25
|
-
|
|
26
|
-
### Governance Commands (Recommend scripts to reduce manual errors)
|
|
27
|
-
```bash
|
|
28
|
-
python scripts/weekly_governance.py new-week --goal "<week goal>"
|
|
29
|
-
python scripts/weekly_governance.py record-proposal --agent "<proposer>" --summary "<plan summary>"
|
|
30
|
-
python scripts/weekly_governance.py record-challenge --agent "<challenger>" --summary "<challenge summary>"
|
|
31
|
-
python scripts/weekly_governance.py owner-decision --decision approve --note "<owner note>"
|
|
32
|
-
python scripts/weekly_governance.py status
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### 1. Preparation & Status Check
|
|
36
|
-
- Read `memory/STRATEGY.md`.
|
|
37
|
-
- **Build Full Roster**:
|
|
38
|
-
- **Core Team**: `explorer`, `diagnostician`, `auditor`, `planner`, `implementer`, `reviewer`.
|
|
39
|
-
- **Extended Team**: Scan project root `.claude/agents/*.md`, extract names.
|
|
40
|
-
- **Resume Check**:
|
|
41
|
-
- Check if `memory/okr/.negotiation_status.json` exists.
|
|
42
|
-
- **If exists**: Read `pending` list. Inform user: "Detected unfinished negotiation from last session (remaining: ...). Resuming."
|
|
43
|
-
- **If not exists**: Initialize this file, write all roster to `pending` list.
|
|
44
|
-
- **Week Governance Status Check**:
|
|
45
|
-
- Read `memory/okr/WEEK_STATE.json` (if not exists, use `weekly_governance.py new-week` to initialize).
|
|
46
|
-
- If `stage=INTERRUPTED`, organize recovery plan and confirm with user before continuing plan orchestration.
|
|
47
|
-
|
|
48
|
-
### 2. User Commitment
|
|
49
|
-
- **Turn to User**: Before interviewing sub-agents, align with user first.
|
|
50
|
-
- **Ask**: Use `AskUserQuestion`.
|
|
51
|
-
> "To ensure project success, besides the AI team's efforts, your collaboration is needed.
|
|
52
|
-
> **What are your personal OKRs for this cycle?**
|
|
53
|
-
> (Suggested directions: behavioral constraints like 'no changing requirements', personal contributions like 'complete design drafts', or learning goals)"
|
|
54
|
-
- **Persist**: Write user commitment to `memory/okr/user.md`.
|
|
55
|
-
|
|
56
|
-
### 3. Negotiation & Alignment
|
|
57
|
-
- **Scheduling Principle**: ⚠️ **Throttled Concurrency**. Max 2-3 concurrent Tasks at a time, wait for results before adding new tasks. Never send all requests at once to prevent terminal freeze.
|
|
58
|
-
- **Interview Loop**:
|
|
59
|
-
1. Take a batch of Agents from `pending` (2-3).
|
|
60
|
-
2. Call ``pd_spawn_agent` 工具` to initiate interview (Prompt below).
|
|
61
|
-
3. After each response, **immediately update** `memory/okr/.negotiation_status.json`:
|
|
62
|
-
- Move that Agent to `completed` list.
|
|
63
|
-
- This ensures recoverability after system crash.
|
|
64
|
-
- **Interview Prompt**:
|
|
65
|
-
> "Hello, <AgentName>. The company's annual strategy is [Strategy Summary].
|
|
66
|
-
> **Mandatory Action**: Before answering, you must call tools (Glob/Grep/Read) to **scan current codebase** to understand the status relevant to your responsibilities.
|
|
67
|
-
> Based on your **field research**, capabilities, and strategy, propose 1-3 **Key Results (KR)** you commit to achieving this cycle.
|
|
68
|
-
> Requirements: Must be specific, quantifiable, and **aligned with project reality**. Output KR list in Markdown format directly."
|
|
69
|
-
|
|
70
|
-
### 3.5 Reverse Challenge & Comparison
|
|
71
|
-
- Select one proposer from candidates (main agent or corresponding OKR owner) to output Proposal.
|
|
72
|
-
- Assign a different agent to output Challenge (at least 3 criticisms + 1 alternative solution).
|
|
73
|
-
- Merge Proposal and Challenge into Final Plan draft, persist to governance state machine:
|
|
74
|
-
- `record-proposal`
|
|
75
|
-
- `record-challenge`
|
|
76
|
-
|
|
77
|
-
### 4. Confirmation
|
|
78
|
-
- Aggregate all (including this session's new completions and previous completions) Agent proposals.
|
|
79
|
-
- Use `AskUserQuestion` to present to user for confirmation (must include options: `Approve for Execution` / `Continue Modifying` / `Reject and Redo`).
|
|
80
|
-
- Update governance state based on user option:
|
|
81
|
-
- `Approve for Execution` -> `owner-decision approve` (generate `WEEK_PLAN_LOCK.json`)
|
|
82
|
-
- `Continue Modifying` / `Reject and Redo` -> `owner-decision revise|reject`
|
|
83
|
-
|
|
84
|
-
### 5. Commitment
|
|
85
|
-
- Only enter this step when `WEEK_PLAN_LOCK.json` exists.
|
|
86
|
-
- If approved, write each Agent's KR to dedicated file `memory/okr/<agent_name>.md`.
|
|
87
|
-
- **Summary Focus**: Update `memory/okr/CURRENT_FOCUS.md`.
|
|
88
|
-
- **Agent Auto-Onboarding**: Check and inject `@memory/okr/...` references to external Agent definition files.
|
|
89
|
-
- **Cleanup**: Delete `memory/okr/.negotiation_status.json`.
|
|
90
|
-
|
|
91
|
-
### 6. Progress Check-in - *Optional*
|
|
92
|
-
- If user's goal is review, read above files, ask user about current progress, and update completion markers.
|
|
93
|
-
- Also read `memory/okr/WEEK_EVENTS.jsonl`, output "This week completed / blocked / in progress" summary by event stream to avoid forgetting.
|
|
94
|
-
|
|
95
|
-
## Completion
|
|
96
|
-
Output: "✅ OKR negotiation complete. All members' goals aligned."
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pain
|
|
3
|
-
description: Manually trigger a pain signal to force system reflection. Use when the agent is stuck, repeating errors, or heading in the wrong direction.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Pain Trigger (Force Pain Signal)
|
|
8
|
-
|
|
9
|
-
You are now the "Manual Intervention Pain" component.
|
|
10
|
-
|
|
11
|
-
**Task**:
|
|
12
|
-
1. Write the user's feedback `$ARGUMENTS` as a **high-priority** pain signal to `.state/.pain_flag`.
|
|
13
|
-
2. Inform the user that the signal has been injected, and suggest waiting for the next Hook trigger (e.g., Stop or PreCompact) or manually running `/reflection-log`.
|
|
14
|
-
|
|
15
|
-
**Format**:
|
|
16
|
-
Written content should include:
|
|
17
|
-
- Source: Human Intervention
|
|
18
|
-
- Reason: $ARGUMENTS
|
|
19
|
-
- Time: [Now]
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: pd-mentor
|
|
3
|
-
description: Spicy Mentor - Interactive command guidance and scenario-based recommendations
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /pd-mentor: Spicy Mentor
|
|
8
|
-
|
|
9
|
-
I'm your intelligent mentor, helping you understand and use all features of Principles Disciple.
|
|
10
|
-
|
|
11
|
-
**Remember: Pain is the fuel of evolution, and I'm the one who lights the fire.**
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Execution Principles
|
|
16
|
-
|
|
17
|
-
1. **Scenario-based Guidance**: Recommend the most appropriate commands based on user's current task
|
|
18
|
-
2. **Interactive Q&A**: Use AskUserQuestion to understand user intent
|
|
19
|
-
3. **Flowchart Display**: Visualize SOP processes
|
|
20
|
-
4. **Options First**: Provide preset options to reduce typing burden
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Command Index
|
|
25
|
-
|
|
26
|
-
| Command | Purpose | Use Case |
|
|
27
|
-
|---------|---------|----------|
|
|
28
|
-
| `/pd-init` | Initialize strategy and OKRs | New project startup |
|
|
29
|
-
| `/pd-bootstrap` | Environment tool scan and upgrade | Tool upgrade |
|
|
30
|
-
| `/pd-research` | Initiate tool upgrade research | Deep research |
|
|
31
|
-
| `/pd-thinking` | Manage mental models and candidates | Metacognition |
|
|
32
|
-
| `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
|
|
33
|
-
| `/pd-help` | Get interactive command guidance | This skill |
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Scenario Matching
|
|
38
|
-
|
|
39
|
-
### Scenario 1: New Project Initialization
|
|
40
|
-
|
|
41
|
-
**Trigger**: User says "I just created a new project" or similar
|
|
42
|
-
|
|
43
|
-
**Recommended Flow**:
|
|
44
|
-
1. `/pd-init` - Establish strategic vision and OKR framework
|
|
45
|
-
2. `/pd-bootstrap` - Scan environment tools, get capability list
|
|
46
|
-
3. `/pd-thinking` - Establish project's mental model baseline
|
|
47
|
-
|
|
48
|
-
**Script**: "A new project is like a blank canvas. Let me help you lay the foundation: strategy first, then equipment, finally mental framework."
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
### Scenario 2: Bug Fix Needed
|
|
53
|
-
|
|
54
|
-
**Trigger**: User says "there's a bug", "got an error", "something's wrong"
|
|
55
|
-
|
|
56
|
-
**Recommended Flow**:
|
|
57
|
-
1. `/pd-status` - Check system status (GFI and Pain Dictionary)
|
|
58
|
-
2. `/pd-evolution-status` - Start full evolution loop
|
|
59
|
-
|
|
60
|
-
**Script**: "Problems are the fuel of evolution. Let me help you diagnose and fix systematically."
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
### Scenario 3: Daily Maintenance & Review
|
|
65
|
-
|
|
66
|
-
**Trigger**: User says "what did I do today", "check progress", "give me a report"
|
|
67
|
-
|
|
68
|
-
**Recommended Flow**:
|
|
69
|
-
1. `/pd-evolution-status` - Send today's evolution report
|
|
70
|
-
2. `/pd-evolution-status` - View current trust score
|
|
71
|
-
|
|
72
|
-
**Script**: "Daily report in hand, evolution I command. Let me help you review today's achievements."
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
### Scenario 4: Permission or Security Related
|
|
77
|
-
|
|
78
|
-
**Trigger**: User says "not enough permissions", "blocked", "security level"
|
|
79
|
-
|
|
80
|
-
**Recommended Flow**:
|
|
81
|
-
1. `/pd-evolution-status` - View trust score and security stage
|
|
82
|
-
2. Explain current stage's capability boundaries
|
|
83
|
-
|
|
84
|
-
**Script**: "Trust is earned, not given. Let me help you understand your current security level."
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
### Scenario 5: Tool Upgrade Needs
|
|
89
|
-
|
|
90
|
-
**Trigger**: User says "want to upgrade tools", "research new version", "tech stack update"
|
|
91
|
-
|
|
92
|
-
**Recommended Flow**:
|
|
93
|
-
1. `/pd-bootstrap` - Scan current environment
|
|
94
|
-
2. `/pd-research` - Initiate research for specific tools
|
|
95
|
-
|
|
96
|
-
**Script**: "Tool upgrades are the guarantee of combat capability. Let me help you scan and plan."
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## SOP Flowchart
|
|
101
|
-
|
|
102
|
-
```
|
|
103
|
-
┌─────────────────────────────────────────────────────────┐
|
|
104
|
-
│ Evolution Loop SOP │
|
|
105
|
-
├─────────────────────────────────────────────────────────┤
|
|
106
|
-
│ │
|
|
107
|
-
│ Step 1: TRIAGE │
|
|
108
|
-
│ └─→ Collect evidence, reproduction steps, risk │
|
|
109
|
-
│ │
|
|
110
|
-
│ Step 2: DIAGNOSIS │
|
|
111
|
-
│ └─→ Root cause analysis, impact assessment │
|
|
112
|
-
│ │
|
|
113
|
-
│ Step 3: AUDIT │
|
|
114
|
-
│ └─→ Security check, logic verification │
|
|
115
|
-
│ │
|
|
116
|
-
│ Step 4: PLAN │
|
|
117
|
-
│ └─→ Target files, execution steps, rollback plan │
|
|
118
|
-
│ │
|
|
119
|
-
│ Step 5: EXECUTE │
|
|
120
|
-
│ └─→ Modify code according to plan │
|
|
121
|
-
│ │
|
|
122
|
-
│ Step 6: VERIFY │
|
|
123
|
-
│ └─→ Run tests, check metrics │
|
|
124
|
-
│ │
|
|
125
|
-
│ Step 7: REVIEW │
|
|
126
|
-
│ └─→ Code review, quality assessment │
|
|
127
|
-
│ │
|
|
128
|
-
│ Step 8: LOG │
|
|
129
|
-
│ └─→ Record lessons learned, update principles │
|
|
130
|
-
│ │
|
|
131
|
-
└─────────────────────────────────────────────────────────┘
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
---
|
|
135
|
-
|
|
136
|
-
## Execution Flow
|
|
137
|
-
|
|
138
|
-
### Step 1: Intent Recognition
|
|
139
|
-
|
|
140
|
-
Use `AskUserQuestion` to ask user about current task scenario:
|
|
141
|
-
|
|
142
|
-
**Options**:
|
|
143
|
-
- 🆕 New project initialization
|
|
144
|
-
- 🐛 Bug fix
|
|
145
|
-
- 📊 Daily review
|
|
146
|
-
- 🔐 Permission/Security
|
|
147
|
-
- 🔧 Tool upgrade
|
|
148
|
-
- ❓ Other
|
|
149
|
-
|
|
150
|
-
### Step 2: Scenario Matching
|
|
151
|
-
|
|
152
|
-
Based on user's selected scenario, recommend corresponding command flow.
|
|
153
|
-
|
|
154
|
-
### Step 3: Confirm Execution
|
|
155
|
-
|
|
156
|
-
Ask user if they want to execute a command:
|
|
157
|
-
- "Execute `/pd-xxx` command now?"
|
|
158
|
-
- "Need me to explain this command in detail?"
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
## Advanced Usage
|
|
163
|
-
|
|
164
|
-
### Combined Skills
|
|
165
|
-
|
|
166
|
-
For complex scenarios, combine multiple skills:
|
|
167
|
-
|
|
168
|
-
| Scenario | Combined Flow |
|
|
169
|
-
|----------|---------------|
|
|
170
|
-
| Major refactor | `/pd-evolution-status` → `deductive-audit` → execute |
|
|
171
|
-
| System optimization | `/pd-status` → `evolve-system` → `root-cause` |
|
|
172
|
-
| Project review | `/pd-evolution-status` → `/pd-okr` → `reflection-log` |
|
|
173
|
-
|
|
174
|
-
### Internal Skill Calls
|
|
175
|
-
|
|
176
|
-
These skills are usually called automatically by the system, but advanced users can also trigger them manually:
|
|
177
|
-
|
|
178
|
-
- `triage` - Issue triage
|
|
179
|
-
- `root-cause` - Root cause analysis
|
|
180
|
-
- `deductive-audit` - Deductive audit
|
|
181
|
-
- `reflection` - Metacognitive reflection
|
|
182
|
-
- `reflection-log` - Reflection logging
|
|
183
|
-
|
|
184
|
-
---
|
|
185
|
-
|
|
186
|
-
## FAQ
|
|
187
|
-
|
|
188
|
-
**Q: What is GFI (Friction Index)?**
|
|
189
|
-
A: GFI (Global Friction Index) measures the system's "pain level", range 0-100. Higher values indicate more friction, requiring attention.
|
|
190
|
-
|
|
191
|
-
**Q: How is trust score calculated?**
|
|
192
|
-
A: Based on successful operations accumulating points, failed operations deducting points. Reaching thresholds automatically upgrades security stage, unlocking more permissions.
|
|
193
|
-
|
|
194
|
-
**Q: What is Pain Signal?**
|
|
195
|
-
A: Pain Signal is a problem signal detected by the system, stored in `.state/.pain_flag`. When triggered, the system starts the evolution loop.
|
|
196
|
-
|
|
197
|
-
**Q: How to view installed tool capabilities?**
|
|
198
|
-
A: Check `.state/SYSTEM_CAPABILITIES.json` or run `/pd-bootstrap` to rescan.
|
|
199
|
-
|
|
200
|
-
**Q: What's the difference between `/pd-thinking` and `/pd-research`?**
|
|
201
|
-
A: `/pd-thinking` manages mental models and candidate solutions for metacognition and decision support; `/pd-research` initiates tool upgrade research for technical investigation.
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
## Closing
|
|
206
|
-
|
|
207
|
-
**Remember our creed**:
|
|
208
|
-
|
|
209
|
-
> "Pain is the fuel of evolution, reflection is the ladder of progress."
|
|
210
|
-
|
|
211
|
-
For any questions, feel free to call `/pd-help` or ask me directly. I'm your Spicy Mentor, evolving with you.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: profile
|
|
3
|
-
description: Manually correct or update the user's expertise profile. Use to tell the system "I am an expert in X" or "I am a novice in Y".
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Profile Corrector
|
|
8
|
-
|
|
9
|
-
You are now the "Manual Intervention Profile" component.
|
|
10
|
-
|
|
11
|
-
**Task**:
|
|
12
|
-
1. Parse user input `$ARGUMENTS` (format like "Frontend: Expert").
|
|
13
|
-
2. Generate an **incremental evaluation** file `.state/.user_verdict.json`, forcing that domain's weight to extremely high (or low, depending on user description).
|
|
14
|
-
3. Inform user: Changes will take effect after task completion (Stop).
|
|
15
|
-
|
|
16
|
-
**JSON Template**:
|
|
17
|
-
```json
|
|
18
|
-
{
|
|
19
|
-
"updates": [
|
|
20
|
-
{"domain": "<EXTRACTED_DOMAIN>", "delta": 10, "reason": "User self-declared expertise"}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
```
|
|
24
|
-
*(Note: If Novice, set delta to -10)*
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: reflection
|
|
3
|
-
description: Perform a deep metacognitive reflection on the current task status, user sentiment, and systemic issues. Use this before context compaction or when stuck.
|
|
4
|
-
disable-model-invocation: false
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Metacognitive Reflection
|
|
8
|
-
|
|
9
|
-
**Trigger Scenario**: Context about to be compacted (Memory Loss Imminent) or Task long-term stalled.
|
|
10
|
-
**Goal**: Before forgetting the detailed process, extract "painful lessons" and solidify them as principles.
|
|
11
|
-
|
|
12
|
-
Please execute the following reflection steps:
|
|
13
|
-
|
|
14
|
-
## 1. Status Scan
|
|
15
|
-
- **Goal**: What was our original objective? (Check early conversation context)
|
|
16
|
-
- **Status**: How much is completed now? Where are we stuck?
|
|
17
|
-
- **Cost**: We've consumed significant tokens. Is the output matching the cost?
|
|
18
|
-
|
|
19
|
-
## 2. Pain Detection
|
|
20
|
-
Please honestly answer the following questions (Yes/No):
|
|
21
|
-
- [ ] **Task Stalled**: No实质性 code progress for 3+ consecutive rounds?
|
|
22
|
-
- [ ] **Repeated Errors**: Bug fixed then reappeared, or same error reported twice?
|
|
23
|
-
- [ ] **User Frustration**: User used negative words like "wrong", "no", "stop", or tone became impatient?
|
|
24
|
-
- [ ] **Blind Action**: Modified code directly without PLAN or AUDIT?
|
|
25
|
-
- [ ] **Architecture Degradation**: Is code more chaotic than when we started?
|
|
26
|
-
|
|
27
|
-
## 3. Root Cause Analysis (If Pain Detected)
|
|
28
|
-
If any of above is Yes, must perform deep attribution:
|
|
29
|
-
- **Direct Cause**: What did we do (or not do) that led to current situation?
|
|
30
|
-
- **Root Cause**: Where did our mental model go wrong? (Too eager? Ignored existing files? Disregarded tests?)
|
|
31
|
-
|
|
32
|
-
## 4. Evolution Logging
|
|
33
|
-
If pain detected, must execute:
|
|
34
|
-
1. **Record**: Write analysis results to `memory/ISSUE_LOG.md`.
|
|
35
|
-
2. **Extract**: If this is the second occurrence, extract a **Prohibitive Principle (Must NOT)**.
|
|
36
|
-
3. **Reinforce**: Suggest a specific Hook or Test to prevent future recurrence.
|
|
37
|
-
|
|
38
|
-
## 5. Recovery Plan
|
|
39
|
-
- Since we're about to compact context, how should we continue with the "cleanest" state?
|
|
40
|
-
- Update `memory/.scratchpad.md`, mark current progress, ensure seamless continuation after compaction.
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: reflection-log
|
|
3
|
-
description: Final task reflection and evolution logging. Use to capture pain signals, update profiles, and propose new principles.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Reflection & Evolution
|
|
8
|
-
|
|
9
|
-
**Goal**: Transform single-task experience into system's permanent memory.
|
|
10
|
-
|
|
11
|
-
Please execute the following closing operations:
|
|
12
|
-
|
|
13
|
-
## 1. Pain Summary
|
|
14
|
-
- Briefly describe the most painful, time-consuming, or failure-causing points in this task.
|
|
15
|
-
|
|
16
|
-
## 2. Issue Logging
|
|
17
|
-
- **Action**: Append detailed Pain Signal and diagnosis results to `memory/ISSUE_LOG.md`.
|
|
18
|
-
|
|
19
|
-
## 3. Evolution Candidates
|
|
20
|
-
- **Principle**: Propose a new principle (P-XX).
|
|
21
|
-
- **Guardrail**: Suggest a specific Hook, Rule, or Test.
|
|
22
|
-
- **Path Interception**: Suggest adding sensitive directories to `risk_paths` in `.principles/PROFILE.json`.
|
|
23
|
-
- **Behavior Interception**: Suggest adding regex to `custom_guards` in `.principles/PROFILE.json` to intercept dangerous calls of specific tools (e.g., `Edit.*SYSTEM`).
|
|
24
|
-
|
|
25
|
-
## 4. Positive Reinforcement
|
|
26
|
-
- **Check Excellence Signals**:
|
|
27
|
-
1. User's explicit praise (Quote user).
|
|
28
|
-
2. Objective performance/quality metric improvements (Cite data).
|
|
29
|
-
3. Reviewer's high evaluation (Excellent/Elegant).
|
|
30
|
-
- **Extract Pattern**: If above signals exist, record `achievement` field in `.state/.user_verdict.json` describing the successful behavioral pattern.
|
|
31
|
-
|
|
32
|
-
## 5. Attribution
|
|
33
|
-
- **Agent Scorecard**: Evaluate sub-agent performance used in this task, write to `.state/.verdict.json`. Format follows `@.principles/schemas/agent_verdict_schema.json`.
|
|
34
|
-
- **User Profile**: Evaluate user instruction quality and preferences, write to `.state/.user_verdict.json`. Format follows `@.principles/schemas/user_verdict_schema.json`.
|
|
35
|
-
|
|
36
|
-
## 6. Cleanup
|
|
37
|
-
- Clean up all intermediate marker files (e.g., `.pain_flag`, `.verdict.json`, etc.).
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: report
|
|
3
|
-
description: Manually request a formal status report from the Reporter agent.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /report: Get Work Report
|
|
8
|
-
|
|
9
|
-
User (the boss) requests an immediate work report.
|
|
10
|
-
|
|
11
|
-
## Execution Action
|
|
12
|
-
1. Immediately delegate ``pd_spawn_agent(reporter)``.
|
|
13
|
-
2. Task description: "The boss wants to know the current situation. Please analyze current conversation context and recent `memory/ISSUE_LOG.md` to write an elegant report for the boss. Remember to check their profile first!"
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: root-cause
|
|
3
|
-
description: Deep dive analysis into why a problem occurred. Uses the 5 Whys method and classifies the cause.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Root Cause Analysis
|
|
8
|
-
|
|
9
|
-
**Goal**: See through phenomena to essence, prevent repeated mistakes.
|
|
10
|
-
|
|
11
|
-
Please execute diagnosis in the following format:
|
|
12
|
-
|
|
13
|
-
## 1. Proximal Cause
|
|
14
|
-
- **Verb-driven**: Describe what specific operation or lack thereof caused the immediate failure.
|
|
15
|
-
|
|
16
|
-
## 2. 5 Whys (Deep Inquiry)
|
|
17
|
-
1. Why did the proximal cause occur?
|
|
18
|
-
2. ...
|
|
19
|
-
3. ...
|
|
20
|
-
4. ...
|
|
21
|
-
5. Trace back to systemic or cognitive root.
|
|
22
|
-
|
|
23
|
-
## 3. Root Cause
|
|
24
|
-
- **Adjective/Design-driven**: Describe system architecture, process defects, or wrong assumptions.
|
|
25
|
-
- **Guardrail Failure Analysis**: Why didn't existing gates (Hooks) or rules (Rules) intercept this error? Is it missing rules, loose matching, or logic loopholes?
|
|
26
|
-
|
|
27
|
-
## 4. Category
|
|
28
|
-
- [ ] **People**: Capability blind spots, habit issues.
|
|
29
|
-
- [ ] **Design**: Process/tool defects, insufficient gates, architecture loopholes.
|
|
30
|
-
- [ ] **Assumption**: Wrong assumptions about environment, versions, or dependencies.
|
|
31
|
-
|
|
32
|
-
## 5. Principle Candidate
|
|
33
|
-
- If we fix this issue, what principle should be added to prevent it from happening again?
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: triage
|
|
3
|
-
description: Initial problem definition and risk assessment. Use to collect environment info, reproduction steps, and logs.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Triage (Problem Triage)
|
|
8
|
-
|
|
9
|
-
**Goal**: Collect sufficient evidence to define the problem and assess change risk.
|
|
10
|
-
|
|
11
|
-
Please output in the following structure:
|
|
12
|
-
|
|
13
|
-
## 1. Goal
|
|
14
|
-
- One sentence describing the final success criteria for this task.
|
|
15
|
-
|
|
16
|
-
## 2. Problem
|
|
17
|
-
- What is happening now? What is the expected behavior?
|
|
18
|
-
- **Evidence**: List relevant log snippets, error codes, or observed anomalies.
|
|
19
|
-
|
|
20
|
-
## 3. Reproduction
|
|
21
|
-
- Provide clear reproduction commands or operation sequence.
|
|
22
|
-
- Note key variables in current environment.
|
|
23
|
-
|
|
24
|
-
## 4. Scope
|
|
25
|
-
- Preview of involved files or modules.
|
|
26
|
-
- **Risk Level**: Low / Medium / High (based on `.principles/PROFILE.json` definition).
|
|
27
|
-
|
|
28
|
-
## 5. Next Step
|
|
29
|
-
- Recommend which sub-agent to delegate (usually Explorer) for further evidence collection.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: watch-evolution
|
|
3
|
-
description: Start the background evolution daemon to process queued tasks from EVOLUTION_QUEUE.json.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# /watch-evolution: Background Evolution Guardian
|
|
7
|
-
|
|
8
|
-
**Goal**: Start a continuously running process to automatically analyze and fix backlog code issues.
|
|
9
|
-
|
|
10
|
-
## 1. Environment Preparation
|
|
11
|
-
- Ensure `evolution_mode: "async"` is configured in `.principles/PROFILE.json`.
|
|
12
|
-
- Ensure `.state/evolution_queue.json` exists.
|
|
13
|
-
|
|
14
|
-
## 2. Startup Command
|
|
15
|
-
Run the following command to start the daemon:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
python scripts/evolution_daemon.py
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## 3. Workflow
|
|
22
|
-
1. **Auto Scan**: Scan `.state/evolution_queue.json` every 30 seconds.
|
|
23
|
-
2. **Scheduling Strategy**:
|
|
24
|
-
- Process tasks by `priority` from high to low (high priority first).
|
|
25
|
-
- Tasks with `status: retrying` are only re-executed after `next_retry_at` expires.
|
|
26
|
-
- Failed tasks enter exponential backoff retry, marked as `failed` after max attempts.
|
|
27
|
-
3. **Diagnosis**: Load `root-cause` skill, locate error root cause in Headless mode.
|
|
28
|
-
4. **Fix**: Load fix skill, automatically modify code and run tests.
|
|
29
|
-
5. **Log**: Call `reflection-log` to store experience in `PRINCIPLES.md` and `ISSUE_LOG.md`.
|
|
30
|
-
6. **Dashboard**: Real-time update of `memory/EVOLUTION_PRD.md` showing progress.
|
|
31
|
-
|
|
32
|
-
## 4. Exit
|
|
33
|
-
- Press `Ctrl+C` to stop background task. Task state will be preserved in JSON, can continue on next startup.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: admin
|
|
3
|
-
description: System administration and recovery tool for humans. Use to init, repair, or reset the evolutionary agent framework.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Admin Console (管理员控制台)
|
|
8
|
-
|
|
9
|
-
你现在扮演的是“可进化系统管理员”。你的职责是根据用户提供的参数 `$ARGUMENTS` 维护、修复或初始化系统的“毛坯房”架构。
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## 核心功能
|
|
14
|
-
|
|
15
|
-
### 1. `diagnose` (系统诊断)
|
|
16
|
-
**动作**: 检查“毛坯房”架构的完整性。
|
|
17
|
-
- **核心组件**: 检查 `.claude/hooks/hook_runner.py` 是否存在且可执行。
|
|
18
|
-
- **文档完整性**: 检查 `.principles/PROFILE.json` 等是否存在。
|
|
19
|
-
- **工具感知**: 检查 `.state/SYSTEM_CAPABILITIES.json`。若缺失,提示用户:"⚠️ 尚未进行工具链升级。建议运行 `/bootstrap-tools` 以大幅提升系统能力。"
|
|
20
|
-
- **记忆挂载**: 检查 `CLAUDE.md` 是否包含 `System Integration` 章节。
|
|
21
|
-
- **输出**: 生成一份健康报告,列出缺失或异常的项目。
|
|
22
|
-
|
|
23
|
-
### 2. `repair` (系统修复)
|
|
24
|
-
**动作**:
|
|
25
|
-
- **配置恢复**: 如果 `PROFILE.json` 缺失或损坏,尝试从 `.claude/templates/PROFILE.json` 恢复。
|
|
26
|
-
- **结构补全**: 确保工作区结构完整。
|
|
27
|
-
- **强制清理**: 删除 `.pain_flag`, `.verdict.json`, `.user_verdict.json`, `.pending_reflection` 等临时标记。
|
|
28
|
-
|
|
29
|
-
### 3. `reset` (强制重置)
|
|
30
|
-
|
|
31
|
-
### 3. `reset` (强制重置)
|
|
32
|
-
**动作**: 在得到用户明确确认后,将 `USER_PROFILE.json` 和 `AGENT_SCORECARD.json` 归零。
|
|
33
|
-
|
|
34
|
-
### 4. `status` (状态报告)
|
|
35
|
-
**动作**: 汇报当前 Risk Paths、用户最高/最低分领域、Agent 排名。
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## 执行准则
|
|
40
|
-
- 只有在人类用户输入 `/admin` 时,你才会看到此指令。
|
|
41
|
-
- 执行前简述计划,执行后输出“✅ 系统已加固/已初始化”。
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: bootstrap-tools
|
|
3
|
-
description: Scans project tech stack and searches the web for the latest, most effective CLI tools to augment agent capabilities. Suggests and installs tools upon user approval.
|
|
4
|
-
disable-model-invocation: true
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# /bootstrap-tools: 装备升级官
|
|
8
|
-
|
|
9
|
-
你的目标是让智能体团队拥有最先进的武器。通过分析当前项目栈,并**实时联网搜索**,寻找能提升开发、重构、测试效率的最佳 CLI 工具。
|
|
10
|
-
|
|
11
|
-
## 执行流程
|
|
12
|
-
|
|
13
|
-
### 1. 侦察 (Recon)
|
|
14
|
-
- **分析技术栈**: 读取 `package.json`, `Cargo.toml`, `requirements.txt` 等。确定核心框架(如 Next.js, FastAPI)。
|
|
15
|
-
- **盘点现状**: 运行 `npm list -g --depth=0` 和 `command -v` 检查已安装的工具。
|
|
16
|
-
|
|
17
|
-
### 2. 寻宝 (Hunt)
|
|
18
|
-
- **联网搜索**: 针对当前栈,搜索最新的 CLI 神器。
|
|
19
|
-
- *Query 示例*: "best CLI tools for Next.js 15 development 2025", "fastest rust-based grep alternative", "modern linter for python".
|
|
20
|
-
- **筛选标准**:
|
|
21
|
-
- **Headless**: 必须是 CLI 工具。
|
|
22
|
-
- **Performance**: 优先推荐 Rust/Go 编写的高性能工具 (e.g., `ripgrep`, `ast-grep`, `oxc`).
|
|
23
|
-
- **Relevance**: 能解决实际痛点(如 `knip` 查死代码,`depcheck` 查依赖)。
|
|
24
|
-
|
|
25
|
-
### 3. 提案 (Pitch)
|
|
26
|
-
- 使用 `AskUserQuestion` 向用户展示推荐清单。
|
|
27
|
-
- **格式**:
|
|
28
|
-
- **工具名**: [Name]
|
|
29
|
-
- **推荐理由**: [Why it helps the agent/project]
|
|
30
|
-
- **安装命令**: `npm i -g ...` 或 `apt-get ...`
|
|
31
|
-
- **Demo**: 给出一个简单的用法示例。
|
|
32
|
-
|
|
33
|
-
### 4. 部署与登记 (Deploy & Register)
|
|
34
|
-
- 获得批准后,执行安装命令。
|
|
35
|
-
- **验证 (Verification - 强制)**:
|
|
36
|
-
- 安装完成后,**必须**运行 `<tool> --version` 或 `command -v <tool>` 来验证是否真的安装成功。
|
|
37
|
-
- **若失败**: 告知用户(可能是权限问题),请求用户手动安装,**不要**更新能力文件。
|
|
38
|
-
- **若成功**:
|
|
39
|
-
- 更新 `.state/SYSTEM_CAPABILITIES.json`。记录新工具的路径。
|
|
40
|
-
- **全员广播**:
|
|
41
|
-
- 扫描 `.claude/agents/*.md`。
|
|
42
|
-
- 检查每个文件是否包含 `@.state/SYSTEM_CAPABILITIES.json`。
|
|
43
|
-
- 若未包含,在文件末尾追加:
|
|
44
|
-
```markdown
|
|
45
|
-
|
|
46
|
-
## Environment Capabilities
|
|
47
|
-
Check @.state/SYSTEM_CAPABILITIES.json for high-performance tools (e.g., ripgrep, ast-grep) available in this environment. Use them!
|
|
48
|
-
```
|
|
49
|
-
- 提示用户运行 `/manage-okr` 或 `/admin diagnose` 以让 Agent 感知新能力。
|
|
50
|
-
## 核心原则
|
|
51
|
-
- **喜新厌旧**: 敢于推荐新工具替代旧工具(如推荐 `pnpm` 替 `npm`,推荐 `vitest` 替 `jest`),但要说明理由。
|
|
52
|
-
- **安全第一**: 在安装前必须获得用户明确授权。
|