Skip to content

refactor(contract): rename contract:mail-draft → contract:mail-create - #682

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:rename-mail-draft-to-mail-create
Jul 3, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:rename-mail-draft-to-mail-create

Conversation

@potiuk

@potiuk potiuk commented Jul 2, 2026

Copy link
Copy Markdown
Member

What

Renames contract:mail-draft → contract:mail-create and reframes
draft-only as an optional mode rather than the defining constraint of
the capability.

Why

mail-draft baked Gmail's "draft, never send" framing into the contract
name. Generalising to mail-create ("compose an outbound message")
makes the capability backend-neutral: a non-Gmail "create an editable
draft" backend (local Maildir / .eml, SMTP-compose) now fits the
contract name naturally instead of fighting a Gmail-specific label. That
lowers the bar for the second backend that would flip this contract green
in the vendor-neutrality score.

Semantics (unchanged safety posture)

  • create() always produces an editable draft artefact.
  • mode=draft is the default and the only mode any backend implements
    today; Gmail (the sole backend) never sends.
  • mode=send is a declared-but-unimplemented future seam. Even a
    send-capable backend must surface the composed draft and require
    explicit human approval before anything leaves — no autonomous
    send. The framework's "human review is non-negotiable" invariant is
    preserved verbatim.

Scope

Token renamed across both canonical registries — the vendor-neutrality
scorer's CONTRACT_POLICY and the validator's TOOL_CAPABILITIES —
their tests, all tool READMEs (gmail, mail-patch, change-request),
the capability docs (labels-and-capabilities.md), RFC-AI-0005, and
the vendor-neutrality.md prose; the generated score block was
regenerated.

Not a gap-closer. The contract stays ❌ (Google-only, "needs 1
more") — this is a rename + semantic reframe. A second backend is a
separate follow-up.

Verification

  • vendor-neutrality-score tests ✓
  • skill-and-tool-validator tests ✓ + live validator exit 0
    (capability-sync clean: registry, labels doc, tool READMEs agree)
  • pre-commit suite green (ruff, markdownlint, typos, lychee,
    skill-and-tool-validate)

Generalise the outbound-mail capability from the Gmail-specific "draft,
never send" framing to a backend-neutral "compose an outbound message"
contract, with draft-only as an optional mode rather than the defining
constraint.

Semantics (per the reframed contract):
- create() always produces an *editable draft* artefact.
- mode=draft is the default and the only mode any backend implements
  today; Gmail (the sole backend) never sends.
- mode=send is a declared-but-unimplemented future seam. Even a
  send-capable backend must surface the composed draft and require
  explicit human approval before anything leaves -- no autonomous send.
  The framework's "human review is non-negotiable" invariant is
  preserved verbatim.

Renames the token across both canonical registries (the
vendor-neutrality scorer's CONTRACT_POLICY and the validator's
TOOL_CAPABILITIES), their tests, all tool READMEs, the capability
docs, and RFC-AI-0005; regenerates the vendor-neutrality score block.

The contract stays red (Google-only, "needs 1 more") -- this is a
rename + semantic reframe, not the gap-closer. The neutral name makes
a second, non-Gmail "editable draft" backend a natural fit.
@potiuk
potiuk force-pushed the rename-mail-draft-to-mail-create branch from b533484 to 610ae89 Compare July 2, 2026 23:31
@potiuk
potiuk merged commit 206e79f into apache:main Jul 3, 2026
32 checks passed
@potiuk potiuk added contract:change-request Tool capability: proposed-change review + merge gate (PR / MR / Gerrit change) contract:mail-archive Tool capability: mailing-list / forum archive reads contract:mail-create Tool capability: outbound mail composition (editable draft; sending is a separate human step) contract:mail-source Tool capability: inbound-mail ingestion (mbox / IMAP / ...) family:docs Docs, MISSION.md, READMEs family:tools tools/* substrate:analytics Tool substrate: read-only metrics / dashboards / renderers substrate:framework-dev Tool substrate: build / validate / eval the framework itself labels Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contract:change-request Tool capability: proposed-change review + merge gate (PR / MR / Gerrit change) contract:mail-archive Tool capability: mailing-list / forum archive reads contract:mail-create Tool capability: outbound mail composition (editable draft; sending is a separate human step) contract:mail-source Tool capability: inbound-mail ingestion (mbox / IMAP / ...) family:docs Docs, MISSION.md, READMEs family:tools tools/* substrate:analytics Tool substrate: read-only metrics / dashboards / renderers substrate:framework-dev Tool substrate: build / validate / eval the framework itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant