Skip to content

kb(adr-0042): the lock directory lives in the git dir (A1, amended) - #748

Merged
markramm merged 1 commit into
devfrom
kb/adr-0042-a1-git-dir-locks
Oct 4, 2026
Merged

markramm merged 1 commit into
devfrom
kb/adr-0042-a1-git-dir-locks

Conversation

@markramm

@markramm markramm commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

Records the maintainer's 2026-10-03 decision. The momentary lock lives at <git-dir>/pyrite/locks, beside git's own index.lock, instead of a directory derived from XDG/TMPDIR. A KB outside a git repository is refused for expect= writes.

Four cold reads of the build (#733) each found the env-derived directory trusted by a different rule. Locking inside the repository removes the cross-user trust problem.

🤖 Generated with Claude Code

…don pyrite-security#97)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@markramm
markramm enabled auto-merge October 4, 2026 00:09
@markramm
markramm added this pull request to the merge queue Oct 4, 2026
Merged via the queue into dev with commit b41cf6e Oct 4, 2026
11 checks passed
@markramm
markramm deleted the kb/adr-0042-a1-git-dir-locks branch October 4, 2026 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant