@haaaiawd/second-nature 0.1.43 → 0.1.50
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/HEARTBEAT.md +44 -0
- package/LICENSE +176 -0
- package/README.md +136 -0
- package/README.zh-CN.md +120 -0
- package/SKILL.md +320 -22
- package/dist/data/observability.db +0 -0
- package/dist/data/state.db +0 -0
- package/dist/plugin/index.d.ts +31 -0
- package/dist/plugin/workspace-ops-bridge.d.ts +15 -0
- package/dist/scripts/build-plugin-package.d.ts +12 -0
- package/dist/scripts/build-plugin-package.js +220 -0
- package/dist/scripts/build-plugin-runtime.d.ts +10 -0
- package/dist/scripts/build-plugin-runtime.js +198 -0
- package/dist/scripts/packaging-feasibility-poc.js +127 -0
- package/dist/scripts/plugin-smoke-check.js +124 -0
- package/dist/src/cli/action-bridge.d.ts +11 -0
- package/dist/src/cli/index.d.ts +65 -0
- package/dist/src/cli/ops/heartbeat-surface.d.ts +84 -0
- package/dist/src/cli/ops/heartbeat-surface.js +100 -0
- package/dist/src/cli/ops/ops-router.js +1482 -0
- package/dist/src/cli/ops/workspace-heartbeat-runner.d.ts +85 -0
- package/dist/src/cli/ops/workspace-heartbeat-runner.js +242 -0
- package/dist/src/core/second-nature/heartbeat/goal-lifecycle-policy.d.ts +24 -0
- package/dist/src/core/second-nature/heartbeat/goal-lifecycle-policy.js +61 -0
- package/dist/src/core/second-nature/heartbeat/heartbeat-loop.d.ts +97 -0
- package/dist/src/core/second-nature/heartbeat/heartbeat-loop.js +397 -0
- package/dist/src/core/second-nature/orchestrator/platform-capability-router.js +149 -0
- package/dist/src/storage/snapshots/types.js +1 -0
- package/dist/src/storage/user-interest/types.js +1 -0
- package/dist/tests/integration/cli/cli-ops-surface.test.d.ts +1 -0
- package/dist/tests/integration/cli/cli-ops-surface.test.js +380 -0
- package/dist/tests/integration/cli/heartbeat-surface-workspace.test.d.ts +1 -0
- package/dist/tests/integration/cli/heartbeat-surface-workspace.test.js +61 -0
- package/dist/tests/integration/cli/host-capability-probe.test.d.ts +1 -0
- package/dist/tests/integration/cli/host-capability-probe.test.js +37 -0
- package/dist/tests/integration/cli/host-smoke-heartbeat-tool.test.d.ts +1 -0
- package/dist/tests/integration/cli/host-smoke-heartbeat-tool.test.js +34 -0
- package/dist/tests/integration/cli/plugin-packaging-walkthrough.test.d.ts +1 -0
- package/dist/tests/integration/cli/plugin-packaging-walkthrough.test.js +79 -0
- package/dist/tests/integration/cli/plugin-runtime-registration.test.d.ts +1 -0
- package/dist/tests/integration/cli/plugin-runtime-registration.test.js +285 -0
- package/dist/tests/integration/cli/plugin-workspace-ops-bridge.test.d.ts +1 -0
- package/dist/tests/integration/cli/plugin-workspace-ops-bridge.test.js +487 -0
- package/dist/tests/integration/cli/t1-2-1-explain-read-models.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-1-explain-read-models.test.js +58 -0
- package/dist/tests/integration/cli/t1-2-1-narrative-command.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-1-narrative-command.test.js +194 -0
- package/dist/tests/integration/cli/t1-2-2-dream-recent.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-2-dream-recent.test.js +100 -0
- package/dist/tests/integration/cli/t1-2-3-status-observability-writeback.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-3-status-observability-writeback.test.js +71 -0
- package/dist/tests/integration/cli/t1-2-4-quiet-report-read-canonical.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-4-quiet-report-read-canonical.test.js +206 -0
- package/dist/tests/integration/cli/t1-2-5-cycle-recent.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-5-cycle-recent.test.js +156 -0
- package/dist/tests/integration/cli/t1-2-5-status-delivery-posture-audit-store.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-5-status-delivery-posture-audit-store.test.js +95 -0
- package/dist/tests/integration/cli/t1-2-6-policy-show-non-shell.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-6-policy-show-non-shell.test.js +74 -0
- package/dist/tests/integration/cli/t1-2-6-status-aggregate.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-6-status-aggregate.test.js +223 -0
- package/dist/tests/integration/cli/t1-2-7-audit-command-minimal-closure.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-7-audit-command-minimal-closure.test.js +101 -0
- package/dist/tests/integration/cli/t1-2-8-capability-probe-ops-surface.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-8-capability-probe-ops-surface.test.js +74 -0
- package/dist/tests/integration/cli/t1-2-9-decision-denied-not-degraded.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-2-9-decision-denied-not-degraded.test.js +79 -0
- package/dist/tests/integration/cli/t1-4-1-runtime-secret-bootstrap.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-4-1-runtime-secret-bootstrap.test.js +139 -0
- package/dist/tests/integration/cli/t1-4-2-activation-ux-contract.test.d.ts +1 -0
- package/dist/tests/integration/cli/t1-4-2-activation-ux-contract.test.js +143 -0
- package/dist/tests/integration/cli/t2-2-2-snapshot-life-evidence.test.d.ts +1 -0
- package/dist/tests/integration/cli/t2-2-2-snapshot-life-evidence.test.js +116 -0
- package/dist/tests/integration/cli/t3-3-2-near-real-smoke-cli-bridge.test.d.ts +1 -0
- package/dist/tests/integration/cli/t3-3-2-near-real-smoke-cli-bridge.test.js +69 -0
- package/dist/tests/integration/connectors/connector-base.test.d.ts +1 -0
- package/dist/tests/integration/connectors/connector-base.test.js +211 -0
- package/dist/tests/integration/connectors/connector-executor-adapter-honest-failure.test.d.ts +1 -0
- package/dist/tests/integration/connectors/connector-executor-adapter-honest-failure.test.js +311 -0
- package/dist/tests/integration/connectors/credential-optional-regression.test.d.ts +1 -0
- package/dist/tests/integration/connectors/credential-optional-regression.test.js +117 -0
- package/dist/tests/integration/connectors/declarative-http-runner.test.d.ts +7 -0
- package/dist/tests/integration/connectors/declarative-http-runner.test.js +229 -0
- package/dist/tests/integration/connectors/evomap-secret-port.test.d.ts +1 -0
- package/dist/tests/integration/connectors/evomap-secret-port.test.js +83 -0
- package/dist/tests/integration/connectors/life-evidence-chain.test.d.ts +1 -0
- package/dist/tests/integration/connectors/life-evidence-chain.test.js +188 -0
- package/dist/tests/integration/connectors/moltbook-client.test.d.ts +1 -0
- package/dist/tests/integration/connectors/moltbook-client.test.js +274 -0
- package/dist/tests/integration/connectors/moltbook-mock-runner.test.d.ts +7 -0
- package/dist/tests/integration/connectors/moltbook-mock-runner.test.js +108 -0
- package/dist/tests/integration/connectors/near-real-connector-smoke.test.d.ts +1 -0
- package/dist/tests/integration/connectors/near-real-connector-smoke.test.js +38 -0
- package/dist/tests/integration/connectors/platform-adapters.test.d.ts +1 -0
- package/dist/tests/integration/connectors/platform-adapters.test.js +189 -0
- package/dist/tests/integration/connectors/policy-layer.test.d.ts +1 -0
- package/dist/tests/integration/connectors/policy-layer.test.js +249 -0
- package/dist/tests/integration/connectors/scriptable-node-e2e.test.d.ts +1 -0
- package/dist/tests/integration/connectors/scriptable-node-e2e.test.js +228 -0
- package/dist/tests/integration/connectors/t3-3-1-real-connector-evidence.test.d.ts +1 -0
- package/dist/tests/integration/connectors/t3-3-1-real-connector-evidence.test.js +171 -0
- package/dist/tests/integration/control-plane/_helpers/decision-cycle-harness.d.ts +40 -0
- package/dist/tests/integration/control-plane/_helpers/decision-cycle-harness.js +116 -0
- package/dist/tests/integration/control-plane/decision-loop-validation.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/decision-loop-validation.test.js +319 -0
- package/dist/tests/integration/control-plane/delivery-failed-fallback.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/delivery-failed-fallback.test.js +118 -0
- package/dist/tests/integration/control-plane/dream-projection-heartbeat.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/dream-projection-heartbeat.test.js +109 -0
- package/dist/tests/integration/control-plane/effect-dispatcher.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/effect-dispatcher.test.js +157 -0
- package/dist/tests/integration/control-plane/guidance-request.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/guidance-request.test.js +63 -0
- package/dist/tests/integration/control-plane/heartbeat-executor.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/heartbeat-executor.test.js +363 -0
- package/dist/tests/integration/control-plane/heartbeat-loop.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/heartbeat-loop.test.js +190 -0
- package/dist/tests/integration/control-plane/heartbeat-quiet-orchestration.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/heartbeat-quiet-orchestration.test.js +133 -0
- package/dist/tests/integration/control-plane/heartbeat-spine-integration.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/heartbeat-spine-integration.test.js +342 -0
- package/dist/tests/integration/control-plane/heartbeat-spine.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/heartbeat-spine.test.js +216 -0
- package/dist/tests/integration/control-plane/int-s3-outreach-delivery-quiet-closure.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/int-s3-outreach-delivery-quiet-closure.test.js +241 -0
- package/dist/tests/integration/control-plane/outreach-resume.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/outreach-resume.test.js +158 -0
- package/dist/tests/integration/control-plane/outreach-style.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/outreach-style.test.js +46 -0
- package/dist/tests/integration/control-plane/quiet-reflection.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/quiet-reflection.test.js +73 -0
- package/dist/tests/integration/control-plane/rhythm-intent-guard.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/rhythm-intent-guard.test.js +99 -0
- package/dist/tests/integration/control-plane/run-heartbeat-cycle.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/run-heartbeat-cycle.test.js +80 -0
- package/dist/tests/integration/control-plane/t2-3-1-outreach-v6.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/t2-3-1-outreach-v6.test.js +208 -0
- package/dist/tests/integration/control-plane/t2-4-1-heartbeat-platform-intent.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/t2-4-1-heartbeat-platform-intent.test.js +156 -0
- package/dist/tests/integration/control-plane/t2-4-2-source-backed-outreach-loop.test.d.ts +1 -0
- package/dist/tests/integration/control-plane/t2-4-2-source-backed-outreach-loop.test.js +188 -0
- package/dist/tests/integration/control-plane/v7c-evidence-body-feedback.test.d.ts +11 -0
- package/dist/tests/integration/control-plane/v7c-evidence-body-feedback.test.js +213 -0
- package/dist/tests/integration/control-plane/v7c-heartbeat-unlock-e2e.test.d.ts +9 -0
- package/dist/tests/integration/control-plane/v7c-heartbeat-unlock-e2e.test.js +134 -0
- package/dist/tests/integration/dream/quiet-dream-trigger.test.d.ts +1 -0
- package/dist/tests/integration/dream/quiet-dream-trigger.test.js +86 -0
- package/dist/tests/integration/dream/t7-1-1-dream-pipeline.test.d.ts +1 -0
- package/dist/tests/integration/dream/t7-1-1-dream-pipeline.test.js +378 -0
- package/dist/tests/integration/dream/t7-1-2-dream-scheduler.test.d.ts +1 -0
- package/dist/tests/integration/dream/t7-1-2-dream-scheduler.test.js +124 -0
- package/dist/tests/integration/dream/v7c-rhythm-loop.test.d.ts +10 -0
- package/dist/tests/integration/dream/v7c-rhythm-loop.test.js +185 -0
- package/dist/tests/integration/guidance/assembler-and-fallback.test.d.ts +1 -0
- package/dist/tests/integration/guidance/assembler-and-fallback.test.js +86 -0
- package/dist/tests/integration/guidance/outreach-draft-contract.test.d.ts +1 -0
- package/dist/tests/integration/guidance/outreach-draft-contract.test.js +106 -0
- package/dist/tests/integration/guidance/persona-selection.test.d.ts +1 -0
- package/dist/tests/integration/guidance/persona-selection.test.js +70 -0
- package/dist/tests/integration/guidance/template-review.test.d.ts +1 -0
- package/dist/tests/integration/guidance/template-review.test.js +26 -0
- package/dist/tests/integration/guidance/user-reply-continuity.test.d.ts +1 -0
- package/dist/tests/integration/guidance/user-reply-continuity.test.js +96 -0
- package/dist/tests/integration/guidance/v7c-guidance-chain.test.d.ts +1 -0
- package/dist/tests/integration/guidance/v7c-guidance-chain.test.js +190 -0
- package/dist/tests/integration/guidance/v7c-guidance-semantics.test.d.ts +1 -0
- package/dist/tests/integration/guidance/v7c-guidance-semantics.test.js +146 -0
- package/dist/tests/integration/observability/digest-delivery.test.d.ts +14 -0
- package/dist/tests/integration/observability/digest-delivery.test.js +160 -0
- package/dist/tests/integration/observability/evidence-query-engine.test.d.ts +1 -0
- package/dist/tests/integration/observability/evidence-query-engine.test.js +219 -0
- package/dist/tests/integration/observability/explain-query-export.test.d.ts +1 -0
- package/dist/tests/integration/observability/explain-query-export.test.js +92 -0
- package/dist/tests/integration/observability/guidance-audit.test.d.ts +1 -0
- package/dist/tests/integration/observability/guidance-audit.test.js +55 -0
- package/dist/tests/integration/observability/heartbeat-decision-record.test.d.ts +1 -0
- package/dist/tests/integration/observability/heartbeat-decision-record.test.js +223 -0
- package/dist/tests/integration/observability/heartbeat-narrative-trace.test.d.ts +1 -0
- package/dist/tests/integration/observability/heartbeat-narrative-trace.test.js +230 -0
- package/dist/tests/integration/observability/lived-experience-audit-chain.test.d.ts +1 -0
- package/dist/tests/integration/observability/lived-experience-audit-chain.test.js +43 -0
- package/dist/tests/integration/observability/observability-gates.test.d.ts +1 -0
- package/dist/tests/integration/observability/observability-gates.test.js +224 -0
- package/dist/tests/integration/observability/observability-retention-cleanup.test.d.ts +1 -0
- package/dist/tests/integration/observability/observability-retention-cleanup.test.js +94 -0
- package/dist/tests/integration/observability/observability-services.test.d.ts +1 -0
- package/dist/tests/integration/observability/observability-services.test.js +219 -0
- package/dist/tests/integration/observability/projections.test.d.ts +1 -0
- package/dist/tests/integration/observability/projections.test.js +36 -0
- package/dist/tests/integration/observability/t5-1-1-dream-trace-audit.test.d.ts +1 -0
- package/dist/tests/integration/observability/t5-1-1-dream-trace-audit.test.js +115 -0
- package/dist/tests/integration/plugin/plugin-registration.test.d.ts +16 -0
- package/dist/tests/integration/plugin/plugin-registration.test.js +151 -0
- package/dist/tests/integration/runtime-ops/commands.test.d.ts +16 -0
- package/dist/tests/integration/runtime-ops/commands.test.js +662 -0
- package/dist/tests/integration/s3-exit/int-s3-body-heartbeat.test.d.ts +15 -0
- package/dist/tests/integration/s3-exit/int-s3-body-heartbeat.test.js +462 -0
- package/dist/tests/integration/s5-exit/int-s5-observability.test.d.ts +17 -0
- package/dist/tests/integration/s5-exit/int-s5-observability.test.js +402 -0
- package/dist/tests/integration/state/t4-2-1-owner-reply-relationship-loop.test.d.ts +1 -0
- package/dist/tests/integration/state/t4-2-1-owner-reply-relationship-loop.test.js +132 -0
- package/dist/tests/integration/state/v7c-identity-goal-hygiene.test.d.ts +9 -0
- package/dist/tests/integration/state/v7c-identity-goal-hygiene.test.js +240 -0
- package/dist/tests/integration/storage/packaged-runtime-smoke.test.d.ts +1 -0
- package/dist/tests/integration/storage/packaged-runtime-smoke.test.js +17 -0
- package/dist/tests/integration/storage/persona-candidate-loader.test.d.ts +1 -0
- package/dist/tests/integration/storage/persona-candidate-loader.test.js +23 -0
- package/dist/tests/integration/storage/quiet-artifact-writer.test.d.ts +1 -0
- package/dist/tests/integration/storage/quiet-artifact-writer.test.js +66 -0
- package/dist/tests/integration/storage/repair-and-backup.test.d.ts +1 -0
- package/dist/tests/integration/storage/repair-and-backup.test.js +125 -0
- package/dist/tests/integration/storage/schema-migration.test.d.ts +11 -0
- package/dist/tests/integration/storage/schema-migration.test.js +183 -0
- package/dist/tests/integration/storage/storage-mode-smoke.test.d.ts +1 -0
- package/dist/tests/integration/storage/storage-mode-smoke.test.js +18 -0
- package/dist/tests/integration/storage/t4-1-5-memory-store-lifecycle.test.d.ts +1 -0
- package/dist/tests/integration/storage/t4-1-5-memory-store-lifecycle.test.js +118 -0
- package/dist/tests/unit/body/affordance-assembler.test.d.ts +14 -0
- package/dist/tests/unit/body/affordance-assembler.test.js +259 -0
- package/dist/tests/unit/body/affordance-context-scope.test.d.ts +12 -0
- package/dist/tests/unit/body/affordance-context-scope.test.js +73 -0
- package/dist/tests/unit/body/behavior-promotion-loop.test.d.ts +15 -0
- package/dist/tests/unit/body/behavior-promotion-loop.test.js +130 -0
- package/dist/tests/unit/body/circuit-breaker-manager.test.d.ts +13 -0
- package/dist/tests/unit/body/circuit-breaker-manager.test.js +160 -0
- package/dist/tests/unit/body/experience-writer.test.d.ts +11 -0
- package/dist/tests/unit/body/experience-writer.test.js +77 -0
- package/dist/tests/unit/body/pain-signal-query.test.d.ts +11 -0
- package/dist/tests/unit/body/pain-signal-query.test.js +104 -0
- package/dist/tests/unit/cli/connector-init-manifest.test.d.ts +9 -0
- package/dist/tests/unit/cli/connector-init-manifest.test.js +68 -0
- package/dist/tests/unit/cli/delivery-target-probe.test.d.ts +1 -0
- package/dist/tests/unit/cli/delivery-target-probe.test.js +108 -0
- package/dist/tests/unit/cli/host-capability.test.d.ts +1 -0
- package/dist/tests/unit/cli/host-capability.test.js +50 -0
- package/dist/tests/unit/cli/operator-fallback-view.test.d.ts +1 -0
- package/dist/tests/unit/cli/operator-fallback-view.test.js +60 -0
- package/dist/tests/unit/cli/runtime-artifact-boundary.test.d.ts +1 -0
- package/dist/tests/unit/cli/runtime-artifact-boundary.test.js +57 -0
- package/dist/tests/unit/cli/t1-2-3-connector-status.test.d.ts +1 -0
- package/dist/tests/unit/cli/t1-2-3-connector-status.test.js +214 -0
- package/dist/tests/unit/cli/t1-2-4-goal-command.test.d.ts +1 -0
- package/dist/tests/unit/cli/t1-2-4-goal-command.test.js +207 -0
- package/dist/tests/unit/cli/t1-3-1-connector-init.test.d.ts +1 -0
- package/dist/tests/unit/cli/t1-3-1-connector-init.test.js +212 -0
- package/dist/tests/unit/connectors/connector-manifest-and-evidence-map.test.d.ts +1 -0
- package/dist/tests/unit/connectors/connector-manifest-and-evidence-map.test.js +71 -0
- package/dist/tests/unit/connectors/effect-commit-ledger-sqlite.test.d.ts +10 -0
- package/dist/tests/unit/connectors/effect-commit-ledger-sqlite.test.js +101 -0
- package/dist/tests/unit/connectors/evomap-runner.test.d.ts +1 -0
- package/dist/tests/unit/connectors/evomap-runner.test.js +136 -0
- package/dist/tests/unit/connectors/execution-policy.test.d.ts +1 -0
- package/dist/tests/unit/connectors/execution-policy.test.js +71 -0
- package/dist/tests/unit/connectors/instreet-registration.test.d.ts +1 -0
- package/dist/tests/unit/connectors/instreet-registration.test.js +102 -0
- package/dist/tests/unit/connectors/manifest-v7-schema.test.d.ts +9 -0
- package/dist/tests/unit/connectors/manifest-v7-schema.test.js +165 -0
- package/dist/tests/unit/connectors/scriptable-node-runner.test.d.ts +1 -0
- package/dist/tests/unit/connectors/scriptable-node-runner.test.js +246 -0
- package/dist/tests/unit/connectors/structured-unavailable-reason.test.d.ts +11 -0
- package/dist/tests/unit/connectors/structured-unavailable-reason.test.js +76 -0
- package/dist/tests/unit/connectors/t3-1-1-dynamic-registry.test.d.ts +1 -0
- package/dist/tests/unit/connectors/t3-1-1-dynamic-registry.test.js +178 -0
- package/dist/tests/unit/connectors/t3-1-2-capability-registry.test.d.ts +1 -0
- package/dist/tests/unit/connectors/t3-1-2-capability-registry.test.js +105 -0
- package/dist/tests/unit/connectors/t3-2-1-v5-parity.test.d.ts +1 -0
- package/dist/tests/unit/connectors/t3-2-1-v5-parity.test.js +103 -0
- package/dist/tests/unit/connectors/t3-3-1-evidence-mapper.test.d.ts +1 -0
- package/dist/tests/unit/connectors/t3-3-1-evidence-mapper.test.js +198 -0
- package/dist/tests/unit/connectors/t3-3-1-evidence-redaction.test.d.ts +1 -0
- package/dist/tests/unit/connectors/t3-3-1-evidence-redaction.test.js +95 -0
- package/dist/tests/unit/connectors/wet-probe-runner.test.d.ts +11 -0
- package/dist/tests/unit/connectors/wet-probe-runner.test.js +84 -0
- package/dist/tests/unit/control-plane/decision-trace-emitter.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/decision-trace-emitter.test.js +51 -0
- package/dist/tests/unit/control-plane/downstream-intent-orchestrator.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/downstream-intent-orchestrator.test.js +57 -0
- package/dist/tests/unit/control-plane/embodied-context-assembler.test.d.ts +13 -0
- package/dist/tests/unit/control-plane/embodied-context-assembler.test.js +182 -0
- package/dist/tests/unit/control-plane/goal-lifecycle-policy.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/goal-lifecycle-policy.test.js +75 -0
- package/dist/tests/unit/control-plane/hard-guard-evaluator.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/hard-guard-evaluator.test.js +113 -0
- package/dist/tests/unit/control-plane/idle-curiosity-policy.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/idle-curiosity-policy.test.js +69 -0
- package/dist/tests/unit/control-plane/intent-planner-source-ref-fallback.test.d.ts +7 -0
- package/dist/tests/unit/control-plane/intent-planner-source-ref-fallback.test.js +124 -0
- package/dist/tests/unit/control-plane/rhythm-policy-snapshot-window.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/rhythm-policy-snapshot-window.test.js +64 -0
- package/dist/tests/unit/control-plane/run-heartbeat-cycle-v7.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/run-heartbeat-cycle-v7.test.js +165 -0
- package/dist/tests/unit/control-plane/t2-1-4-goal-priority.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/t2-1-4-goal-priority.test.js +185 -0
- package/dist/tests/unit/control-plane/t2-1-5-narrative-update.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/t2-1-5-narrative-update.test.js +313 -0
- package/dist/tests/unit/control-plane/t2-4-1-credential-route.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/t2-4-1-credential-route.test.js +75 -0
- package/dist/tests/unit/control-plane/t2-4-1-platform-intent.test.d.ts +1 -0
- package/dist/tests/unit/control-plane/t2-4-1-platform-intent.test.js +168 -0
- package/dist/tests/unit/core/outreach-judgment.test.d.ts +1 -0
- package/dist/tests/unit/core/outreach-judgment.test.js +109 -0
- package/dist/tests/unit/core/resolve-allowed-intent.test.d.ts +1 -0
- package/dist/tests/unit/core/resolve-allowed-intent.test.js +69 -0
- package/dist/tests/unit/core/t2-2-3-connector-action-honest-result.test.d.ts +1 -0
- package/dist/tests/unit/core/t2-2-3-connector-action-honest-result.test.js +130 -0
- package/dist/tests/unit/core/t2-2-3-connector-dispatch-wired.test.d.ts +1 -0
- package/dist/tests/unit/core/t2-2-3-connector-dispatch-wired.test.js +99 -0
- package/dist/tests/unit/dream/dream-input-loader.test.d.ts +15 -0
- package/dist/tests/unit/dream/dream-input-loader.test.js +424 -0
- package/dist/tests/unit/dream/dream-scheduler.test.d.ts +1 -0
- package/dist/tests/unit/dream/dream-scheduler.test.js +57 -0
- package/dist/tests/unit/dream/t-dqs-c3-redacted-evidence.test.d.ts +11 -0
- package/dist/tests/unit/dream/t-dqs-c3-redacted-evidence.test.js +298 -0
- package/dist/tests/unit/dream/t7-1-3-insight-extraction.test.d.ts +1 -0
- package/dist/tests/unit/dream/t7-1-3-insight-extraction.test.js +79 -0
- package/dist/tests/unit/dream/t7-1-4-narrative-update.test.d.ts +1 -0
- package/dist/tests/unit/dream/t7-1-4-narrative-update.test.js +93 -0
- package/dist/tests/unit/dream/t7-1-5-relationship-update.test.d.ts +1 -0
- package/dist/tests/unit/dream/t7-1-5-relationship-update.test.js +116 -0
- package/dist/tests/unit/feedback/t4-2-1-owner-reply-inference.test.d.ts +1 -0
- package/dist/tests/unit/feedback/t4-2-1-owner-reply-inference.test.js +58 -0
- package/dist/tests/unit/guidance/capability-class.test.d.ts +1 -0
- package/dist/tests/unit/guidance/capability-class.test.js +96 -0
- package/dist/tests/unit/guidance/channel-feedback-ingestion.test.d.ts +1 -0
- package/dist/tests/unit/guidance/channel-feedback-ingestion.test.js +163 -0
- package/dist/tests/unit/guidance/evidence-guidance.test.d.ts +1 -0
- package/dist/tests/unit/guidance/evidence-guidance.test.js +40 -0
- package/dist/tests/unit/guidance/guidance-draft-service.test.d.ts +1 -0
- package/dist/tests/unit/guidance/guidance-draft-service.test.js +140 -0
- package/dist/tests/unit/guidance/impulse-assembler.test.d.ts +1 -0
- package/dist/tests/unit/guidance/impulse-assembler.test.js +169 -0
- package/dist/tests/unit/guidance/outreach-draft-schema.test.d.ts +1 -0
- package/dist/tests/unit/guidance/outreach-draft-schema.test.js +56 -0
- package/dist/tests/unit/guidance/outreach-strategy-selector.test.d.ts +1 -0
- package/dist/tests/unit/guidance/outreach-strategy-selector.test.js +208 -0
- package/dist/tests/unit/guidance/outreach-style-fixtures.test.d.ts +1 -0
- package/dist/tests/unit/guidance/outreach-style-fixtures.test.js +81 -0
- package/dist/tests/unit/guidance/t6-1-1-narrative-outreach.test.d.ts +1 -0
- package/dist/tests/unit/guidance/t6-1-1-narrative-outreach.test.js +256 -0
- package/dist/tests/unit/observability/audit-envelope.test.d.ts +1 -0
- package/dist/tests/unit/observability/audit-envelope.test.js +169 -0
- package/dist/tests/unit/observability/connector-inventory-ledger.test.d.ts +1 -0
- package/dist/tests/unit/observability/connector-inventory-ledger.test.js +128 -0
- package/dist/tests/unit/observability/family-registry.test.d.ts +12 -0
- package/dist/tests/unit/observability/family-registry.test.js +105 -0
- package/dist/tests/unit/observability/governance-plane-recorder.test.d.ts +1 -0
- package/dist/tests/unit/observability/governance-plane-recorder.test.js +72 -0
- package/dist/tests/unit/observability/heartbeat-digest-assembler.test.d.ts +1 -0
- package/dist/tests/unit/observability/heartbeat-digest-assembler.test.js +227 -0
- package/dist/tests/unit/observability/lived-experience-audit.test.d.ts +1 -0
- package/dist/tests/unit/observability/lived-experience-audit.test.js +105 -0
- package/dist/tests/unit/observability/narrative-timeline-query.test.d.ts +18 -0
- package/dist/tests/unit/observability/narrative-timeline-query.test.js +239 -0
- package/dist/tests/unit/observability/restore-audit-service.test.d.ts +16 -0
- package/dist/tests/unit/observability/restore-audit-service.test.js +186 -0
- package/dist/tests/unit/observability/runtime-decision-recorder.test.d.ts +1 -0
- package/dist/tests/unit/observability/runtime-decision-recorder.test.js +66 -0
- package/dist/tests/unit/observability/runtime-secret-anchor-view.test.d.ts +18 -0
- package/dist/tests/unit/observability/runtime-secret-anchor-view.test.js +209 -0
- package/dist/tests/unit/observability/self-health-snapshot.test.d.ts +1 -0
- package/dist/tests/unit/observability/self-health-snapshot.test.js +223 -0
- package/dist/tests/unit/observability/verify-audit-hash-chain.test.d.ts +1 -0
- package/dist/tests/unit/observability/verify-audit-hash-chain.test.js +93 -0
- package/dist/tests/unit/ops/manual-run-dispatcher.test.d.ts +13 -0
- package/dist/tests/unit/ops/manual-run-dispatcher.test.js +219 -0
- package/dist/tests/unit/quiet/claim-synthesizer.test.d.ts +17 -0
- package/dist/tests/unit/quiet/claim-synthesizer.test.js +289 -0
- package/dist/tests/unit/quiet/daily-diary-writer.test.d.ts +12 -0
- package/dist/tests/unit/quiet/daily-diary-writer.test.js +108 -0
- package/dist/tests/unit/shared/v7-entities.test.d.ts +13 -0
- package/dist/tests/unit/shared/v7-entities.test.js +306 -0
- package/dist/tests/unit/storage/delivery-attempt.test.d.ts +1 -0
- package/dist/tests/unit/storage/delivery-attempt.test.js +72 -0
- package/dist/tests/unit/storage/diary-dream-store.test.d.ts +12 -0
- package/dist/tests/unit/storage/diary-dream-store.test.js +118 -0
- package/dist/tests/unit/storage/embodied-context-state-port.test.d.ts +4 -0
- package/dist/tests/unit/storage/embodied-context-state-port.test.js +77 -0
- package/dist/tests/unit/storage/goal-lifecycle-store.test.d.ts +4 -0
- package/dist/tests/unit/storage/goal-lifecycle-store.test.js +143 -0
- package/dist/tests/unit/storage/history-digest-store.test.d.ts +10 -0
- package/dist/tests/unit/storage/history-digest-store.test.js +126 -0
- package/dist/tests/unit/storage/identity-profile-store.test.d.ts +4 -0
- package/dist/tests/unit/storage/identity-profile-store.test.js +48 -0
- package/dist/tests/unit/storage/life-evidence-snapshot.test.d.ts +1 -0
- package/dist/tests/unit/storage/life-evidence-snapshot.test.js +60 -0
- package/dist/tests/unit/storage/life-evidence.test.d.ts +1 -0
- package/dist/tests/unit/storage/life-evidence.test.js +54 -0
- package/dist/tests/unit/storage/migration-runner.test.d.ts +12 -0
- package/dist/tests/unit/storage/migration-runner.test.js +197 -0
- package/dist/tests/unit/storage/repair-gate.test.d.ts +1 -0
- package/dist/tests/unit/storage/repair-gate.test.js +41 -0
- package/dist/tests/unit/storage/restore-snapshot-store.test.d.ts +11 -0
- package/dist/tests/unit/storage/restore-snapshot-store.test.js +161 -0
- package/dist/tests/unit/storage/rhythm-policy-snapshot.test.d.ts +1 -0
- package/dist/tests/unit/storage/rhythm-policy-snapshot.test.js +31 -0
- package/dist/tests/unit/storage/runtime-secret-anchor-store.test.d.ts +10 -0
- package/dist/tests/unit/storage/runtime-secret-anchor-store.test.js +81 -0
- package/dist/tests/unit/storage/t1-4-1-credential-health-mapper.test.d.ts +1 -0
- package/dist/tests/unit/storage/t1-4-1-credential-health-mapper.test.js +83 -0
- package/dist/tests/unit/storage/t4-1-1-session-chronicle.test.d.ts +1 -0
- package/dist/tests/unit/storage/t4-1-1-session-chronicle.test.js +112 -0
- package/dist/tests/unit/storage/t4-1-2-narrative-state.test.d.ts +1 -0
- package/dist/tests/unit/storage/t4-1-2-narrative-state.test.js +80 -0
- package/dist/tests/unit/storage/t4-1-3-relationship-memory.test.d.ts +1 -0
- package/dist/tests/unit/storage/t4-1-3-relationship-memory.test.js +65 -0
- package/dist/tests/unit/storage/t4-1-4-agent-goal.test.d.ts +1 -0
- package/dist/tests/unit/storage/t4-1-4-agent-goal.test.js +166 -0
- package/dist/tests/unit/storage/tool-experience-store.test.d.ts +4 -0
- package/dist/tests/unit/storage/tool-experience-store.test.js +92 -0
- package/dist/tests/unit/storage/user-interest-snapshot.test.d.ts +1 -0
- package/dist/tests/unit/storage/user-interest-snapshot.test.js +48 -0
- package/dist/tests/unit/storage/write-queue.test.d.ts +12 -0
- package/dist/tests/unit/storage/write-queue.test.js +177 -0
- package/dist/tests/unit/storage/write-validation-gate.test.d.ts +9 -0
- package/dist/tests/unit/storage/write-validation-gate.test.js +153 -0
- package/docs/claw-second-nature-inner-guide.md +144 -0
- package/package.json +84 -55
- package/agent-inner-guide.md +0 -187
- package/openclaw.plugin.json +0 -29
- package/runtime/cli/ops/heartbeat-surface.d.ts +0 -75
- package/runtime/cli/ops/heartbeat-surface.js +0 -97
- package/runtime/cli/ops/ops-router.js +0 -1454
- package/runtime/cli/ops/workspace-heartbeat-runner.d.ts +0 -76
- package/runtime/cli/ops/workspace-heartbeat-runner.js +0 -236
- package/runtime/core/second-nature/heartbeat/goal-lifecycle-policy.d.ts +0 -37
- package/runtime/core/second-nature/heartbeat/goal-lifecycle-policy.js +0 -61
- package/runtime/core/second-nature/heartbeat/heartbeat-loop.d.ts +0 -88
- package/runtime/core/second-nature/heartbeat/heartbeat-loop.js +0 -329
- package/runtime/core/second-nature/orchestrator/platform-capability-router.js +0 -131
- /package/{index.js → dist/plugin/index.js} +0 -0
- /package/{workspace-ops-bridge.js → dist/plugin/workspace-ops-bridge.js} +0 -0
- /package/{runtime/cli/read-models/types.js → dist/scripts/packaging-feasibility-poc.d.ts} +0 -0
- /package/{runtime/core/second-nature/types.js → dist/scripts/plugin-smoke-check.d.ts} +0 -0
- /package/{runtime → dist/src}/cli/action-bridge.js +0 -0
- /package/{runtime → dist/src}/cli/commands/connector-behavior.d.ts +0 -0
- /package/{runtime → dist/src}/cli/commands/connector-behavior.js +0 -0
- /package/{runtime → dist/src}/cli/commands/connector-init.d.ts +0 -0
- /package/{runtime → dist/src}/cli/commands/connector-init.js +0 -0
- /package/{runtime → dist/src}/cli/commands/connector-status.d.ts +0 -0
- /package/{runtime → dist/src}/cli/commands/connector-status.js +0 -0
- /package/{runtime → dist/src}/cli/commands/credential.d.ts +0 -0
- /package/{runtime → dist/src}/cli/commands/credential.js +0 -0
- /package/{runtime → dist/src}/cli/commands/goal.d.ts +0 -0
- /package/{runtime → dist/src}/cli/commands/goal.js +0 -0
- /package/{runtime → dist/src}/cli/commands/index.d.ts +0 -0
- /package/{runtime → dist/src}/cli/commands/index.js +0 -0
- /package/{runtime → dist/src}/cli/commands/policy.d.ts +0 -0
- /package/{runtime → dist/src}/cli/commands/policy.js +0 -0
- /package/{runtime → dist/src}/cli/explain/explain-surface-subject.d.ts +0 -0
- /package/{runtime → dist/src}/cli/explain/explain-surface-subject.js +0 -0
- /package/{runtime → dist/src}/cli/explain/format-explanation.d.ts +0 -0
- /package/{runtime → dist/src}/cli/explain/format-explanation.js +0 -0
- /package/{runtime → dist/src}/cli/explain/resolve-subject.d.ts +0 -0
- /package/{runtime → dist/src}/cli/explain/resolve-subject.js +0 -0
- /package/{runtime → dist/src}/cli/host-capability/classify-delivery.d.ts +0 -0
- /package/{runtime → dist/src}/cli/host-capability/classify-delivery.js +0 -0
- /package/{runtime → dist/src}/cli/host-capability/probe-host-capability.d.ts +0 -0
- /package/{runtime → dist/src}/cli/host-capability/probe-host-capability.js +0 -0
- /package/{runtime → dist/src}/cli/host-capability/record-host-capability.d.ts +0 -0
- /package/{runtime → dist/src}/cli/host-capability/record-host-capability.js +0 -0
- /package/{runtime → dist/src}/cli/host-capability/types.d.ts +0 -0
- /package/{runtime → dist/src}/cli/host-capability/types.js +0 -0
- /package/{runtime → dist/src}/cli/host-smoke/run-host-smoke.d.ts +0 -0
- /package/{runtime → dist/src}/cli/host-smoke/run-host-smoke.js +0 -0
- /package/{runtime → dist/src}/cli/host-smoke/types.d.ts +0 -0
- /package/{runtime → dist/src}/cli/host-smoke/types.js +0 -0
- /package/{runtime → dist/src}/cli/index.js +0 -0
- /package/{runtime → dist/src}/cli/ops/manual-run-dispatcher.d.ts +0 -0
- /package/{runtime → dist/src}/cli/ops/manual-run-dispatcher.js +0 -0
- /package/{runtime → dist/src}/cli/ops/ops-router.d.ts +0 -0
- /package/{runtime → dist/src}/cli/ops/show-operator-fallback.d.ts +0 -0
- /package/{runtime → dist/src}/cli/ops/show-operator-fallback.js +0 -0
- /package/{runtime → dist/src}/cli/read-models/index.d.ts +0 -0
- /package/{runtime → dist/src}/cli/read-models/index.js +0 -0
- /package/{runtime → dist/src}/cli/read-models/operator-explain-map.d.ts +0 -0
- /package/{runtime → dist/src}/cli/read-models/operator-explain-map.js +0 -0
- /package/{runtime → dist/src}/cli/read-models/types.d.ts +0 -0
- /package/{runtime/guidance → dist/src/cli/read-models}/types.js +0 -0
- /package/{runtime → dist/src}/cli/runtime/runtime-artifact-boundary.d.ts +0 -0
- /package/{runtime → dist/src}/cli/runtime/runtime-artifact-boundary.js +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/agent-world/adapter.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/agent-world/adapter.js +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/agent-world/index.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/agent-world/index.js +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/agent-world/manifest.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/agent-world/manifest.js +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/evomap/adapter.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/evomap/adapter.js +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/evomap/index.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/evomap/index.js +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/evomap/manifest.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/agent-network/evomap/manifest.js +0 -0
- /package/{runtime → dist/src}/connectors/base/channel-health.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/channel-health.js +0 -0
- /package/{runtime → dist/src}/connectors/base/contract.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/contract.js +0 -0
- /package/{runtime → dist/src}/connectors/base/effect-commit-ledger-sqlite.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/effect-commit-ledger-sqlite.js +0 -0
- /package/{runtime → dist/src}/connectors/base/execution-policy.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/execution-policy.js +0 -0
- /package/{runtime → dist/src}/connectors/base/failure-taxonomy.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/failure-taxonomy.js +0 -0
- /package/{runtime → dist/src}/connectors/base/index.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/index.js +0 -0
- /package/{runtime → dist/src}/connectors/base/manifest-v7.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/manifest-v7.js +0 -0
- /package/{runtime → dist/src}/connectors/base/manifest.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/manifest.js +0 -0
- /package/{runtime → dist/src}/connectors/base/map-life-evidence.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/map-life-evidence.js +0 -0
- /package/{runtime → dist/src}/connectors/base/policy-layer.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/policy-layer.js +0 -0
- /package/{runtime → dist/src}/connectors/base/route-planner.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/route-planner.js +0 -0
- /package/{runtime → dist/src}/connectors/base/structured-unavailable-reason.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/structured-unavailable-reason.js +0 -0
- /package/{runtime → dist/src}/connectors/base/wet-probe-runner.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/base/wet-probe-runner.js +0 -0
- /package/{runtime → dist/src}/connectors/index.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/index.js +0 -0
- /package/{runtime → dist/src}/connectors/manifest/manifest-parser.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/manifest/manifest-parser.js +0 -0
- /package/{runtime → dist/src}/connectors/manifest/manifest-schema.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/manifest/manifest-schema.js +0 -0
- /package/{runtime → dist/src}/connectors/near-real/near-real-connector-smoke.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/near-real/near-real-connector-smoke.js +0 -0
- /package/{runtime → dist/src}/connectors/registry/dynamic-connector-registry.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/registry/dynamic-connector-registry.js +0 -0
- /package/{runtime → dist/src}/connectors/registry/index.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/registry/index.js +0 -0
- /package/{runtime → dist/src}/connectors/registry/manifest-scanner.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/registry/manifest-scanner.js +0 -0
- /package/{runtime → dist/src}/connectors/registry/trust-policy.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/registry/trust-policy.js +0 -0
- /package/{runtime → dist/src}/connectors/services/connector-executor-adapter.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/services/connector-executor-adapter.js +0 -0
- /package/{runtime → dist/src}/connectors/services/credential-route-context.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/services/credential-route-context.js +0 -0
- /package/{runtime → dist/src}/connectors/social-community/instreet/adapter.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/social-community/instreet/adapter.js +0 -0
- /package/{runtime → dist/src}/connectors/social-community/instreet/index.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/social-community/instreet/index.js +0 -0
- /package/{runtime → dist/src}/connectors/social-community/instreet/manifest.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/social-community/instreet/manifest.js +0 -0
- /package/{runtime → dist/src}/connectors/social-community/moltbook/adapter.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/social-community/moltbook/adapter.js +0 -0
- /package/{runtime → dist/src}/connectors/social-community/moltbook/api-client.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/social-community/moltbook/api-client.js +0 -0
- /package/{runtime → dist/src}/connectors/social-community/moltbook/index.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/social-community/moltbook/index.js +0 -0
- /package/{runtime → dist/src}/connectors/social-community/moltbook/manifest.d.ts +0 -0
- /package/{runtime → dist/src}/connectors/social-community/moltbook/manifest.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/behavior-promotion/behavior-promotion-loop.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/behavior-promotion/behavior-promotion-loop.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/circuit-breaker/circuit-breaker-manager.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/circuit-breaker/circuit-breaker-manager.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/probe-signal-adapter.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/probe-signal-adapter.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/tool-affordance/affordance-assembler.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/tool-affordance/affordance-assembler.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/tool-affordance/affordance-context-scope.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/tool-affordance/affordance-context-scope.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/tool-experience/experience-writer.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/tool-experience/experience-writer.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/tool-experience/pain-signal-query.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/body/tool-experience/pain-signal-query.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/feedback/owner-reply-feedback.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/feedback/owner-reply-feedback.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/guidance/apply-guidance.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/guidance/apply-guidance.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/guidance/request-guidance.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/guidance/request-guidance.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/guidance/user-reply-continuity.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/guidance/user-reply-continuity.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/decision-trace-emitter.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/decision-trace-emitter.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/embodied-context-assembler.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/embodied-context-assembler.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/heartbeat-executor.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/heartbeat-executor.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/idle-curiosity-policy.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/idle-curiosity-policy.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/index.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/index.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/run-heartbeat-cycle-v7.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/run-heartbeat-cycle-v7.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/run-heartbeat-cycle.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/run-heartbeat-cycle.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/runtime-snapshot.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/runtime-snapshot.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/scope-router.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/scope-router.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/signal.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/signal.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/snapshot-builder.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/heartbeat/snapshot-builder.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/index.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/index.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/downstream-intent-orchestrator.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/downstream-intent-orchestrator.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/effect-dispatcher.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/effect-dispatcher.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/goal-priority.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/goal-priority.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/guard-layer.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/guard-layer.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/hard-guard-evaluator.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/hard-guard-evaluator.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/index.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/index.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/intent-planner.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/intent-planner.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/lease-manager.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/lease-manager.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/narrative-update.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/narrative-update.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/platform-capability-router.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/resume-from-checkpoint.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/orchestrator/resume-from-checkpoint.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/build-message.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/build-message.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/build-outreach-draft-request.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/build-outreach-draft-request.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/delivery-target.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/delivery-target.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/dispatch-user-outreach.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/dispatch-user-outreach.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/evaluate-outreach.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/evaluate-outreach.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/judge-input-from-snapshot.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/judge-input-from-snapshot.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/judge-outreach.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/outreach/judge-outreach.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/claim-synthesizer.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/claim-synthesizer.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/daily-diary-writer.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/daily-diary-writer.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/index.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/index.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/quiet-pipeline.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/quiet-pipeline.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/run-source-backed-quiet.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/quiet/run-source-backed-quiet.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/reflection/run-narrative-reflection.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/reflection/run-narrative-reflection.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/rhythm/planner-rhythm-window.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/rhythm/planner-rhythm-window.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/rhythm/policy-bridge.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/rhythm/policy-bridge.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/rhythm/rhythm-policy.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/rhythm/rhythm-policy.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/rhythm/select-window.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/rhythm/select-window.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/runtime/lifecycle-service.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/runtime/lifecycle-service.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/runtime/service-entry.d.ts +0 -0
- /package/{runtime → dist/src}/core/second-nature/runtime/service-entry.js +0 -0
- /package/{runtime → dist/src}/core/second-nature/types.d.ts +0 -0
- /package/{runtime/storage/delivery → dist/src/core/second-nature}/types.js +0 -0
- /package/{runtime → dist/src}/dream/dream-engine.d.ts +0 -0
- /package/{runtime → dist/src}/dream/dream-engine.js +0 -0
- /package/{runtime → dist/src}/dream/dream-input-loader.d.ts +0 -0
- /package/{runtime → dist/src}/dream/dream-input-loader.js +0 -0
- /package/{runtime → dist/src}/dream/dream-scheduler.d.ts +0 -0
- /package/{runtime → dist/src}/dream/dream-scheduler.js +0 -0
- /package/{runtime → dist/src}/dream/index.d.ts +0 -0
- /package/{runtime → dist/src}/dream/index.js +0 -0
- /package/{runtime → dist/src}/dream/insight-extractor.d.ts +0 -0
- /package/{runtime → dist/src}/dream/insight-extractor.js +0 -0
- /package/{runtime → dist/src}/dream/memory-consolidator.d.ts +0 -0
- /package/{runtime → dist/src}/dream/memory-consolidator.js +0 -0
- /package/{runtime → dist/src}/dream/narrative-update-proposal.d.ts +0 -0
- /package/{runtime → dist/src}/dream/narrative-update-proposal.js +0 -0
- /package/{runtime → dist/src}/dream/output-validator.d.ts +0 -0
- /package/{runtime → dist/src}/dream/output-validator.js +0 -0
- /package/{runtime → dist/src}/dream/redaction-gate.d.ts +0 -0
- /package/{runtime → dist/src}/dream/redaction-gate.js +0 -0
- /package/{runtime → dist/src}/dream/relationship-update-proposal.d.ts +0 -0
- /package/{runtime → dist/src}/dream/relationship-update-proposal.js +0 -0
- /package/{runtime → dist/src}/dream/sampler.d.ts +0 -0
- /package/{runtime → dist/src}/dream/sampler.js +0 -0
- /package/{runtime → dist/src}/dream/types.d.ts +0 -0
- /package/{runtime → dist/src}/dream/types.js +0 -0
- /package/{runtime → dist/src}/guidance/capability-class.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/capability-class.js +0 -0
- /package/{runtime → dist/src}/guidance/channel-feedback-ingestion-service.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/channel-feedback-ingestion-service.js +0 -0
- /package/{runtime → dist/src}/guidance/contracts.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/contracts.js +0 -0
- /package/{runtime → dist/src}/guidance/draft-narrative-outreach.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/draft-narrative-outreach.js +0 -0
- /package/{runtime → dist/src}/guidance/draft-outreach-message.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/draft-outreach-message.js +0 -0
- /package/{runtime → dist/src}/guidance/evidence-guidance.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/evidence-guidance.js +0 -0
- /package/{runtime → dist/src}/guidance/fallback.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/fallback.js +0 -0
- /package/{runtime → dist/src}/guidance/guidance-assembler.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/guidance-assembler.js +0 -0
- /package/{runtime → dist/src}/guidance/guidance-draft-service.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/guidance-draft-service.js +0 -0
- /package/{runtime → dist/src}/guidance/impulse-assembler.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/impulse-assembler.js +0 -0
- /package/{runtime → dist/src}/guidance/index.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/index.js +0 -0
- /package/{runtime → dist/src}/guidance/output-guard.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/output-guard.js +0 -0
- /package/{runtime → dist/src}/guidance/outreach-draft-schema.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/outreach-draft-schema.js +0 -0
- /package/{runtime → dist/src}/guidance/outreach-strategy-selector.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/outreach-strategy-selector.js +0 -0
- /package/{runtime → dist/src}/guidance/persona-selection.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/persona-selection.js +0 -0
- /package/{runtime → dist/src}/guidance/review-workflow.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/review-workflow.js +0 -0
- /package/{runtime → dist/src}/guidance/template-registry.d.ts +0 -0
- /package/{runtime → dist/src}/guidance/template-registry.js +0 -0
- /package/{runtime → dist/src}/guidance/types.d.ts +0 -0
- /package/{runtime/storage/memory/workspace → dist/src/guidance}/types.js +0 -0
- /package/{runtime → dist/src}/observability/audit/append-only-audit-store.d.ts +0 -0
- /package/{runtime → dist/src}/observability/audit/append-only-audit-store.js +0 -0
- /package/{runtime → dist/src}/observability/audit/audit-envelope.d.ts +0 -0
- /package/{runtime → dist/src}/observability/audit/audit-envelope.js +0 -0
- /package/{runtime → dist/src}/observability/audit/audit-family-registry.json +0 -0
- /package/{runtime → dist/src}/observability/audit/family-registry.d.ts +0 -0
- /package/{runtime → dist/src}/observability/audit/family-registry.js +0 -0
- /package/{runtime → dist/src}/observability/audit/verify-audit-hash-chain.d.ts +0 -0
- /package/{runtime → dist/src}/observability/audit/verify-audit-hash-chain.js +0 -0
- /package/{runtime → dist/src}/observability/connector-inventory-ledger.d.ts +0 -0
- /package/{runtime → dist/src}/observability/connector-inventory-ledger.js +0 -0
- /package/{runtime → dist/src}/observability/db/index.d.ts +0 -0
- /package/{runtime → dist/src}/observability/db/index.js +0 -0
- /package/{runtime → dist/src}/observability/db/schema/connector-inventory.d.ts +0 -0
- /package/{runtime → dist/src}/observability/db/schema/connector-inventory.js +0 -0
- /package/{runtime → dist/src}/observability/db/schema/host-capability-reports.d.ts +0 -0
- /package/{runtime → dist/src}/observability/db/schema/host-capability-reports.js +0 -0
- /package/{runtime → dist/src}/observability/db/schema/index.d.ts +0 -0
- /package/{runtime → dist/src}/observability/db/schema/index.js +0 -0
- /package/{runtime → dist/src}/observability/index.d.ts +0 -0
- /package/{runtime → dist/src}/observability/index.js +0 -0
- /package/{runtime → dist/src}/observability/projections/guidance-audit.d.ts +0 -0
- /package/{runtime → dist/src}/observability/projections/guidance-audit.js +0 -0
- /package/{runtime → dist/src}/observability/projections/outreach-quality-audit.d.ts +0 -0
- /package/{runtime → dist/src}/observability/projections/outreach-quality-audit.js +0 -0
- /package/{runtime → dist/src}/observability/projections/reflection-audit.d.ts +0 -0
- /package/{runtime → dist/src}/observability/projections/reflection-audit.js +0 -0
- /package/{runtime → dist/src}/observability/query/compose-evidence.d.ts +0 -0
- /package/{runtime → dist/src}/observability/query/compose-evidence.js +0 -0
- /package/{runtime → dist/src}/observability/query/evidence-query-engine.d.ts +0 -0
- /package/{runtime → dist/src}/observability/query/evidence-query-engine.js +0 -0
- /package/{runtime → dist/src}/observability/query/explain-query.d.ts +0 -0
- /package/{runtime → dist/src}/observability/query/explain-query.js +0 -0
- /package/{runtime → dist/src}/observability/query/export-audit-bundle.d.ts +0 -0
- /package/{runtime → dist/src}/observability/query/export-audit-bundle.js +0 -0
- /package/{runtime → dist/src}/observability/redaction/manifest.d.ts +0 -0
- /package/{runtime → dist/src}/observability/redaction/manifest.js +0 -0
- /package/{runtime → dist/src}/observability/redaction/policy.d.ts +0 -0
- /package/{runtime → dist/src}/observability/redaction/policy.js +0 -0
- /package/{runtime → dist/src}/observability/services/decision-ledger.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/decision-ledger.js +0 -0
- /package/{runtime → dist/src}/observability/services/execution-telemetry.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/execution-telemetry.js +0 -0
- /package/{runtime → dist/src}/observability/services/governance-audit.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/governance-audit.js +0 -0
- /package/{runtime → dist/src}/observability/services/governance-plane-recorder.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/governance-plane-recorder.js +0 -0
- /package/{runtime → dist/src}/observability/services/heartbeat-digest-assembler.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/heartbeat-digest-assembler.js +0 -0
- /package/{runtime → dist/src}/observability/services/lived-experience-audit.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/lived-experience-audit.js +0 -0
- /package/{runtime → dist/src}/observability/services/narrative-timeline-query-service.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/narrative-timeline-query-service.js +0 -0
- /package/{runtime → dist/src}/observability/services/observability-retention.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/observability-retention.js +0 -0
- /package/{runtime → dist/src}/observability/services/redaction-store.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/redaction-store.js +0 -0
- /package/{runtime → dist/src}/observability/services/restore-audit-service.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/restore-audit-service.js +0 -0
- /package/{runtime → dist/src}/observability/services/runtime-decision-recorder.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/runtime-decision-recorder.js +0 -0
- /package/{runtime → dist/src}/observability/services/runtime-secret-anchor-view.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/runtime-secret-anchor-view.js +0 -0
- /package/{runtime → dist/src}/observability/services/self-health-snapshot.d.ts +0 -0
- /package/{runtime → dist/src}/observability/services/self-health-snapshot.js +0 -0
- /package/{runtime → dist/src}/shared/types/continuity.d.ts +0 -0
- /package/{runtime → dist/src}/shared/types/continuity.js +0 -0
- /package/{runtime → dist/src}/shared/types/credential.d.ts +0 -0
- /package/{runtime → dist/src}/shared/types/credential.js +0 -0
- /package/{runtime → dist/src}/shared/types/goal.d.ts +0 -0
- /package/{runtime → dist/src}/shared/types/goal.js +0 -0
- /package/{runtime → dist/src}/shared/types/index.d.ts +0 -0
- /package/{runtime → dist/src}/shared/types/index.js +0 -0
- /package/{runtime → dist/src}/shared/types/outreach.d.ts +0 -0
- /package/{runtime → dist/src}/shared/types/outreach.js +0 -0
- /package/{runtime → dist/src}/shared/types/source-ref.d.ts +0 -0
- /package/{runtime → dist/src}/shared/types/source-ref.js +0 -0
- /package/{runtime → dist/src}/shared/types/v7-entities.d.ts +0 -0
- /package/{runtime → dist/src}/shared/types/v7-entities.js +0 -0
- /package/{runtime → dist/src}/storage/bootstrap/native-sqlite-probe.d.ts +0 -0
- /package/{runtime → dist/src}/storage/bootstrap/native-sqlite-probe.js +0 -0
- /package/{runtime → dist/src}/storage/bootstrap/repair-gate.d.ts +0 -0
- /package/{runtime → dist/src}/storage/bootstrap/repair-gate.js +0 -0
- /package/{runtime → dist/src}/storage/bootstrap/repair.d.ts +0 -0
- /package/{runtime → dist/src}/storage/bootstrap/repair.js +0 -0
- /package/{runtime → dist/src}/storage/bootstrap/storage-mode-smoke.d.ts +0 -0
- /package/{runtime → dist/src}/storage/bootstrap/storage-mode-smoke.js +0 -0
- /package/{runtime → dist/src}/storage/chronicle/session-chronicle-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/chronicle/session-chronicle-store.js +0 -0
- /package/{runtime → dist/src}/storage/db/index.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/index.js +0 -0
- /package/{runtime → dist/src}/storage/db/migration-runner.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/migration-runner.js +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/index.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/index.js +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/v7-001-foundation.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/v7-001-foundation.js +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/v7-002-effect-commit-ledger.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/v7-002-effect-commit-ledger.js +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/v7-003-circuit-breaker.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/v7-003-circuit-breaker.js +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/v7-004-behavior-promotion.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/migrations/v7-004-behavior-promotion.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/agent-goal.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/agent-goal.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/assets.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/assets.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/credentials.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/credentials.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/delivery-attempts.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/delivery-attempts.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/index.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/index.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/intent-commits.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/intent-commits.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/life-evidence-index.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/life-evidence-index.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/memory-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/memory-store.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/narrative-state.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/narrative-state.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/operator-fallback-artifacts.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/operator-fallback-artifacts.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/policies.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/policies.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/proposals.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/proposals.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/provenance.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/provenance.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/relationship-memory.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/relationship-memory.js +0 -0
- /package/{runtime → dist/src}/storage/db/schema/session-chronicle.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/schema/session-chronicle.js +0 -0
- /package/{runtime → dist/src}/storage/db/transaction-utils.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/transaction-utils.js +0 -0
- /package/{runtime → dist/src}/storage/db/write-queue.d.ts +0 -0
- /package/{runtime → dist/src}/storage/db/write-queue.js +0 -0
- /package/{runtime → dist/src}/storage/delivery/query-delivery-attempts.d.ts +0 -0
- /package/{runtime → dist/src}/storage/delivery/query-delivery-attempts.js +0 -0
- /package/{runtime → dist/src}/storage/delivery/types.d.ts +0 -0
- /package/{runtime/storage/snapshots → dist/src/storage/delivery}/types.js +0 -0
- /package/{runtime → dist/src}/storage/delivery/write-delivery-attempt.d.ts +0 -0
- /package/{runtime → dist/src}/storage/delivery/write-delivery-attempt.js +0 -0
- /package/{runtime → dist/src}/storage/fallback/load-operator-fallback.d.ts +0 -0
- /package/{runtime → dist/src}/storage/fallback/load-operator-fallback.js +0 -0
- /package/{runtime → dist/src}/storage/fallback/operator-fallback-types.d.ts +0 -0
- /package/{runtime → dist/src}/storage/fallback/operator-fallback-types.js +0 -0
- /package/{runtime → dist/src}/storage/fallback/operator-fallback-view.d.ts +0 -0
- /package/{runtime → dist/src}/storage/fallback/operator-fallback-view.js +0 -0
- /package/{runtime → dist/src}/storage/fallback/write-operator-fallback.d.ts +0 -0
- /package/{runtime → dist/src}/storage/fallback/write-operator-fallback.js +0 -0
- /package/{runtime → dist/src}/storage/goal/agent-goal-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/goal/agent-goal-store.js +0 -0
- /package/{runtime → dist/src}/storage/index.d.ts +0 -0
- /package/{runtime → dist/src}/storage/index.js +0 -0
- /package/{runtime → dist/src}/storage/life-evidence/append-life-evidence.d.ts +0 -0
- /package/{runtime → dist/src}/storage/life-evidence/append-life-evidence.js +0 -0
- /package/{runtime → dist/src}/storage/life-evidence/types.d.ts +0 -0
- /package/{runtime → dist/src}/storage/life-evidence/types.js +0 -0
- /package/{runtime → dist/src}/storage/memory/workspace/paths.d.ts +0 -0
- /package/{runtime → dist/src}/storage/memory/workspace/paths.js +0 -0
- /package/{runtime → dist/src}/storage/memory/workspace/store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/memory/workspace/store.js +0 -0
- /package/{runtime → dist/src}/storage/memory/workspace/types.d.ts +0 -0
- /package/{runtime/storage/user-interest → dist/src/storage/memory/workspace}/types.js +0 -0
- /package/{runtime → dist/src}/storage/memory-store/memory-store-lifecycle.d.ts +0 -0
- /package/{runtime → dist/src}/storage/memory-store/memory-store-lifecycle.js +0 -0
- /package/{runtime → dist/src}/storage/narrative/narrative-state-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/narrative/narrative-state-store.js +0 -0
- /package/{runtime → dist/src}/storage/quiet/persist-quiet-artifact.d.ts +0 -0
- /package/{runtime → dist/src}/storage/quiet/persist-quiet-artifact.js +0 -0
- /package/{runtime → dist/src}/storage/quiet/quiet-artifact-types.d.ts +0 -0
- /package/{runtime → dist/src}/storage/quiet/quiet-artifact-types.js +0 -0
- /package/{runtime → dist/src}/storage/quiet/quiet-artifact-writer.d.ts +0 -0
- /package/{runtime → dist/src}/storage/quiet/quiet-artifact-writer.js +0 -0
- /package/{runtime → dist/src}/storage/relationship/relationship-memory-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/relationship/relationship-memory-store.js +0 -0
- /package/{runtime → dist/src}/storage/repositories/asset-repository.d.ts +0 -0
- /package/{runtime → dist/src}/storage/repositories/asset-repository.js +0 -0
- /package/{runtime → dist/src}/storage/repositories/credential-repository.d.ts +0 -0
- /package/{runtime → dist/src}/storage/repositories/credential-repository.js +0 -0
- /package/{runtime → dist/src}/storage/repositories/index.d.ts +0 -0
- /package/{runtime → dist/src}/storage/repositories/index.js +0 -0
- /package/{runtime → dist/src}/storage/repositories/intent-commit-repository.d.ts +0 -0
- /package/{runtime → dist/src}/storage/repositories/intent-commit-repository.js +0 -0
- /package/{runtime → dist/src}/storage/repositories/policy-repository.d.ts +0 -0
- /package/{runtime → dist/src}/storage/repositories/policy-repository.js +0 -0
- /package/{runtime → dist/src}/storage/repositories/proposal-repository.d.ts +0 -0
- /package/{runtime → dist/src}/storage/repositories/proposal-repository.js +0 -0
- /package/{runtime → dist/src}/storage/repositories/provenance-repository.d.ts +0 -0
- /package/{runtime → dist/src}/storage/repositories/provenance-repository.js +0 -0
- /package/{runtime → dist/src}/storage/rhythm/rhythm-policy-snapshot.d.ts +0 -0
- /package/{runtime → dist/src}/storage/rhythm/rhythm-policy-snapshot.js +0 -0
- /package/{runtime → dist/src}/storage/services/credential-vault.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/credential-vault.js +0 -0
- /package/{runtime → dist/src}/storage/services/daily-log-pipeline.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/daily-log-pipeline.js +0 -0
- /package/{runtime → dist/src}/storage/services/diary-dream-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/diary-dream-store.js +0 -0
- /package/{runtime → dist/src}/storage/services/effect-commit-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/effect-commit-store.js +0 -0
- /package/{runtime → dist/src}/storage/services/embodied-context-state-port.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/embodied-context-state-port.js +0 -0
- /package/{runtime → dist/src}/storage/services/goal-lifecycle-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/goal-lifecycle-store.js +0 -0
- /package/{runtime → dist/src}/storage/services/governance-layer.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/governance-layer.js +0 -0
- /package/{runtime → dist/src}/storage/services/history-digest-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/history-digest-store.js +0 -0
- /package/{runtime → dist/src}/storage/services/identity-profile-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/identity-profile-store.js +0 -0
- /package/{runtime → dist/src}/storage/services/interaction-snapshot-projector.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/interaction-snapshot-projector.js +0 -0
- /package/{runtime → dist/src}/storage/services/persona-candidate-loader.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/persona-candidate-loader.js +0 -0
- /package/{runtime → dist/src}/storage/services/provenance-service.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/provenance-service.js +0 -0
- /package/{runtime → dist/src}/storage/services/quiet-input-loader.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/quiet-input-loader.js +0 -0
- /package/{runtime → dist/src}/storage/services/repair-and-backup.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/repair-and-backup.js +0 -0
- /package/{runtime → dist/src}/storage/services/restore-snapshot-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/restore-snapshot-store.js +0 -0
- /package/{runtime → dist/src}/storage/services/runtime-secret-anchor-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/runtime-secret-anchor-store.js +0 -0
- /package/{runtime → dist/src}/storage/services/tool-experience-store.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/tool-experience-store.js +0 -0
- /package/{runtime → dist/src}/storage/services/write-validation-gate.d.ts +0 -0
- /package/{runtime → dist/src}/storage/services/write-validation-gate.js +0 -0
- /package/{runtime → dist/src}/storage/snapshots/continuity-snapshot.d.ts +0 -0
- /package/{runtime → dist/src}/storage/snapshots/continuity-snapshot.js +0 -0
- /package/{runtime → dist/src}/storage/snapshots/life-evidence-snapshot.d.ts +0 -0
- /package/{runtime → dist/src}/storage/snapshots/life-evidence-snapshot.js +0 -0
- /package/{runtime → dist/src}/storage/snapshots/types.d.ts +0 -0
- /package/{runtime → dist/src}/storage/state-api.d.ts +0 -0
- /package/{runtime → dist/src}/storage/state-api.js +0 -0
- /package/{runtime → dist/src}/storage/user-interest/load-user-interest-snapshot.d.ts +0 -0
- /package/{runtime → dist/src}/storage/user-interest/load-user-interest-snapshot.js +0 -0
- /package/{runtime → dist/src}/storage/user-interest/types.d.ts +0 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { afterEach, test } from "node:test";
|
|
2
|
+
import assert from "node:assert/strict";
|
|
3
|
+
import fs from "node:fs";
|
|
4
|
+
import os from "node:os";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { createObservabilityDatabase } from "../../../src/observability/db/index.js";
|
|
7
|
+
import { decisionLedger as decisionLedgerTable, redactionManifest as redactionManifestTable, } from "../../../src/observability/db/schema/index.js";
|
|
8
|
+
import { DecisionLedger } from "../../../src/observability/services/decision-ledger.js";
|
|
9
|
+
import { GovernanceAudit } from "../../../src/observability/services/governance-audit.js";
|
|
10
|
+
import { ExecutionTelemetry } from "../../../src/observability/services/execution-telemetry.js";
|
|
11
|
+
const cleanupPaths = [];
|
|
12
|
+
afterEach(() => {
|
|
13
|
+
while (cleanupPaths.length > 0) {
|
|
14
|
+
const target = cleanupPaths.pop();
|
|
15
|
+
if (target && fs.existsSync(target)) {
|
|
16
|
+
fs.rmSync(target, { force: true });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
function createTempDb() {
|
|
21
|
+
const dbPath = path.join(os.tmpdir(), `observability-${Date.now()}-${Math.random().toString(16).slice(2)}.db`);
|
|
22
|
+
cleanupPaths.push(dbPath);
|
|
23
|
+
const database = createObservabilityDatabase(dbPath);
|
|
24
|
+
database.sqlite.exec(`
|
|
25
|
+
CREATE TABLE IF NOT EXISTS decision_ledger (
|
|
26
|
+
id TEXT PRIMARY KEY,
|
|
27
|
+
tick_id TEXT NOT NULL,
|
|
28
|
+
trace_id TEXT NOT NULL,
|
|
29
|
+
intent_id TEXT,
|
|
30
|
+
platform_id TEXT,
|
|
31
|
+
verdict TEXT NOT NULL,
|
|
32
|
+
mode TEXT NOT NULL,
|
|
33
|
+
reasons TEXT NOT NULL,
|
|
34
|
+
reason_codes TEXT NOT NULL,
|
|
35
|
+
decision_basis TEXT NOT NULL,
|
|
36
|
+
evidence_refs TEXT NOT NULL,
|
|
37
|
+
model_eval_ref TEXT,
|
|
38
|
+
created_at TEXT NOT NULL
|
|
39
|
+
);
|
|
40
|
+
CREATE INDEX IF NOT EXISTS decision_tick_idx ON decision_ledger(tick_id);
|
|
41
|
+
CREATE UNIQUE INDEX IF NOT EXISTS decision_trace_idx ON decision_ledger(trace_id);
|
|
42
|
+
|
|
43
|
+
CREATE TABLE IF NOT EXISTS execution_attempts (
|
|
44
|
+
id TEXT PRIMARY KEY,
|
|
45
|
+
trace_id TEXT NOT NULL,
|
|
46
|
+
decision_id TEXT NOT NULL,
|
|
47
|
+
intent_id TEXT NOT NULL,
|
|
48
|
+
platform_id TEXT NOT NULL,
|
|
49
|
+
capability TEXT NOT NULL,
|
|
50
|
+
channel TEXT NOT NULL,
|
|
51
|
+
status TEXT NOT NULL,
|
|
52
|
+
commit_state TEXT,
|
|
53
|
+
failure_class TEXT,
|
|
54
|
+
retry_policy TEXT,
|
|
55
|
+
idempotency_key TEXT,
|
|
56
|
+
started_at TEXT,
|
|
57
|
+
finished_at TEXT
|
|
58
|
+
);
|
|
59
|
+
CREATE UNIQUE INDEX IF NOT EXISTS attempt_trace_idx ON execution_attempts(trace_id);
|
|
60
|
+
CREATE INDEX IF NOT EXISTS attempt_decision_idx ON execution_attempts(decision_id);
|
|
61
|
+
CREATE INDEX IF NOT EXISTS attempt_platform_idx ON execution_attempts(platform_id);
|
|
62
|
+
|
|
63
|
+
CREATE TABLE IF NOT EXISTS governance_audit (
|
|
64
|
+
id TEXT PRIMARY KEY,
|
|
65
|
+
event_type TEXT NOT NULL,
|
|
66
|
+
proposal_id TEXT,
|
|
67
|
+
target_asset_id TEXT,
|
|
68
|
+
asset_path TEXT,
|
|
69
|
+
status_from TEXT,
|
|
70
|
+
status_to TEXT NOT NULL,
|
|
71
|
+
before_hash TEXT,
|
|
72
|
+
after_hash TEXT,
|
|
73
|
+
supporting_sources TEXT,
|
|
74
|
+
reason TEXT,
|
|
75
|
+
verification_deadline TEXT,
|
|
76
|
+
attempts_remaining INTEGER,
|
|
77
|
+
created_at TEXT NOT NULL
|
|
78
|
+
);
|
|
79
|
+
CREATE INDEX IF NOT EXISTS audit_proposal_idx ON governance_audit(proposal_id);
|
|
80
|
+
CREATE INDEX IF NOT EXISTS audit_asset_idx ON governance_audit(target_asset_id);
|
|
81
|
+
CREATE INDEX IF NOT EXISTS audit_event_idx ON governance_audit(event_type);
|
|
82
|
+
|
|
83
|
+
CREATE TABLE IF NOT EXISTS redaction_manifest (
|
|
84
|
+
id TEXT PRIMARY KEY,
|
|
85
|
+
event_id TEXT NOT NULL,
|
|
86
|
+
event_type TEXT NOT NULL,
|
|
87
|
+
field_name TEXT NOT NULL,
|
|
88
|
+
action TEXT NOT NULL,
|
|
89
|
+
original_value_hash TEXT,
|
|
90
|
+
created_at TEXT NOT NULL
|
|
91
|
+
);
|
|
92
|
+
CREATE INDEX IF NOT EXISTS redact_event_idx ON redaction_manifest(event_id);
|
|
93
|
+
`);
|
|
94
|
+
return database;
|
|
95
|
+
}
|
|
96
|
+
test("DecisionLedger records decisions and append-style lifecycle events with redaction manifests", async () => {
|
|
97
|
+
const db = createTempDb();
|
|
98
|
+
const ledger = new DecisionLedger(db);
|
|
99
|
+
const decision = {
|
|
100
|
+
id: "decision-1",
|
|
101
|
+
tickId: "tick-1",
|
|
102
|
+
traceId: "trace-1",
|
|
103
|
+
intentId: "intent-1",
|
|
104
|
+
platformId: "instreet",
|
|
105
|
+
verdict: "allow",
|
|
106
|
+
mode: "active",
|
|
107
|
+
reasons: ["policy_ok"],
|
|
108
|
+
reasonCodes: ["policy_ok"],
|
|
109
|
+
decisionBasis: "rule_only",
|
|
110
|
+
evidenceRefs: ["asset:1"],
|
|
111
|
+
createdAt: new Date().toISOString(),
|
|
112
|
+
};
|
|
113
|
+
await ledger.recordDecision(decision);
|
|
114
|
+
await ledger.recordQuietLifecycle({
|
|
115
|
+
id: "quiet-1",
|
|
116
|
+
tickId: "tick-1",
|
|
117
|
+
eventType: "quiet.entered",
|
|
118
|
+
reason: "window_match",
|
|
119
|
+
reflectionCandidates: ["memory:today"],
|
|
120
|
+
createdAt: new Date().toISOString(),
|
|
121
|
+
});
|
|
122
|
+
await ledger.recordOutreachDecision({
|
|
123
|
+
id: "outreach-1",
|
|
124
|
+
tickId: "tick-2",
|
|
125
|
+
eventType: "outreach.deferred",
|
|
126
|
+
platformId: "instreet",
|
|
127
|
+
targetUserId: "user-1",
|
|
128
|
+
valueScore: 0.62,
|
|
129
|
+
suppressionReason: "low_urgency",
|
|
130
|
+
messagePreview: "hi there",
|
|
131
|
+
createdAt: new Date().toISOString(),
|
|
132
|
+
});
|
|
133
|
+
const decisionRows = await db.db.select().from(decisionLedgerTable);
|
|
134
|
+
assert.equal(decisionRows.length, 3);
|
|
135
|
+
const queriedByTick = await ledger.queryByTickId("tick-1");
|
|
136
|
+
assert.equal(queriedByTick.length, 2);
|
|
137
|
+
const outreachDecision = await ledger.queryByTraceId("outreach-outreach.deferred-outreach-1");
|
|
138
|
+
assert.ok(outreachDecision);
|
|
139
|
+
assert.equal(outreachDecision.verdict, "defer");
|
|
140
|
+
const manifests = await db.db.select().from(redactionManifestTable);
|
|
141
|
+
assert.ok(manifests.length >= 1);
|
|
142
|
+
assert.ok(manifests.some((row) => row.fieldName === "*" && row.action === "none"));
|
|
143
|
+
db.close();
|
|
144
|
+
});
|
|
145
|
+
test("GovernanceAudit records anchor and credential events without collapsing platform identity", async () => {
|
|
146
|
+
const db = createTempDb();
|
|
147
|
+
const audit = new GovernanceAudit(db);
|
|
148
|
+
const anchorEvent = {
|
|
149
|
+
id: "anchor-1",
|
|
150
|
+
proposalId: "proposal-1",
|
|
151
|
+
targetAssetId: "SOUL.md",
|
|
152
|
+
assetPath: "workspace/SOUL.md",
|
|
153
|
+
status: "applied",
|
|
154
|
+
beforeHash: "before",
|
|
155
|
+
afterHash: "after",
|
|
156
|
+
supportingSources: ["memory:today"],
|
|
157
|
+
reason: "approved update",
|
|
158
|
+
appliedAt: new Date().toISOString(),
|
|
159
|
+
createdAt: new Date().toISOString(),
|
|
160
|
+
};
|
|
161
|
+
await audit.recordAnchorChangeAudit(anchorEvent);
|
|
162
|
+
await audit.recordCredentialLifecycle({
|
|
163
|
+
id: "cred-1",
|
|
164
|
+
platformId: "instreet",
|
|
165
|
+
credentialId: "cred-instreet-1",
|
|
166
|
+
statusFrom: "pending_verification",
|
|
167
|
+
statusTo: "active",
|
|
168
|
+
verificationDeadline: new Date().toISOString(),
|
|
169
|
+
attemptsRemaining: 4,
|
|
170
|
+
explanationCapsule: "verification successful",
|
|
171
|
+
createdAt: new Date().toISOString(),
|
|
172
|
+
});
|
|
173
|
+
const anchorRows = await audit.queryByProposalId("proposal-1");
|
|
174
|
+
assert.equal(anchorRows.length, 1);
|
|
175
|
+
assert.equal(anchorRows[0]?.status, "applied");
|
|
176
|
+
const credentialRows = await audit.queryCredentialByPlatform("instreet");
|
|
177
|
+
assert.equal(credentialRows.length, 1);
|
|
178
|
+
assert.equal(credentialRows[0]?.platformId, "instreet");
|
|
179
|
+
assert.equal(credentialRows[0]?.credentialId, "cred-instreet-1");
|
|
180
|
+
const redactions = await db.db.select().from(redactionManifestTable);
|
|
181
|
+
assert.ok(redactions.length >= 1);
|
|
182
|
+
db.close();
|
|
183
|
+
});
|
|
184
|
+
test("ExecutionTelemetry records attempts and updates commit state for replay analysis", async () => {
|
|
185
|
+
const db = createTempDb();
|
|
186
|
+
const telemetry = new ExecutionTelemetry(db);
|
|
187
|
+
const attempt = {
|
|
188
|
+
id: "attempt-1",
|
|
189
|
+
traceId: "trace-telemetry-1",
|
|
190
|
+
decisionId: "decision-telemetry-1",
|
|
191
|
+
intentId: "intent-telemetry-1",
|
|
192
|
+
platformId: "evomap",
|
|
193
|
+
capability: "agent.heartbeat",
|
|
194
|
+
channel: "api_rest",
|
|
195
|
+
status: "started",
|
|
196
|
+
commitState: "planned",
|
|
197
|
+
retryPolicy: "none",
|
|
198
|
+
idempotencyKey: "heartbeat-1",
|
|
199
|
+
metadata: { node_secret: "should-mask" },
|
|
200
|
+
startedAt: new Date().toISOString(),
|
|
201
|
+
};
|
|
202
|
+
await telemetry.recordExecutionAttempt(attempt);
|
|
203
|
+
await telemetry.updateCommitState("trace-telemetry-1", "externally_acknowledged");
|
|
204
|
+
await telemetry.completeAttempt("trace-telemetry-1", "succeeded", "committed");
|
|
205
|
+
const queried = await telemetry.queryByTraceId("trace-telemetry-1");
|
|
206
|
+
assert.ok(queried);
|
|
207
|
+
assert.equal(queried.commitState, "committed");
|
|
208
|
+
assert.equal(queried.status, "succeeded");
|
|
209
|
+
const byDecision = await telemetry.queryByDecisionId("decision-telemetry-1");
|
|
210
|
+
assert.equal(byDecision.length, 1);
|
|
211
|
+
const byPlatform = await telemetry.queryByPlatform("evomap");
|
|
212
|
+
assert.equal(byPlatform.length, 1);
|
|
213
|
+
const byCommitState = await telemetry.queryByCommitState("committed");
|
|
214
|
+
assert.equal(byCommitState.length, 1);
|
|
215
|
+
const manifests = await db.db.select().from(redactionManifestTable);
|
|
216
|
+
assert.ok(manifests.some((row) => row.fieldName === "metadata.node_secret" && row.action === "mask"));
|
|
217
|
+
assert.ok(!manifests.some((row) => row.fieldName === "_none" && row.action === "mask"));
|
|
218
|
+
db.close();
|
|
219
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import test from "node:test";
|
|
2
|
+
import assert from "node:assert/strict";
|
|
3
|
+
import { projectReflectionAudit } from "../../../src/observability/projections/reflection-audit.js";
|
|
4
|
+
import { projectOutreachQualityAudit } from "../../../src/observability/projections/outreach-quality-audit.js";
|
|
5
|
+
test("reflection projection keeps extension fields serializable", () => {
|
|
6
|
+
const projection = projectReflectionAudit({
|
|
7
|
+
id: "reflection-1",
|
|
8
|
+
claimCount: 5,
|
|
9
|
+
unsupportedClaimCount: 1,
|
|
10
|
+
sourceCoverageRatio: 0.8,
|
|
11
|
+
reflectionDebt: 2,
|
|
12
|
+
starved: false,
|
|
13
|
+
modelEvalRef: "model-eval-1",
|
|
14
|
+
});
|
|
15
|
+
assert.equal(projection.eventId, "reflection-1");
|
|
16
|
+
assert.equal(projection.unsupportedClaimCount, 1);
|
|
17
|
+
assert.equal(projection.sourceCoverageRatio, 0.8);
|
|
18
|
+
assert.equal(projection.claimCount, 5);
|
|
19
|
+
assert.equal(projection.modelEvalRef, "model-eval-1");
|
|
20
|
+
assert.doesNotThrow(() => JSON.stringify(projection));
|
|
21
|
+
});
|
|
22
|
+
test("outreach quality projection keeps value and suppression fields", () => {
|
|
23
|
+
const projection = projectOutreachQualityAudit({
|
|
24
|
+
id: "outreach-1",
|
|
25
|
+
valueScore: 0.73,
|
|
26
|
+
noveltyScore: 0.51,
|
|
27
|
+
requiredUserAction: true,
|
|
28
|
+
suppressionReason: "cooldown",
|
|
29
|
+
});
|
|
30
|
+
assert.equal(projection.eventId, "outreach-1");
|
|
31
|
+
assert.equal(projection.valueScore, 0.73);
|
|
32
|
+
assert.equal(projection.noveltyScore, 0.51);
|
|
33
|
+
assert.equal(projection.requiredUserAction, true);
|
|
34
|
+
assert.equal(projection.suppressionReason, "cooldown");
|
|
35
|
+
assert.doesNotThrow(() => JSON.stringify(projection));
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* T5.1.1 — DreamTrace audit envelope emitted by LivedExperienceAuditRecorder.
|
|
3
|
+
*
|
|
4
|
+
* Acceptance:
|
|
5
|
+
* A. recordDreamTrace writes a dream.trace family envelope into the audit store.
|
|
6
|
+
* B. Envelope contains correct traceId, runId, durationMs, inputCounts, fallbackReason.
|
|
7
|
+
* C. No fallbackReason → lifecycleStatus inferred as "completed" by read model.
|
|
8
|
+
* D. With fallbackReason → lifecycleStatus inferred as "partial" by read model.
|
|
9
|
+
* E. Empty store returns honest empty (totalRuns: 0, runs: []) via loadDreamRecent.
|
|
10
|
+
*/
|
|
11
|
+
import test from "node:test";
|
|
12
|
+
import assert from "node:assert/strict";
|
|
13
|
+
import { AppendOnlyAuditStore } from "../../../src/observability/audit/append-only-audit-store.js";
|
|
14
|
+
import { createLivedExperienceAuditRecorder } from "../../../src/observability/services/lived-experience-audit.js";
|
|
15
|
+
import { createCliReadModels } from "../../../src/cli/read-models/index.js";
|
|
16
|
+
import { createStateDatabase } from "../../../src/storage/db/index.js";
|
|
17
|
+
import { createObservabilityDatabase } from "../../../src/observability/db/index.js";
|
|
18
|
+
test("T5.1.1-A: recordDreamTrace writes dream.trace envelope into audit store", async () => {
|
|
19
|
+
const store = new AppendOnlyAuditStore();
|
|
20
|
+
const recorder = createLivedExperienceAuditRecorder(store);
|
|
21
|
+
const trace = {
|
|
22
|
+
traceId: "dream:trace-001",
|
|
23
|
+
runId: "run-001",
|
|
24
|
+
startedAt: "2026-05-16T08:00:00Z",
|
|
25
|
+
finishedAt: "2026-05-16T08:01:30Z",
|
|
26
|
+
durationMs: 90000,
|
|
27
|
+
inputCounts: { evidence: 3, chronicle: 2, memoryEntries: 5 },
|
|
28
|
+
};
|
|
29
|
+
const result = recorder.recordDreamTrace(trace);
|
|
30
|
+
assert.ok(result.eventId, "eventId must be present");
|
|
31
|
+
const events = store.list();
|
|
32
|
+
assert.equal(events.length, 1);
|
|
33
|
+
assert.equal(events[0].family, "dream.trace");
|
|
34
|
+
assert.equal(events[0].plane, "telemetry");
|
|
35
|
+
assert.equal(events[0].traceId, "dream:trace-001");
|
|
36
|
+
});
|
|
37
|
+
test("T5.1.1-B: loadDreamRecent returns correct fields for completed run", async () => {
|
|
38
|
+
const store = new AppendOnlyAuditStore();
|
|
39
|
+
const recorder = createLivedExperienceAuditRecorder(store);
|
|
40
|
+
recorder.recordDreamTrace({
|
|
41
|
+
traceId: "dream:trace-002",
|
|
42
|
+
runId: "run-002",
|
|
43
|
+
startedAt: "2026-05-16T08:00:00Z",
|
|
44
|
+
finishedAt: "2026-05-16T08:01:00Z",
|
|
45
|
+
durationMs: 60000,
|
|
46
|
+
inputCounts: { evidence: 2, chronicle: 1, memoryEntries: 3 },
|
|
47
|
+
});
|
|
48
|
+
const stateDb = createStateDatabase(":memory:");
|
|
49
|
+
const observabilityDb = createObservabilityDatabase(":memory:");
|
|
50
|
+
const readModels = createCliReadModels({ stateDb, observabilityDb, livedExperienceAuditStore: store });
|
|
51
|
+
const recent = await readModels.loadDreamRecent(5);
|
|
52
|
+
assert.equal(recent.totalRuns, 1);
|
|
53
|
+
assert.equal(recent.runs.length, 1);
|
|
54
|
+
const run = recent.runs[0];
|
|
55
|
+
assert.equal(run.traceId, "dream:trace-002");
|
|
56
|
+
assert.equal(run.runId, "run-002");
|
|
57
|
+
assert.equal(run.durationMs, 60000);
|
|
58
|
+
assert.deepEqual(run.inputCounts, { evidence: 2, chronicle: 1, memoryEntries: 3 });
|
|
59
|
+
assert.equal(run.lifecycleStatus, "completed");
|
|
60
|
+
assert.equal(run.fallbackReason, undefined);
|
|
61
|
+
assert.equal(run.insightsCount, 0);
|
|
62
|
+
assert.ok(typeof run.createdAt === "string");
|
|
63
|
+
});
|
|
64
|
+
test("T5.1.1-C: loadDreamRecent infers partial status when fallbackReason present", async () => {
|
|
65
|
+
const store = new AppendOnlyAuditStore();
|
|
66
|
+
const recorder = createLivedExperienceAuditRecorder(store);
|
|
67
|
+
recorder.recordDreamTrace({
|
|
68
|
+
traceId: "dream:trace-003",
|
|
69
|
+
runId: "run-003",
|
|
70
|
+
startedAt: "2026-05-16T08:00:00Z",
|
|
71
|
+
finishedAt: "2026-05-16T08:00:10Z",
|
|
72
|
+
durationMs: 10000,
|
|
73
|
+
inputCounts: { evidence: 1, chronicle: 0, memoryEntries: 1 },
|
|
74
|
+
fallbackReason: "validation_failed_schema",
|
|
75
|
+
});
|
|
76
|
+
const stateDb = createStateDatabase(":memory:");
|
|
77
|
+
const observabilityDb = createObservabilityDatabase(":memory:");
|
|
78
|
+
const readModels = createCliReadModels({ stateDb, observabilityDb, livedExperienceAuditStore: store });
|
|
79
|
+
const recent = await readModels.loadDreamRecent(5);
|
|
80
|
+
assert.equal(recent.runs[0].lifecycleStatus, "partial");
|
|
81
|
+
assert.equal(recent.runs[0].fallbackReason, "validation_failed_schema");
|
|
82
|
+
});
|
|
83
|
+
test("T5.1.1-D: loadDreamRecent respects limit and sorts descending by createdAt", async () => {
|
|
84
|
+
const store = new AppendOnlyAuditStore();
|
|
85
|
+
const recorder = createLivedExperienceAuditRecorder(store);
|
|
86
|
+
for (let i = 0; i < 5; i++) {
|
|
87
|
+
recorder.recordDreamTrace({
|
|
88
|
+
traceId: `dream:trace-${i}`,
|
|
89
|
+
runId: `run-${i}`,
|
|
90
|
+
startedAt: "2026-05-16T08:00:00Z",
|
|
91
|
+
finishedAt: `2026-05-16T0${i}:00:00Z`,
|
|
92
|
+
durationMs: 1000,
|
|
93
|
+
inputCounts: { evidence: 1, chronicle: 0, memoryEntries: 0 },
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
const stateDb = createStateDatabase(":memory:");
|
|
97
|
+
const observabilityDb = createObservabilityDatabase(":memory:");
|
|
98
|
+
const readModels = createCliReadModels({ stateDb, observabilityDb, livedExperienceAuditStore: store });
|
|
99
|
+
const recent = await readModels.loadDreamRecent(2);
|
|
100
|
+
assert.equal(recent.totalRuns, 5);
|
|
101
|
+
assert.equal(recent.runs.length, 2);
|
|
102
|
+
// Descending order: run-4 (04:00) should come first
|
|
103
|
+
assert.equal(recent.runs[0].runId, "run-4");
|
|
104
|
+
assert.equal(recent.runs[1].runId, "run-3");
|
|
105
|
+
});
|
|
106
|
+
test("T5.1.1-E: loadDreamRecent returns honest empty when store has no dream traces", async () => {
|
|
107
|
+
const store = new AppendOnlyAuditStore();
|
|
108
|
+
// No dream traces inserted
|
|
109
|
+
const stateDb = createStateDatabase(":memory:");
|
|
110
|
+
const observabilityDb = createObservabilityDatabase(":memory:");
|
|
111
|
+
const readModels = createCliReadModels({ stateDb, observabilityDb, livedExperienceAuditStore: store });
|
|
112
|
+
const recent = await readModels.loadDreamRecent(5);
|
|
113
|
+
assert.equal(recent.totalRuns, 0);
|
|
114
|
+
assert.deepEqual(recent.runs, []);
|
|
115
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* T-ROS.C.2 — Plugin registration & WorkspaceOpsBridge v7 extension.
|
|
3
|
+
*
|
|
4
|
+
* Verifies:
|
|
5
|
+
* 1. Plugin loads without touching DB (host-safe register() mode)
|
|
6
|
+
* 2. second_nature_ops tool is exposed after register()
|
|
7
|
+
* 3. All v7 commands are routed through the workspace bridge path
|
|
8
|
+
* (isWorkspaceBridgeCommand returns true for each v7 command)
|
|
9
|
+
* 4. parseCommandInput() produces well-formed ParsedCommand for each v7 command
|
|
10
|
+
*
|
|
11
|
+
* Does NOT open a real workspace DB — uses the carrier (non-bridge) path only,
|
|
12
|
+
* so the test can run in CI without a workspace root.
|
|
13
|
+
*
|
|
14
|
+
* Evidence: tests/integration/plugin/plugin-registration.test.ts
|
|
15
|
+
*/
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* T-ROS.C.2 — Plugin registration & WorkspaceOpsBridge v7 extension.
|
|
3
|
+
*
|
|
4
|
+
* Verifies:
|
|
5
|
+
* 1. Plugin loads without touching DB (host-safe register() mode)
|
|
6
|
+
* 2. second_nature_ops tool is exposed after register()
|
|
7
|
+
* 3. All v7 commands are routed through the workspace bridge path
|
|
8
|
+
* (isWorkspaceBridgeCommand returns true for each v7 command)
|
|
9
|
+
* 4. parseCommandInput() produces well-formed ParsedCommand for each v7 command
|
|
10
|
+
*
|
|
11
|
+
* Does NOT open a real workspace DB — uses the carrier (non-bridge) path only,
|
|
12
|
+
* so the test can run in CI without a workspace root.
|
|
13
|
+
*
|
|
14
|
+
* Evidence: tests/integration/plugin/plugin-registration.test.ts
|
|
15
|
+
*/
|
|
16
|
+
import test from "node:test";
|
|
17
|
+
import assert from "node:assert/strict";
|
|
18
|
+
import path from "node:path";
|
|
19
|
+
import { pathToFileURL } from "node:url";
|
|
20
|
+
async function loadPlugin() {
|
|
21
|
+
const pluginUrl = pathToFileURL(path.join(process.cwd(), "plugin", "index.js")).href;
|
|
22
|
+
const mod = await import(pluginUrl);
|
|
23
|
+
return mod.default;
|
|
24
|
+
}
|
|
25
|
+
// ─── T-ROS.C.2 / AC-1: host-safe register() never throws ───────────────────
|
|
26
|
+
test("T-ROS.C.2 AC-1 — plugin register() does not throw without workspace root", async () => {
|
|
27
|
+
delete process.env.SECOND_NATURE_WORKSPACE_ROOT;
|
|
28
|
+
const plugin = await loadPlugin();
|
|
29
|
+
const services = [];
|
|
30
|
+
const commands = [];
|
|
31
|
+
const tools = [];
|
|
32
|
+
// Should not throw regardless of env
|
|
33
|
+
assert.doesNotThrow(() => {
|
|
34
|
+
plugin.register({
|
|
35
|
+
registerService(s) { services.push(s.id); },
|
|
36
|
+
registerCommand(c) { commands.push(c.name); },
|
|
37
|
+
registerTool(t) { tools.push(t); },
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
// Must expose at least one tool
|
|
41
|
+
assert.ok(tools.length >= 1, "Expected at least one tool registered");
|
|
42
|
+
});
|
|
43
|
+
// ─── T-ROS.C.2 / AC-2: second_nature_ops tool is visible ───────────────────
|
|
44
|
+
test("T-ROS.C.2 AC-2 — second_nature_ops tool is registered and executable", async () => {
|
|
45
|
+
delete process.env.SECOND_NATURE_WORKSPACE_ROOT;
|
|
46
|
+
const plugin = await loadPlugin();
|
|
47
|
+
let tool;
|
|
48
|
+
plugin.register({
|
|
49
|
+
registerService() { },
|
|
50
|
+
registerCommand() { },
|
|
51
|
+
registerTool(t) {
|
|
52
|
+
tool = t;
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
assert.ok(tool, "second_nature_ops tool must be registered");
|
|
56
|
+
assert.equal(typeof tool.execute, "function", "tool.execute must be a function");
|
|
57
|
+
// Execute a command without workspace root — should return ok:false gracefully (no crash)
|
|
58
|
+
const result = await tool.execute("1", { command: "self_health" });
|
|
59
|
+
assert.ok(Array.isArray(result.content), "tool must return {content: [...]}");
|
|
60
|
+
assert.equal(result.content[0]?.type, "text", "content[0].type must be 'text'");
|
|
61
|
+
const payload = JSON.parse(result.content[0].text);
|
|
62
|
+
// Without workspace root it will fail (no bridge), but must not throw
|
|
63
|
+
assert.equal(typeof payload.ok, "boolean", "response payload must have ok field");
|
|
64
|
+
});
|
|
65
|
+
// ─── T-ROS.C.2 / AC-3: v7 commands routed through workspace bridge ──────────
|
|
66
|
+
const V7_COMMANDS = [
|
|
67
|
+
"self_health",
|
|
68
|
+
"tool_affordance",
|
|
69
|
+
"heartbeat_digest",
|
|
70
|
+
"snapshot:capture",
|
|
71
|
+
"narrative:diff",
|
|
72
|
+
"timeline",
|
|
73
|
+
"restore",
|
|
74
|
+
"runtime_secret_bootstrap",
|
|
75
|
+
// T-V7C.C.5: host ops surface parity
|
|
76
|
+
"connector:run",
|
|
77
|
+
"guidance_payload",
|
|
78
|
+
];
|
|
79
|
+
for (const cmd of V7_COMMANDS) {
|
|
80
|
+
test(`T-ROS.C.2 AC-3 — ${cmd} is in WORKSPACE_BRIDGE_COMMANDS`, async () => {
|
|
81
|
+
delete process.env.SECOND_NATURE_WORKSPACE_ROOT;
|
|
82
|
+
const plugin = await loadPlugin();
|
|
83
|
+
let tool;
|
|
84
|
+
plugin.register({
|
|
85
|
+
registerService() { },
|
|
86
|
+
registerCommand() { },
|
|
87
|
+
registerTool(t) { tool = t; },
|
|
88
|
+
});
|
|
89
|
+
assert.ok(tool);
|
|
90
|
+
// Without a real workspace root the bridge fails gracefully.
|
|
91
|
+
// The important thing is that the dispatch reaches the bridge layer (ok: false with
|
|
92
|
+
// a bridge/workspace error, NOT "unknown_command").
|
|
93
|
+
const result = await tool.execute("1", { command: cmd });
|
|
94
|
+
const payload = JSON.parse(result.content[0].text);
|
|
95
|
+
// "unknown_command" would mean the command was NOT in WORKSPACE_BRIDGE_COMMANDS
|
|
96
|
+
// (it would have been processed by carrier and failed there). Any other error code
|
|
97
|
+
// means the bridge layer was reached.
|
|
98
|
+
assert.notEqual(payload.error?.code, "unknown_command", `${cmd} must not return unknown_command — it must be in WORKSPACE_BRIDGE_COMMANDS`);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
// ─── T-ROS.C.2 / AC-4: parseCommandInput produces valid shapes ──────────────
|
|
102
|
+
test("T-ROS.C.2 AC-4 — self_health input is undefined (no args needed)", async () => {
|
|
103
|
+
delete process.env.SECOND_NATURE_WORKSPACE_ROOT;
|
|
104
|
+
const plugin = await loadPlugin();
|
|
105
|
+
let tool;
|
|
106
|
+
plugin.register({
|
|
107
|
+
registerService() { },
|
|
108
|
+
registerCommand() { },
|
|
109
|
+
registerTool(t) { tool = t; },
|
|
110
|
+
});
|
|
111
|
+
assert.ok(tool);
|
|
112
|
+
// self_health requires no arguments; passing stray args should not crash
|
|
113
|
+
const result = await tool.execute("1", { command: "self_health", args: {} });
|
|
114
|
+
const payload = JSON.parse(result.content[0].text);
|
|
115
|
+
assert.equal(typeof payload.ok, "boolean");
|
|
116
|
+
});
|
|
117
|
+
test("T-ROS.C.2 AC-4 — heartbeat_digest passes date arg", async () => {
|
|
118
|
+
delete process.env.SECOND_NATURE_WORKSPACE_ROOT;
|
|
119
|
+
const plugin = await loadPlugin();
|
|
120
|
+
let tool;
|
|
121
|
+
plugin.register({
|
|
122
|
+
registerService() { },
|
|
123
|
+
registerCommand() { },
|
|
124
|
+
registerTool(t) { tool = t; },
|
|
125
|
+
});
|
|
126
|
+
assert.ok(tool);
|
|
127
|
+
const result = await tool.execute("1", {
|
|
128
|
+
command: "heartbeat_digest",
|
|
129
|
+
args: { date: "2025-01-01" },
|
|
130
|
+
});
|
|
131
|
+
const payload = JSON.parse(result.content[0].text);
|
|
132
|
+
// Must reach bridge, not blow up with unknown_command
|
|
133
|
+
assert.notEqual(payload.error?.code, "unknown_command");
|
|
134
|
+
});
|
|
135
|
+
test("T-ROS.C.2 AC-4 — restore passes restoreTarget/fromVersion/toVersion", async () => {
|
|
136
|
+
delete process.env.SECOND_NATURE_WORKSPACE_ROOT;
|
|
137
|
+
const plugin = await loadPlugin();
|
|
138
|
+
let tool;
|
|
139
|
+
plugin.register({
|
|
140
|
+
registerService() { },
|
|
141
|
+
registerCommand() { },
|
|
142
|
+
registerTool(t) { tool = t; },
|
|
143
|
+
});
|
|
144
|
+
assert.ok(tool);
|
|
145
|
+
const result = await tool.execute("1", {
|
|
146
|
+
command: "restore",
|
|
147
|
+
args: { restoreTarget: "state", fromVersion: "v1", toVersion: "v2" },
|
|
148
|
+
});
|
|
149
|
+
const payload = JSON.parse(result.content[0].text);
|
|
150
|
+
assert.notEqual(payload.error?.code, "unknown_command");
|
|
151
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* T-ROS.C.1 集成测试 — RuntimeSurfaceRouter v7 命令集
|
|
3
|
+
*
|
|
4
|
+
* 验收标准(05A_TASKS.md T-ROS.C.1):
|
|
5
|
+
* - connector_test --wet: dryRun=false + triggerSource:"manual" + affectsHeartbeatCadence=false
|
|
6
|
+
* - self_health: 返回 RuntimeOpsEnvelope, data 含 overall/dimensions/degraded_dimensions
|
|
7
|
+
* - heartbeat_digest: 返回 RuntimeOpsEnvelope + digest; 无 auditStore 时降级
|
|
8
|
+
* - narrative:diff: 返回 RuntimeOpsEnvelope + diff; 无 deps 时降级
|
|
9
|
+
* - timeline: 返回 RuntimeOpsEnvelope + page; range 超 90 天时 ok=false + NARRATIVE_RANGE_EXCEEDED
|
|
10
|
+
* - restore: 触发 RestoreSnapshotStore + RestoreAudit, ok=true, data.auditWritten=true; 无 auditStore 时降级
|
|
11
|
+
* - runtime_secret_bootstrap: 返回 RuntimeOpsEnvelope; plaintextKeyExposed=false
|
|
12
|
+
* - tool_affordance: port 未连线时 ok=false + TOOL_AFFORDANCE_PORT_UNWIRED
|
|
13
|
+
*
|
|
14
|
+
* Evidence: reports/int-s5-observability-v7.md (T-ROS.C.1 is part of Wave 67)
|
|
15
|
+
*/
|
|
16
|
+
export {};
|