Skip to content

Document the MCP Compliance Map in the 10DLC Skill - #23

Merged
rrustemh-sent merged 3 commits into
mainfrom
fix/10dlc-skill-mcp-compliance-shape
Nov 27, 2026
Merged

rrustemh-sent merged 3 commits into
mainfrom
fix/10dlc-skill-mcp-compliance-shape

Conversation

@rrustemh-sent

Copy link
Copy Markdown
Collaborator

Changes / Fixes / Features included

This PR includes changes / features as below:

  • The 10DLC skill described only the REST campaign request, so an agent filled the MCP compliance map with camelCase fields, TWO_FA and MIXED, and Sent refused it.
  • A table at the top of the skill now separates the evidence packet, the MCP compliance map and the REST campaign request (field names, how 2FA is spelled, whether MIXED/LOW_VOLUME are allowed). The REST sections and the workflow step are labelled REST.
  • A short MCP section says the map takes exactly the keys and options compliance.requirements publishes, never REST names or values: TWO_FA is published as 2FA, and MIXED/LOW_VOLUME are refused because volume decides them, so each kind of traffic is its own entry. It points at the live requirements rather than copying the field list, so it cannot drift from the server.
  • sent-compliance step 1 says the setup plan's compliance value takes the published keys and options, for every market.
  • tcr-use-cases.md and the evidence checklist say their values and names are the REST ones.
  • One routing eval case for filling the MCP map.
  • The Claude overlay is unchanged: the Dashboard-only completion for Claude connections stays as it is.

How to test?

In order to test changes included in the PR follow steps as below:

  • Run python3 scripts/generate_adapters.py --check, scripts/validate.py, scripts/test_validation_gates.py, scripts/test_fixtures.py, scripts/test_contracts.py, and claude plugin validate . --strict plus claude plugin validate ./claude-plugins/sent --strict.
  • Call compliance.requirements for US / TEN_DLC and compare its keys and use_case options (2FA, no MIXED or LOW_VOLUME) with the skill.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Additional findings (outside the current diff — GitHub can't attach inline comments there):

  • 🟡 adapter-sources/claude/overlay.yaml — In the Claude plugin, the 10DLC skill now has agents fill an MCP compliance map for a create that Claude cannot run. Step 7 then asks for confirmation "before a real create". The overlay rewrites only line 16 of sms-10dlc-registration for Claude. The new "MCP compliance map" section and the MCP branch of step 5 reach claude-plugins/sent unchanged. Fix: in the Claude overlay, rewrite those passages so Claude collects the published requirements for the Dashboard and never prepares or confirms an MCP create.

    Why this was flagged

    generate_adapters.py applies adapter-sources/claude/overlay.yaml only to claude-plugins/sent. For sms-10dlc-registration it replaces only the sentence at line 16. The new text at claude-plugins/sent/skills/sms-10dlc-registration/SKILL.md:52 tells a Claude agent that "Through Sent MCP, the registration uses exactly the keys..." for the setup plan's compliance value. The same file at :114 says "Through MCP, fill the compliance map". At :116 it says "Show the payload and obtain confirmation before a real create". From Claude, sender_profiles.create is withheld (overlay.yaml:13). The sent-compliance overlay (lines 51, 59) sends provisioning to the Dashboard. So Claude users get a filled map and a create confirmation that nothing can use, and the instructions contradict line 16 of the same file. The base had no MCP-path text to conflict with. The server enforces the restriction, so the cost is misleading guidance, not an unauthorized create.

    Verification: Trigger: a Claude-connection agent loads the Claude adapter's sms-10dlc-registration skill for a US 10DLC setup. adapter-sources/claude/overlay.yaml has only one edit for skills/sms-10dlc-registration/SKILL.md, the sentence now at line 16. Line 114 says "5. Through MCP, fill the compliance map as described above." The overlay also withholds sender_profiles.create.

  • 🟡 packages/sent/skills/sms-10dlc-registration/SKILL.md — Agents whose MCP compliance map is refused get sent to a remediation guide that tells them to use REST camelCase names again. Line 120 routes every failure to references/10dlc-rejection-remediation.md. That file was not updated: line 18 says to serialize useCases, messagingUseCaseUs and sampleMessages, and lines 32-33 say to rebuild the API request with sandbox: true. Fix: label the remediation guidance as REST-only, as was done for the checklist and tcr-use-cases. Add an MCP path: re-read compliance.requirements, fix the keys and options, and re-confirm, with no sandbox step.

    Why this was flagged

    The PR exists because Sent refused an MCP compliance map filled with camelCase fields, TWO_FA and MIXED. In this skill, the only routing for that refusal is SKILL.md:120: "[references/10dlc-rejection-remediation.md] for failures". The remediation file is unchanged and its guidance is unqualified. Its fix at line 18, "Wrong field casing: serialize useCases, messagingUseCaseUs, and sampleMessages exactly", brings back the REST names that the new MCP section (SKILL.md:52) forbids. Its Resubmission steps (lines 32-33) say "Rebuild and validate the API request" and "Use sandbox: true". The PR added REST-only notes to 10dlc-evidence-checklist.md:46 and tcr-use-cases.md:21 but skipped this third reference. So an agent that recovers from a refused MCP map by following the skill's own failure pointer is steered back to the shape the PR says Sent refuses. The same text ships in all four copies (packages/, skills/, plugins/sent, claude-plugins/sent).

    Verification: Trigger: Sent refuses an agent's MCP compliance map and the agent follows the skill's failure routing. packages/sent/skills/sms-10dlc-registration/SKILL.md:120 still sends every failure to [references/10dlc-rejection-remediation.md] ... for failures. This is graded nit, not normal, because it does not make the base worse.

@rrustemh-sent

Copy link
Copy Markdown
Collaborator Author

Both additional findings from the review are fixed in feba4dd:

  • Remediation guide: the REST-only fixes are marked (REST), a failure-layer row covers the MCP compliance map (a key or value compliance.requirements does not publish, such as REST names, TWO_FA, MIXED, LOW_VOLUME), and resubmission has an MCP path: re-read compliance.requirements, correct the map, no sandbox.
  • Claude adapter: the overlay rewrites the MCP paragraph, the MCP workflow step and the MCP resubmission step, so a Claude agent prepares the user's answers for the Sent Dashboard and never prepares or confirms a create.

@rrustemh-sent

Copy link
Copy Markdown
Collaborator Author

@claude review

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

@kujtimst kujtimst left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved 👍

@arbianst arbianst 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.

LGTM on 7e5f9f8. Checked the MCP compliance map split, Claude overlay, remediation update, and Validate plugin check.

@rrustemh-sent
rrustemh-sent merged commit cd484a6 into main Nov 27, 2026
1 check passed
@rrustemh-sent
rrustemh-sent deleted the fix/10dlc-skill-mcp-compliance-shape branch November 27, 2026 16:05
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