rabadon

overview / rules / baseline-reflog-drop

baseline-reflog-drop

Expiring the reflog now removes the only record of where a branch used to point.

what it refuses, and what it lets through

In one line, from native/baseline.h: reflog expire / gc with an immediate expiry.

Undoing a bad reset or branch delete relies on the reflog still holding the old tip; an immediate expiry removes that way back.

From the comment in native/baseline.h above the code that decides it.

the refusal, as the agent reads it

rabadon BLOCKED this action. Rule: baseline-reflog-drop — expiring the reflog now removes the only record of where a branch used to point git <subcommand> with an immediate expiry throws away the way back from a bad reset or delete — leave a window (--expire=90.days.ago), or run it after the work is pushed Adjust the approach instead of retrying the same action. (only the user can override this: they may add "baseline-reflog-drop" to disabled[] in .rabadon/guard.json or run `rabadon off`. If this rule looks wrong for the task, stop and ask the user; do not switch supervision off yourself.)

Rendered from the strings in native/baseline.h and the envelope in native/gate_pre.h (Judge::refuse). A word in <angle brackets> is filled in from the command at the moment it is refused.

in watch mode the same verdict is recorded, and nothing is stopped

rabadon (watch) would have blocked this. Rule: baseline-reflog-drop — expiring the reflog now removes the only record of where a branch used to point git <subcommand> with an immediate expiry throws away the way back from a bad reset or delete — leave a window (--expire=90.days.ago), or run it after the work is pushed Nothing was stopped. `rabadon on` makes this a real refusal.

switching it off

Only the user can switch it off, by id, in the project's guard:

{ "disabled": ["baseline-reflog-drop"] }

or by pausing supervision with rabadon off, which records the change. Every other rule keeps running.

in the field

No record in the published field dataset (field.jsonl, 778 records, 2026-07-27 to 2026-08-26) carries this id.

The dataset is on the field page.

measurements

the refusals that cannot be undone