Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions adapter-sources/claude/overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ edits:
Its plan creates a new Sender Profile and does not manage campaigns on an existing profile.
replace: |-
From Claude, its plan is completed by creating the Sender Profile in the Sent Dashboard; it does not manage campaigns on an existing profile.
- find: |-
Through Sent MCP, the registration uses exactly the keys, `options`, and limits `compliance.requirements` publishes for US `TEN_DLC`, which is the shape of the setup plan's `compliance` value; never put REST field names or values in it.
replace: |-
From Claude, the registration is submitted in the Sent Dashboard. Prepare the user's answers with exactly the keys, `options`, and limits `compliance.requirements` publishes for US `TEN_DLC`; never use REST field names or values for them.
- find: |-
3. Through MCP, fill the setup plan's `compliance` map from the evidence; `inherit` on `brand` and `campaign` is the inheritance choice. Hand the completed plan to `sent-profile-provisioning`, which previews it and obtains confirmation before the one create that makes the profile and its registration. Do not create a profile or brand first; MCP has no sandbox.
replace: |-
3. From Claude, prepare the answers `compliance.requirements` asks for from the evidence and hand the user to the Sent Dashboard to submit them. Do not prepare or confirm a create.
skills/sms-10dlc-registration/references/10dlc-rejection-remediation.md:
- find: |-
Through MCP, retry only a create that was refused before anything was written: re-read `compliance.requirements`, correct the `compliance` map, and confirm again; MCP has no sandbox. A rejection of a profile or campaign that already exists is fixed on that profile through the REST campaign endpoints or the Sent Dashboard, never with another create.
replace: |-
From Claude, re-read `compliance.requirements` and have the user correct the answers in the Sent Dashboard, on the existing profile when one was already created.

README.md:
- find: |-
Expand Down
2 changes: 1 addition & 1 deletion claude-plugins/sent/skills/sent-compliance/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The optional `profileId` selector is available only for an organization's owned

## Interpret requirements and plan

1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names.
1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names. The setup plan's `compliance` value takes exactly these keys and option values, never REST field names or values.
2. Check `hasRegime` before interpreting an empty requirements list. An empty list with a published regime can mean no fields are demanded; `hasRegime: false` means no schema is published and is not proof that no compliance is required. US `TOLL_FREE` numbers require toll-free verification before production traffic, even when no requirements are returned; never tell the user that a toll-free number needs no registration.
3. Call `compliance.setup_plan` when the user needs the setup steps for a market. From Claude, Sender Profiles are provisioned in the Sent Dashboard: present the plan's requirements, and when it returns a Dashboard handoff, give the user that link. If the plan contains a `call` that would create a Sender Profile, do not call `sender_profiles.create`; hand the setup to the Dashboard. Do not translate the plan into an invented REST call.
4. If `canCompleteHere` is false, report `blocker` and `attachments`, then hand off document submission to the Sent dashboard or the documented multipart REST workflow. Required uploads cannot be carried through MCP. Optional attachment fields alone do not necessarily block creation.
Expand Down
40 changes: 26 additions & 14 deletions claude-plugins/sent/skills/sms-10dlc-registration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ description: Prepares and validates Sent US A2P 10DLC brand and campaign registr

# SMS 10DLC Registration

Use this skill for US A2P SMS over 10-digit long codes. Separate the compliance evidence packet from the exact Sent API request; they have different schemas and validators.
Use this skill for US A2P SMS over 10-digit long codes. Keep three shapes apart; they have different field names and use-case values:

| Shape | Used for | Field names | 2FA use case | `MIXED` / `LOW_VOLUME` |
| --- | --- | --- | --- | --- |
| Evidence packet | Internal readiness review | snake_case, versioned | `TWO_FA` | allowed |
| MCP `compliance` map | The setup plan from `sent-compliance` | snake_case | `2FA` | refused; volume decides |
| REST campaign request | `/v3/profiles/{profileId}/campaigns` | camelCase in a `campaign` wrapper | `TWO_FA` | allowed |

For current field and document requirements or an exact SMS setup call, use `sent-compliance` before preparing the registration evidence here. From Claude, its plan is completed by creating the Sender Profile in the Sent Dashboard; it does not manage campaigns on an existing profile.

Expand All @@ -29,7 +35,7 @@ Reject guidance that reintroduces a free-standing brand path.

Inherited campaigns are read-only. A profile cannot supply `brand` while brand inheritance is true.

## Two validation layers
## Evidence and requests

### Evidence readiness packet

Expand All @@ -41,9 +47,13 @@ python scripts/validate_10dlc_packet.py evidence.json

Collect legal identity, public website/policy links, consent proof, message flow, opt-in/opt-out/help responses and keywords, use cases, and realistic samples. See [references/10dlc-evidence-checklist.md](references/10dlc-evidence-checklist.md).

### Sent campaign request
### MCP compliance map

From Claude, the registration is submitted in the Sent Dashboard. Prepare the user's answers with exactly the keys, `options`, and limits `compliance.requirements` publishes for US `TEN_DLC`; never use REST field names or values for them. Each key's notes name the TCR field it fills. For use cases, `TWO_FA` is published as `2FA`, and `MIXED` and `LOW_VOLUME` are refused because Sent derives them from `volume`, so list each kind of traffic as its own entry. No local validator checks this shape.

### REST campaign request

The API request uses exact camelCase and a `campaign` wrapper:
The REST request uses exact camelCase and a `campaign` wrapper:

<!-- sent-campaign-request -->
```json
Expand Down Expand Up @@ -81,9 +91,9 @@ Validate it with:
python scripts/validate_campaign_payload.py campaign.json
```

## API use cases
## REST API use cases

Support all 13 current values:
The REST campaign request supports all 13 current values:

`MARKETING`, `ACCOUNT_NOTIFICATION`, `CUSTOMER_CARE`, `FRAUD_ALERT`, `TWO_FA`, `DELIVERY_NOTIFICATION`, `SECURITY_ALERT`, `M2M`, `MIXED`, `HIGHER_EDUCATION`, `POLLING_VOTING`, `PUBLIC_SERVICE_ANNOUNCEMENT`, and `LOW_VOLUME`.

Expand All @@ -98,13 +108,15 @@ Campaign responses currently expose statuses `SENT_CREATED`, `ACTIVE`, and `EXPI
## Safe workflow

1. Confirm this is US A2P 10DLC traffic and the actual sending business is identified.
2. Select brand/campaign inheritance.
3. Validate the versioned evidence packet.
4. Create or confirm the profile brand.
5. Translate evidence into the exact camelCase campaign request.
6. Validate locally and use `sandbox: true`.
7. Show the payload and obtain confirmation before a real create/update/delete.
8. Store profile ID, campaign ID, `submittedToTCR`, raw status, and review evidence.
9. Complete the profile with required `webHookUrl` only after prerequisites are ready.
2. Validate the versioned evidence packet.
3. From Claude, prepare the answers `compliance.requirements` asks for from the evidence and hand the user to the Sent Dashboard to submit them. Do not prepare or confirm a create.
4. Through REST:
1. Select brand/campaign inheritance.
2. Create or confirm the profile brand.
3. Translate evidence into the exact camelCase campaign request.
4. Validate locally and use `sandbox: true`.
5. Show the payload and obtain confirmation before a real create/update/delete.
6. Store profile ID, campaign ID, `submittedToTCR`, raw status, and review evidence.
7. Complete the profile with required `webHookUrl` only after prerequisites are ready.

Never use real consumer data in fixtures or samples. Use [references/tcr-use-cases.md](references/tcr-use-cases.md) for classification and [references/10dlc-rejection-remediation.md](references/10dlc-rejection-remediation.md) for failures.
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ use_cases[].messaging_use_case_us -> useCases[].messagingUseCaseUs
use_cases[].sample_messages -> useCases[].sampleMessages
```

These names are for the REST request. The MCP `compliance` map uses the keys `compliance.requirements` publishes instead.

Run the evidence validator before translation and the campaign validator after translation.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@
| Layer | Evidence |
| --- | --- |
| Local evidence packet | Version, missing consent proof, invalid URLs, incomplete autoresponses |
| Sent request validation | Wrong camelCase, unsupported field, invalid use case, sample count/length, volume type |
| Sent REST request validation | Wrong camelCase, unsupported field, invalid use case, sample count/length, volume type |
| Sent MCP `compliance` map | A key, option, or limit `compliance.requirements` does not publish, such as a REST field name, `TWO_FA`, `MIXED`, or `LOW_VOLUME` |
| TCR submission | `submittedToTCR`, registry error/reason, brand or campaign status |
| Carrier operations | Campaign active but filtering, DCA election, content mismatch |

Do not create a new campaign until the failing layer is known.

## Common fixes

- Wrong endpoint model: operate campaigns under the profile and create a dedicated brand within profile creation.
- Inheritance conflict: disable `inherit_tcr_campaign` before managing a dedicated campaign; do not supply `brand` while brand inheritance is true.
- Wrong field casing: serialize `useCases`, `messagingUseCaseUs`, and `sampleMessages` exactly.
- Wrong endpoint model (REST): operate campaigns under the profile and create a dedicated brand within profile creation.
- Inheritance conflict (REST): disable `inherit_tcr_campaign` before managing a dedicated campaign; do not supply `brand` while brand inheritance is true.
- Wrong field casing (REST): serialize `useCases`, `messagingUseCaseUs`, and `sampleMessages` exactly. The MCP map takes the keys and options `compliance.requirements` publishes instead.
- Too few samples: provide 1–5 structurally; provide at least two for marketing/mixed compliance.
- Weak opt-in: add observable proof and a complete message flow.
- Autoresponse failure: add brand, STOP/HELP, unsubscribe confirmation, and support details as applicable.
Expand All @@ -29,7 +30,6 @@ Do not create a new campaign until the failing layer is known.

1. Save the original response and reason.
2. Fix the versioned evidence packet if necessary.
3. Rebuild and validate the API request.
4. Use `sandbox: true`.
5. Show the exact diff.
6. Obtain confirmation before the real mutation.
3. Through REST, rebuild and validate the API request and use `sandbox: true`. From Claude, re-read `compliance.requirements` and have the user correct the answers in the Sent Dashboard, on the existing profile when one was already created.
4. Show the exact diff.
5. Obtain confirmation before the real mutation.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
| `PUBLIC_SERVICE_ANNOUNCEMENT` | Public-interest or government notices |
| `LOW_VOLUME` | Low-volume mixed traffic |

These are the REST values. The MCP `compliance` map takes the `options` `compliance.requirements` publishes instead.

Select what the business will actually send. Do not use `MIXED` or `LOW_VOLUME` to hide a dominant high-risk use case.

## Sample rules
Expand Down
3 changes: 3 additions & 0 deletions evals/sms-10dlc-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ cases:
- query: "Why is our SMS throughput so low even after we registered our brand?"
expect: ambiguous
rationale: Could be vetting-score / campaign-throttle (sms-10dlc-registration) or per-cohort delivery analysis (messaging-performance-analyzer). Start with messaging-performance-analyzer to localize whether throttling is the broken stage, then route here if the diagnosis is TCR vetting or campaign misclassification.
- query: "compliance.setup_plan gave me a US 10DLC plan — how do I fill its compliance map for a 2FA and account-notification campaign?"
expect: trigger
rationale: Filling the MCP compliance map is campaign content; the skill sends the agent to the published keys and options and explains the 2FA spelling and why MIXED is refused.
2 changes: 1 addition & 1 deletion packages/sent/skills/sent-compliance/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The optional `profileId` selector is available only for an organization's owned

## Interpret requirements and plan

1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names.
1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names. The setup plan's `compliance` value takes exactly these keys and option values, never REST field names or values.
2. Check `hasRegime` before interpreting an empty requirements list. An empty list with a published regime can mean no fields are demanded; `hasRegime: false` means no schema is published and is not proof that no compliance is required. US `TOLL_FREE` numbers require toll-free verification before production traffic, even when no requirements are returned; never tell the user that a toll-free number needs no registration.
3. Call `compliance.setup_plan` when the user needs the exact setup call. Its `call.tool` is `sender_profiles.create`, with camelCase argument names and null placeholders that must be filled before execution. Do not execute blank values or translate the plan into an invented REST call.
4. If `canCompleteHere` is false, report `blocker` and `attachments`, then hand off document submission to the Sent dashboard or the documented multipart REST workflow. Required uploads cannot be carried through MCP; do not attempt a guaranteed-to-fail create. Optional attachment fields alone do not necessarily block creation.
Expand Down
40 changes: 26 additions & 14 deletions packages/sent/skills/sms-10dlc-registration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ description: Prepares and validates Sent US A2P 10DLC brand and campaign registr

# SMS 10DLC Registration

Use this skill for US A2P SMS over 10-digit long codes. Separate the compliance evidence packet from the exact Sent API request; they have different schemas and validators.
Use this skill for US A2P SMS over 10-digit long codes. Keep three shapes apart; they have different field names and use-case values:

| Shape | Used for | Field names | 2FA use case | `MIXED` / `LOW_VOLUME` |
| --- | --- | --- | --- | --- |
| Evidence packet | Internal readiness review | snake_case, versioned | `TWO_FA` | allowed |
| MCP `compliance` map | The setup plan from `sent-compliance` | snake_case | `2FA` | refused; volume decides |
| REST campaign request | `/v3/profiles/{profileId}/campaigns` | camelCase in a `campaign` wrapper | `TWO_FA` | allowed |

For current field and document requirements or an exact SMS setup call, use `sent-compliance` before preparing the registration evidence here. Its plan creates a new Sender Profile and does not manage campaigns on an existing profile.

Expand All @@ -29,7 +35,7 @@ Reject guidance that reintroduces a free-standing brand path.

Inherited campaigns are read-only. A profile cannot supply `brand` while brand inheritance is true.

## Two validation layers
## Evidence and requests

### Evidence readiness packet

Expand All @@ -41,9 +47,13 @@ python scripts/validate_10dlc_packet.py evidence.json

Collect legal identity, public website/policy links, consent proof, message flow, opt-in/opt-out/help responses and keywords, use cases, and realistic samples. See [references/10dlc-evidence-checklist.md](references/10dlc-evidence-checklist.md).

### Sent campaign request
### MCP compliance map

Through Sent MCP, the registration uses exactly the keys, `options`, and limits `compliance.requirements` publishes for US `TEN_DLC`, which is the shape of the setup plan's `compliance` value; never put REST field names or values in it. Each key's notes name the TCR field it fills. For use cases, `TWO_FA` is published as `2FA`, and `MIXED` and `LOW_VOLUME` are refused because Sent derives them from `volume`, so list each kind of traffic as its own entry. No local validator checks this shape.

### REST campaign request

The API request uses exact camelCase and a `campaign` wrapper:
The REST request uses exact camelCase and a `campaign` wrapper:

<!-- sent-campaign-request -->
```json
Expand Down Expand Up @@ -81,9 +91,9 @@ Validate it with:
python scripts/validate_campaign_payload.py campaign.json
```

## API use cases
## REST API use cases

Support all 13 current values:
The REST campaign request supports all 13 current values:

`MARKETING`, `ACCOUNT_NOTIFICATION`, `CUSTOMER_CARE`, `FRAUD_ALERT`, `TWO_FA`, `DELIVERY_NOTIFICATION`, `SECURITY_ALERT`, `M2M`, `MIXED`, `HIGHER_EDUCATION`, `POLLING_VOTING`, `PUBLIC_SERVICE_ANNOUNCEMENT`, and `LOW_VOLUME`.

Expand All @@ -98,13 +108,15 @@ Campaign responses currently expose statuses `SENT_CREATED`, `ACTIVE`, and `EXPI
## Safe workflow

1. Confirm this is US A2P 10DLC traffic and the actual sending business is identified.
2. Select brand/campaign inheritance.
3. Validate the versioned evidence packet.
4. Create or confirm the profile brand.
5. Translate evidence into the exact camelCase campaign request.
6. Validate locally and use `sandbox: true`.
7. Show the payload and obtain confirmation before a real create/update/delete.
8. Store profile ID, campaign ID, `submittedToTCR`, raw status, and review evidence.
9. Complete the profile with required `webHookUrl` only after prerequisites are ready.
2. Validate the versioned evidence packet.
3. Through MCP, fill the setup plan's `compliance` map from the evidence; `inherit` on `brand` and `campaign` is the inheritance choice. Hand the completed plan to `sent-profile-provisioning`, which previews it and obtains confirmation before the one create that makes the profile and its registration. Do not create a profile or brand first; MCP has no sandbox.
4. Through REST:
1. Select brand/campaign inheritance.
2. Create or confirm the profile brand.
3. Translate evidence into the exact camelCase campaign request.
4. Validate locally and use `sandbox: true`.
5. Show the payload and obtain confirmation before a real create/update/delete.
6. Store profile ID, campaign ID, `submittedToTCR`, raw status, and review evidence.
7. Complete the profile with required `webHookUrl` only after prerequisites are ready.

Never use real consumer data in fixtures or samples. Use [references/tcr-use-cases.md](references/tcr-use-cases.md) for classification and [references/10dlc-rejection-remediation.md](references/10dlc-rejection-remediation.md) for failures.
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ use_cases[].messaging_use_case_us -> useCases[].messagingUseCaseUs
use_cases[].sample_messages -> useCases[].sampleMessages
```

These names are for the REST request. The MCP `compliance` map uses the keys `compliance.requirements` publishes instead.

Run the evidence validator before translation and the campaign validator after translation.
Loading