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 not refreshed on schedule-triggered runs #3352
Follow-up from #3351. The prompt-level collaborator filters added there rely on /tmp/spawn-collaborators-cache already existing. On a schedule-triggered run (where SPAWN_ISSUE is unset), that cache may be stale or missing entirely, because:
refactor.sh / security.sh / qa.sh source collaborator-gate.sh, but only call is_collaborator when SPAWN_ISSUE is set
is_collaborator is what triggers _refresh_collaborator_cache
So on schedule runs, the cache is never warmed before Claude starts — and the jq filter in each prompt returns an empty list
Failure mode
Strictly safer than the alternative (empty list vs. prompt-injection risk), so this is not a security regression. But it means on cold schedule runs the bots see zero issues/PRs and do nothing useful until the cache is warmed some other way.
Fix
In refactor.sh, security.sh, and qa.sh, unconditionally call _refresh_collaborator_cache right after sourcing collaborator-gate.sh — before Claude spawns. Something like:
if [[ -f"${GATE_SCRIPT}" ]];thensource"${GATE_SCRIPT}"
_refresh_collaborator_cache # warm before Claude runsfi
This makes every run, scheduled or issue-triggered, start with a fresh (or cache-valid) collaborator list.
Acknowledged. This is a valid bug — the collaborator cache can go stale on schedule-triggered runs since it's only warmed at service start.
The fix requires changes to .claude/skills/setup-agent-team/refactor.sh, .claude/skills/setup-agent-team/security.sh, and .claude/skills/setup-agent-team/qa.sh, which are off-limits for automated processing (bot infrastructure). This needs manual review and implementation.
Related issue filed for the infrastructure boundary blocker: #3354 (labeled needs-human-review). The cache staleness fix is blocked until a human addresses the off-limits files.
The fix for this issue requires modifying refactor.sh, security.sh, and qa.sh inside .claude/skills/setup-agent-team/, which is off-limits for automated agents. The change itself is straightforward — unconditionally call _refresh_collaborator_cache right after sourcing collaborator-gate.sh in each script — but it needs to be applied manually.
Update: The fix in .claude/scripts/collaborator-gate.sh is NOT off-limits. The off-limits rule applies only to .claude/skills/setup-agent-team/*, .github/workflows/*.yml, and CLAUDE.md. The scripts directory (.claude/scripts/) is editable by automated agents.
Delegating to code-health teammate for implementation.
Activity
la14-1 commentedon Apr 24, 2026
Acknowledged. This is a valid bug — the collaborator cache can go stale on schedule-triggered runs since it's only warmed at service start.
The fix requires changes to
.claude/skills/setup-agent-team/refactor.sh,.claude/skills/setup-agent-team/security.sh, and.claude/skills/setup-agent-team/qa.sh, which are off-limits for automated processing (bot infrastructure). This needs manual review and implementation.-- refactor/community-coordinator
la14-1 commentedon Apr 24, 2026
Related issue filed for the infrastructure boundary blocker: #3354 (labeled
needs-human-review). The cache staleness fix is blocked until a human addresses the off-limits files.-- refactor/community-coordinator
la14-1 commentedon Apr 25, 2026
The fix for this issue requires modifying
refactor.sh,security.sh, andqa.shinside.claude/skills/setup-agent-team/, which is off-limits for automated agents. The change itself is straightforward — unconditionally call_refresh_collaborator_cacheright after sourcingcollaborator-gate.shin each script — but it needs to be applied manually.-- refactor/code-health
la14-1 commentedon Apr 30, 2026
Update: The fix in
.claude/scripts/collaborator-gate.shis NOT off-limits. The off-limits rule applies only to.claude/skills/setup-agent-team/*,.github/workflows/*.yml, andCLAUDE.md. The scripts directory (.claude/scripts/) is editable by automated agents.Delegating to code-health teammate for implementation.
-- refactor/community-coordinator
la14-1 commentedon Apr 30, 2026
Fix in #3375.
-- refactor/team-lead
la14-1 commentedon May 2, 2026
Tracked — fix is in progress in PR #3375.
-- refactor/community-coordinator
fix(scripts): auto-warm collaborator cache at source time
la14-1 commentedon May 7, 2026
Fix in #3375.
-- refactor/community-coordinator
la14-1 commentedon May 7, 2026
Fix in #3375.
-- refactor/community-coordinator
fix(scripts): auto-warm collaborator cache at source time
la14-1 commentedon May 9, 2026
Fix in progress: #3375
-- 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
la14-1 commentedon May 14, 2026
Fix in #3375.
-- refactor/community-coordinator
fix(scripts): auto-warm collaborator cache at source time