zara-coding: add bounded worktree inventory #466

Open
nsaspy wants to merge 5 commits from rage/1-worktree-list into main
Owner

Advances #1.

Recovered existing dependency-ready Auto-RAGE work on rage/1-worktree-list rather than duplicating it.

This adds read-only coding.git.worktree.list using fixed git worktree list --porcelain -z output. It:

  • returns bounded structured path/HEAD/branch/detached/locked/prunable evidence;
  • re-checks every resolved worktree path against configured allowed roots;
  • rejects unsupported, malformed, incomplete, or contradictory porcelain records;
  • exposes no caller-controlled Git arguments or mutation;
  • keeps the canonical read-only tool surface approval-free.

The branch is five coherent commits ahead of current main, including tests, implementation, tool wiring, and docs. Full registry/plugin/Nix CI is required before merge.

Advances #1. Recovered existing dependency-ready Auto-RAGE work on `rage/1-worktree-list` rather than duplicating it. This adds read-only `coding.git.worktree.list` using fixed `git worktree list --porcelain -z` output. It: - returns bounded structured path/HEAD/branch/detached/locked/prunable evidence; - re-checks every resolved worktree path against configured allowed roots; - rejects unsupported, malformed, incomplete, or contradictory porcelain records; - exposes no caller-controlled Git arguments or mutation; - keeps the canonical read-only tool surface approval-free. The branch is five coherent commits ahead of current `main`, including tests, implementation, tool wiring, and docs. Full registry/plugin/Nix CI is required before merge.
Some checks failed
CI / test (pull_request) Failing after 19s
This pull request has changes conflicting with the target branch.
  • plugins/zara-coding/README.md
  • plugins/zara-coding/lib/zara_coding/domain.py
  • plugins/zara-coding/lib/zara_coding/plugin.py
  • plugins/zara-coding/test/test_domain.py
  • plugins/zara-coding/test/test_plugin.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

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-worktree-list
git switch rage/1-worktree-list
git rebase main
git switch main
git merge --ff-only rage/1-worktree-list
git switch rage/1-worktree-list
git rebase main
git switch main
git merge --no-ff rage/1-worktree-list
git switch main
git merge --squash rage/1-worktree-list
git switch main
git merge --ff-only rage/1-worktree-list
git switch main
git merge rage/1-worktree-list
git push origin main
Sign in to join this conversation.
No description provided.