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,4 +1,4 @@
|
|
|
1
|
-
import type { EventLogEntry, DailyStats, EmpathyEventStats, ToolCallEventData, PainSignalEventData, RulePromotionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData,
|
|
1
|
+
import type { EventLogEntry, DailyStats, EmpathyEventStats, ToolCallEventData, PainSignalEventData, RulePromotionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, EvolutionTaskEventData, EmpathyRollbackEventData, DiagnosisTaskEventData, HeartbeatDiagnosisEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimeV2PromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData } from '../types/event-types.js';
|
|
2
2
|
import type { PluginLogger } from '../openclaw-sdk.js';
|
|
3
3
|
export declare class EventLog {
|
|
4
4
|
private readonly logsDir;
|
|
@@ -24,7 +24,6 @@ export declare class EventLog {
|
|
|
24
24
|
}): void;
|
|
25
25
|
recordGateBlock(sessionId: string | undefined, data: GateBlockEventData): void;
|
|
26
26
|
recordGateBypass(sessionId: string | undefined, data: GateBypassEventData): void;
|
|
27
|
-
recordPlanApproval(sessionId: string | undefined, data: PlanApprovalEventData): void;
|
|
28
27
|
recordEvolutionTask(data: EvolutionTaskEventData): void;
|
|
29
28
|
recordEvolutionTaskCompleted(data: EvolutionTaskEventData): void;
|
|
30
29
|
recordEmpathyRollback(sessionId: string | undefined, data: EmpathyRollbackEventData): void;
|
|
@@ -32,7 +32,6 @@ export declare const PD_FILES: {
|
|
|
32
32
|
SYSTEM_CAPABILITIES: string;
|
|
33
33
|
PAIN_SETTINGS: string;
|
|
34
34
|
PAIN_CANDIDATES: string;
|
|
35
|
-
THINKING_OS_USAGE: string;
|
|
36
35
|
TRAJECTORY_DB: string;
|
|
37
36
|
TRAJECTORY_BLOBS_DIR: string;
|
|
38
37
|
EXPORTS_DIR: string;
|
|
@@ -49,7 +48,6 @@ export declare const PD_FILES: {
|
|
|
49
48
|
OKR_DIR: string;
|
|
50
49
|
CURRENT_FOCUS: string;
|
|
51
50
|
WEEK_STATE: string;
|
|
52
|
-
THINKING_OS_CANDIDATES: string;
|
|
53
51
|
EVOLUTION_STREAM: string;
|
|
54
52
|
EVOLUTION_LOCK: string;
|
|
55
53
|
};
|
|
@@ -5,11 +5,6 @@ export declare const PROFILE_DEFAULTS: {
|
|
|
5
5
|
audit_level: string;
|
|
6
6
|
risk_paths: string[];
|
|
7
7
|
evolution_mode: string;
|
|
8
|
-
gate: {
|
|
9
|
-
require_plan_for_risk_paths: boolean;
|
|
10
|
-
require_audit_before_write: boolean;
|
|
11
|
-
require_reviewer_after_write: boolean;
|
|
12
|
-
};
|
|
13
8
|
tests: {
|
|
14
9
|
on_change: string;
|
|
15
10
|
on_risk_change: string;
|
|
@@ -32,15 +27,6 @@ export declare const PROFILE_DEFAULTS: {
|
|
|
32
27
|
enabled: boolean;
|
|
33
28
|
heartbeat_stale_hours: number;
|
|
34
29
|
};
|
|
35
|
-
progressive_gate: {
|
|
36
|
-
enabled: boolean;
|
|
37
|
-
plan_approvals: {
|
|
38
|
-
enabled: boolean;
|
|
39
|
-
max_lines_override: number;
|
|
40
|
-
allowed_patterns: string[];
|
|
41
|
-
allowed_operations: string[];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
30
|
edit_verification: {
|
|
45
31
|
enabled: boolean;
|
|
46
32
|
max_file_size_bytes: number;
|
|
@@ -48,11 +34,6 @@ export declare const PROFILE_DEFAULTS: {
|
|
|
48
34
|
fuzzy_match_threshold: number;
|
|
49
35
|
skip_large_file_action: "warn" | "block";
|
|
50
36
|
};
|
|
51
|
-
thinking_checkpoint: {
|
|
52
|
-
enabled: boolean;
|
|
53
|
-
window_ms: number;
|
|
54
|
-
high_risk_tools: string[];
|
|
55
|
-
};
|
|
56
37
|
custom_guards: {
|
|
57
38
|
pattern: string;
|
|
58
39
|
message: string;
|
|
@@ -61,6 +61,12 @@ export interface SkippedActivation {
|
|
|
61
61
|
}
|
|
62
62
|
export interface RuleHostEvaluationReport {
|
|
63
63
|
readonly liveDecision: RuleHostResult | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* P1 (ISSUE-023): live 聚合决策的溯源 — 贡献该决策的 live activation id
|
|
66
|
+
* (经 ruleId 反查 implementationSources)。审计开放项: 414 次 live-mode
|
|
67
|
+
* 评估无法对账到具体规则,因为 live 事件不带 activationId。
|
|
68
|
+
*/
|
|
69
|
+
readonly liveDecisionActivationId?: string;
|
|
64
70
|
readonly shadowDecisions: readonly RuleHostObservedDecision[];
|
|
65
71
|
/**
|
|
66
72
|
* PRI-491 — Activations that were skipped at load time. Empty when all
|
|
@@ -69,6 +75,25 @@ export interface RuleHostEvaluationReport {
|
|
|
69
75
|
*/
|
|
70
76
|
readonly skippedActivations: readonly SkippedActivation[];
|
|
71
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* P1 (2026-08-20): Compatibility Guard type guard.
|
|
80
|
+
*
|
|
81
|
+
* Distinguishes a runtime compatibility fail-closed block (an active
|
|
82
|
+
* owner-approved RuleCode depends on a retired contract symbol and was NEVER
|
|
83
|
+
* executed) from a real Principle-enforcement block (RuleCode actually ran
|
|
84
|
+
* and returned block).
|
|
85
|
+
*
|
|
86
|
+
* Machine semantics: the block is a RUNTIME safety guard, not behavioral
|
|
87
|
+
* evidence. The OpenClaw gate MUST use this guard (branching on
|
|
88
|
+
* `diagnostics.kind` / `diagnostics.code`) and must NOT use
|
|
89
|
+
* reason.startsWith/includes text matching.
|
|
90
|
+
*/
|
|
91
|
+
export declare function isCompatibilityGuardBlock(result: RuleHostResult | undefined): result is RuleHostResult & {
|
|
92
|
+
diagnostics: {
|
|
93
|
+
kind: 'compatibility_guard';
|
|
94
|
+
code: 'legacy_rule_contract_dependency';
|
|
95
|
+
};
|
|
96
|
+
};
|
|
72
97
|
export declare class RuleHost {
|
|
73
98
|
private readonly stateDir;
|
|
74
99
|
private logger;
|
|
@@ -14,6 +14,14 @@ export declare class PromptActivationReader {
|
|
|
14
14
|
constructor(workspaceDir: string, deps?: PromptActivationReaderDeps);
|
|
15
15
|
readActivatedPrinciples(): Promise<PromptActivationReaderResult>;
|
|
16
16
|
private queryArtifactRow;
|
|
17
|
+
/**
|
|
18
|
+
* P0-G (INV-05): activation authority 推导 (derived join, 无 schema 迁移)。
|
|
19
|
+
* approvals 的 approvalId 是确定性的 (apr_<channel>_<artifactId>), 因此
|
|
20
|
+
* artifact_id+channel 上存在 status='approved' 行 ⟺ owner 授权;
|
|
21
|
+
* 无行 ⟺ 低风险 policy 自动激活 (system_policy)。rc-1/rc-5: 行字段按
|
|
22
|
+
* unknown 校验, 键存在性用 Object.hasOwn。
|
|
23
|
+
*/
|
|
24
|
+
private deriveAuthority;
|
|
17
25
|
/**
|
|
18
26
|
* PRI-305/PRI-307: Load feature flags from .pd/config.yaml instead of .pd/feature-flags.yaml.
|
|
19
27
|
* Uses the shared plugin config loader for consistency.
|
|
@@ -30,7 +30,6 @@ export interface SessionState {
|
|
|
30
30
|
dailyToolFailures: number;
|
|
31
31
|
dailyPainSignals: number;
|
|
32
32
|
dailyGfiPeak: number;
|
|
33
|
-
lastThinkingTimestamp: number;
|
|
34
33
|
injectedProbationIds?: string[];
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
@@ -59,18 +58,6 @@ export declare function resetFriction(sessionId: string, workspaceDir?: string,
|
|
|
59
58
|
source?: string;
|
|
60
59
|
amount?: number;
|
|
61
60
|
}): SessionState;
|
|
62
|
-
/**
|
|
63
|
-
* Records that deep thinking (Thinking OS) was performed in this session.
|
|
64
|
-
* Used by the Thinking OS checkpoint to allow high-risk operations.
|
|
65
|
-
*/
|
|
66
|
-
export declare function recordThinkingCheckpoint(sessionId: string, workspaceDir?: string): SessionState;
|
|
67
|
-
/**
|
|
68
|
-
* Checks if deep thinking was performed recently (within the given window).
|
|
69
|
-
* @param sessionId - The session to check
|
|
70
|
-
* @param windowMs - How recent the thinking must be (default: 5 minutes)
|
|
71
|
-
* @returns true if thinking was recorded within the window
|
|
72
|
-
*/
|
|
73
|
-
export declare function hasRecentThinking(sessionId: string, windowMs?: number): boolean;
|
|
74
61
|
export declare function trackBlock(sessionId: string): SessionState;
|
|
75
62
|
export declare function setInjectedProbationIds(sessionId: string, ids: string[], workspaceDir?: string): SessionState;
|
|
76
63
|
export declare function getInjectedProbationIds(sessionId: string, workspaceDir?: string): string[];
|
|
@@ -45,13 +45,19 @@ export type SignalLlmClassifier = (text: string, promptTemplate: string) => Prom
|
|
|
45
45
|
} | null>;
|
|
46
46
|
export interface SignalCollectorHostOptions {
|
|
47
47
|
keywordStore?: UnifiedKeywordStore;
|
|
48
|
+
/**
|
|
49
|
+
* Live store provider (P0-B Learn→Detect 闭环): 每次检测调用,mtime 变化时
|
|
50
|
+
* 重载 learned correction cues。设置后优先于 keywordStore 静态快照——
|
|
51
|
+
* optimizer 学到的词无需重启 OpenClaw 即进入下一次检测。
|
|
52
|
+
*/
|
|
53
|
+
keywordStoreProvider?: () => UnifiedKeywordStore;
|
|
48
54
|
config?: SignalCollectorConfig;
|
|
49
55
|
/** Stage2 LLM 分类器。null/undefined → 降级纯关键词。 */
|
|
50
56
|
llmClassifier?: SignalLlmClassifier | null;
|
|
51
57
|
}
|
|
52
58
|
export declare class SignalCollectorHost {
|
|
53
59
|
private readonly wctx;
|
|
54
|
-
private readonly
|
|
60
|
+
private readonly storeProvider;
|
|
55
61
|
private readonly config;
|
|
56
62
|
private readonly llmClassifier;
|
|
57
63
|
/** rate limit 状态:sessionId → STRONG 计数桶 */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live Signal Keyword Store — Learn→Detect 反馈闭环的检测侧接线
|
|
3
|
+
* (MVP_CORE_LOOP_CONTRACT INV-01 §3 / P0-B)。
|
|
4
|
+
*
|
|
5
|
+
* 审计背景 (ISSUE-003): 修复前检测用 buildDefaultKeywordStore() 硬编码 6 词,
|
|
6
|
+
* 与 CorrectionCueLearner/KeywordOptimizationService 写入的
|
|
7
|
+
* <stateDir>/correction_keywords.json 完全脱钩——optimizer 学到的词永不回流检测。
|
|
8
|
+
*
|
|
9
|
+
* 本模块把 learner store (canonical mutable correction cue source) 投影成
|
|
10
|
+
* UnifiedKeywordStore,并在每次检测时按 mtime 检查刷新:
|
|
11
|
+
* - optimizer 写入 correction_keywords.json 后,无需重启 OpenClaw,
|
|
12
|
+
* 下一次 detectSync 即消费新词 (cache invalidation via stat mtime)。
|
|
13
|
+
* - empathy cue 不在 learner store 中(learner 是 correction-only),
|
|
14
|
+
* 以 seed overlay 保留,行为不变。
|
|
15
|
+
* - 3 个已证实的高精度纠正短语(不在 learner seed 集内)以 seed overlay
|
|
16
|
+
* 保留,高精度 deterministic path 不回退。
|
|
17
|
+
* - learned 词 weight ≥ HIGH_PRECISION_LEARNED_WEIGHT → precision 'high'
|
|
18
|
+
* (可确定性触发 STRONG);FP 权重衰减(×0.8)是自然降级机制。
|
|
19
|
+
*/
|
|
20
|
+
import type { UnifiedKeywordStore } from '@principles/core/runtime-v2';
|
|
21
|
+
import type { WorkspaceContext } from './workspace-context.js';
|
|
22
|
+
/** learned 词进入高精度 deterministic path 的权重阈值(仅适用于 seed/owner_promoted;
|
|
23
|
+
* llm_learned 恒 ambiguous — 见 projectLearnedStore 内注释) */
|
|
24
|
+
export declare const HIGH_PRECISION_LEARNED_WEIGHT = 0.7;
|
|
25
|
+
/** 高精度纠正短语 overlay(已验证的确定性 STRONG 路径,不属于 learner seed 集) */
|
|
26
|
+
export declare const HIGH_PRECISION_CORRECTION_OVERLAY: ReadonlyArray<readonly [string, number]>;
|
|
27
|
+
/** empathy seed overlay(检测行为不变) */
|
|
28
|
+
export declare const EMPATHY_SEED_OVERLAY: ReadonlyArray<readonly [string, number]>;
|
|
29
|
+
export interface LiveKeywordStore {
|
|
30
|
+
/** 每次检测调用:mtime 未变返回缓存,变了重载并返回新快照 */
|
|
31
|
+
resolve(): UnifiedKeywordStore;
|
|
32
|
+
/** 当前快照的观测元数据(测试/诊断用) */
|
|
33
|
+
stats(): {
|
|
34
|
+
totalTerms: number;
|
|
35
|
+
learnedTerms: number;
|
|
36
|
+
lastReloadedAt: string | null;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare function createLiveSignalKeywordStore(wctx: WorkspaceContext, logger?: {
|
|
40
|
+
debug?: (msg: string) => void;
|
|
41
|
+
}): LiveKeywordStore;
|
|
@@ -28,8 +28,3 @@ export declare function parseThinkingOsMd(content: string): ThinkingOsDirective[
|
|
|
28
28
|
* Falls back to the workspace THINKING_OS.md if it exists.
|
|
29
29
|
*/
|
|
30
30
|
export declare function loadThinkingOsFromWorkspace(workspaceDir: string, language?: string): ThinkingOsDirective[];
|
|
31
|
-
/**
|
|
32
|
-
* Extract meaningful detection keywords from a trigger string.
|
|
33
|
-
* Returns an array of regex patterns.
|
|
34
|
-
*/
|
|
35
|
-
export declare function generateDetectionPatterns(trigger: string): RegExp[];
|
|
@@ -192,18 +192,6 @@ export declare class TrajectoryDatabase {
|
|
|
192
192
|
* Not: Runtime truth or real-time queue state.
|
|
193
193
|
*/
|
|
194
194
|
listCorrectionSamples(status?: CorrectionSampleReviewStatus): CorrectionSampleRecord[];
|
|
195
|
-
/**
|
|
196
|
-
* List gate blocks for a session.
|
|
197
|
-
* Returns minimal fields for nocturnal use — no raw text.
|
|
198
|
-
*/
|
|
199
|
-
listGateBlocksForSession(sessionId: string): {
|
|
200
|
-
id: number;
|
|
201
|
-
toolName: string;
|
|
202
|
-
filePath: string | null;
|
|
203
|
-
reason: string;
|
|
204
|
-
planStatus: string | null;
|
|
205
|
-
createdAt: string;
|
|
206
|
-
}[];
|
|
207
195
|
/**
|
|
208
196
|
* List correction samples for a specific session.
|
|
209
197
|
* Returns minimal fields for nocturnal use — correction cue only.
|
|
@@ -19,7 +19,6 @@ export declare function handleBeforeToolCall(event: PluginHookBeforeToolCallEven
|
|
|
19
19
|
}): PluginHookBeforeToolCallResult | void;
|
|
20
20
|
export declare function buildOpenClawRuleInputEnrichment(event: PluginHookBeforeToolCallEvent, workspaceDir: string, sessionId: string | undefined): {
|
|
21
21
|
currentGfi: number;
|
|
22
|
-
recentThinking: boolean;
|
|
23
22
|
epTier: number;
|
|
24
23
|
bashRisk: "dangerous" | "normal" | "safe" | "unknown";
|
|
25
24
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-consumer governance wiring (P0-D/E/F 生产接线)。
|
|
3
|
+
*
|
|
4
|
+
* 审计背景 (ISSUE-005/006): PRI-509 repair loop "intentionally NOT wired" 于
|
|
5
|
+
* auto-consumer; rollout_reviewer succeedTask 不 dispatch;修复后:
|
|
6
|
+
* - evaluator: 注入 isRepairLoopEnabled + seedArtificerRepairTask (bounded repair)
|
|
7
|
+
* - rollout_reviewer: 注入 dispatchActivation (approve_rollout → ActivationDispatcher,
|
|
8
|
+
* 低风险 auto_activate / 高风险 approvals.pending) + reopenRevisionTarget
|
|
9
|
+
* (needs_revision → reopen scribe/artificer, 禁止入 approval)
|
|
10
|
+
*
|
|
11
|
+
* 本模块是 plugin I/O 边界: 组装 core 的 ActivationDispatcher + stores。
|
|
12
|
+
* 幂等性 (INV-08): dispatcher 以 `${artifactId}::${channel}` idempotency key
|
|
13
|
+
* 去重; reopen 幂等由 orchestrator.reopenTaskForRevision 保证。
|
|
14
|
+
*/
|
|
15
|
+
import { type RolloutAutoDispatchInput, type RolloutAutoDispatchOutcome, type RolloutRevisionRoutingInput, type SeedArtificerRepairParams } from '@principles/core/runtime-v2';
|
|
16
|
+
import type { RuntimeStateManager } from '@principles/core/runtime-v2';
|
|
17
|
+
import type { InternalizationOrchestrator } from '@principles/core/runtime-v2';
|
|
18
|
+
import type { PluginLogger } from '../openclaw-sdk.js';
|
|
19
|
+
/** rollout → ActivationDispatcher 的生产接线 (per dispatch 打开短连接, 与 Console 模式一致) */
|
|
20
|
+
export declare function dispatchRolloutActivation(workspaceDir: string, input: RolloutAutoDispatchInput, logger?: PluginLogger): Promise<RolloutAutoDispatchOutcome>;
|
|
21
|
+
/** evaluator repair deps (PRI-509 机制的生产接线; flag 语义保留为运行时开关) */
|
|
22
|
+
export declare function createEvaluatorRepairDeps(workspaceDir: string, stateManager: RuntimeStateManager, logger?: PluginLogger): {
|
|
23
|
+
isRepairLoopEnabled: () => boolean;
|
|
24
|
+
seedArtificerRepairTask: (params: SeedArtificerRepairParams) => Promise<string>;
|
|
25
|
+
};
|
|
26
|
+
/** rollout reviewer 治理 deps: dispatch + revision reopen */
|
|
27
|
+
export declare function createRolloutGovernanceDeps(workspaceDir: string, orchestrator: InternalizationOrchestrator, logger?: PluginLogger): {
|
|
28
|
+
dispatchActivation: (input: RolloutAutoDispatchInput) => Promise<RolloutAutoDispatchOutcome>;
|
|
29
|
+
reopenRevisionTarget: (input: RolloutRevisionRoutingInput) => Promise<{
|
|
30
|
+
ok: boolean;
|
|
31
|
+
reason: string;
|
|
32
|
+
reopenedTaskId?: string;
|
|
33
|
+
}>;
|
|
34
|
+
};
|
|
@@ -28,7 +28,6 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
28
28
|
| `/pd-init` | Initialize strategy | New project startup |
|
|
29
29
|
| `/pd-bootstrap` | Environment tool scan and upgrade | Tool upgrade |
|
|
30
30
|
| `/pd-research` | Initiate tool upgrade research | Deep research |
|
|
31
|
-
| `/pd-thinking` | Manage mental models and candidates | Metacognition |
|
|
32
31
|
| `/pd-evolution-status` | View trust score and security stage | Permission check |
|
|
33
32
|
| `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
|
|
34
33
|
| `/pd-help` | Get interactive command guidance | This skill |
|
|
@@ -44,7 +43,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
44
43
|
**Recommended Flow**:
|
|
45
44
|
1. `/pd-init` - Establish strategic vision
|
|
46
45
|
2. `/pd-bootstrap` - Scan environment tools, get capability list
|
|
47
|
-
3. `/pd-thinking` -
|
|
46
|
+
3. `/pd-context thinking on` - Enable Thinking OS guidance injection
|
|
48
47
|
|
|
49
48
|
**Script**: "A new project is like a blank canvas. Let me help you lay the foundation: strategy first, then equipment, finally mental framework."
|
|
50
49
|
|
|
@@ -175,8 +174,8 @@ A: Pain Signal is a problem signal detected by the system. Runtime V2 routes it
|
|
|
175
174
|
**Q: How to view installed tool capabilities?**
|
|
176
175
|
A: Check `.state/SYSTEM_CAPABILITIES.json` or run `/pd-bootstrap` to rescan.
|
|
177
176
|
|
|
178
|
-
**Q: What's the difference between
|
|
179
|
-
A:
|
|
177
|
+
**Q: What's the difference between Thinking OS and `/pd-research`?**
|
|
178
|
+
A: Thinking OS is injected guidance (managed via `/pd-context thinking on/off`); `/pd-research` initiates tool upgrade research for technical investigation.
|
|
180
179
|
|
|
181
180
|
---
|
|
182
181
|
|
|
@@ -28,7 +28,6 @@ disable-model-invocation: true
|
|
|
28
28
|
| `/pd-init` | 初始化战略 | 新项目启动 |
|
|
29
29
|
| `/pd-bootstrap` | 环境工具扫描与升级 | 装备升级 |
|
|
30
30
|
| `/pd-research` | 发起工具升级研究 | 深度调研 |
|
|
31
|
-
| `/pd-thinking` | 管理思维模型与候选方案 | 元认知管理 |
|
|
32
31
|
| `/pd-evolution-status` | 查看EP等级与安全状态 | 状态查询 |
|
|
33
32
|
| `/pd-status` | 查看系统状态(GFI和痛苦词典) | 健康检查 |
|
|
34
33
|
| `/pd-help` | 获取交互式命令引导 | 本技能 |
|
|
@@ -44,7 +43,7 @@ disable-model-invocation: true
|
|
|
44
43
|
**推荐流程**:
|
|
45
44
|
1. `/pd-init` - 建立战略愿景和 OKR 框架
|
|
46
45
|
2. `/pd-bootstrap` - 扫描环境工具,获取能力清单
|
|
47
|
-
3. `/pd-thinking` -
|
|
46
|
+
3. `/pd-context thinking on` - 开启 Thinking OS 指引注入
|
|
48
47
|
|
|
49
48
|
**话术**: "新项目就像一张白纸。让我帮你打好地基:先定战略、再配装备、最后建立思维框架。"
|
|
50
49
|
|
|
@@ -175,8 +174,8 @@ A: Pain Signal 是系统检测到的问题信号。Runtime V2 通过 `PainSignal
|
|
|
175
174
|
**Q: 如何查看已安装的工具能力?**
|
|
176
175
|
A: 查看 `.state/SYSTEM_CAPABILITIES.json` 或运行 `/pd-bootstrap` 重新扫描。
|
|
177
176
|
|
|
178
|
-
**Q:
|
|
179
|
-
A: `/pd-thinking`
|
|
177
|
+
**Q: Thinking OS 和 `/pd-research` 有什么区别?**
|
|
178
|
+
A: Thinking OS 是注入的指引(通过 `/pd-context thinking on/off` 管理);`/pd-research` 发起工具升级研究,用于技术调研。
|
|
180
179
|
|
|
181
180
|
---
|
|
182
181
|
|
|
@@ -9,31 +9,6 @@
|
|
|
9
9
|
".principles/PROFILE.json",
|
|
10
10
|
"docs/PROFILE.json"
|
|
11
11
|
],
|
|
12
|
-
"gate": {
|
|
13
|
-
"require_plan_for_risk_paths": true,
|
|
14
|
-
"require_audit_before_write": true
|
|
15
|
-
},
|
|
16
|
-
"progressive_gate": {
|
|
17
|
-
"enabled": true,
|
|
18
|
-
"plan_approvals": {
|
|
19
|
-
"enabled": true,
|
|
20
|
-
"allowed_patterns": [
|
|
21
|
-
"AGENTS.md",
|
|
22
|
-
"SOUL.md",
|
|
23
|
-
"IDENTITY.md",
|
|
24
|
-
"USER.md",
|
|
25
|
-
"docs/PRINCIPLES.md",
|
|
26
|
-
".principles/PROFILE.json",
|
|
27
|
-
"docs/PROFILE.json",
|
|
28
|
-
"docs/okr/**"
|
|
29
|
-
],
|
|
30
|
-
"allowed_operations": [
|
|
31
|
-
"write",
|
|
32
|
-
"edit",
|
|
33
|
-
"replace"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
12
|
"tests": {
|
|
38
13
|
"on_change": "smoke",
|
|
39
14
|
"commands": {
|
|
@@ -41,10 +16,6 @@
|
|
|
41
16
|
"unit": ""
|
|
42
17
|
}
|
|
43
18
|
},
|
|
44
|
-
"permissions": {
|
|
45
|
-
"deny_skip_tests": true,
|
|
46
|
-
"deny_unsafe_db_ops": true
|
|
47
|
-
},
|
|
48
19
|
"custom_guards": [
|
|
49
20
|
{
|
|
50
21
|
"pattern": "Edit.*SYSTEM_CAPABILITIES",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "
|
|
4
|
-
"description": "Schema for the
|
|
3
|
+
"title": "Principles Disciple Workspace Profile Schema",
|
|
4
|
+
"description": "Schema for the Principles Disciple workspace profile configuration",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"audit_level": {
|
|
@@ -13,18 +13,10 @@
|
|
|
13
13
|
"type": "array",
|
|
14
14
|
"items": {
|
|
15
15
|
"type": "string",
|
|
16
|
-
"description": "Project-relative
|
|
16
|
+
"description": "Project-relative paths treated as higher-risk context for evidence triage, risk classification, and related governance signals. Blocking behavior is determined by owner-approved RuleHost rules, not by listing a path here."
|
|
17
17
|
},
|
|
18
18
|
"default": []
|
|
19
19
|
},
|
|
20
|
-
"gate": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"require_plan_for_risk_paths": { "type": "boolean", "default": true },
|
|
24
|
-
"require_audit_before_write": { "type": "boolean", "default": true },
|
|
25
|
-
"require_reviewer_after_write": { "type": "boolean", "default": true }
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
20
|
"tests": {
|
|
29
21
|
"type": "object",
|
|
30
22
|
"properties": {
|
|
@@ -37,20 +29,19 @@
|
|
|
37
29
|
}
|
|
38
30
|
}
|
|
39
31
|
},
|
|
40
|
-
"
|
|
41
|
-
"type": "
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
32
|
+
"custom_guards": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"pattern": { "type": "string" },
|
|
38
|
+
"message": { "type": "string" },
|
|
39
|
+
"severity": { "type": "string", "enum": ["info", "warning", "error", "fatal"], "default": "error" }
|
|
40
|
+
},
|
|
41
|
+
"required": ["pattern", "message"]
|
|
42
|
+
},
|
|
43
|
+
"default": []
|
|
53
44
|
}
|
|
54
45
|
},
|
|
55
|
-
"required": ["risk_paths", "
|
|
46
|
+
"required": ["risk_paths", "tests"]
|
|
56
47
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { EventType, EventCategory, EventLogEntry, ToolCallEventData, PainSignalEventData, RulePromotionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData,
|
|
1
|
+
export type { EventType, EventCategory, EventLogEntry, ToolCallEventData, PainSignalEventData, RulePromotionEventData, HookExecutionEventData, GateBlockEventData, GateBypassEventData, EvolutionTaskEventData, EmpathyRollbackEventData, HeartbeatDiagnosisEventData, DiagnosisTaskEventData, DiagnosticianReportEventData, PrincipleCandidateEventData, RuleEnforcedEventData, RuleHostEvaluatedEventData, RuleHostBlockedEventData, RuleHostRequireApprovalEventData, RuleHostAutoCorrectProposedEventData, RuleHostAutoCorrectAppliedEventData, RuntimeV2PromptActivationsInjectedEventData, RuleHostUnhealthyEventData, RuleHostSkippedEventData, ToolCallStats, ErrorStats, EmpathyEventStats, GfiStats, EvolutionStats as EventEvolutionStats, HookStats, DailyStats, } from '@principles/core/runtime-v2';
|
|
2
2
|
export { createEmptyDailyStats, } from '@principles/core/runtime-v2';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "principles-disciple",
|
|
3
3
|
"name": "Principles Disciple",
|
|
4
4
|
"description": "Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.211.0",
|
|
6
6
|
"activation": {
|
|
7
7
|
"onCapabilities": [
|
|
8
8
|
"hook"
|
package/plugin/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "principles-disciple",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.211.0",
|
|
4
4
|
"description": "Stop correcting the same AI behavior across sessions. Turn repeated Agent corrections into Owner-approved, observable, reversible behavior principles.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,6 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
28
28
|
| `/pd-init` | Initialize strategy | New project startup |
|
|
29
29
|
| `/pd-bootstrap` | Environment tool scan and upgrade | Tool upgrade |
|
|
30
30
|
| `/pd-research` | Initiate tool upgrade research | Deep research |
|
|
31
|
-
| `/pd-thinking` | Manage mental models and candidates | Metacognition |
|
|
32
31
|
| `/pd-evolution-status` | View trust score and security stage | Permission check |
|
|
33
32
|
| `/pd-status` | View system status (GFI and Pain Dictionary) | Health check |
|
|
34
33
|
| `/pd-help` | Get interactive command guidance | This skill |
|
|
@@ -44,7 +43,7 @@ I'm your intelligent mentor, helping you understand and use all features of Prin
|
|
|
44
43
|
**Recommended Flow**:
|
|
45
44
|
1. `/pd-init` - Establish strategic vision
|
|
46
45
|
2. `/pd-bootstrap` - Scan environment tools, get capability list
|
|
47
|
-
3. `/pd-thinking` -
|
|
46
|
+
3. `/pd-context thinking on` - Enable Thinking OS guidance injection
|
|
48
47
|
|
|
49
48
|
**Script**: "A new project is like a blank canvas. Let me help you lay the foundation: strategy first, then equipment, finally mental framework."
|
|
50
49
|
|
|
@@ -175,8 +174,8 @@ A: Pain Signal is a problem signal detected by the system. Runtime V2 routes it
|
|
|
175
174
|
**Q: How to view installed tool capabilities?**
|
|
176
175
|
A: Check `.state/SYSTEM_CAPABILITIES.json` or run `/pd-bootstrap` to rescan.
|
|
177
176
|
|
|
178
|
-
**Q: What's the difference between
|
|
179
|
-
A:
|
|
177
|
+
**Q: What's the difference between Thinking OS and `/pd-research`?**
|
|
178
|
+
A: Thinking OS is injected guidance (managed via `/pd-context thinking on/off`); `/pd-research` initiates tool upgrade research for technical investigation.
|
|
180
179
|
|
|
181
180
|
---
|
|
182
181
|
|
|
@@ -28,7 +28,6 @@ disable-model-invocation: true
|
|
|
28
28
|
| `/pd-init` | 初始化战略 | 新项目启动 |
|
|
29
29
|
| `/pd-bootstrap` | 环境工具扫描与升级 | 装备升级 |
|
|
30
30
|
| `/pd-research` | 发起工具升级研究 | 深度调研 |
|
|
31
|
-
| `/pd-thinking` | 管理思维模型与候选方案 | 元认知管理 |
|
|
32
31
|
| `/pd-evolution-status` | 查看EP等级与安全状态 | 状态查询 |
|
|
33
32
|
| `/pd-status` | 查看系统状态(GFI和痛苦词典) | 健康检查 |
|
|
34
33
|
| `/pd-help` | 获取交互式命令引导 | 本技能 |
|
|
@@ -44,7 +43,7 @@ disable-model-invocation: true
|
|
|
44
43
|
**推荐流程**:
|
|
45
44
|
1. `/pd-init` - 建立战略愿景和 OKR 框架
|
|
46
45
|
2. `/pd-bootstrap` - 扫描环境工具,获取能力清单
|
|
47
|
-
3. `/pd-thinking` -
|
|
46
|
+
3. `/pd-context thinking on` - 开启 Thinking OS 指引注入
|
|
48
47
|
|
|
49
48
|
**话术**: "新项目就像一张白纸。让我帮你打好地基:先定战略、再配装备、最后建立思维框架。"
|
|
50
49
|
|
|
@@ -175,8 +174,8 @@ A: Pain Signal 是系统检测到的问题信号。Runtime V2 通过 `PainSignal
|
|
|
175
174
|
**Q: 如何查看已安装的工具能力?**
|
|
176
175
|
A: 查看 `.state/SYSTEM_CAPABILITIES.json` 或运行 `/pd-bootstrap` 重新扫描。
|
|
177
176
|
|
|
178
|
-
**Q:
|
|
179
|
-
A: `/pd-thinking`
|
|
177
|
+
**Q: Thinking OS 和 `/pd-research` 有什么区别?**
|
|
178
|
+
A: Thinking OS 是注入的指引(通过 `/pd-context thinking on/off` 管理);`/pd-research` 发起工具升级研究,用于技术调研。
|
|
180
179
|
|
|
181
180
|
---
|
|
182
181
|
|
|
@@ -9,31 +9,6 @@
|
|
|
9
9
|
".principles/PROFILE.json",
|
|
10
10
|
"docs/PROFILE.json"
|
|
11
11
|
],
|
|
12
|
-
"gate": {
|
|
13
|
-
"require_plan_for_risk_paths": true,
|
|
14
|
-
"require_audit_before_write": true
|
|
15
|
-
},
|
|
16
|
-
"progressive_gate": {
|
|
17
|
-
"enabled": true,
|
|
18
|
-
"plan_approvals": {
|
|
19
|
-
"enabled": true,
|
|
20
|
-
"allowed_patterns": [
|
|
21
|
-
"AGENTS.md",
|
|
22
|
-
"SOUL.md",
|
|
23
|
-
"IDENTITY.md",
|
|
24
|
-
"USER.md",
|
|
25
|
-
"docs/PRINCIPLES.md",
|
|
26
|
-
".principles/PROFILE.json",
|
|
27
|
-
"docs/PROFILE.json",
|
|
28
|
-
"docs/okr/**"
|
|
29
|
-
],
|
|
30
|
-
"allowed_operations": [
|
|
31
|
-
"write",
|
|
32
|
-
"edit",
|
|
33
|
-
"replace"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
12
|
"tests": {
|
|
38
13
|
"on_change": "smoke",
|
|
39
14
|
"commands": {
|
|
@@ -41,10 +16,6 @@
|
|
|
41
16
|
"unit": ""
|
|
42
17
|
}
|
|
43
18
|
},
|
|
44
|
-
"permissions": {
|
|
45
|
-
"deny_skip_tests": true,
|
|
46
|
-
"deny_unsafe_db_ops": true
|
|
47
|
-
},
|
|
48
19
|
"custom_guards": [
|
|
49
20
|
{
|
|
50
21
|
"pattern": "Edit.*SYSTEM_CAPABILITIES",
|