-
-
Notifications
You must be signed in to change notification settings - Fork 0
Systemic CI Failure: Rogue .claude/ orphan gitlinks breaking submodules #502
Copy link
Copy link
Open
Labels
bugSomething is broken or behaves incorrectlySomething is broken or behaves incorrectlycicdCI/CD: workflows, actions, lockfiles, pins, runners, release gatesCI/CD: workflows, actions, lockfiles, pins, runners, release gatespriority:p1High - schedule nextHigh - schedule nextscope:repoConfined to this repositoryConfined to this repository
Description
Activity
Metadata
Metadata
Assignees
Labels
bugSomething is broken or behaves incorrectlySomething is broken or behaves incorrectlycicdCI/CD: workflows, actions, lockfiles, pins, runners, release gatesCI/CD: workflows, actions, lockfiles, pins, runners, release gatespriority:p1High - schedule nextHigh - schedule nextscope:repoConfined to this repositoryConfined to this repository
This is a class of problem breaking our CI pipelines (specifically \governance / Validate Hypatia Baseline, \scan / gitleaks, and \scan / rust-secrets).
Symptom:
These checks execute \git submodule foreach\ which strictly fails with \atal: No url found for submodule path .claude/worktrees/actions-policy in .gitmodules\ and exit code 128.
Root Cause:
Agentic tools (like Claude) use a local .claude/worktrees/\ directory. If a bot or developer blindly runs \git add ., these nested git repositories are added as orphan gitlinks (mode 160000) without a corresponding .gitmodules\ entry. This corrupts the git tree for any tool trying to traverse submodules.
Systematic Address Required:
The solution is partially underway (gitlink removal), but the systemic Hypatia rule needs to be implemented to permanently prevent this class of problem.