create-principles-disciple 1.155.2 → 1.156.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/_release/product-identity.json +2 -2
- package/codex-adapter/dist/ingestion/pain-receipt-fallback.d.ts +28 -1
- package/codex-adapter/dist/ingestion/pain-receipt-fallback.js +53 -17
- package/codex-adapter/dist/worker/workspace-worker.js +86 -66
- package/codex-adapter/package.json +1 -1
- package/console/dist/server/index.d.ts +11 -1
- package/console/dist/server/index.js +84 -19
- package/console/dist/server/release-handover.d.ts +256 -0
- package/console/dist/server/release-handover.js +402 -0
- package/console/dist/server/routes/onboarding.js +1 -0
- package/console/dist/server/routes/update-transaction.js +37 -3
- package/console/dist/server/routes/update.js +21 -1
- package/console/dist/server/successor.d.ts +46 -0
- package/console/dist/server/successor.js +128 -0
- package/console/dist/web/assets/app.css +18 -0
- package/console/dist/web/assets/app.js +32 -31
- package/console/package.json +2 -2
- package/core/dist/runtime/candidate-intake-service.d.ts +1 -1
- package/core/dist/runtime/candidate-intake-service.d.ts.map +1 -1
- package/core/dist/runtime/candidate-intake-service.js +89 -12
- package/core/dist/runtime/candidate-intake-service.js.map +1 -1
- package/core/dist/runtime/context-payload.d.ts +11 -0
- package/core/dist/runtime/context-payload.d.ts.map +1 -1
- package/core/dist/runtime/context-payload.js +27 -0
- package/core/dist/runtime/context-payload.js.map +1 -1
- package/core/dist/runtime/host-submission-context.d.ts +13 -6
- package/core/dist/runtime/host-submission-context.d.ts.map +1 -1
- package/core/dist/runtime/host-submission-context.js +77 -8
- package/core/dist/runtime/host-submission-context.js.map +1 -1
- package/core/dist/runtime/index.d.ts +2 -1
- package/core/dist/runtime/index.d.ts.map +1 -1
- package/core/dist/runtime/index.js +8 -0
- package/core/dist/runtime/index.js.map +1 -1
- package/core/dist/runtime/pain-ingress.d.ts +8 -0
- package/core/dist/runtime/pain-ingress.d.ts.map +1 -1
- package/core/dist/runtime/pain-ingress.js +8 -1
- package/core/dist/runtime/pain-ingress.js.map +1 -1
- package/core/dist/runtime/pain-recall-read-model.d.ts +72 -0
- package/core/dist/runtime/pain-recall-read-model.d.ts.map +1 -1
- package/core/dist/runtime/pain-recall-read-model.js +46 -21
- package/core/dist/runtime/pain-recall-read-model.js.map +1 -1
- package/core/dist/runtime/pain-receipt-recovery.d.ts +4 -1
- package/core/dist/runtime/pain-receipt-recovery.d.ts.map +1 -1
- package/core/dist/runtime/pain-receipt-recovery.js +28 -10
- package/core/dist/runtime/pain-receipt-recovery.js.map +1 -1
- package/core/dist/runtime/pain-signal-bridge.d.ts +38 -23
- package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-bridge.js +533 -182
- package/core/dist/runtime/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime/pain-signal-runtime-factory.d.ts +8 -1
- package/core/dist/runtime/pain-signal-runtime-factory.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-runtime-factory.js +196 -25
- package/core/dist/runtime/pain-signal-runtime-factory.js.map +1 -1
- package/core/dist/runtime/pain-target-evidence-reconcile.d.ts +78 -4
- package/core/dist/runtime/pain-target-evidence-reconcile.d.ts.map +1 -1
- package/core/dist/runtime/pain-target-evidence-reconcile.js +229 -18
- package/core/dist/runtime/pain-target-evidence-reconcile.js.map +1 -1
- package/core/dist/runtime/pain-to-principle-service.d.ts +26 -5
- package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -1
- package/core/dist/runtime/pain-to-principle-service.js +63 -52
- package/core/dist/runtime/pain-to-principle-service.js.map +1 -1
- package/core/dist/runtime/store/candidate/admission-document.d.ts +43 -0
- package/core/dist/runtime/store/candidate/admission-document.d.ts.map +1 -1
- package/core/dist/runtime/store/candidate/admission-document.js +130 -0
- package/core/dist/runtime/store/candidate/admission-document.js.map +1 -1
- package/core/dist/runtime/store/candidate/candidate-store.d.ts +3 -1
- package/core/dist/runtime/store/candidate/candidate-store.d.ts.map +1 -1
- package/core/dist/runtime/store/candidate/memory-candidate-store.d.ts +2 -1
- package/core/dist/runtime/store/candidate/memory-candidate-store.d.ts.map +1 -1
- package/core/dist/runtime/store/candidate/memory-candidate-store.js +27 -1
- package/core/dist/runtime/store/candidate/memory-candidate-store.js.map +1 -1
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.d.ts +2 -1
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.d.ts.map +1 -1
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.js +59 -2
- package/core/dist/runtime/store/candidate/sqlite-candidate-store.js.map +1 -1
- package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts.map +1 -1
- package/core/dist/runtime/store/context/sqlite-context-assembler.js +18 -3
- package/core/dist/runtime/store/context/sqlite-context-assembler.js.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.d.ts +2 -1
- package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.js +4 -0
- package/core/dist/runtime/store/runtime-state-manager.js.map +1 -1
- package/core/dist/telemetry-event.d.ts +2 -2
- package/core/dist/telemetry-event.d.ts.map +1 -1
- package/core/dist/telemetry-event.js +5 -0
- package/core/dist/telemetry-event.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js +72 -0
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +145 -35
- package/dist/index.js.map +1 -1
- package/dist/installer.d.ts +149 -9
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +562 -38
- package/dist/installer.js.map +1 -1
- package/dist/installers/codex-host-installer.js +1 -1
- package/dist/installers/codex-host-installer.js.map +1 -1
- package/dist/installers/index.d.ts +10 -0
- package/dist/installers/index.d.ts.map +1 -1
- package/dist/installers/index.js +4 -0
- package/dist/installers/index.js.map +1 -1
- package/dist/mvp-config.js +1 -1
- package/dist/mvp-config.js.map +1 -1
- package/dist/prompts.d.ts +36 -12
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +102 -30
- package/dist/prompts.js.map +1 -1
- package/dist/service-host-bridge.d.ts +71 -12
- package/dist/service-host-bridge.d.ts.map +1 -1
- package/dist/service-host-bridge.js +228 -48
- package/dist/service-host-bridge.js.map +1 -1
- package/dist/service-host-provisioning.d.ts +102 -0
- package/dist/service-host-provisioning.d.ts.map +1 -0
- package/dist/service-host-provisioning.js +595 -0
- package/dist/service-host-provisioning.js.map +1 -0
- package/dist/uninstaller.js +1 -1
- package/dist/uninstaller.js.map +1 -1
- package/dist/update/apply-payload.d.ts +9 -0
- package/dist/update/apply-payload.d.ts.map +1 -1
- package/dist/update/apply-payload.js +44 -2
- package/dist/update/apply-payload.js.map +1 -1
- package/dist/update/console-surface.d.ts +2 -1
- package/dist/update/console-surface.d.ts.map +1 -1
- package/dist/update/console-surface.js +6 -1
- package/dist/update/console-surface.js.map +1 -1
- package/dist/update/install-layout.d.ts +12 -0
- package/dist/update/install-layout.d.ts.map +1 -1
- package/dist/update/install-layout.js +49 -7
- package/dist/update/install-layout.js.map +1 -1
- package/dist/update/release-manager-authority.d.ts +16 -0
- package/dist/update/release-manager-authority.d.ts.map +1 -1
- package/dist/update/release-manager-authority.js +45 -3
- package/dist/update/release-manager-authority.js.map +1 -1
- package/dist/update/release-manager.d.ts +8 -3
- package/dist/update/release-manager.d.ts.map +1 -1
- package/dist/update/release-manager.js +29 -1
- package/dist/update/release-manager.js.map +1 -1
- package/dist/update/transaction-progress.d.ts +63 -0
- package/dist/update/transaction-progress.d.ts.map +1 -0
- package/dist/update/transaction-progress.js +207 -0
- package/dist/update/transaction-progress.js.map +1 -0
- package/dist/utils/env.d.ts +16 -1
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/env.js +55 -43
- package/dist/utils/env.js.map +1 -1
- package/host-runtime/dist/diagnostician-auto-run.js +37 -31
- package/host-runtime/dist/governance-observation-store.d.ts +38 -0
- package/host-runtime/dist/governance-observation-store.js +41 -0
- package/host-runtime/dist/governance-trajectory-turn-reader.js +26 -33
- package/host-runtime/package.json +1 -1
- package/install-layout/dist/background-execution-transition.d.ts +11 -1
- package/install-layout/dist/background-execution-transition.js +45 -1
- package/install-layout/dist/index.d.ts +3 -3
- package/install-layout/dist/index.js +10 -4
- package/install-layout/dist/pd-home.d.ts +12 -0
- package/install-layout/dist/pd-home.js +6 -1
- package/install-layout/package.json +1 -1
- package/package.json +10 -10
- package/pd-cli/dist/commands/candidate.d.ts +15 -0
- package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
- package/pd-cli/dist/commands/candidate.js +449 -93
- package/pd-cli/dist/commands/candidate.js.map +1 -1
- package/pd-cli/dist/commands/console.d.ts.map +1 -1
- package/pd-cli/dist/commands/console.js +10 -0
- package/pd-cli/dist/commands/console.js.map +1 -1
- package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
- package/pd-cli/dist/commands/diagnose.js +254 -160
- package/pd-cli/dist/commands/diagnose.js.map +1 -1
- package/pd-cli/dist/commands/intake-outcome-guidance.d.ts +57 -0
- package/pd-cli/dist/commands/intake-outcome-guidance.d.ts.map +1 -0
- package/pd-cli/dist/commands/intake-outcome-guidance.js +206 -0
- package/pd-cli/dist/commands/intake-outcome-guidance.js.map +1 -0
- package/pd-cli/dist/commands/mcp-probe.d.ts.map +1 -1
- package/pd-cli/dist/commands/mcp-probe.js +1 -0
- package/pd-cli/dist/commands/mcp-probe.js.map +1 -1
- package/pd-cli/dist/commands/pain-record.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-record.js +18 -4
- package/pd-cli/dist/commands/pain-record.js.map +1 -1
- package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-retry.js +91 -21
- package/pd-cli/dist/commands/pain-retry.js.map +1 -1
- package/pd-cli/dist/commands/runtime-uat.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-uat.js +1 -0
- package/pd-cli/dist/commands/runtime-uat.js.map +1 -1
- package/pd-cli/dist/commands/service-lifecycle.js +1 -1
- package/pd-cli/dist/commands/service-lifecycle.js.map +1 -1
- package/pd-cli/dist/commands/service-run-once.d.ts +1 -1
- package/pd-cli/dist/commands/service-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/service-run-once.js +9 -5
- package/pd-cli/dist/commands/service-run-once.js.map +1 -1
- package/pd-cli/dist/program.d.ts.map +1 -1
- package/pd-cli/dist/program.js +14 -3
- package/pd-cli/dist/program.js.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.d.ts +4 -0
- package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.js +50 -48
- package/pd-cli/dist/services/admission-write-gate.js.map +1 -1
- package/pd-cli/dist/services/console-launcher.js +3 -3
- package/pd-cli/dist/services/console-launcher.js.map +1 -1
- package/pd-cli/dist/services/service-host/managed-run.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/managed-run.js +25 -8
- package/pd-cli/dist/services/service-host/managed-run.js.map +1 -1
- package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts +12 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/scheduler/service-status.js +16 -7
- package/pd-cli/dist/services/service-host/scheduler/service-status.js.map +1 -1
- package/pd-cli/dist/services/service-host/status/service-run-status.d.ts +7 -5
- package/pd-cli/dist/services/service-host/status/service-run-status.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/status/service-run-status.js +1 -1
- package/pd-cli/dist/services/service-host/status/service-run-status.js.map +1 -1
- package/pd-cli/package.json +1 -1
- package/pd-mcp-server/dist/submit-assembly.js +61 -18
- package/pd-mcp-server/dist/version.d.ts +1 -1
- package/pd-mcp-server/dist/version.js +1 -1
- package/pd-mcp-server/package.json +1 -1
- package/plugin/dist/bundle.js +493 -493
- package/plugin/dist/openclaw-worker.js +263 -263
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +1 -1
- package/release-manager/dist/i18n.js +72 -0
- package/release-manager/dist/installer.js +562 -38
- package/release-manager/dist/installers/codex-host-installer.js +1 -1
- package/release-manager/dist/installers/index.js +4 -0
- package/release-manager/dist/mvp-config.js +1 -1
- package/release-manager/dist/service-host-bridge.js +228 -48
- package/release-manager/dist/service-host-provisioning.js +595 -0
- package/release-manager/dist/update/apply-payload.js +44 -2
- package/release-manager/dist/update/console-surface.js +6 -1
- package/release-manager/dist/update/install-layout.js +49 -7
- package/release-manager/dist/update/release-manager-authority.js +45 -3
- package/release-manager/dist/update/release-manager.js +29 -1
- package/release-manager/dist/update/transaction-progress.js +207 -0
- package/release-manager/dist/utils/env.js +55 -43
- package/release-manager/package.json +8 -8
- package/workbuddy-adapter/dist/codec/input-decoder.d.ts +21 -0
- package/workbuddy-adapter/dist/codec/input-decoder.js +50 -1
- package/workbuddy-adapter/dist/ingestion/pain-receipt-fallback.d.ts +68 -0
- package/workbuddy-adapter/dist/ingestion/pain-receipt-fallback.js +225 -0
- package/workbuddy-adapter/dist/pd-hook.js +60 -0
- package/workbuddy-adapter/dist/worker/workspace-worker.js +46 -44
- package/workbuddy-adapter/package.json +1 -1
- package/console/dist/server/utils/gateway.d.ts +0 -29
- package/console/dist/server/utils/gateway.js +0 -175
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-run-status.d.ts","sourceRoot":"","sources":["../../../../src/services/service-host/status/service-run-status.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE/F,eAAO,MAAM,iCAAiC,6BAA6B,CAAC;AAE5E
|
|
1
|
+
{"version":3,"file":"service-run-status.d.ts","sourceRoot":"","sources":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AE,CA+BhF"}
|
|
@@ -63,7 +63,7 @@ export function readServiceRunStatus(pdHome) {
|
|
|
63
63
|
if (!Object.hasOwn(doc, 'schemaVersion') || doc.schemaVersion !== SERVICE_RUN_STATUS_SCHEMA_VERSION
|
|
64
64
|
|| !Object.hasOwn(doc, 'runId') || typeof doc.runId !== 'string'
|
|
65
65
|
|| !Object.hasOwn(doc, 'outcome') || (doc.outcome !== 'completed' && doc.outcome !== 'already_running' && doc.outcome !== 'refused' && doc.outcome !== 'failed')
|
|
66
|
-
|| !Object.hasOwn(doc, 'triggerSource') || (doc.triggerSource !== 'manual' && doc.triggerSource !== 'scheduler')) {
|
|
66
|
+
|| !Object.hasOwn(doc, 'triggerSource') || (doc.triggerSource !== 'manual' && doc.triggerSource !== 'scheduler' && doc.triggerSource !== 'installer')) {
|
|
67
67
|
return { ok: false, verdict: 'corrupt', detail: 'schema_mismatch' };
|
|
68
68
|
}
|
|
69
69
|
return { ok: true, status: parsed };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-run-status.js","sourceRoot":"","sources":["../../../../src/services/service-host/status/service-run-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAmC,MAAM,4BAA4B,CAAC;AAKtG,MAAM,CAAC,MAAM,iCAAiC,GAAG,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"service-run-status.js","sourceRoot":"","sources":["../../../../src/services/service-host/status/service-run-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,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AAC,IAAI,SAAS,EAAE;YAClF,UAAU,EAAE,4BAA4B,GAAG,aAAa;SACzD,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,oBAAoB,UAAU,EAAE,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IACnG,IAAI,CAAC;QACH,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACvE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC5B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACpC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC;YACH,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACnC,CAAC;QAAC,MAAM,CAAC;YACP,2CAA2C;QAC7C,CAAC;QACD,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO;YACL,EAAE,EAAE,KAAK;YACT,MAAM,EAAE,+BAA+B,iBAAiB,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE;YAChF,UAAU,EAAE,6FAA6F;SAC1G,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/pd-cli/package.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
*/
|
|
37
37
|
import * as path from 'node:path';
|
|
38
38
|
import { loadPdConfigForPlugin } from '@principles/host-runtime/pd-config';
|
|
39
|
-
import {
|
|
39
|
+
import { listGovernanceConversationTextsForHostTurn, listGovernanceTurnTexts, readSourceMaterialAuthorization } from '@principles/host-runtime';
|
|
40
40
|
import { computeFeatureFlagsFromConfig, hostSessionClaimConflictsWithContext, isSentinelSessionId, resolveHostSubmissionContext, } from '@principles/core/runtime';
|
|
41
41
|
import { submitPainCapability } from '@principles/core/runtime/pain-submit-capability';
|
|
42
42
|
function readHostId(value) {
|
|
@@ -45,6 +45,23 @@ function readHostId(value) {
|
|
|
45
45
|
const id = value.trim();
|
|
46
46
|
return id.length > 0 && id.length <= 200 && !isSentinelSessionId(id) ? id : undefined;
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* PRI-1274 review round 2 (directive K1): the target-turn evidence read is
|
|
50
|
+
* STRUCTURED, not a silent empty array. The classification rides the existing
|
|
51
|
+
* evidence-availability vocabulary of the ingress contract (`available` /
|
|
52
|
+
* `unavailable` with a reason code); causes:
|
|
53
|
+
* - available: turn rows with readable text were collected;
|
|
54
|
+
* - not_found: the store read succeeded but has no readable text for the
|
|
55
|
+
* requested (session, turn); this is an honest "not yet there";
|
|
56
|
+
* - blocked_by_consent: the latest source-material decision denies the read;
|
|
57
|
+
* preserve minimal identity, but block diagnosis;
|
|
58
|
+
* - read_failed: the store read itself failed (structured stderr note);
|
|
59
|
+
* submission remains legal; enrichment is optional.
|
|
60
|
+
*
|
|
61
|
+
* PRI-1273: the type moved to Core (`pain-target-evidence-reconcile.ts`) so
|
|
62
|
+
* the submit-time enrichment and the worker reconcile's backfill share ONE
|
|
63
|
+
* vocabulary — the entries shape both paths persist must never drift.
|
|
64
|
+
*/
|
|
48
65
|
/**
|
|
49
66
|
* PRI-1274: opportunistic target-turn evidence. Bounded read of this
|
|
50
67
|
* workspace's authorized governance observations for the target turn, used
|
|
@@ -66,22 +83,23 @@ function readTargetTurnEvidence(input) {
|
|
|
66
83
|
return { status: 'blocked_by_consent', reason: authorization.reason };
|
|
67
84
|
}
|
|
68
85
|
try {
|
|
69
|
-
|
|
86
|
+
// PRI-1273 (devin BUG_0002): the shared exact-turn selection rule — the
|
|
87
|
+
// turn's LAST readable conversational rows, not a generic early window.
|
|
88
|
+
const result = listGovernanceConversationTextsForHostTurn({
|
|
70
89
|
workspaceDir: input.workspaceDir,
|
|
71
90
|
hostKind: input.host,
|
|
72
91
|
rolloutIdentity: input.sessionId,
|
|
73
92
|
hostTurnId: input.targetTurnId,
|
|
74
|
-
limit:
|
|
93
|
+
limit: 12,
|
|
75
94
|
});
|
|
76
95
|
if (!result.ok) {
|
|
77
96
|
console.error('[pd-submit] target-turn evidence read degraded: read_failed (' + result.reason + '); submission continues without turn evidence');
|
|
78
97
|
return { status: 'read_failed', reason: result.reason };
|
|
79
98
|
}
|
|
80
|
-
const entries = result.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
: []).slice(-12);
|
|
99
|
+
const entries = result.rows.map((row) => ({
|
|
100
|
+
sourceRef: 'governance_observation:' + row.logicalKey,
|
|
101
|
+
note: row.visibleText.slice(0, 2000),
|
|
102
|
+
}));
|
|
85
103
|
return entries.length > 0
|
|
86
104
|
? { status: 'available', entries }
|
|
87
105
|
: { status: 'not_found' };
|
|
@@ -110,13 +128,11 @@ export function assembleSubmitCapability(workspaceDir, host, env = process.env)
|
|
|
110
128
|
}
|
|
111
129
|
const stateDir = path.join(workspaceDir, '.state');
|
|
112
130
|
const effectiveConfig = config.effective;
|
|
113
|
-
// PRI-1274: the Workspace-level minimal identity-metadata authorization
|
|
114
|
-
//
|
|
115
|
-
//
|
|
116
|
-
//
|
|
117
|
-
//
|
|
118
|
-
const { flags } = computeFeatureFlagsFromConfig(effectiveConfig);
|
|
119
|
-
const minimalMetadataGranted = flags.host_identity_minimal_metadata?.enabled === true;
|
|
131
|
+
// PRI-1274: the Workspace-level minimal identity-metadata authorization
|
|
132
|
+
// gates identity persistence off the trusted `_meta` path; PRI-1275 review
|
|
133
|
+
// round (Devin) moved the EFFECTIVE verdict to a PER-REQUEST re-read (see
|
|
134
|
+
// the call closure) so a revocation stops binding without a server
|
|
135
|
+
// restart. The startup read stays as the config health gate only.
|
|
120
136
|
/**
|
|
121
137
|
* PRI-1260 legacy path (non-Codex hosts without `_meta` producers yet —
|
|
122
138
|
* PRI-1275/1276 wire those): verify a host-provided session claim against
|
|
@@ -137,7 +153,14 @@ export function assembleSubmitCapability(workspaceDir, host, env = process.env)
|
|
|
137
153
|
// host's claim (the same cross-host class PRI-1247 closes).
|
|
138
154
|
const candidates = [claim.threadId, claim.sessionId].filter((value) => typeof value === 'string' && value.trim().length > 0 && !isSentinelSessionId(value.trim()));
|
|
139
155
|
if (candidates.length === 0) {
|
|
140
|
-
|
|
156
|
+
// A claim carrying ONLY empty/sentinel spellings is a claim the model
|
|
157
|
+
// DID make and this gate REJECTS — NOT the "no metadata at all" state.
|
|
158
|
+
// The distinct cause keeps it outside the P1-2 recoverable whitelist:
|
|
159
|
+
// a specific (untrusted) claim existed and was refused, so the
|
|
160
|
+
// PostToolUse receipt fallback must never overturn that refusal
|
|
161
|
+
// (PRI-1275 review round; `host_session_claim_empty` is reserved for
|
|
162
|
+
// the caller supplying NO claim).
|
|
163
|
+
return { status: 'unverified', detail: 'host_session_claim_unusable' };
|
|
141
164
|
}
|
|
142
165
|
// PRI-1283 R2: the probe READS retained conversation text — the latest
|
|
143
166
|
// consent must be granted. Blocked consent leaves the submission legal
|
|
@@ -162,7 +185,11 @@ export function assembleSubmitCapability(workspaceDir, host, env = process.env)
|
|
|
162
185
|
* ticket exists for). Every negative outcome keeps the submission legal
|
|
163
186
|
* and unbound with a specific cause on the receipt (rc-9).
|
|
164
187
|
*/
|
|
165
|
-
const resolveSessionVerification = (requestMeta, submission
|
|
188
|
+
const resolveSessionVerification = (requestMeta, submission,
|
|
189
|
+
/** PRI-1275 review round: resolved PER REQUEST by the caller (see the
|
|
190
|
+
* call closure) so a Workspace-side revocation stops binding on the next
|
|
191
|
+
* submission without an MCP server restart (Stage 3 acceptance). */
|
|
192
|
+
minimalMetadataGranted) => {
|
|
166
193
|
const metaResolution = resolveHostSubmissionContext(host, requestMeta);
|
|
167
194
|
if (metaResolution.status === 'invalid') {
|
|
168
195
|
// Malformed host metadata never silently degrades into a trusted
|
|
@@ -229,10 +256,26 @@ export function assembleSubmitCapability(workspaceDir, host, env = process.env)
|
|
|
229
256
|
return {
|
|
230
257
|
ok: true,
|
|
231
258
|
call: ({ workspaceDir: boundWorkspaceDir, painId, taskId, submission, requestMeta }) => {
|
|
259
|
+
// PRI-1275 review round (Devin): the minimal identity authorization is
|
|
260
|
+
// resolved PER REQUEST from the CURRENT workspace config — a Workspace
|
|
261
|
+
// admin revoking `host_identity_minimal_metadata` stops binding on the
|
|
262
|
+
// next submission without waiting for an MCP server restart (Stage 3:
|
|
263
|
+
// "最小授权撤回…时拒绝身份写入"). A config re-read failure fails closed
|
|
264
|
+
// for the identity path (rc-9 note) while the submission itself stays
|
|
265
|
+
// legal.
|
|
266
|
+
let minimalMetadataGranted = false;
|
|
267
|
+
const liveConfig = loadPdConfigForPlugin(boundWorkspaceDir);
|
|
268
|
+
if (liveConfig.ok) {
|
|
269
|
+
minimalMetadataGranted =
|
|
270
|
+
computeFeatureFlagsFromConfig(liveConfig.effective).flags.host_identity_minimal_metadata?.enabled === true;
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
console.error('[pd-submit] identity authorization re-read failed: pd_config_invalid; identity binding fails closed for this request');
|
|
274
|
+
}
|
|
232
275
|
// One resolution seam for every host: the trusted `_meta` context when
|
|
233
276
|
// present, the legal unbound reason when not. Codex never consults
|
|
234
277
|
// model-supplied claims (its identity is host meta or unbound).
|
|
235
|
-
const verification = resolveSessionVerification(requestMeta, submission);
|
|
278
|
+
const verification = resolveSessionVerification(requestMeta, submission, minimalMetadataGranted);
|
|
236
279
|
return submitPainCapability({
|
|
237
280
|
workspaceDir: boundWorkspaceDir,
|
|
238
281
|
stateDir,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* package.json. A unit test pins it to package.json so the two cannot drift.
|
|
8
8
|
*/
|
|
9
9
|
export declare const SERVER_NAME: 'pd-mcp-server';
|
|
10
|
-
export declare const SERVER_VERSION: '0.5.
|
|
10
|
+
export declare const SERVER_VERSION: '0.5.1';
|
|
11
11
|
/** The only MCP SDK family/version this server is released against
|
|
12
12
|
* (Gate 4-A freeze, PD_MCP_GATE4A_REALITY_CHECK §3). Exact pin — no ranges. */
|
|
13
13
|
export declare const MCP_SDK_PIN: '@modelcontextprotocol/server@2.4.0';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* package.json. A unit test pins it to package.json so the two cannot drift.
|
|
8
8
|
*/
|
|
9
9
|
export const SERVER_NAME = 'pd-mcp-server';
|
|
10
|
-
export const SERVER_VERSION = '0.5.
|
|
10
|
+
export const SERVER_VERSION = '0.5.1';
|
|
11
11
|
/** The only MCP SDK family/version this server is released against
|
|
12
12
|
* (Gate 4-A freeze, PD_MCP_GATE4A_REALITY_CHECK §3). Exact pin — no ranges. */
|
|
13
13
|
export const MCP_SDK_PIN = '@modelcontextprotocol/server@2.4.0';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principles/pd-mcp-server",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Principles Disciple MCP Server — the single shared MCP server implementation for the three PD hosts (Codex, OpenClaw, WorkBuddy). Read-only pain recall through the Gate 3 Capability (SPEC-PD-MCP-GATE4-001).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|