feat(blueprint): add tool profiles for dynamic per-task tool selection#82
Open
tycenjmccann wants to merge 1 commit into
Open
feat(blueprint): add tool profiles for dynamic per-task tool selection#82tycenjmccann wants to merge 1 commit into
tycenjmccann wants to merge 1 commit into
Conversation
…election Introduces named Tool Profiles — deploy-time configurations that define which MCP servers, skills, and Cedar policies are available to the agent on a per-task basis. This is PR 1 of 2: schema, validation, and CLI flag only (no runtime resolution yet). - Add ToolProfile interface and toolProfiles prop to Blueprint construct - Store profiles as JSON in RepoConfig DynamoDB table - Add tool_profile field to CreateTaskRequest, TaskRecord, TaskDetail - Validate profile name format (lowercase alphanumeric + hyphens, 1-64 chars) - Validate profile exists in repo's Blueprint at task admission - Add --tool-profile flag to CLI submit command - Add tool_profile field to agent TaskConfig model - Mirror types across CDK ↔ CLI sync boundary Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
toolProfilesprop to the Blueprint CDK construct, stored as JSON in the RepoConfig DynamoDB tabletool_profilefield toCreateTaskRequest/TaskRecord/TaskDetailwith format validation and profile existence checking at task admission--tool-profileCLI flag tobgagent submittool_profileto the agent'sTaskConfigmodel (ready for PR 2 to consume)This is PR 1 of 2: schema, validation, and CLI only. PR 2 will add context hydration resolution and agent runtime activation.
Motivation
The platform currently uses a single
capabilityTier(default/extended) set at deploy time per repo. This PR enables per-task tool selection from a pre-approved catalog of profiles, so different task scopes (frontend, backend, infra) can activate different MCP servers and skills without changing the security model.Key design decisions:
cedarPolicies) — only the profile name is user-controlled at runtimetoolProfilescontinue working exactly as beforeFiles changed (15 files, +571 lines)
cdk/src/blueprint.ts,types.ts,validation.ts,repo-config.ts,create-task-core.tscdk/test/cli/src/types.ts,commands/submit.ts--tool-profileflagagent/models.py,config.py, 2 test filesTest plan
tsc --noEmit)tsc --noEmit)cedarPolicies)🤖 Generated with Claude Code