harden dialog execution policy with intent slots and commit-push receipt formatting

This commit is contained in:
DBT
2026-02-25 02:04:39 +00:00
parent 7ec4c87779
commit 6b0c730129
2 changed files with 71 additions and 3 deletions

View File

@@ -129,6 +129,12 @@ Constraints:
parts = append(parts, memoryContext)
}
parts = append(parts, `# Execution & Reply Policy
- Default behavior: execute first, then report.
- Avoid empty/meta fallback replies.
- For commit/push intents, treat as one transaction and return commit hash + push result.
- Use concise receipt style: 已理解 -> 正在执行 -> 已完成.`)
// Join with "---" separator
return strings.Join(parts, "\n\n---\n\n")
}