zara-coding: validate diff snapshot HEAD object IDs #188

Closed
opened 2026-09-08 02:03:11 +00:00 by nsaspy · 0 comments
Owner

Advances #1.

RepositoryInspector.diff() fences a diff snapshot by comparing initial/final git rev-parse HEAD strings, but it does not validate either sample as a full Git object ID. Stable malformed Git/mock output can therefore be accepted as repository identity while diff evidence is projected.

Acceptance:

  • deterministic RED for stable malformed diff HEAD object IDs;
  • accept canonical 40- and 64-hex object IDs;
  • validate both initial and final HEAD samples before identity comparison;
  • preserve existing identity-race, working-tree-race, structured numstat, bounds, and allowed-root semantics;
  • focused tests, registry compatibility, full nix flake check, generated package builds, exact-head protected merge.
Advances #1. `RepositoryInspector.diff()` fences a diff snapshot by comparing initial/final `git rev-parse HEAD` strings, but it does not validate either sample as a full Git object ID. Stable malformed Git/mock output can therefore be accepted as repository identity while diff evidence is projected. Acceptance: - deterministic RED for stable malformed diff HEAD object IDs; - accept canonical 40- and 64-hex object IDs; - validate both initial and final HEAD samples before identity comparison; - preserve existing identity-race, working-tree-race, structured numstat, bounds, and allowed-root semantics; - focused tests, registry compatibility, full `nix flake check`, generated package builds, exact-head protected merge.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nsaspy/zara-plugins#188
No description provided.