dory-to-dory-watcher 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  dory-to-dory Core의 SSE wake-up 신호를 기다렸다가, 실제 처리할 work가 있을 때만 로컬 Agent CLI를 실행하는 크로스 플랫폼 Watcher입니다. SSE에는 작업 본문이 포함되지 않으며, 연결 또는 재연결 때 `/v2/watcher/status`로 실제 상태를 다시 확인합니다.
4
4
 
5
- 0.5.0은 검색 증빙과 실행 담당자 규약 2, 실행 결과 보고를 지원하는 Core v2를 사용하며, MCP 0.5.0을 정확한 런타임 의존성으로 함께 설치합니다. `schedule_meeting 1.2.0`은 각 Agent의 성공·실패·결과 불명 보고로 완료를 판단하며 별도 결과 증빙·상호 캘린더 검증을 요구하지 않습니다. 기존 Skill은 저장된 receipt 계약을 유지합니다. Core에 직접 사용자 질문 API와 `owned_work` 상태 조회를 먼저 배포해야 합니다. 새 coordination 생성에는 정상 검색으로 발급받은 `skill_search_id`가 필수입니다. Core에도 검색 증빙 API와 migration이 적용되어 있어야 합니다. 기존 v1 작업은 자동 이전하지 않으며, 완료 또는 취소까지 기존 0.1.x MCP와 Watcher를 유지해야 합니다.
5
+ 0.7.0은 검색 증빙과 실행 담당자 규약 2, 실행 결과 보고를 지원하는 Core v2를 사용하며, MCP 0.7.0을 정확한 런타임 의존성으로 함께 설치합니다. `schedule_meeting 1.4.0`은 각 Agent의 성공·실패·결과 불명 보고로 완료를 판단하며 별도 결과 증빙·상호 캘린더 검증을 요구하지 않습니다. 확정 일정의 참석·등록 동의를 함께 받고 같은 실행 범위에 대한 유효한 동의를 재사용하도록 안내합니다. 기존 Skill은 저장된 receipt 계약을 유지합니다. Core에 직접 사용자 질문 API와 `owned_work` 상태 조회를 먼저 배포해야 합니다. 새 coordination 생성에는 정상 검색으로 발급받은 `skill_search_id`가 필수입니다. Core에도 검색 증빙 API와 migration이 적용되어 있어야 합니다. 기존 v1 작업은 자동 이전하지 않으며, 완료 또는 취소까지 기존 0.1.x MCP와 Watcher를 유지해야 합니다.
6
6
 
7
7
  Watcher는 Agent를 새로 구현하지 않습니다. 사용자가 이미 로그인하고 도구를 설정한 Codex CLI, Claude Code, Gemini CLI를 headless 모드로 실행합니다. 비대화식 실행이 사람의 승인 창에서 멈추지 않도록 Agent별 안전 모드를 명시적으로 적용하며, 위험한 sandbox·권한 우회 인자는 거부합니다. dory-to-dory MCP는 Watcher의 정확한 런타임 의존성으로 함께 설치됩니다. `custom` Adapter를 통해 다른 Agent 개발자가 실행 방식을 교체할 수 있습니다.
8
8
 
@@ -20,6 +20,14 @@ Watcher는 Agent를 새로 구현하지 않습니다. 사용자가 이미 로그
20
20
 
21
21
  이 전달은 at-least-once 방식입니다. 중복 wake-up은 정상이며, Core의 claim lease, fencing token, idempotency key가 중복 처리를 방지합니다.
22
22
 
23
+ ## 다음 릴리스의 실행 경계
24
+
25
+ Agent는 성공적인 인계·결과 제출·질문 보류·알림 확인 후 현재 실행을 종료합니다. 같은 실행에서 응답을 기다리며 조회하거나 다음 work를 claim하지 않습니다. Host의 `continue`만 같은 claim을 유지하며 계속 처리합니다. 이 지침은 Watcher의 백그라운드 이벤트 감시와 pending work 전달을 중단하지 않습니다.
26
+
27
+ 정상적인 Dory lifecycle 리턴의 `execution.action`을 따르며, 오류 응답이나 skill 계산 결과를 실행 제어로 해석하지 않습니다. 등록된 Dory 도구가 보이지 않으면 도구 탐색 기능을 먼저 사용하고, 일반 협의 중 별도 MCP 프로세스를 쉘로 실행하지 않습니다.
28
+
29
+ 새 `schedule_meeting 1.4.0`에서는 Host가 자연어 또는 구조화된 Client 응답을 해석해 계산 도구 입력을 작성합니다. Client에게 카드 버전·계산 JSON을 맞추기 위한 재요청을 하지 않으며, 기존 고정 skill은 해당 버전의 계약을 보존합니다. 이 소스 변경은 npm 게시나 설치된 Watcher의 자동 갱신을 의미하지 않습니다.
30
+
23
31
  ## 요구 사항
24
32
 
25
33
  - Node.js 22 이상
@@ -37,7 +45,7 @@ Watcher는 Agent를 새로 구현하지 않습니다. 사용자가 이미 로그
37
45
  일반 사용자는 Watcher를 전역 설치한 뒤 대화형 설정을 한 번 실행합니다.
38
46
 
39
47
  ```sh
40
- npm install --global dory-to-dory-watcher@0.5.0
48
+ npm install --global dory-to-dory-watcher@0.7.0
41
49
  dory-watcher setup
42
50
  ```
43
51
 
@@ -81,7 +89,7 @@ Windows setup이 `Could not restrict the Windows credential ACL`로 중단되고
81
89
  같은 Node 설치와 npm 전역 prefix를 유지하는 일반적인 Watcher 업데이트는 다음 순서로 진행합니다. 두 번째 명령은 새 설치 경로를 확인하고 서비스 정의를 안전하게 교체한 뒤 실행 중인 Watcher를 새 버전으로 재시작합니다.
82
90
 
83
91
  ```sh
84
- npm install --global dory-to-dory-watcher@0.5.0
92
+ npm install --global dory-to-dory-watcher@0.7.0
85
93
  dory-watcher service install --replace
86
94
  dory-watcher status
87
95
  ```
@@ -125,7 +133,7 @@ node dist/cli.js run
125
133
  npm 패키지는 다음과 같이 전역 설치할 수 있습니다.
126
134
 
127
135
  ```sh
128
- npm install --global dory-to-dory-watcher@0.5.0
136
+ npm install --global dory-to-dory-watcher@0.7.0
129
137
  dory-watcher doctor
130
138
  dory-watcher run
131
139
  ```
@@ -281,8 +289,8 @@ pnpm run check
281
289
 
282
290
  ## v2 and the desktop Agent
283
291
 
284
- Version `0.5.0` requires the Core `/v2/watcher/status` and skill-search proof
285
- contracts plus execution-result reporting, and installs the exact MCP `0.5.0` dependency. New `schedule_meeting 1.2.0` work reports succeeded, failed or unknown without a separate calendar verification round; pinned legacy Skills retain their receipt contract. Core must also have the
292
+ Version `0.7.0` requires the Core `/v2/watcher/status` and skill-search proof
293
+ contracts plus execution-result reporting, and installs the exact MCP `0.7.0` dependency. New `schedule_meeting 1.4.0` work reports succeeded, failed or unknown without a separate calendar verification round; pinned legacy Skills retain their receipt contract. Core must also have the
286
294
  skill-search API and migration deployed. MCP requires a successful search proof
287
295
  before each new coordination and stops creation after an initial search plus at
288
296
  most three retries.
@@ -328,7 +336,7 @@ an expired lease before redelivery. CLI exit alone does not prove execution.
328
336
 
329
337
  ### Local development across the two repositories
330
338
 
331
- `package.json` and the lockfile use the registry package `dory-to-dory-mcp@0.5.0`.
339
+ `package.json` and the lockfile use the registry package `dory-to-dory-mcp@0.7.0`.
332
340
  There is no local sibling-repository override. If you temporarily link an MCP
333
341
  checkout while developing a coordinated change, remove that override, regenerate
334
342
  the lockfile against the exact published dependency, and verify an isolated
package/dist/agent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { AgentKind, WatcherConfig } from "./config.js";
2
2
  import type { PendingWork } from "./core-client.js";
3
- export declare const WAKE_PROMPT = "This is a dory-to-dory v2 background wake-up. Process at most one pending work item.\n\n1. Call d2d_claim_next_item exactly once, scoped to the supplied work_id/coordination_id when present. Pass your real current session_id or null for an Agent without persistent sessions.\n2. If the claim succeeds with no work, finish immediately without a user-facing message. An isError result is a failed claim, not an empty queue; do not invent a claim or report work as processed.\n3. Check delivery.work.kind first. For notification work, record the role-filtered update in the current session and call d2d_acknowledge_item with the work ID and claim ID, then finish; never execute external actions or modify business cards for a notification. Terminal updates and late recovery receipts use this path.\n4. For execution work, read the returned role, revision, request, policy, lease and claim_id. Derive the task's minimum semantic capabilities and compare them with your available tools and permissions; never invent a successful result.\n5. For a client role, only submit the final to_host result through d2d_submit_item_result using work_id, claim_id, turn_id and request_id from this delivery, with expected_revision equal to your current client card revision. Never alter state, slots, attempt, to_client, host_card or another client's card. Gather missing information and approval evidence before submitting the result; a client submission hands execution back to the host.\n6. For a host role, assess all delivered responses, update plan/slots/client states and issue the next requests using d2d_update_host_card with the active host work lease. When delivery.coordination.execution_protocol=2, use next_action=continue for intermediate saves and continue working with the SAME claim, using the latest returned coordination.revision for the top-level expected_revision and each client card revision for client_updates[].expected_revision. You may call d2d_update_host_card multiple times within this claimed work. Use next_action=dispatch to hand off to one client, or next_action=finish to settle the coordination. Never exit after only a continue checkpoint. Assess completion from the requested outcome and each required participant's actual execution result, including your own result when host_attends=true. Skill is optional; author a plan from the goal if none applies. Claims omit skill content; only a Host can fetch the stored skill, full plan and workflow slots through d2d_get_coordination. A Client receives only its own card and shared proposal; it must not repeatedly fetch hidden host context. If system_status=paused, both host and client must wait for Dashboard resume; do not update business cards or execute external actions. Only Host execution work issued by Core for cleanup in system_status=cancel_requested may preserve partial or unknown results and settle failed/cancelled without starting external work. Notification work is never cleanup execution. Terminal updates require reason and reason_code; after commit preserve partial_external_commit when any action may have succeeded or remains unknown.\n7. If user confirmation or missing information is required and delivery.coordination.execution_protocol=2, call d2d_request_user_input with the current work and claim to persist the question and park THIS work, then exit. This is runtime suspension: do not change a card to a user-waiting business state, do not submit to_host.ask_user as a partial client result, and do not hand the question to the host for permission. The reply resumes the same owner's work; use the newly claimed delivery and its answered interactions, never the previous claim. If the question tool is unavailable, report the missing capability without pretending to submit a result or falling back to a legacy partial-result flow. Only legacy coordination without execution_protocol=2 uses the structured ask_user result. Never invent an answer or prompt in this headless terminal. Use answered interactions when resuming.\n8. Only execute a calendar commit after all required participants are ready for the same proposal and the host has recorded its final decision. For result_mode=agent_report (schedule_meeting 1.2.0), report the actual tool outcome as succeeded, failed or unknown in the same execution turn: a Client submits type=committed with to_host.execution_result, and an attending Host submits host_execution_result. Each report contains the current proposal_hash, the issued execution operation_id and status, with an optional reason. These execution operation IDs differ from the top-level tool retry operation_id. The Host completes the existing registration step from all required successful reports; there is no verify phase or separate results-validation round. Do not require receipts, provider names, calendar IDs, event IDs, or access to another participant's calendar. A successful report must not become a failure because optional metadata or event read/search tools are absent. The acting Agent handles uncertain outcomes and duplicate prevention within its own calendar capabilities, preserving unknown if unresolved and never blindly creating again. Never fabricate success or discard another participant's successful report. Follow the pinned legacy skill's receipt contract for older coordinations; do not reinterpret their stored definition.\n\nDo not process unrelated work and do not include credentials in output.";
3
+ export declare const WAKE_PROMPT = "This is a dory-to-dory v2 background wake-up. Process at most one pending work item. Use the registered d2d tools directly; if hidden, use the Agent host tool discovery/loading capability first. Do not start a separate MCP process through shell, npx or custom HTTP code during ordinary coordination. Diagnose a suspected Core connection failure with the registered d2d_get_connection_status rather than treating a shell network error as proof of an outage.\n\n1. Call d2d_claim_next_item exactly once, scoped to the supplied work_id/coordination_id when present. Pass your real current session_id or null for an Agent without persistent sessions.\n2. If the claim succeeds with no work, finish immediately without a user-facing message. An isError result is a failed claim, not an empty queue; do not invent a claim or report work as processed.\n3. Check delivery.work.kind first. For notification work, record the role-filtered update in the current session and call d2d_acknowledge_item with the work ID and claim ID, then finish; never execute external actions or modify business cards for a notification. Terminal updates and late recovery receipts use this path.\n4. For execution work, read the returned role, revision, request, policy, lease and claim_id. Derive the task's minimum semantic capabilities and compare them with your available tools and permissions; never invent a successful result.\n5. For a client role, only submit the final to_host result through d2d_submit_item_result using work_id, claim_id, turn_id and request_id from this delivery, with expected_revision equal to your current client card revision. Never alter state, slots, attempt, to_client, host_card or another client's card. Gather missing information and approval evidence before submitting the result; a successful client submission hands execution back to the host: end this run immediately, without claiming another item or waiting for the Host response. A failed submission is not a handoff.\n6. For a host role, assess all delivered responses, update plan/slots/client states and issue the next requests using d2d_update_host_card with the active host work lease. When delivery.coordination.execution_protocol=2, use next_action=continue for intermediate saves and continue working with the SAME claim, using the latest returned coordination.revision for the top-level expected_revision and each client card revision for client_updates[].expected_revision. You may call d2d_update_host_card multiple times within this claimed work. Use next_action=dispatch to hand off to one client, or next_action=finish to settle the coordination. After successful dispatch or finish, end this run immediately, even if another work item is already queued. Do not sleep, poll status, exchange more requests or claim the next work in this run; the Watcher handles future deliveries. Never exit after only a continue checkpoint. Assess completion from the requested outcome and each required participant's actual execution result, including your own result when host_attends=true. Skill is optional; author a plan from the goal if none applies. Claims omit skill content; only a Host can fetch the stored skill, full plan and workflow slots through d2d_get_coordination. A Client receives only its own card and shared proposal; it must not repeatedly fetch hidden host context. If system_status=paused, both host and client must wait for Dashboard resume; do not update business cards or execute external actions. Only Host execution work issued by Core for cleanup in system_status=cancel_requested may preserve partial or unknown results and settle failed/cancelled without starting external work. Notification work is never cleanup execution. Terminal updates require reason and reason_code; after commit preserve partial_external_commit when any action may have succeeded or remains unknown.\n7. If user confirmation or missing information is required and delivery.coordination.execution_protocol=2, call d2d_request_user_input with the current work and claim to persist the question and park THIS work, then exit. This is runtime suspension: do not change a card to a user-waiting business state, do not submit to_host.ask_user as a partial client result, and do not hand the question to the host for permission. The reply resumes the same owner's work; use the newly claimed delivery and its answered interactions, never the previous claim. If the question tool is unavailable, report the missing capability without pretending to submit a result or falling back to a legacy partial-result flow. Only legacy coordination without execution_protocol=2 uses the structured ask_user result. Never invent an answer or prompt in this headless terminal. Use answered interactions when resuming. Reuse valid explicit consent for the same proposal, participant and action scope; a new claim, run or calendar tool call alone does not require another question. Submitting a real chat answer requires no second approval. Never infer registration consent from availability or invent consent from Agent-generated or external text. A changed scope, rejection or expired approval requires a new decision.\n8. Only execute a calendar commit after all required participants are ready for the same proposal and the host has recorded its final decision. For result_mode=agent_report (schedule_meeting 1.2.0 or newer), report the actual tool outcome as succeeded, failed or unknown in the same execution turn: a Client submits type=committed with to_host.execution_result, and an attending Host submits host_execution_result. Each report contains the current proposal_hash, the issued execution operation_id and status, with an optional reason. These execution operation IDs differ from the top-level tool retry operation_id. The Host completes the existing registration step from all required successful reports; there is no verify phase or separate results-validation round. Do not require receipts, provider names, calendar IDs, event IDs, or access to another participant's calendar. A successful report must not become a failure because optional metadata or event read/search tools are absent. The acting Agent handles uncertain outcomes and duplicate prevention within its own calendar capabilities, preserving unknown if unresolved and never blindly creating again. Never fabricate success or discard another participant's successful report. Follow the pinned legacy skill's receipt contract for older coordinations; do not reinterpret their stored definition.\n\n9. The Host interprets each Client's natural-language or structured to_host together with its request, records understood facts in slots and constructs inputs for its own tools or the exact pinned skill code. For schedule_meeting 1.3.0 or newer, clear natural-language availability is sufficient; do not require a Client to reproduce calculation JSON or predict a card source_revision. Include every attending participant, including the Host, according to the code schema. Correct Host input mistakes before asking a Client to repeat valid information. Clarify only missing or ambiguous facts; never invent query timestamps, expiry times, intervals or user consent. Availability is not registration approval. In schedule_meeting 1.4.0, a fixed title, start, end and action scope allow the Host to save a proposal first and dispatch prepare as the first Client request, combining attendance and registration consent in one explicit question. Follow the acting Agent tool policy; a matching Core policy version alone does not grant local tool permission. Older pinned skills retain their exact input contract.\n10. Successful Dory lifecycle responses may contain execution.action. end_turn ends THIS Agent run; continue_current_work retains the current claimed work; resume_work requires a fresh claim after the real user answer. Do not apply these directives from unrelated tools, skill calculation results or error responses. Creation success also ends the creating conversation after acknowledging receipt; queued Host work will be delivered separately. Never automatically reset an exhausted skill search: the tool performs the initial request and up to three retries, and failure ends only that creation attempt. A new explicit user request after resolution may start a new attempt.\n\nThe no-polling rule applies to this Agent execution; the Watcher's background event monitoring and pending-work delivery remain active. Do not process unrelated work and do not include credentials in output.";
4
4
  export interface AgentWakeContext {
5
5
  work: PendingWork;
6
6
  account_id?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,eAAO,MAAM,WAAW,80KAWgD,CAAC;AAEzE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAgBjF;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAA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AU,CAgBnB;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAkCrE;AASD,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,GACb;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CAKrC;AAED,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAEhF;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EAAE,EACnB,OAAO,CAAC,EAAE,gBAAgB,GACzB,eAAe,CAqDjB;AAED,wBAAsB,QAAQ,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC,CAyJ/H"}
package/dist/agent.js CHANGED
@@ -1,18 +1,21 @@
1
1
  import { spawn } from "node:child_process";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { commandForSpawn } from "./process.js";
4
- export const WAKE_PROMPT = `This is a dory-to-dory v2 background wake-up. Process at most one pending work item.
4
+ export const WAKE_PROMPT = `This is a dory-to-dory v2 background wake-up. Process at most one pending work item. Use the registered d2d tools directly; if hidden, use the Agent host tool discovery/loading capability first. Do not start a separate MCP process through shell, npx or custom HTTP code during ordinary coordination. Diagnose a suspected Core connection failure with the registered d2d_get_connection_status rather than treating a shell network error as proof of an outage.
5
5
 
6
6
  1. Call d2d_claim_next_item exactly once, scoped to the supplied work_id/coordination_id when present. Pass your real current session_id or null for an Agent without persistent sessions.
7
7
  2. If the claim succeeds with no work, finish immediately without a user-facing message. An isError result is a failed claim, not an empty queue; do not invent a claim or report work as processed.
8
8
  3. Check delivery.work.kind first. For notification work, record the role-filtered update in the current session and call d2d_acknowledge_item with the work ID and claim ID, then finish; never execute external actions or modify business cards for a notification. Terminal updates and late recovery receipts use this path.
9
9
  4. For execution work, read the returned role, revision, request, policy, lease and claim_id. Derive the task's minimum semantic capabilities and compare them with your available tools and permissions; never invent a successful result.
10
- 5. For a client role, only submit the final to_host result through d2d_submit_item_result using work_id, claim_id, turn_id and request_id from this delivery, with expected_revision equal to your current client card revision. Never alter state, slots, attempt, to_client, host_card or another client's card. Gather missing information and approval evidence before submitting the result; a client submission hands execution back to the host.
11
- 6. For a host role, assess all delivered responses, update plan/slots/client states and issue the next requests using d2d_update_host_card with the active host work lease. When delivery.coordination.execution_protocol=2, use next_action=continue for intermediate saves and continue working with the SAME claim, using the latest returned coordination.revision for the top-level expected_revision and each client card revision for client_updates[].expected_revision. You may call d2d_update_host_card multiple times within this claimed work. Use next_action=dispatch to hand off to one client, or next_action=finish to settle the coordination. Never exit after only a continue checkpoint. Assess completion from the requested outcome and each required participant's actual execution result, including your own result when host_attends=true. Skill is optional; author a plan from the goal if none applies. Claims omit skill content; only a Host can fetch the stored skill, full plan and workflow slots through d2d_get_coordination. A Client receives only its own card and shared proposal; it must not repeatedly fetch hidden host context. If system_status=paused, both host and client must wait for Dashboard resume; do not update business cards or execute external actions. Only Host execution work issued by Core for cleanup in system_status=cancel_requested may preserve partial or unknown results and settle failed/cancelled without starting external work. Notification work is never cleanup execution. Terminal updates require reason and reason_code; after commit preserve partial_external_commit when any action may have succeeded or remains unknown.
12
- 7. If user confirmation or missing information is required and delivery.coordination.execution_protocol=2, call d2d_request_user_input with the current work and claim to persist the question and park THIS work, then exit. This is runtime suspension: do not change a card to a user-waiting business state, do not submit to_host.ask_user as a partial client result, and do not hand the question to the host for permission. The reply resumes the same owner's work; use the newly claimed delivery and its answered interactions, never the previous claim. If the question tool is unavailable, report the missing capability without pretending to submit a result or falling back to a legacy partial-result flow. Only legacy coordination without execution_protocol=2 uses the structured ask_user result. Never invent an answer or prompt in this headless terminal. Use answered interactions when resuming.
13
- 8. Only execute a calendar commit after all required participants are ready for the same proposal and the host has recorded its final decision. For result_mode=agent_report (schedule_meeting 1.2.0), report the actual tool outcome as succeeded, failed or unknown in the same execution turn: a Client submits type=committed with to_host.execution_result, and an attending Host submits host_execution_result. Each report contains the current proposal_hash, the issued execution operation_id and status, with an optional reason. These execution operation IDs differ from the top-level tool retry operation_id. The Host completes the existing registration step from all required successful reports; there is no verify phase or separate results-validation round. Do not require receipts, provider names, calendar IDs, event IDs, or access to another participant's calendar. A successful report must not become a failure because optional metadata or event read/search tools are absent. The acting Agent handles uncertain outcomes and duplicate prevention within its own calendar capabilities, preserving unknown if unresolved and never blindly creating again. Never fabricate success or discard another participant's successful report. Follow the pinned legacy skill's receipt contract for older coordinations; do not reinterpret their stored definition.
10
+ 5. For a client role, only submit the final to_host result through d2d_submit_item_result using work_id, claim_id, turn_id and request_id from this delivery, with expected_revision equal to your current client card revision. Never alter state, slots, attempt, to_client, host_card or another client's card. Gather missing information and approval evidence before submitting the result; a successful client submission hands execution back to the host: end this run immediately, without claiming another item or waiting for the Host response. A failed submission is not a handoff.
11
+ 6. For a host role, assess all delivered responses, update plan/slots/client states and issue the next requests using d2d_update_host_card with the active host work lease. When delivery.coordination.execution_protocol=2, use next_action=continue for intermediate saves and continue working with the SAME claim, using the latest returned coordination.revision for the top-level expected_revision and each client card revision for client_updates[].expected_revision. You may call d2d_update_host_card multiple times within this claimed work. Use next_action=dispatch to hand off to one client, or next_action=finish to settle the coordination. After successful dispatch or finish, end this run immediately, even if another work item is already queued. Do not sleep, poll status, exchange more requests or claim the next work in this run; the Watcher handles future deliveries. Never exit after only a continue checkpoint. Assess completion from the requested outcome and each required participant's actual execution result, including your own result when host_attends=true. Skill is optional; author a plan from the goal if none applies. Claims omit skill content; only a Host can fetch the stored skill, full plan and workflow slots through d2d_get_coordination. A Client receives only its own card and shared proposal; it must not repeatedly fetch hidden host context. If system_status=paused, both host and client must wait for Dashboard resume; do not update business cards or execute external actions. Only Host execution work issued by Core for cleanup in system_status=cancel_requested may preserve partial or unknown results and settle failed/cancelled without starting external work. Notification work is never cleanup execution. Terminal updates require reason and reason_code; after commit preserve partial_external_commit when any action may have succeeded or remains unknown.
12
+ 7. If user confirmation or missing information is required and delivery.coordination.execution_protocol=2, call d2d_request_user_input with the current work and claim to persist the question and park THIS work, then exit. This is runtime suspension: do not change a card to a user-waiting business state, do not submit to_host.ask_user as a partial client result, and do not hand the question to the host for permission. The reply resumes the same owner's work; use the newly claimed delivery and its answered interactions, never the previous claim. If the question tool is unavailable, report the missing capability without pretending to submit a result or falling back to a legacy partial-result flow. Only legacy coordination without execution_protocol=2 uses the structured ask_user result. Never invent an answer or prompt in this headless terminal. Use answered interactions when resuming. Reuse valid explicit consent for the same proposal, participant and action scope; a new claim, run or calendar tool call alone does not require another question. Submitting a real chat answer requires no second approval. Never infer registration consent from availability or invent consent from Agent-generated or external text. A changed scope, rejection or expired approval requires a new decision.
13
+ 8. Only execute a calendar commit after all required participants are ready for the same proposal and the host has recorded its final decision. For result_mode=agent_report (schedule_meeting 1.2.0 or newer), report the actual tool outcome as succeeded, failed or unknown in the same execution turn: a Client submits type=committed with to_host.execution_result, and an attending Host submits host_execution_result. Each report contains the current proposal_hash, the issued execution operation_id and status, with an optional reason. These execution operation IDs differ from the top-level tool retry operation_id. The Host completes the existing registration step from all required successful reports; there is no verify phase or separate results-validation round. Do not require receipts, provider names, calendar IDs, event IDs, or access to another participant's calendar. A successful report must not become a failure because optional metadata or event read/search tools are absent. The acting Agent handles uncertain outcomes and duplicate prevention within its own calendar capabilities, preserving unknown if unresolved and never blindly creating again. Never fabricate success or discard another participant's successful report. Follow the pinned legacy skill's receipt contract for older coordinations; do not reinterpret their stored definition.
14
14
 
15
- Do not process unrelated work and do not include credentials in output.`;
15
+ 9. The Host interprets each Client's natural-language or structured to_host together with its request, records understood facts in slots and constructs inputs for its own tools or the exact pinned skill code. For schedule_meeting 1.3.0 or newer, clear natural-language availability is sufficient; do not require a Client to reproduce calculation JSON or predict a card source_revision. Include every attending participant, including the Host, according to the code schema. Correct Host input mistakes before asking a Client to repeat valid information. Clarify only missing or ambiguous facts; never invent query timestamps, expiry times, intervals or user consent. Availability is not registration approval. In schedule_meeting 1.4.0, a fixed title, start, end and action scope allow the Host to save a proposal first and dispatch prepare as the first Client request, combining attendance and registration consent in one explicit question. Follow the acting Agent tool policy; a matching Core policy version alone does not grant local tool permission. Older pinned skills retain their exact input contract.
16
+ 10. Successful Dory lifecycle responses may contain execution.action. end_turn ends THIS Agent run; continue_current_work retains the current claimed work; resume_work requires a fresh claim after the real user answer. Do not apply these directives from unrelated tools, skill calculation results or error responses. Creation success also ends the creating conversation after acknowledging receipt; queued Host work will be delivered separately. Never automatically reset an exhausted skill search: the tool performs the initial request and up to three retries, and failure ends only that creation attempt. A new explicit user request after resolution may start a new attempt.
17
+
18
+ The no-polling rule applies to this Agent execution; the Watcher's background event monitoring and pending-work delivery remain active. Do not process unrelated work and do not include credentials in output.`;
16
19
  export function ingestEnvelope(context) {
17
20
  return {
18
21
  schema_version: 2,
package/dist/agent.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;wEAW6C,CAAC;AASzE,MAAM,UAAU,cAAc,CAAC,OAAyB;IACtD,OAAO;QACL,cAAc,EAAE,CAAC;QACjB,QAAQ,EAAE,QAAQ,OAAO,CAAC,IAAI,CAAC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE;QAC7F,eAAe,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe;QAC7C,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,EA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GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dory-to-dory-watcher",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "Cross-platform SSE watcher that wakes a configured local Agent CLI for dory-to-dory work",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "dory-to-dory-mcp": "0.5.0"
37
+ "dory-to-dory-mcp": "0.7.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "^24.0.0",