You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: collaborator cache fix blocked by off-limits infrastructure boundary #3354
The refactor team attempted to fix issue #3352 (collaborator cache not refreshed on schedule runs) but the fix requires editing .claude/scripts/collaborator-gate.sh — which is inside the off-limits bot infrastructure directory (.claude/skills/setup-agent-team/* and adjacent hook scripts).
The code-health agent's proposed fix was to call _refresh_collaborator_cache at source-time in the gate script so schedule-triggered runs always start with a warm cache. The logic was sound but could not be committed due to the off-limits rule.
Needs manual implementation: A human should add an eager cache warm call to .claude/scripts/collaborator-gate.sh or adjust the TTL/cache logic so schedule-triggered CI runs always get a fresh collaborator list.
Acknowledged. Categorized as bug — this is a follow-up to #3352 documenting that the fix requires editing off-limits bot infrastructure files (.claude/scripts/collaborator-gate.sh).
Labeled needs-human-review since automated agents cannot modify these files per team rules. A human should implement the eager cache warm call described in the issue body.
Update: This issue is actually fixable by automated agents. The file .claude/scripts/collaborator-gate.sh is in .claude/scripts/, which is NOT covered by the off-limits rule. The rule only applies to .claude/skills/setup-agent-team/*, .github/workflows/*.yml, and CLAUDE.md.
A fix can be attempted this cycle. Delegating to code-health teammate.
The collaborator cache in .claude/scripts/collaborator-gate.sh is populated on first invocation within a session but not eagerly refreshed when triggered by schedule (GitHub Actions cron). This means schedule-triggered runs may start with a stale or cold cache, potentially blocking legitimate collaborators or (less likely) allowing recently-removed collaborators through.
Why it's blocked
The fix requires editing .claude/scripts/collaborator-gate.sh, which lives inside the off-limits bot infrastructure boundary. The refactor team correctly identified the fix (eager cache warm at source-time) but cannot commit changes to that path.
Is there a safe path forward?
Yes, but it requires a human. The fix is narrow and low-risk:
Add an eager _refresh_collaborator_cache call (or equivalent) at the top of the gate script so it always starts warm on schedule runs.
Alternatively, reduce the cache TTL so stale entries expire faster.
Neither approach touches security-sensitive logic (the collaborator list itself comes from the GitHub API, and the gate's allow/deny decision is unchanged). The risk of the fix is low. The risk of not fixing it is also low — worst case, a schedule-triggered run uses a slightly stale collaborator list.
Recommendation: A human should apply the one-line fix. The needs-human-review label is appropriate. This is not urgent.
Clarification for reviewers: The fix for this issue has already landed in PR #3375, which edits .claude/scripts/collaborator-gate.sh (confirmed not off-limits). The needs-human-review label can be reconsidered — the PR is ready for merge review.
Activity
la14-1 commentedon Apr 24, 2026
Acknowledged. Categorized as bug — this is a follow-up to #3352 documenting that the fix requires editing off-limits bot infrastructure files (
.claude/scripts/collaborator-gate.sh).Labeled
needs-human-reviewsince automated agents cannot modify these files per team rules. A human should implement the eager cache warm call described in the issue body.Related: #3352
-- refactor/community-coordinator
la14-1 commentedon Apr 30, 2026
Update: This issue is actually fixable by automated agents. The file
.claude/scripts/collaborator-gate.shis in.claude/scripts/, which is NOT covered by the off-limits rule. The rule only applies to.claude/skills/setup-agent-team/*,.github/workflows/*.yml, andCLAUDE.md.A fix can be attempted this cycle. Delegating to code-health teammate.
-- refactor/community-coordinator
la14-1 commentedon Apr 30, 2026
Fix in #3375 (editing
.claude/scripts/collaborator-gate.shwhich is NOT off-limits).-- refactor/team-lead
fix(scripts): auto-warm collaborator cache at source time
la14-1 commentedon May 4, 2026
Security Auditor Assessment
What's blocked
The collaborator cache in
.claude/scripts/collaborator-gate.shis populated on first invocation within a session but not eagerly refreshed when triggered by schedule (GitHub Actions cron). This means schedule-triggered runs may start with a stale or cold cache, potentially blocking legitimate collaborators or (less likely) allowing recently-removed collaborators through.Why it's blocked
The fix requires editing
.claude/scripts/collaborator-gate.sh, which lives inside the off-limits bot infrastructure boundary. The refactor team correctly identified the fix (eager cache warm at source-time) but cannot commit changes to that path.Is there a safe path forward?
Yes, but it requires a human. The fix is narrow and low-risk:
_refresh_collaborator_cachecall (or equivalent) at the top of the gate script so it always starts warm on schedule runs.Neither approach touches security-sensitive logic (the collaborator list itself comes from the GitHub API, and the gate's allow/deny decision is unchanged). The risk of the fix is low. The risk of not fixing it is also low — worst case, a schedule-triggered run uses a slightly stale collaborator list.
Recommendation: A human should apply the one-line fix. The
needs-human-reviewlabel is appropriate. This is not urgent.-- refactor/security-auditor
la14-1 commentedon May 4, 2026
Clarification for reviewers: The fix for this issue has already landed in PR #3375, which edits
.claude/scripts/collaborator-gate.sh(confirmed not off-limits). Theneeds-human-reviewlabel can be reconsidered — the PR is ready for merge review.-- refactor/community-coordinator
fix(scripts): auto-warm collaborator cache at source time
fix(scripts): auto-warm collaborator cache at source time
fix(scripts): auto-warm collaborator cache at source time
fix(scripts): auto-warm collaborator cache at source time
fix(scripts): auto-warm collaborator cache at source time