Purpose
-------
Validate the B1.0 commit observer that detects silent mutations of
tracked-but-unstaged files during ``oct git commit``.
Responsibilities
----------------
- Unit tests for ``snapshot_unstaged_tracked`` and ``diff_snapshots``
in ``oct.git.commit_observer``: snapshot excludes staged files,
detects content drift, handles oversized files via sentinel.
- Integration tests for the warn/block modes wired into
``git_commit_cmd``: a synthetic mutation between snapshot points
produces the expected stderr warning, and the block mode aborts
with exit code 6.
Diagnostics
-----------
Domain: GIT-TESTS
Levels:
L2 -- test lifecycle
L3 -- assertion details
Contracts
---------
- All tests use subprocess invocation against ``oct.cli`` for
integration-level checks; unit tests import the helper directly.
- All tests use tmp_path fixtures so they are automatically cleaned up.