type: rule
status: active
timestamp: 2026-06-26
tags: [agent-behavior, commits, git, granularity]

Adaptive commit granularity

Commits sized to work unit: single decision = 1 commit; batch grill = 1; refactor = 1 per unit

Adaptive commit granularity

Rule

Commit size adapts to work unit. Three shapes:

  1. One locked decision (ad-hoc during a session) = one commit, message docs(knowledge): lock <slug> — <summary>.
  2. Batch grill session (3+ related decisions answered in one sitting) = one commit covering the batch, message docs(knowledge): lock N rules from <date> grill session.
  3. Multi-file refactor / migration = one commit per logical refactor unit (not per file, not per session).

How to apply

Why

User locked this on 2026-06-26 (Q18). Per-decision-always is too noisy when 24 decisions land in one session; per-session-always loses the granular revert surface. Adaptive matches actual work shape.

Captured

2026-06-26 session, Q18 of 24-question grill.


Edit on GitHub · Back to index