op: merge
Shallow-merge an object into an existing field or bound variable.
Allowed phases
| Phase | Status |
|---|---|
preflight | ✗ forbidden |
core | ✓ allowed |
side_effects | ✗ forbidden |
Syntax
- op: merge
path: /metadata
value:
last_seen: "event.ts"
source: "event.source"Parameters
| Field | Required | Description |
|---|---|---|
path | yes | Object field path or variable from find |
value | yes | Key-value map; values may be expressions |
Behavior
- Shallow merge only — nested objects are replaced, not deep-merged. Use multiple
setops for nested paths. - Common pattern after
find: merge intoexisting_itemvariable to update an array element in place.
Related operations
See also
- Operations index — all ops by phase
- actions — rule structure and phases
- Intents: Rules — narrative examples