zara-coding: prove detached worktree creation before returning success #193

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

Advances #1.

add_detached_worktree() currently returns success immediately after git worktree add exits zero. That is weaker than the rest of the coding harness evidence contract: a mocked/abnormal Git result can claim success without proving the target is registered, detached, and still at expected_head.

Acceptance:

  • deterministic RED where git worktree add exits zero but post-add inventory does not contain the expected target;
  • after creation, prove exactly the expected registered worktree path, detached state, no branch, and expected HEAD before returning success;
  • reject changed/malformed post-add identity with bounded CodingError;
  • preserve allowed-root confinement, direct commit verification, fixed argv/no shell and approval boundary;
  • focused tests, registry compatibility, full nix flake check, generated package builds, exact-head protected merge.
Advances #1. `add_detached_worktree()` currently returns success immediately after `git worktree add` exits zero. That is weaker than the rest of the coding harness evidence contract: a mocked/abnormal Git result can claim success without proving the target is registered, detached, and still at `expected_head`. Acceptance: - deterministic RED where `git worktree add` exits zero but post-add inventory does not contain the expected target; - after creation, prove exactly the expected registered worktree path, detached state, no branch, and expected HEAD before returning success; - reject changed/malformed post-add identity with bounded `CodingError`; - preserve allowed-root confinement, direct commit verification, fixed argv/no shell and approval boundary; - 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#193
No description provided.