create-principles-disciple 1.154.5 → 1.155.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_release/product-identity.json +2 -2
- package/codex-adapter/dist/codec/input-decoder.d.ts +17 -0
- package/codex-adapter/dist/codec/input-decoder.js +39 -0
- package/codex-adapter/dist/ingestion/explicit-owner-statement.js +125 -1
- package/codex-adapter/dist/ingestion/pain-receipt-fallback.d.ts +46 -0
- package/codex-adapter/dist/ingestion/pain-receipt-fallback.js +193 -0
- package/codex-adapter/dist/ingestion/turn-context.d.ts +10 -15
- package/codex-adapter/dist/ingestion/turn-context.js +35 -9
- package/codex-adapter/dist/pd-hook.js +57 -1
- package/codex-adapter/dist/worker/workspace-worker.d.ts +15 -0
- package/codex-adapter/dist/worker/workspace-worker.js +91 -12
- package/codex-adapter/package.json +1 -1
- package/console/dist/server/index.js +10 -0
- package/console/dist/server/models/EvidenceChainConsoleModel.js +31 -0
- package/console/dist/server/routes/service-host.d.ts +19 -0
- package/console/dist/server/routes/service-host.js +129 -0
- package/console/dist/web/assets/app.js +37 -37
- package/core/dist/runtime/context-payload.d.ts +48 -0
- package/core/dist/runtime/context-payload.d.ts.map +1 -1
- package/core/dist/runtime/context-payload.js +12 -0
- package/core/dist/runtime/context-payload.js.map +1 -1
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.d.ts.map +1 -1
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js +18 -0
- package/core/dist/runtime/diagnostician/rootcause-prompt-builder.js.map +1 -1
- package/core/dist/runtime/diagnostician-candidate.d.ts.map +1 -1
- package/core/dist/runtime/diagnostician-candidate.js +18 -2
- package/core/dist/runtime/diagnostician-candidate.js.map +1 -1
- package/core/dist/runtime/evidence-guards.d.ts +7 -3
- package/core/dist/runtime/evidence-guards.d.ts.map +1 -1
- package/core/dist/runtime/evidence-guards.js +9 -7
- package/core/dist/runtime/evidence-guards.js.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-contract.d.ts.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-contract.js +14 -0
- package/core/dist/runtime/feature-flags/feature-flag-contract.js.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.d.ts.map +1 -1
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js +8 -0
- package/core/dist/runtime/feature-flags/feature-flag-lifecycle.js.map +1 -1
- package/core/dist/runtime/host-submission-context.d.ts +83 -0
- package/core/dist/runtime/host-submission-context.d.ts.map +1 -0
- package/core/dist/runtime/host-submission-context.js +183 -0
- package/core/dist/runtime/host-submission-context.js.map +1 -0
- package/core/dist/runtime/index.d.ts +9 -2
- package/core/dist/runtime/index.d.ts.map +1 -1
- package/core/dist/runtime/index.js +29 -2
- package/core/dist/runtime/index.js.map +1 -1
- package/core/dist/runtime/intent/intent-doc.d.ts.map +1 -1
- package/core/dist/runtime/intent/intent-doc.js +29 -5
- package/core/dist/runtime/intent/intent-doc.js.map +1 -1
- package/core/dist/runtime/internalization/diag-distiller-runner.d.ts +9 -0
- package/core/dist/runtime/internalization/diag-distiller-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/diag-distiller-runner.js +13 -0
- package/core/dist/runtime/internalization/diag-distiller-runner.js.map +1 -1
- package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts +11 -0
- package/core/dist/runtime/internalization/diag-rootcause-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/diag-rootcause-runner.js +10 -0
- package/core/dist/runtime/internalization/diag-rootcause-runner.js.map +1 -1
- package/core/dist/runtime/internalization/diag-router-runner.d.ts +9 -0
- package/core/dist/runtime/internalization/diag-router-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/diag-router-runner.js +13 -0
- package/core/dist/runtime/internalization/diag-router-runner.js.map +1 -1
- package/core/dist/runtime/internalization/index.d.ts +1 -1
- package/core/dist/runtime/internalization/index.d.ts.map +1 -1
- package/core/dist/runtime/internalization/index.js +1 -1
- package/core/dist/runtime/internalization/index.js.map +1 -1
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts +19 -0
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.d.ts.map +1 -1
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.js +24 -0
- package/core/dist/runtime/internalization/intake-to-internalization-bridge.js.map +1 -1
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts +8 -0
- package/core/dist/runtime/internalization/internalization-orchestrator.d.ts.map +1 -1
- package/core/dist/runtime/internalization/internalization-orchestrator.js +36 -4
- package/core/dist/runtime/internalization/internalization-orchestrator.js.map +1 -1
- package/core/dist/runtime/internalization/source-authorization-boundary.d.ts +39 -0
- package/core/dist/runtime/internalization/source-authorization-boundary.d.ts.map +1 -0
- package/core/dist/runtime/internalization/source-authorization-boundary.js +57 -0
- package/core/dist/runtime/internalization/source-authorization-boundary.js.map +1 -0
- package/core/dist/runtime/internalization/split-diagnostician-runner.d.ts.map +1 -1
- package/core/dist/runtime/internalization/split-diagnostician-runner.js +72 -5
- package/core/dist/runtime/internalization/split-diagnostician-runner.js.map +1 -1
- package/core/dist/runtime/pain-admission-disposition.d.ts +60 -0
- package/core/dist/runtime/pain-admission-disposition.d.ts.map +1 -0
- package/core/dist/runtime/pain-admission-disposition.js +37 -0
- package/core/dist/runtime/pain-admission-disposition.js.map +1 -0
- package/core/dist/runtime/pain-ingress-payload.d.ts +36 -2
- package/core/dist/runtime/pain-ingress-payload.d.ts.map +1 -1
- package/core/dist/runtime/pain-ingress-payload.js +63 -6
- package/core/dist/runtime/pain-ingress-payload.js.map +1 -1
- package/core/dist/runtime/pain-ingress.d.ts.map +1 -1
- package/core/dist/runtime/pain-ingress.js +28 -0
- package/core/dist/runtime/pain-ingress.js.map +1 -1
- package/core/dist/runtime/pain-recall-read-model.d.ts +13 -1
- package/core/dist/runtime/pain-recall-read-model.d.ts.map +1 -1
- package/core/dist/runtime/pain-recall-read-model.js +50 -7
- package/core/dist/runtime/pain-recall-read-model.js.map +1 -1
- package/core/dist/runtime/pain-receipt-recovery.d.ts +147 -0
- package/core/dist/runtime/pain-receipt-recovery.d.ts.map +1 -0
- package/core/dist/runtime/pain-receipt-recovery.js +475 -0
- package/core/dist/runtime/pain-receipt-recovery.js.map +1 -0
- package/core/dist/runtime/pain-signal-bridge.d.ts +13 -1
- package/core/dist/runtime/pain-signal-bridge.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-bridge.js +174 -0
- package/core/dist/runtime/pain-signal-bridge.js.map +1 -1
- package/core/dist/runtime/pain-signal-runtime-factory.d.ts +9 -0
- package/core/dist/runtime/pain-signal-runtime-factory.d.ts.map +1 -1
- package/core/dist/runtime/pain-signal-runtime-factory.js +8 -3
- package/core/dist/runtime/pain-signal-runtime-factory.js.map +1 -1
- package/core/dist/runtime/pain-submit-capability.d.ts +11 -0
- package/core/dist/runtime/pain-submit-capability.d.ts.map +1 -1
- package/core/dist/runtime/pain-submit-capability.js +77 -3
- package/core/dist/runtime/pain-submit-capability.js.map +1 -1
- package/core/dist/runtime/pain-target-evidence-reconcile.d.ts +55 -0
- package/core/dist/runtime/pain-target-evidence-reconcile.d.ts.map +1 -0
- package/core/dist/runtime/pain-target-evidence-reconcile.js +164 -0
- package/core/dist/runtime/pain-target-evidence-reconcile.js.map +1 -0
- package/core/dist/runtime/pain-to-principle-service.d.ts +8 -0
- package/core/dist/runtime/pain-to-principle-service.d.ts.map +1 -1
- package/core/dist/runtime/pain-to-principle-service.js +1 -0
- package/core/dist/runtime/pain-to-principle-service.js.map +1 -1
- package/core/dist/runtime/source-material-authorization.d.ts +166 -0
- package/core/dist/runtime/source-material-authorization.d.ts.map +1 -0
- package/core/dist/runtime/source-material-authorization.js +250 -0
- package/core/dist/runtime/source-material-authorization.js.map +1 -0
- package/core/dist/runtime/store/context/index.d.ts +1 -0
- package/core/dist/runtime/store/context/index.d.ts.map +1 -1
- package/core/dist/runtime/store/context/index.js +1 -0
- package/core/dist/runtime/store/context/index.js.map +1 -1
- package/core/dist/runtime/store/context/promoted-evidence-reader.d.ts +8 -0
- package/core/dist/runtime/store/context/promoted-evidence-reader.d.ts.map +1 -1
- package/core/dist/runtime/store/context/promoted-evidence-reader.js +15 -1
- package/core/dist/runtime/store/context/promoted-evidence-reader.js.map +1 -1
- package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts +22 -0
- package/core/dist/runtime/store/context/sqlite-context-assembler.d.ts.map +1 -1
- package/core/dist/runtime/store/context/sqlite-context-assembler.js +153 -3
- package/core/dist/runtime/store/context/sqlite-context-assembler.js.map +1 -1
- package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts +13 -0
- package/core/dist/runtime/store/context/trajectory-turn-reader.d.ts.map +1 -1
- package/core/dist/runtime/store/lifecycle/lease-manager.d.ts +15 -0
- package/core/dist/runtime/store/lifecycle/lease-manager.d.ts.map +1 -1
- package/core/dist/runtime/store/lifecycle/lease-manager.js +16 -1
- package/core/dist/runtime/store/lifecycle/lease-manager.js.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.d.ts +2 -0
- package/core/dist/runtime/store/runtime-state-manager.d.ts.map +1 -1
- package/core/dist/runtime/store/runtime-state-manager.js.map +1 -1
- package/core/dist/runtime/store/task/memory-task-store.d.ts +1 -0
- package/core/dist/runtime/store/task/memory-task-store.d.ts.map +1 -1
- package/core/dist/runtime/store/task/memory-task-store.js +37 -0
- package/core/dist/runtime/store/task/memory-task-store.js.map +1 -1
- package/core/dist/runtime/store/task/sqlite-task-store.d.ts +10 -0
- package/core/dist/runtime/store/task/sqlite-task-store.d.ts.map +1 -1
- package/core/dist/runtime/store/task/sqlite-task-store.js +20 -0
- package/core/dist/runtime/store/task/sqlite-task-store.js.map +1 -1
- package/core/dist/runtime/store/task/task-store.d.ts +16 -0
- package/core/dist/runtime/store/task/task-store.d.ts.map +1 -1
- package/core/dist/runtime/task-status.d.ts +13 -0
- package/core/dist/runtime/task-status.d.ts.map +1 -1
- package/core/dist/runtime/task-status.js +9 -0
- package/core/dist/runtime/task-status.js.map +1 -1
- package/core/dist/runtime/types/evidence-chain-contract.d.ts +10 -0
- package/core/dist/runtime/types/evidence-chain-contract.d.ts.map +1 -1
- package/core/dist/runtime/types/evidence-chain-contract.js +7 -0
- package/core/dist/runtime/types/evidence-chain-contract.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +77 -30
- package/dist/installer.js.map +1 -1
- package/dist/installers/mcp-registration-conflict.d.ts +8 -0
- package/dist/installers/mcp-registration-conflict.d.ts.map +1 -1
- package/dist/installers/mcp-registration-conflict.js +34 -1
- package/dist/installers/mcp-registration-conflict.js.map +1 -1
- package/dist/installers/workbuddy-host-installer.d.ts +45 -13
- package/dist/installers/workbuddy-host-installer.d.ts.map +1 -1
- package/dist/installers/workbuddy-host-installer.js +284 -21
- package/dist/installers/workbuddy-host-installer.js.map +1 -1
- package/dist/prompts.d.ts +11 -0
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +4 -0
- package/dist/prompts.js.map +1 -1
- package/dist/service-host-bridge.d.ts +67 -0
- package/dist/service-host-bridge.d.ts.map +1 -0
- package/dist/service-host-bridge.js +292 -0
- package/dist/service-host-bridge.js.map +1 -0
- package/dist/uninstaller.d.ts.map +1 -1
- package/dist/uninstaller.js +26 -0
- package/dist/uninstaller.js.map +1 -1
- package/dist/update/install-layout.d.ts +0 -12
- package/dist/update/install-layout.d.ts.map +1 -1
- package/dist/update/install-layout.js +42 -15
- package/dist/update/install-layout.js.map +1 -1
- package/host-runtime/dist/diagnostician-auto-run.js +4 -1
- package/host-runtime/dist/governance-observation-store.d.ts +7 -0
- package/host-runtime/dist/governance-observation-store.js +15 -4
- package/host-runtime/dist/governance-signal-admission.d.ts +49 -0
- package/host-runtime/dist/governance-signal-admission.js +355 -94
- package/host-runtime/dist/governance-trajectory-turn-reader.d.ts +20 -4
- package/host-runtime/dist/governance-trajectory-turn-reader.js +77 -5
- package/host-runtime/dist/index.d.ts +2 -0
- package/host-runtime/dist/index.js +5 -0
- package/host-runtime/dist/internalization-consumer-cycle.js +4 -1
- package/host-runtime/dist/pd-config.d.ts +10 -0
- package/host-runtime/dist/pd-config.js +37 -0
- package/host-runtime/dist/signal-stage2-cycle.js +28 -1
- package/host-runtime/dist/source-material-authorization.d.ts +53 -0
- package/host-runtime/dist/source-material-authorization.js +67 -0
- package/host-runtime/dist/source-revocation-sweep.d.ts +172 -0
- package/host-runtime/dist/source-revocation-sweep.js +928 -0
- package/host-runtime/package.json +5 -1
- package/install-layout/dist/background-execution-transition.d.ts +258 -0
- package/install-layout/dist/background-execution-transition.js +836 -0
- package/install-layout/dist/index.d.ts +8 -0
- package/install-layout/dist/index.js +8 -0
- package/install-layout/package.json +6 -2
- package/package.json +4 -4
- package/pd-cli/dist/commands/candidate.d.ts.map +1 -1
- package/pd-cli/dist/commands/candidate.js +16 -5
- package/pd-cli/dist/commands/candidate.js.map +1 -1
- package/pd-cli/dist/commands/codex-setup.d.ts.map +1 -1
- package/pd-cli/dist/commands/codex-setup.js +17 -1
- package/pd-cli/dist/commands/codex-setup.js.map +1 -1
- package/pd-cli/dist/commands/codex-worker.d.ts.map +1 -1
- package/pd-cli/dist/commands/codex-worker.js +8 -4
- package/pd-cli/dist/commands/codex-worker.js.map +1 -1
- package/pd-cli/dist/commands/consent-sweep-revoked.d.ts +20 -0
- package/pd-cli/dist/commands/consent-sweep-revoked.d.ts.map +1 -0
- package/pd-cli/dist/commands/consent-sweep-revoked.js +85 -0
- package/pd-cli/dist/commands/consent-sweep-revoked.js.map +1 -0
- package/pd-cli/dist/commands/context.d.ts.map +1 -1
- package/pd-cli/dist/commands/context.js +9 -1
- package/pd-cli/dist/commands/context.js.map +1 -1
- package/pd-cli/dist/commands/diagnose.d.ts.map +1 -1
- package/pd-cli/dist/commands/diagnose.js +12 -6
- package/pd-cli/dist/commands/diagnose.js.map +1 -1
- package/pd-cli/dist/commands/openclaw-worker.d.ts +11 -0
- package/pd-cli/dist/commands/openclaw-worker.d.ts.map +1 -0
- package/pd-cli/dist/commands/openclaw-worker.js +199 -0
- package/pd-cli/dist/commands/openclaw-worker.js.map +1 -0
- package/pd-cli/dist/commands/pain-explicit.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-explicit.js +1 -0
- package/pd-cli/dist/commands/pain-explicit.js.map +1 -1
- package/pd-cli/dist/commands/pain-recall.d.ts +2 -2
- package/pd-cli/dist/commands/pain-recall.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-recall.js +7 -1
- package/pd-cli/dist/commands/pain-recall.js.map +1 -1
- package/pd-cli/dist/commands/pain-retry.d.ts.map +1 -1
- package/pd-cli/dist/commands/pain-retry.js +12 -6
- package/pd-cli/dist/commands/pain-retry.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js +2 -1
- package/pd-cli/dist/commands/runtime-internalization-enqueue-successors.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts +1 -0
- package/pd-cli/dist/commands/runtime-internalization-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-run-once.js +32 -8
- package/pd-cli/dist/commands/runtime-internalization-run-once.js.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-wake-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/runtime-internalization-wake-once.js +2 -1
- package/pd-cli/dist/commands/runtime-internalization-wake-once.js.map +1 -1
- package/pd-cli/dist/commands/service-handover.d.ts +12 -0
- package/pd-cli/dist/commands/service-handover.d.ts.map +1 -0
- package/pd-cli/dist/commands/service-handover.js +117 -0
- package/pd-cli/dist/commands/service-handover.js.map +1 -0
- package/pd-cli/dist/commands/service-lifecycle.d.ts +31 -0
- package/pd-cli/dist/commands/service-lifecycle.d.ts.map +1 -0
- package/pd-cli/dist/commands/service-lifecycle.js +207 -0
- package/pd-cli/dist/commands/service-lifecycle.js.map +1 -0
- package/pd-cli/dist/commands/service-run-once.d.ts +96 -0
- package/pd-cli/dist/commands/service-run-once.d.ts.map +1 -1
- package/pd-cli/dist/commands/service-run-once.js +432 -13
- package/pd-cli/dist/commands/service-run-once.js.map +1 -1
- package/pd-cli/dist/commands/workbuddy-setup.d.ts.map +1 -1
- package/pd-cli/dist/commands/workbuddy-setup.js +22 -2
- package/pd-cli/dist/commands/workbuddy-setup.js.map +1 -1
- package/pd-cli/dist/program.d.ts.map +1 -1
- package/pd-cli/dist/program.js +167 -9
- package/pd-cli/dist/program.js.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.d.ts +3 -1
- package/pd-cli/dist/services/admission-write-gate.d.ts.map +1 -1
- package/pd-cli/dist/services/admission-write-gate.js +1 -0
- package/pd-cli/dist/services/admission-write-gate.js.map +1 -1
- package/pd-cli/dist/services/service-host/coordinator-common.d.ts +49 -0
- package/pd-cli/dist/services/service-host/coordinator-common.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/coordinator-common.js +158 -0
- package/pd-cli/dist/services/service-host/coordinator-common.js.map +1 -0
- package/pd-cli/dist/services/service-host/handover-claims.d.ts +14 -0
- package/pd-cli/dist/services/service-host/handover-claims.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/handover-claims.js +50 -0
- package/pd-cli/dist/services/service-host/handover-claims.js.map +1 -0
- package/pd-cli/dist/services/service-host/index.d.ts +19 -3
- package/pd-cli/dist/services/service-host/index.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/index.js +21 -3
- package/pd-cli/dist/services/service-host/index.js.map +1 -1
- package/pd-cli/dist/services/service-host/install-identity.d.ts +23 -3
- package/pd-cli/dist/services/service-host/install-identity.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/install-identity.js +15 -5
- package/pd-cli/dist/services/service-host/install-identity.js.map +1 -1
- package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts +130 -9
- package/pd-cli/dist/services/service-host/locking/service-run-lock.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/locking/service-run-lock.js +99 -19
- package/pd-cli/dist/services/service-host/locking/service-run-lock.js.map +1 -1
- package/pd-cli/dist/services/service-host/managed-run.d.ts +75 -0
- package/pd-cli/dist/services/service-host/managed-run.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/managed-run.js +550 -0
- package/pd-cli/dist/services/service-host/managed-run.js.map +1 -0
- package/pd-cli/dist/services/service-host/progress-evidence.d.ts +38 -0
- package/pd-cli/dist/services/service-host/progress-evidence.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/progress-evidence.js +155 -0
- package/pd-cli/dist/services/service-host/progress-evidence.js.map +1 -0
- package/pd-cli/dist/services/service-host/run-once.d.ts.map +1 -1
- package/pd-cli/dist/services/service-host/run-once.js +4 -136
- package/pd-cli/dist/services/service-host/run-once.js.map +1 -1
- package/pd-cli/dist/services/service-host/scheduler/contract.d.ts +184 -0
- package/pd-cli/dist/services/service-host/scheduler/contract.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/contract.js +86 -0
- package/pd-cli/dist/services/service-host/scheduler/contract.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/index.d.ts +76 -0
- package/pd-cli/dist/services/service-host/scheduler/index.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/index.js +128 -0
- package/pd-cli/dist/services/service-host/scheduler/index.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/linux.d.ts +27 -0
- package/pd-cli/dist/services/service-host/scheduler/linux.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/linux.js +1010 -0
- package/pd-cli/dist/services/service-host/scheduler/linux.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/macos.d.ts +13 -0
- package/pd-cli/dist/services/service-host/scheduler/macos.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/macos.js +819 -0
- package/pd-cli/dist/services/service-host/scheduler/macos.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/runtime-io.d.ts +13 -0
- package/pd-cli/dist/services/service-host/scheduler/runtime-io.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/runtime-io.js +141 -0
- package/pd-cli/dist/services/service-host/scheduler/runtime-io.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts +99 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.js +202 -0
- package/pd-cli/dist/services/service-host/scheduler/service-status.js.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/windows.d.ts +40 -0
- package/pd-cli/dist/services/service-host/scheduler/windows.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/scheduler/windows.js +688 -0
- package/pd-cli/dist/services/service-host/scheduler/windows.js.map +1 -0
- package/pd-cli/dist/services/service-host/shadow-progress-store.d.ts +43 -0
- package/pd-cli/dist/services/service-host/shadow-progress-store.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/shadow-progress-store.js +156 -0
- package/pd-cli/dist/services/service-host/shadow-progress-store.js.map +1 -0
- package/pd-cli/dist/services/service-host/shadow-run.d.ts +87 -0
- package/pd-cli/dist/services/service-host/shadow-run.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/shadow-run.js +549 -0
- package/pd-cli/dist/services/service-host/shadow-run.js.map +1 -0
- package/pd-cli/dist/services/service-host/status/service-run-status.d.ts +114 -4
- 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 +37 -0
- package/pd-cli/dist/services/service-host/status/service-run-status.js.map +1 -1
- package/pd-cli/dist/services/service-host/worker-adapter-codex.d.ts +2 -0
- package/pd-cli/dist/services/service-host/worker-adapter-codex.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-codex.js +76 -0
- package/pd-cli/dist/services/service-host/worker-adapter-codex.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.d.ts +2 -0
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js +49 -0
- package/pd-cli/dist/services/service-host/worker-adapter-openclaw.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.d.ts +2 -0
- package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.js +36 -0
- package/pd-cli/dist/services/service-host/worker-adapter-workbuddy.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter.d.ts +187 -0
- package/pd-cli/dist/services/service-host/worker-adapter.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-adapter.js +609 -0
- package/pd-cli/dist/services/service-host/worker-adapter.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-env.d.ts +84 -0
- package/pd-cli/dist/services/service-host/worker-env.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-env.js +195 -0
- package/pd-cli/dist/services/service-host/worker-env.js.map +1 -0
- package/pd-cli/dist/services/service-host/worker-process.d.ts +75 -0
- package/pd-cli/dist/services/service-host/worker-process.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/worker-process.js +225 -0
- package/pd-cli/dist/services/service-host/worker-process.js.map +1 -0
- package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts +61 -0
- package/pd-cli/dist/services/service-host/workspace-dispatch.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/workspace-dispatch.js +105 -0
- package/pd-cli/dist/services/service-host/workspace-dispatch.js.map +1 -0
- package/pd-cli/dist/services/service-host/workspace-handover.d.ts +190 -0
- package/pd-cli/dist/services/service-host/workspace-handover.d.ts.map +1 -0
- package/pd-cli/dist/services/service-host/workspace-handover.js +1393 -0
- package/pd-cli/dist/services/service-host/workspace-handover.js.map +1 -0
- package/pd-cli/package.json +6 -5
- package/pd-mcp-server/dist/submit-assembly.js +159 -42
- 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 +586 -568
- package/plugin/dist/openclaw-worker.d.ts +92 -0
- package/plugin/dist/openclaw-worker.js +2439 -0
- package/plugin/dist/openclaw.plugin.json +1 -1
- package/plugin/dist/service/gateway-consumer-lease.d.ts +142 -0
- package/plugin/dist/service/gateway-quiesce-ack.d.ts +40 -0
- package/plugin/dist/service/internalization-auto-consumer-service.d.ts +68 -1
- package/plugin/openclaw.plugin.json +1 -1
- package/plugin/package.json +5 -1
- package/release-manager/dist/installer.js +77 -30
- package/release-manager/dist/installers/mcp-registration-conflict.js +34 -1
- package/release-manager/dist/installers/workbuddy-host-installer.js +284 -21
- package/release-manager/dist/service-host-bridge.js +292 -0
- package/release-manager/dist/update/install-layout.js +42 -15
- package/release-manager/package.json +2 -2
- package/workbuddy-adapter/dist/index.d.ts +1 -1
- package/workbuddy-adapter/dist/index.js +1 -1
- package/workbuddy-adapter/dist/worker/workspace-worker.d.ts +7 -0
- package/workbuddy-adapter/dist/worker/workspace-worker.js +179 -10
- package/workbuddy-adapter/package.json +1 -1
- package/workbuddy-adapter/plugin/.codebuddy-plugin/plugin.json +2 -2
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pain submit receipt recovery — PRI-1274 B1 fallback path
|
|
3
|
+
* (SPEC-PD-FEEDBACK-RESILIENCE-001 v0.7 §G2, TD §1.3 "兜底路径").
|
|
4
|
+
*
|
|
5
|
+
* When a `pd_submit_pain` MCP request carried NO trusted host `_meta`, the
|
|
6
|
+
* original Pain/Task is legally persisted unbound. The host's formal
|
|
7
|
+
* tool-completion event (Codex PostToolUse) then carries PD's own structured
|
|
8
|
+
* receipt (`pd.pain-submit-receipt.v1`) plus host-authoritative identity
|
|
9
|
+
* (session/turn/tool-use ids from the EVENT, never from model parameters).
|
|
10
|
+
* This module validates that receipt strictly and restores the submission
|
|
11
|
+
* identity on the SAME original task via the existing expected-value CAS
|
|
12
|
+
* (`updateTaskIfDiagnosticJsonUnchanged` with full status/lease
|
|
13
|
+
* preconditions) — never a second Pain/Task, queue, lease or evidence store.
|
|
14
|
+
*
|
|
15
|
+
* Match rules (SPEC TD §1.3.3): exact workspace + hostKind + tool name
|
|
16
|
+
* (caller-enforced) + receipt schema/capability/status + exact
|
|
17
|
+
* painId/taskId + the deterministic taskId↔painId mapping + original task
|
|
18
|
+
* `input_ref` + the original task's own hostKind/workspace + the receipt's
|
|
19
|
+
* `sessionAssociation` reason. Idempotent replay of the SAME physical call
|
|
20
|
+
* folds; a receipt with a DIFFERENT toolCallId against an already-bound task
|
|
21
|
+
* is ambiguous. `submit_unconfirmed` must be confirmed by an exact-ID
|
|
22
|
+
* read-back before it may recover identity. Nothing here reads transcripts,
|
|
23
|
+
* prompts, reasons or anchor text — the persisted metadata is exactly the
|
|
24
|
+
* receipt identity fields plus the recovery disposition.
|
|
25
|
+
*
|
|
26
|
+
* Security boundary (P1-2, review round 2): the fallback may ONLY repair a
|
|
27
|
+
* submission the main path left unbound because trusted metadata was absent
|
|
28
|
+
* (`codex_host_metadata_missing`). A receipt whose `sessionAssociation`
|
|
29
|
+
* records a SAFETY REFUSAL — `host_context_conflict`,
|
|
30
|
+
* `host_context_invalid:*`, `blocked_by_consent`,
|
|
31
|
+
* `codex_target_turn_invalid` — is rejected: the PostToolUse fallback must
|
|
32
|
+
* never overturn a fail-closed decision the MCP path already made.
|
|
33
|
+
*/
|
|
34
|
+
import { RuntimeStateManager } from './store/runtime-state-manager.js';
|
|
35
|
+
import { createDiagnosticianTaskId } from './pain-signal-bridge.js';
|
|
36
|
+
import { isSentinelSessionId, normalizeRequestedTargetTurnId } from './pain-ingress-payload.js';
|
|
37
|
+
import { SUBMIT_PAIN_CAPABILITY_ID, SUBMIT_PAIN_RECEIPT_SCHEMA_VERSION, } from './pain-submit-capability.js';
|
|
38
|
+
import { PAIN_RECOVERY_DISPOSITION_SCHEMA_VERSION, targetEvidenceWaitRequired } from './pain-admission-disposition.js';
|
|
39
|
+
export { PAIN_RECOVERY_DISPOSITION_SCHEMA_VERSION } from './pain-admission-disposition.js';
|
|
40
|
+
const RECEIPT_ALLOWED_KEYS = [
|
|
41
|
+
'schemaVersion', 'capability', 'status', 'painId', 'taskId', 'workspaceDir',
|
|
42
|
+
'diagnosis', 'anchor', 'provenance', 'warnings', 'error', 'nextAction', 'sessionAssociation',
|
|
43
|
+
];
|
|
44
|
+
/**
|
|
45
|
+
* The ONLY unbound causes the PostToolUse fallback is allowed to repair
|
|
46
|
+
* (P1-2). `codex_host_metadata_missing` is the designated fallback
|
|
47
|
+
* territory: the host attached no trusted `_meta`, so the completion event's
|
|
48
|
+
* own host identity is the designated repair source. Every other cause —
|
|
49
|
+
* a conflict the main path detected, malformed metadata, a consent refusal,
|
|
50
|
+
* an invalid target turn — stays refused here.
|
|
51
|
+
*/
|
|
52
|
+
const RECOVERABLE_UNVERIFIED_DETAILS = new Set(['codex_host_metadata_missing']);
|
|
53
|
+
function isRecord(value) {
|
|
54
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
55
|
+
}
|
|
56
|
+
function isNonEmptyId(value) {
|
|
57
|
+
return typeof value === 'string' && value.trim().length > 0 && value.trim().length === value.length && value.length <= 200;
|
|
58
|
+
}
|
|
59
|
+
/** Bounded diagnostic text by CODE POINTS — never splits a surrogate pair
|
|
60
|
+
* (a CJK store message must not render U+FFFD at the cut; EP-11). */
|
|
61
|
+
function boundedDetail(value, maxChars) {
|
|
62
|
+
return Array.from(value).slice(0, maxChars).join('');
|
|
63
|
+
}
|
|
64
|
+
/** Host identity value: non-empty, bounded, and never a sentinel spelling. */
|
|
65
|
+
function isUsableHostId(value) {
|
|
66
|
+
return isNonEmptyId(value) && !isSentinelSessionId(value);
|
|
67
|
+
}
|
|
68
|
+
function validateSessionAssociation(value) {
|
|
69
|
+
if (!isRecord(value))
|
|
70
|
+
return null;
|
|
71
|
+
if (value.status === 'verified') {
|
|
72
|
+
const allowed = ['status', 'sessionId', 'submissionTurnId', 'targetTurnId'];
|
|
73
|
+
for (const key of Object.keys(value)) {
|
|
74
|
+
if (!allowed.includes(key))
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
if (!isUsableHostId(value.sessionId))
|
|
78
|
+
return null;
|
|
79
|
+
const optionalTurn = (candidate) => candidate === undefined || isUsableHostId(candidate);
|
|
80
|
+
if (!optionalTurn(value.submissionTurnId) || !optionalTurn(value.targetTurnId))
|
|
81
|
+
return null;
|
|
82
|
+
return {
|
|
83
|
+
status: 'verified',
|
|
84
|
+
sessionId: value.sessionId,
|
|
85
|
+
...(value.submissionTurnId === undefined ? {} : { submissionTurnId: value.submissionTurnId }),
|
|
86
|
+
...(value.targetTurnId === undefined ? {} : { targetTurnId: value.targetTurnId }),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
if (value.status === 'unverified') {
|
|
90
|
+
const allowed = ['status', 'detail'];
|
|
91
|
+
for (const key of Object.keys(value)) {
|
|
92
|
+
if (!allowed.includes(key))
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
if (typeof value.detail !== 'string' || value.detail.length === 0 || value.detail.length > 200)
|
|
96
|
+
return null;
|
|
97
|
+
return { status: 'unverified', detail: value.detail };
|
|
98
|
+
}
|
|
99
|
+
if (value.status === 'absent') {
|
|
100
|
+
return Object.keys(value).length === 1 ? { status: 'absent' } : null;
|
|
101
|
+
}
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Strict validation of a parsed `pd.pain-submit-receipt.v1` document
|
|
106
|
+
* (rc-1/rc-2/rc-3: guards, no `as`, unknown/malformed fields fail loud).
|
|
107
|
+
*
|
|
108
|
+
* Rejected on purpose: degraded transport forms (the minimal receipt lost
|
|
109
|
+
* `schemaVersion`/`capability`; the plain-text statement), `refused` /
|
|
110
|
+
* `failed` statuses (nothing recoverable was written), and any
|
|
111
|
+
* painId/taskId pair that breaks the deterministic mapping. A present
|
|
112
|
+
* `sessionAssociation` must match the receipt contract exactly — it is the
|
|
113
|
+
* P1-2 security boundary, so a malformed value is invalid rather than
|
|
114
|
+
* dropped.
|
|
115
|
+
*/
|
|
116
|
+
export function validatePainSubmitReceipt(value, options) {
|
|
117
|
+
if (!isRecord(value))
|
|
118
|
+
return { ok: false, reasonCode: 'receipt_not_an_object' };
|
|
119
|
+
for (const key of Object.keys(value)) {
|
|
120
|
+
if (!RECEIPT_ALLOWED_KEYS.includes(key)) {
|
|
121
|
+
return { ok: false, reasonCode: 'receipt_unknown_field' };
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
if (value.schemaVersion !== SUBMIT_PAIN_RECEIPT_SCHEMA_VERSION) {
|
|
125
|
+
return { ok: false, reasonCode: 'receipt_schema_version_mismatch' };
|
|
126
|
+
}
|
|
127
|
+
if (value.capability !== SUBMIT_PAIN_CAPABILITY_ID) {
|
|
128
|
+
return { ok: false, reasonCode: 'receipt_capability_mismatch' };
|
|
129
|
+
}
|
|
130
|
+
if (typeof value.status !== 'string' || (value.status !== 'submitted' && value.status !== 'submit_unconfirmed')) {
|
|
131
|
+
// Fixed code only — the raw status value is untrusted JSON and never
|
|
132
|
+
// stringified into a reason code (it could be any JSON value).
|
|
133
|
+
return { ok: false, reasonCode: 'receipt_status_not_recoverable' };
|
|
134
|
+
}
|
|
135
|
+
if (!isNonEmptyId(value.painId))
|
|
136
|
+
return { ok: false, reasonCode: 'receipt_pain_id_invalid' };
|
|
137
|
+
if (!isNonEmptyId(value.taskId))
|
|
138
|
+
return { ok: false, reasonCode: 'receipt_task_id_invalid' };
|
|
139
|
+
if (value.taskId !== createDiagnosticianTaskId(value.painId)) {
|
|
140
|
+
return { ok: false, reasonCode: 'receipt_task_id_mapping_mismatch' };
|
|
141
|
+
}
|
|
142
|
+
if (typeof value.workspaceDir !== 'string' || value.workspaceDir.length === 0) {
|
|
143
|
+
return { ok: false, reasonCode: 'receipt_workspace_invalid' };
|
|
144
|
+
}
|
|
145
|
+
// Exact-string workspace equality; the HOST adapter normalizes both sides
|
|
146
|
+
// (path.resolve) BEFORE this check — platform path knowledge belongs to
|
|
147
|
+
// the host layer, and Core stays path-free.
|
|
148
|
+
if (value.workspaceDir !== options.workspaceDir) {
|
|
149
|
+
return { ok: false, reasonCode: 'receipt_workspace_mismatch' };
|
|
150
|
+
}
|
|
151
|
+
const sessionAssociation = value.sessionAssociation === undefined
|
|
152
|
+
? { status: 'absent' }
|
|
153
|
+
: validateSessionAssociation(value.sessionAssociation);
|
|
154
|
+
if (sessionAssociation === null) {
|
|
155
|
+
return { ok: false, reasonCode: 'receipt_session_association_invalid' };
|
|
156
|
+
}
|
|
157
|
+
return {
|
|
158
|
+
ok: true,
|
|
159
|
+
receipt: { status: value.status, painId: value.painId, taskId: value.taskId, workspaceDir: value.workspaceDir, sessionAssociation },
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* P1-2 gate: may THIS receipt's original unbound cause be repaired by the
|
|
164
|
+
* PostToolUse fallback at all? Only `unverified` with an explicitly
|
|
165
|
+
* recoverable detail passes; a `verified` original flows on to the normal
|
|
166
|
+
* idempotent/conflict handling (never a fresh bind decision made here).
|
|
167
|
+
*/
|
|
168
|
+
export function isReceiptSessionAssociationRecoverable(association) {
|
|
169
|
+
if (association.status === 'verified')
|
|
170
|
+
return { ok: true };
|
|
171
|
+
if (association.status === 'absent') {
|
|
172
|
+
// No association record means the producer never said WHY the submission
|
|
173
|
+
// was unbound — not a designated fallback cause. Fail closed.
|
|
174
|
+
return { ok: false, reasonCode: 'session_association_not_recoverable', detail: 'absent' };
|
|
175
|
+
}
|
|
176
|
+
if (!RECOVERABLE_UNVERIFIED_DETAILS.has(association.detail)) {
|
|
177
|
+
// `host_context_conflict`, `host_context_invalid:*`, `blocked_by_consent`,
|
|
178
|
+
// `codex_target_turn_invalid`, … — safety refusals the main path already
|
|
179
|
+
// made; the fallback must never overturn them (P1-2).
|
|
180
|
+
return { ok: false, reasonCode: 'session_association_not_recoverable', detail: association.detail };
|
|
181
|
+
}
|
|
182
|
+
return { ok: true };
|
|
183
|
+
}
|
|
184
|
+
const TERMINAL_TASK_STATUSES = new Set(['succeeded', 'failed', 'needs_human_review']);
|
|
185
|
+
function leaseActive(task, nowMs) {
|
|
186
|
+
if (task.status !== 'leased')
|
|
187
|
+
return false;
|
|
188
|
+
const expiresAt = task.leaseExpiresAt === null || task.leaseExpiresAt === undefined
|
|
189
|
+
? null
|
|
190
|
+
: Date.parse(task.leaseExpiresAt);
|
|
191
|
+
return expiresAt !== null && !Number.isNaN(expiresAt) && expiresAt > nowMs;
|
|
192
|
+
}
|
|
193
|
+
function parseDiagnosticJson(task) {
|
|
194
|
+
if (task.diagnosticJson === null || task.diagnosticJson === undefined)
|
|
195
|
+
return null;
|
|
196
|
+
let parsed;
|
|
197
|
+
try {
|
|
198
|
+
parsed = JSON.parse(task.diagnosticJson);
|
|
199
|
+
}
|
|
200
|
+
catch {
|
|
201
|
+
return null;
|
|
202
|
+
}
|
|
203
|
+
if (!isRecord(parsed))
|
|
204
|
+
return null;
|
|
205
|
+
return { record: parsed, text: task.diagnosticJson };
|
|
206
|
+
}
|
|
207
|
+
function countEvidence(diagnostic) {
|
|
208
|
+
return Array.isArray(diagnostic.record.evidence) ? diagnostic.record.evidence.length : 0;
|
|
209
|
+
}
|
|
210
|
+
function buildReceiptRef(receipt, identity, nowIso) {
|
|
211
|
+
return {
|
|
212
|
+
schemaVersion: SUBMIT_PAIN_RECEIPT_SCHEMA_VERSION,
|
|
213
|
+
capability: SUBMIT_PAIN_CAPABILITY_ID,
|
|
214
|
+
status: receipt.status,
|
|
215
|
+
toolCallId: identity.toolCallId,
|
|
216
|
+
receivedAt: nowIso,
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
/** Continuity for repeated checks: a fresh disposition increments the
|
|
220
|
+
* persisted attempt count instead of resetting it (SPEC TD §3 step 9). */
|
|
221
|
+
function nextAttemptCount(existingRecovery) {
|
|
222
|
+
if (isRecord(existingRecovery) && typeof existingRecovery.attemptCount === 'number'
|
|
223
|
+
&& Number.isInteger(existingRecovery.attemptCount) && existingRecovery.attemptCount >= 1) {
|
|
224
|
+
return existingRecovery.attemptCount + 1;
|
|
225
|
+
}
|
|
226
|
+
return 1;
|
|
227
|
+
}
|
|
228
|
+
function mergeDisposition(diagnostic, disposition) {
|
|
229
|
+
return JSON.stringify({ ...diagnostic.record, recovery: disposition });
|
|
230
|
+
}
|
|
231
|
+
function evaluateRecoveryPass(input) {
|
|
232
|
+
const { task, diagnostic, receipt, identity, authorized, targetTurnTextAvailable, nowIso } = input;
|
|
233
|
+
const preconditions = {
|
|
234
|
+
expectedStatus: task.status,
|
|
235
|
+
expectedLeaseOwner: task.leaseOwner ?? null,
|
|
236
|
+
expectedLeaseExpiresAt: task.leaseExpiresAt ?? null,
|
|
237
|
+
// Directive G2: the FULL snapshot the decision depends on — generation
|
|
238
|
+
// (legacy rows read 0 through the TaskRecord mapping, which IS the
|
|
239
|
+
// pre-takeover state) and the task's own attempt counter.
|
|
240
|
+
expectedLeaseGeneration: task.leaseGeneration ?? 0,
|
|
241
|
+
expectedAttemptCount: task.attemptCount,
|
|
242
|
+
};
|
|
243
|
+
if (task.inputRef !== receipt.painId) {
|
|
244
|
+
return { action: 'report', outcome: { status: 'rejected', reasonCode: 'task_input_ref_mismatch', painId: receipt.painId, taskId: receipt.taskId } };
|
|
245
|
+
}
|
|
246
|
+
// P1-2.6/7: taskId/painId agreement alone proves nothing about WHO owns the
|
|
247
|
+
// task — the original task must be a Codex submission for THIS workspace
|
|
248
|
+
// before a Codex PostToolUse event may write identity onto it.
|
|
249
|
+
if (diagnostic.record.hostKind !== 'codex') {
|
|
250
|
+
return { action: 'report', outcome: { status: 'rejected', reasonCode: 'task_host_kind_mismatch', painId: receipt.painId, taskId: receipt.taskId } };
|
|
251
|
+
}
|
|
252
|
+
if (diagnostic.record.workspaceDir !== receipt.workspaceDir) {
|
|
253
|
+
return { action: 'report', outcome: { status: 'rejected', reasonCode: 'task_workspace_mismatch', painId: receipt.painId, taskId: receipt.taskId } };
|
|
254
|
+
}
|
|
255
|
+
if (TERMINAL_TASK_STATUSES.has(task.status)) {
|
|
256
|
+
// A terminal task is protected state — report only, never mutate (the
|
|
257
|
+
// B1 contract: no reopening of historical terminal tasks).
|
|
258
|
+
return { action: 'report', outcome: { status: 'rejected', reasonCode: 'task_terminal', painId: receipt.painId, taskId: receipt.taskId } };
|
|
259
|
+
}
|
|
260
|
+
if (leaseActive(task, Date.parse(nowIso))) {
|
|
261
|
+
return { action: 'report', outcome: { status: 'rejected', reasonCode: 'task_leased', painId: receipt.painId, taskId: receipt.taskId } };
|
|
262
|
+
}
|
|
263
|
+
const existingHint = diagnostic.record.sessionIdHint;
|
|
264
|
+
const hintPresent = typeof existingHint === 'string' && existingHint.length > 0;
|
|
265
|
+
if (hintPresent && existingHint !== identity.sessionId) {
|
|
266
|
+
// An already-verified, DIFFERENT identity is protected (never overwritten);
|
|
267
|
+
// an event conflicting with a bound session is ambiguity, not truth.
|
|
268
|
+
return { action: 'report', outcome: { status: 'rejected', reasonCode: 'identity_conflict', painId: receipt.painId, taskId: receipt.taskId } };
|
|
269
|
+
}
|
|
270
|
+
const existingRecovery = diagnostic.record.recovery;
|
|
271
|
+
const existingRef = isRecord(existingRecovery) && isRecord(existingRecovery.receiptRef)
|
|
272
|
+
? existingRecovery.receiptRef
|
|
273
|
+
: null;
|
|
274
|
+
if (hintPresent && existingHint === identity.sessionId) {
|
|
275
|
+
if (existingRef !== null && typeof existingRef.toolCallId === 'string' && existingRef.toolCallId !== identity.toolCallId) {
|
|
276
|
+
// Same session but a DIFFERENT physical call claiming the same task:
|
|
277
|
+
// multi-match ambiguity — never a second identity write.
|
|
278
|
+
return { action: 'report', outcome: { status: 'rejected', reasonCode: 'ambiguous_receipt', painId: receipt.painId, taskId: receipt.taskId } };
|
|
279
|
+
}
|
|
280
|
+
// Same physical call replayed (or a prebound task whose _meta already
|
|
281
|
+
// bound this session): idempotent — nothing to write.
|
|
282
|
+
return { action: 'report', outcome: { status: 'already_bound', painId: receipt.painId, taskId: receipt.taskId } };
|
|
283
|
+
}
|
|
284
|
+
if (!authorized) {
|
|
285
|
+
// Persist WHY the task stays unbound (rc-9) — a disposition-only write
|
|
286
|
+
// touches no identity fields and respects every protection above. P2
|
|
287
|
+
// review round: with the authorization OFF, NO receipt identity metadata
|
|
288
|
+
// is persisted either — no receiptRef, no toolCallId.
|
|
289
|
+
const disposition = {
|
|
290
|
+
schemaVersion: PAIN_RECOVERY_DISPOSITION_SCHEMA_VERSION,
|
|
291
|
+
state: 'blocked_by_consent',
|
|
292
|
+
reasonCode: 'minimal_identity_metadata_not_granted',
|
|
293
|
+
attemptCount: nextAttemptCount(existingRecovery),
|
|
294
|
+
lastCheckedAt: nowIso,
|
|
295
|
+
};
|
|
296
|
+
return {
|
|
297
|
+
action: 'cas_disposition_only',
|
|
298
|
+
expectedJson: diagnostic.text,
|
|
299
|
+
newJson: mergeDisposition(diagnostic, disposition),
|
|
300
|
+
preconditions,
|
|
301
|
+
outcome: { status: 'rejected', reasonCode: 'blocked_by_consent', painId: receipt.painId, taskId: receipt.taskId },
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
// Unbound + authorized + original task: bind the submission identity.
|
|
305
|
+
if (!isRecord(diagnostic.record.painIngress)) {
|
|
306
|
+
// An original pd_submit_pain task always carries the versioned ingress
|
|
307
|
+
// block; without it this is not that task — fail closed, no mutation.
|
|
308
|
+
return { action: 'report', outcome: { status: 'rejected', reasonCode: 'diagnostic_payload_invalid:pain_ingress_missing', painId: receipt.painId, taskId: receipt.taskId } };
|
|
309
|
+
}
|
|
310
|
+
// P1-3 (r2b, devin finding 0001) + review round 2 (directive I3): the
|
|
311
|
+
// target is the original submission's EXPLICIT request when it named one
|
|
312
|
+
// (persisted as the unverified `requestedTargetTurnId` hint), else the host
|
|
313
|
+
// event's submission turn (the tool's documented default). The historical
|
|
314
|
+
// hint passes through the SAME shared normalization the submit path used —
|
|
315
|
+
// a malformed historical value (too long / control characters) is never
|
|
316
|
+
// guessed at or bound to another turn: it is discarded as unusable and the
|
|
317
|
+
// documented default applies, exactly like its absence. Never inferred
|
|
318
|
+
// further — no target turn means session-level policy.
|
|
319
|
+
const requestedRaw = isRecord(diagnostic.record.painIngress)
|
|
320
|
+
? diagnostic.record.painIngress.requestedTargetTurnId
|
|
321
|
+
: undefined;
|
|
322
|
+
const requestedNormalized = requestedRaw !== undefined ? normalizeRequestedTargetTurnId(requestedRaw) : undefined;
|
|
323
|
+
const requestedTargetTurnId = requestedNormalized !== undefined && requestedNormalized.ok ? requestedNormalized.value : undefined;
|
|
324
|
+
const targetTurnId = requestedTargetTurnId ?? identity.submissionTurnId;
|
|
325
|
+
const evidenceCount = countEvidence(diagnostic);
|
|
326
|
+
// r2b (devin finding 0004): the SAME waiting rule the submit path applies
|
|
327
|
+
// — an explicit Owner statement (`owner_expectation` anchor) or any
|
|
328
|
+
// submitted evidence is independently admissible and never waits.
|
|
329
|
+
const { anchor } = diagnostic.record;
|
|
330
|
+
const hasOwnerStatement = isRecord(anchor) && anchor.type === 'owner_expectation';
|
|
331
|
+
const targetTextMissing = targetEvidenceWaitRequired({
|
|
332
|
+
hasVerifiedSession: true,
|
|
333
|
+
targetTurnId,
|
|
334
|
+
submittedEvidenceCount: evidenceCount,
|
|
335
|
+
hasOwnerStatement,
|
|
336
|
+
}) && targetTurnId !== undefined
|
|
337
|
+
&& (targetTurnTextAvailable === undefined || !targetTurnTextAvailable(identity.sessionId, targetTurnId));
|
|
338
|
+
const disposition = {
|
|
339
|
+
schemaVersion: PAIN_RECOVERY_DISPOSITION_SCHEMA_VERSION,
|
|
340
|
+
state: targetTextMissing ? 'waiting_for_target_evidence' : 'ready_for_diagnosis',
|
|
341
|
+
reasonCode: targetTextMissing ? 'target_turn_text_pending' : 'receipt_recovered',
|
|
342
|
+
attemptCount: nextAttemptCount(existingRecovery),
|
|
343
|
+
lastCheckedAt: nowIso,
|
|
344
|
+
receiptRef: buildReceiptRef(receipt, identity, nowIso),
|
|
345
|
+
...(targetTextMissing ? {} : { resolvedAt: nowIso }),
|
|
346
|
+
};
|
|
347
|
+
const painIngress = { ...diagnostic.record.painIngress };
|
|
348
|
+
painIngress.verifiedHostSession = {
|
|
349
|
+
status: 'verified',
|
|
350
|
+
sessionId: identity.sessionId,
|
|
351
|
+
...(identity.submissionTurnId === undefined ? {} : { submissionTurnId: identity.submissionTurnId }),
|
|
352
|
+
...(targetTurnId === undefined ? {} : { targetTurnId }),
|
|
353
|
+
};
|
|
354
|
+
const newRecord = {
|
|
355
|
+
...diagnostic.record,
|
|
356
|
+
sessionIdHint: identity.sessionId,
|
|
357
|
+
painIngress,
|
|
358
|
+
recovery: disposition,
|
|
359
|
+
};
|
|
360
|
+
return {
|
|
361
|
+
action: 'cas',
|
|
362
|
+
expectedJson: diagnostic.text,
|
|
363
|
+
newJson: JSON.stringify(newRecord),
|
|
364
|
+
preconditions,
|
|
365
|
+
outcome: { status: 'recovered', painId: receipt.painId, taskId: receipt.taskId, disposition },
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
/** Bounded CAS retry: re-read + re-evaluate on a lost race; a second loss is
|
|
369
|
+
* a persistent concurrent writer and becomes an explicit degraded outcome
|
|
370
|
+
* (never a blind retry and never a second Pain/Task). */
|
|
371
|
+
const MAX_CAS_ATTEMPTS = 2;
|
|
372
|
+
async function openManager(options) {
|
|
373
|
+
if (options.managerFactory !== undefined)
|
|
374
|
+
return options.managerFactory(options.workspaceDir);
|
|
375
|
+
const manager = new RuntimeStateManager({ workspaceDir: options.workspaceDir, bootstrapIfMissing: false });
|
|
376
|
+
await manager.initialize();
|
|
377
|
+
return manager;
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Attempt receipt-driven identity recovery on the original task. Never
|
|
381
|
+
* throws: every failure is a structured outcome (rc-9).
|
|
382
|
+
*/
|
|
383
|
+
export async function recoverTaskIdentityFromReceipt(options) {
|
|
384
|
+
const now = options.now ?? (() => new Date());
|
|
385
|
+
// P1-2 gate first — a receipt whose original submission was refused for a
|
|
386
|
+
// safety reason is rejected BEFORE any store is opened or row read; the
|
|
387
|
+
// fallback never re-litigates a fail-closed main-path decision.
|
|
388
|
+
const associationGate = isReceiptSessionAssociationRecoverable(options.receipt.sessionAssociation);
|
|
389
|
+
if (!associationGate.ok) {
|
|
390
|
+
return {
|
|
391
|
+
status: 'rejected',
|
|
392
|
+
reasonCode: associationGate.reasonCode,
|
|
393
|
+
...(associationGate.detail === undefined ? {} : { detail: associationGate.detail }),
|
|
394
|
+
painId: options.receipt.painId,
|
|
395
|
+
taskId: options.receipt.taskId,
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
// P2: event identity fields get the same unified format/sentinel check the
|
|
399
|
+
// trusted `_meta` path applies — a sentinel or malformed id is a rejection,
|
|
400
|
+
// never a bind.
|
|
401
|
+
if (!isUsableHostId(options.identity.sessionId) || !isUsableHostId(options.identity.toolCallId)
|
|
402
|
+
|| (options.identity.submissionTurnId !== undefined && !isUsableHostId(options.identity.submissionTurnId))) {
|
|
403
|
+
return { status: 'rejected', reasonCode: 'event_identity_invalid', painId: options.receipt.painId, taskId: options.receipt.taskId };
|
|
404
|
+
}
|
|
405
|
+
let manager;
|
|
406
|
+
try {
|
|
407
|
+
manager = await openManager(options);
|
|
408
|
+
// submit_unconfirmed: the write outcome is unknown — identity recovery
|
|
409
|
+
// is only allowed after the exact-ID read-back confirms the task exists.
|
|
410
|
+
if (options.receipt.status === 'submit_unconfirmed') {
|
|
411
|
+
const confirmed = await manager.getTask(options.receipt.taskId);
|
|
412
|
+
if (confirmed === null || confirmed.inputRef !== options.receipt.painId) {
|
|
413
|
+
return { status: 'rejected', reasonCode: 'submit_unconfirmed_task_not_found', painId: options.receipt.painId, taskId: options.receipt.taskId };
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
for (let attempt = 1; attempt <= MAX_CAS_ATTEMPTS; attempt += 1) {
|
|
417
|
+
const task = await manager.getTask(options.receipt.taskId);
|
|
418
|
+
if (task === null) {
|
|
419
|
+
return { status: 'rejected', reasonCode: 'task_not_found', painId: options.receipt.painId, taskId: options.receipt.taskId };
|
|
420
|
+
}
|
|
421
|
+
const diagnostic = parseDiagnosticJson(task);
|
|
422
|
+
if (diagnostic === null) {
|
|
423
|
+
return { status: 'rejected', reasonCode: 'diagnostic_payload_invalid', painId: options.receipt.painId, taskId: options.receipt.taskId };
|
|
424
|
+
}
|
|
425
|
+
const evaluation = evaluateRecoveryPass({
|
|
426
|
+
task,
|
|
427
|
+
diagnostic,
|
|
428
|
+
receipt: options.receipt,
|
|
429
|
+
identity: options.identity,
|
|
430
|
+
authorized: options.authorization.minimalMetadataGranted,
|
|
431
|
+
targetTurnTextAvailable: options.targetTurnTextAvailable,
|
|
432
|
+
nowIso: now().toISOString(),
|
|
433
|
+
});
|
|
434
|
+
if (evaluation.action === 'report')
|
|
435
|
+
return evaluation.outcome;
|
|
436
|
+
// P1-4: diagnostic_json, task status AND lease columns are asserted in
|
|
437
|
+
// ONE conditional UPDATE — a worker acquiring the lease or finishing
|
|
438
|
+
// the task between read and write defeats this write atomically.
|
|
439
|
+
const updated = await manager.updateTaskIfDiagnosticJsonUnchanged(options.receipt.taskId, evaluation.expectedJson, { diagnosticJson: evaluation.newJson }, {
|
|
440
|
+
expectedStatus: evaluation.preconditions.expectedStatus,
|
|
441
|
+
expectedLeaseOwner: evaluation.preconditions.expectedLeaseOwner,
|
|
442
|
+
expectedLeaseExpiresAt: evaluation.preconditions.expectedLeaseExpiresAt,
|
|
443
|
+
expectedLeaseGeneration: evaluation.preconditions.expectedLeaseGeneration,
|
|
444
|
+
expectedAttemptCount: evaluation.preconditions.expectedAttemptCount,
|
|
445
|
+
});
|
|
446
|
+
if (updated !== null)
|
|
447
|
+
return evaluation.outcome;
|
|
448
|
+
// CAS lost a race: loop once with a fresh read. A second loss is a
|
|
449
|
+
// persistent concurrent writer — explicit degraded outcome, never a
|
|
450
|
+
// blind retry.
|
|
451
|
+
if (attempt === MAX_CAS_ATTEMPTS) {
|
|
452
|
+
return { status: 'rejected', reasonCode: 'cas_conflict', painId: options.receipt.painId, taskId: options.receipt.taskId };
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
// Unreachable: the loop returns on every path.
|
|
456
|
+
return { status: 'rejected', reasonCode: 'cas_conflict' };
|
|
457
|
+
}
|
|
458
|
+
catch (error) {
|
|
459
|
+
// Fixed reason code; the raw exception text (untrusted, possibly carrying
|
|
460
|
+
// paths) rides ONLY as a bounded diagnostic detail, never in the code.
|
|
461
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
462
|
+
return { status: 'rejected', reasonCode: 'recovery_store_error', detail: boundedDetail(message, 120), painId: options.receipt.painId, taskId: options.receipt.taskId };
|
|
463
|
+
}
|
|
464
|
+
finally {
|
|
465
|
+
if (manager !== undefined) {
|
|
466
|
+
try {
|
|
467
|
+
await manager.close();
|
|
468
|
+
}
|
|
469
|
+
catch {
|
|
470
|
+
// best-effort close; the outcome above is already authoritative
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
//# sourceMappingURL=pain-receipt-recovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pain-receipt-recovery.js","sourceRoot":"","sources":["../../src/runtime/pain-receipt-recovery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAChG,OAAO,EACL,yBAAyB,EACzB,kCAAkC,GACnC,MAAM,6B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E,UAAU,CAAC,aAAa,CAAC,oBAAoB;aACpE,CACF,CAAC;YACF,IAAI,OAAO,KAAK,IAAI;gBAAE,OAAO,UAAU,CAAC,OAAO,CAAC;YAChD,mEAAmE;YACnE,oEAAoE;YACpE,eAAe;YACf,IAAI,OAAO,KAAK,gBAAgB,EAAE,CAAC;gBACjC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YAC5H,CAAC;QACH,CAAC;QACD,+CAA+C;QAC/C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;IAC5D,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,0EAA0E;QAC1E,uEAAuE;QACvE,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,EAAE,aAAa,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;IACzK,CAAC;YAAS,CAAC;QACT,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YAC1B,IAAI,CAAC;gBACH,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;YACxB,CAAC;YAAC,MAAM,CAAC;gBACP,gEAAgE;YAClE,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -5,7 +5,9 @@ import type { RunnerResult, RunnerResultStatus } from './runner/runner-result.js
|
|
|
5
5
|
import type { PDErrorCategory } from './error-categories.js';
|
|
6
6
|
import type { CandidateAdmissionResult, AdmissionDecision, PainProvenance } from './admission-gate.js';
|
|
7
7
|
import type { DiagnosticianOutputV2 } from './diagnostician-output.js';
|
|
8
|
+
import { type SourceMaterialAuthorizationPort } from './source-material-authorization.js';
|
|
8
9
|
import type { PainIngressV1Payload, PainDeviationAnchor } from './pain-ingress-payload.js';
|
|
10
|
+
import type { PainRecoveryDisposition } from './pain-admission-disposition.js';
|
|
9
11
|
import type { PainAnchor, PainCorrectionEvidence } from './context-payload.js';
|
|
10
12
|
export type { PainProvenance };
|
|
11
13
|
/**
|
|
@@ -87,6 +89,15 @@ export interface PainDetectedData {
|
|
|
87
89
|
* re-entry validates the two against each other.
|
|
88
90
|
*/
|
|
89
91
|
painIngress?: PainIngressV1Payload;
|
|
92
|
+
/**
|
|
93
|
+
* PRI-1274 (B1 / P1-3): the task's admission disposition at creation time.
|
|
94
|
+
* Set when the submission bound a session and named a target turn whose
|
|
95
|
+
* text is not yet collectable — `buildDiagnosticJson` persists it under the
|
|
96
|
+
* SAME `recovery` JSON block the receipt fallback writes, so the candidate
|
|
97
|
+
* picker's SQL gate and the worker reconcile read ONE authority. Absent on
|
|
98
|
+
* every ordinarily-admissible submission (no waiting, no behavior change).
|
|
99
|
+
*/
|
|
100
|
+
admissionDisposition?: PainRecoveryDisposition;
|
|
90
101
|
}
|
|
91
102
|
export type PainSignalBridgeStatus = 'succeeded' | 'skipped' | 'failed' | 'retried' | 'degraded';
|
|
92
103
|
/**
|
|
@@ -282,7 +293,8 @@ export declare function persistPainDiagnosis(deps: {
|
|
|
282
293
|
*/
|
|
283
294
|
export declare function evaluateAndPersistAdmissionFromStore(stateManager: Pick<RuntimeStateManager, 'getTask' | 'getRunsByTask' | 'getRun' | 'getArtifact' | 'getCandidatesByTaskId' | 'appendAdmissionEvaluation'>, candidateIds: readonly string[], input: {
|
|
284
295
|
taskId: string;
|
|
285
|
-
persist?: boolean;
|
|
296
|
+
persist?: boolean; /** PRI-1283 R2: admission re-verification port; absent = fail-closed for governance-sourced material. */
|
|
297
|
+
sourceMaterialAuthorization?: SourceMaterialAuthorizationPort;
|
|
286
298
|
}): Promise<{
|
|
287
299
|
ok: true;
|
|
288
300
|
decisions: Map<string, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pain-signal-bridge.d.ts","sourceRoot":"","sources":["../../src/runtime/pain-signal-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,kCAAkC,CAAC;AAC7F,OAAO,KAAK,EAAE,sBAAsB,EAA8B,MAAM,+BAA+B,CAAC;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"pain-signal-bridge.d.ts","sourceRoot":"","sources":["../../src/runtime/pain-signal-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAmB,MAAM,kCAAkC,CAAC;AAC7F,OAAO,KAAK,EAAE,sBAAsB,EAA8B,MAAM,+BAA+B,CAAC;AACxG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,KAAK,EAAE,qBAA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