Skip to content

fix: store all scope experts on resolve to support delegate lookup#655

Merged
FL4TLiN3 merged 2 commits intomainfrom
fix-scope-delegate-resolution
Feb 26, 2026
Merged

fix: store all scope experts on resolve to support delegate lookup#655
FL4TLiN3 merged 2 commits intomainfrom
fix-scope-delegate-resolution

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • When fetching a published expert from the API, store all experts from the scope definition (coordinator + delegates) instead of only the requested one
  • Fixes delegate resolution failure: when create-expert is fetched, its delegates (@create-expert/planner, etc.) are now stored locally and don't require separate API calls
  • Applied to both @perstack/runtime (resolveExpertToRun) and @perstack/installer (resolveAllExperts)

Test plan

  • Unit tests updated and passing — verifies sibling experts are populated and delegates resolve from cache
  • bun run typecheck passes
  • bun run test passes

🤖 Generated with Claude Code

FL4TLiN3 and others added 2 commits February 26, 2026 13:32
When fetching a published expert from the API, store all experts from the
scope definition (coordinator + delegates) instead of only the requested
one. This allows delegates to be resolved from the local cache without
separate API calls that would fail with 404.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 force-pushed the fix-scope-delegate-resolution branch from 8aa591c to cff93bd Compare February 26, 2026 13:32
@FL4TLiN3 FL4TLiN3 merged commit 019f999 into main Feb 26, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the fix-scope-delegate-resolution branch February 26, 2026 13:34
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 26, 2026
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