zara-coding: validate repository inspection HEAD object IDs #189

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

Advances #1.

RepositoryInspector.inspect() currently projects git rev-parse HEAD directly into structured repository evidence and only compares the first/second samples for equality. A stable malformed value can therefore survive inspection and enter symbolic task state.

Acceptance:

  • deterministic RED for malformed initial/final repository HEAD object IDs;
  • accept canonical full SHA-1 and SHA-256 object IDs;
  • fail with bounded CodingError tied to malformed repository object identity;
  • preserve identity-race and working-tree-race checks;
  • focused tests, registry compatibility, full nix flake check, generated package builds, exact-head protected merge.
Advances #1. `RepositoryInspector.inspect()` currently projects `git rev-parse HEAD` directly into structured repository evidence and only compares the first/second samples for equality. A stable malformed value can therefore survive inspection and enter symbolic task state. Acceptance: - deterministic RED for malformed initial/final repository HEAD object IDs; - accept canonical full SHA-1 and SHA-256 object IDs; - fail with bounded `CodingError` tied to malformed repository object identity; - preserve identity-race and working-tree-race checks; - 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#189
No description provided.