Skip to content

merge queue: checking #472 on main (e9a9750) - #476

Closed
mergify[bot] wants to merge 2 commits into
mainfrom
mergify/merge-queue/66a5124a3e
Closed

merge queue: checking #472 on main (e9a9750)#476
mergify[bot] wants to merge 2 commits into
mainfrom
mergify/merge-queue/66a5124a3e

Conversation

@mergify

@mergify mergify Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

✨ Pull request #472 has been merged manually at de78102. ✨

#472 is queued for merge on branch main (e9a9750).

This pull request has been created by Mergify to check the mergeability of #472.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.

Required conditions of queue rule admin-bypass for merge:

  • check-success = test
  • check-success = lint

Required conditions to stay in the queue:

---
checking_base_sha: e9a9750689d398db88b1f62a1bc9e9089587a058
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 472
    scopes: []
scopes: []
...

EdbertChan and others added 2 commits September 11, 2026 22:45
repo_root() decided which repository it was looking at from the session's cwd
alone, so a session working in another repo that edits catstack through an
absolute path or a worktree got no reminder at all.

That is what happened today: engine/hooks/unverified-tag-ledger and install.sh
were written and committed from a session whose cwd was a different repo, the
Stop hook stayed silent every turn, and both PRs went up with no draft-pr
schema until the user noticed.

cwd stays the first check and is unchanged. When it does not resolve to
catstack, repo_root() now reads the file paths this session's tool calls named
and runs each through the same _accept_root() gate, so the fallback can only
ever widen detection and can never return a directory outside catstack.

Replayed against the real transcript of that session, cwd left as its own:

  BEFORE  repo_root -> None      decide -> None
  AFTER   repo_root -> .../catstack/.worktrees/autopr-foreign
          decide    -> "catstack changes detected on branch ..."

30 tests pass, including a positive case (foreign cwd + a touched catstack
path fires), a negative case (touched paths outside catstack stay silent), an
unchanged-behaviour case for a cwd inside catstack, and an unreadable
transcript reporting on stderr rather than failing quietly.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018u8S5ct3kFhosinSbybc7W
Change-Id: I77563afdcde6b7dde30dc046ff69ab637648d84f
@mergify mergify Bot closed this Sep 12, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/66a5124a3e branch September 12, 2026 06:14
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