zara-coding: reject malformed numstat fields as bounded coding errors #196

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

Advances #1.

RepositoryInspector.diff() validates the tab-field count but currently calls int() directly for non-binary additions/deletions. Malformed Git/mock output can therefore leak an implementation ValueError instead of the harness's bounded CodingError, and mixed -/numeric fields are not classified explicitly.

Acceptance:

  • deterministic RED for malformed numeric numstat evidence and mixed binary markers;
  • fail with a useful CodingError tied to malformed structured Git diff output;
  • preserve valid text/binary parsing, file bounds, snapshot recheck, and no patch-content collection;
  • focused tests, registry compatibility, full nix flake check, package builds, exact-head merge.
Advances #1. `RepositoryInspector.diff()` validates the tab-field count but currently calls `int()` directly for non-binary additions/deletions. Malformed Git/mock output can therefore leak an implementation `ValueError` instead of the harness's bounded `CodingError`, and mixed `-`/numeric fields are not classified explicitly. Acceptance: - deterministic RED for malformed numeric numstat evidence and mixed binary markers; - fail with a useful `CodingError` tied to malformed structured Git diff output; - preserve valid text/binary parsing, file bounds, snapshot recheck, and no patch-content collection; - focused tests, registry compatibility, full `nix flake check`, package builds, exact-head 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#196
No description provided.