fix: protect task_uuid from DispatchContext overwrite and update acceptance criteria
CI / fmt (pull_request) Successful in 4m44s
CI / test (pull_request) Successful in 12m48s

- Skip task_uuid key when merging DispatchContext into dispatch metadata
- Update requirements.md acceptance criteria and test matrix for external rules

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 07:01:20 +07:00
co-authored by Claude Opus 4.7
parent 562d3b01c3
commit 5e7a479991
2 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -204,7 +204,9 @@ func buildDispatchMetadata(task *database.Task) map[string]string {
var ctx map[string]string
if err := json.Unmarshal([]byte(task.DispatchContext), &ctx); err == nil {
for k, v := range ctx {
metadata[k] = v
if k != "task_uuid" {
metadata[k] = v
}
}
}
}