Skip to content

Remove snake_case-only restriction on connection & broker IDs; update deploy gateway model - #209

Merged
mlinsf merged 1 commit into
mulesoft:masterfrom
exuSalesforce:relax-connection-naming
Aug 11, 2026
Merged

Remove snake_case-only restriction on connection & broker IDs; update deploy gateway model#209
mlinsf merged 1 commit into
mulesoft:masterfrom
exuSalesforce:relax-connection-naming

Conversation

@exuSalesforce

Copy link
Copy Markdown
Contributor

What

Corrects two things in the Agent Broker skills (build-agent-broker-project, translate-agent-broker-old-to-new-project):

1. Connection & broker id naming (bug fix)

Both skills claimed the V2 schema restricts context.connections.<id> keys and brokers.<id> keys to ^[a-z0-9_]+$ (snake_case only) and that camelCase/kebab-case "fails lint." This is incorrect — the schema accepts any valid YAML identifier. The 2.0 docs corroborate this (registry keys allow ^[a-zA-Z_][a-zA-Z0-9_.-]*$, and the Agent Script reference's own trigger example uses a kebab-case broker: brokers://employee-onboarding/a2a).

The skills now:

  • Frame snake_case as a readability convention, not a schema rule.
  • Preserve the one genuine invariant: an .agent target (a2a://, mcp://, llm://, brokers://) must match its agent-network.yaml key exactly.

Touched: canonical-example.md item 0, gotchas.md naming conventions, converter SKILL.md, v2-template.agent comments, v2-example.md annotations.

2. Deploy gateway model (update)

gotchas.md Step 9 documented only the old separate-gateway defaults (agent-network-ingress-gw / agent-network-egress-gw). Updated to the current Anypoint CLI Agent Fabric plugin v1.2.10 model: single-gateway mode (-g/--gateway, default agent-network-gw) is recommended; separate ingress/egress (-i/-e) is the alternate mode.

Version

Bumps @salesforce/mulesoft-vibes-skills 1.8.3 → 1.8.4 with CHANGELOG entry.

Verification

  • Grounded against the public 2.0 docs (mulesoft/docs-code-builder @ latest) and the public npm CLI README (v1.2.10).
  • No hidden/internal CLI commands added.
  • Diff is limited to the 5 skill files + version bump + CHANGELOG.

🤖 Generated with Claude Code

… deploy gateway model

The V2 schema does not restrict connection ids or broker ids to ^[a-z0-9_]+$ —
any valid YAML identifier validates (camelCase, snake_case, kebab-case). Both
Agent Broker skills previously claimed this was schema-enforced and that other
casings 'fail lint'; that was incorrect. The skills now frame snake_case as a
readability convention and keep the one real invariant: .agent targets must
match the agent-network.yaml keys exactly.

Also updates the builder's Step 9 deploy guidance to the CLI plugin v1.2.10
gateway model: single-gateway mode (-g/--gateway, default agent-network-gw)
recommended, separate ingress/egress (-i/-e) as the alternate mode.

Bumps skill package version 1.8.3 -> 1.8.4 with CHANGELOG entry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@spezzirriemiliano spezzirriemiliano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrects an inaccurate schema-restriction claim (connection/broker IDs are not snake_case-restricted) and updates stale gateway deploy defaults across two prose skills, with a consistent version bump and CHANGELOG entry; no validator failures or blockers found.

@mlinsf
mlinsf merged commit 9dd1251 into mulesoft:master Aug 11, 2026
10 checks passed
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.

3 participants