cordango apply a
list of operations and it rewrites the affected source files.
Scope is required
--scope names the one aggregate the change may touch.
An operation naming anything outside the scope is refused, and no file is written. A rejected
attempt costs nothing and needs no cleanup, which is what makes it safe to let an agent try.
The operations
- domain
- behaviour
- ui
upsert_entity, upsert_field, removeAsk what an operation may say
The file
note is for whoever reads the diff later.
See it before you do it
Then check
cordango apply writes to the working tree. It doesn’t stage, commit, or validate anything on your
behalf. A person reads the diff and decides.
Why not just edit the file
For a one-line change, do edit the file. Operations earn their place in three situations: Scope enforcement. The guarantee that a change can’t touch anything outside one aggregate is worth having when the thing making the change is a model. Refusal is free. A rejected operation set leaves the tree exactly as it was, with no half-applied state to clean up. They describe intent.upsert_field on ticket is a reviewable statement about what was meant.
A YAML diff shows what changed but not why it was one change.
