feat(validator): add mail-adapter privacy-boundary check #694
Merged
potiuk merged 1 commit intoJul 3, 2026
Conversation
e45c40f to
a7e0fa2
Compare
…SOFT advisory) contract:mail-source and contract:mail-archive adapter READMEs must declare that fetched mail content is external data (not instructions) and mention the prompt-injection risk in embedded mail content. Both are SOFT advisories. Co-authored-by: Justin McLean <justin@classsoftware.com>
a7e0fa2 to
1531918
Compare
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
Add check #17 to skill-and-tool-validator: contract:mail-source and
contract:mail-archive adapter READMEs must declare (a) that fetched
mail content is external data, not instructions, and (b) that
embedded prompt-injection text in mail bodies is surfaced as report
data only, never obeyed. Both sub-checks are SOFT advisories.
Add ## Security and privacy sections to tools/gmail/, tools/ponymail/,
tools/mail-source/, and tools/mail-archive/ so all four live adapters
pass the new check with zero violations.
Add 18 unit tests in TestMailPrivacyBoundary covering: passing
READMEs for contract:mail-source and contract:mail-archive; missing
data-posture advisory; missing injection-risk advisory; both missing;
mail-draft-only not checked; non-mail contract not checked; the
prompt-injection-in-email fixture; redact-keyword variant; category
soft-category and all-violations-have-correct-category checks.
Spec: tools/spec-loop/specs/adapters.md
Generated-by: Claude (Opus 4.7)
Type of change
.claude/skills/<name>/) — eval fixtures updated belowtools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)projects/_template/)prek, workflows, validators)Test plan
prek run --all-filespassesuv run pytest/ruff check/mypypasses(
PYTHONPATH=tools/skill-evals/src python3 -m skill_evals.runner tools/skill-evals/evals/<skill>/)(a regression test for the bug fixed / the behaviour added — see CONTRIBUTING.md)