Skip to main content

Operation Board

This board is the entry point for the 18 YOps operations. Use it to choose the operation family first, then open the operation page for parameters, behavior, errors, and examples.

DDL: Structure

OpUse it whenReference
defineCreate a new empty mapping pathStrict container creation
dropRemove a node or subtree that must existStrict deletion
renameRename a key without moving its valueSame-parent key rename

DML: Values

OpUse it whenReference
setSet one scalar, list, or mapping valueUpsert with lazy mapping creation
unsetRemove one key but keep the parentIdempotent key cleanup
populateFill several fields on the same existing mappingMulti-field mapping write
appendAdd one item to a sequenceSequence append

DTL: Reshape

OpUse it whenReference
moveRelocate a subtreeSource removed, destination created
cloneCopy an existing subtreeDeep copy
nestGroup sibling keys under a new wrapperFlat to nested
splitSplit one mapping into named childrenOne mapping to multiple groups
foldCollapse a single-child wrapperNested to flatter
mergeCombine sibling mappingsMultiple mappings to one
sortSort a sequenceDeterministic sequence ordering
uniqueDeduplicate a sequenceKeep first occurrence
pickKeep only specific keysMapping allowlist
omitRemove specific keysMapping denylist

DCL: Check

OpUse it whenReference
assertVerify state without changing itRead-only guardrail

How To Read The Board

Use DDL when the shape is wrong. Use DML when the values are wrong. Use DTL when the information is present but arranged badly. Use DCL when you need a guardrail before later operations continue.

yops:
- assert:
path: support_escalation_review/refund_policy/threshold
equals: Refunds above $100 require manual review
- append:
path: support_escalation_review/refund_policy/required_evidence
value: agent name
- unique:
path: support_escalation_review/refund_policy/required_evidence

This sequence says: first prove the current threshold is the one we expect, then add a new required evidence field, then dedupe the list.