zara-coding: fail closed when diff evidence changes during snapshot #197

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

Advances #1.

RepositoryInspector.diff() fences repository HEAD but reads working-tree/index diff evidence only once. If that evidence changes while HEAD remains stable, the harness can return a stale/mixed diff snapshot.

Acceptance:

  • deterministic RED where HEAD stays stable but git diff --numstat evidence changes during the snapshot window;
  • fail closed rather than returning stale diff evidence;
  • preserve max-files bounds and structured numstat parsing;
  • no patch-content collection, shell, or new authority;
  • focused tests, registry compatibility, full nix flake check, generated package builds, exact-head protected merge.
Advances #1. `RepositoryInspector.diff()` fences repository HEAD but reads working-tree/index diff evidence only once. If that evidence changes while HEAD remains stable, the harness can return a stale/mixed diff snapshot. Acceptance: - deterministic RED where HEAD stays stable but `git diff --numstat` evidence changes during the snapshot window; - fail closed rather than returning stale diff evidence; - preserve max-files bounds and structured numstat parsing; - no patch-content collection, shell, or new authority; - 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#197
No description provided.