Skip to content

feat(registry): resolve + load registry assets into tasks (#246) - #4

Draft
Kalindi-Dev wants to merge 1 commit into
feat/246-registry-catalogfrom
feat/246-registry-integration
Draft

feat(registry): resolve + load registry assets into tasks (#246)#4
Kalindi-Dev wants to merge 1 commit into
feat/246-registry-catalogfrom
feat/246-registry-integration

Conversation

@Kalindi-Dev

Copy link
Copy Markdown
Owner

Summary

Builds on the catalog PR to consume registry assets at task time.

  • Orchestrator resolve-step (resolveRegistryAssets): resolves a blueprint's registry:// mcp_server/cedar_policy_module/skill refs at task start, fail-closed; stamps {kind,id,version} triples on the TaskRecord, merges resolved cedar_text into cedar_policies, threads the runtime bundle into the agent payload.
  • Blueprint asset props + onUpdate fix: assets.{mcpServers,cedarPolicyModules,skills} with RegistryRefValidation; the three onUpdate helpers now write the asset-ref columns so redeploying an onboarded repo no longer drops them.
  • Agent loaders (registry.loader): mcp_server → .mcp.json; cedar_policy_module → PolicyEngine unannotated extra_policies; skill prompt fragments → system prompt.
  • TaskOrchestrator IAM: read-only bedrock-agentcore registry access.

Depends on #3. Base is feat/246-registry-catalog; retarget to main once #3 merges.

Test plan

  • mise run build green (2595 tests total)
  • Deploy with --context forkBlueprintRepo=owner/repo; submit a task that pins all three asset kinds
  • Confirm PR shows skill marker + MCP-sourced content + cedar rule loaded (repro of task 01KYJ5FT0RDZJ72J7R5BKCDM38)

…s#246)

Builds on the catalog PR to actually consume registry assets at task time:

- Orchestrator resolve-step (`resolveRegistryAssets`): resolves a blueprint's
  `registry://` mcp_server / cedar_policy_module / skill refs at task start,
  fail-closed; stamps the `{kind,id,version}` triples on the TaskRecord for
  audit, merges resolved cedar_text into `cedar_policies`, and threads the
  runtime bundle into the agent payload.
- Blueprint asset props + onUpdate fix: `assets.{mcpServers,cedarPolicyModules,
  skills}` with `RegistryRefValidation`; the three onUpdate helpers now write
  the asset-ref columns so redeploying an onboarded repo no longer drops them.
- Agent loaders (registry.loader): mcp_server merges into `.mcp.json`;
  cedar_policy_module flows through PolicyEngine's unannotated `extra_policies`;
  skill prompt fragments append to the system prompt (build_skill_prompt_fragment).
- TaskOrchestrator IAM: read-only bedrock-agentcore registry access so the
  orchestrator can resolve refs.

Depends on the catalog PR (feat/246-registry-catalog): imports the RegistryClient
port, ref grammar, and resolver from that branch.
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