pulseed 0.6.0 → 0.6.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/README.md +18 -16
- package/dist/base/config/identity-loader.d.ts +12 -3
- package/dist/base/config/identity-loader.d.ts.map +1 -1
- package/dist/base/config/identity-loader.js +15 -7
- package/dist/base/config/identity-loader.js.map +1 -1
- package/dist/grounding/contracts.d.ts +13 -0
- package/dist/grounding/contracts.d.ts.map +1 -1
- package/dist/grounding/providers/knowledge-provider.d.ts.map +1 -1
- package/dist/grounding/providers/knowledge-provider.js +25 -3
- package/dist/grounding/providers/knowledge-provider.js.map +1 -1
- package/dist/grounding/providers/soil-provider.d.ts.map +1 -1
- package/dist/grounding/providers/soil-provider.js +28 -3
- package/dist/grounding/providers/soil-provider.js.map +1 -1
- package/dist/grounding/providers/static-policy-provider.d.ts +3 -1
- package/dist/grounding/providers/static-policy-provider.d.ts.map +1 -1
- package/dist/grounding/providers/static-policy-provider.js +4 -3
- package/dist/grounding/providers/static-policy-provider.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-event-state.js +92 -9
- package/dist/interface/chat/chat-event-state.js.map +1 -1
- package/dist/interface/chat/chat-events.d.ts +15 -1
- package/dist/interface/chat/chat-events.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +3 -0
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.js +54 -8
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
- package/dist/interface/chat/chat-runner-routes.d.ts +20 -0
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-routes.js +76 -0
- package/dist/interface/chat/chat-runner-routes.js.map +1 -1
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +26 -2
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +9 -3
- package/dist/interface/chat/cross-platform-session.js.map +1 -1
- package/dist/interface/chat/freeform-route-classifier.d.ts +21 -0
- package/dist/interface/chat/freeform-route-classifier.d.ts.map +1 -0
- package/dist/interface/chat/freeform-route-classifier.js +42 -0
- package/dist/interface/chat/freeform-route-classifier.js.map +1 -0
- package/dist/interface/chat/grounding.js +1 -1
- package/dist/interface/chat/grounding.js.map +1 -1
- package/dist/interface/chat/ingress-router.d.ts +9 -0
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +19 -0
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
- package/dist/interface/cli/cli-command-registry.js +9 -1
- package/dist/interface/cli/cli-command-registry.js.map +1 -1
- package/dist/interface/cli/cli-runner.d.ts.map +1 -1
- package/dist/interface/cli/cli-runner.js +4 -1
- package/dist/interface/cli/cli-runner.js.map +1 -1
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +17 -1
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/goal-read.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-read.js +4 -0
- package/dist/interface/cli/commands/goal-read.js.map +1 -1
- package/dist/interface/cli/commands/memory.d.ts +3 -0
- package/dist/interface/cli/commands/memory.d.ts.map +1 -0
- package/dist/interface/cli/commands/memory.js +78 -0
- package/dist/interface/cli/commands/memory.js.map +1 -0
- package/dist/interface/cli/commands/plugin.d.ts.map +1 -1
- package/dist/interface/cli/commands/plugin.js +134 -12
- package/dist/interface/cli/commands/plugin.js.map +1 -1
- package/dist/interface/cli/commands/profile.d.ts +3 -0
- package/dist/interface/cli/commands/profile.d.ts.map +1 -0
- package/dist/interface/cli/commands/profile.js +459 -0
- package/dist/interface/cli/commands/profile.js.map +1 -0
- package/dist/interface/cli/commands/runtime.d.ts.map +1 -1
- package/dist/interface/cli/commands/runtime.js +101 -2
- package/dist/interface/cli/commands/runtime.js.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.js +30 -0
- package/dist/interface/cli/commands/setup-wizard.js.map +1 -1
- package/dist/interface/cli/utils.d.ts.map +1 -1
- package/dist/interface/cli/utils.js +4 -2
- package/dist/interface/cli/utils.js.map +1 -1
- package/dist/interface/tui/intent-recognizer.js +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js +3 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +109 -0
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js +261 -0
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +1 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/execution-policy.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/execution-policy.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/execution-policy.js +9 -3
- package/dist/orchestrator/execution/agent-loop/execution-policy.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/self-protection.d.ts +9 -0
- package/dist/orchestrator/execution/agent-loop/self-protection.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/self-protection.js +74 -0
- package/dist/orchestrator/execution/agent-loop/self-protection.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js +10 -1
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts +85 -0
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.js +7 -0
- package/dist/orchestrator/loop/core-loop/phase-specs.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.js +24 -2
- package/dist/orchestrator/loop/core-loop/task-cycle.js.map +1 -1
- package/dist/platform/corrections/index.d.ts +2 -0
- package/dist/platform/corrections/index.d.ts.map +1 -0
- package/dist/platform/corrections/index.js +2 -0
- package/dist/platform/corrections/index.js.map +1 -0
- package/dist/platform/corrections/memory-correction-ledger.d.ts +656 -0
- package/dist/platform/corrections/memory-correction-ledger.d.ts.map +1 -0
- package/dist/platform/corrections/memory-correction-ledger.js +120 -0
- package/dist/platform/corrections/memory-correction-ledger.js.map +1 -0
- package/dist/platform/corrections/memory-governance.d.ts +118 -0
- package/dist/platform/corrections/memory-governance.d.ts.map +1 -0
- package/dist/platform/corrections/memory-governance.js +32 -0
- package/dist/platform/corrections/memory-governance.js.map +1 -0
- package/dist/platform/corrections/memory-quarantine.d.ts +57 -0
- package/dist/platform/corrections/memory-quarantine.d.ts.map +1 -0
- package/dist/platform/corrections/memory-quarantine.js +42 -0
- package/dist/platform/corrections/memory-quarantine.js.map +1 -0
- package/dist/platform/corrections/user-memory-operations.d.ts +31 -0
- package/dist/platform/corrections/user-memory-operations.d.ts.map +1 -0
- package/dist/platform/corrections/user-memory-operations.js +139 -0
- package/dist/platform/corrections/user-memory-operations.js.map +1 -0
- package/dist/platform/dream/dream-consolidator.d.ts +5 -0
- package/dist/platform/dream/dream-consolidator.d.ts.map +1 -1
- package/dist/platform/dream/dream-consolidator.js +235 -13
- package/dist/platform/dream/dream-consolidator.js.map +1 -1
- package/dist/platform/dream/dream-soil-mutation.d.ts.map +1 -1
- package/dist/platform/dream/dream-soil-mutation.js +10 -0
- package/dist/platform/dream/dream-soil-mutation.js.map +1 -1
- package/dist/platform/dream/dream-types.d.ts +412 -0
- package/dist/platform/dream/dream-types.d.ts.map +1 -1
- package/dist/platform/dream/dream-types.js +3 -0
- package/dist/platform/dream/dream-types.js.map +1 -1
- package/dist/platform/dream/playbook-memory.d.ts +14 -14
- package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts +48 -0
- package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js +154 -4
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-lint.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-lint.js +98 -4
- package/dist/platform/knowledge/knowledge-manager-lint.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.d.ts +41 -2
- package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.js +45 -5
- package/dist/platform/knowledge/knowledge-manager.js.map +1 -1
- package/dist/platform/knowledge/types/agent-memory.d.ts +1170 -42
- package/dist/platform/knowledge/types/agent-memory.d.ts.map +1 -1
- package/dist/platform/knowledge/types/agent-memory.js +13 -3
- package/dist/platform/knowledge/types/agent-memory.js.map +1 -1
- package/dist/platform/profile/proactive-feedback-proposals.d.ts +11 -0
- package/dist/platform/profile/proactive-feedback-proposals.d.ts.map +1 -0
- package/dist/platform/profile/proactive-feedback-proposals.js +106 -0
- package/dist/platform/profile/proactive-feedback-proposals.js.map +1 -0
- package/dist/platform/profile/profile-change-proposal.d.ts +464 -0
- package/dist/platform/profile/profile-change-proposal.d.ts.map +1 -0
- package/dist/platform/profile/profile-change-proposal.js +352 -0
- package/dist/platform/profile/profile-change-proposal.js.map +1 -0
- package/dist/platform/profile/relationship-profile.d.ts +351 -0
- package/dist/platform/profile/relationship-profile.d.ts.map +1 -0
- package/dist/platform/profile/relationship-profile.js +351 -0
- package/dist/platform/profile/relationship-profile.js.map +1 -0
- package/dist/platform/profile/retrieval-context.d.ts +12 -0
- package/dist/platform/profile/retrieval-context.d.ts.map +1 -0
- package/dist/platform/profile/retrieval-context.js +21 -0
- package/dist/platform/profile/retrieval-context.js.map +1 -0
- package/dist/platform/profile/user-md-profile-import.d.ts +73 -0
- package/dist/platform/profile/user-md-profile-import.d.ts.map +1 -0
- package/dist/platform/profile/user-md-profile-import.js +179 -0
- package/dist/platform/profile/user-md-profile-import.js.map +1 -0
- package/dist/platform/soil/content-projections.d.ts.map +1 -1
- package/dist/platform/soil/content-projections.js +17 -7
- package/dist/platform/soil/content-projections.js.map +1 -1
- package/dist/platform/soil/context-compiler.d.ts +16 -1
- package/dist/platform/soil/context-compiler.d.ts.map +1 -1
- package/dist/platform/soil/context-compiler.js +142 -4
- package/dist/platform/soil/context-compiler.js.map +1 -1
- package/dist/platform/soil/contracts.d.ts +720 -60
- package/dist/platform/soil/contracts.d.ts.map +1 -1
- package/dist/platform/soil/contracts.js +22 -0
- package/dist/platform/soil/contracts.js.map +1 -1
- package/dist/platform/soil/ddl.d.ts.map +1 -1
- package/dist/platform/soil/ddl.js +19 -0
- package/dist/platform/soil/ddl.js.map +1 -1
- package/dist/platform/soil/display/materialize.d.ts.map +1 -1
- package/dist/platform/soil/display/materialize.js.map +1 -1
- package/dist/platform/soil/importer.d.ts +6 -6
- package/dist/platform/soil/sqlite-repository-helpers.d.ts +4 -0
- package/dist/platform/soil/sqlite-repository-helpers.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository-helpers.js.map +1 -1
- package/dist/platform/soil/sqlite-repository-search.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository-search.js +48 -3
- package/dist/platform/soil/sqlite-repository-search.js.map +1 -1
- package/dist/platform/soil/sqlite-repository-storage.d.ts +3 -1
- package/dist/platform/soil/sqlite-repository-storage.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository-storage.js +124 -3
- package/dist/platform/soil/sqlite-repository-storage.js.map +1 -1
- package/dist/platform/soil/sqlite-repository.d.ts +10 -1
- package/dist/platform/soil/sqlite-repository.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository.js +46 -4
- package/dist/platform/soil/sqlite-repository.js.map +1 -1
- package/dist/platform/soil/types.d.ts +8 -8
- package/dist/platform/traits/curiosity-engine.d.ts +3 -1
- package/dist/platform/traits/curiosity-engine.d.ts.map +1 -1
- package/dist/platform/traits/curiosity-engine.js +3 -1
- package/dist/platform/traits/curiosity-engine.js.map +1 -1
- package/dist/platform/traits/curiosity-proposals.d.ts +6 -2
- package/dist/platform/traits/curiosity-proposals.d.ts.map +1 -1
- package/dist/platform/traits/curiosity-proposals.js +9 -3
- package/dist/platform/traits/curiosity-proposals.js.map +1 -1
- package/dist/reflection/evening-catchup.d.ts.map +1 -1
- package/dist/reflection/evening-catchup.js +4 -1
- package/dist/reflection/evening-catchup.js.map +1 -1
- package/dist/reflection/morning-planning.d.ts.map +1 -1
- package/dist/reflection/morning-planning.js +4 -1
- package/dist/reflection/morning-planning.js.map +1 -1
- package/dist/reflection/weekly-review.d.ts.map +1 -1
- package/dist/reflection/weekly-review.js +4 -1
- package/dist/reflection/weekly-review.js.map +1 -1
- package/dist/runtime/daemon/maintenance.d.ts.map +1 -1
- package/dist/runtime/daemon/maintenance.js +21 -2
- package/dist/runtime/daemon/maintenance.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-curiosity.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident-curiosity.js +5 -1
- package/dist/runtime/daemon/runner-resident-curiosity.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-shared.d.ts +1 -1
- package/dist/runtime/daemon/runner-resident-shared.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident-shared.js +16 -0
- package/dist/runtime/daemon/runner-resident-shared.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +2 -0
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/dream-sidecar-review.d.ts +2 -1
- package/dist/runtime/dream-sidecar-review.d.ts.map +1 -1
- package/dist/runtime/dream-sidecar-review.js +49 -55
- package/dist/runtime/dream-sidecar-review.js.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.js +4 -3
- package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
- package/dist/runtime/plugin-loader.d.ts +1 -0
- package/dist/runtime/plugin-loader.d.ts.map +1 -1
- package/dist/runtime/plugin-loader.js +7 -2
- package/dist/runtime/plugin-loader.js.map +1 -1
- package/dist/runtime/store/dream-checkpoints.d.ts +3 -0
- package/dist/runtime/store/dream-checkpoints.d.ts.map +1 -1
- package/dist/runtime/store/dream-checkpoints.js +2 -0
- package/dist/runtime/store/dream-checkpoints.js.map +1 -1
- package/dist/runtime/store/evidence-ledger.d.ts +1315 -38
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
- package/dist/runtime/store/evidence-ledger.js +299 -34
- package/dist/runtime/store/evidence-ledger.js.map +1 -1
- package/dist/runtime/store/index.d.ts +2 -0
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +1 -0
- package/dist/runtime/store/index.js.map +1 -1
- package/dist/runtime/store/proactive-intervention-store.d.ts +360 -0
- package/dist/runtime/store/proactive-intervention-store.d.ts.map +1 -0
- package/dist/runtime/store/proactive-intervention-store.js +252 -0
- package/dist/runtime/store/proactive-intervention-store.js.map +1 -0
- package/dist/runtime/store/runtime-paths.d.ts +2 -0
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +4 -0
- package/dist/runtime/store/runtime-paths.js.map +1 -1
- package/dist/runtime/types/daemon.d.ts +8 -0
- package/dist/runtime/types/daemon.d.ts.map +1 -1
- package/dist/runtime/types/daemon.js +1 -0
- package/dist/runtime/types/daemon.js.map +1 -1
- package/dist/runtime/types/plugin.d.ts.map +1 -1
- package/dist/runtime/types/plugin.js +1 -1
- package/dist/runtime/types/plugin.js.map +1 -1
- package/dist/runtime/types/schedule.d.ts +10 -10
- package/dist/tools/builtin/exports.d.ts +1 -0
- package/dist/tools/builtin/exports.d.ts.map +1 -1
- package/dist/tools/builtin/exports.js +1 -0
- package/dist/tools/builtin/exports.js.map +1 -1
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +2 -1
- package/dist/tools/builtin/factory.js.map +1 -1
- package/dist/tools/execution/MemoryConsolidateTool/MemoryConsolidateTool.d.ts +4 -4
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.d.ts +76 -0
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.d.ts.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.js +79 -0
- package/dist/tools/execution/MemoryCorrectionTool/MemoryCorrectionTool.js.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/constants.d.ts +6 -0
- package/dist/tools/execution/MemoryCorrectionTool/constants.d.ts.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/constants.js +6 -0
- package/dist/tools/execution/MemoryCorrectionTool/constants.js.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/prompt.d.ts +2 -0
- package/dist/tools/execution/MemoryCorrectionTool/prompt.d.ts.map +1 -0
- package/dist/tools/execution/MemoryCorrectionTool/prompt.js +2 -0
- package/dist/tools/execution/MemoryCorrectionTool/prompt.js.map +1 -0
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +306 -4
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts.map +1 -1
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.js +8 -0
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.js.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +37 -4
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
- package/dist/tools/fs/FileValidationTool/protected-path-policy.d.ts.map +1 -1
- package/dist/tools/fs/FileValidationTool/protected-path-policy.js +12 -0
- package/dist/tools/fs/FileValidationTool/protected-path-policy.js.map +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +16 -4
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts.map +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js +12 -0
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.js.map +1 -1
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts +7 -0
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts.map +1 -1
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.js +20 -0
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.js.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.js +25 -1
- package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
- package/package.json +4 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type RuntimeStorePaths } from "./runtime-paths.js";
|
|
3
|
+
import { type MemoryCorrectionEntry, type MemoryCorrectionEntryInput, type MemoryCorrectionTargetState } from "../../platform/corrections/memory-correction-ledger.js";
|
|
3
4
|
import { type MetricTrendContext } from "./metric-history.js";
|
|
4
5
|
import { type RuntimeEvaluatorSummary } from "./evaluator-results.js";
|
|
5
6
|
import { type RuntimeResearchMemoContext } from "./research-evidence.js";
|
|
@@ -7,7 +8,7 @@ import { type RuntimeDreamCheckpointContext } from "./dream-checkpoints.js";
|
|
|
7
8
|
import { type RuntimeArtifactRetentionSummary } from "./artifact-retention.js";
|
|
8
9
|
export declare const RuntimeEvidenceOutcomeSchema: z.ZodEnum<["improved", "regressed", "inconclusive", "failed", "blocked", "continued"]>;
|
|
9
10
|
export type RuntimeEvidenceOutcome = z.infer<typeof RuntimeEvidenceOutcomeSchema>;
|
|
10
|
-
export declare const RuntimeEvidenceEntryKindSchema: z.ZodEnum<["observation", "strategy", "task_generation", "execution", "verification", "decision", "metric", "evaluator", "research", "dream_checkpoint", "artifact", "failure", "other"]>;
|
|
11
|
+
export declare const RuntimeEvidenceEntryKindSchema: z.ZodEnum<["observation", "strategy", "task_generation", "execution", "verification", "decision", "metric", "evaluator", "research", "dream_checkpoint", "artifact", "failure", "correction", "other"]>;
|
|
11
12
|
export type RuntimeEvidenceEntryKind = z.infer<typeof RuntimeEvidenceEntryKindSchema>;
|
|
12
13
|
export declare const RuntimeEvidenceArtifactRefSchema: z.ZodObject<{
|
|
13
14
|
label: z.ZodString;
|
|
@@ -1448,6 +1449,23 @@ export declare const RuntimeEvidenceResearchMemoSchema: z.ZodObject<{
|
|
|
1448
1449
|
export type RuntimeEvidenceResearchMemo = z.infer<typeof RuntimeEvidenceResearchMemoSchema>;
|
|
1449
1450
|
export declare const RuntimeEvidenceDreamCheckpointTriggerSchema: z.ZodEnum<["iteration", "plateau", "breakthrough", "pre_finalization"]>;
|
|
1450
1451
|
export type RuntimeEvidenceDreamCheckpointTrigger = z.infer<typeof RuntimeEvidenceDreamCheckpointTriggerSchema>;
|
|
1452
|
+
export declare const RuntimeEvidenceMemoryUsageStatsSchema: z.ZodObject<{
|
|
1453
|
+
last_used_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1454
|
+
use_count: z.ZodDefault<z.ZodNumber>;
|
|
1455
|
+
validated_count: z.ZodDefault<z.ZodNumber>;
|
|
1456
|
+
negative_outcome_count: z.ZodDefault<z.ZodNumber>;
|
|
1457
|
+
}, "strict", z.ZodTypeAny, {
|
|
1458
|
+
last_used_at: string | null;
|
|
1459
|
+
use_count: number;
|
|
1460
|
+
validated_count: number;
|
|
1461
|
+
negative_outcome_count: number;
|
|
1462
|
+
}, {
|
|
1463
|
+
last_used_at?: string | null | undefined;
|
|
1464
|
+
use_count?: number | undefined;
|
|
1465
|
+
validated_count?: number | undefined;
|
|
1466
|
+
negative_outcome_count?: number | undefined;
|
|
1467
|
+
}>;
|
|
1468
|
+
export type RuntimeEvidenceMemoryUsageStats = z.infer<typeof RuntimeEvidenceMemoryUsageStatsSchema>;
|
|
1451
1469
|
export declare const RuntimeEvidenceDreamCheckpointMemoryRefSchema: z.ZodObject<{
|
|
1452
1470
|
source_type: z.ZodEnum<["soil", "playbook", "runtime_evidence", "other"]>;
|
|
1453
1471
|
ref: z.ZodOptional<z.ZodString>;
|
|
@@ -1455,6 +1473,54 @@ export declare const RuntimeEvidenceDreamCheckpointMemoryRefSchema: z.ZodObject<
|
|
|
1455
1473
|
authority: z.ZodDefault<z.ZodLiteral<"advisory_only">>;
|
|
1456
1474
|
relevance_score: z.ZodOptional<z.ZodNumber>;
|
|
1457
1475
|
source_reliability: z.ZodOptional<z.ZodNumber>;
|
|
1476
|
+
verification_status: z.ZodOptional<z.ZodEnum<["unknown", "unverified", "verified", "contradicted", "suspicious"]>>;
|
|
1477
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
1478
|
+
source_type: z.ZodDefault<z.ZodEnum<["user", "runtime", "tool", "web", "external", "imported", "unknown"]>>;
|
|
1479
|
+
source_ref: z.ZodOptional<z.ZodString>;
|
|
1480
|
+
raw_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1481
|
+
reliability: z.ZodOptional<z.ZodNumber>;
|
|
1482
|
+
verification_status: z.ZodDefault<z.ZodEnum<["unknown", "unverified", "verified", "contradicted", "suspicious"]>>;
|
|
1483
|
+
risk_signals: z.ZodDefault<z.ZodArray<z.ZodEnum<["hallucinated", "low_provenance", "contradiction", "prompt_injection_like", "unverified_external"]>, "many">>;
|
|
1484
|
+
}, "strict", z.ZodTypeAny, {
|
|
1485
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
1486
|
+
raw_refs: string[];
|
|
1487
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
1488
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
1489
|
+
reliability?: number | undefined;
|
|
1490
|
+
source_ref?: string | undefined;
|
|
1491
|
+
}, {
|
|
1492
|
+
reliability?: number | undefined;
|
|
1493
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
1494
|
+
source_ref?: string | undefined;
|
|
1495
|
+
raw_refs?: string[] | undefined;
|
|
1496
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
1497
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
1498
|
+
}>>;
|
|
1499
|
+
quarantine_state: z.ZodOptional<z.ZodObject<{
|
|
1500
|
+
status: z.ZodLiteral<"quarantined">;
|
|
1501
|
+
active: z.ZodDefault<z.ZodLiteral<false>>;
|
|
1502
|
+
reason: z.ZodString;
|
|
1503
|
+
source: z.ZodDefault<z.ZodEnum<["memory_lint", "user", "runtime_verification", "system"]>>;
|
|
1504
|
+
confidence: z.ZodNumber;
|
|
1505
|
+
inspection_refs: z.ZodArray<z.ZodString, "many">;
|
|
1506
|
+
created_at: z.ZodString;
|
|
1507
|
+
}, "strict", z.ZodTypeAny, {
|
|
1508
|
+
status: "quarantined";
|
|
1509
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
1510
|
+
active: false;
|
|
1511
|
+
confidence: number;
|
|
1512
|
+
created_at: string;
|
|
1513
|
+
reason: string;
|
|
1514
|
+
inspection_refs: string[];
|
|
1515
|
+
}, {
|
|
1516
|
+
status: "quarantined";
|
|
1517
|
+
confidence: number;
|
|
1518
|
+
created_at: string;
|
|
1519
|
+
reason: string;
|
|
1520
|
+
inspection_refs: string[];
|
|
1521
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
1522
|
+
active?: false | undefined;
|
|
1523
|
+
}>>;
|
|
1458
1524
|
recency_score: z.ZodOptional<z.ZodNumber>;
|
|
1459
1525
|
prior_success_contribution: z.ZodOptional<z.ZodNumber>;
|
|
1460
1526
|
retrieval: z.ZodOptional<z.ZodObject<{
|
|
@@ -1470,6 +1536,22 @@ export declare const RuntimeEvidenceDreamCheckpointMemoryRefSchema: z.ZodObject<
|
|
|
1470
1536
|
score?: number | undefined;
|
|
1471
1537
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
1472
1538
|
}>>;
|
|
1539
|
+
usage_stats: z.ZodOptional<z.ZodObject<{
|
|
1540
|
+
last_used_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1541
|
+
use_count: z.ZodDefault<z.ZodNumber>;
|
|
1542
|
+
validated_count: z.ZodDefault<z.ZodNumber>;
|
|
1543
|
+
negative_outcome_count: z.ZodDefault<z.ZodNumber>;
|
|
1544
|
+
}, "strict", z.ZodTypeAny, {
|
|
1545
|
+
last_used_at: string | null;
|
|
1546
|
+
use_count: number;
|
|
1547
|
+
validated_count: number;
|
|
1548
|
+
negative_outcome_count: number;
|
|
1549
|
+
}, {
|
|
1550
|
+
last_used_at?: string | null | undefined;
|
|
1551
|
+
use_count?: number | undefined;
|
|
1552
|
+
validated_count?: number | undefined;
|
|
1553
|
+
negative_outcome_count?: number | undefined;
|
|
1554
|
+
}>>;
|
|
1473
1555
|
ranking_trace: z.ZodOptional<z.ZodObject<{
|
|
1474
1556
|
score: z.ZodNumber;
|
|
1475
1557
|
decision: z.ZodEnum<["admitted", "rejected"]>;
|
|
@@ -1488,6 +1570,14 @@ export declare const RuntimeEvidenceDreamCheckpointMemoryRefSchema: z.ZodObject<
|
|
|
1488
1570
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
1489
1571
|
authority: "advisory_only";
|
|
1490
1572
|
recency_score?: number | undefined;
|
|
1573
|
+
provenance?: {
|
|
1574
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
1575
|
+
raw_refs: string[];
|
|
1576
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
1577
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
1578
|
+
reliability?: number | undefined;
|
|
1579
|
+
source_ref?: string | undefined;
|
|
1580
|
+
} | undefined;
|
|
1491
1581
|
ref?: string | undefined;
|
|
1492
1582
|
relevance_score?: number | undefined;
|
|
1493
1583
|
source_reliability?: number | undefined;
|
|
@@ -1497,15 +1587,39 @@ export declare const RuntimeEvidenceDreamCheckpointMemoryRefSchema: z.ZodObject<
|
|
|
1497
1587
|
confidence?: number | undefined;
|
|
1498
1588
|
score?: number | undefined;
|
|
1499
1589
|
} | undefined;
|
|
1590
|
+
usage_stats?: {
|
|
1591
|
+
last_used_at: string | null;
|
|
1592
|
+
use_count: number;
|
|
1593
|
+
validated_count: number;
|
|
1594
|
+
negative_outcome_count: number;
|
|
1595
|
+
} | undefined;
|
|
1500
1596
|
ranking_trace?: {
|
|
1501
1597
|
reason: string;
|
|
1502
1598
|
score: number;
|
|
1503
1599
|
decision: "rejected" | "admitted";
|
|
1504
1600
|
} | undefined;
|
|
1601
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
1602
|
+
quarantine_state?: {
|
|
1603
|
+
status: "quarantined";
|
|
1604
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
1605
|
+
active: false;
|
|
1606
|
+
confidence: number;
|
|
1607
|
+
created_at: string;
|
|
1608
|
+
reason: string;
|
|
1609
|
+
inspection_refs: string[];
|
|
1610
|
+
} | undefined;
|
|
1505
1611
|
}, {
|
|
1506
1612
|
summary: string;
|
|
1507
1613
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
1508
1614
|
recency_score?: number | undefined;
|
|
1615
|
+
provenance?: {
|
|
1616
|
+
reliability?: number | undefined;
|
|
1617
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
1618
|
+
source_ref?: string | undefined;
|
|
1619
|
+
raw_refs?: string[] | undefined;
|
|
1620
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
1621
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
1622
|
+
} | undefined;
|
|
1509
1623
|
ref?: string | undefined;
|
|
1510
1624
|
authority?: "advisory_only" | undefined;
|
|
1511
1625
|
relevance_score?: number | undefined;
|
|
@@ -1516,14 +1630,31 @@ export declare const RuntimeEvidenceDreamCheckpointMemoryRefSchema: z.ZodObject<
|
|
|
1516
1630
|
score?: number | undefined;
|
|
1517
1631
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
1518
1632
|
} | undefined;
|
|
1633
|
+
usage_stats?: {
|
|
1634
|
+
last_used_at?: string | null | undefined;
|
|
1635
|
+
use_count?: number | undefined;
|
|
1636
|
+
validated_count?: number | undefined;
|
|
1637
|
+
negative_outcome_count?: number | undefined;
|
|
1638
|
+
} | undefined;
|
|
1519
1639
|
ranking_trace?: {
|
|
1520
1640
|
reason: string;
|
|
1521
1641
|
score: number;
|
|
1522
1642
|
decision: "rejected" | "admitted";
|
|
1523
1643
|
} | undefined;
|
|
1644
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
1645
|
+
quarantine_state?: {
|
|
1646
|
+
status: "quarantined";
|
|
1647
|
+
confidence: number;
|
|
1648
|
+
created_at: string;
|
|
1649
|
+
reason: string;
|
|
1650
|
+
inspection_refs: string[];
|
|
1651
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
1652
|
+
active?: false | undefined;
|
|
1653
|
+
} | undefined;
|
|
1524
1654
|
}>;
|
|
1525
1655
|
export type RuntimeEvidenceDreamCheckpointMemoryRef = z.infer<typeof RuntimeEvidenceDreamCheckpointMemoryRefSchema>;
|
|
1526
1656
|
export declare const RuntimeEvidenceDreamCheckpointStrategyCandidateSchema: z.ZodObject<{
|
|
1657
|
+
candidate_ref: z.ZodOptional<z.ZodString>;
|
|
1527
1658
|
title: z.ZodString;
|
|
1528
1659
|
rationale: z.ZodString;
|
|
1529
1660
|
target_dimensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1553,6 +1684,7 @@ export declare const RuntimeEvidenceDreamCheckpointStrategyCandidateSchema: z.Zo
|
|
|
1553
1684
|
count: number;
|
|
1554
1685
|
fingerprint: string;
|
|
1555
1686
|
} | undefined;
|
|
1687
|
+
candidate_ref?: string | undefined;
|
|
1556
1688
|
}, {
|
|
1557
1689
|
title: string;
|
|
1558
1690
|
rationale: string;
|
|
@@ -1564,6 +1696,7 @@ export declare const RuntimeEvidenceDreamCheckpointStrategyCandidateSchema: z.Zo
|
|
|
1564
1696
|
count: number;
|
|
1565
1697
|
fingerprint: string;
|
|
1566
1698
|
} | undefined;
|
|
1699
|
+
candidate_ref?: string | undefined;
|
|
1567
1700
|
}>;
|
|
1568
1701
|
export type RuntimeEvidenceDreamCheckpointStrategyCandidate = z.infer<typeof RuntimeEvidenceDreamCheckpointStrategyCandidateSchema>;
|
|
1569
1702
|
export declare const RuntimeEvidenceDreamCheckpointActiveHypothesisSchema: z.ZodObject<{
|
|
@@ -1589,6 +1722,7 @@ export type RuntimeEvidenceDreamCheckpointActiveHypothesis = z.infer<typeof Runt
|
|
|
1589
1722
|
export declare const RuntimeEvidenceDreamCheckpointRejectedApproachSchema: z.ZodObject<{
|
|
1590
1723
|
approach: z.ZodString;
|
|
1591
1724
|
rejection_reason: z.ZodString;
|
|
1725
|
+
candidate_ref: z.ZodOptional<z.ZodString>;
|
|
1592
1726
|
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
1593
1727
|
revisit_condition: z.ZodOptional<z.ZodString>;
|
|
1594
1728
|
confidence: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1598,12 +1732,14 @@ export declare const RuntimeEvidenceDreamCheckpointRejectedApproachSchema: z.Zod
|
|
|
1598
1732
|
rejection_reason: string;
|
|
1599
1733
|
evidence_ref?: string | undefined;
|
|
1600
1734
|
revisit_condition?: string | undefined;
|
|
1735
|
+
candidate_ref?: string | undefined;
|
|
1601
1736
|
}, {
|
|
1602
1737
|
approach: string;
|
|
1603
1738
|
rejection_reason: string;
|
|
1604
1739
|
confidence?: number | undefined;
|
|
1605
1740
|
evidence_ref?: string | undefined;
|
|
1606
1741
|
revisit_condition?: string | undefined;
|
|
1742
|
+
candidate_ref?: string | undefined;
|
|
1607
1743
|
}>;
|
|
1608
1744
|
export type RuntimeEvidenceDreamCheckpointRejectedApproach = z.infer<typeof RuntimeEvidenceDreamCheckpointRejectedApproachSchema>;
|
|
1609
1745
|
export declare const RuntimeEvidenceDreamRunControlRecommendationSchema: z.ZodObject<{
|
|
@@ -1698,6 +1834,54 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1698
1834
|
authority: z.ZodDefault<z.ZodLiteral<"advisory_only">>;
|
|
1699
1835
|
relevance_score: z.ZodOptional<z.ZodNumber>;
|
|
1700
1836
|
source_reliability: z.ZodOptional<z.ZodNumber>;
|
|
1837
|
+
verification_status: z.ZodOptional<z.ZodEnum<["unknown", "unverified", "verified", "contradicted", "suspicious"]>>;
|
|
1838
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
1839
|
+
source_type: z.ZodDefault<z.ZodEnum<["user", "runtime", "tool", "web", "external", "imported", "unknown"]>>;
|
|
1840
|
+
source_ref: z.ZodOptional<z.ZodString>;
|
|
1841
|
+
raw_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1842
|
+
reliability: z.ZodOptional<z.ZodNumber>;
|
|
1843
|
+
verification_status: z.ZodDefault<z.ZodEnum<["unknown", "unverified", "verified", "contradicted", "suspicious"]>>;
|
|
1844
|
+
risk_signals: z.ZodDefault<z.ZodArray<z.ZodEnum<["hallucinated", "low_provenance", "contradiction", "prompt_injection_like", "unverified_external"]>, "many">>;
|
|
1845
|
+
}, "strict", z.ZodTypeAny, {
|
|
1846
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
1847
|
+
raw_refs: string[];
|
|
1848
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
1849
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
1850
|
+
reliability?: number | undefined;
|
|
1851
|
+
source_ref?: string | undefined;
|
|
1852
|
+
}, {
|
|
1853
|
+
reliability?: number | undefined;
|
|
1854
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
1855
|
+
source_ref?: string | undefined;
|
|
1856
|
+
raw_refs?: string[] | undefined;
|
|
1857
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
1858
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
1859
|
+
}>>;
|
|
1860
|
+
quarantine_state: z.ZodOptional<z.ZodObject<{
|
|
1861
|
+
status: z.ZodLiteral<"quarantined">;
|
|
1862
|
+
active: z.ZodDefault<z.ZodLiteral<false>>;
|
|
1863
|
+
reason: z.ZodString;
|
|
1864
|
+
source: z.ZodDefault<z.ZodEnum<["memory_lint", "user", "runtime_verification", "system"]>>;
|
|
1865
|
+
confidence: z.ZodNumber;
|
|
1866
|
+
inspection_refs: z.ZodArray<z.ZodString, "many">;
|
|
1867
|
+
created_at: z.ZodString;
|
|
1868
|
+
}, "strict", z.ZodTypeAny, {
|
|
1869
|
+
status: "quarantined";
|
|
1870
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
1871
|
+
active: false;
|
|
1872
|
+
confidence: number;
|
|
1873
|
+
created_at: string;
|
|
1874
|
+
reason: string;
|
|
1875
|
+
inspection_refs: string[];
|
|
1876
|
+
}, {
|
|
1877
|
+
status: "quarantined";
|
|
1878
|
+
confidence: number;
|
|
1879
|
+
created_at: string;
|
|
1880
|
+
reason: string;
|
|
1881
|
+
inspection_refs: string[];
|
|
1882
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
1883
|
+
active?: false | undefined;
|
|
1884
|
+
}>>;
|
|
1701
1885
|
recency_score: z.ZodOptional<z.ZodNumber>;
|
|
1702
1886
|
prior_success_contribution: z.ZodOptional<z.ZodNumber>;
|
|
1703
1887
|
retrieval: z.ZodOptional<z.ZodObject<{
|
|
@@ -1713,6 +1897,22 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1713
1897
|
score?: number | undefined;
|
|
1714
1898
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
1715
1899
|
}>>;
|
|
1900
|
+
usage_stats: z.ZodOptional<z.ZodObject<{
|
|
1901
|
+
last_used_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1902
|
+
use_count: z.ZodDefault<z.ZodNumber>;
|
|
1903
|
+
validated_count: z.ZodDefault<z.ZodNumber>;
|
|
1904
|
+
negative_outcome_count: z.ZodDefault<z.ZodNumber>;
|
|
1905
|
+
}, "strict", z.ZodTypeAny, {
|
|
1906
|
+
last_used_at: string | null;
|
|
1907
|
+
use_count: number;
|
|
1908
|
+
validated_count: number;
|
|
1909
|
+
negative_outcome_count: number;
|
|
1910
|
+
}, {
|
|
1911
|
+
last_used_at?: string | null | undefined;
|
|
1912
|
+
use_count?: number | undefined;
|
|
1913
|
+
validated_count?: number | undefined;
|
|
1914
|
+
negative_outcome_count?: number | undefined;
|
|
1915
|
+
}>>;
|
|
1716
1916
|
ranking_trace: z.ZodOptional<z.ZodObject<{
|
|
1717
1917
|
score: z.ZodNumber;
|
|
1718
1918
|
decision: z.ZodEnum<["admitted", "rejected"]>;
|
|
@@ -1731,6 +1931,14 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1731
1931
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
1732
1932
|
authority: "advisory_only";
|
|
1733
1933
|
recency_score?: number | undefined;
|
|
1934
|
+
provenance?: {
|
|
1935
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
1936
|
+
raw_refs: string[];
|
|
1937
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
1938
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
1939
|
+
reliability?: number | undefined;
|
|
1940
|
+
source_ref?: string | undefined;
|
|
1941
|
+
} | undefined;
|
|
1734
1942
|
ref?: string | undefined;
|
|
1735
1943
|
relevance_score?: number | undefined;
|
|
1736
1944
|
source_reliability?: number | undefined;
|
|
@@ -1740,15 +1948,39 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1740
1948
|
confidence?: number | undefined;
|
|
1741
1949
|
score?: number | undefined;
|
|
1742
1950
|
} | undefined;
|
|
1951
|
+
usage_stats?: {
|
|
1952
|
+
last_used_at: string | null;
|
|
1953
|
+
use_count: number;
|
|
1954
|
+
validated_count: number;
|
|
1955
|
+
negative_outcome_count: number;
|
|
1956
|
+
} | undefined;
|
|
1743
1957
|
ranking_trace?: {
|
|
1744
1958
|
reason: string;
|
|
1745
1959
|
score: number;
|
|
1746
1960
|
decision: "rejected" | "admitted";
|
|
1747
1961
|
} | undefined;
|
|
1962
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
1963
|
+
quarantine_state?: {
|
|
1964
|
+
status: "quarantined";
|
|
1965
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
1966
|
+
active: false;
|
|
1967
|
+
confidence: number;
|
|
1968
|
+
created_at: string;
|
|
1969
|
+
reason: string;
|
|
1970
|
+
inspection_refs: string[];
|
|
1971
|
+
} | undefined;
|
|
1748
1972
|
}, {
|
|
1749
1973
|
summary: string;
|
|
1750
1974
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
1751
1975
|
recency_score?: number | undefined;
|
|
1976
|
+
provenance?: {
|
|
1977
|
+
reliability?: number | undefined;
|
|
1978
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
1979
|
+
source_ref?: string | undefined;
|
|
1980
|
+
raw_refs?: string[] | undefined;
|
|
1981
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
1982
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
1983
|
+
} | undefined;
|
|
1752
1984
|
ref?: string | undefined;
|
|
1753
1985
|
authority?: "advisory_only" | undefined;
|
|
1754
1986
|
relevance_score?: number | undefined;
|
|
@@ -1759,11 +1991,27 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1759
1991
|
score?: number | undefined;
|
|
1760
1992
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
1761
1993
|
} | undefined;
|
|
1994
|
+
usage_stats?: {
|
|
1995
|
+
last_used_at?: string | null | undefined;
|
|
1996
|
+
use_count?: number | undefined;
|
|
1997
|
+
validated_count?: number | undefined;
|
|
1998
|
+
negative_outcome_count?: number | undefined;
|
|
1999
|
+
} | undefined;
|
|
1762
2000
|
ranking_trace?: {
|
|
1763
2001
|
reason: string;
|
|
1764
2002
|
score: number;
|
|
1765
2003
|
decision: "rejected" | "admitted";
|
|
1766
2004
|
} | undefined;
|
|
2005
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
2006
|
+
quarantine_state?: {
|
|
2007
|
+
status: "quarantined";
|
|
2008
|
+
confidence: number;
|
|
2009
|
+
created_at: string;
|
|
2010
|
+
reason: string;
|
|
2011
|
+
inspection_refs: string[];
|
|
2012
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
2013
|
+
active?: false | undefined;
|
|
2014
|
+
} | undefined;
|
|
1767
2015
|
}>, "many">>;
|
|
1768
2016
|
active_hypotheses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1769
2017
|
hypothesis: z.ZodString;
|
|
@@ -1787,6 +2035,7 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1787
2035
|
rejected_approaches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1788
2036
|
approach: z.ZodString;
|
|
1789
2037
|
rejection_reason: z.ZodString;
|
|
2038
|
+
candidate_ref: z.ZodOptional<z.ZodString>;
|
|
1790
2039
|
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
1791
2040
|
revisit_condition: z.ZodOptional<z.ZodString>;
|
|
1792
2041
|
confidence: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1796,14 +2045,17 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1796
2045
|
rejection_reason: string;
|
|
1797
2046
|
evidence_ref?: string | undefined;
|
|
1798
2047
|
revisit_condition?: string | undefined;
|
|
2048
|
+
candidate_ref?: string | undefined;
|
|
1799
2049
|
}, {
|
|
1800
2050
|
approach: string;
|
|
1801
2051
|
rejection_reason: string;
|
|
1802
2052
|
confidence?: number | undefined;
|
|
1803
2053
|
evidence_ref?: string | undefined;
|
|
1804
2054
|
revisit_condition?: string | undefined;
|
|
2055
|
+
candidate_ref?: string | undefined;
|
|
1805
2056
|
}>, "many">>;
|
|
1806
2057
|
next_strategy_candidates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2058
|
+
candidate_ref: z.ZodOptional<z.ZodString>;
|
|
1807
2059
|
title: z.ZodString;
|
|
1808
2060
|
rationale: z.ZodString;
|
|
1809
2061
|
target_dimensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1833,6 +2085,7 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1833
2085
|
count: number;
|
|
1834
2086
|
fingerprint: string;
|
|
1835
2087
|
} | undefined;
|
|
2088
|
+
candidate_ref?: string | undefined;
|
|
1836
2089
|
}, {
|
|
1837
2090
|
title: string;
|
|
1838
2091
|
rationale: string;
|
|
@@ -1844,6 +2097,7 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1844
2097
|
count: number;
|
|
1845
2098
|
fingerprint: string;
|
|
1846
2099
|
} | undefined;
|
|
2100
|
+
candidate_ref?: string | undefined;
|
|
1847
2101
|
}>, "many">>;
|
|
1848
2102
|
run_control_recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1849
2103
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1939,6 +2193,14 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1939
2193
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
1940
2194
|
authority: "advisory_only";
|
|
1941
2195
|
recency_score?: number | undefined;
|
|
2196
|
+
provenance?: {
|
|
2197
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
2198
|
+
raw_refs: string[];
|
|
2199
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
2200
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
2201
|
+
reliability?: number | undefined;
|
|
2202
|
+
source_ref?: string | undefined;
|
|
2203
|
+
} | undefined;
|
|
1942
2204
|
ref?: string | undefined;
|
|
1943
2205
|
relevance_score?: number | undefined;
|
|
1944
2206
|
source_reliability?: number | undefined;
|
|
@@ -1948,11 +2210,27 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1948
2210
|
confidence?: number | undefined;
|
|
1949
2211
|
score?: number | undefined;
|
|
1950
2212
|
} | undefined;
|
|
2213
|
+
usage_stats?: {
|
|
2214
|
+
last_used_at: string | null;
|
|
2215
|
+
use_count: number;
|
|
2216
|
+
validated_count: number;
|
|
2217
|
+
negative_outcome_count: number;
|
|
2218
|
+
} | undefined;
|
|
1951
2219
|
ranking_trace?: {
|
|
1952
2220
|
reason: string;
|
|
1953
2221
|
score: number;
|
|
1954
2222
|
decision: "rejected" | "admitted";
|
|
1955
2223
|
} | undefined;
|
|
2224
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
2225
|
+
quarantine_state?: {
|
|
2226
|
+
status: "quarantined";
|
|
2227
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
2228
|
+
active: false;
|
|
2229
|
+
confidence: number;
|
|
2230
|
+
created_at: string;
|
|
2231
|
+
reason: string;
|
|
2232
|
+
inspection_refs: string[];
|
|
2233
|
+
} | undefined;
|
|
1956
2234
|
}[];
|
|
1957
2235
|
active_hypotheses: {
|
|
1958
2236
|
status: "active" | "testing" | "supported" | "weakened";
|
|
@@ -1967,6 +2245,7 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1967
2245
|
rejection_reason: string;
|
|
1968
2246
|
evidence_ref?: string | undefined;
|
|
1969
2247
|
revisit_condition?: string | undefined;
|
|
2248
|
+
candidate_ref?: string | undefined;
|
|
1970
2249
|
}[];
|
|
1971
2250
|
next_strategy_candidates: {
|
|
1972
2251
|
title: string;
|
|
@@ -1979,6 +2258,7 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
1979
2258
|
count: number;
|
|
1980
2259
|
fingerprint: string;
|
|
1981
2260
|
} | undefined;
|
|
2261
|
+
candidate_ref?: string | undefined;
|
|
1982
2262
|
}[];
|
|
1983
2263
|
guidance: string;
|
|
1984
2264
|
context_authority: "advisory_only";
|
|
@@ -2020,6 +2300,14 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
2020
2300
|
summary: string;
|
|
2021
2301
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
2022
2302
|
recency_score?: number | undefined;
|
|
2303
|
+
provenance?: {
|
|
2304
|
+
reliability?: number | undefined;
|
|
2305
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
2306
|
+
source_ref?: string | undefined;
|
|
2307
|
+
raw_refs?: string[] | undefined;
|
|
2308
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
2309
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
2310
|
+
} | undefined;
|
|
2023
2311
|
ref?: string | undefined;
|
|
2024
2312
|
authority?: "advisory_only" | undefined;
|
|
2025
2313
|
relevance_score?: number | undefined;
|
|
@@ -2030,11 +2318,27 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
2030
2318
|
score?: number | undefined;
|
|
2031
2319
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
2032
2320
|
} | undefined;
|
|
2321
|
+
usage_stats?: {
|
|
2322
|
+
last_used_at?: string | null | undefined;
|
|
2323
|
+
use_count?: number | undefined;
|
|
2324
|
+
validated_count?: number | undefined;
|
|
2325
|
+
negative_outcome_count?: number | undefined;
|
|
2326
|
+
} | undefined;
|
|
2033
2327
|
ranking_trace?: {
|
|
2034
2328
|
reason: string;
|
|
2035
2329
|
score: number;
|
|
2036
2330
|
decision: "rejected" | "admitted";
|
|
2037
2331
|
} | undefined;
|
|
2332
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
2333
|
+
quarantine_state?: {
|
|
2334
|
+
status: "quarantined";
|
|
2335
|
+
confidence: number;
|
|
2336
|
+
created_at: string;
|
|
2337
|
+
reason: string;
|
|
2338
|
+
inspection_refs: string[];
|
|
2339
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
2340
|
+
active?: false | undefined;
|
|
2341
|
+
} | undefined;
|
|
2038
2342
|
}[] | undefined;
|
|
2039
2343
|
active_hypotheses?: {
|
|
2040
2344
|
hypothesis: string;
|
|
@@ -2049,6 +2353,7 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
2049
2353
|
confidence?: number | undefined;
|
|
2050
2354
|
evidence_ref?: string | undefined;
|
|
2051
2355
|
revisit_condition?: string | undefined;
|
|
2356
|
+
candidate_ref?: string | undefined;
|
|
2052
2357
|
}[] | undefined;
|
|
2053
2358
|
next_strategy_candidates?: {
|
|
2054
2359
|
title: string;
|
|
@@ -2061,6 +2366,7 @@ export declare const RuntimeEvidenceDreamCheckpointSchema: z.ZodObject<{
|
|
|
2061
2366
|
count: number;
|
|
2062
2367
|
fingerprint: string;
|
|
2063
2368
|
} | undefined;
|
|
2369
|
+
candidate_ref?: string | undefined;
|
|
2064
2370
|
}[] | undefined;
|
|
2065
2371
|
run_control_recommendations?: {
|
|
2066
2372
|
rationale: string;
|
|
@@ -2137,7 +2443,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2137
2443
|
schema_version: z.ZodLiteral<"runtime-evidence-entry-v1">;
|
|
2138
2444
|
id: z.ZodString;
|
|
2139
2445
|
occurred_at: z.ZodString;
|
|
2140
|
-
kind: z.ZodEnum<["observation", "strategy", "task_generation", "execution", "verification", "decision", "metric", "evaluator", "research", "dream_checkpoint", "artifact", "failure", "other"]>;
|
|
2446
|
+
kind: z.ZodEnum<["observation", "strategy", "task_generation", "execution", "verification", "decision", "metric", "evaluator", "research", "dream_checkpoint", "artifact", "failure", "correction", "other"]>;
|
|
2141
2447
|
scope: z.ZodObject<{
|
|
2142
2448
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
2143
2449
|
run_id: z.ZodOptional<z.ZodString>;
|
|
@@ -2804,6 +3110,54 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2804
3110
|
authority: z.ZodDefault<z.ZodLiteral<"advisory_only">>;
|
|
2805
3111
|
relevance_score: z.ZodOptional<z.ZodNumber>;
|
|
2806
3112
|
source_reliability: z.ZodOptional<z.ZodNumber>;
|
|
3113
|
+
verification_status: z.ZodOptional<z.ZodEnum<["unknown", "unverified", "verified", "contradicted", "suspicious"]>>;
|
|
3114
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
3115
|
+
source_type: z.ZodDefault<z.ZodEnum<["user", "runtime", "tool", "web", "external", "imported", "unknown"]>>;
|
|
3116
|
+
source_ref: z.ZodOptional<z.ZodString>;
|
|
3117
|
+
raw_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3118
|
+
reliability: z.ZodOptional<z.ZodNumber>;
|
|
3119
|
+
verification_status: z.ZodDefault<z.ZodEnum<["unknown", "unverified", "verified", "contradicted", "suspicious"]>>;
|
|
3120
|
+
risk_signals: z.ZodDefault<z.ZodArray<z.ZodEnum<["hallucinated", "low_provenance", "contradiction", "prompt_injection_like", "unverified_external"]>, "many">>;
|
|
3121
|
+
}, "strict", z.ZodTypeAny, {
|
|
3122
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
3123
|
+
raw_refs: string[];
|
|
3124
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
3125
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
3126
|
+
reliability?: number | undefined;
|
|
3127
|
+
source_ref?: string | undefined;
|
|
3128
|
+
}, {
|
|
3129
|
+
reliability?: number | undefined;
|
|
3130
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
3131
|
+
source_ref?: string | undefined;
|
|
3132
|
+
raw_refs?: string[] | undefined;
|
|
3133
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
3134
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
3135
|
+
}>>;
|
|
3136
|
+
quarantine_state: z.ZodOptional<z.ZodObject<{
|
|
3137
|
+
status: z.ZodLiteral<"quarantined">;
|
|
3138
|
+
active: z.ZodDefault<z.ZodLiteral<false>>;
|
|
3139
|
+
reason: z.ZodString;
|
|
3140
|
+
source: z.ZodDefault<z.ZodEnum<["memory_lint", "user", "runtime_verification", "system"]>>;
|
|
3141
|
+
confidence: z.ZodNumber;
|
|
3142
|
+
inspection_refs: z.ZodArray<z.ZodString, "many">;
|
|
3143
|
+
created_at: z.ZodString;
|
|
3144
|
+
}, "strict", z.ZodTypeAny, {
|
|
3145
|
+
status: "quarantined";
|
|
3146
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
3147
|
+
active: false;
|
|
3148
|
+
confidence: number;
|
|
3149
|
+
created_at: string;
|
|
3150
|
+
reason: string;
|
|
3151
|
+
inspection_refs: string[];
|
|
3152
|
+
}, {
|
|
3153
|
+
status: "quarantined";
|
|
3154
|
+
confidence: number;
|
|
3155
|
+
created_at: string;
|
|
3156
|
+
reason: string;
|
|
3157
|
+
inspection_refs: string[];
|
|
3158
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
3159
|
+
active?: false | undefined;
|
|
3160
|
+
}>>;
|
|
2807
3161
|
recency_score: z.ZodOptional<z.ZodNumber>;
|
|
2808
3162
|
prior_success_contribution: z.ZodOptional<z.ZodNumber>;
|
|
2809
3163
|
retrieval: z.ZodOptional<z.ZodObject<{
|
|
@@ -2819,6 +3173,22 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2819
3173
|
score?: number | undefined;
|
|
2820
3174
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
2821
3175
|
}>>;
|
|
3176
|
+
usage_stats: z.ZodOptional<z.ZodObject<{
|
|
3177
|
+
last_used_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3178
|
+
use_count: z.ZodDefault<z.ZodNumber>;
|
|
3179
|
+
validated_count: z.ZodDefault<z.ZodNumber>;
|
|
3180
|
+
negative_outcome_count: z.ZodDefault<z.ZodNumber>;
|
|
3181
|
+
}, "strict", z.ZodTypeAny, {
|
|
3182
|
+
last_used_at: string | null;
|
|
3183
|
+
use_count: number;
|
|
3184
|
+
validated_count: number;
|
|
3185
|
+
negative_outcome_count: number;
|
|
3186
|
+
}, {
|
|
3187
|
+
last_used_at?: string | null | undefined;
|
|
3188
|
+
use_count?: number | undefined;
|
|
3189
|
+
validated_count?: number | undefined;
|
|
3190
|
+
negative_outcome_count?: number | undefined;
|
|
3191
|
+
}>>;
|
|
2822
3192
|
ranking_trace: z.ZodOptional<z.ZodObject<{
|
|
2823
3193
|
score: z.ZodNumber;
|
|
2824
3194
|
decision: z.ZodEnum<["admitted", "rejected"]>;
|
|
@@ -2837,6 +3207,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2837
3207
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
2838
3208
|
authority: "advisory_only";
|
|
2839
3209
|
recency_score?: number | undefined;
|
|
3210
|
+
provenance?: {
|
|
3211
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
3212
|
+
raw_refs: string[];
|
|
3213
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
3214
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
3215
|
+
reliability?: number | undefined;
|
|
3216
|
+
source_ref?: string | undefined;
|
|
3217
|
+
} | undefined;
|
|
2840
3218
|
ref?: string | undefined;
|
|
2841
3219
|
relevance_score?: number | undefined;
|
|
2842
3220
|
source_reliability?: number | undefined;
|
|
@@ -2846,15 +3224,39 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2846
3224
|
confidence?: number | undefined;
|
|
2847
3225
|
score?: number | undefined;
|
|
2848
3226
|
} | undefined;
|
|
3227
|
+
usage_stats?: {
|
|
3228
|
+
last_used_at: string | null;
|
|
3229
|
+
use_count: number;
|
|
3230
|
+
validated_count: number;
|
|
3231
|
+
negative_outcome_count: number;
|
|
3232
|
+
} | undefined;
|
|
2849
3233
|
ranking_trace?: {
|
|
2850
3234
|
reason: string;
|
|
2851
3235
|
score: number;
|
|
2852
3236
|
decision: "rejected" | "admitted";
|
|
2853
3237
|
} | undefined;
|
|
3238
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
3239
|
+
quarantine_state?: {
|
|
3240
|
+
status: "quarantined";
|
|
3241
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
3242
|
+
active: false;
|
|
3243
|
+
confidence: number;
|
|
3244
|
+
created_at: string;
|
|
3245
|
+
reason: string;
|
|
3246
|
+
inspection_refs: string[];
|
|
3247
|
+
} | undefined;
|
|
2854
3248
|
}, {
|
|
2855
3249
|
summary: string;
|
|
2856
3250
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
2857
3251
|
recency_score?: number | undefined;
|
|
3252
|
+
provenance?: {
|
|
3253
|
+
reliability?: number | undefined;
|
|
3254
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
3255
|
+
source_ref?: string | undefined;
|
|
3256
|
+
raw_refs?: string[] | undefined;
|
|
3257
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
3258
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
3259
|
+
} | undefined;
|
|
2858
3260
|
ref?: string | undefined;
|
|
2859
3261
|
authority?: "advisory_only" | undefined;
|
|
2860
3262
|
relevance_score?: number | undefined;
|
|
@@ -2865,11 +3267,27 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2865
3267
|
score?: number | undefined;
|
|
2866
3268
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
2867
3269
|
} | undefined;
|
|
3270
|
+
usage_stats?: {
|
|
3271
|
+
last_used_at?: string | null | undefined;
|
|
3272
|
+
use_count?: number | undefined;
|
|
3273
|
+
validated_count?: number | undefined;
|
|
3274
|
+
negative_outcome_count?: number | undefined;
|
|
3275
|
+
} | undefined;
|
|
2868
3276
|
ranking_trace?: {
|
|
2869
3277
|
reason: string;
|
|
2870
3278
|
score: number;
|
|
2871
3279
|
decision: "rejected" | "admitted";
|
|
2872
3280
|
} | undefined;
|
|
3281
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
3282
|
+
quarantine_state?: {
|
|
3283
|
+
status: "quarantined";
|
|
3284
|
+
confidence: number;
|
|
3285
|
+
created_at: string;
|
|
3286
|
+
reason: string;
|
|
3287
|
+
inspection_refs: string[];
|
|
3288
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
3289
|
+
active?: false | undefined;
|
|
3290
|
+
} | undefined;
|
|
2873
3291
|
}>, "many">>;
|
|
2874
3292
|
active_hypotheses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2875
3293
|
hypothesis: z.ZodString;
|
|
@@ -2893,6 +3311,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2893
3311
|
rejected_approaches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2894
3312
|
approach: z.ZodString;
|
|
2895
3313
|
rejection_reason: z.ZodString;
|
|
3314
|
+
candidate_ref: z.ZodOptional<z.ZodString>;
|
|
2896
3315
|
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
2897
3316
|
revisit_condition: z.ZodOptional<z.ZodString>;
|
|
2898
3317
|
confidence: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2902,14 +3321,17 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2902
3321
|
rejection_reason: string;
|
|
2903
3322
|
evidence_ref?: string | undefined;
|
|
2904
3323
|
revisit_condition?: string | undefined;
|
|
3324
|
+
candidate_ref?: string | undefined;
|
|
2905
3325
|
}, {
|
|
2906
3326
|
approach: string;
|
|
2907
3327
|
rejection_reason: string;
|
|
2908
3328
|
confidence?: number | undefined;
|
|
2909
3329
|
evidence_ref?: string | undefined;
|
|
2910
3330
|
revisit_condition?: string | undefined;
|
|
3331
|
+
candidate_ref?: string | undefined;
|
|
2911
3332
|
}>, "many">>;
|
|
2912
3333
|
next_strategy_candidates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
3334
|
+
candidate_ref: z.ZodOptional<z.ZodString>;
|
|
2913
3335
|
title: z.ZodString;
|
|
2914
3336
|
rationale: z.ZodString;
|
|
2915
3337
|
target_dimensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2939,6 +3361,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2939
3361
|
count: number;
|
|
2940
3362
|
fingerprint: string;
|
|
2941
3363
|
} | undefined;
|
|
3364
|
+
candidate_ref?: string | undefined;
|
|
2942
3365
|
}, {
|
|
2943
3366
|
title: string;
|
|
2944
3367
|
rationale: string;
|
|
@@ -2950,6 +3373,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
2950
3373
|
count: number;
|
|
2951
3374
|
fingerprint: string;
|
|
2952
3375
|
} | undefined;
|
|
3376
|
+
candidate_ref?: string | undefined;
|
|
2953
3377
|
}>, "many">>;
|
|
2954
3378
|
run_control_recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2955
3379
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -3045,6 +3469,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3045
3469
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
3046
3470
|
authority: "advisory_only";
|
|
3047
3471
|
recency_score?: number | undefined;
|
|
3472
|
+
provenance?: {
|
|
3473
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
3474
|
+
raw_refs: string[];
|
|
3475
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
3476
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
3477
|
+
reliability?: number | undefined;
|
|
3478
|
+
source_ref?: string | undefined;
|
|
3479
|
+
} | undefined;
|
|
3048
3480
|
ref?: string | undefined;
|
|
3049
3481
|
relevance_score?: number | undefined;
|
|
3050
3482
|
source_reliability?: number | undefined;
|
|
@@ -3054,11 +3486,27 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3054
3486
|
confidence?: number | undefined;
|
|
3055
3487
|
score?: number | undefined;
|
|
3056
3488
|
} | undefined;
|
|
3489
|
+
usage_stats?: {
|
|
3490
|
+
last_used_at: string | null;
|
|
3491
|
+
use_count: number;
|
|
3492
|
+
validated_count: number;
|
|
3493
|
+
negative_outcome_count: number;
|
|
3494
|
+
} | undefined;
|
|
3057
3495
|
ranking_trace?: {
|
|
3058
3496
|
reason: string;
|
|
3059
3497
|
score: number;
|
|
3060
3498
|
decision: "rejected" | "admitted";
|
|
3061
3499
|
} | undefined;
|
|
3500
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
3501
|
+
quarantine_state?: {
|
|
3502
|
+
status: "quarantined";
|
|
3503
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
3504
|
+
active: false;
|
|
3505
|
+
confidence: number;
|
|
3506
|
+
created_at: string;
|
|
3507
|
+
reason: string;
|
|
3508
|
+
inspection_refs: string[];
|
|
3509
|
+
} | undefined;
|
|
3062
3510
|
}[];
|
|
3063
3511
|
active_hypotheses: {
|
|
3064
3512
|
status: "active" | "testing" | "supported" | "weakened";
|
|
@@ -3073,6 +3521,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3073
3521
|
rejection_reason: string;
|
|
3074
3522
|
evidence_ref?: string | undefined;
|
|
3075
3523
|
revisit_condition?: string | undefined;
|
|
3524
|
+
candidate_ref?: string | undefined;
|
|
3076
3525
|
}[];
|
|
3077
3526
|
next_strategy_candidates: {
|
|
3078
3527
|
title: string;
|
|
@@ -3085,6 +3534,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3085
3534
|
count: number;
|
|
3086
3535
|
fingerprint: string;
|
|
3087
3536
|
} | undefined;
|
|
3537
|
+
candidate_ref?: string | undefined;
|
|
3088
3538
|
}[];
|
|
3089
3539
|
guidance: string;
|
|
3090
3540
|
context_authority: "advisory_only";
|
|
@@ -3126,6 +3576,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3126
3576
|
summary: string;
|
|
3127
3577
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
3128
3578
|
recency_score?: number | undefined;
|
|
3579
|
+
provenance?: {
|
|
3580
|
+
reliability?: number | undefined;
|
|
3581
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
3582
|
+
source_ref?: string | undefined;
|
|
3583
|
+
raw_refs?: string[] | undefined;
|
|
3584
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
3585
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
3586
|
+
} | undefined;
|
|
3129
3587
|
ref?: string | undefined;
|
|
3130
3588
|
authority?: "advisory_only" | undefined;
|
|
3131
3589
|
relevance_score?: number | undefined;
|
|
@@ -3136,11 +3594,27 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3136
3594
|
score?: number | undefined;
|
|
3137
3595
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
3138
3596
|
} | undefined;
|
|
3597
|
+
usage_stats?: {
|
|
3598
|
+
last_used_at?: string | null | undefined;
|
|
3599
|
+
use_count?: number | undefined;
|
|
3600
|
+
validated_count?: number | undefined;
|
|
3601
|
+
negative_outcome_count?: number | undefined;
|
|
3602
|
+
} | undefined;
|
|
3139
3603
|
ranking_trace?: {
|
|
3140
3604
|
reason: string;
|
|
3141
3605
|
score: number;
|
|
3142
3606
|
decision: "rejected" | "admitted";
|
|
3143
3607
|
} | undefined;
|
|
3608
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
3609
|
+
quarantine_state?: {
|
|
3610
|
+
status: "quarantined";
|
|
3611
|
+
confidence: number;
|
|
3612
|
+
created_at: string;
|
|
3613
|
+
reason: string;
|
|
3614
|
+
inspection_refs: string[];
|
|
3615
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
3616
|
+
active?: false | undefined;
|
|
3617
|
+
} | undefined;
|
|
3144
3618
|
}[] | undefined;
|
|
3145
3619
|
active_hypotheses?: {
|
|
3146
3620
|
hypothesis: string;
|
|
@@ -3155,6 +3629,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3155
3629
|
confidence?: number | undefined;
|
|
3156
3630
|
evidence_ref?: string | undefined;
|
|
3157
3631
|
revisit_condition?: string | undefined;
|
|
3632
|
+
candidate_ref?: string | undefined;
|
|
3158
3633
|
}[] | undefined;
|
|
3159
3634
|
next_strategy_candidates?: {
|
|
3160
3635
|
title: string;
|
|
@@ -3167,6 +3642,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3167
3642
|
count: number;
|
|
3168
3643
|
fingerprint: string;
|
|
3169
3644
|
} | undefined;
|
|
3645
|
+
candidate_ref?: string | undefined;
|
|
3170
3646
|
}[] | undefined;
|
|
3171
3647
|
run_control_recommendations?: {
|
|
3172
3648
|
rationale: string;
|
|
@@ -3237,6 +3713,358 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3237
3713
|
smoke_reason?: string | undefined;
|
|
3238
3714
|
smoke_evidence_ref?: string | undefined;
|
|
3239
3715
|
}>, "many">>;
|
|
3716
|
+
correction: z.ZodOptional<z.ZodObject<{
|
|
3717
|
+
schema_version: z.ZodDefault<z.ZodLiteral<"memory-correction-entry-v1">>;
|
|
3718
|
+
correction_id: z.ZodString;
|
|
3719
|
+
target_ref: z.ZodObject<{
|
|
3720
|
+
kind: z.ZodEnum<["agent_memory", "soil_record", "runtime_evidence", "dream_checkpoint"]>;
|
|
3721
|
+
id: z.ZodString;
|
|
3722
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
3723
|
+
goal_id: z.ZodOptional<z.ZodString>;
|
|
3724
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
3725
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
3726
|
+
}, "strict", z.ZodTypeAny, {
|
|
3727
|
+
goal_id?: string | undefined;
|
|
3728
|
+
task_id?: string | undefined;
|
|
3729
|
+
run_id?: string | undefined;
|
|
3730
|
+
}, {
|
|
3731
|
+
goal_id?: string | undefined;
|
|
3732
|
+
task_id?: string | undefined;
|
|
3733
|
+
run_id?: string | undefined;
|
|
3734
|
+
}>>;
|
|
3735
|
+
}, "strict", z.ZodTypeAny, {
|
|
3736
|
+
id: string;
|
|
3737
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3738
|
+
scope?: {
|
|
3739
|
+
goal_id?: string | undefined;
|
|
3740
|
+
task_id?: string | undefined;
|
|
3741
|
+
run_id?: string | undefined;
|
|
3742
|
+
} | undefined;
|
|
3743
|
+
}, {
|
|
3744
|
+
id: string;
|
|
3745
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3746
|
+
scope?: {
|
|
3747
|
+
goal_id?: string | undefined;
|
|
3748
|
+
task_id?: string | undefined;
|
|
3749
|
+
run_id?: string | undefined;
|
|
3750
|
+
} | undefined;
|
|
3751
|
+
}>;
|
|
3752
|
+
correction_kind: z.ZodEnum<["corrected", "superseded", "retracted", "forgotten", "quarantined"]>;
|
|
3753
|
+
replacement_ref: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3754
|
+
kind: z.ZodEnum<["agent_memory", "soil_record", "runtime_evidence", "dream_checkpoint"]>;
|
|
3755
|
+
id: z.ZodString;
|
|
3756
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
3757
|
+
goal_id: z.ZodOptional<z.ZodString>;
|
|
3758
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
3759
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
3760
|
+
}, "strict", z.ZodTypeAny, {
|
|
3761
|
+
goal_id?: string | undefined;
|
|
3762
|
+
task_id?: string | undefined;
|
|
3763
|
+
run_id?: string | undefined;
|
|
3764
|
+
}, {
|
|
3765
|
+
goal_id?: string | undefined;
|
|
3766
|
+
task_id?: string | undefined;
|
|
3767
|
+
run_id?: string | undefined;
|
|
3768
|
+
}>>;
|
|
3769
|
+
}, "strict", z.ZodTypeAny, {
|
|
3770
|
+
id: string;
|
|
3771
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3772
|
+
scope?: {
|
|
3773
|
+
goal_id?: string | undefined;
|
|
3774
|
+
task_id?: string | undefined;
|
|
3775
|
+
run_id?: string | undefined;
|
|
3776
|
+
} | undefined;
|
|
3777
|
+
}, {
|
|
3778
|
+
id: string;
|
|
3779
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3780
|
+
scope?: {
|
|
3781
|
+
goal_id?: string | undefined;
|
|
3782
|
+
task_id?: string | undefined;
|
|
3783
|
+
run_id?: string | undefined;
|
|
3784
|
+
} | undefined;
|
|
3785
|
+
}>>>;
|
|
3786
|
+
actor: z.ZodEnum<["user", "dream_lint", "runtime_verification", "manual_tool"]>;
|
|
3787
|
+
reason: z.ZodString;
|
|
3788
|
+
created_at: z.ZodString;
|
|
3789
|
+
provenance: z.ZodObject<{
|
|
3790
|
+
source: z.ZodEnum<["user", "dream_lint", "runtime_verification", "manual_tool"]>;
|
|
3791
|
+
source_ref: z.ZodOptional<z.ZodString>;
|
|
3792
|
+
evidence_ref: z.ZodOptional<z.ZodString>;
|
|
3793
|
+
confidence: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3794
|
+
note: z.ZodOptional<z.ZodString>;
|
|
3795
|
+
}, "strict", z.ZodTypeAny, {
|
|
3796
|
+
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
3797
|
+
confidence: number | null;
|
|
3798
|
+
evidence_ref?: string | undefined;
|
|
3799
|
+
source_ref?: string | undefined;
|
|
3800
|
+
note?: string | undefined;
|
|
3801
|
+
}, {
|
|
3802
|
+
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
3803
|
+
confidence?: number | null | undefined;
|
|
3804
|
+
evidence_ref?: string | undefined;
|
|
3805
|
+
source_ref?: string | undefined;
|
|
3806
|
+
note?: string | undefined;
|
|
3807
|
+
}>;
|
|
3808
|
+
audit: z.ZodDefault<z.ZodObject<{
|
|
3809
|
+
status: z.ZodDefault<z.ZodEnum<["active", "superseded", "disputed", "destructive_delete_requested"]>>;
|
|
3810
|
+
retained_for_audit: z.ZodDefault<z.ZodBoolean>;
|
|
3811
|
+
destructive_delete_approved_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3812
|
+
}, "strict", z.ZodTypeAny, {
|
|
3813
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
3814
|
+
retained_for_audit: boolean;
|
|
3815
|
+
destructive_delete_approved_at: string | null;
|
|
3816
|
+
}, {
|
|
3817
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
3818
|
+
retained_for_audit?: boolean | undefined;
|
|
3819
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
3820
|
+
}>>;
|
|
3821
|
+
}, "strict", z.ZodTypeAny, {
|
|
3822
|
+
created_at: string;
|
|
3823
|
+
reason: string;
|
|
3824
|
+
schema_version: "memory-correction-entry-v1";
|
|
3825
|
+
provenance: {
|
|
3826
|
+
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
3827
|
+
confidence: number | null;
|
|
3828
|
+
evidence_ref?: string | undefined;
|
|
3829
|
+
source_ref?: string | undefined;
|
|
3830
|
+
note?: string | undefined;
|
|
3831
|
+
};
|
|
3832
|
+
correction_id: string;
|
|
3833
|
+
target_ref: {
|
|
3834
|
+
id: string;
|
|
3835
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3836
|
+
scope?: {
|
|
3837
|
+
goal_id?: string | undefined;
|
|
3838
|
+
task_id?: string | undefined;
|
|
3839
|
+
run_id?: string | undefined;
|
|
3840
|
+
} | undefined;
|
|
3841
|
+
};
|
|
3842
|
+
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
3843
|
+
replacement_ref: {
|
|
3844
|
+
id: string;
|
|
3845
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3846
|
+
scope?: {
|
|
3847
|
+
goal_id?: string | undefined;
|
|
3848
|
+
task_id?: string | undefined;
|
|
3849
|
+
run_id?: string | undefined;
|
|
3850
|
+
} | undefined;
|
|
3851
|
+
} | null;
|
|
3852
|
+
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
3853
|
+
audit: {
|
|
3854
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
3855
|
+
retained_for_audit: boolean;
|
|
3856
|
+
destructive_delete_approved_at: string | null;
|
|
3857
|
+
};
|
|
3858
|
+
}, {
|
|
3859
|
+
created_at: string;
|
|
3860
|
+
reason: string;
|
|
3861
|
+
provenance: {
|
|
3862
|
+
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
3863
|
+
confidence?: number | null | undefined;
|
|
3864
|
+
evidence_ref?: string | undefined;
|
|
3865
|
+
source_ref?: string | undefined;
|
|
3866
|
+
note?: string | undefined;
|
|
3867
|
+
};
|
|
3868
|
+
correction_id: string;
|
|
3869
|
+
target_ref: {
|
|
3870
|
+
id: string;
|
|
3871
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3872
|
+
scope?: {
|
|
3873
|
+
goal_id?: string | undefined;
|
|
3874
|
+
task_id?: string | undefined;
|
|
3875
|
+
run_id?: string | undefined;
|
|
3876
|
+
} | undefined;
|
|
3877
|
+
};
|
|
3878
|
+
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
3879
|
+
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
3880
|
+
schema_version?: "memory-correction-entry-v1" | undefined;
|
|
3881
|
+
replacement_ref?: {
|
|
3882
|
+
id: string;
|
|
3883
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3884
|
+
scope?: {
|
|
3885
|
+
goal_id?: string | undefined;
|
|
3886
|
+
task_id?: string | undefined;
|
|
3887
|
+
run_id?: string | undefined;
|
|
3888
|
+
} | undefined;
|
|
3889
|
+
} | null | undefined;
|
|
3890
|
+
audit?: {
|
|
3891
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
3892
|
+
retained_for_audit?: boolean | undefined;
|
|
3893
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
3894
|
+
} | undefined;
|
|
3895
|
+
}>>;
|
|
3896
|
+
correction_state: z.ZodOptional<z.ZodObject<{
|
|
3897
|
+
target_ref: z.ZodObject<{
|
|
3898
|
+
kind: z.ZodEnum<["agent_memory", "soil_record", "runtime_evidence", "dream_checkpoint"]>;
|
|
3899
|
+
id: z.ZodString;
|
|
3900
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
3901
|
+
goal_id: z.ZodOptional<z.ZodString>;
|
|
3902
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
3903
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
3904
|
+
}, "strict", z.ZodTypeAny, {
|
|
3905
|
+
goal_id?: string | undefined;
|
|
3906
|
+
task_id?: string | undefined;
|
|
3907
|
+
run_id?: string | undefined;
|
|
3908
|
+
}, {
|
|
3909
|
+
goal_id?: string | undefined;
|
|
3910
|
+
task_id?: string | undefined;
|
|
3911
|
+
run_id?: string | undefined;
|
|
3912
|
+
}>>;
|
|
3913
|
+
}, "strict", z.ZodTypeAny, {
|
|
3914
|
+
id: string;
|
|
3915
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3916
|
+
scope?: {
|
|
3917
|
+
goal_id?: string | undefined;
|
|
3918
|
+
task_id?: string | undefined;
|
|
3919
|
+
run_id?: string | undefined;
|
|
3920
|
+
} | undefined;
|
|
3921
|
+
}, {
|
|
3922
|
+
id: string;
|
|
3923
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3924
|
+
scope?: {
|
|
3925
|
+
goal_id?: string | undefined;
|
|
3926
|
+
task_id?: string | undefined;
|
|
3927
|
+
run_id?: string | undefined;
|
|
3928
|
+
} | undefined;
|
|
3929
|
+
}>;
|
|
3930
|
+
status: z.ZodEnum<["active", "corrected", "superseded", "retracted", "forgotten", "quarantined"]>;
|
|
3931
|
+
active: z.ZodBoolean;
|
|
3932
|
+
latest_correction_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3933
|
+
replacement_ref: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
3934
|
+
kind: z.ZodEnum<["agent_memory", "soil_record", "runtime_evidence", "dream_checkpoint"]>;
|
|
3935
|
+
id: z.ZodString;
|
|
3936
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
3937
|
+
goal_id: z.ZodOptional<z.ZodString>;
|
|
3938
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
3939
|
+
task_id: z.ZodOptional<z.ZodString>;
|
|
3940
|
+
}, "strict", z.ZodTypeAny, {
|
|
3941
|
+
goal_id?: string | undefined;
|
|
3942
|
+
task_id?: string | undefined;
|
|
3943
|
+
run_id?: string | undefined;
|
|
3944
|
+
}, {
|
|
3945
|
+
goal_id?: string | undefined;
|
|
3946
|
+
task_id?: string | undefined;
|
|
3947
|
+
run_id?: string | undefined;
|
|
3948
|
+
}>>;
|
|
3949
|
+
}, "strict", z.ZodTypeAny, {
|
|
3950
|
+
id: string;
|
|
3951
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3952
|
+
scope?: {
|
|
3953
|
+
goal_id?: string | undefined;
|
|
3954
|
+
task_id?: string | undefined;
|
|
3955
|
+
run_id?: string | undefined;
|
|
3956
|
+
} | undefined;
|
|
3957
|
+
}, {
|
|
3958
|
+
id: string;
|
|
3959
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3960
|
+
scope?: {
|
|
3961
|
+
goal_id?: string | undefined;
|
|
3962
|
+
task_id?: string | undefined;
|
|
3963
|
+
run_id?: string | undefined;
|
|
3964
|
+
} | undefined;
|
|
3965
|
+
}>>>;
|
|
3966
|
+
retained_for_audit: z.ZodDefault<z.ZodBoolean>;
|
|
3967
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3968
|
+
updated_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
3969
|
+
}, "strict", z.ZodTypeAny, {
|
|
3970
|
+
status: "active" | "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
3971
|
+
active: boolean;
|
|
3972
|
+
updated_at: string | null;
|
|
3973
|
+
reason: string | null;
|
|
3974
|
+
retained_for_audit: boolean;
|
|
3975
|
+
target_ref: {
|
|
3976
|
+
id: string;
|
|
3977
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3978
|
+
scope?: {
|
|
3979
|
+
goal_id?: string | undefined;
|
|
3980
|
+
task_id?: string | undefined;
|
|
3981
|
+
run_id?: string | undefined;
|
|
3982
|
+
} | undefined;
|
|
3983
|
+
};
|
|
3984
|
+
replacement_ref: {
|
|
3985
|
+
id: string;
|
|
3986
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
3987
|
+
scope?: {
|
|
3988
|
+
goal_id?: string | undefined;
|
|
3989
|
+
task_id?: string | undefined;
|
|
3990
|
+
run_id?: string | undefined;
|
|
3991
|
+
} | undefined;
|
|
3992
|
+
} | null;
|
|
3993
|
+
latest_correction_id: string | null;
|
|
3994
|
+
}, {
|
|
3995
|
+
status: "active" | "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
3996
|
+
active: boolean;
|
|
3997
|
+
target_ref: {
|
|
3998
|
+
id: string;
|
|
3999
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
4000
|
+
scope?: {
|
|
4001
|
+
goal_id?: string | undefined;
|
|
4002
|
+
task_id?: string | undefined;
|
|
4003
|
+
run_id?: string | undefined;
|
|
4004
|
+
} | undefined;
|
|
4005
|
+
};
|
|
4006
|
+
updated_at?: string | null | undefined;
|
|
4007
|
+
reason?: string | null | undefined;
|
|
4008
|
+
retained_for_audit?: boolean | undefined;
|
|
4009
|
+
replacement_ref?: {
|
|
4010
|
+
id: string;
|
|
4011
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
4012
|
+
scope?: {
|
|
4013
|
+
goal_id?: string | undefined;
|
|
4014
|
+
task_id?: string | undefined;
|
|
4015
|
+
run_id?: string | undefined;
|
|
4016
|
+
} | undefined;
|
|
4017
|
+
} | null | undefined;
|
|
4018
|
+
latest_correction_id?: string | null | undefined;
|
|
4019
|
+
}>>;
|
|
4020
|
+
verification_status: z.ZodOptional<z.ZodEnum<["unknown", "unverified", "verified", "contradicted", "suspicious"]>>;
|
|
4021
|
+
provenance: z.ZodOptional<z.ZodObject<{
|
|
4022
|
+
source_type: z.ZodDefault<z.ZodEnum<["user", "runtime", "tool", "web", "external", "imported", "unknown"]>>;
|
|
4023
|
+
source_ref: z.ZodOptional<z.ZodString>;
|
|
4024
|
+
raw_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
4025
|
+
reliability: z.ZodOptional<z.ZodNumber>;
|
|
4026
|
+
verification_status: z.ZodDefault<z.ZodEnum<["unknown", "unverified", "verified", "contradicted", "suspicious"]>>;
|
|
4027
|
+
risk_signals: z.ZodDefault<z.ZodArray<z.ZodEnum<["hallucinated", "low_provenance", "contradiction", "prompt_injection_like", "unverified_external"]>, "many">>;
|
|
4028
|
+
}, "strict", z.ZodTypeAny, {
|
|
4029
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
4030
|
+
raw_refs: string[];
|
|
4031
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
4032
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
4033
|
+
reliability?: number | undefined;
|
|
4034
|
+
source_ref?: string | undefined;
|
|
4035
|
+
}, {
|
|
4036
|
+
reliability?: number | undefined;
|
|
4037
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
4038
|
+
source_ref?: string | undefined;
|
|
4039
|
+
raw_refs?: string[] | undefined;
|
|
4040
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
4041
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
4042
|
+
}>>;
|
|
4043
|
+
quarantine_state: z.ZodOptional<z.ZodObject<{
|
|
4044
|
+
status: z.ZodLiteral<"quarantined">;
|
|
4045
|
+
active: z.ZodDefault<z.ZodLiteral<false>>;
|
|
4046
|
+
reason: z.ZodString;
|
|
4047
|
+
source: z.ZodDefault<z.ZodEnum<["memory_lint", "user", "runtime_verification", "system"]>>;
|
|
4048
|
+
confidence: z.ZodNumber;
|
|
4049
|
+
inspection_refs: z.ZodArray<z.ZodString, "many">;
|
|
4050
|
+
created_at: z.ZodString;
|
|
4051
|
+
}, "strict", z.ZodTypeAny, {
|
|
4052
|
+
status: "quarantined";
|
|
4053
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
4054
|
+
active: false;
|
|
4055
|
+
confidence: number;
|
|
4056
|
+
created_at: string;
|
|
4057
|
+
reason: string;
|
|
4058
|
+
inspection_refs: string[];
|
|
4059
|
+
}, {
|
|
4060
|
+
status: "quarantined";
|
|
4061
|
+
confidence: number;
|
|
4062
|
+
created_at: string;
|
|
4063
|
+
reason: string;
|
|
4064
|
+
inspection_refs: string[];
|
|
4065
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
4066
|
+
active?: false | undefined;
|
|
4067
|
+
}>>;
|
|
3240
4068
|
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3241
4069
|
candidate_id: z.ZodString;
|
|
3242
4070
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -3683,7 +4511,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3683
4511
|
}, "strict", z.ZodTypeAny, {
|
|
3684
4512
|
id: string;
|
|
3685
4513
|
schema_version: "runtime-evidence-entry-v1";
|
|
3686
|
-
kind: "verification" | "observation" | "metric" | "decision" | "failure" | "strategy" | "task_generation" | "research" | "other" | "artifact" | "execution" | "evaluator" | "
|
|
4514
|
+
kind: "verification" | "observation" | "metric" | "decision" | "failure" | "strategy" | "task_generation" | "research" | "other" | "artifact" | "dream_checkpoint" | "execution" | "evaluator" | "correction";
|
|
3687
4515
|
artifacts: {
|
|
3688
4516
|
label: string;
|
|
3689
4517
|
kind: "url" | "other" | "metrics" | "log" | "report" | "diff";
|
|
@@ -3695,7 +4523,6 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3695
4523
|
size_bytes?: number | undefined;
|
|
3696
4524
|
dependency_refs?: string[] | undefined;
|
|
3697
4525
|
}[];
|
|
3698
|
-
occurred_at: string;
|
|
3699
4526
|
scope: {
|
|
3700
4527
|
goal_id?: string | undefined;
|
|
3701
4528
|
task_id?: string | undefined;
|
|
@@ -3703,6 +4530,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3703
4530
|
loop_index?: number | undefined;
|
|
3704
4531
|
run_id?: string | undefined;
|
|
3705
4532
|
};
|
|
4533
|
+
raw_refs: {
|
|
4534
|
+
kind: string;
|
|
4535
|
+
path?: string | undefined;
|
|
4536
|
+
id?: string | undefined;
|
|
4537
|
+
url?: string | undefined;
|
|
4538
|
+
state_relative_path?: string | undefined;
|
|
4539
|
+
}[];
|
|
4540
|
+
occurred_at: string;
|
|
3706
4541
|
metrics: {
|
|
3707
4542
|
label: string;
|
|
3708
4543
|
value?: string | number | boolean | null | undefined;
|
|
@@ -3713,13 +4548,6 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3713
4548
|
observed_at?: string | undefined;
|
|
3714
4549
|
summary?: string | undefined;
|
|
3715
4550
|
}[];
|
|
3716
|
-
raw_refs: {
|
|
3717
|
-
kind: string;
|
|
3718
|
-
path?: string | undefined;
|
|
3719
|
-
id?: string | undefined;
|
|
3720
|
-
url?: string | undefined;
|
|
3721
|
-
state_relative_path?: string | undefined;
|
|
3722
|
-
}[];
|
|
3723
4551
|
verification?: {
|
|
3724
4552
|
confidence?: number | undefined;
|
|
3725
4553
|
verdict?: string | undefined;
|
|
@@ -3867,6 +4695,53 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3867
4695
|
disposition_reason?: string | undefined;
|
|
3868
4696
|
produced_at?: string | undefined;
|
|
3869
4697
|
}[] | undefined;
|
|
4698
|
+
provenance?: {
|
|
4699
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
4700
|
+
raw_refs: string[];
|
|
4701
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
4702
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
4703
|
+
reliability?: number | undefined;
|
|
4704
|
+
source_ref?: string | undefined;
|
|
4705
|
+
} | undefined;
|
|
4706
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
4707
|
+
correction?: {
|
|
4708
|
+
created_at: string;
|
|
4709
|
+
reason: string;
|
|
4710
|
+
schema_version: "memory-correction-entry-v1";
|
|
4711
|
+
provenance: {
|
|
4712
|
+
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
4713
|
+
confidence: number | null;
|
|
4714
|
+
evidence_ref?: string | undefined;
|
|
4715
|
+
source_ref?: string | undefined;
|
|
4716
|
+
note?: string | undefined;
|
|
4717
|
+
};
|
|
4718
|
+
correction_id: string;
|
|
4719
|
+
target_ref: {
|
|
4720
|
+
id: string;
|
|
4721
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
4722
|
+
scope?: {
|
|
4723
|
+
goal_id?: string | undefined;
|
|
4724
|
+
task_id?: string | undefined;
|
|
4725
|
+
run_id?: string | undefined;
|
|
4726
|
+
} | undefined;
|
|
4727
|
+
};
|
|
4728
|
+
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
4729
|
+
replacement_ref: {
|
|
4730
|
+
id: string;
|
|
4731
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
4732
|
+
scope?: {
|
|
4733
|
+
goal_id?: string | undefined;
|
|
4734
|
+
task_id?: string | undefined;
|
|
4735
|
+
run_id?: string | undefined;
|
|
4736
|
+
} | undefined;
|
|
4737
|
+
} | null;
|
|
4738
|
+
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
4739
|
+
audit: {
|
|
4740
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
4741
|
+
retained_for_audit: boolean;
|
|
4742
|
+
destructive_delete_approved_at: string | null;
|
|
4743
|
+
};
|
|
4744
|
+
} | undefined;
|
|
3870
4745
|
evaluators?: {
|
|
3871
4746
|
status: "unknown" | "pending" | "completed" | "approval_required" | "failed" | "regressed" | "blocked" | "passed" | "ready" | "submitted" | "succeeded";
|
|
3872
4747
|
source: string;
|
|
@@ -3950,6 +4825,15 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3950
4825
|
conclusion?: string | undefined;
|
|
3951
4826
|
} | undefined;
|
|
3952
4827
|
}[] | undefined;
|
|
4828
|
+
quarantine_state?: {
|
|
4829
|
+
status: "quarantined";
|
|
4830
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
4831
|
+
active: false;
|
|
4832
|
+
confidence: number;
|
|
4833
|
+
created_at: string;
|
|
4834
|
+
reason: string;
|
|
4835
|
+
inspection_refs: string[];
|
|
4836
|
+
} | undefined;
|
|
3953
4837
|
dream_checkpoints?: {
|
|
3954
4838
|
confidence: number;
|
|
3955
4839
|
trigger: "iteration" | "breakthrough" | "plateau" | "pre_finalization";
|
|
@@ -3965,6 +4849,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3965
4849
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
3966
4850
|
authority: "advisory_only";
|
|
3967
4851
|
recency_score?: number | undefined;
|
|
4852
|
+
provenance?: {
|
|
4853
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
4854
|
+
raw_refs: string[];
|
|
4855
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
4856
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
4857
|
+
reliability?: number | undefined;
|
|
4858
|
+
source_ref?: string | undefined;
|
|
4859
|
+
} | undefined;
|
|
3968
4860
|
ref?: string | undefined;
|
|
3969
4861
|
relevance_score?: number | undefined;
|
|
3970
4862
|
source_reliability?: number | undefined;
|
|
@@ -3974,11 +4866,27 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3974
4866
|
confidence?: number | undefined;
|
|
3975
4867
|
score?: number | undefined;
|
|
3976
4868
|
} | undefined;
|
|
4869
|
+
usage_stats?: {
|
|
4870
|
+
last_used_at: string | null;
|
|
4871
|
+
use_count: number;
|
|
4872
|
+
validated_count: number;
|
|
4873
|
+
negative_outcome_count: number;
|
|
4874
|
+
} | undefined;
|
|
3977
4875
|
ranking_trace?: {
|
|
3978
4876
|
reason: string;
|
|
3979
4877
|
score: number;
|
|
3980
4878
|
decision: "rejected" | "admitted";
|
|
3981
4879
|
} | undefined;
|
|
4880
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
4881
|
+
quarantine_state?: {
|
|
4882
|
+
status: "quarantined";
|
|
4883
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
4884
|
+
active: false;
|
|
4885
|
+
confidence: number;
|
|
4886
|
+
created_at: string;
|
|
4887
|
+
reason: string;
|
|
4888
|
+
inspection_refs: string[];
|
|
4889
|
+
} | undefined;
|
|
3982
4890
|
}[];
|
|
3983
4891
|
active_hypotheses: {
|
|
3984
4892
|
status: "active" | "testing" | "supported" | "weakened";
|
|
@@ -3993,6 +4901,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
3993
4901
|
rejection_reason: string;
|
|
3994
4902
|
evidence_ref?: string | undefined;
|
|
3995
4903
|
revisit_condition?: string | undefined;
|
|
4904
|
+
candidate_ref?: string | undefined;
|
|
3996
4905
|
}[];
|
|
3997
4906
|
next_strategy_candidates: {
|
|
3998
4907
|
title: string;
|
|
@@ -4005,6 +4914,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4005
4914
|
count: number;
|
|
4006
4915
|
fingerprint: string;
|
|
4007
4916
|
} | undefined;
|
|
4917
|
+
candidate_ref?: string | undefined;
|
|
4008
4918
|
}[];
|
|
4009
4919
|
guidance: string;
|
|
4010
4920
|
context_authority: "advisory_only";
|
|
@@ -4031,6 +4941,32 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4031
4941
|
} | undefined;
|
|
4032
4942
|
}[] | undefined;
|
|
4033
4943
|
}[] | undefined;
|
|
4944
|
+
correction_state?: {
|
|
4945
|
+
status: "active" | "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
4946
|
+
active: boolean;
|
|
4947
|
+
updated_at: string | null;
|
|
4948
|
+
reason: string | null;
|
|
4949
|
+
retained_for_audit: boolean;
|
|
4950
|
+
target_ref: {
|
|
4951
|
+
id: string;
|
|
4952
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
4953
|
+
scope?: {
|
|
4954
|
+
goal_id?: string | undefined;
|
|
4955
|
+
task_id?: string | undefined;
|
|
4956
|
+
run_id?: string | undefined;
|
|
4957
|
+
} | undefined;
|
|
4958
|
+
};
|
|
4959
|
+
replacement_ref: {
|
|
4960
|
+
id: string;
|
|
4961
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
4962
|
+
scope?: {
|
|
4963
|
+
goal_id?: string | undefined;
|
|
4964
|
+
task_id?: string | undefined;
|
|
4965
|
+
run_id?: string | undefined;
|
|
4966
|
+
} | undefined;
|
|
4967
|
+
} | null;
|
|
4968
|
+
latest_correction_id: string | null;
|
|
4969
|
+
} | undefined;
|
|
4034
4970
|
result?: {
|
|
4035
4971
|
status?: string | undefined;
|
|
4036
4972
|
error?: string | undefined;
|
|
@@ -4040,8 +4976,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4040
4976
|
}, {
|
|
4041
4977
|
id: string;
|
|
4042
4978
|
schema_version: "runtime-evidence-entry-v1";
|
|
4043
|
-
kind: "verification" | "observation" | "metric" | "decision" | "failure" | "strategy" | "task_generation" | "research" | "other" | "artifact" | "execution" | "evaluator" | "
|
|
4044
|
-
occurred_at: string;
|
|
4979
|
+
kind: "verification" | "observation" | "metric" | "decision" | "failure" | "strategy" | "task_generation" | "research" | "other" | "artifact" | "dream_checkpoint" | "execution" | "evaluator" | "correction";
|
|
4045
4980
|
scope: {
|
|
4046
4981
|
goal_id?: string | undefined;
|
|
4047
4982
|
task_id?: string | undefined;
|
|
@@ -4049,6 +4984,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4049
4984
|
loop_index?: number | undefined;
|
|
4050
4985
|
run_id?: string | undefined;
|
|
4051
4986
|
};
|
|
4987
|
+
occurred_at: string;
|
|
4052
4988
|
verification?: {
|
|
4053
4989
|
confidence?: number | undefined;
|
|
4054
4990
|
verdict?: string | undefined;
|
|
@@ -4207,6 +5143,60 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4207
5143
|
disposition_reason?: string | undefined;
|
|
4208
5144
|
produced_at?: string | undefined;
|
|
4209
5145
|
}[] | undefined;
|
|
5146
|
+
provenance?: {
|
|
5147
|
+
reliability?: number | undefined;
|
|
5148
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
5149
|
+
source_ref?: string | undefined;
|
|
5150
|
+
raw_refs?: string[] | undefined;
|
|
5151
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
5152
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
5153
|
+
} | undefined;
|
|
5154
|
+
raw_refs?: {
|
|
5155
|
+
kind: string;
|
|
5156
|
+
path?: string | undefined;
|
|
5157
|
+
id?: string | undefined;
|
|
5158
|
+
url?: string | undefined;
|
|
5159
|
+
state_relative_path?: string | undefined;
|
|
5160
|
+
}[] | undefined;
|
|
5161
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
5162
|
+
correction?: {
|
|
5163
|
+
created_at: string;
|
|
5164
|
+
reason: string;
|
|
5165
|
+
provenance: {
|
|
5166
|
+
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
5167
|
+
confidence?: number | null | undefined;
|
|
5168
|
+
evidence_ref?: string | undefined;
|
|
5169
|
+
source_ref?: string | undefined;
|
|
5170
|
+
note?: string | undefined;
|
|
5171
|
+
};
|
|
5172
|
+
correction_id: string;
|
|
5173
|
+
target_ref: {
|
|
5174
|
+
id: string;
|
|
5175
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
5176
|
+
scope?: {
|
|
5177
|
+
goal_id?: string | undefined;
|
|
5178
|
+
task_id?: string | undefined;
|
|
5179
|
+
run_id?: string | undefined;
|
|
5180
|
+
} | undefined;
|
|
5181
|
+
};
|
|
5182
|
+
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
5183
|
+
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
5184
|
+
schema_version?: "memory-correction-entry-v1" | undefined;
|
|
5185
|
+
replacement_ref?: {
|
|
5186
|
+
id: string;
|
|
5187
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
5188
|
+
scope?: {
|
|
5189
|
+
goal_id?: string | undefined;
|
|
5190
|
+
task_id?: string | undefined;
|
|
5191
|
+
run_id?: string | undefined;
|
|
5192
|
+
} | undefined;
|
|
5193
|
+
} | null | undefined;
|
|
5194
|
+
audit?: {
|
|
5195
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
5196
|
+
retained_for_audit?: boolean | undefined;
|
|
5197
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
5198
|
+
} | undefined;
|
|
5199
|
+
} | undefined;
|
|
4210
5200
|
metrics?: {
|
|
4211
5201
|
label: string;
|
|
4212
5202
|
value?: string | number | boolean | null | undefined;
|
|
@@ -4300,6 +5290,15 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4300
5290
|
conclusion?: string | undefined;
|
|
4301
5291
|
} | undefined;
|
|
4302
5292
|
}[] | undefined;
|
|
5293
|
+
quarantine_state?: {
|
|
5294
|
+
status: "quarantined";
|
|
5295
|
+
confidence: number;
|
|
5296
|
+
created_at: string;
|
|
5297
|
+
reason: string;
|
|
5298
|
+
inspection_refs: string[];
|
|
5299
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
5300
|
+
active?: false | undefined;
|
|
5301
|
+
} | undefined;
|
|
4303
5302
|
dream_checkpoints?: {
|
|
4304
5303
|
trigger: "iteration" | "breakthrough" | "plateau" | "pre_finalization";
|
|
4305
5304
|
summary: string;
|
|
@@ -4316,6 +5315,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4316
5315
|
summary: string;
|
|
4317
5316
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
4318
5317
|
recency_score?: number | undefined;
|
|
5318
|
+
provenance?: {
|
|
5319
|
+
reliability?: number | undefined;
|
|
5320
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
5321
|
+
source_ref?: string | undefined;
|
|
5322
|
+
raw_refs?: string[] | undefined;
|
|
5323
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
5324
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
5325
|
+
} | undefined;
|
|
4319
5326
|
ref?: string | undefined;
|
|
4320
5327
|
authority?: "advisory_only" | undefined;
|
|
4321
5328
|
relevance_score?: number | undefined;
|
|
@@ -4326,11 +5333,27 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4326
5333
|
score?: number | undefined;
|
|
4327
5334
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
4328
5335
|
} | undefined;
|
|
5336
|
+
usage_stats?: {
|
|
5337
|
+
last_used_at?: string | null | undefined;
|
|
5338
|
+
use_count?: number | undefined;
|
|
5339
|
+
validated_count?: number | undefined;
|
|
5340
|
+
negative_outcome_count?: number | undefined;
|
|
5341
|
+
} | undefined;
|
|
4329
5342
|
ranking_trace?: {
|
|
4330
5343
|
reason: string;
|
|
4331
5344
|
score: number;
|
|
4332
5345
|
decision: "rejected" | "admitted";
|
|
4333
5346
|
} | undefined;
|
|
5347
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
5348
|
+
quarantine_state?: {
|
|
5349
|
+
status: "quarantined";
|
|
5350
|
+
confidence: number;
|
|
5351
|
+
created_at: string;
|
|
5352
|
+
reason: string;
|
|
5353
|
+
inspection_refs: string[];
|
|
5354
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
5355
|
+
active?: false | undefined;
|
|
5356
|
+
} | undefined;
|
|
4334
5357
|
}[] | undefined;
|
|
4335
5358
|
active_hypotheses?: {
|
|
4336
5359
|
hypothesis: string;
|
|
@@ -4345,6 +5368,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4345
5368
|
confidence?: number | undefined;
|
|
4346
5369
|
evidence_ref?: string | undefined;
|
|
4347
5370
|
revisit_condition?: string | undefined;
|
|
5371
|
+
candidate_ref?: string | undefined;
|
|
4348
5372
|
}[] | undefined;
|
|
4349
5373
|
next_strategy_candidates?: {
|
|
4350
5374
|
title: string;
|
|
@@ -4357,6 +5381,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4357
5381
|
count: number;
|
|
4358
5382
|
fingerprint: string;
|
|
4359
5383
|
} | undefined;
|
|
5384
|
+
candidate_ref?: string | undefined;
|
|
4360
5385
|
}[] | undefined;
|
|
4361
5386
|
run_control_recommendations?: {
|
|
4362
5387
|
rationale: string;
|
|
@@ -4381,23 +5406,42 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4381
5406
|
}[] | undefined;
|
|
4382
5407
|
context_authority?: "advisory_only" | undefined;
|
|
4383
5408
|
}[] | undefined;
|
|
5409
|
+
correction_state?: {
|
|
5410
|
+
status: "active" | "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
5411
|
+
active: boolean;
|
|
5412
|
+
target_ref: {
|
|
5413
|
+
id: string;
|
|
5414
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
5415
|
+
scope?: {
|
|
5416
|
+
goal_id?: string | undefined;
|
|
5417
|
+
task_id?: string | undefined;
|
|
5418
|
+
run_id?: string | undefined;
|
|
5419
|
+
} | undefined;
|
|
5420
|
+
};
|
|
5421
|
+
updated_at?: string | null | undefined;
|
|
5422
|
+
reason?: string | null | undefined;
|
|
5423
|
+
retained_for_audit?: boolean | undefined;
|
|
5424
|
+
replacement_ref?: {
|
|
5425
|
+
id: string;
|
|
5426
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
5427
|
+
scope?: {
|
|
5428
|
+
goal_id?: string | undefined;
|
|
5429
|
+
task_id?: string | undefined;
|
|
5430
|
+
run_id?: string | undefined;
|
|
5431
|
+
} | undefined;
|
|
5432
|
+
} | null | undefined;
|
|
5433
|
+
latest_correction_id?: string | null | undefined;
|
|
5434
|
+
} | undefined;
|
|
4384
5435
|
result?: {
|
|
4385
5436
|
status?: string | undefined;
|
|
4386
5437
|
error?: string | undefined;
|
|
4387
5438
|
summary?: string | undefined;
|
|
4388
5439
|
} | undefined;
|
|
4389
5440
|
decision_reason?: string | undefined;
|
|
4390
|
-
raw_refs?: {
|
|
4391
|
-
kind: string;
|
|
4392
|
-
path?: string | undefined;
|
|
4393
|
-
id?: string | undefined;
|
|
4394
|
-
url?: string | undefined;
|
|
4395
|
-
state_relative_path?: string | undefined;
|
|
4396
|
-
}[] | undefined;
|
|
4397
5441
|
}>, {
|
|
4398
5442
|
id: string;
|
|
4399
5443
|
schema_version: "runtime-evidence-entry-v1";
|
|
4400
|
-
kind: "verification" | "observation" | "metric" | "decision" | "failure" | "strategy" | "task_generation" | "research" | "other" | "artifact" | "execution" | "evaluator" | "
|
|
5444
|
+
kind: "verification" | "observation" | "metric" | "decision" | "failure" | "strategy" | "task_generation" | "research" | "other" | "artifact" | "dream_checkpoint" | "execution" | "evaluator" | "correction";
|
|
4401
5445
|
artifacts: {
|
|
4402
5446
|
label: string;
|
|
4403
5447
|
kind: "url" | "other" | "metrics" | "log" | "report" | "diff";
|
|
@@ -4409,7 +5453,6 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4409
5453
|
size_bytes?: number | undefined;
|
|
4410
5454
|
dependency_refs?: string[] | undefined;
|
|
4411
5455
|
}[];
|
|
4412
|
-
occurred_at: string;
|
|
4413
5456
|
scope: {
|
|
4414
5457
|
goal_id?: string | undefined;
|
|
4415
5458
|
task_id?: string | undefined;
|
|
@@ -4417,6 +5460,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4417
5460
|
loop_index?: number | undefined;
|
|
4418
5461
|
run_id?: string | undefined;
|
|
4419
5462
|
};
|
|
5463
|
+
raw_refs: {
|
|
5464
|
+
kind: string;
|
|
5465
|
+
path?: string | undefined;
|
|
5466
|
+
id?: string | undefined;
|
|
5467
|
+
url?: string | undefined;
|
|
5468
|
+
state_relative_path?: string | undefined;
|
|
5469
|
+
}[];
|
|
5470
|
+
occurred_at: string;
|
|
4420
5471
|
metrics: {
|
|
4421
5472
|
label: string;
|
|
4422
5473
|
value?: string | number | boolean | null | undefined;
|
|
@@ -4427,13 +5478,6 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4427
5478
|
observed_at?: string | undefined;
|
|
4428
5479
|
summary?: string | undefined;
|
|
4429
5480
|
}[];
|
|
4430
|
-
raw_refs: {
|
|
4431
|
-
kind: string;
|
|
4432
|
-
path?: string | undefined;
|
|
4433
|
-
id?: string | undefined;
|
|
4434
|
-
url?: string | undefined;
|
|
4435
|
-
state_relative_path?: string | undefined;
|
|
4436
|
-
}[];
|
|
4437
5481
|
verification?: {
|
|
4438
5482
|
confidence?: number | undefined;
|
|
4439
5483
|
verdict?: string | undefined;
|
|
@@ -4581,6 +5625,53 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4581
5625
|
disposition_reason?: string | undefined;
|
|
4582
5626
|
produced_at?: string | undefined;
|
|
4583
5627
|
}[] | undefined;
|
|
5628
|
+
provenance?: {
|
|
5629
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
5630
|
+
raw_refs: string[];
|
|
5631
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
5632
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
5633
|
+
reliability?: number | undefined;
|
|
5634
|
+
source_ref?: string | undefined;
|
|
5635
|
+
} | undefined;
|
|
5636
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
5637
|
+
correction?: {
|
|
5638
|
+
created_at: string;
|
|
5639
|
+
reason: string;
|
|
5640
|
+
schema_version: "memory-correction-entry-v1";
|
|
5641
|
+
provenance: {
|
|
5642
|
+
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
5643
|
+
confidence: number | null;
|
|
5644
|
+
evidence_ref?: string | undefined;
|
|
5645
|
+
source_ref?: string | undefined;
|
|
5646
|
+
note?: string | undefined;
|
|
5647
|
+
};
|
|
5648
|
+
correction_id: string;
|
|
5649
|
+
target_ref: {
|
|
5650
|
+
id: string;
|
|
5651
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
5652
|
+
scope?: {
|
|
5653
|
+
goal_id?: string | undefined;
|
|
5654
|
+
task_id?: string | undefined;
|
|
5655
|
+
run_id?: string | undefined;
|
|
5656
|
+
} | undefined;
|
|
5657
|
+
};
|
|
5658
|
+
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
5659
|
+
replacement_ref: {
|
|
5660
|
+
id: string;
|
|
5661
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
5662
|
+
scope?: {
|
|
5663
|
+
goal_id?: string | undefined;
|
|
5664
|
+
task_id?: string | undefined;
|
|
5665
|
+
run_id?: string | undefined;
|
|
5666
|
+
} | undefined;
|
|
5667
|
+
} | null;
|
|
5668
|
+
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
5669
|
+
audit: {
|
|
5670
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
5671
|
+
retained_for_audit: boolean;
|
|
5672
|
+
destructive_delete_approved_at: string | null;
|
|
5673
|
+
};
|
|
5674
|
+
} | undefined;
|
|
4584
5675
|
evaluators?: {
|
|
4585
5676
|
status: "unknown" | "pending" | "completed" | "approval_required" | "failed" | "regressed" | "blocked" | "passed" | "ready" | "submitted" | "succeeded";
|
|
4586
5677
|
source: string;
|
|
@@ -4664,6 +5755,15 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4664
5755
|
conclusion?: string | undefined;
|
|
4665
5756
|
} | undefined;
|
|
4666
5757
|
}[] | undefined;
|
|
5758
|
+
quarantine_state?: {
|
|
5759
|
+
status: "quarantined";
|
|
5760
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
5761
|
+
active: false;
|
|
5762
|
+
confidence: number;
|
|
5763
|
+
created_at: string;
|
|
5764
|
+
reason: string;
|
|
5765
|
+
inspection_refs: string[];
|
|
5766
|
+
} | undefined;
|
|
4667
5767
|
dream_checkpoints?: {
|
|
4668
5768
|
confidence: number;
|
|
4669
5769
|
trigger: "iteration" | "breakthrough" | "plateau" | "pre_finalization";
|
|
@@ -4679,6 +5779,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4679
5779
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
4680
5780
|
authority: "advisory_only";
|
|
4681
5781
|
recency_score?: number | undefined;
|
|
5782
|
+
provenance?: {
|
|
5783
|
+
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
5784
|
+
raw_refs: string[];
|
|
5785
|
+
verification_status: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious";
|
|
5786
|
+
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
5787
|
+
reliability?: number | undefined;
|
|
5788
|
+
source_ref?: string | undefined;
|
|
5789
|
+
} | undefined;
|
|
4682
5790
|
ref?: string | undefined;
|
|
4683
5791
|
relevance_score?: number | undefined;
|
|
4684
5792
|
source_reliability?: number | undefined;
|
|
@@ -4688,11 +5796,27 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4688
5796
|
confidence?: number | undefined;
|
|
4689
5797
|
score?: number | undefined;
|
|
4690
5798
|
} | undefined;
|
|
5799
|
+
usage_stats?: {
|
|
5800
|
+
last_used_at: string | null;
|
|
5801
|
+
use_count: number;
|
|
5802
|
+
validated_count: number;
|
|
5803
|
+
negative_outcome_count: number;
|
|
5804
|
+
} | undefined;
|
|
4691
5805
|
ranking_trace?: {
|
|
4692
5806
|
reason: string;
|
|
4693
5807
|
score: number;
|
|
4694
5808
|
decision: "rejected" | "admitted";
|
|
4695
5809
|
} | undefined;
|
|
5810
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
5811
|
+
quarantine_state?: {
|
|
5812
|
+
status: "quarantined";
|
|
5813
|
+
source: "system" | "user" | "runtime_verification" | "memory_lint";
|
|
5814
|
+
active: false;
|
|
5815
|
+
confidence: number;
|
|
5816
|
+
created_at: string;
|
|
5817
|
+
reason: string;
|
|
5818
|
+
inspection_refs: string[];
|
|
5819
|
+
} | undefined;
|
|
4696
5820
|
}[];
|
|
4697
5821
|
active_hypotheses: {
|
|
4698
5822
|
status: "active" | "testing" | "supported" | "weakened";
|
|
@@ -4707,6 +5831,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4707
5831
|
rejection_reason: string;
|
|
4708
5832
|
evidence_ref?: string | undefined;
|
|
4709
5833
|
revisit_condition?: string | undefined;
|
|
5834
|
+
candidate_ref?: string | undefined;
|
|
4710
5835
|
}[];
|
|
4711
5836
|
next_strategy_candidates: {
|
|
4712
5837
|
title: string;
|
|
@@ -4719,6 +5844,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4719
5844
|
count: number;
|
|
4720
5845
|
fingerprint: string;
|
|
4721
5846
|
} | undefined;
|
|
5847
|
+
candidate_ref?: string | undefined;
|
|
4722
5848
|
}[];
|
|
4723
5849
|
guidance: string;
|
|
4724
5850
|
context_authority: "advisory_only";
|
|
@@ -4745,6 +5871,32 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4745
5871
|
} | undefined;
|
|
4746
5872
|
}[] | undefined;
|
|
4747
5873
|
}[] | undefined;
|
|
5874
|
+
correction_state?: {
|
|
5875
|
+
status: "active" | "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
5876
|
+
active: boolean;
|
|
5877
|
+
updated_at: string | null;
|
|
5878
|
+
reason: string | null;
|
|
5879
|
+
retained_for_audit: boolean;
|
|
5880
|
+
target_ref: {
|
|
5881
|
+
id: string;
|
|
5882
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
5883
|
+
scope?: {
|
|
5884
|
+
goal_id?: string | undefined;
|
|
5885
|
+
task_id?: string | undefined;
|
|
5886
|
+
run_id?: string | undefined;
|
|
5887
|
+
} | undefined;
|
|
5888
|
+
};
|
|
5889
|
+
replacement_ref: {
|
|
5890
|
+
id: string;
|
|
5891
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
5892
|
+
scope?: {
|
|
5893
|
+
goal_id?: string | undefined;
|
|
5894
|
+
task_id?: string | undefined;
|
|
5895
|
+
run_id?: string | undefined;
|
|
5896
|
+
} | undefined;
|
|
5897
|
+
} | null;
|
|
5898
|
+
latest_correction_id: string | null;
|
|
5899
|
+
} | undefined;
|
|
4748
5900
|
result?: {
|
|
4749
5901
|
status?: string | undefined;
|
|
4750
5902
|
error?: string | undefined;
|
|
@@ -4754,8 +5906,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4754
5906
|
}, {
|
|
4755
5907
|
id: string;
|
|
4756
5908
|
schema_version: "runtime-evidence-entry-v1";
|
|
4757
|
-
kind: "verification" | "observation" | "metric" | "decision" | "failure" | "strategy" | "task_generation" | "research" | "other" | "artifact" | "execution" | "evaluator" | "
|
|
4758
|
-
occurred_at: string;
|
|
5909
|
+
kind: "verification" | "observation" | "metric" | "decision" | "failure" | "strategy" | "task_generation" | "research" | "other" | "artifact" | "dream_checkpoint" | "execution" | "evaluator" | "correction";
|
|
4759
5910
|
scope: {
|
|
4760
5911
|
goal_id?: string | undefined;
|
|
4761
5912
|
task_id?: string | undefined;
|
|
@@ -4763,6 +5914,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4763
5914
|
loop_index?: number | undefined;
|
|
4764
5915
|
run_id?: string | undefined;
|
|
4765
5916
|
};
|
|
5917
|
+
occurred_at: string;
|
|
4766
5918
|
verification?: {
|
|
4767
5919
|
confidence?: number | undefined;
|
|
4768
5920
|
verdict?: string | undefined;
|
|
@@ -4921,6 +6073,60 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
4921
6073
|
disposition_reason?: string | undefined;
|
|
4922
6074
|
produced_at?: string | undefined;
|
|
4923
6075
|
}[] | undefined;
|
|
6076
|
+
provenance?: {
|
|
6077
|
+
reliability?: number | undefined;
|
|
6078
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
6079
|
+
source_ref?: string | undefined;
|
|
6080
|
+
raw_refs?: string[] | undefined;
|
|
6081
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
6082
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
6083
|
+
} | undefined;
|
|
6084
|
+
raw_refs?: {
|
|
6085
|
+
kind: string;
|
|
6086
|
+
path?: string | undefined;
|
|
6087
|
+
id?: string | undefined;
|
|
6088
|
+
url?: string | undefined;
|
|
6089
|
+
state_relative_path?: string | undefined;
|
|
6090
|
+
}[] | undefined;
|
|
6091
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
6092
|
+
correction?: {
|
|
6093
|
+
created_at: string;
|
|
6094
|
+
reason: string;
|
|
6095
|
+
provenance: {
|
|
6096
|
+
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
6097
|
+
confidence?: number | null | undefined;
|
|
6098
|
+
evidence_ref?: string | undefined;
|
|
6099
|
+
source_ref?: string | undefined;
|
|
6100
|
+
note?: string | undefined;
|
|
6101
|
+
};
|
|
6102
|
+
correction_id: string;
|
|
6103
|
+
target_ref: {
|
|
6104
|
+
id: string;
|
|
6105
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
6106
|
+
scope?: {
|
|
6107
|
+
goal_id?: string | undefined;
|
|
6108
|
+
task_id?: string | undefined;
|
|
6109
|
+
run_id?: string | undefined;
|
|
6110
|
+
} | undefined;
|
|
6111
|
+
};
|
|
6112
|
+
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
6113
|
+
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
6114
|
+
schema_version?: "memory-correction-entry-v1" | undefined;
|
|
6115
|
+
replacement_ref?: {
|
|
6116
|
+
id: string;
|
|
6117
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
6118
|
+
scope?: {
|
|
6119
|
+
goal_id?: string | undefined;
|
|
6120
|
+
task_id?: string | undefined;
|
|
6121
|
+
run_id?: string | undefined;
|
|
6122
|
+
} | undefined;
|
|
6123
|
+
} | null | undefined;
|
|
6124
|
+
audit?: {
|
|
6125
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
6126
|
+
retained_for_audit?: boolean | undefined;
|
|
6127
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
6128
|
+
} | undefined;
|
|
6129
|
+
} | undefined;
|
|
4924
6130
|
metrics?: {
|
|
4925
6131
|
label: string;
|
|
4926
6132
|
value?: string | number | boolean | null | undefined;
|
|
@@ -5014,6 +6220,15 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
5014
6220
|
conclusion?: string | undefined;
|
|
5015
6221
|
} | undefined;
|
|
5016
6222
|
}[] | undefined;
|
|
6223
|
+
quarantine_state?: {
|
|
6224
|
+
status: "quarantined";
|
|
6225
|
+
confidence: number;
|
|
6226
|
+
created_at: string;
|
|
6227
|
+
reason: string;
|
|
6228
|
+
inspection_refs: string[];
|
|
6229
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
6230
|
+
active?: false | undefined;
|
|
6231
|
+
} | undefined;
|
|
5017
6232
|
dream_checkpoints?: {
|
|
5018
6233
|
trigger: "iteration" | "breakthrough" | "plateau" | "pre_finalization";
|
|
5019
6234
|
summary: string;
|
|
@@ -5030,6 +6245,14 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
5030
6245
|
summary: string;
|
|
5031
6246
|
source_type: "other" | "soil" | "playbook" | "runtime_evidence";
|
|
5032
6247
|
recency_score?: number | undefined;
|
|
6248
|
+
provenance?: {
|
|
6249
|
+
reliability?: number | undefined;
|
|
6250
|
+
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
6251
|
+
source_ref?: string | undefined;
|
|
6252
|
+
raw_refs?: string[] | undefined;
|
|
6253
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
6254
|
+
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
6255
|
+
} | undefined;
|
|
5033
6256
|
ref?: string | undefined;
|
|
5034
6257
|
authority?: "advisory_only" | undefined;
|
|
5035
6258
|
relevance_score?: number | undefined;
|
|
@@ -5040,11 +6263,27 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
5040
6263
|
score?: number | undefined;
|
|
5041
6264
|
kind?: "unknown" | "manual" | "checkpoint" | "route_hit" | "fallback_hit" | undefined;
|
|
5042
6265
|
} | undefined;
|
|
6266
|
+
usage_stats?: {
|
|
6267
|
+
last_used_at?: string | null | undefined;
|
|
6268
|
+
use_count?: number | undefined;
|
|
6269
|
+
validated_count?: number | undefined;
|
|
6270
|
+
negative_outcome_count?: number | undefined;
|
|
6271
|
+
} | undefined;
|
|
5043
6272
|
ranking_trace?: {
|
|
5044
6273
|
reason: string;
|
|
5045
6274
|
score: number;
|
|
5046
6275
|
decision: "rejected" | "admitted";
|
|
5047
6276
|
} | undefined;
|
|
6277
|
+
verification_status?: "unknown" | "unverified" | "verified" | "contradicted" | "suspicious" | undefined;
|
|
6278
|
+
quarantine_state?: {
|
|
6279
|
+
status: "quarantined";
|
|
6280
|
+
confidence: number;
|
|
6281
|
+
created_at: string;
|
|
6282
|
+
reason: string;
|
|
6283
|
+
inspection_refs: string[];
|
|
6284
|
+
source?: "system" | "user" | "runtime_verification" | "memory_lint" | undefined;
|
|
6285
|
+
active?: false | undefined;
|
|
6286
|
+
} | undefined;
|
|
5048
6287
|
}[] | undefined;
|
|
5049
6288
|
active_hypotheses?: {
|
|
5050
6289
|
hypothesis: string;
|
|
@@ -5059,6 +6298,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
5059
6298
|
confidence?: number | undefined;
|
|
5060
6299
|
evidence_ref?: string | undefined;
|
|
5061
6300
|
revisit_condition?: string | undefined;
|
|
6301
|
+
candidate_ref?: string | undefined;
|
|
5062
6302
|
}[] | undefined;
|
|
5063
6303
|
next_strategy_candidates?: {
|
|
5064
6304
|
title: string;
|
|
@@ -5071,6 +6311,7 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
5071
6311
|
count: number;
|
|
5072
6312
|
fingerprint: string;
|
|
5073
6313
|
} | undefined;
|
|
6314
|
+
candidate_ref?: string | undefined;
|
|
5074
6315
|
}[] | undefined;
|
|
5075
6316
|
run_control_recommendations?: {
|
|
5076
6317
|
rationale: string;
|
|
@@ -5095,19 +6336,38 @@ export declare const RuntimeEvidenceEntrySchema: z.ZodEffects<z.ZodObject<{
|
|
|
5095
6336
|
}[] | undefined;
|
|
5096
6337
|
context_authority?: "advisory_only" | undefined;
|
|
5097
6338
|
}[] | undefined;
|
|
6339
|
+
correction_state?: {
|
|
6340
|
+
status: "active" | "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
6341
|
+
active: boolean;
|
|
6342
|
+
target_ref: {
|
|
6343
|
+
id: string;
|
|
6344
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
6345
|
+
scope?: {
|
|
6346
|
+
goal_id?: string | undefined;
|
|
6347
|
+
task_id?: string | undefined;
|
|
6348
|
+
run_id?: string | undefined;
|
|
6349
|
+
} | undefined;
|
|
6350
|
+
};
|
|
6351
|
+
updated_at?: string | null | undefined;
|
|
6352
|
+
reason?: string | null | undefined;
|
|
6353
|
+
retained_for_audit?: boolean | undefined;
|
|
6354
|
+
replacement_ref?: {
|
|
6355
|
+
id: string;
|
|
6356
|
+
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
6357
|
+
scope?: {
|
|
6358
|
+
goal_id?: string | undefined;
|
|
6359
|
+
task_id?: string | undefined;
|
|
6360
|
+
run_id?: string | undefined;
|
|
6361
|
+
} | undefined;
|
|
6362
|
+
} | null | undefined;
|
|
6363
|
+
latest_correction_id?: string | null | undefined;
|
|
6364
|
+
} | undefined;
|
|
5098
6365
|
result?: {
|
|
5099
6366
|
status?: string | undefined;
|
|
5100
6367
|
error?: string | undefined;
|
|
5101
6368
|
summary?: string | undefined;
|
|
5102
6369
|
} | undefined;
|
|
5103
6370
|
decision_reason?: string | undefined;
|
|
5104
|
-
raw_refs?: {
|
|
5105
|
-
kind: string;
|
|
5106
|
-
path?: string | undefined;
|
|
5107
|
-
id?: string | undefined;
|
|
5108
|
-
url?: string | undefined;
|
|
5109
|
-
state_relative_path?: string | undefined;
|
|
5110
|
-
}[] | undefined;
|
|
5111
6371
|
}>;
|
|
5112
6372
|
export type RuntimeEvidenceEntry = z.infer<typeof RuntimeEvidenceEntrySchema>;
|
|
5113
6373
|
export type RuntimeEvidenceEntryInput = Omit<RuntimeEvidenceEntry, "schema_version" | "id" | "occurred_at" | "metrics" | "evaluators" | "research" | "dream_checkpoints" | "divergent_exploration" | "artifacts" | "raw_refs"> & Partial<Pick<RuntimeEvidenceEntry, "id" | "occurred_at" | "metrics" | "evaluators" | "research" | "dream_checkpoints" | "divergent_exploration" | "artifacts" | "raw_refs">>;
|
|
@@ -5229,6 +6489,7 @@ export interface RuntimeNearMissCandidateContext {
|
|
|
5229
6489
|
}
|
|
5230
6490
|
export interface RuntimeEvidenceSummary {
|
|
5231
6491
|
schema_version: "runtime-evidence-summary-v1";
|
|
6492
|
+
context_policy_version: "quarantine-filtered-planning-context-v2";
|
|
5232
6493
|
generated_at: string;
|
|
5233
6494
|
scope: {
|
|
5234
6495
|
goal_id?: string;
|
|
@@ -5242,6 +6503,8 @@ export interface RuntimeEvidenceSummary {
|
|
|
5242
6503
|
research_memos: RuntimeResearchMemoContext[];
|
|
5243
6504
|
dream_checkpoints: RuntimeDreamCheckpointContext[];
|
|
5244
6505
|
divergent_exploration: RuntimeEvidenceDivergentHypothesis[];
|
|
6506
|
+
corrections: MemoryCorrectionEntry[];
|
|
6507
|
+
correction_state: Record<string, MemoryCorrectionTargetState>;
|
|
5245
6508
|
candidate_lineages: RuntimeCandidateLineageContext[];
|
|
5246
6509
|
recommended_candidate_portfolio: RuntimeCandidatePortfolioSlot[];
|
|
5247
6510
|
candidate_selection_summary: RuntimeCandidateSelectionSummary;
|
|
@@ -5259,9 +6522,19 @@ export interface RuntimeEvidenceSummaryIndex {
|
|
|
5259
6522
|
canonical_log_size: number;
|
|
5260
6523
|
canonical_log_mtime_ms: number;
|
|
5261
6524
|
summary: RuntimeEvidenceSummary;
|
|
6525
|
+
checkpoint?: RuntimeEvidenceSummaryCheckpoint;
|
|
6526
|
+
}
|
|
6527
|
+
interface RuntimeEvidenceSummaryCheckpoint {
|
|
6528
|
+
schema_version: "runtime-evidence-summary-checkpoint-v1";
|
|
6529
|
+
entries: RuntimeEvidenceEntry[];
|
|
6530
|
+
warnings: RuntimeEvidenceReadWarning[];
|
|
5262
6531
|
}
|
|
5263
6532
|
export interface RuntimeEvidenceLedgerPort {
|
|
5264
6533
|
append(input: RuntimeEvidenceEntryInput): Promise<RuntimeEvidenceEntry[]>;
|
|
6534
|
+
appendCorrection?(input: MemoryCorrectionEntryInput & {
|
|
6535
|
+
scope: RuntimeEvidenceEntry["scope"];
|
|
6536
|
+
evidence_id?: string;
|
|
6537
|
+
}): Promise<MemoryCorrectionEntry>;
|
|
5265
6538
|
readByGoal?(goalId: string): Promise<RuntimeEvidenceReadResult>;
|
|
5266
6539
|
readByRun?(runId: string): Promise<RuntimeEvidenceReadResult>;
|
|
5267
6540
|
summarizeGoal?(goalId: string): Promise<RuntimeEvidenceSummary>;
|
|
@@ -5276,6 +6549,10 @@ export declare class RuntimeEvidenceLedger implements RuntimeEvidenceLedgerPort
|
|
|
5276
6549
|
goalPath(goalId: string): string;
|
|
5277
6550
|
runPath(runId: string): string;
|
|
5278
6551
|
append(input: RuntimeEvidenceEntryInput): Promise<RuntimeEvidenceEntry[]>;
|
|
6552
|
+
appendCorrection(input: MemoryCorrectionEntryInput & {
|
|
6553
|
+
scope: RuntimeEvidenceEntry["scope"];
|
|
6554
|
+
evidence_id?: string;
|
|
6555
|
+
}): Promise<MemoryCorrectionEntry>;
|
|
5279
6556
|
readByGoal(goalId: string): Promise<RuntimeEvidenceReadResult>;
|
|
5280
6557
|
readByRun(runId: string): Promise<RuntimeEvidenceReadResult>;
|
|
5281
6558
|
summarizeGoal(goalId: string): Promise<RuntimeEvidenceSummary>;
|