zara-coding: verify worktree coordination locks through SPEC #453

Open
nsaspy wants to merge 0 commits from rage/1-zara-coding-worktree-verify into main
Owner

Advances #1 by making linked-worktree lock state part of current observed repository evidence consumed by the existing Prolog-RLM SPEC/VERIFY path.

RAGE transaction

  • RED-first f348728: worktree lock assertion/evidence contract.
  • implementation commits project bounded worktree inventory, thread it through the pure verifier bridge, and add trusted worktree_locked assertion semantics.
  • follow-up fixes remove misleading ownership language: Git lock reasons are coordination metadata, not authentication.

Contract

  • worktree_locked requires an exact worktree path + full Git object ID and verifies only when the currently observed worktree is locked at that exact HEAD.
  • verifier collection is read-only and bounded to 100 registered worktrees.
  • lock reasons are deliberately excluded from SPEC evidence; the verifier sees only {path, head, locked}.
  • missing/path-moved/head-changed/unlocked worktrees produce failed verification rather than invented success.
  • observations continue through canonical rlm_verify:spec_verify/4; no assertz, shell, repair action, alternate runtime, or plugin-private authorization.

Security boundary

A successful worktree_locked assertion proves coordination lock state only. It does not prove worker identity or principal ownership. Canonical Zara approval remains the mutation authority; strong cross-plugin task ownership/composition remains blocked on Zara Core #400.

Exact-head CI must pass whitespace, current Zara compatibility contract, full registry/plugin nix flake check, and package builds before merge.

Advances #1 by making linked-worktree lock state part of current observed repository evidence consumed by the existing Prolog-RLM SPEC/VERIFY path. ## RAGE transaction - RED-first `f348728`: worktree lock assertion/evidence contract. - implementation commits project bounded worktree inventory, thread it through the pure verifier bridge, and add trusted `worktree_locked` assertion semantics. - follow-up fixes remove misleading ownership language: Git lock reasons are coordination metadata, not authentication. ## Contract - `worktree_locked` requires an exact worktree path + full Git object ID and verifies only when the currently observed worktree is locked at that exact HEAD. - verifier collection is read-only and bounded to 100 registered worktrees. - lock **reasons are deliberately excluded** from SPEC evidence; the verifier sees only `{path, head, locked}`. - missing/path-moved/head-changed/unlocked worktrees produce failed verification rather than invented success. - observations continue through canonical `rlm_verify:spec_verify/4`; no `assertz`, shell, repair action, alternate runtime, or plugin-private authorization. ## Security boundary A successful `worktree_locked` assertion proves coordination lock state only. It does not prove worker identity or principal ownership. Canonical Zara approval remains the mutation authority; strong cross-plugin task ownership/composition remains blocked on Zara Core #400. Exact-head CI must pass whitespace, current Zara compatibility contract, full registry/plugin `nix flake check`, and package builds before merge.
Some checks failed
CI / test (pull_request) Failing after 18s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin rage/1-zara-coding-worktree-verify:rage/1-zara-coding-worktree-verify
git switch rage/1-zara-coding-worktree-verify

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff rage/1-zara-coding-worktree-verify
git switch rage/1-zara-coding-worktree-verify
git rebase main
git switch main
git merge --ff-only rage/1-zara-coding-worktree-verify
git switch rage/1-zara-coding-worktree-verify
git rebase main
git switch main
git merge --no-ff rage/1-zara-coding-worktree-verify
git switch main
git merge --squash rage/1-zara-coding-worktree-verify
git switch main
git merge --ff-only rage/1-zara-coding-worktree-verify
git switch main
git merge rage/1-zara-coding-worktree-verify
git push origin main
Sign in to join this conversation.
No description provided.