@haaaiawd/second-nature 0.1.50 → 0.1.51
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/SKILL.md +22 -320
- package/{docs/claw-second-nature-inner-guide.md → agent-inner-guide.md} +43 -0
- package/openclaw.plugin.json +29 -0
- package/package.json +32 -61
- package/{dist/src → runtime}/cli/commands/index.js +325 -325
- package/{dist/src → runtime}/cli/ops/heartbeat-surface.d.ts +84 -84
- package/{dist/src → runtime}/cli/ops/heartbeat-surface.js +100 -100
- package/{dist/src → runtime}/cli/ops/ops-router.js +1482 -1482
- package/{dist/src → runtime}/cli/ops/workspace-heartbeat-runner.d.ts +85 -85
- package/{dist/src → runtime}/cli/ops/workspace-heartbeat-runner.js +242 -242
- package/{dist/src → runtime}/connectors/base/contract.d.ts +111 -111
- package/{dist/src → runtime}/connectors/base/failure-taxonomy.d.ts +13 -13
- package/{dist/src → runtime}/connectors/base/failure-taxonomy.js +186 -186
- package/{dist/src → runtime}/connectors/base/map-life-evidence.js +137 -137
- package/{dist/src → runtime}/connectors/base/policy-layer.js +202 -202
- package/{dist/src → runtime}/connectors/manifest/manifest-schema.d.ts +152 -152
- package/{dist/src → runtime}/connectors/manifest/manifest-schema.js +54 -54
- package/{dist/src → runtime}/connectors/services/connector-executor-adapter.d.ts +20 -20
- package/{dist/src → runtime}/connectors/services/connector-executor-adapter.js +645 -645
- package/{dist/src → runtime}/core/second-nature/heartbeat/goal-lifecycle-policy.d.ts +24 -24
- package/{dist/src → runtime}/core/second-nature/heartbeat/goal-lifecycle-policy.js +61 -61
- package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-loop.d.ts +97 -97
- package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-loop.js +397 -397
- package/{dist/src → runtime}/core/second-nature/orchestrator/platform-capability-router.js +149 -149
- package/HEARTBEAT.md +0 -44
- package/LICENSE +0 -176
- package/README.md +0 -136
- package/README.zh-CN.md +0 -120
- package/dist/data/observability.db +0 -0
- package/dist/data/state.db +0 -0
- package/dist/plugin/index.d.ts +0 -31
- package/dist/plugin/workspace-ops-bridge.d.ts +0 -15
- package/dist/scripts/build-plugin-package.d.ts +0 -12
- package/dist/scripts/build-plugin-package.js +0 -220
- package/dist/scripts/build-plugin-runtime.d.ts +0 -10
- package/dist/scripts/build-plugin-runtime.js +0 -198
- package/dist/scripts/packaging-feasibility-poc.d.ts +0 -1
- package/dist/scripts/packaging-feasibility-poc.js +0 -127
- package/dist/scripts/plugin-smoke-check.d.ts +0 -1
- package/dist/scripts/plugin-smoke-check.js +0 -124
- package/dist/src/cli/action-bridge.d.ts +0 -11
- package/dist/src/cli/index.d.ts +0 -65
- package/dist/tests/integration/cli/cli-ops-surface.test.d.ts +0 -1
- package/dist/tests/integration/cli/cli-ops-surface.test.js +0 -380
- package/dist/tests/integration/cli/heartbeat-surface-workspace.test.d.ts +0 -1
- package/dist/tests/integration/cli/heartbeat-surface-workspace.test.js +0 -61
- package/dist/tests/integration/cli/host-capability-probe.test.d.ts +0 -1
- package/dist/tests/integration/cli/host-capability-probe.test.js +0 -37
- package/dist/tests/integration/cli/host-smoke-heartbeat-tool.test.d.ts +0 -1
- package/dist/tests/integration/cli/host-smoke-heartbeat-tool.test.js +0 -34
- package/dist/tests/integration/cli/plugin-packaging-walkthrough.test.d.ts +0 -1
- package/dist/tests/integration/cli/plugin-packaging-walkthrough.test.js +0 -79
- package/dist/tests/integration/cli/plugin-runtime-registration.test.d.ts +0 -1
- package/dist/tests/integration/cli/plugin-runtime-registration.test.js +0 -285
- package/dist/tests/integration/cli/plugin-workspace-ops-bridge.test.d.ts +0 -1
- package/dist/tests/integration/cli/plugin-workspace-ops-bridge.test.js +0 -487
- package/dist/tests/integration/cli/t1-2-1-explain-read-models.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-1-explain-read-models.test.js +0 -58
- package/dist/tests/integration/cli/t1-2-1-narrative-command.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-1-narrative-command.test.js +0 -194
- package/dist/tests/integration/cli/t1-2-2-dream-recent.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-2-dream-recent.test.js +0 -100
- package/dist/tests/integration/cli/t1-2-3-status-observability-writeback.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-3-status-observability-writeback.test.js +0 -71
- package/dist/tests/integration/cli/t1-2-4-quiet-report-read-canonical.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-4-quiet-report-read-canonical.test.js +0 -206
- package/dist/tests/integration/cli/t1-2-5-cycle-recent.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-5-cycle-recent.test.js +0 -156
- package/dist/tests/integration/cli/t1-2-5-status-delivery-posture-audit-store.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-5-status-delivery-posture-audit-store.test.js +0 -95
- package/dist/tests/integration/cli/t1-2-6-policy-show-non-shell.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-6-policy-show-non-shell.test.js +0 -74
- package/dist/tests/integration/cli/t1-2-6-status-aggregate.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-6-status-aggregate.test.js +0 -223
- package/dist/tests/integration/cli/t1-2-7-audit-command-minimal-closure.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-7-audit-command-minimal-closure.test.js +0 -101
- package/dist/tests/integration/cli/t1-2-8-capability-probe-ops-surface.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-8-capability-probe-ops-surface.test.js +0 -74
- package/dist/tests/integration/cli/t1-2-9-decision-denied-not-degraded.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-2-9-decision-denied-not-degraded.test.js +0 -79
- package/dist/tests/integration/cli/t1-4-1-runtime-secret-bootstrap.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-4-1-runtime-secret-bootstrap.test.js +0 -139
- package/dist/tests/integration/cli/t1-4-2-activation-ux-contract.test.d.ts +0 -1
- package/dist/tests/integration/cli/t1-4-2-activation-ux-contract.test.js +0 -143
- package/dist/tests/integration/cli/t2-2-2-snapshot-life-evidence.test.d.ts +0 -1
- package/dist/tests/integration/cli/t2-2-2-snapshot-life-evidence.test.js +0 -116
- package/dist/tests/integration/cli/t3-3-2-near-real-smoke-cli-bridge.test.d.ts +0 -1
- package/dist/tests/integration/cli/t3-3-2-near-real-smoke-cli-bridge.test.js +0 -69
- package/dist/tests/integration/connectors/connector-base.test.d.ts +0 -1
- package/dist/tests/integration/connectors/connector-base.test.js +0 -211
- package/dist/tests/integration/connectors/connector-executor-adapter-honest-failure.test.d.ts +0 -1
- package/dist/tests/integration/connectors/connector-executor-adapter-honest-failure.test.js +0 -311
- package/dist/tests/integration/connectors/credential-optional-regression.test.d.ts +0 -1
- package/dist/tests/integration/connectors/credential-optional-regression.test.js +0 -117
- package/dist/tests/integration/connectors/declarative-http-runner.test.d.ts +0 -7
- package/dist/tests/integration/connectors/declarative-http-runner.test.js +0 -229
- package/dist/tests/integration/connectors/evomap-secret-port.test.d.ts +0 -1
- package/dist/tests/integration/connectors/evomap-secret-port.test.js +0 -83
- package/dist/tests/integration/connectors/life-evidence-chain.test.d.ts +0 -1
- package/dist/tests/integration/connectors/life-evidence-chain.test.js +0 -188
- package/dist/tests/integration/connectors/moltbook-client.test.d.ts +0 -1
- package/dist/tests/integration/connectors/moltbook-client.test.js +0 -274
- package/dist/tests/integration/connectors/moltbook-mock-runner.test.d.ts +0 -7
- package/dist/tests/integration/connectors/moltbook-mock-runner.test.js +0 -108
- package/dist/tests/integration/connectors/near-real-connector-smoke.test.d.ts +0 -1
- package/dist/tests/integration/connectors/near-real-connector-smoke.test.js +0 -38
- package/dist/tests/integration/connectors/platform-adapters.test.d.ts +0 -1
- package/dist/tests/integration/connectors/platform-adapters.test.js +0 -189
- package/dist/tests/integration/connectors/policy-layer.test.d.ts +0 -1
- package/dist/tests/integration/connectors/policy-layer.test.js +0 -249
- package/dist/tests/integration/connectors/scriptable-node-e2e.test.d.ts +0 -1
- package/dist/tests/integration/connectors/scriptable-node-e2e.test.js +0 -228
- package/dist/tests/integration/connectors/t3-3-1-real-connector-evidence.test.d.ts +0 -1
- package/dist/tests/integration/connectors/t3-3-1-real-connector-evidence.test.js +0 -171
- package/dist/tests/integration/control-plane/_helpers/decision-cycle-harness.d.ts +0 -40
- package/dist/tests/integration/control-plane/_helpers/decision-cycle-harness.js +0 -116
- package/dist/tests/integration/control-plane/decision-loop-validation.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/decision-loop-validation.test.js +0 -319
- package/dist/tests/integration/control-plane/delivery-failed-fallback.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/delivery-failed-fallback.test.js +0 -118
- package/dist/tests/integration/control-plane/dream-projection-heartbeat.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/dream-projection-heartbeat.test.js +0 -109
- package/dist/tests/integration/control-plane/effect-dispatcher.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/effect-dispatcher.test.js +0 -157
- package/dist/tests/integration/control-plane/guidance-request.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/guidance-request.test.js +0 -63
- package/dist/tests/integration/control-plane/heartbeat-executor.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-executor.test.js +0 -363
- package/dist/tests/integration/control-plane/heartbeat-loop.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-loop.test.js +0 -190
- package/dist/tests/integration/control-plane/heartbeat-quiet-orchestration.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-quiet-orchestration.test.js +0 -133
- package/dist/tests/integration/control-plane/heartbeat-spine-integration.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-spine-integration.test.js +0 -342
- package/dist/tests/integration/control-plane/heartbeat-spine.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/heartbeat-spine.test.js +0 -216
- package/dist/tests/integration/control-plane/int-s3-outreach-delivery-quiet-closure.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/int-s3-outreach-delivery-quiet-closure.test.js +0 -241
- package/dist/tests/integration/control-plane/outreach-resume.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/outreach-resume.test.js +0 -158
- package/dist/tests/integration/control-plane/outreach-style.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/outreach-style.test.js +0 -46
- package/dist/tests/integration/control-plane/quiet-reflection.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/quiet-reflection.test.js +0 -73
- package/dist/tests/integration/control-plane/rhythm-intent-guard.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/rhythm-intent-guard.test.js +0 -99
- package/dist/tests/integration/control-plane/run-heartbeat-cycle.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/run-heartbeat-cycle.test.js +0 -80
- package/dist/tests/integration/control-plane/t2-3-1-outreach-v6.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/t2-3-1-outreach-v6.test.js +0 -208
- package/dist/tests/integration/control-plane/t2-4-1-heartbeat-platform-intent.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/t2-4-1-heartbeat-platform-intent.test.js +0 -156
- package/dist/tests/integration/control-plane/t2-4-2-source-backed-outreach-loop.test.d.ts +0 -1
- package/dist/tests/integration/control-plane/t2-4-2-source-backed-outreach-loop.test.js +0 -188
- package/dist/tests/integration/control-plane/v7c-evidence-body-feedback.test.d.ts +0 -11
- package/dist/tests/integration/control-plane/v7c-evidence-body-feedback.test.js +0 -213
- package/dist/tests/integration/control-plane/v7c-heartbeat-unlock-e2e.test.d.ts +0 -9
- package/dist/tests/integration/control-plane/v7c-heartbeat-unlock-e2e.test.js +0 -134
- package/dist/tests/integration/dream/quiet-dream-trigger.test.d.ts +0 -1
- package/dist/tests/integration/dream/quiet-dream-trigger.test.js +0 -86
- package/dist/tests/integration/dream/t7-1-1-dream-pipeline.test.d.ts +0 -1
- package/dist/tests/integration/dream/t7-1-1-dream-pipeline.test.js +0 -378
- package/dist/tests/integration/dream/t7-1-2-dream-scheduler.test.d.ts +0 -1
- package/dist/tests/integration/dream/t7-1-2-dream-scheduler.test.js +0 -124
- package/dist/tests/integration/dream/v7c-rhythm-loop.test.d.ts +0 -10
- package/dist/tests/integration/dream/v7c-rhythm-loop.test.js +0 -185
- package/dist/tests/integration/guidance/assembler-and-fallback.test.d.ts +0 -1
- package/dist/tests/integration/guidance/assembler-and-fallback.test.js +0 -86
- package/dist/tests/integration/guidance/outreach-draft-contract.test.d.ts +0 -1
- package/dist/tests/integration/guidance/outreach-draft-contract.test.js +0 -106
- package/dist/tests/integration/guidance/persona-selection.test.d.ts +0 -1
- package/dist/tests/integration/guidance/persona-selection.test.js +0 -70
- package/dist/tests/integration/guidance/template-review.test.d.ts +0 -1
- package/dist/tests/integration/guidance/template-review.test.js +0 -26
- package/dist/tests/integration/guidance/user-reply-continuity.test.d.ts +0 -1
- package/dist/tests/integration/guidance/user-reply-continuity.test.js +0 -96
- package/dist/tests/integration/guidance/v7c-guidance-chain.test.d.ts +0 -1
- package/dist/tests/integration/guidance/v7c-guidance-chain.test.js +0 -190
- package/dist/tests/integration/guidance/v7c-guidance-semantics.test.d.ts +0 -1
- package/dist/tests/integration/guidance/v7c-guidance-semantics.test.js +0 -146
- package/dist/tests/integration/observability/digest-delivery.test.d.ts +0 -14
- package/dist/tests/integration/observability/digest-delivery.test.js +0 -160
- package/dist/tests/integration/observability/evidence-query-engine.test.d.ts +0 -1
- package/dist/tests/integration/observability/evidence-query-engine.test.js +0 -219
- package/dist/tests/integration/observability/explain-query-export.test.d.ts +0 -1
- package/dist/tests/integration/observability/explain-query-export.test.js +0 -92
- package/dist/tests/integration/observability/guidance-audit.test.d.ts +0 -1
- package/dist/tests/integration/observability/guidance-audit.test.js +0 -55
- package/dist/tests/integration/observability/heartbeat-decision-record.test.d.ts +0 -1
- package/dist/tests/integration/observability/heartbeat-decision-record.test.js +0 -223
- package/dist/tests/integration/observability/heartbeat-narrative-trace.test.d.ts +0 -1
- package/dist/tests/integration/observability/heartbeat-narrative-trace.test.js +0 -230
- package/dist/tests/integration/observability/lived-experience-audit-chain.test.d.ts +0 -1
- package/dist/tests/integration/observability/lived-experience-audit-chain.test.js +0 -43
- package/dist/tests/integration/observability/observability-gates.test.d.ts +0 -1
- package/dist/tests/integration/observability/observability-gates.test.js +0 -224
- package/dist/tests/integration/observability/observability-retention-cleanup.test.d.ts +0 -1
- package/dist/tests/integration/observability/observability-retention-cleanup.test.js +0 -94
- package/dist/tests/integration/observability/observability-services.test.d.ts +0 -1
- package/dist/tests/integration/observability/observability-services.test.js +0 -219
- package/dist/tests/integration/observability/projections.test.d.ts +0 -1
- package/dist/tests/integration/observability/projections.test.js +0 -36
- package/dist/tests/integration/observability/t5-1-1-dream-trace-audit.test.d.ts +0 -1
- package/dist/tests/integration/observability/t5-1-1-dream-trace-audit.test.js +0 -115
- package/dist/tests/integration/plugin/plugin-registration.test.d.ts +0 -16
- package/dist/tests/integration/plugin/plugin-registration.test.js +0 -151
- package/dist/tests/integration/runtime-ops/commands.test.d.ts +0 -16
- package/dist/tests/integration/runtime-ops/commands.test.js +0 -662
- package/dist/tests/integration/s3-exit/int-s3-body-heartbeat.test.d.ts +0 -15
- package/dist/tests/integration/s3-exit/int-s3-body-heartbeat.test.js +0 -462
- package/dist/tests/integration/s5-exit/int-s5-observability.test.d.ts +0 -17
- package/dist/tests/integration/s5-exit/int-s5-observability.test.js +0 -402
- package/dist/tests/integration/state/t4-2-1-owner-reply-relationship-loop.test.d.ts +0 -1
- package/dist/tests/integration/state/t4-2-1-owner-reply-relationship-loop.test.js +0 -132
- package/dist/tests/integration/state/v7c-identity-goal-hygiene.test.d.ts +0 -9
- package/dist/tests/integration/state/v7c-identity-goal-hygiene.test.js +0 -240
- package/dist/tests/integration/storage/packaged-runtime-smoke.test.d.ts +0 -1
- package/dist/tests/integration/storage/packaged-runtime-smoke.test.js +0 -17
- package/dist/tests/integration/storage/persona-candidate-loader.test.d.ts +0 -1
- package/dist/tests/integration/storage/persona-candidate-loader.test.js +0 -23
- package/dist/tests/integration/storage/quiet-artifact-writer.test.d.ts +0 -1
- package/dist/tests/integration/storage/quiet-artifact-writer.test.js +0 -66
- package/dist/tests/integration/storage/repair-and-backup.test.d.ts +0 -1
- package/dist/tests/integration/storage/repair-and-backup.test.js +0 -125
- package/dist/tests/integration/storage/schema-migration.test.d.ts +0 -11
- package/dist/tests/integration/storage/schema-migration.test.js +0 -183
- package/dist/tests/integration/storage/storage-mode-smoke.test.d.ts +0 -1
- package/dist/tests/integration/storage/storage-mode-smoke.test.js +0 -18
- package/dist/tests/integration/storage/t4-1-5-memory-store-lifecycle.test.d.ts +0 -1
- package/dist/tests/integration/storage/t4-1-5-memory-store-lifecycle.test.js +0 -118
- package/dist/tests/unit/body/affordance-assembler.test.d.ts +0 -14
- package/dist/tests/unit/body/affordance-assembler.test.js +0 -259
- package/dist/tests/unit/body/affordance-context-scope.test.d.ts +0 -12
- package/dist/tests/unit/body/affordance-context-scope.test.js +0 -73
- package/dist/tests/unit/body/behavior-promotion-loop.test.d.ts +0 -15
- package/dist/tests/unit/body/behavior-promotion-loop.test.js +0 -130
- package/dist/tests/unit/body/circuit-breaker-manager.test.d.ts +0 -13
- package/dist/tests/unit/body/circuit-breaker-manager.test.js +0 -160
- package/dist/tests/unit/body/experience-writer.test.d.ts +0 -11
- package/dist/tests/unit/body/experience-writer.test.js +0 -77
- package/dist/tests/unit/body/pain-signal-query.test.d.ts +0 -11
- package/dist/tests/unit/body/pain-signal-query.test.js +0 -104
- package/dist/tests/unit/cli/connector-init-manifest.test.d.ts +0 -9
- package/dist/tests/unit/cli/connector-init-manifest.test.js +0 -68
- package/dist/tests/unit/cli/delivery-target-probe.test.d.ts +0 -1
- package/dist/tests/unit/cli/delivery-target-probe.test.js +0 -108
- package/dist/tests/unit/cli/host-capability.test.d.ts +0 -1
- package/dist/tests/unit/cli/host-capability.test.js +0 -50
- package/dist/tests/unit/cli/operator-fallback-view.test.d.ts +0 -1
- package/dist/tests/unit/cli/operator-fallback-view.test.js +0 -60
- package/dist/tests/unit/cli/runtime-artifact-boundary.test.d.ts +0 -1
- package/dist/tests/unit/cli/runtime-artifact-boundary.test.js +0 -57
- package/dist/tests/unit/cli/t1-2-3-connector-status.test.d.ts +0 -1
- package/dist/tests/unit/cli/t1-2-3-connector-status.test.js +0 -214
- package/dist/tests/unit/cli/t1-2-4-goal-command.test.d.ts +0 -1
- package/dist/tests/unit/cli/t1-2-4-goal-command.test.js +0 -207
- package/dist/tests/unit/cli/t1-3-1-connector-init.test.d.ts +0 -1
- package/dist/tests/unit/cli/t1-3-1-connector-init.test.js +0 -212
- package/dist/tests/unit/connectors/connector-manifest-and-evidence-map.test.d.ts +0 -1
- package/dist/tests/unit/connectors/connector-manifest-and-evidence-map.test.js +0 -71
- package/dist/tests/unit/connectors/effect-commit-ledger-sqlite.test.d.ts +0 -10
- package/dist/tests/unit/connectors/effect-commit-ledger-sqlite.test.js +0 -101
- package/dist/tests/unit/connectors/evomap-runner.test.d.ts +0 -1
- package/dist/tests/unit/connectors/evomap-runner.test.js +0 -136
- package/dist/tests/unit/connectors/execution-policy.test.d.ts +0 -1
- package/dist/tests/unit/connectors/execution-policy.test.js +0 -71
- package/dist/tests/unit/connectors/instreet-registration.test.d.ts +0 -1
- package/dist/tests/unit/connectors/instreet-registration.test.js +0 -102
- package/dist/tests/unit/connectors/manifest-v7-schema.test.d.ts +0 -9
- package/dist/tests/unit/connectors/manifest-v7-schema.test.js +0 -165
- package/dist/tests/unit/connectors/scriptable-node-runner.test.d.ts +0 -1
- package/dist/tests/unit/connectors/scriptable-node-runner.test.js +0 -246
- package/dist/tests/unit/connectors/structured-unavailable-reason.test.d.ts +0 -11
- package/dist/tests/unit/connectors/structured-unavailable-reason.test.js +0 -76
- package/dist/tests/unit/connectors/t3-1-1-dynamic-registry.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-1-1-dynamic-registry.test.js +0 -178
- package/dist/tests/unit/connectors/t3-1-2-capability-registry.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-1-2-capability-registry.test.js +0 -105
- package/dist/tests/unit/connectors/t3-2-1-v5-parity.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-2-1-v5-parity.test.js +0 -103
- package/dist/tests/unit/connectors/t3-3-1-evidence-mapper.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-3-1-evidence-mapper.test.js +0 -198
- package/dist/tests/unit/connectors/t3-3-1-evidence-redaction.test.d.ts +0 -1
- package/dist/tests/unit/connectors/t3-3-1-evidence-redaction.test.js +0 -95
- package/dist/tests/unit/connectors/wet-probe-runner.test.d.ts +0 -11
- package/dist/tests/unit/connectors/wet-probe-runner.test.js +0 -84
- package/dist/tests/unit/control-plane/decision-trace-emitter.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/decision-trace-emitter.test.js +0 -51
- package/dist/tests/unit/control-plane/downstream-intent-orchestrator.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/downstream-intent-orchestrator.test.js +0 -57
- package/dist/tests/unit/control-plane/embodied-context-assembler.test.d.ts +0 -13
- package/dist/tests/unit/control-plane/embodied-context-assembler.test.js +0 -182
- package/dist/tests/unit/control-plane/goal-lifecycle-policy.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/goal-lifecycle-policy.test.js +0 -75
- package/dist/tests/unit/control-plane/hard-guard-evaluator.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/hard-guard-evaluator.test.js +0 -113
- package/dist/tests/unit/control-plane/idle-curiosity-policy.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/idle-curiosity-policy.test.js +0 -69
- package/dist/tests/unit/control-plane/intent-planner-source-ref-fallback.test.d.ts +0 -7
- package/dist/tests/unit/control-plane/intent-planner-source-ref-fallback.test.js +0 -124
- package/dist/tests/unit/control-plane/rhythm-policy-snapshot-window.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/rhythm-policy-snapshot-window.test.js +0 -64
- package/dist/tests/unit/control-plane/run-heartbeat-cycle-v7.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/run-heartbeat-cycle-v7.test.js +0 -165
- package/dist/tests/unit/control-plane/t2-1-4-goal-priority.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/t2-1-4-goal-priority.test.js +0 -185
- package/dist/tests/unit/control-plane/t2-1-5-narrative-update.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/t2-1-5-narrative-update.test.js +0 -313
- package/dist/tests/unit/control-plane/t2-4-1-credential-route.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/t2-4-1-credential-route.test.js +0 -75
- package/dist/tests/unit/control-plane/t2-4-1-platform-intent.test.d.ts +0 -1
- package/dist/tests/unit/control-plane/t2-4-1-platform-intent.test.js +0 -168
- package/dist/tests/unit/core/outreach-judgment.test.d.ts +0 -1
- package/dist/tests/unit/core/outreach-judgment.test.js +0 -109
- package/dist/tests/unit/core/resolve-allowed-intent.test.d.ts +0 -1
- package/dist/tests/unit/core/resolve-allowed-intent.test.js +0 -69
- package/dist/tests/unit/core/t2-2-3-connector-action-honest-result.test.d.ts +0 -1
- package/dist/tests/unit/core/t2-2-3-connector-action-honest-result.test.js +0 -130
- package/dist/tests/unit/core/t2-2-3-connector-dispatch-wired.test.d.ts +0 -1
- package/dist/tests/unit/core/t2-2-3-connector-dispatch-wired.test.js +0 -99
- package/dist/tests/unit/dream/dream-input-loader.test.d.ts +0 -15
- package/dist/tests/unit/dream/dream-input-loader.test.js +0 -424
- package/dist/tests/unit/dream/dream-scheduler.test.d.ts +0 -1
- package/dist/tests/unit/dream/dream-scheduler.test.js +0 -57
- package/dist/tests/unit/dream/t-dqs-c3-redacted-evidence.test.d.ts +0 -11
- package/dist/tests/unit/dream/t-dqs-c3-redacted-evidence.test.js +0 -298
- package/dist/tests/unit/dream/t7-1-3-insight-extraction.test.d.ts +0 -1
- package/dist/tests/unit/dream/t7-1-3-insight-extraction.test.js +0 -79
- package/dist/tests/unit/dream/t7-1-4-narrative-update.test.d.ts +0 -1
- package/dist/tests/unit/dream/t7-1-4-narrative-update.test.js +0 -93
- package/dist/tests/unit/dream/t7-1-5-relationship-update.test.d.ts +0 -1
- package/dist/tests/unit/dream/t7-1-5-relationship-update.test.js +0 -116
- package/dist/tests/unit/feedback/t4-2-1-owner-reply-inference.test.d.ts +0 -1
- package/dist/tests/unit/feedback/t4-2-1-owner-reply-inference.test.js +0 -58
- package/dist/tests/unit/guidance/capability-class.test.d.ts +0 -1
- package/dist/tests/unit/guidance/capability-class.test.js +0 -96
- package/dist/tests/unit/guidance/channel-feedback-ingestion.test.d.ts +0 -1
- package/dist/tests/unit/guidance/channel-feedback-ingestion.test.js +0 -163
- package/dist/tests/unit/guidance/evidence-guidance.test.d.ts +0 -1
- package/dist/tests/unit/guidance/evidence-guidance.test.js +0 -40
- package/dist/tests/unit/guidance/guidance-draft-service.test.d.ts +0 -1
- package/dist/tests/unit/guidance/guidance-draft-service.test.js +0 -140
- package/dist/tests/unit/guidance/impulse-assembler.test.d.ts +0 -1
- package/dist/tests/unit/guidance/impulse-assembler.test.js +0 -169
- package/dist/tests/unit/guidance/outreach-draft-schema.test.d.ts +0 -1
- package/dist/tests/unit/guidance/outreach-draft-schema.test.js +0 -56
- package/dist/tests/unit/guidance/outreach-strategy-selector.test.d.ts +0 -1
- package/dist/tests/unit/guidance/outreach-strategy-selector.test.js +0 -208
- package/dist/tests/unit/guidance/outreach-style-fixtures.test.d.ts +0 -1
- package/dist/tests/unit/guidance/outreach-style-fixtures.test.js +0 -81
- package/dist/tests/unit/guidance/t6-1-1-narrative-outreach.test.d.ts +0 -1
- package/dist/tests/unit/guidance/t6-1-1-narrative-outreach.test.js +0 -256
- package/dist/tests/unit/observability/audit-envelope.test.d.ts +0 -1
- package/dist/tests/unit/observability/audit-envelope.test.js +0 -169
- package/dist/tests/unit/observability/connector-inventory-ledger.test.d.ts +0 -1
- package/dist/tests/unit/observability/connector-inventory-ledger.test.js +0 -128
- package/dist/tests/unit/observability/family-registry.test.d.ts +0 -12
- package/dist/tests/unit/observability/family-registry.test.js +0 -105
- package/dist/tests/unit/observability/governance-plane-recorder.test.d.ts +0 -1
- package/dist/tests/unit/observability/governance-plane-recorder.test.js +0 -72
- package/dist/tests/unit/observability/heartbeat-digest-assembler.test.d.ts +0 -1
- package/dist/tests/unit/observability/heartbeat-digest-assembler.test.js +0 -227
- package/dist/tests/unit/observability/lived-experience-audit.test.d.ts +0 -1
- package/dist/tests/unit/observability/lived-experience-audit.test.js +0 -105
- package/dist/tests/unit/observability/narrative-timeline-query.test.d.ts +0 -18
- package/dist/tests/unit/observability/narrative-timeline-query.test.js +0 -239
- package/dist/tests/unit/observability/restore-audit-service.test.d.ts +0 -16
- package/dist/tests/unit/observability/restore-audit-service.test.js +0 -186
- package/dist/tests/unit/observability/runtime-decision-recorder.test.d.ts +0 -1
- package/dist/tests/unit/observability/runtime-decision-recorder.test.js +0 -66
- package/dist/tests/unit/observability/runtime-secret-anchor-view.test.d.ts +0 -18
- package/dist/tests/unit/observability/runtime-secret-anchor-view.test.js +0 -209
- package/dist/tests/unit/observability/self-health-snapshot.test.d.ts +0 -1
- package/dist/tests/unit/observability/self-health-snapshot.test.js +0 -223
- package/dist/tests/unit/observability/verify-audit-hash-chain.test.d.ts +0 -1
- package/dist/tests/unit/observability/verify-audit-hash-chain.test.js +0 -93
- package/dist/tests/unit/ops/manual-run-dispatcher.test.d.ts +0 -13
- package/dist/tests/unit/ops/manual-run-dispatcher.test.js +0 -219
- package/dist/tests/unit/quiet/claim-synthesizer.test.d.ts +0 -17
- package/dist/tests/unit/quiet/claim-synthesizer.test.js +0 -289
- package/dist/tests/unit/quiet/daily-diary-writer.test.d.ts +0 -12
- package/dist/tests/unit/quiet/daily-diary-writer.test.js +0 -108
- package/dist/tests/unit/shared/v7-entities.test.d.ts +0 -13
- package/dist/tests/unit/shared/v7-entities.test.js +0 -306
- package/dist/tests/unit/storage/delivery-attempt.test.d.ts +0 -1
- package/dist/tests/unit/storage/delivery-attempt.test.js +0 -72
- package/dist/tests/unit/storage/diary-dream-store.test.d.ts +0 -12
- package/dist/tests/unit/storage/diary-dream-store.test.js +0 -118
- package/dist/tests/unit/storage/embodied-context-state-port.test.d.ts +0 -4
- package/dist/tests/unit/storage/embodied-context-state-port.test.js +0 -77
- package/dist/tests/unit/storage/goal-lifecycle-store.test.d.ts +0 -4
- package/dist/tests/unit/storage/goal-lifecycle-store.test.js +0 -143
- package/dist/tests/unit/storage/history-digest-store.test.d.ts +0 -10
- package/dist/tests/unit/storage/history-digest-store.test.js +0 -126
- package/dist/tests/unit/storage/identity-profile-store.test.d.ts +0 -4
- package/dist/tests/unit/storage/identity-profile-store.test.js +0 -48
- package/dist/tests/unit/storage/life-evidence-snapshot.test.d.ts +0 -1
- package/dist/tests/unit/storage/life-evidence-snapshot.test.js +0 -60
- package/dist/tests/unit/storage/life-evidence.test.d.ts +0 -1
- package/dist/tests/unit/storage/life-evidence.test.js +0 -54
- package/dist/tests/unit/storage/migration-runner.test.d.ts +0 -12
- package/dist/tests/unit/storage/migration-runner.test.js +0 -197
- package/dist/tests/unit/storage/repair-gate.test.d.ts +0 -1
- package/dist/tests/unit/storage/repair-gate.test.js +0 -41
- package/dist/tests/unit/storage/restore-snapshot-store.test.d.ts +0 -11
- package/dist/tests/unit/storage/restore-snapshot-store.test.js +0 -161
- package/dist/tests/unit/storage/rhythm-policy-snapshot.test.d.ts +0 -1
- package/dist/tests/unit/storage/rhythm-policy-snapshot.test.js +0 -31
- package/dist/tests/unit/storage/runtime-secret-anchor-store.test.d.ts +0 -10
- package/dist/tests/unit/storage/runtime-secret-anchor-store.test.js +0 -81
- package/dist/tests/unit/storage/t1-4-1-credential-health-mapper.test.d.ts +0 -1
- package/dist/tests/unit/storage/t1-4-1-credential-health-mapper.test.js +0 -83
- package/dist/tests/unit/storage/t4-1-1-session-chronicle.test.d.ts +0 -1
- package/dist/tests/unit/storage/t4-1-1-session-chronicle.test.js +0 -112
- package/dist/tests/unit/storage/t4-1-2-narrative-state.test.d.ts +0 -1
- package/dist/tests/unit/storage/t4-1-2-narrative-state.test.js +0 -80
- package/dist/tests/unit/storage/t4-1-3-relationship-memory.test.d.ts +0 -1
- package/dist/tests/unit/storage/t4-1-3-relationship-memory.test.js +0 -65
- package/dist/tests/unit/storage/t4-1-4-agent-goal.test.d.ts +0 -1
- package/dist/tests/unit/storage/t4-1-4-agent-goal.test.js +0 -166
- package/dist/tests/unit/storage/tool-experience-store.test.d.ts +0 -4
- package/dist/tests/unit/storage/tool-experience-store.test.js +0 -92
- package/dist/tests/unit/storage/user-interest-snapshot.test.d.ts +0 -1
- package/dist/tests/unit/storage/user-interest-snapshot.test.js +0 -48
- package/dist/tests/unit/storage/write-queue.test.d.ts +0 -12
- package/dist/tests/unit/storage/write-queue.test.js +0 -177
- package/dist/tests/unit/storage/write-validation-gate.test.d.ts +0 -9
- package/dist/tests/unit/storage/write-validation-gate.test.js +0 -153
- /package/{dist/plugin/index.js → index.js} +0 -0
- /package/{dist/src → runtime}/cli/action-bridge.js +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-behavior.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-behavior.js +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-init.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-init.js +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-status.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/connector-status.js +0 -0
- /package/{dist/src → runtime}/cli/commands/credential.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/credential.js +0 -0
- /package/{dist/src → runtime}/cli/commands/goal.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/goal.js +0 -0
- /package/{dist/src → runtime}/cli/commands/index.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/policy.d.ts +0 -0
- /package/{dist/src → runtime}/cli/commands/policy.js +0 -0
- /package/{dist/src → runtime}/cli/explain/explain-surface-subject.d.ts +0 -0
- /package/{dist/src → runtime}/cli/explain/explain-surface-subject.js +0 -0
- /package/{dist/src → runtime}/cli/explain/format-explanation.d.ts +0 -0
- /package/{dist/src → runtime}/cli/explain/format-explanation.js +0 -0
- /package/{dist/src → runtime}/cli/explain/resolve-subject.d.ts +0 -0
- /package/{dist/src → runtime}/cli/explain/resolve-subject.js +0 -0
- /package/{dist/src → runtime}/cli/host-capability/classify-delivery.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-capability/classify-delivery.js +0 -0
- /package/{dist/src → runtime}/cli/host-capability/probe-host-capability.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-capability/probe-host-capability.js +0 -0
- /package/{dist/src → runtime}/cli/host-capability/record-host-capability.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-capability/record-host-capability.js +0 -0
- /package/{dist/src → runtime}/cli/host-capability/types.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-capability/types.js +0 -0
- /package/{dist/src → runtime}/cli/host-smoke/run-host-smoke.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-smoke/run-host-smoke.js +0 -0
- /package/{dist/src → runtime}/cli/host-smoke/types.d.ts +0 -0
- /package/{dist/src → runtime}/cli/host-smoke/types.js +0 -0
- /package/{dist/src → runtime}/cli/index.js +0 -0
- /package/{dist/src → runtime}/cli/ops/manual-run-dispatcher.d.ts +0 -0
- /package/{dist/src → runtime}/cli/ops/manual-run-dispatcher.js +0 -0
- /package/{dist/src → runtime}/cli/ops/ops-router.d.ts +0 -0
- /package/{dist/src → runtime}/cli/ops/show-operator-fallback.d.ts +0 -0
- /package/{dist/src → runtime}/cli/ops/show-operator-fallback.js +0 -0
- /package/{dist/src → runtime}/cli/read-models/index.d.ts +0 -0
- /package/{dist/src → runtime}/cli/read-models/index.js +0 -0
- /package/{dist/src → runtime}/cli/read-models/operator-explain-map.d.ts +0 -0
- /package/{dist/src → runtime}/cli/read-models/operator-explain-map.js +0 -0
- /package/{dist/src → runtime}/cli/read-models/types.d.ts +0 -0
- /package/{dist/src → runtime}/cli/read-models/types.js +0 -0
- /package/{dist/src → runtime}/cli/runtime/runtime-artifact-boundary.d.ts +0 -0
- /package/{dist/src → runtime}/cli/runtime/runtime-artifact-boundary.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/adapter.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/adapter.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/index.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/agent-world/manifest.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/adapter.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/adapter.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/index.js +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/agent-network/evomap/manifest.js +0 -0
- /package/{dist/src → runtime}/connectors/base/channel-health.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/channel-health.js +0 -0
- /package/{dist/src → runtime}/connectors/base/contract.js +0 -0
- /package/{dist/src → runtime}/connectors/base/effect-commit-ledger-sqlite.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/effect-commit-ledger-sqlite.js +0 -0
- /package/{dist/src → runtime}/connectors/base/execution-policy.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/execution-policy.js +0 -0
- /package/{dist/src → runtime}/connectors/base/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/index.js +0 -0
- /package/{dist/src → runtime}/connectors/base/manifest-v7.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/manifest-v7.js +0 -0
- /package/{dist/src → runtime}/connectors/base/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/manifest.js +0 -0
- /package/{dist/src → runtime}/connectors/base/map-life-evidence.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/policy-layer.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/route-planner.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/route-planner.js +0 -0
- /package/{dist/src → runtime}/connectors/base/structured-unavailable-reason.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/structured-unavailable-reason.js +0 -0
- /package/{dist/src → runtime}/connectors/base/wet-probe-runner.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/base/wet-probe-runner.js +0 -0
- /package/{dist/src → runtime}/connectors/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/index.js +0 -0
- /package/{dist/src → runtime}/connectors/manifest/manifest-parser.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/manifest/manifest-parser.js +0 -0
- /package/{dist/src → runtime}/connectors/near-real/near-real-connector-smoke.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/near-real/near-real-connector-smoke.js +0 -0
- /package/{dist/src → runtime}/connectors/registry/dynamic-connector-registry.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/registry/dynamic-connector-registry.js +0 -0
- /package/{dist/src → runtime}/connectors/registry/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/registry/index.js +0 -0
- /package/{dist/src → runtime}/connectors/registry/manifest-scanner.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/registry/manifest-scanner.js +0 -0
- /package/{dist/src → runtime}/connectors/registry/trust-policy.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/registry/trust-policy.js +0 -0
- /package/{dist/src → runtime}/connectors/services/credential-route-context.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/services/credential-route-context.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/adapter.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/adapter.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/index.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/instreet/manifest.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/adapter.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/adapter.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/api-client.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/api-client.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/index.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/index.js +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/connectors/social-community/moltbook/manifest.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/behavior-promotion/behavior-promotion-loop.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/behavior-promotion/behavior-promotion-loop.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/circuit-breaker/circuit-breaker-manager.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/circuit-breaker/circuit-breaker-manager.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/probe-signal-adapter.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/probe-signal-adapter.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-assembler.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-context-scope.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-affordance/affordance-context-scope.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-experience/experience-writer.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-experience/experience-writer.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-experience/pain-signal-query.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/body/tool-experience/pain-signal-query.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/feedback/owner-reply-feedback.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/feedback/owner-reply-feedback.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/apply-guidance.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/apply-guidance.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/request-guidance.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/request-guidance.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/user-reply-continuity.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/guidance/user-reply-continuity.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/decision-trace-emitter.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/decision-trace-emitter.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/embodied-context-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/embodied-context-assembler.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-executor.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/heartbeat-executor.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/idle-curiosity-policy.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/idle-curiosity-policy.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/index.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/index.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle-v7.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle-v7.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/run-heartbeat-cycle.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/runtime-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/runtime-snapshot.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/scope-router.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/scope-router.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/signal.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/signal.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/snapshot-builder.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/heartbeat/snapshot-builder.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/index.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/index.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/downstream-intent-orchestrator.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/downstream-intent-orchestrator.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/effect-dispatcher.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/effect-dispatcher.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/goal-priority.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/goal-priority.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/guard-layer.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/guard-layer.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/hard-guard-evaluator.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/hard-guard-evaluator.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/index.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/index.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/intent-planner.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/intent-planner.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/lease-manager.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/lease-manager.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/narrative-update.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/narrative-update.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/platform-capability-router.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/resume-from-checkpoint.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/orchestrator/resume-from-checkpoint.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/build-message.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/build-message.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/build-outreach-draft-request.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/build-outreach-draft-request.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/delivery-target.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/delivery-target.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/dispatch-user-outreach.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/dispatch-user-outreach.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/evaluate-outreach.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/evaluate-outreach.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/judge-input-from-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/judge-input-from-snapshot.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/judge-outreach.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/outreach/judge-outreach.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/claim-synthesizer.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/claim-synthesizer.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/daily-diary-writer.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/daily-diary-writer.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/index.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/index.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/quiet-pipeline.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/quiet-pipeline.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/run-source-backed-quiet.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/quiet/run-source-backed-quiet.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/reflection/run-narrative-reflection.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/reflection/run-narrative-reflection.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/planner-rhythm-window.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/planner-rhythm-window.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/policy-bridge.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/policy-bridge.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/rhythm-policy.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/rhythm-policy.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/select-window.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/rhythm/select-window.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/runtime/lifecycle-service.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/runtime/lifecycle-service.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/runtime/service-entry.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/runtime/service-entry.js +0 -0
- /package/{dist/src → runtime}/core/second-nature/types.d.ts +0 -0
- /package/{dist/src → runtime}/core/second-nature/types.js +0 -0
- /package/{dist/src → runtime}/dream/dream-engine.d.ts +0 -0
- /package/{dist/src → runtime}/dream/dream-engine.js +0 -0
- /package/{dist/src → runtime}/dream/dream-input-loader.d.ts +0 -0
- /package/{dist/src → runtime}/dream/dream-input-loader.js +0 -0
- /package/{dist/src → runtime}/dream/dream-scheduler.d.ts +0 -0
- /package/{dist/src → runtime}/dream/dream-scheduler.js +0 -0
- /package/{dist/src → runtime}/dream/index.d.ts +0 -0
- /package/{dist/src → runtime}/dream/index.js +0 -0
- /package/{dist/src → runtime}/dream/insight-extractor.d.ts +0 -0
- /package/{dist/src → runtime}/dream/insight-extractor.js +0 -0
- /package/{dist/src → runtime}/dream/memory-consolidator.d.ts +0 -0
- /package/{dist/src → runtime}/dream/memory-consolidator.js +0 -0
- /package/{dist/src → runtime}/dream/narrative-update-proposal.d.ts +0 -0
- /package/{dist/src → runtime}/dream/narrative-update-proposal.js +0 -0
- /package/{dist/src → runtime}/dream/output-validator.d.ts +0 -0
- /package/{dist/src → runtime}/dream/output-validator.js +0 -0
- /package/{dist/src → runtime}/dream/redaction-gate.d.ts +0 -0
- /package/{dist/src → runtime}/dream/redaction-gate.js +0 -0
- /package/{dist/src → runtime}/dream/relationship-update-proposal.d.ts +0 -0
- /package/{dist/src → runtime}/dream/relationship-update-proposal.js +0 -0
- /package/{dist/src → runtime}/dream/sampler.d.ts +0 -0
- /package/{dist/src → runtime}/dream/sampler.js +0 -0
- /package/{dist/src → runtime}/dream/types.d.ts +0 -0
- /package/{dist/src → runtime}/dream/types.js +0 -0
- /package/{dist/src → runtime}/guidance/capability-class.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/capability-class.js +0 -0
- /package/{dist/src → runtime}/guidance/channel-feedback-ingestion-service.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/channel-feedback-ingestion-service.js +0 -0
- /package/{dist/src → runtime}/guidance/contracts.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/contracts.js +0 -0
- /package/{dist/src → runtime}/guidance/draft-narrative-outreach.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/draft-narrative-outreach.js +0 -0
- /package/{dist/src → runtime}/guidance/draft-outreach-message.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/draft-outreach-message.js +0 -0
- /package/{dist/src → runtime}/guidance/evidence-guidance.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/evidence-guidance.js +0 -0
- /package/{dist/src → runtime}/guidance/fallback.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/fallback.js +0 -0
- /package/{dist/src → runtime}/guidance/guidance-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/guidance-assembler.js +0 -0
- /package/{dist/src → runtime}/guidance/guidance-draft-service.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/guidance-draft-service.js +0 -0
- /package/{dist/src → runtime}/guidance/impulse-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/impulse-assembler.js +0 -0
- /package/{dist/src → runtime}/guidance/index.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/index.js +0 -0
- /package/{dist/src → runtime}/guidance/output-guard.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/output-guard.js +0 -0
- /package/{dist/src → runtime}/guidance/outreach-draft-schema.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/outreach-draft-schema.js +0 -0
- /package/{dist/src → runtime}/guidance/outreach-strategy-selector.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/outreach-strategy-selector.js +0 -0
- /package/{dist/src → runtime}/guidance/persona-selection.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/persona-selection.js +0 -0
- /package/{dist/src → runtime}/guidance/review-workflow.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/review-workflow.js +0 -0
- /package/{dist/src → runtime}/guidance/template-registry.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/template-registry.js +0 -0
- /package/{dist/src → runtime}/guidance/types.d.ts +0 -0
- /package/{dist/src → runtime}/guidance/types.js +0 -0
- /package/{dist/src → runtime}/observability/audit/append-only-audit-store.d.ts +0 -0
- /package/{dist/src → runtime}/observability/audit/append-only-audit-store.js +0 -0
- /package/{dist/src → runtime}/observability/audit/audit-envelope.d.ts +0 -0
- /package/{dist/src → runtime}/observability/audit/audit-envelope.js +0 -0
- /package/{dist/src → runtime}/observability/audit/audit-family-registry.json +0 -0
- /package/{dist/src → runtime}/observability/audit/family-registry.d.ts +0 -0
- /package/{dist/src → runtime}/observability/audit/family-registry.js +0 -0
- /package/{dist/src → runtime}/observability/audit/verify-audit-hash-chain.d.ts +0 -0
- /package/{dist/src → runtime}/observability/audit/verify-audit-hash-chain.js +0 -0
- /package/{dist/src → runtime}/observability/connector-inventory-ledger.d.ts +0 -0
- /package/{dist/src → runtime}/observability/connector-inventory-ledger.js +0 -0
- /package/{dist/src → runtime}/observability/db/index.d.ts +0 -0
- /package/{dist/src → runtime}/observability/db/index.js +0 -0
- /package/{dist/src → runtime}/observability/db/schema/connector-inventory.d.ts +0 -0
- /package/{dist/src → runtime}/observability/db/schema/connector-inventory.js +0 -0
- /package/{dist/src → runtime}/observability/db/schema/host-capability-reports.d.ts +0 -0
- /package/{dist/src → runtime}/observability/db/schema/host-capability-reports.js +0 -0
- /package/{dist/src → runtime}/observability/db/schema/index.d.ts +0 -0
- /package/{dist/src → runtime}/observability/db/schema/index.js +0 -0
- /package/{dist/src → runtime}/observability/index.d.ts +0 -0
- /package/{dist/src → runtime}/observability/index.js +0 -0
- /package/{dist/src → runtime}/observability/projections/guidance-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/projections/guidance-audit.js +0 -0
- /package/{dist/src → runtime}/observability/projections/outreach-quality-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/projections/outreach-quality-audit.js +0 -0
- /package/{dist/src → runtime}/observability/projections/reflection-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/projections/reflection-audit.js +0 -0
- /package/{dist/src → runtime}/observability/query/compose-evidence.d.ts +0 -0
- /package/{dist/src → runtime}/observability/query/compose-evidence.js +0 -0
- /package/{dist/src → runtime}/observability/query/evidence-query-engine.d.ts +0 -0
- /package/{dist/src → runtime}/observability/query/evidence-query-engine.js +0 -0
- /package/{dist/src → runtime}/observability/query/explain-query.d.ts +0 -0
- /package/{dist/src → runtime}/observability/query/explain-query.js +0 -0
- /package/{dist/src → runtime}/observability/query/export-audit-bundle.d.ts +0 -0
- /package/{dist/src → runtime}/observability/query/export-audit-bundle.js +0 -0
- /package/{dist/src → runtime}/observability/redaction/manifest.d.ts +0 -0
- /package/{dist/src → runtime}/observability/redaction/manifest.js +0 -0
- /package/{dist/src → runtime}/observability/redaction/policy.d.ts +0 -0
- /package/{dist/src → runtime}/observability/redaction/policy.js +0 -0
- /package/{dist/src → runtime}/observability/services/decision-ledger.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/decision-ledger.js +0 -0
- /package/{dist/src → runtime}/observability/services/execution-telemetry.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/execution-telemetry.js +0 -0
- /package/{dist/src → runtime}/observability/services/governance-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/governance-audit.js +0 -0
- /package/{dist/src → runtime}/observability/services/governance-plane-recorder.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/governance-plane-recorder.js +0 -0
- /package/{dist/src → runtime}/observability/services/heartbeat-digest-assembler.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/heartbeat-digest-assembler.js +0 -0
- /package/{dist/src → runtime}/observability/services/lived-experience-audit.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/lived-experience-audit.js +0 -0
- /package/{dist/src → runtime}/observability/services/narrative-timeline-query-service.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/narrative-timeline-query-service.js +0 -0
- /package/{dist/src → runtime}/observability/services/observability-retention.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/observability-retention.js +0 -0
- /package/{dist/src → runtime}/observability/services/redaction-store.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/redaction-store.js +0 -0
- /package/{dist/src → runtime}/observability/services/restore-audit-service.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/restore-audit-service.js +0 -0
- /package/{dist/src → runtime}/observability/services/runtime-decision-recorder.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/runtime-decision-recorder.js +0 -0
- /package/{dist/src → runtime}/observability/services/runtime-secret-anchor-view.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/runtime-secret-anchor-view.js +0 -0
- /package/{dist/src → runtime}/observability/services/self-health-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/observability/services/self-health-snapshot.js +0 -0
- /package/{dist/src → runtime}/shared/types/continuity.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/continuity.js +0 -0
- /package/{dist/src → runtime}/shared/types/credential.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/credential.js +0 -0
- /package/{dist/src → runtime}/shared/types/goal.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/goal.js +0 -0
- /package/{dist/src → runtime}/shared/types/index.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/index.js +0 -0
- /package/{dist/src → runtime}/shared/types/outreach.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/outreach.js +0 -0
- /package/{dist/src → runtime}/shared/types/source-ref.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/source-ref.js +0 -0
- /package/{dist/src → runtime}/shared/types/v7-entities.d.ts +0 -0
- /package/{dist/src → runtime}/shared/types/v7-entities.js +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/native-sqlite-probe.d.ts +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/native-sqlite-probe.js +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/repair-gate.d.ts +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/repair-gate.js +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/repair.d.ts +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/repair.js +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/storage-mode-smoke.d.ts +0 -0
- /package/{dist/src → runtime}/storage/bootstrap/storage-mode-smoke.js +0 -0
- /package/{dist/src → runtime}/storage/chronicle/session-chronicle-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/chronicle/session-chronicle-store.js +0 -0
- /package/{dist/src → runtime}/storage/db/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/index.js +0 -0
- /package/{dist/src → runtime}/storage/db/migration-runner.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migration-runner.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/index.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-001-foundation.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-001-foundation.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-002-effect-commit-ledger.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-002-effect-commit-ledger.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-003-circuit-breaker.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-003-circuit-breaker.js +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-004-behavior-promotion.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/migrations/v7-004-behavior-promotion.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/agent-goal.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/agent-goal.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/assets.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/assets.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/credentials.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/credentials.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/delivery-attempts.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/delivery-attempts.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/index.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/intent-commits.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/intent-commits.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/life-evidence-index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/life-evidence-index.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/memory-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/memory-store.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/narrative-state.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/narrative-state.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/operator-fallback-artifacts.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/operator-fallback-artifacts.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/policies.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/policies.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/proposals.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/proposals.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/provenance.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/provenance.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/relationship-memory.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/relationship-memory.js +0 -0
- /package/{dist/src → runtime}/storage/db/schema/session-chronicle.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/schema/session-chronicle.js +0 -0
- /package/{dist/src → runtime}/storage/db/transaction-utils.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/transaction-utils.js +0 -0
- /package/{dist/src → runtime}/storage/db/write-queue.d.ts +0 -0
- /package/{dist/src → runtime}/storage/db/write-queue.js +0 -0
- /package/{dist/src → runtime}/storage/delivery/query-delivery-attempts.d.ts +0 -0
- /package/{dist/src → runtime}/storage/delivery/query-delivery-attempts.js +0 -0
- /package/{dist/src → runtime}/storage/delivery/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/delivery/types.js +0 -0
- /package/{dist/src → runtime}/storage/delivery/write-delivery-attempt.d.ts +0 -0
- /package/{dist/src → runtime}/storage/delivery/write-delivery-attempt.js +0 -0
- /package/{dist/src → runtime}/storage/fallback/load-operator-fallback.d.ts +0 -0
- /package/{dist/src → runtime}/storage/fallback/load-operator-fallback.js +0 -0
- /package/{dist/src → runtime}/storage/fallback/operator-fallback-types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/fallback/operator-fallback-types.js +0 -0
- /package/{dist/src → runtime}/storage/fallback/operator-fallback-view.d.ts +0 -0
- /package/{dist/src → runtime}/storage/fallback/operator-fallback-view.js +0 -0
- /package/{dist/src → runtime}/storage/fallback/write-operator-fallback.d.ts +0 -0
- /package/{dist/src → runtime}/storage/fallback/write-operator-fallback.js +0 -0
- /package/{dist/src → runtime}/storage/goal/agent-goal-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/goal/agent-goal-store.js +0 -0
- /package/{dist/src → runtime}/storage/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/index.js +0 -0
- /package/{dist/src → runtime}/storage/life-evidence/append-life-evidence.d.ts +0 -0
- /package/{dist/src → runtime}/storage/life-evidence/append-life-evidence.js +0 -0
- /package/{dist/src → runtime}/storage/life-evidence/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/life-evidence/types.js +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/paths.d.ts +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/paths.js +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/store.js +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/memory/workspace/types.js +0 -0
- /package/{dist/src → runtime}/storage/memory-store/memory-store-lifecycle.d.ts +0 -0
- /package/{dist/src → runtime}/storage/memory-store/memory-store-lifecycle.js +0 -0
- /package/{dist/src → runtime}/storage/narrative/narrative-state-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/narrative/narrative-state-store.js +0 -0
- /package/{dist/src → runtime}/storage/quiet/persist-quiet-artifact.d.ts +0 -0
- /package/{dist/src → runtime}/storage/quiet/persist-quiet-artifact.js +0 -0
- /package/{dist/src → runtime}/storage/quiet/quiet-artifact-types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/quiet/quiet-artifact-types.js +0 -0
- /package/{dist/src → runtime}/storage/quiet/quiet-artifact-writer.d.ts +0 -0
- /package/{dist/src → runtime}/storage/quiet/quiet-artifact-writer.js +0 -0
- /package/{dist/src → runtime}/storage/relationship/relationship-memory-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/relationship/relationship-memory-store.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/asset-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/asset-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/credential-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/credential-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/index.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/index.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/intent-commit-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/intent-commit-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/policy-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/policy-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/proposal-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/proposal-repository.js +0 -0
- /package/{dist/src → runtime}/storage/repositories/provenance-repository.d.ts +0 -0
- /package/{dist/src → runtime}/storage/repositories/provenance-repository.js +0 -0
- /package/{dist/src → runtime}/storage/rhythm/rhythm-policy-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/storage/rhythm/rhythm-policy-snapshot.js +0 -0
- /package/{dist/src → runtime}/storage/services/credential-vault.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/credential-vault.js +0 -0
- /package/{dist/src → runtime}/storage/services/daily-log-pipeline.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/daily-log-pipeline.js +0 -0
- /package/{dist/src → runtime}/storage/services/diary-dream-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/diary-dream-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/effect-commit-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/effect-commit-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/embodied-context-state-port.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/embodied-context-state-port.js +0 -0
- /package/{dist/src → runtime}/storage/services/goal-lifecycle-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/goal-lifecycle-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/governance-layer.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/governance-layer.js +0 -0
- /package/{dist/src → runtime}/storage/services/history-digest-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/history-digest-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/identity-profile-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/identity-profile-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/interaction-snapshot-projector.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/interaction-snapshot-projector.js +0 -0
- /package/{dist/src → runtime}/storage/services/persona-candidate-loader.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/persona-candidate-loader.js +0 -0
- /package/{dist/src → runtime}/storage/services/provenance-service.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/provenance-service.js +0 -0
- /package/{dist/src → runtime}/storage/services/quiet-input-loader.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/quiet-input-loader.js +0 -0
- /package/{dist/src → runtime}/storage/services/repair-and-backup.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/repair-and-backup.js +0 -0
- /package/{dist/src → runtime}/storage/services/restore-snapshot-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/restore-snapshot-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/runtime-secret-anchor-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/runtime-secret-anchor-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/tool-experience-store.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/tool-experience-store.js +0 -0
- /package/{dist/src → runtime}/storage/services/write-validation-gate.d.ts +0 -0
- /package/{dist/src → runtime}/storage/services/write-validation-gate.js +0 -0
- /package/{dist/src → runtime}/storage/snapshots/continuity-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/storage/snapshots/continuity-snapshot.js +0 -0
- /package/{dist/src → runtime}/storage/snapshots/life-evidence-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/storage/snapshots/life-evidence-snapshot.js +0 -0
- /package/{dist/src → runtime}/storage/snapshots/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/snapshots/types.js +0 -0
- /package/{dist/src → runtime}/storage/state-api.d.ts +0 -0
- /package/{dist/src → runtime}/storage/state-api.js +0 -0
- /package/{dist/src → runtime}/storage/user-interest/load-user-interest-snapshot.d.ts +0 -0
- /package/{dist/src → runtime}/storage/user-interest/load-user-interest-snapshot.js +0 -0
- /package/{dist/src → runtime}/storage/user-interest/types.d.ts +0 -0
- /package/{dist/src → runtime}/storage/user-interest/types.js +0 -0
- /package/{dist/plugin/workspace-ops-bridge.js → workspace-ops-bridge.js} +0 -0
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* T2.4.1 — Platform-specific intent credential-route unit tests.
|
|
3
|
-
*
|
|
4
|
-
* Covers resolvePlatformForIntent when registry is present but the
|
|
5
|
-
* resolved platform does not support the required capability (credential
|
|
6
|
-
* route unavailable), or when no registry is present.
|
|
7
|
-
*/
|
|
8
|
-
import test from "node:test";
|
|
9
|
-
import assert from "node:assert/strict";
|
|
10
|
-
import { resolvePlatformForIntent } from "../../../src/core/second-nature/orchestrator/platform-capability-router.js";
|
|
11
|
-
import { CapabilityContractRegistry } from "../../../src/connectors/base/manifest.js";
|
|
12
|
-
test("T2.4.1-C: registry present but platform lacks capability → undefined", () => {
|
|
13
|
-
const registry = new CapabilityContractRegistry();
|
|
14
|
-
registry.register({
|
|
15
|
-
platformId: "moltbook",
|
|
16
|
-
supportedCapabilities: ["feed.read"],
|
|
17
|
-
channelPriority: ["api_rest"],
|
|
18
|
-
credentialTypes: ["api_key"],
|
|
19
|
-
sourceRefPolicy: { minSourceRefs: 1 },
|
|
20
|
-
});
|
|
21
|
-
// "work" maps to "work.discover", which moltbook does NOT support
|
|
22
|
-
const result = resolvePlatformForIntent("work", { acceptedGoals: [{ goalId: "g1", description: "work on moltbook" }] }, registry);
|
|
23
|
-
assert.equal(result, undefined);
|
|
24
|
-
});
|
|
25
|
-
test("T2.4.1-C: registry present and platform supports capability → platformId", () => {
|
|
26
|
-
const registry = new CapabilityContractRegistry();
|
|
27
|
-
registry.register({
|
|
28
|
-
platformId: "moltbook",
|
|
29
|
-
supportedCapabilities: ["feed.read"],
|
|
30
|
-
channelPriority: ["api_rest"],
|
|
31
|
-
credentialTypes: ["api_key"],
|
|
32
|
-
sourceRefPolicy: { minSourceRefs: 1 },
|
|
33
|
-
});
|
|
34
|
-
// "exploration" maps to "feed.read", which moltbook supports
|
|
35
|
-
const result = resolvePlatformForIntent("exploration", { acceptedGoals: [{ goalId: "g1", description: "explore moltbook" }] }, registry);
|
|
36
|
-
assert.equal(result, "moltbook");
|
|
37
|
-
});
|
|
38
|
-
test("T2.4.1-D: no registry + goal names platform → best-effort platformId", () => {
|
|
39
|
-
const result = resolvePlatformForIntent("exploration", { acceptedGoals: [{ goalId: "g1", description: "explore moltbook feed" }] }, undefined);
|
|
40
|
-
assert.equal(result, "moltbook");
|
|
41
|
-
});
|
|
42
|
-
test("T2.4.1-D: no registry + ambiguous goals → undefined", () => {
|
|
43
|
-
const result = resolvePlatformForIntent("exploration", {
|
|
44
|
-
acceptedGoals: [
|
|
45
|
-
{ goalId: "g1", description: "explore moltbook" },
|
|
46
|
-
{ goalId: "g2", description: "explore instreet" },
|
|
47
|
-
],
|
|
48
|
-
}, undefined);
|
|
49
|
-
assert.equal(result, undefined);
|
|
50
|
-
});
|
|
51
|
-
test("T2.4.1-E: no registry + evidence refs name platform → platformId", () => {
|
|
52
|
-
const result = resolvePlatformForIntent("exploration", {
|
|
53
|
-
evidenceRefs: [
|
|
54
|
-
{ id: "ev-1", kind: "platform_item", uri: "platform://moltbook/item/1" },
|
|
55
|
-
],
|
|
56
|
-
}, undefined);
|
|
57
|
-
assert.equal(result, "moltbook");
|
|
58
|
-
});
|
|
59
|
-
test("T2.4.1-E: registry + unsupported capability via evidence → undefined", () => {
|
|
60
|
-
const registry = new CapabilityContractRegistry();
|
|
61
|
-
registry.register({
|
|
62
|
-
platformId: "moltbook",
|
|
63
|
-
supportedCapabilities: ["feed.read"],
|
|
64
|
-
channelPriority: ["api_rest"],
|
|
65
|
-
credentialTypes: ["api_key"],
|
|
66
|
-
sourceRefPolicy: { minSourceRefs: 1 },
|
|
67
|
-
});
|
|
68
|
-
// evidence names moltbook, but "work" → "work.discover" is unsupported
|
|
69
|
-
const result = resolvePlatformForIntent("work", {
|
|
70
|
-
evidenceRefs: [
|
|
71
|
-
{ id: "ev-1", kind: "platform_item", uri: "platform://moltbook/item/1" },
|
|
72
|
-
],
|
|
73
|
-
}, registry);
|
|
74
|
-
assert.equal(result, undefined);
|
|
75
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* T2.4.1 — Platform-specific intent resolution unit tests.
|
|
3
|
-
*
|
|
4
|
-
* Acceptance:
|
|
5
|
-
* A. accepted goal names a known platform → intent gets platformId.
|
|
6
|
-
* B. evidence refs name a known platform → intent gets platformId.
|
|
7
|
-
* C. registry validates capability; unsupported platform falls through.
|
|
8
|
-
* D. ambiguous / no signal → platformId remains undefined.
|
|
9
|
-
*/
|
|
10
|
-
import test from "node:test";
|
|
11
|
-
import assert from "node:assert/strict";
|
|
12
|
-
import { resolvePlatformForIntent } from "../../../src/core/second-nature/orchestrator/platform-capability-router.js";
|
|
13
|
-
import { CapabilityContractRegistry } from "../../../src/connectors/base/manifest.js";
|
|
14
|
-
function makeGoal(description, completionCriteria) {
|
|
15
|
-
return {
|
|
16
|
-
goalId: `goal-${Math.random().toString(36).slice(2)}`,
|
|
17
|
-
kind: "short_term",
|
|
18
|
-
description,
|
|
19
|
-
completionCriteria: completionCriteria ?? "",
|
|
20
|
-
status: "accepted",
|
|
21
|
-
origin: "owner_set",
|
|
22
|
-
acceptedBy: "owner",
|
|
23
|
-
risk: "low",
|
|
24
|
-
priorityHint: 50,
|
|
25
|
-
sourceRefs: [],
|
|
26
|
-
createdAt: new Date().toISOString(),
|
|
27
|
-
updatedAt: new Date().toISOString(),
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function buildRegistry() {
|
|
31
|
-
const r = new CapabilityContractRegistry();
|
|
32
|
-
r.register({
|
|
33
|
-
platformId: "moltbook",
|
|
34
|
-
supportedCapabilities: ["feed.read", "comment.reply"],
|
|
35
|
-
channelPriority: ["api_rest"],
|
|
36
|
-
credentialTypes: ["api_key"],
|
|
37
|
-
sourceRefPolicy: { minSourceRefs: 1 },
|
|
38
|
-
});
|
|
39
|
-
r.register({
|
|
40
|
-
platformId: "evomap",
|
|
41
|
-
supportedCapabilities: ["work.discover", "task.claim"],
|
|
42
|
-
channelPriority: ["api_rest"],
|
|
43
|
-
credentialTypes: ["api_key"],
|
|
44
|
-
sourceRefPolicy: { minSourceRefs: 1 },
|
|
45
|
-
});
|
|
46
|
-
return r;
|
|
47
|
-
}
|
|
48
|
-
test("T2.4.1-A: goal names moltbook → exploration resolves platformId=moltbook", () => {
|
|
49
|
-
const platformId = resolvePlatformForIntent("exploration", {
|
|
50
|
-
acceptedGoals: [makeGoal("Explore new opportunities on moltbook")],
|
|
51
|
-
});
|
|
52
|
-
assert.equal(platformId, "moltbook");
|
|
53
|
-
});
|
|
54
|
-
test("T2.4.1-A: goal names evomap → work resolves platformId=evomap", () => {
|
|
55
|
-
const platformId = resolvePlatformForIntent("work", {
|
|
56
|
-
acceptedGoals: [makeGoal("Find tasks on evomap")],
|
|
57
|
-
});
|
|
58
|
-
assert.equal(platformId, "evomap");
|
|
59
|
-
});
|
|
60
|
-
test("T2.4.1-B: evidence ref with connector_result id containing moltbook → social resolves platformId=moltbook", () => {
|
|
61
|
-
const platformId = resolvePlatformForIntent("social", {
|
|
62
|
-
evidenceRefs: [
|
|
63
|
-
{
|
|
64
|
-
id: "moltbook-post-001",
|
|
65
|
-
kind: "connector_result",
|
|
66
|
-
uri: "platform://moltbook/item/moltbook-post-001",
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
});
|
|
70
|
-
assert.equal(platformId, "moltbook");
|
|
71
|
-
});
|
|
72
|
-
test("T2.4.1-B: evidence ref uri platform://evomap → work resolves platformId=evomap", () => {
|
|
73
|
-
const platformId = resolvePlatformForIntent("work", {
|
|
74
|
-
evidenceRefs: [
|
|
75
|
-
{
|
|
76
|
-
id: "ref-1",
|
|
77
|
-
kind: "workspace_artifact",
|
|
78
|
-
uri: "platform://evomap/work/discovery",
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
|
-
});
|
|
82
|
-
assert.equal(platformId, "evomap");
|
|
83
|
-
});
|
|
84
|
-
test("T2.4.1-C: registry validates capability; unsupported capability returns undefined", () => {
|
|
85
|
-
const registry = buildRegistry();
|
|
86
|
-
// evomap supports work.discover but NOT feed.read (exploration)
|
|
87
|
-
const platformId = resolvePlatformForIntent("exploration", {
|
|
88
|
-
acceptedGoals: [makeGoal("Check evomap feed")],
|
|
89
|
-
}, registry);
|
|
90
|
-
// With registry, unsupported capability → undefined (guard layer denies)
|
|
91
|
-
assert.equal(platformId, undefined);
|
|
92
|
-
});
|
|
93
|
-
test("T2.4.1-C: registry validates supported capability → returns validated platform", () => {
|
|
94
|
-
const registry = buildRegistry();
|
|
95
|
-
const platformId = resolvePlatformForIntent("exploration", {
|
|
96
|
-
acceptedGoals: [makeGoal("Read moltbook feed")],
|
|
97
|
-
}, registry);
|
|
98
|
-
assert.equal(platformId, "moltbook");
|
|
99
|
-
});
|
|
100
|
-
test("T2.4.1-D: no goals, no evidence → fallback to first supported platform", () => {
|
|
101
|
-
const platformId = resolvePlatformForIntent("exploration", {});
|
|
102
|
-
assert.equal(platformId, "agent-world");
|
|
103
|
-
});
|
|
104
|
-
test("T2.4.1-D: goal mentions unknown platform → fallback to first supported platform", () => {
|
|
105
|
-
const platformId = resolvePlatformForIntent("exploration", {
|
|
106
|
-
acceptedGoals: [makeGoal("Explore new opportunities on unknownplatform")],
|
|
107
|
-
});
|
|
108
|
-
assert.equal(platformId, "agent-world");
|
|
109
|
-
});
|
|
110
|
-
test("T2.4.1-D: goal and evidence point to different platforms → ambiguous, returns undefined", () => {
|
|
111
|
-
const platformId = resolvePlatformForIntent("exploration", {
|
|
112
|
-
acceptedGoals: [makeGoal("Look at moltbook")],
|
|
113
|
-
evidenceRefs: [
|
|
114
|
-
{
|
|
115
|
-
id: "evomap-task-001",
|
|
116
|
-
kind: "connector_result",
|
|
117
|
-
uri: "platform://evomap/task/001",
|
|
118
|
-
},
|
|
119
|
-
],
|
|
120
|
-
});
|
|
121
|
-
// Multiple distinct platforms → ambiguous, return undefined (guard layer denies)
|
|
122
|
-
assert.equal(platformId, undefined);
|
|
123
|
-
});
|
|
124
|
-
test("T2.4.1-E: dynamic registry includes new platform → resolves new platformId", () => {
|
|
125
|
-
const registry = new CapabilityContractRegistry();
|
|
126
|
-
registry.register({
|
|
127
|
-
platformId: "agentworld",
|
|
128
|
-
supportedCapabilities: ["feed.read"],
|
|
129
|
-
channelPriority: ["api_rest"],
|
|
130
|
-
credentialTypes: ["api_key"],
|
|
131
|
-
sourceRefPolicy: { minSourceRefs: 1 },
|
|
132
|
-
});
|
|
133
|
-
const platformId = resolvePlatformForIntent("exploration", {
|
|
134
|
-
acceptedGoals: [makeGoal("Explore agentworld")],
|
|
135
|
-
}, registry);
|
|
136
|
-
assert.equal(platformId, "agentworld");
|
|
137
|
-
});
|
|
138
|
-
test("T2.4.1-F: no registry, unknown platform → fallback to first supported platform", () => {
|
|
139
|
-
const platformId = resolvePlatformForIntent("exploration", {
|
|
140
|
-
acceptedGoals: [makeGoal("Explore agentworld")],
|
|
141
|
-
});
|
|
142
|
-
// Fallback returns first alphabetically-sorted platform supporting the capability.
|
|
143
|
-
assert.equal(platformId, "agent-world");
|
|
144
|
-
});
|
|
145
|
-
test("T2.4.1-F: no registry still rejects unsupported fallback capability", () => {
|
|
146
|
-
const platformId = resolvePlatformForIntent("work", {
|
|
147
|
-
acceptedGoals: [makeGoal("work on moltbook")],
|
|
148
|
-
});
|
|
149
|
-
assert.equal(platformId, undefined);
|
|
150
|
-
});
|
|
151
|
-
test("T2.4.1: priority order: work → exploration → social → outreach → quiet", () => {
|
|
152
|
-
// kindToCapability mapping verification
|
|
153
|
-
assert.equal(resolvePlatformForIntent("work", {
|
|
154
|
-
acceptedGoals: [makeGoal("evomap tasks")],
|
|
155
|
-
}), "evomap");
|
|
156
|
-
assert.equal(resolvePlatformForIntent("exploration", {
|
|
157
|
-
acceptedGoals: [makeGoal("moltbook feed")],
|
|
158
|
-
}), "moltbook");
|
|
159
|
-
assert.equal(resolvePlatformForIntent("social", {
|
|
160
|
-
acceptedGoals: [makeGoal("moltbook social")],
|
|
161
|
-
}), "moltbook");
|
|
162
|
-
assert.equal(resolvePlatformForIntent("outreach", {
|
|
163
|
-
acceptedGoals: [makeGoal("message on moltbook")],
|
|
164
|
-
}), "moltbook");
|
|
165
|
-
assert.equal(resolvePlatformForIntent("quiet", {
|
|
166
|
-
acceptedGoals: [makeGoal("quiet on moltbook")],
|
|
167
|
-
}), undefined);
|
|
168
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import test from "node:test";
|
|
2
|
-
import assert from "node:assert/strict";
|
|
3
|
-
import { resolveDeliveryTarget } from "../../../src/core/second-nature/outreach/delivery-target.js";
|
|
4
|
-
import { judgeOutreach } from "../../../src/core/second-nature/outreach/judge-outreach.js";
|
|
5
|
-
const baseCandidate = () => ({
|
|
6
|
-
id: "c1",
|
|
7
|
-
kind: "outreach",
|
|
8
|
-
priority: 5,
|
|
9
|
-
source: "tick",
|
|
10
|
-
summary: "Discuss project alpha with you",
|
|
11
|
-
effectClass: "user_outreach",
|
|
12
|
-
sourceRefs: [
|
|
13
|
-
{
|
|
14
|
-
id: "ref1",
|
|
15
|
-
kind: "platform_item",
|
|
16
|
-
uri: "https://example.com/p/1",
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
-
});
|
|
20
|
-
function baseInput(over = {}) {
|
|
21
|
-
return {
|
|
22
|
-
candidate: baseCandidate(),
|
|
23
|
-
userInterest: {
|
|
24
|
-
staleness: "fresh",
|
|
25
|
-
confidence: 0.8,
|
|
26
|
-
signals: [
|
|
27
|
-
{
|
|
28
|
-
topic: "project alpha",
|
|
29
|
-
confidence: 0.9,
|
|
30
|
-
sourceRefs: [{ id: "sig1", kind: "user_anchor", uri: "file:///USER.md" }],
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
sourceRefs: [],
|
|
34
|
-
},
|
|
35
|
-
lifeEvidence: { empty: false, evidenceRefCount: 4 },
|
|
36
|
-
delivery: { target: "explicit", channel: "dm", recipient: "user-1" },
|
|
37
|
-
...over,
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
test("resolveDeliveryTarget: target_none", () => {
|
|
41
|
-
const r = resolveDeliveryTarget({ target: "none" });
|
|
42
|
-
assert.equal(r.verdict, "target_none");
|
|
43
|
-
});
|
|
44
|
-
test("resolveDeliveryTarget: explicit missing channel -> channel_missing", () => {
|
|
45
|
-
const r = resolveDeliveryTarget({ target: "explicit", channel: "", recipient: "u" });
|
|
46
|
-
assert.equal(r.verdict, "channel_missing");
|
|
47
|
-
});
|
|
48
|
-
test("resolveDeliveryTarget: explicit ok", () => {
|
|
49
|
-
const r = resolveDeliveryTarget({ target: "explicit", channel: "dm", recipient: "u" });
|
|
50
|
-
assert.equal(r.verdict, "target_available");
|
|
51
|
-
assert.equal(r.channel, "dm");
|
|
52
|
-
});
|
|
53
|
-
test("resolveDeliveryTarget: last without lastKnownVisibleChannel", () => {
|
|
54
|
-
const r = resolveDeliveryTarget({ target: "last" });
|
|
55
|
-
assert.equal(r.verdict, "channel_missing");
|
|
56
|
-
});
|
|
57
|
-
test("judgeOutreach: allow when delivery available and scores ok", () => {
|
|
58
|
-
const j = judgeOutreach(baseInput());
|
|
59
|
-
assert.equal(j.verdict, "allow");
|
|
60
|
-
assert.equal(j.deliveryVerdict, "target_available");
|
|
61
|
-
});
|
|
62
|
-
test("judgeOutreach: deny on missing sources", () => {
|
|
63
|
-
const c = baseCandidate();
|
|
64
|
-
c.sourceRefs = [];
|
|
65
|
-
const j = judgeOutreach(baseInput({ candidate: c }));
|
|
66
|
-
assert.equal(j.verdict, "deny");
|
|
67
|
-
assert.ok(j.reasons.includes("missing_source_refs"));
|
|
68
|
-
});
|
|
69
|
-
test("judgeOutreach: target_none still allow judgment but marks delivery verdict", () => {
|
|
70
|
-
const j = judgeOutreach(baseInput({ delivery: { target: "none" } }));
|
|
71
|
-
assert.equal(j.deliveryVerdict, "target_none");
|
|
72
|
-
assert.equal(j.verdict, "allow");
|
|
73
|
-
assert.ok(j.reasons.includes("target_none"));
|
|
74
|
-
});
|
|
75
|
-
test("judgeOutreach: defer on duplicate", () => {
|
|
76
|
-
const j = judgeOutreach(baseInput({ duplicateBlocked: true }));
|
|
77
|
-
assert.equal(j.verdict, "defer");
|
|
78
|
-
assert.equal(j.cooldownState, "duplicate");
|
|
79
|
-
});
|
|
80
|
-
test("judgeOutreach: defer on cooldown", () => {
|
|
81
|
-
const j = judgeOutreach(baseInput({ cooldownBlocked: true }));
|
|
82
|
-
assert.equal(j.verdict, "defer");
|
|
83
|
-
});
|
|
84
|
-
test("judgeOutreach: insufficient interest and low actionability -> deny", () => {
|
|
85
|
-
const j = judgeOutreach(baseInput({
|
|
86
|
-
userInterest: {
|
|
87
|
-
staleness: "insufficient",
|
|
88
|
-
confidence: 0,
|
|
89
|
-
signals: [],
|
|
90
|
-
sourceRefs: [],
|
|
91
|
-
},
|
|
92
|
-
candidate: {
|
|
93
|
-
...baseCandidate(),
|
|
94
|
-
summary: "random unrelated text xyzabc",
|
|
95
|
-
},
|
|
96
|
-
}));
|
|
97
|
-
assert.equal(j.verdict, "deny");
|
|
98
|
-
assert.ok(j.reasons.includes("not_interest_relevant_or_actionable"));
|
|
99
|
-
});
|
|
100
|
-
test("judgeOutreach: low outreach value score -> deny with value_score_too_low (CH-09-06)", () => {
|
|
101
|
-
const c = baseCandidate();
|
|
102
|
-
c.priority = 0;
|
|
103
|
-
const j = judgeOutreach(baseInput({
|
|
104
|
-
candidate: c,
|
|
105
|
-
lifeEvidence: { empty: true, evidenceRefCount: 0 },
|
|
106
|
-
}));
|
|
107
|
-
assert.equal(j.verdict, "deny");
|
|
108
|
-
assert.ok(j.reasons.includes("value_score_too_low"));
|
|
109
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import test from "node:test";
|
|
2
|
-
import assert from "node:assert/strict";
|
|
3
|
-
import { resolveAllowedIntentResult } from "../../../src/core/second-nature/heartbeat/heartbeat-loop.js";
|
|
4
|
-
import { buildContinuitySnapshot } from "../../../src/core/second-nature/heartbeat/snapshot-builder.js";
|
|
5
|
-
import { buildHeartbeatRuntimeSnapshot } from "../../../src/core/second-nature/heartbeat/runtime-snapshot.js";
|
|
6
|
-
import { createDraftOutreachMessagePort } from "../../../src/guidance/draft-outreach-message.js";
|
|
7
|
-
import { createStateDatabase } from "../../../src/storage/db/index.js";
|
|
8
|
-
const signal = {
|
|
9
|
-
trigger: "heartbeat_bridge",
|
|
10
|
-
scopeHint: "rhythm",
|
|
11
|
-
payload: { timestamp: "2026-05-02T12:00:00.000Z" },
|
|
12
|
-
};
|
|
13
|
-
test("CR-M1 resolveAllowedIntentResult runs outreach dispatch chain", async () => {
|
|
14
|
-
const state = createStateDatabase(":memory:");
|
|
15
|
-
const candidate = {
|
|
16
|
-
id: "c-out",
|
|
17
|
-
kind: "outreach",
|
|
18
|
-
priority: 40,
|
|
19
|
-
source: "tick",
|
|
20
|
-
summary: "platform direction check-in",
|
|
21
|
-
effectClass: "user_outreach",
|
|
22
|
-
sourceRefs: [{ id: "s1", kind: "platform_item", uri: "https://example/s1" }],
|
|
23
|
-
idempotencyKey: "outreach:test",
|
|
24
|
-
};
|
|
25
|
-
const inputs = {
|
|
26
|
-
mode: "active",
|
|
27
|
-
currentWindowId: "win_work_morning",
|
|
28
|
-
pendingObligations: [],
|
|
29
|
-
recentOutreachHashes: [],
|
|
30
|
-
deniedIntents: [],
|
|
31
|
-
lifeEvidenceRefs: [{ id: "s1", kind: "platform_item", uri: "https://example/s1" }],
|
|
32
|
-
deliveryCapability: { target: "explicit", channel: "dm", recipient: "u1" },
|
|
33
|
-
userInterestSnapshot: {
|
|
34
|
-
snapshotId: "uis-1",
|
|
35
|
-
generatedAt: "2026-05-02T12:00:00Z",
|
|
36
|
-
signals: [
|
|
37
|
-
{
|
|
38
|
-
id: "sig-1",
|
|
39
|
-
topic: "platform",
|
|
40
|
-
confidence: 0.8,
|
|
41
|
-
affinity: "positive",
|
|
42
|
-
reason: "r",
|
|
43
|
-
sourceRefs: [],
|
|
44
|
-
updatedAt: "2026-05-02T12:00:00Z",
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
sourceRefs: [],
|
|
48
|
-
confidence: 0.8,
|
|
49
|
-
staleness: "fresh",
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
const continuity = buildContinuitySnapshot(inputs);
|
|
53
|
-
const runtime = buildHeartbeatRuntimeSnapshot("2026-05-02T12:00:00.000Z", inputs, continuity);
|
|
54
|
-
const r = await resolveAllowedIntentResult(candidate, runtime, inputs, signal, {
|
|
55
|
-
outreachDispatch: {
|
|
56
|
-
state,
|
|
57
|
-
guidance: createDraftOutreachMessagePort(),
|
|
58
|
-
delivery: {
|
|
59
|
-
sendDeliveryRequest: async () => ({
|
|
60
|
-
id: "att-x",
|
|
61
|
-
status: "failed",
|
|
62
|
-
errorClass: "transport_failure",
|
|
63
|
-
}),
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
});
|
|
67
|
-
assert.equal(r.status, "delivery_unavailable");
|
|
68
|
-
state.close();
|
|
69
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* T2.2.3 — `connector_action` / 无外部效应 `intent_selected` 诚实闭合。
|
|
3
|
-
*
|
|
4
|
-
* CH-14-02/03 根因:`resolveAllowedIntentResult` 对 maintenance/no_effect effectClass
|
|
5
|
-
* 返回 `reasons: []`,operator 无法区分「已执行外部效应」vs「内部节律周期无可见输出」。
|
|
6
|
-
*
|
|
7
|
-
* 验收标准:
|
|
8
|
-
* A. `effectClass === "maintenance"` 时,周期 JSON 含 `internal_tick` reason。
|
|
9
|
-
* B. `effectClass === "no_effect"` 时,周期 JSON 含 `internal_tick` reason。
|
|
10
|
-
* C. `kind === "maintenance"` 时,周期 JSON 含 `internal_tick` reason。
|
|
11
|
-
* D. `effectClass === "connector_action"` 但无 dispatch wired 时,reasons 含
|
|
12
|
-
* `connector_dispatch_unwired`(CH-15-01:禁止空 reasons 冒充已执行,需有可机读原因区分)。
|
|
13
|
-
* E. 通过 `ingestRhythmSignal` 完整路径验证 maintenance intent 被选后
|
|
14
|
-
* 其 reasons 包含 `internal_tick`。
|
|
15
|
-
*/
|
|
16
|
-
import test from "node:test";
|
|
17
|
-
import assert from "node:assert/strict";
|
|
18
|
-
import { resolveAllowedIntentResult, ingestRhythmSignal, } from "../../../src/core/second-nature/heartbeat/heartbeat-loop.js";
|
|
19
|
-
import { buildContinuitySnapshot } from "../../../src/core/second-nature/heartbeat/snapshot-builder.js";
|
|
20
|
-
import { buildHeartbeatRuntimeSnapshot } from "../../../src/core/second-nature/heartbeat/runtime-snapshot.js";
|
|
21
|
-
const signal = {
|
|
22
|
-
trigger: "heartbeat_bridge",
|
|
23
|
-
scopeHint: "rhythm",
|
|
24
|
-
payload: { timestamp: "2026-05-10T10:00:00.000Z" },
|
|
25
|
-
};
|
|
26
|
-
const baseInputs = {
|
|
27
|
-
mode: "active",
|
|
28
|
-
currentWindowId: "win_work_morning",
|
|
29
|
-
pendingObligations: [],
|
|
30
|
-
recentOutreachHashes: [],
|
|
31
|
-
deniedIntents: [],
|
|
32
|
-
};
|
|
33
|
-
function makeRuntime(inputs) {
|
|
34
|
-
const continuity = buildContinuitySnapshot(inputs);
|
|
35
|
-
return buildHeartbeatRuntimeSnapshot("2026-05-10T10:00:00.000Z", inputs, continuity);
|
|
36
|
-
}
|
|
37
|
-
// ─── Case A: maintenance effectClass → internal_tick ─────────────────────────
|
|
38
|
-
test("T2.2.3 A — maintenance effectClass → reasons includes internal_tick", async () => {
|
|
39
|
-
const intent = {
|
|
40
|
-
id: "intent-maint-a",
|
|
41
|
-
kind: "maintenance",
|
|
42
|
-
priority: 10,
|
|
43
|
-
source: "tick",
|
|
44
|
-
summary: "run maintenance checks",
|
|
45
|
-
effectClass: "maintenance",
|
|
46
|
-
sourceRefs: [],
|
|
47
|
-
idempotencyKey: "maint:a",
|
|
48
|
-
};
|
|
49
|
-
const runtime = makeRuntime(baseInputs);
|
|
50
|
-
const result = await resolveAllowedIntentResult(intent, runtime, baseInputs, signal, {});
|
|
51
|
-
assert.equal(result.status, "intent_selected");
|
|
52
|
-
assert.ok(result.reasons.includes("internal_tick"), `Expected reasons to include 'internal_tick', got: ${JSON.stringify(result.reasons)}`);
|
|
53
|
-
});
|
|
54
|
-
// ─── Case B: no_effect effectClass → internal_tick ───────────────────────────
|
|
55
|
-
test("T2.2.3 B — no_effect effectClass → reasons includes internal_tick", async () => {
|
|
56
|
-
const intent = {
|
|
57
|
-
id: "intent-noeffect-b",
|
|
58
|
-
kind: "work",
|
|
59
|
-
priority: 10,
|
|
60
|
-
source: "tick",
|
|
61
|
-
summary: "internal state check",
|
|
62
|
-
effectClass: "no_effect",
|
|
63
|
-
sourceRefs: [],
|
|
64
|
-
idempotencyKey: "noeffect:b",
|
|
65
|
-
};
|
|
66
|
-
const runtime = makeRuntime(baseInputs);
|
|
67
|
-
const result = await resolveAllowedIntentResult(intent, runtime, baseInputs, signal, {});
|
|
68
|
-
assert.equal(result.status, "intent_selected");
|
|
69
|
-
assert.ok(result.reasons.includes("internal_tick"), `Expected reasons to include 'internal_tick', got: ${JSON.stringify(result.reasons)}`);
|
|
70
|
-
});
|
|
71
|
-
// ─── Case C: maintenance kind (any effectClass) → internal_tick ───────────────
|
|
72
|
-
test("T2.2.3 C — maintenance kind → reasons includes internal_tick", async () => {
|
|
73
|
-
const intent = {
|
|
74
|
-
id: "intent-maint-c",
|
|
75
|
-
kind: "maintenance",
|
|
76
|
-
priority: 10,
|
|
77
|
-
source: "tick",
|
|
78
|
-
summary: "run maintenance checks",
|
|
79
|
-
effectClass: "memory_curation",
|
|
80
|
-
sourceRefs: [],
|
|
81
|
-
idempotencyKey: "maint:c",
|
|
82
|
-
};
|
|
83
|
-
const runtime = makeRuntime(baseInputs);
|
|
84
|
-
const result = await resolveAllowedIntentResult(intent, runtime, baseInputs, signal, {});
|
|
85
|
-
assert.equal(result.status, "intent_selected");
|
|
86
|
-
assert.ok(result.reasons.includes("internal_tick"), `Expected reasons to include 'internal_tick' for maintenance kind, got: ${JSON.stringify(result.reasons)}`);
|
|
87
|
-
});
|
|
88
|
-
// ─── Case D: connector_action without dispatch → reasons empty (not internal_tick) ──
|
|
89
|
-
test("T2.2.3 D — connector_action without dispatch wired → reasons empty (not internal_tick)", async () => {
|
|
90
|
-
const intent = {
|
|
91
|
-
id: "intent-conn-d",
|
|
92
|
-
kind: "exploration",
|
|
93
|
-
priority: 30,
|
|
94
|
-
source: "tick",
|
|
95
|
-
summary: "explore moltbook feed",
|
|
96
|
-
effectClass: "connector_action",
|
|
97
|
-
platformId: "moltbook",
|
|
98
|
-
sourceRefs: [{ id: "s1", kind: "platform_item", uri: "moltbook://item/1" }],
|
|
99
|
-
idempotencyKey: "conn:d",
|
|
100
|
-
};
|
|
101
|
-
const runtime = makeRuntime(baseInputs);
|
|
102
|
-
const result = await resolveAllowedIntentResult(intent, runtime, baseInputs, signal, {});
|
|
103
|
-
assert.equal(result.status, "intent_selected");
|
|
104
|
-
// CH-15-01: connector_action without dispatch wired must carry "connector_dispatch_unwired"
|
|
105
|
-
// so operators can distinguish "no dispatch configured" from "dispatch executed".
|
|
106
|
-
assert.ok(result.reasons.includes("connector_dispatch_unwired"), `Expected reasons to include 'connector_dispatch_unwired' for unwired connector_action, got: ${JSON.stringify(result.reasons)}`);
|
|
107
|
-
assert.ok(!result.reasons.includes("internal_tick"), `Expected no 'internal_tick' for connector_action (not maintenance), got: ${JSON.stringify(result.reasons)}`);
|
|
108
|
-
});
|
|
109
|
-
// ─── Case E: ingestRhythmSignal full path — maintenance selected → internal_tick ──
|
|
110
|
-
test("T2.2.3 E — ingestRhythmSignal maintenance path → result includes internal_tick", async () => {
|
|
111
|
-
// Force maintenance_only mode so planner yields only the maintenance intent.
|
|
112
|
-
const inputs = {
|
|
113
|
-
...baseInputs,
|
|
114
|
-
mode: "maintenance_only",
|
|
115
|
-
currentWindowId: "win_maintenance",
|
|
116
|
-
};
|
|
117
|
-
const result = await ingestRhythmSignal(signal, {
|
|
118
|
-
loadSnapshotInputs: async () => inputs,
|
|
119
|
-
});
|
|
120
|
-
// In maintenance_only mode the planner should emit the maintenance intent.
|
|
121
|
-
// Guard evaluates it as "allow"; resolveAllowedIntentResult should then tag internal_tick.
|
|
122
|
-
if (result.status === "intent_selected") {
|
|
123
|
-
assert.ok(result.reasons.includes("internal_tick"), `maintenance_only mode → expected internal_tick in reasons, got: ${JSON.stringify(result.reasons)}`);
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
// If no intent was selected (e.g., heartbeat_ok or denied), that's still valid — just note it.
|
|
127
|
-
// The key contract is: IF selected, internal_tick must be present for maintenance-class intents.
|
|
128
|
-
assert.ok(["heartbeat_ok", "deferred", "denied"].includes(result.status), `Unexpected status: ${result.status}`);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* T2.2.3 extension — connector_action with wired connectorExecutor.
|
|
3
|
-
*
|
|
4
|
-
* When connectorExecutor is present, resolveAllowedIntentResult dispatches
|
|
5
|
-
* through the connector-system instead of returning connector_dispatch_unwired.
|
|
6
|
-
*/
|
|
7
|
-
import test from "node:test";
|
|
8
|
-
import assert from "node:assert/strict";
|
|
9
|
-
import { resolveAllowedIntentResult } from "../../../src/core/second-nature/heartbeat/heartbeat-loop.js";
|
|
10
|
-
import { buildContinuitySnapshot } from "../../../src/core/second-nature/heartbeat/snapshot-builder.js";
|
|
11
|
-
import { buildHeartbeatRuntimeSnapshot } from "../../../src/core/second-nature/heartbeat/runtime-snapshot.js";
|
|
12
|
-
const signal = {
|
|
13
|
-
trigger: "heartbeat_bridge",
|
|
14
|
-
scopeHint: "rhythm",
|
|
15
|
-
payload: { timestamp: "2026-05-10T10:00:00.000Z" },
|
|
16
|
-
};
|
|
17
|
-
const baseInputs = {
|
|
18
|
-
mode: "active",
|
|
19
|
-
currentWindowId: "win_work_morning",
|
|
20
|
-
pendingObligations: [],
|
|
21
|
-
recentOutreachHashes: [],
|
|
22
|
-
deniedIntents: [],
|
|
23
|
-
};
|
|
24
|
-
function makeRuntime(inputs) {
|
|
25
|
-
const continuity = buildContinuitySnapshot(inputs);
|
|
26
|
-
return buildHeartbeatRuntimeSnapshot("2026-05-10T10:00:00.000Z", inputs, continuity);
|
|
27
|
-
}
|
|
28
|
-
function makeExplorationIntent() {
|
|
29
|
-
return {
|
|
30
|
-
id: "intent-conn-explore",
|
|
31
|
-
kind: "exploration",
|
|
32
|
-
priority: 30,
|
|
33
|
-
source: "tick",
|
|
34
|
-
summary: "explore moltbook feed",
|
|
35
|
-
effectClass: "connector_action",
|
|
36
|
-
platformId: "moltbook",
|
|
37
|
-
sourceRefs: [{ id: "s1", kind: "platform_item", uri: "moltbook://item/1" }],
|
|
38
|
-
idempotencyKey: "conn:explore",
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
// ─── Case F: connectorExecutor present + success → connector_effect_executed ─────
|
|
42
|
-
test("T2.2.3 F — connector_action with executor success → connector_effect_executed", async () => {
|
|
43
|
-
const executor = {
|
|
44
|
-
async executeEffect() {
|
|
45
|
-
return {
|
|
46
|
-
status: "success",
|
|
47
|
-
data: { items: [{ id: "mb-1", title: "test" }] },
|
|
48
|
-
metadata: { platformId: "moltbook", channel: "api_rest", latencyMs: 5 },
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
const runtime = makeRuntime(baseInputs);
|
|
53
|
-
const result = await resolveAllowedIntentResult(makeExplorationIntent(), runtime, baseInputs, signal, { connectorExecutor: executor });
|
|
54
|
-
assert.equal(result.status, "intent_selected");
|
|
55
|
-
assert.ok(result.reasons.includes("connector_effect_executed"), `Expected connector_effect_executed, got: ${JSON.stringify(result.reasons)}`);
|
|
56
|
-
assert.ok(result.decisionId, "expected decisionId to be set");
|
|
57
|
-
});
|
|
58
|
-
// ─── Case G: connectorExecutor present + retryable failure → connector_retryable_failure ─
|
|
59
|
-
test("T2.2.3 G — connector_action with executor retryable_failure → connector_retryable_failure", async () => {
|
|
60
|
-
const executor = {
|
|
61
|
-
async executeEffect() {
|
|
62
|
-
return {
|
|
63
|
-
status: "retryable_failure",
|
|
64
|
-
failureClass: "rate_limited",
|
|
65
|
-
retryAfterMs: 30000,
|
|
66
|
-
metadata: { platformId: "moltbook", channel: "api_rest", latencyMs: 2 },
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
const runtime = makeRuntime(baseInputs);
|
|
71
|
-
const result = await resolveAllowedIntentResult(makeExplorationIntent(), runtime, baseInputs, signal, { connectorExecutor: executor });
|
|
72
|
-
assert.equal(result.status, "intent_selected");
|
|
73
|
-
assert.ok(result.reasons.includes("connector_retryable_failure"), `Expected connector_retryable_failure, got: ${JSON.stringify(result.reasons)}`);
|
|
74
|
-
assert.ok(result.reasons.includes("rate_limited"), `Expected rate_limited in reasons, got: ${JSON.stringify(result.reasons)}`);
|
|
75
|
-
});
|
|
76
|
-
// ─── Case H: connectorExecutor present + terminal failure → connector_terminal_failure ──
|
|
77
|
-
test("T2.2.3 H — connector_action with executor terminal failure → connector_terminal_failure", async () => {
|
|
78
|
-
const executor = {
|
|
79
|
-
async executeEffect() {
|
|
80
|
-
return {
|
|
81
|
-
status: "terminal_failure",
|
|
82
|
-
failureClass: "auth_failure",
|
|
83
|
-
metadata: { platformId: "moltbook", channel: "api_rest", latencyMs: 1 },
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
const runtime = makeRuntime(baseInputs);
|
|
88
|
-
const result = await resolveAllowedIntentResult(makeExplorationIntent(), runtime, baseInputs, signal, { connectorExecutor: executor });
|
|
89
|
-
assert.equal(result.status, "intent_selected");
|
|
90
|
-
assert.ok(result.reasons.includes("connector_terminal_failure"), `Expected connector_terminal_failure, got: ${JSON.stringify(result.reasons)}`);
|
|
91
|
-
assert.ok(result.reasons.includes("auth_failure"), `Expected auth_failure in reasons, got: ${JSON.stringify(result.reasons)}`);
|
|
92
|
-
});
|
|
93
|
-
// ─── Case I: no connectorExecutor → still returns connector_dispatch_unwired ──────
|
|
94
|
-
test("T2.2.3 I — connector_action without executor still returns connector_dispatch_unwired", async () => {
|
|
95
|
-
const runtime = makeRuntime(baseInputs);
|
|
96
|
-
const result = await resolveAllowedIntentResult(makeExplorationIntent(), runtime, baseInputs, signal, {});
|
|
97
|
-
assert.equal(result.status, "intent_selected");
|
|
98
|
-
assert.ok(result.reasons.includes("connector_dispatch_unwired"), `Expected connector_dispatch_unwired, got: ${JSON.stringify(result.reasons)}`);
|
|
99
|
-
});
|