← knowledge.oriz.in

Adaptive commit granularity

rule agent-behaviorcommitsgitgranularity

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.

Related