@qlairoslabs/acp-client 0.12.1 → 0.13.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-consumer-fixes.md +17 -10
- package/CHANGELOG-controller-interface.md +258 -0
- package/CHANGELOG-metering.md +29 -0
- package/CHANGELOG-operation-lifecycle.md +15 -1
- package/CONSUMER_GUIDE.md +845 -6
- package/MIGRATION-0.10-to-0.12.md +4 -1
- package/MIGRATION-0.12-to-0.13.md +275 -0
- package/README.md +17 -16
- package/package.json +4 -2
- package/src/acp-client-handlers.ts +48 -0
- package/src/activity.ts +3 -0
- package/src/adapters.ts +25 -0
- package/src/agent/adoption/provider-attachment.ts +33 -0
- package/src/agent/adoption/provider-session-delete.ts +1 -1
- package/src/agent/adoption/provider-sessions.ts +3 -2
- package/src/agent/append-assistant-message.ts +91 -0
- package/src/agent/config.ts +54 -6
- package/src/agent/conversation-manager.ts +94 -158
- package/src/agent/manager-settings.ts +1 -0
- package/src/agent/native-channel-lifecycle.ts +111 -0
- package/src/agent/persisted-lifecycle.ts +44 -4
- package/src/agent/persistence-policy/context.ts +13 -0
- package/src/agent/persistence-policy/resolver.ts +7 -0
- package/src/agent/persistence-policy/types.ts +1 -0
- package/src/agent/record-capture.ts +1 -0
- package/src/agent-adapter-registry.ts +33 -7
- package/src/agent-conversation-contracts.ts +14 -1
- package/src/agent-conversation-errors.ts +8 -0
- package/src/agent-conversation-owner.ts +9 -4
- package/src/agent-session-config.ts +135 -0
- package/src/agent-session.ts +439 -934
- package/src/agent.ts +73 -0
- package/src/capabilities.ts +2 -0
- package/src/checkpointing/recovery.ts +3 -0
- package/src/cli/index.ts +3 -3
- package/src/cli/managed.ts +2 -2
- package/src/client.ts +52 -94
- package/src/connection-attempt.ts +95 -0
- package/src/controller-connection.ts +114 -0
- package/src/controller.ts +156 -148
- package/src/conversation-controller/capabilities.ts +88 -0
- package/src/conversation-controller/contracts.ts +208 -0
- package/src/conversation-controller/factory.ts +39 -0
- package/src/conversation-controller/guards.ts +98 -0
- package/src/conversation-controller/index.ts +20 -0
- package/src/conversation-startup.ts +35 -0
- package/src/conversation-turns/backend-turns.ts +373 -0
- package/src/conversation-turns/clear-operations.ts +37 -0
- package/src/conversation-turns/context.ts +135 -0
- package/src/conversation-turns/index.ts +4 -0
- package/src/conversation-turns/record-helpers.ts +75 -0
- package/src/conversation-turns/recording.ts +235 -0
- package/src/conversation-turns/run-turn.ts +367 -0
- package/src/conversation-turns/turn-run.ts +57 -0
- package/src/errors.ts +41 -0
- package/src/handoff-options.ts +81 -0
- package/src/identity/checkpoint-backed.ts +1 -1
- package/src/index.ts +58 -3
- package/src/internal-inference/coordination/manager.ts +11 -0
- package/src/internal-inference/runtime/harness-runtime.ts +4 -4
- package/src/launcher.ts +35 -2
- package/src/media/parts.ts +5 -0
- package/src/message-status.ts +83 -0
- package/src/metering/engine.ts +39 -64
- package/src/metering/measurement-provenance.ts +36 -0
- package/src/metering/native/durability.ts +115 -0
- package/src/metering/native/ledger.ts +104 -0
- package/src/metering/native/operation.ts +85 -0
- package/src/metering/native/projection.ts +114 -0
- package/src/metering/native/proof.ts +51 -0
- package/src/metering/native/requirements.ts +10 -0
- package/src/metering/native/retirement.ts +92 -0
- package/src/metering/native/source.ts +90 -0
- package/src/metering/record.ts +38 -1
- package/src/metering/state.ts +13 -3
- package/src/native/approvals.ts +169 -0
- package/src/native/capabilities.ts +17 -0
- package/src/native/channel-changes.ts +211 -0
- package/src/native/connection.ts +56 -0
- package/src/native/controller.ts +591 -0
- package/src/native/delegation-sender.ts +26 -0
- package/src/native/errors.ts +35 -0
- package/src/native/functions.ts +156 -0
- package/src/native/host-config.ts +59 -0
- package/src/native/host.ts +909 -0
- package/src/native/item-receipts.ts +15 -0
- package/src/native/metering.ts +12 -0
- package/src/native/records.ts +166 -0
- package/src/native/recovery.ts +186 -0
- package/src/native/reminders/fixtures/schema21.sqlite.gz +0 -0
- package/src/native/reminders/idle.ts +70 -0
- package/src/native/reminders/limits.ts +19 -0
- package/src/native/reminders/notifications.ts +29 -0
- package/src/native/reminders/reminders.test.ts +553 -0
- package/src/native/reminders/routine-config.typecheck.ts +13 -0
- package/src/native/reminders/routine-guard.ts +66 -0
- package/src/native/reminders/routine-schedule.ts +25 -0
- package/src/native/reminders/routine-wire.ts +21 -0
- package/src/native/reminders/schedule.ts +97 -0
- package/src/native/reminders/service.ts +280 -0
- package/src/native/reminders/supervisor.ts +91 -0
- package/src/native/reminders/sync.ts +301 -0
- package/src/native/reminders/wire.ts +197 -0
- package/src/native/reminders/wire.typecheck.ts +13 -0
- package/src/native/submission-withdrawal.ts +65 -0
- package/src/native/usage.ts +15 -0
- package/src/native/worker-delivery.ts +61 -0
- package/src/native-harness/.res/README.md +1 -0
- package/src/native-harness/.res/architecture/README.md +21 -0
- package/src/native-harness/.res/architecture/context-and-data.md +31 -0
- package/src/native-harness/.res/architecture/execution.md +42 -0
- package/src/native-harness/.res/architecture/overview.md +44 -0
- package/src/native-harness/.res/architecture/persistence.md +56 -0
- package/src/native-harness/.res/architecture/suspend-and-resume.md +45 -0
- package/src/native-harness/.res/architecture/technical-architecture.md +50 -0
- package/src/native-harness/.res/decisions/0001-basic-loop.md +11 -0
- package/src/native-harness/.res/decisions/0002-channel-input.md +17 -0
- package/src/native-harness/.res/decisions/0003-inference-inspection.md +14 -0
- package/src/native-harness/.res/decisions/0004-shared-context.md +21 -0
- package/src/native-harness/.res/decisions/0005-notice-inbox.md +20 -0
- package/src/native-harness/.res/decisions/0006-explicit-notices.md +12 -0
- package/src/native-harness/.res/decisions/0007-channel-output.md +12 -0
- package/src/native-harness/.res/decisions/0008-browser-client.md +16 -0
- package/src/native-harness/.res/decisions/0009-scripted-model.md +18 -0
- package/src/native-harness/.res/decisions/0010-inprocess-protocol.md +19 -0
- package/src/native-harness/.res/decisions/0011-stdio-transport.md +21 -0
- package/src/native-harness/.res/decisions/0012-session-storage-contract.md +37 -0
- package/src/native-harness/.res/decisions/0013-durable-delivery-contract.md +64 -0
- package/src/native-harness/.res/decisions/0014-channel-controls-contract.md +73 -0
- package/src/native-harness/.res/decisions/0015-session-file-contract.md +72 -0
- package/src/native-harness/.res/decisions/0016-configuration-permissions.md +159 -0
- package/src/native-harness/.res/decisions/0017-openrouter-managed-config.md +69 -0
- package/src/native-harness/.res/decisions/0018-tool-dispatch-evidence.md +78 -0
- package/src/native-harness/.res/decisions/0019-model-execution.md +188 -0
- package/src/native-harness/.res/decisions/0020-startup-channel-changes.md +71 -0
- package/src/native-harness/.res/decisions/0021-tools-and-host-callbacks.md +100 -0
- package/src/native-harness/.res/decisions/0022-operator-controls.md +115 -0
- package/src/native-harness/.res/decisions/0023-long-running-mock.md +82 -0
- package/src/native-harness/.res/decisions/0024-callback-policy-names.md +46 -0
- package/src/native-harness/.res/decisions/0025-external-notices.md +364 -0
- package/src/native-harness/.res/decisions/0026-bounded-context.md +81 -0
- package/src/native-harness/.res/decisions/0027-development-instructions.md +22 -0
- package/src/native-harness/.res/decisions/0028-debug-tools.md +16 -0
- package/src/native-harness/.res/decisions/0029-bounded-model-call-pages.md +37 -0
- package/src/native-harness/.res/decisions/0030-timeline-retrieval.md +145 -0
- package/src/native-harness/.res/decisions/0031-one-off-reminders.md +173 -0
- package/src/native-harness/.res/docs/11-15.md +148 -0
- package/src/native-harness/.res/docs/BUSINESS_RULES.md +111 -0
- package/src/native-harness/.res/docs/WORK.md +65 -0
- package/src/native-harness/.res/docs/_/11-16-persistence/LOG.md +312 -0
- package/src/native-harness/.res/docs/_/11-16-persistence/PLAN.md +77 -0
- package/src/native-harness/.res/docs/_/11-16-persistence/SPEC.md +313 -0
- package/src/native-harness/.res/docs/_/11-19-channel-controls/LOG.md +160 -0
- package/src/native-harness/.res/docs/_/11-19-channel-controls/PLAN.md +89 -0
- package/src/native-harness/.res/docs/_/11-19-channel-controls/SPEC.md +135 -0
- package/src/native-harness/.res/docs/_/11-19-config-permissions/LOG.md +143 -0
- package/src/native-harness/.res/docs/_/11-19-config-permissions/PLAN.md +93 -0
- package/src/native-harness/.res/docs/_/11-19-config-permissions/SPEC.md +181 -0
- package/src/native-harness/.res/docs/acp-client-integration/0001-DESIGN/11-20-LOG.md +433 -0
- package/src/native-harness/.res/docs/acp-client-integration/0001-DESIGN/PLAN.md +60 -0
- package/src/native-harness/.res/docs/acp-client-integration/0001-DESIGN/PROTOCOL.md +141 -0
- package/src/native-harness/.res/docs/acp-client-integration/0001-DESIGN/SPEC.md +168 -0
- package/src/native-harness/.res/docs/attachments/0001-DESIGN/SPEC.md +111 -0
- package/src/native-harness/.res/docs/bounded-context/0001-DESIGN/PLAN.md +129 -0
- package/src/native-harness/.res/docs/bounded-context/0001-DESIGN/SPEC.md +135 -0
- package/src/native-harness/.res/docs/channel-messaging/0001-DESIGN-external-notices/LOG.md +437 -0
- package/src/native-harness/.res/docs/channel-messaging/0001-DESIGN-external-notices/PLAN.md +127 -0
- package/src/native-harness/.res/docs/channel-messaging/0001-DESIGN-external-notices/SPEC.md +203 -0
- package/src/native-harness/.res/docs/long-running-mock/0001-DESIGN/LOG.md +292 -0
- package/src/native-harness/.res/docs/long-running-mock/0001-DESIGN/PLAN.md +91 -0
- package/src/native-harness/.res/docs/long-running-mock/0001-DESIGN/SPEC.md +187 -0
- package/src/native-harness/.res/docs/model-execution/0001-DESIGN/LOG.md +148 -0
- package/src/native-harness/.res/docs/model-execution/0001-DESIGN/PLAN.md +95 -0
- package/src/native-harness/.res/docs/model-execution/0001-DESIGN/SPEC.md +200 -0
- package/src/native-harness/.res/docs/model-execution/0002-AMENDMENT-accounting/SPEC.md +80 -0
- package/src/native-harness/.res/docs/operator-controls/0001-DESIGN/LOG.md +206 -0
- package/src/native-harness/.res/docs/operator-controls/0001-DESIGN/PLAN.md +106 -0
- package/src/native-harness/.res/docs/operator-controls/0001-DESIGN/SPEC.md +297 -0
- package/src/native-harness/.res/docs/persistence/0002-AMENDMENT-session-file/LOG.md +41 -0
- package/src/native-harness/.res/docs/persistence/0002-AMENDMENT-session-file/PLAN.md +36 -0
- package/src/native-harness/.res/docs/persistence/0002-AMENDMENT-session-file/SPEC.md +84 -0
- package/src/native-harness/.res/docs/shell-execution/0001-DESIGN/SPEC.md +147 -0
- package/src/native-harness/.res/docs/timeline-retrieval/0001-DESIGN/LOG.md +15 -0
- package/src/native-harness/.res/docs/timeline-retrieval/0001-DESIGN/PLAN.md +107 -0
- package/src/native-harness/.res/docs/timeline-retrieval/0001-DESIGN/SPEC.md +114 -0
- package/src/native-harness/.res/docs/todos/11-19-TODO-auto_review-approve.md +24 -0
- package/src/native-harness/.res/docs/todos/11-20-TODO-user-entered-tool-code.md +23 -0
- package/src/native-harness/.res/docs/todos/11-21-TODO-node-resource-coordination.md +103 -0
- package/src/native-harness/.res/docs/todos/11-22-TODO-harness-m1-sequence.md +50 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0001-DESIGN/LOG.md +337 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0001-DESIGN/PLAN.md +76 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0001-DESIGN/SPEC.md +204 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0002-AMENDMENT-callback-policy/LOG.md +73 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0002-AMENDMENT-callback-policy/SPEC.md +64 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0003-DESIGN-attachment-tools/SPEC.md +58 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0004-DESIGN-reminder-tools/LOG.md +45 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0004-DESIGN-reminder-tools/PLAN.md +108 -0
- package/src/native-harness/.res/docs/tools-and-callbacks/0004-DESIGN-reminder-tools/SPEC.md +169 -0
- package/src/native-harness/.res/docs/web-tools/0001-DESIGN/SPEC.md +128 -0
- package/src/native-harness/.res/marketing-draft.md +22 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/README.md +285 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-1.md +19 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-10.md +138 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-11.md +148 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-12.md +172 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-13.md +194 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-14.md +233 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-15.md +249 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-16.md +265 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-17.md +279 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-18.md +293 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-19.md +307 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-2.md +29 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-20.md +317 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-21.md +327 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-3.md +40 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-4.md +59 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-5.md +69 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-6.md +79 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-7.md +89 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-8.md +102 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation/context-9.md +116 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/conversation.jsonl +49 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/doc.md +87 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/harness.py +289 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/local/harness copy 2.py +221 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/local/harness copy 3.py +287 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/local/harness copy.py +165 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/state.json +22 -0
- package/src/native-harness/.res/sandbox/1-simple-harness/system-prompt.md +2 -0
- package/src/native-harness/AGENTS.md +70 -0
- package/src/native-harness/ARCHITECTURE.md +249 -0
- package/src/native-harness/README.md +726 -0
- package/src/native-harness/bun.lock +26 -0
- package/src/native-harness/package.json +24 -0
- package/src/native-harness/src/capabilities/context/build.ts +59 -0
- package/src/native-harness/src/capabilities/context/instructions/agent-demo.md +11 -0
- package/src/native-harness/src/capabilities/context/instructions/agent.md +5 -0
- package/src/native-harness/src/capabilities/context/instructions/harness.md +7 -0
- package/src/native-harness/src/capabilities/context/load-instructions.ts +22 -0
- package/src/native-harness/src/capabilities/context/session.ts +92 -0
- package/src/native-harness/src/capabilities/model/attempt.ts +27 -0
- package/src/native-harness/src/capabilities/model/openrouter-stream.ts +72 -0
- package/src/native-harness/src/capabilities/model/openrouter.ts +62 -0
- package/src/native-harness/src/capabilities/model/runner.ts +116 -0
- package/src/native-harness/src/capabilities/model/scenario-attempt.ts +50 -0
- package/src/native-harness/src/capabilities/model/scenario-file.ts +125 -0
- package/src/native-harness/src/capabilities/model/scripted-error.ts +6 -0
- package/src/native-harness/src/capabilities/model/scripted.ts +81 -0
- package/src/native-harness/src/capabilities/model/usage.ts +15 -0
- package/src/native-harness/src/capabilities/tools/builtin/current-time.ts +28 -0
- package/src/native-harness/src/capabilities/tools/builtin/notify-channel.ts +17 -0
- package/src/native-harness/src/capabilities/tools/debug/index.ts +13 -0
- package/src/native-harness/src/capabilities/tools/debug/result.ts +12 -0
- package/src/native-harness/src/capabilities/tools/debug/test-echo.ts +16 -0
- package/src/native-harness/src/capabilities/tools/debug/test-fail.ts +14 -0
- package/src/native-harness/src/capabilities/tools/debug/test-wait.ts +19 -0
- package/src/native-harness/src/capabilities/tools/reminders/index.ts +75 -0
- package/src/native-harness/src/capabilities/tools/runtime/catalog.ts +103 -0
- package/src/native-harness/src/capabilities/tools/runtime/functions.ts +130 -0
- package/src/native-harness/src/capabilities/tools/runtime/invocations.ts +48 -0
- package/src/native-harness/src/capabilities/tools/testing/echo.ts +18 -0
- package/src/native-harness/src/capabilities/tools/testing/record.ts +47 -0
- package/src/native-harness/src/capabilities/tools/timeline/index.ts +41 -0
- package/src/native-harness/src/client.ts +18 -0
- package/src/native-harness/src/contracts/agent.ts +105 -0
- package/src/native-harness/src/contracts/config-permissions.ts +47 -0
- package/src/native-harness/src/contracts/context.ts +112 -0
- package/src/native-harness/src/contracts/events.ts +47 -0
- package/src/native-harness/src/contracts/input-limits.ts +7 -0
- package/src/native-harness/src/contracts/inspection.ts +22 -0
- package/src/native-harness/src/contracts/loop.ts +31 -0
- package/src/native-harness/src/contracts/model-execution.ts +83 -0
- package/src/native-harness/src/contracts/operator-controls.ts +106 -0
- package/src/native-harness/src/contracts/output.ts +13 -0
- package/src/native-harness/src/contracts/protocol.ts +320 -0
- package/src/native-harness/src/contracts/reminders.ts +132 -0
- package/src/native-harness/src/contracts/scenario.ts +42 -0
- package/src/native-harness/src/contracts/session-file.ts +19 -0
- package/src/native-harness/src/contracts/session.ts +184 -0
- package/src/native-harness/src/contracts/storage.ts +596 -0
- package/src/native-harness/src/contracts/timeline-retrieval.ts +40 -0
- package/src/native-harness/src/contracts/tools.ts +133 -0
- package/src/native-harness/src/governance/permissions/gate.ts +129 -0
- package/src/native-harness/src/governance/policy/resolve.ts +32 -0
- package/src/native-harness/src/index.ts +318 -0
- package/src/native-harness/src/interfaces/cli/chat.ts +83 -0
- package/src/native-harness/src/interfaces/cli/development.ts +145 -0
- package/src/native-harness/src/interfaces/cli/format-reply.ts +27 -0
- package/src/native-harness/src/interfaces/cli/listeners.ts +74 -0
- package/src/native-harness/src/interfaces/cli/main.ts +47 -0
- package/src/native-harness/src/interfaces/cli/scenario.ts +37 -0
- package/src/native-harness/src/interfaces/cli/serve.ts +21 -0
- package/src/native-harness/src/interfaces/cli/start.ts +106 -0
- package/src/native-harness/src/interfaces/client.ts +225 -0
- package/src/native-harness/src/interfaces/inspector/index.html +283 -0
- package/src/native-harness/src/interfaces/inspector/observe.ts +35 -0
- package/src/native-harness/src/interfaces/inspector/server.ts +56 -0
- package/src/native-harness/src/interfaces/inspector/state.ts +92 -0
- package/src/native-harness/src/interfaces/protocol/channel-changes.ts +153 -0
- package/src/native-harness/src/interfaces/protocol/framing.ts +47 -0
- package/src/native-harness/src/interfaces/protocol/functions.ts +87 -0
- package/src/native-harness/src/interfaces/protocol/in-process.ts +67 -0
- package/src/native-harness/src/interfaces/protocol/live-queue.ts +55 -0
- package/src/native-harness/src/interfaces/protocol/load.ts +60 -0
- package/src/native-harness/src/interfaces/protocol/local.ts +120 -0
- package/src/native-harness/src/interfaces/protocol/operator.ts +120 -0
- package/src/native-harness/src/interfaces/protocol/output.ts +59 -0
- package/src/native-harness/src/interfaces/protocol/server.ts +517 -0
- package/src/native-harness/src/interfaces/protocol/stdio-client.ts +119 -0
- package/src/native-harness/src/interfaces/protocol/stdio-server.ts +82 -0
- package/src/native-harness/src/interfaces/protocol/subscribe.ts +41 -0
- package/src/native-harness/src/interfaces/protocol/transfers.ts +146 -0
- package/src/native-harness/src/interfaces/web-chat/index.html +94 -0
- package/src/native-harness/src/interfaces/web-chat/server.ts +34 -0
- package/src/native-harness/src/kernel/channels.ts +405 -0
- package/src/native-harness/src/kernel/loop.ts +45 -0
- package/src/native-harness/src/runtime/config/development.ts +23 -0
- package/src/native-harness/src/runtime/config/managed.ts +2 -0
- package/src/native-harness/src/runtime/config/paths.ts +27 -0
- package/src/native-harness/src/runtime/reminder-timer.ts +42 -0
- package/src/native-harness/src/runtime/reminder-validation.ts +104 -0
- package/src/native-harness/src/runtime/reminders.ts +66 -0
- package/src/native-harness/src/state/storage/archive.ts +239 -0
- package/src/native-harness/src/state/storage/engine.ts +1013 -0
- package/src/native-harness/src/state/storage/inference.ts +124 -0
- package/src/native-harness/src/state/storage/memory-reminders.ts +78 -0
- package/src/native-harness/src/state/storage/memory.ts +341 -0
- package/src/native-harness/src/state/storage/policy-metadata.ts +32 -0
- package/src/native-harness/src/state/storage/reminder-archive.ts +63 -0
- package/src/native-harness/src/state/storage/reminder-change.ts +92 -0
- package/src/native-harness/src/state/storage/reminder-tables.ts +27 -0
- package/src/native-harness/src/state/storage/retrieval.ts +122 -0
- package/src/native-harness/src/state/storage/script-identity.ts +7 -0
- package/src/native-harness/src/state/storage/session-file.ts +85 -0
- package/src/native-harness/src/state/storage/sqlite-reminders.ts +134 -0
- package/src/native-harness/src/state/storage/sqlite.ts +625 -0
- package/src/native-harness/src/testing.ts +190 -0
- package/src/native-harness/src/util/config.ts +58 -0
- package/src/native-harness/src/util/json.ts +41 -0
- package/src/native-harness/src/util/message-position.ts +3 -0
- package/src/native-harness/src/util/reminder-schedule.ts +44 -0
- package/src/native-harness/src/util/schema.ts +40 -0
- package/src/native-harness/src/util/timeline-text.ts +72 -0
- package/src/native-harness/src/util/timeline-tool-names.ts +3 -0
- package/src/native-harness/test/agent.test.ts +130 -0
- package/src/native-harness/test/approval-gate.test.ts +255 -0
- package/src/native-harness/test/approval-protocol.test.ts +94 -0
- package/src/native-harness/test/boundaries.test.ts +18 -0
- package/src/native-harness/test/channel-controls.test.ts +322 -0
- package/src/native-harness/test/client-abort.test.ts +136 -0
- package/src/native-harness/test/config-policy.test.ts +301 -0
- package/src/native-harness/test/conformance/storage.ts +1141 -0
- package/src/native-harness/test/context.test.ts +177 -0
- package/src/native-harness/test/crash.test.ts +187 -0
- package/src/native-harness/test/debug-tools.test.ts +67 -0
- package/src/native-harness/test/development-cli.test.ts +67 -0
- package/src/native-harness/test/development.test.ts +171 -0
- package/src/native-harness/test/dispatch-evidence.test.ts +58 -0
- package/src/native-harness/test/e2e.test.ts +186 -0
- package/src/native-harness/test/external-notices.test.ts +101 -0
- package/src/native-harness/test/fixtures/approval-e2e.jsonl +4 -0
- package/src/native-harness/test/fixtures/crash-scenario.jsonl +5 -0
- package/src/native-harness/test/fixtures/development-lifecycle.jsonl +10 -0
- package/src/native-harness/test/fixtures/echo-scenario.jsonl +3 -0
- package/src/native-harness/test/fixtures/format2-schema.ts +27 -0
- package/src/native-harness/test/fixtures/format3-schema.ts +16 -0
- package/src/native-harness/test/fixtures/hold-scenario.jsonl +4 -0
- package/src/native-harness/test/fixtures/model-e2e.jsonl +3 -0
- package/src/native-harness/test/fixtures/storage-owner.ts +20 -0
- package/src/native-harness/test/format-reply.test.ts +10 -0
- package/src/native-harness/test/helpers/operator-view.ts +41 -0
- package/src/native-harness/test/helpers/scenario.ts +9 -0
- package/src/native-harness/test/helpers/session.ts +38 -0
- package/src/native-harness/test/helpers/stdio.ts +46 -0
- package/src/native-harness/test/inspector.test.ts +77 -0
- package/src/native-harness/test/listeners.test.ts +49 -0
- package/src/native-harness/test/loop.test.ts +88 -0
- package/src/native-harness/test/model-channel-double.test.ts +87 -0
- package/src/native-harness/test/model-crash.test.ts +62 -0
- package/src/native-harness/test/model-delivery-regressions.test.ts +55 -0
- package/src/native-harness/test/model-e2e.test.ts +71 -0
- package/src/native-harness/test/model-final-filter.test.ts +30 -0
- package/src/native-harness/test/model-large-reply.test.ts +28 -0
- package/src/native-harness/test/model-live-queue.test.ts +33 -0
- package/src/native-harness/test/model-runner.test.ts +117 -0
- package/src/native-harness/test/model-storage.test.ts +99 -0
- package/src/native-harness/test/model-stream-adapter.test.ts +26 -0
- package/src/native-harness/test/model-stream-public.test.ts +77 -0
- package/src/native-harness/test/notices.test.ts +64 -0
- package/src/native-harness/test/openrouter-config.test.ts +218 -0
- package/src/native-harness/test/operator-controls.test.ts +132 -0
- package/src/native-harness/test/output.test.ts +44 -0
- package/src/native-harness/test/owner-config.test.ts +64 -0
- package/src/native-harness/test/permissions-e2e.test.ts +68 -0
- package/src/native-harness/test/persistence.test.ts +236 -0
- package/src/native-harness/test/portability.test.ts +337 -0
- package/src/native-harness/test/protocol.test.ts +160 -0
- package/src/native-harness/test/reminder-clock.test.ts +61 -0
- package/src/native-harness/test/reminder-stdio.test.ts +140 -0
- package/src/native-harness/test/reminder-storage.test.ts +124 -0
- package/src/native-harness/test/scenario-jsonl.test.ts +112 -0
- package/src/native-harness/test/scripted.test.ts +92 -0
- package/src/native-harness/test/session-file.test.ts +51 -0
- package/src/native-harness/test/startup-channel-changes.test.ts +256 -0
- package/src/native-harness/test/stdio.test.ts +132 -0
- package/src/native-harness/test/storage-memory.test.ts +4 -0
- package/src/native-harness/test/storage-sqlite.test.ts +420 -0
- package/src/native-harness/test/suspension.test.ts +430 -0
- package/src/native-harness/test/timeline-retrieval.test.ts +211 -0
- package/src/native-harness/test/tools-catalog.test.ts +468 -0
- package/src/native-harness/test/tools-protocol.test.ts +418 -0
- package/src/native-harness/test/transfers.test.ts +94 -0
- package/src/native-harness/test/web-chat.test.ts +35 -0
- package/src/native-harness/tsconfig.json +20 -0
- package/src/observation/agent-event-bus.ts +44 -18
- package/src/observation/index.ts +1 -0
- package/src/operations/contracts.ts +11 -3
- package/src/operations/errors.ts +5 -0
- package/src/operations/stale-policy.ts +1 -1
- package/src/operations/supervisor.ts +34 -10
- package/src/orchestrator/acp-delivery.ts +68 -0
- package/src/orchestrator/assignments.ts +27 -0
- package/src/orchestrator/busy.ts +15 -0
- package/src/orchestrator/config.ts +41 -0
- package/src/orchestrator/consumer-api.ts +24 -0
- package/src/orchestrator/contracts.ts +71 -0
- package/src/orchestrator/durable-assignments.ts +111 -0
- package/src/orchestrator/native-delegation.ts +103 -0
- package/src/orchestrator/orchestrator.ts +318 -0
- package/src/orchestrator/permissions.ts +25 -0
- package/src/orchestrator/policy.ts +44 -0
- package/src/orchestrator/pool.ts +123 -0
- package/src/orchestrator/tool-descriptions.ts +11 -0
- package/src/permissions/acp.ts +18 -0
- package/src/permissions/arrival.ts +13 -0
- package/src/permissions/consumer-config.ts +19 -0
- package/src/permissions/conversation.ts +280 -0
- package/src/permissions/matcher.ts +85 -0
- package/src/permissions/outcome.ts +15 -0
- package/src/permissions/policy.ts +81 -0
- package/src/permissions/request.ts +26 -0
- package/src/persistence/activity-projection.ts +1 -0
- package/src/persistence/backend.ts +34 -1
- package/src/persistence/channels.ts +23 -0
- package/src/persistence/index.ts +4 -0
- package/src/persistence/protocol-method.ts +5 -0
- package/src/persistence/reminder-wake.ts +49 -0
- package/src/persistence/reminders.ts +385 -0
- package/src/persistence/sqlite-backend.ts +84 -6
- package/src/persistence/sqlite-channels.ts +65 -0
- package/src/persistence/sqlite-reminders.ts +85 -0
- package/src/persistence/sqlite-schema.ts +108 -3
- package/src/persistence/sqlite-worker-delivery.ts +374 -0
- package/src/persistence/sqlite-workers.ts +59 -0
- package/src/persistence/worker-delivery-contract.ts +104 -0
- package/src/persistence/worker-terminal-reason.ts +29 -0
- package/src/persistence/workers.ts +19 -0
- package/src/provider-notices.ts +137 -0
- package/src/repl/commands.ts +2 -2
- package/src/steering/combine.ts +3 -1
- package/src/steering/contracts.ts +11 -2
- package/src/steering/controller.ts +3 -2
- package/src/transport/acp-transport.ts +24 -14
- package/src/types.ts +15 -12
- package/src/updates.ts +14 -2
- package/src/wire-log.ts +1 -1
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# Native harness architecture
|
|
2
|
+
|
|
3
|
+
The [detailed architecture](.res/architecture/README.md) maps the current
|
|
4
|
+
implementation. This document defines the target layout and dependency
|
|
5
|
+
boundaries. The [work index](.res/docs/WORK.md) tracks proposed and reviewed work.
|
|
6
|
+
|
|
7
|
+
Status: implemented incrementally. The harness runs sessions in memory or uses
|
|
8
|
+
SQLite for durable sessions. See the [package README](README.md) for commands
|
|
9
|
+
and public behavior.
|
|
10
|
+
Existing modules follow the grouped layout below; future folders are created
|
|
11
|
+
only as their implementation begins.
|
|
12
|
+
An experimental protocol subset and typed client now reuse the same
|
|
13
|
+
session assembly as development startup. Execution runs on the session storage
|
|
14
|
+
contract with memory and SQLite adapters; the README lists supported operations
|
|
15
|
+
and differences from the full protocol spec.
|
|
16
|
+
Both in-process and newline-delimited stdio transports are implemented. Stdio
|
|
17
|
+
adds no listeners or execution features; the host retains process ownership.
|
|
18
|
+
Channel lifecycle and targeted turn controls compose with session lifecycle in
|
|
19
|
+
the scheduler and storage; protocol adapters expose those decisions without
|
|
20
|
+
owning them. See [decision 0014](.res/decisions/0014-channel-controls-contract.md).
|
|
21
|
+
Managed config, durable policy references, the execution gate and one-time
|
|
22
|
+
approvals follow [decision 0016](.res/decisions/0016-configuration-permissions.md),
|
|
23
|
+
with OpenRouter references in [decision 0017](.res/decisions/0017-openrouter-managed-config.md)
|
|
24
|
+
and durable dispatch evidence in [decision 0018](.res/decisions/0018-tool-dispatch-evidence.md).
|
|
25
|
+
Model call attempts, durable response commits, delivery and recovery follow
|
|
26
|
+
[decision 0019](.res/decisions/0019-model-execution.md).
|
|
27
|
+
The detailed
|
|
28
|
+
[project spec](../../.res/somelogs.md/11-11+/harness/11-11-SPEC-harness-project.md)
|
|
29
|
+
and [v1 spec](../../.res/somelogs.md/11-11+/harness/11-11-SPEC-harness-v1.md)
|
|
30
|
+
define the broader work.
|
|
31
|
+
|
|
32
|
+
## Entity and execution model
|
|
33
|
+
|
|
34
|
+
A session is one agent entity: configuration, system prompt, policies, timeline,
|
|
35
|
+
shared state and channels. Two sessions are separate entities. One process opens
|
|
36
|
+
and locks one session; its channels can run concurrently.
|
|
37
|
+
|
|
38
|
+
A channel is one conversation with a derived context view and its own inbox.
|
|
39
|
+
The inner loop calls the model, executes requested tools, and appends paired
|
|
40
|
+
results. An eligible input or explicit notice starts a turn on an idle channel
|
|
41
|
+
or steers its running turn at the next inference boundary. The pending-input
|
|
42
|
+
check and turn completion occur in one storage transaction. Ordinary shared
|
|
43
|
+
events become visible when context is next built. The channel's eligibility
|
|
44
|
+
depends on session and channel lifecycle.
|
|
45
|
+
|
|
46
|
+
The host owns the process and transport. The harness owns channel state and
|
|
47
|
+
turn execution, which can continue without a participant observing the channel.
|
|
48
|
+
The host merges focused channel observation and tracked recovery with live
|
|
49
|
+
events at a per-channel revision boundary. Attach-only preserves the channel
|
|
50
|
+
lifecycle. History and catch-up use explicit pages. SQLite serves the pages
|
|
51
|
+
through indexed entry ranges and looks up reserved reply IDs by sequence.
|
|
52
|
+
Clean startup and focused reads skip the model-call history blob. Recovery of
|
|
53
|
+
an abandoned running turn reads it once to close attempts.
|
|
54
|
+
[Operator controls](.res/docs/operator-controls/0001-DESIGN/SPEC.md)
|
|
55
|
+
|
|
56
|
+
The turn state machine is pure:
|
|
57
|
+
`idle → building → calling → running_tools → building → … → idle`, with an
|
|
58
|
+
interrupting path. A separate runner performs I/O through contracts.
|
|
59
|
+
|
|
60
|
+
## Small kernel, explicit contracts
|
|
61
|
+
|
|
62
|
+
The kernel coordinates extension points, pairs tool results with calls, saves
|
|
63
|
+
progress, emits lifecycle events and honors abort signals. Rendering, provider
|
|
64
|
+
formats, retries, permission rules, compaction and specific tools belong outside
|
|
65
|
+
it. Judgment goes to inference; policy goes to code.
|
|
66
|
+
|
|
67
|
+
Completed assistant text is a message event independent of turn completion. A
|
|
68
|
+
notice that extends a turn does not suppress an already produced answer. The
|
|
69
|
+
current loop emits messages and tool activity through contracts; the scheduler
|
|
70
|
+
emits turn lifecycle events. Hosts and protocol adapters subscribe outside the
|
|
71
|
+
kernel. `src/index.ts` assembles sessions without starting servers or reading input.
|
|
72
|
+
|
|
73
|
+
| Extension point | Responsibility |
|
|
74
|
+
| --- | --- |
|
|
75
|
+
| Model client | Neutral requests in, neutral streaming events out; abortable |
|
|
76
|
+
| Model chain | Retries and model-call logging |
|
|
77
|
+
| Context pipeline | Ordered pure stages producing the next request |
|
|
78
|
+
| Renderers | Inbox items to neutral messages, registered by kind |
|
|
79
|
+
| Compactors | Reduce context with an explicit compaction marker |
|
|
80
|
+
| Context store | Versioned context log, load, append, compaction, export and import |
|
|
81
|
+
| Tool providers and registry | List definitions and execute configured, MCP and own tools |
|
|
82
|
+
| Tool chain | Validation, permission gate, timeout, truncation and usage |
|
|
83
|
+
| Permission gate and policy engine | Resolve rights and allow, deny or ask for each call |
|
|
84
|
+
| Guards | Limit calls, unattended turns and usage |
|
|
85
|
+
| Event sources and lifecycle events | Feed inboxes and report execution |
|
|
86
|
+
| Function registry | Host implementations of configured function tools |
|
|
87
|
+
| History sources | Search and read past conversations |
|
|
88
|
+
| Execution port | Prepare every command-tool and stdio MCP process |
|
|
89
|
+
|
|
90
|
+
Each extension point has a documented contract and a conformance suite.
|
|
91
|
+
Implementations compose through chains, pipelines and registries. Keep durable
|
|
92
|
+
per-channel state in the store, with the actor holding its working state; adapters
|
|
93
|
+
must not own hidden channel state. Expected failures are typed values, converted
|
|
94
|
+
into tool results or turn outcomes.
|
|
95
|
+
|
|
96
|
+
## Context and identity
|
|
97
|
+
|
|
98
|
+
Requests use provider-neutral data; provider rendering and parsing stay at the
|
|
99
|
+
model-client edge. Preserve opaque reasoning data unchanged for the same provider.
|
|
100
|
+
The consumer's system prompt stays verbatim. Sender tags, digests and tool hints
|
|
101
|
+
are conversation content.
|
|
102
|
+
|
|
103
|
+
The durable session timeline holds inputs, responses and tool results with
|
|
104
|
+
channel, turn and sender attribution. At each inference boundary, the session
|
|
105
|
+
context builder reads a bounded set of records at one committed revision. It
|
|
106
|
+
preserves required active inputs, prefers recent local history, and reserves
|
|
107
|
+
space for activity from other channels. Native tool exchanges stay together.
|
|
108
|
+
Other turns are rendered as attributed history. Tool definitions travel
|
|
109
|
+
separately and count toward the request budget. Retries reuse the assembled
|
|
110
|
+
request, and later inferences read a newer revision when work has committed.
|
|
111
|
+
|
|
112
|
+
The development inspector is a separate reader. Change notifications perform
|
|
113
|
+
no timeline reads. The browser refreshes status and the visible view, and
|
|
114
|
+
requests older Timeline pages and durable model-call summaries on demand.
|
|
115
|
+
Live Context is a bounded session-wide preview. The Channels tab can show
|
|
116
|
+
recent captured requests with their actual revision and trim counts. The
|
|
117
|
+
current model-call store still reads its accumulated model-state record for
|
|
118
|
+
accounting queries and writes.
|
|
119
|
+
|
|
120
|
+
The position and digest design below describes future work.
|
|
121
|
+
|
|
122
|
+
The entity has a shared append-only timeline, with provenance and policy scope on
|
|
123
|
+
each event. Channels keep positions in it and receive scoped digests of what
|
|
124
|
+
happened elsewhere. Shared state is a projection of timeline events. Managed
|
|
125
|
+
member channels receive digests through a prepare/delivered receipt handshake.
|
|
126
|
+
|
|
127
|
+
The permission gate enforces rights on every tool execution, independently of
|
|
128
|
+
which definitions the model sees. Scope filtering limits incoming information;
|
|
129
|
+
v1 does not guarantee confidentiality of the text the model sends across channels.
|
|
130
|
+
|
|
131
|
+
## Intended layout
|
|
132
|
+
|
|
133
|
+
Create folders as their implementation begins. Related modules are grouped under
|
|
134
|
+
`src/`; groups organize files without introducing additional abstraction layers.
|
|
135
|
+
The kernel and feature modules remain separate from contracts. Grouping does not
|
|
136
|
+
relax the dependency boundaries below.
|
|
137
|
+
|
|
138
|
+
```text
|
|
139
|
+
src/native-harness/
|
|
140
|
+
README.md, ARCHITECTURE.md, AGENTS.md
|
|
141
|
+
package.json, bun.lock, tsconfig.json
|
|
142
|
+
.res/decisions/ decision records, created when needed
|
|
143
|
+
.res/sandbox/ learning experiments
|
|
144
|
+
src/
|
|
145
|
+
index.ts public session API
|
|
146
|
+
contracts/ neutral types and documented interfaces
|
|
147
|
+
kernel/ session, channel, turn machine, runner, lifecycle
|
|
148
|
+
capabilities/
|
|
149
|
+
model/ clients, middleware chains, later profiles
|
|
150
|
+
tools/ registry, middleware chains, providers
|
|
151
|
+
context/ pipeline, renderers, compactors, context stores
|
|
152
|
+
governance/
|
|
153
|
+
permissions/ permission-gate adapters
|
|
154
|
+
policy/ resolution, permission patterns, presets
|
|
155
|
+
guards/ execution limits
|
|
156
|
+
state/
|
|
157
|
+
identity/ timeline, positions, digests, state, members
|
|
158
|
+
history/ own-channel and remote history sources
|
|
159
|
+
storage/ SQLite identity core, export/import bundles
|
|
160
|
+
runtime/
|
|
161
|
+
config/ schema, loading, versions
|
|
162
|
+
events/ inbox event sources
|
|
163
|
+
execution/ local and prefix execution adapters
|
|
164
|
+
usage/ usage ledger by purpose
|
|
165
|
+
interfaces/
|
|
166
|
+
cli/ main.ts and CLI commands
|
|
167
|
+
protocol/ JSON-RPC server/client and transports
|
|
168
|
+
client.ts public HarnessClient and transport exports
|
|
169
|
+
testing/ scripted client, golden helpers, conformance suites
|
|
170
|
+
test/ unit tests, scenarios, golden requests
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Phase 2 adds memory consolidation and the members' MCP server. Dedicated optional
|
|
174
|
+
entry points such as `openai-compatible.ts` and `mcp.ts` keep heavy dependencies
|
|
175
|
+
out of the core import path.
|
|
176
|
+
|
|
177
|
+
## Instructions, tools and consumer configuration
|
|
178
|
+
|
|
179
|
+
Consumers configure the system prompt, tools and policy. Harness-owned
|
|
180
|
+
instructions live beside the capability that uses them, such as context
|
|
181
|
+
construction under `src/capabilities/context/`; there is no separate root
|
|
182
|
+
instructions module. Keep each native tool's definition and implementation
|
|
183
|
+
together in its owning capability. The tool registry exposes the selected
|
|
184
|
+
definitions and routes execution through contracts.
|
|
185
|
+
|
|
186
|
+
Entry points assemble configuration and implementations. The development CLI
|
|
187
|
+
uses the bundled agent instructions or an explicitly selected Markdown file
|
|
188
|
+
as its configured system text. Bundled Markdown lives under
|
|
189
|
+
`src/capabilities/context/instructions/`, with separate files for the agent,
|
|
190
|
+
the harness, and the agent demo. Custom instruction paths belong to the
|
|
191
|
+
CLI. Durable session configuration keeps the resolved agent text.
|
|
192
|
+
|
|
193
|
+
Model adapters translate
|
|
194
|
+
tool definitions into the provider's native tools field; definitions do not need
|
|
195
|
+
to be duplicated in the system prompt. The kernel receives prepared inputs and
|
|
196
|
+
coordinates execution without owning prompt text or specific tools.
|
|
197
|
+
|
|
198
|
+
Consumer functions (decision 0021) are data in a catalog supplied at open, under
|
|
199
|
+
`src/capabilities/tools/`. Session assembly builds each inference's offered
|
|
200
|
+
list from it and routes a call through the same permission gate as a built-in.
|
|
201
|
+
Execution is a `FunctionExecutor` contract. The protocol server implements it
|
|
202
|
+
as a request to the host on the same connection (`src/interfaces/protocol/functions.ts`).
|
|
203
|
+
The kernel knows neither callbacks nor result storage: it sees a tool result
|
|
204
|
+
with an optional outcome. Bytes of a large result stay with the process that
|
|
205
|
+
produced them; the harness stores only the reference.
|
|
206
|
+
|
|
207
|
+
Coding workers and their orchestration belong to the consumer, initially
|
|
208
|
+
acp-client. The harness has no built-in delegation subsystem. A consumer can
|
|
209
|
+
expose workers through configured tools and describe their use in its system
|
|
210
|
+
prompt; the harness handles those through its ordinary tool and event contracts.
|
|
211
|
+
|
|
212
|
+
## Dependency boundaries
|
|
213
|
+
|
|
214
|
+
- `src/contracts/` imports nothing. `src/kernel/` imports only contracts.
|
|
215
|
+
- Feature modules depend on contracts, never another module's internals. Shared
|
|
216
|
+
helpers may live in a small `util/` depending only on contracts. Composition is
|
|
217
|
+
performed at entry points through the contracts.
|
|
218
|
+
- Harness code never imports acp-client modules outside this directory. External
|
|
219
|
+
package dependencies belong at the appropriate adapter edge and are listed in
|
|
220
|
+
the README.
|
|
221
|
+
- Production acp-client integration belongs in `src/native/` and imports only
|
|
222
|
+
public harness entry points. Hosts use the client interface, never kernel internals.
|
|
223
|
+
- Dependency checks must be automated in CI as implementation begins; no such
|
|
224
|
+
checker has been added yet. Files over about 400 lines or modules over about
|
|
225
|
+
2,000 need a documented reason in review.
|
|
226
|
+
|
|
227
|
+
## Hosts, storage and verification
|
|
228
|
+
|
|
229
|
+
The harness owns model execution, tool dispatch, and storage. Providers resolve
|
|
230
|
+
credentials at runtime through configured environment references. Hosts use the
|
|
231
|
+
public client through stdio or in-process transports. The acp-client host and
|
|
232
|
+
controller are implemented on the integration review branch. Configured host
|
|
233
|
+
functions are a [proposed extension](.res/docs/tools-and-callbacks/0001-DESIGN/SPEC.md).
|
|
234
|
+
|
|
235
|
+
Durable sessions use SQLite through `bun:sqlite`. The memory adapter shares the
|
|
236
|
+
same lifecycle rules and lasts for the process. Logical archive version 4
|
|
237
|
+
carries model-call summaries and script reservations inside session-file
|
|
238
|
+
envelope version 1. Export/import copies the session and portable configuration.
|
|
239
|
+
Continuous backup and waking stopped processes for background work are deferred.
|
|
240
|
+
|
|
241
|
+
Offline scripted scenarios verify turns, steering, interruption, deadlines, and
|
|
242
|
+
recovery. Storage conformance exercises both adapters. Protocol tests exercise
|
|
243
|
+
in-process and stdio transports. Live model evaluations are separate and opt-in.
|
|
244
|
+
|
|
245
|
+
Build working behavior incrementally rather than completing modules one by one.
|
|
246
|
+
Each increment introduces only the contracts and implementations it needs, with
|
|
247
|
+
appropriate offline checks. Contract decisions precede dependent implementations;
|
|
248
|
+
bounded feature work can be delegated once its direction and contracts are clear.
|
|
249
|
+
Use the detailed specs later to check gaps and complete the intended system.
|