Skip to content

D49e — Merged work is undone by a revert decision that waits for a person

  • Status: Accepted
  • Date: 2026-09-23
  • Origin: slice 26 build (from the slice 23 backlog)
  • Area: writes

Decision

  • kg revert <changeset | bundle> --why "…" stages a revert decision naming the changeset.
  • It is always confirmed, as an entity merge is. A bulk merge holds it, and kg merge <dc_id> or MCP confirm_match applies it.
  • --why is required.
  • Only one revert of a changeset waits at a time.
  • Merging it rejects every row the changeset merged. Each is logged as a review made "via revert" and pointing at the decision, so:
  • every read already treats the work as rejected;
  • a rebuild replays it from those reviews (D47c);
  • kg trace says "reverted" and gives the reason. Anything still staged that rests on those rows is rejected with them.
  • Refused while other work rests on it: a merged claim citing one of its events, a claim or relation about one of its entities, a truth, question or deferred item about them, or an entity merge naming one. The refusal names them, to be reverted first.
  • A revert is not reverted. To restore the work, stage it again.

Why

The review queue makes it easy to accept fifty proposals at once, so sooner or later fifty wrong ones will be accepted. Nothing merged is edited or deleted (hard rule 2), so the undo is itself a decision, logged like one. Rejecting the rows through their reviews means no reader needed to change: a rejected row is already excluded everywhere, and bundles already replay a row's status from its last review.

Alternatives

  • A read-time filter ("ignore changesets with a merged revert"), as unmerge works. Every query would need to learn it.
  • Revert without waiting for a person. An undo of someone's merged work is a judgement, as a merge of two entities is.
  • Cascade into other changesets. Undoing one agent's refresh could then silently take a person's later corrections with it.