diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-08-12 00:02:23 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-08-12 00:02:23 +0900 |
| commit | ce550a127b7dc972651bd15b9f09979a2c38688f (patch) | |
| tree | f4e09d0f64f74a585e015e6f548c5589fd2442ba /doc/Design.md | |
| parent | 55db81082f9165a3965f860cd618bac4242c56b1 (diff) | |
feat: harden Python workflow and structured planning
Replace the uv-specific skill with a portable Python skill and rewrite the default user system prompt as a concise, structured Markdown execution policy.
Normalize a single fenced structured-JSON response, retry invalid skill selection with think disabled, validate selected skill output, and make coding plans keep editing and verification in one task.
Document the file_edit patch payload, expose that contract in the tool catalog, and convert malformed patch input into a retryable tool failure instead of terminating the agent task.
Update configuration and runtime tests for the Python skill, exact tool catalog, structured-output retry, and implementation-and-verification planning guidance.
Verified with 82 Agent.Core tests and an agent-mcp Python scheduling scenario with 49 passing unittest cases.
Diffstat (limited to 'doc/Design.md')
| -rw-r--r-- | doc/Design.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/Design.md b/doc/Design.md index 3623cb4..68c7dbc 100644 --- a/doc/Design.md +++ b/doc/Design.md @@ -291,6 +291,7 @@ Ollamaに公開する現行Internal Tool catalogは次のとおりとする。å€ } ``` - overwrite/patch/atomic_replaceはwrite permissionを要求する。 +- `patch` operationの`patch` fieldは、JSON文字列化した`{"old_text":"...","new_text":"..."}`を受け取る。unified diffは受け付けない。`old_text`は対象file内で正確に1回だけ一致しなければならない。不正形式または一致数不正は再試行可能なTool failureとする。 - deleteはdelete permissionを要求する。 - renameはsource/destination双方にwrite permissionを要求する。destinationが既に存在する場合は拒否する(overwrite不可)。cross-volume renameは不支持でTool failureとして返す。 - rename transaction: PREPARE(source/destination検査+journal) → APPLY(File.Move) → VERIFY(source不存在/destination存在/hash一致) → COMMIT。crash recoveryはdestination hashがjournal記録と一致する場合のみdestinationからsourceへ戻す。 |
