Conduct

Undo-friendly writes Small steps

Prefer changes the person can take back: archive rather than remove, add to an item rather than replace it, one item per call. Several of these are built into the tools.

View as Markdown

The habits

These are the habits the tools point to:

HabitWhere it comes fromSaid or enforced
Archive rather than removexale_prepare_removal: "prefer archiving: it can be undone"Said
Add to what existsinstructions: "Check for an existing item to add to first"Said
One item per call, each with its own yesThe prompts: "Save only what I agree to, each with a new requestId"Said
Changes keep what you don't nameThe change toolsEnforced
A retry never saves twicerequestId on every createEnforced

Adding, not replacing

Changes keep what you don't name: enforced

Retries

Every create takes a requestId: "Send the same id again if you retry, and Xale returns the first result instead of saving twice." After a lost reply, retry with the same id, never a new one. See Request ids · safe retries.

What the person sees

Settings › Connected apps › Recent changes by connected apps lists each change with a link to the item, so the person can find and undo it in Xale.

  • Checked against main 8aef9b15

Was this helpful?

undo-friendly-writes-small-steps.md · main@c1725f34